// Menu Behavior
function menuInit() {
			
	/* Sub-Menu */
	$(".hasSub").hover(
		function() {
			$(".sub", this).slideDown(250);
			//$(".sub", this).show();
			if (!$("a:first", this).hasClass("selected")) { // if it is not selected, I select it by changing its bg position
				$("a:first", this).css("background-position","0px -37px");
			}
		},
		function() {
			//$(".sub", this).hide();
			$(".sub", this).slideUp(250);
			if (!$("a:first", this).hasClass("selected")) { // if it is not selected, restore it
				$("a:first", this).css("background-position","0px 0px");
			}
		}
	);
	$(".sub").fadeTo(0, 0.9).hide(); // some alpha and then hide
	
}
