(function($) {

    window.site = {

        init: function() {
            // add any init calls here to run on page load...

            $('body.section-artists div.subsection-works div.category_wrapper').not(':last').addClass('bottom_border');
            $('div#logo.splash').hover(function(){
                $(this).stop().animate({'opacity': '0.7'}, 'slow');
            },
            function(){
                 $(this).stop().animate({'opacity': '1'}, 'slow');
            });


            if ($('.section-artists .subsection-works #skip_to_container').length == 0) {
                $('.section-artists .subsection-works .records_list').css('margin-top','0');
                //$('.section-artists .subsection-works .records_list h2').hide();
            };



            
        }

        // add site specific functions here

    };

    $(document).ready(function() {

        window.site.init();

    });


})(jQuery);




$(window).load(function() {

   var slideshow_half = $('div#slideshow').height() / 2;
   $('body.section-home div#slideshow ul li').each(function(){
                // get the height of the hidden element by setting it to show. Also note function is wrapped around by the $(window).load function
                var content_half = $(this).show().find('.content').height() / 2;
                var content_position = slideshow_half - content_half; 
                $(this).find('.content').css('top', content_position + 'px');

            });
});


