$(document).ready(function() { 
     
	// HEADER
	
	var current = $(".slideshow li:first");     
 
	var switch_image = function() { 
        current.fadeOut( 1000 ); 
        if ( current.attr('class') == 'last' ) { 
        	current = $('.slideshow li:first');
        	current.fadeIn( 1000 ); 
        } 
        else { 
        	current = current.next(); 
        	current.fadeIn( 1000 ); 
        } 
	} 
     
    $('.slideshow li:gt(0)').hide(); 
    $('.slideshow li:last').addClass('last'); 
     
     
    myInterval = setInterval(switch_image, 8000 ); 
    
    // SPONSORS
    
    var current1 = $(".sponsors li:first");     
    
	var switch_image1 = function() { 
        current1.fadeOut( 1000 ); 
        if ( current1.attr('class') == 'last' ) { 
        	current1 = $('.sponsors li:first');
        	current1.fadeIn( 1000 ); 
        } 
        else { 
        	current1 = current1.next(); 
        	current1.fadeIn( 1000 ); 
        } 
	} 
     
    $('.sponsors li:gt(0)').hide(); 
    $('.sponsors li:last').addClass('last'); 
     
     
    myInterval1 = setInterval(switch_image1, 16000 ); 
     
     
});
