
function mainmenu(){
	$("#menu li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the <a> tag
		$(this).find("span").show().html(linkText); //Add the text in the <span> tag
	}); 
	$("#menu > li:fisrt-child > a").prepend("<span></span>"); //Throws an empty span tag right before the a tag

	

$(" #menu .drop ").css({display: "none"}); // Opera Fix


$(" #menu li").hoverIntent(function(){
		$(this).find("span").stop().animate({
			marginTop: "-38" //Find the <span> tag and move it up 40 pixels
		}, 300);
	
		$(this).find('div:first').css({visibility: "visible", display: "none"}).slideDown(300);
		$(this).find(':parent').addClass("on");
//		$('#content select').css({visibility: "hidden"})
		return(false);
		},function(){
			
		$(this).find('div:first').slideUp(100);
		$(this).find(':parent').removeClass("on");
//		$('#content select').css({visibility: "visible"})
		$(this).find("span").stop().animate({
			marginTop: "0"  //Move the <span> back to its original state (0px)
		}, 100);

	return(false);		
		});
}
 
 
 $(document).ready(function(){					
	mainmenu();
});

