//drop down code

var inmenu=false;
var lastmenu=0;
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";
}
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 + "');",100);
}
function Highlight(menu) {
   if (!document.getElementById) return;
   inmenu=true;
   lastmenu=menu;
}
function UnHighlight(menu) {
   if (!document.getElementById) return;
   Timeout(menu);
}

function cssHighlight(square) {
    obj=document.getElementById(square);
	obj.style.color="#d30000";
	obj.style.backgroundColor="#eeeeee";
}
function cssUnhighlight(square) {
    obj=document.getElementById(square);
	obj.style.color="#5d5b52";
	obj.style.backgroundColor="#ffffff";
}

//-->