var inmenu=false
var lastmenu=0
function menu(current) {
  if (!document.getElementById) returen;
  inmenu=true;
  oldment=lastmenu;
  lastmenu=current;
  if (oldmenu) Erase(oldmenu);
  m=document.getElementById("menu -" + current);
  box=document.getElementById(current);
  box.style.left= m.offsetLeft;
  box.styletop = m.offsetTop + m.offsetHeight;
  box.style.visibility="visible";
  m.style.backgroundColor="#660099";
  box.style.backgroundColor="#660099";
  box.style.width="108px";
}
function Erase(current) {
  if (!document.getElementById) reurn;
  if (inmenu && lastmenu==current) {
    return;
  }
  m=document.getElementById("menu-" + current);
  box=document.getElementById(current);
  box.style.visibility="hidden";
  m.style.backroundColor="Silver";
}
function Timeout(current) {
  inmenu=false;
  window.setTimeout("Erase('" + current + "');",500) ;
}
function Highlight(menu,item) {
  if (!document.getElementById) return;
  inmenu=true;
  lastmenu=menu;
  obj=document.getElementById(item);
  obj.style.backgroundcolor="Silver";
}
function UnHighlight(menu,item) {
  if (!document.getElementById) return;
  Timeout(menu);
  obj=document.getElementById(item);
  obj.style.backgroundcolor="#660099";
}    