jQuery(function(){
	jQuery('#Nav ul li').bind('mouseenter', function(){
		jQuery(this).children('ul').slideDown('fast');
	});
	jQuery('#Nav ul li').bind('mouseleave', function(){
		jQuery(this).children('ul').slideUp('fast');
	});
	jQuery('#Nav ul ul').hide();
	
	$("#scroller").simplyScroll({
		autoMode: 'loop'
	});
	
	$("#press").newsTicker(8000);
});

$(window).load(function() {
	
	// Load the slider for the sponsors
	$('#slider_platinum').nivoSlider({
		effect:'fade',
		directionNav:false,
		controlNav:false,
		keyboardNav:false

	});
	$('#slider_gold').nivoSlider({
		effect:'fade',
		directionNav:false,
		controlNav:false,
		keyboardNav:false
	});
	$('#slider_silver').nivoSlider({
		effect:'fade',
		directionNav:false,
		controlNav:false,
		keyboardNav:false
	});
	$('#slider_bronze').nivoSlider({
		effect:'fade',
		directionNav:false,
		controlNav:false,
		keyboardNav:false
	});

	$('#slider').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		startSlide:0, //Set starting Slide (0 index)
		pauseTime:6000,
		directionNav:true, //Next & Prev
		directionNavHide:false, //Only show on hover
		controlNav:true, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
      	controlNavThumbsFromRel:false, //Use image rel for thumbs
		keyboardNav:true, //Use left & right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});
