$(document).ready(function(){


// Mast Nav
	// Backgrounds
	$("#mast-nav ul li a").append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)


	// Drop downs
	
	
	$("#mast-nav ul li").hover(function() { //When trigger is clicked...

		//IE6 & 7 Fixes for margin. (I really hate doing this...)
	/*	 var badBrowser = (/MSIE ((5\.5)|6|7)/.test(navigator.userAgent) && navigator.platform == "Win32");
	   if (badBrowser) {
		 $("#mast-nav ul ul").css("margin-top","25px");
	   }
	*/
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).find("ul").slideDown('fast').show(); //Drop down the subnav on click
		
		$(this).hover(function() {
			}, function(){
			$(this).find("ul").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up
		});
		
	/*	//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
		$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
		$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	*/
	});
	
	// Rotations
	
	$('.rotation').cycle({
		fx:	'fade',
		delay: -4000
	});

	
	

});





