var inmenu=false;
var lastmenu=0;
function Menu(current,wide) {
   if (!document.getElementById) return;
   inmenu=true;
   oldmenu=lastmenu;
   lastmenu=current;
   if (oldmenu) Erase(oldmenu);
   m=document.getElementById("menu-" + current);
   box=document.getElementById(current);
   box.style.left= m.offsetLeft;
//   box.style.top= m.offsetTop + m.offsetHeight;
	 box.style.top=190;
   box.style.visibility="visible";
   box.style.width=wide;
}
function Erase(current) {
   if (!document.getElementById) return;
   if (inmenu && lastmenu==current) {
	  return;
   }
   m=document.getElementById("menu-" + current);
   box=document.getElementById(current);
   box.style.visibility="hidden";
}
function Timeout(current) {
   inmenu=false;
   window.setTimeout("Erase('" + current + "');",500);
}
function Highlight(menu,i) {
   if (!document.getElementById) return;
   inmenu=true;
   lastmenu=menu;
   obj=document.getElementById(i);
//   obj.style.backgroundColor="#eceff2";
	 txt=document.getElementById(i + "t");
	 txt.style.color="#005984";
}
function UnHighlight(menu,i) {
   if (!document.getElementById) return;
   Timeout(menu);
   obj=document.getElementById(i);
//   obj.style.backgroundColor="#aeb9c3";
	 txt=document.getElementById(i + "t");
	 txt.style.color="#000000";
}
function HiLiteText(item) {
   if (!document.getElementById) return;
   inmenu=true;
   obj=document.getElementById(item);
	 obj.style.color="#005984";
}
function UnHiLiteText(item) {
   if (!document.getElementById) return;
   inmenu=true;
   obj=document.getElementById(item);
	 obj.style.color="#000000";
}
function DisplayOn(current)
{
   if (!document.getElementById) return;
	 obj=document.getElementById(current);
//	 chars=obj.length;
//	 L=obj.offsetLeft;
//	 obj.style.left=L - ((chars *  3) / 2);
	 obj.style.letterSpacing="3px";
//	 obj.style.color="#0099ff";
	 obj.style.fontWeight="600";
}

function DisplayOff(curr)
{
   if (!document.getElementById) return;
//	 chars=obj.length;
//	 L=obj.offsetLeft;
//	 obj.style.left=L - ((chars /  3) * 2);
   obj=document.getElementById(curr);
	 obj.style.letterSpacing="normal";
//	 obj.style.color="#406CA0";
	 obj.style.fontWeight="500";
}

