	var MLBHome = MLBHome || {};
	bam.extend(MLBHome, {
		Navigation: {
			Domain: "",
			MaxWidth: 990,
			MenuFadeout: 500,
			GotoTeamSite: function(team) {
				if(team != "#"){window.location.href = "http://" + team + ".com";}
			}			
		}
	});
	
	function resetMenues() {
		$(".mhHeader").each(function() {
			$(this).removeClass("mhHeaderHi").siblings(".mhContent").hide();
		});
		showAllDropDowns();
	}
	
	function highlightCurrent() {
		$("#" + section + " .mhHeader").addClass("mhHeaderHi");
	}
	
	function hideAllDropDowns() {
		if($.browser.msie && $.browser.version < 7 ) {
			$("#content select").hide();
		}
	}
	
	function showAllDropDowns() {
		if($.browser.msie && $.browser.version < 7 ) {
			$("#content select").show();
		}
	}
	
	function initMLBHeader() {
		bam.imports(bam.dom);
		//Determine right position and offset. Reposition if the tray is too wide
		if(!!$("#metaWrap")[0]) MLBHome.Navigation.MaxWidth = bam.dom.getPosition($("#metaWrap")[0]).Left + 990;
		$(".mhContent").each(function() { 			
			var tray = $(this);
			var _position = bam.dom.getPosition(tray[0]);
			//var rightEdge = tray.offset().left + tray[0].clientWidth;			
			var rightEdge = _position.Left + tray[0].clientWidth;				
			if (rightEdge >= MLBHome.Navigation.MaxWidth) {
				tray.css("margin-left", (MLBHome.Navigation.MaxWidth - rightEdge));
			}		
		});	
		
		//show the current section
		highlightCurrent();	
			
		var TIMER_ID;		
		$(".mhHeader").each(function() { 
			$(this).mouseover(function() { 
				clearTimeout(TIMER_ID);		
				var menuTitle = $(this);				
				var mhContent = menuTitle.siblings(".mhContent");
				var mhTray = menuTitle.parent();
				//Fill mhContent	
				resetMenues();	//Hide all
				hideAllDropDowns(); //Hides all drop-downs in IE
				if(mhContent.length > 0)mhContent.css("visibility", "visible").fadeIn("normal");
				//Hilite menu item
				menuTitle.hover(function(){$(this).addClass("mhHeaderHi");}, function(){$(this).removeClass("mhHeaderHi");});
				//Show/Hide automation 
				mhTray.mouseout(function() {
					clearTimeout(TIMER_ID);					
					TIMER_ID = setTimeout(function(){mhContent.fadeOut("slow", function(){menuTitle.removeClass("mhHeaderHi");highlightCurrent();});showAllDropDowns();}, MLBHome.Navigation.MenuFadeout);					
				});
				//Prevents Menu from closing when mouse is out of nav and on the menu itself
				mhTray.mouseover(function() {					
					clearTimeout(TIMER_ID);menuTitle.addClass("mhHeaderHi");
				});		
			})						
		});
	}
	
	initMLBHeader();