// JavaScript Document

function slideSwitch() {
    var $active = jQuery('#headerSponsors IMG.active');

    if ( $active.length == 0 ) $active = jQuery('#headerSponsors IMG:last');

    var $next =  $active.next().length ? $active.next()
        : jQuery('#headerSponsors IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

jQuery(function() {
    setInterval("slideSwitch()", 3000 );
});

$(document).ready(function () {	
	
	jQuery('#nav li').hover(
		function () {
			//show its submenu
			jQuery('ul', this).slideDown(100);

		}, 
		function () {
			//hide its submenu
			jQuery('ul', this).slideUp(100);			
		}
	);
	
});
