// DropDown Menu

$(document).ready(function(){
		/*DROP DOWN FUNCTIONALITY*/				   
		$('#fixed-nav .login').hover(
			//on mouse enter
			function() { 
			$('ul', this).css('display', 'block'); 
			$('.login .corp-pages').css('backgroundPosition', '0px -114px');
			},
			//on mouse out
			function() { 
			$('ul', this).css('display', 'none'); 
			$('.login .corp-pages').css('backgroundPosition', '0px 0px');
		});
		$('#fixed-nav .current-segment').hover(
			//on mouse enter
			function() { 
			$('ul', this).css('display', 'block'); 
			$('..current-segment .corp-pages').css('backgroundPosition', '0px -114px');
			},
			//on mouse out
			function() { 
			$('ul', this).css('display', 'none'); 
			$('..current-segment .corp-pages').css('backgroundPosition', '0px 0px');
		});
		
		/*FOOTER FUNCTIONALITY*/	
		$('#footer .module,#footer .module-last').hover(
			//Color has been hardcoded in this script to match the style					     
			//on mouse enter
			function() { 
			$('h3 a', this).css('color','#454545');
			$('.module-icon a', this).css('backgroundPosition', '0px -50px');
			},
			//on mouse out
			function() { 
			$('h3 a').css('color', '#a9a9a9');
			$('.module-icon a', this).css('backgroundPosition', '0px 0px');
		});
		
		/*SIDETAB OVERLAY FUNCTIONALITY*/	
		var triggers = $("#fixed-feedback .sidetab").overlay({
			// some mask tweaks suitable for modal dialogs
			mask: {
			color: '#000',
			loadSpeed: 200,
			opacity: 0.5
			},
			
			closeOnClick: false
		});
		
		/*OVERLAYTABS*/
		// setup ul.tabs to work as tabs for each div directly under div.panes
		$("ul.tabs").tabs("div.panes > div", {effect: 'fade', fadeOutSpeed: 400});
		$("panes .test").css("display","block");

});
