var inmenu=false;
var lastmenu=0;
var timeoutdelay = 1000;
var highlightcolor = "#cccccc";
var menucolor = "white";

function Menu(current) {
   if (!document.getElementById) return;
   inmenu=true;
   oldmenu=lastmenu;
   lastmenu=current;
   if (oldmenu) Erase(oldmenu);
   box=document.getElementById(current);
   
   box.style.visibility="visible";
   box.style.backgroundColor= menucolor;
   
}

function Erase(current) {
	
   if (!document.getElementById) return;
	 if (inmenu && lastmenu==current) {
		 return;
	 }
   
   box=document.getElementById(current);
   box.style.visibility="hidden";
}
function Timeout(current) {
   inmenu=false;
   window.setTimeout("Erase('" + current + "')", timeoutdelay) ;
}
function Highlight(menu,item) {
   if (!document.getElementById) return;
   inmenu=true;
   lastmenu=menu;
   obj=document.getElementById(item);
   obj.style.backgroundColor=highlightcolor;
}
function UnHighlight(menu,item) {
   if (!document.getElementById) return;
   
   obj=document.getElementById(item);
   obj.style.backgroundColor=menucolor;
}
//*** © 2007 Trioro Inc. ***