loaded = true;
top_menu_timer = false;

function startTimer() {
	if (loaded) {
		stopTimer();
		top_menu_timer = setTimeout( "defaultMenu();", 50 );
	}
}

function stopTimer() {
   if ( top_menu_timer ) {
		clearTimeout( top_menu_timer );
		top_menu_timer = null;
	}
}

function resetAllDrops()  {
	hideMenu( "mHouseLeague" );
	hideMenu( "mMerchandise" );
}

function showMenu( menuId ) {
	if (loaded) {
		stopTimer();
		resetAllDrops();
		showLayer( menuId );
	}
}

function defaultMenu() {
	resetAllDrops();
}

function hideMenu( menuId ) {
	hideLayer( menuId );

}

function showLayer( layerId )  {
	if (loaded) {
		document.getElementById( layerId ).style.visibility = "visible";
	}
}

function hideLayer( layerId )  {
	if (loaded) {
		document.getElementById( layerId ).style.visibility = "hidden";
	}
}

function menuImgOn( theLayer, imgName) {
	stopTimer();
}

function menuImgOff( theLayer, imgName) {
	startTimer();
}

