var inmenu=false;
var lastmenu=0;
function Menu(current)
 {
  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.visibility="visible";
  box.style.left=m.offsetLeft + 6;
  switch(current)
   {
    case "tourney":
      box.style.width="163px";
     break;
    case "philosophy":
      box.style.width="213px";
     break;
    case "sports":
      box.style.width="155px";
     break;
    case "curricula":
      box.style.width="175px";
     break;
    case "arts":
      box.style.width="173px";
     break;
    case "give":
      box.style.width="173px";
     break;
    case "us":
      box.style.width="159px";
     break;
    default:
      box.style.width="0px";
   }
 }

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,item)
 {
  if (!document.getElementById) return;
  inmenu=true;
  lastmenu=menu;
  obj=document.getElementById(item);
 }

function UnHighlight(menu,item)
 {
  if (!document.getElementById) return;
  Timeout(menu);
  obj=document.getElementById(item);
 }

