//borrowed from jQuery easing plugin
//http://gsgd.co.uk/sandbox/jquery.easing.php
$(document).ready(function() {
    $('.screen').scrollShow({
        view:'.view',
        itemSize:{
            height:83,
            width:156
        },
        content:'.images',

        navigators:'a[id]',
        circular:true,
        start:0
    });

    $('.slideshow, .twitt-slide').cycle({
        fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    });

    $('.slide-container').hover(function(){
        $('.label',this).animate({
            bottom:0
        },200,'linear');
				$('img',this).addClass('yellowborder');
    },function(){
        $('.label',this).animate({
            bottom:'-41px'
        },200,'linear');
				$('img',this).removeClass('yellowborder');
    });

    $('.content .screen .scrollBotCenter .items .classDiv .line').css('opacity',0);

    /*$('.scrollBotCenter .items a')
    .hover(function(){
        $('.line',$(this).parent().parent()).css('opacity',1);
    },function(){
        $('.line',$(this).parent().parent()).css('opacity',0);
    });
    /*
    .click(function(){
        el = $(this);
        if(!el.hasClass('active')){
            $('.scrollBotCenter .items a.active').removeClass('active');
            el.addClass('active');

            $('.photo_center').animate({
                'opacity':0
            },150,'linear',function(){
                var sURL = $('img',el).attr("src");
                var author = el.parent().parent().find('.line .author').text();
                var image = el.parent().parent().find('.line .image').text();
                $(".bigPhoto").attr("src", sURL);
                $('.bigPhoto').parent().attr('href',el.attr('rel'));
                $('.shadow .text').html(author+" <span>|</span> "+image);
                $('.photo_center').animate({
                    'opacity':1
                },150,'linear',function(){});
            });
        }
    });*/
});

function showLine(el){
    $('.line',el.parent().parent()).css('opacity',1);
}
function hideLine(el){
    $('.line',el.parent().parent()).css('opacity',0);
}

