jQuery(document).ready(function(){
    if (jQuery("#slideShowContainer img").length == 0) {
        jQuery("#slideShowContainer").attr('class', 'nopictures');
    }
    
    if (jQuery("#slideShowContainer img").length == 0) {
        jQuery("#MainContent").attr('class', 'width');
    }
    
    if (jQuery("#slideShowContainer img").length <= 1) {
        jQuery("#slideShowContainer a").css("display","none");
    }

    jQuery('#carousel ul').css("overflow","hidden");

    if (jQuery("#slideShowContainer img").length > 1) {
        jQuery("#slideShowContainer .slideshow").cycle({
            fx: 'fade',
            pause: 1,
            prev: '#previousLink',
            next: '#nextLink',
            speed:  800,
            timeout:  6000,
            before: function(current, next) {
                jQuery('.slideshow').height(parseInt(jQuery(next).height()));
            }
        });
        
    }
    
    jQuery("#Slider1 .slideshow").cycle({
            speed:  1000,
            timeout:  5600
        });
        
    jQuery("#Slider2 .slideshow").cycle({
            speed:  1000,
            timeout:  4200
        });
        
    jQuery("#Slider3 .slideshow").cycle({
            speed:  1100,
            timeout:  4500
        });
        
    jQuery("#Slider4 .slideshow").cycle({
            speed:  1000,
            timeout:  5500
        });
    
    jQuery("#Slider5 .slideshow").cycle({
            speed:  1200,
            timeout:  5800
        });
    

    
           
});



