Shadowbox.init({
    players:    ["img","swf"],
    autoplayMovies: true,
    continuous: true,
	displayCounter: false,
	slideshowDelay: 4
});

$(document).ready(function(){
        $('#header_r a').hide();
        $('#footer_l a').hide();
        $('#footer_r p').hide();
        
        
        $(window).load(function(){
            $('#header_r a').fadeIn('slow');
            $('#gallery img').fadeTo('fast',0.5);
            $('#middle_r img').css('visibility', 'visible');
            $('#middle_r img:not(.play)').fadeIn('slow', function() {
                $(".play").fadeIn('slow', function() {
                    $(this).fadeOut(2000);
                });
            });
            $('#middle_l a').fadeIn('slow');
            $('#footer_l a').fadeIn('slow');
            $('#footer_r p').fadeIn('slow');
        });
        
        
        $('#middle_r a').hover(
                function (e) { 
                    $(".play").fadeIn('slow')  ;}, 
                function (e) { 
                    $(".play").fadeOut('fast') ;}
        );
        
        $('#gallery img').hover(
                function () { $(this).fadeTo('fast', 1)  ;}, 
                function () { $(this).fadeTo('fast', 0.5);}
        );
        $('#middle_l a:not(.active)').hover(
                function () {
                    $(this).css("color","black");
                    $(this).css("backgroundColor", "white");
                }, 
                function () {
                    $(this).css("color", "white");
                    $(this).animate({ backgroundColor: "black"}, 200);
                }
        );
        $('#header_r a:not(.active)').hover(
                function () {
                    $(this).css("color","white");
                    $(this).css("backgroundColor", "black");
                }, 
                function () {
                    $(this).css("color", "black");
                    $(this).animate({ backgroundColor: "white"}, 200);
                }
        );
});