﻿var gPersistMenu=false;
function showMenu(theObj) {
	document.getElementById(theObj).style.visibility='visible';
}

function onMenu(theObj) {
	document.getElementById(theObj).style.visibility='visible';
	gPersistMenu=true;
}

function offMenu(theObj) {
	document.getElementById(theObj).style.visibility='hidden';
	gPersistMenu=false;
}

function hideMenu(theObj) {
	if (!gPersistMenu) {setTimeout("document.getElementById('"+theObj+"').style.visibility='hidden'",1000);}
	else {setTimeout("hideMenu('"+theObj+"')",2000);}
}

