<!--
var numofitems = 4;  // the number of menus items - 4 are used by Odyssey in particular
var timerID = null; // sets the timeout id to null - note this variable must be global else it becomes erratic

//menu constructor
function menu(thisitem,startstate){ // thisitem is the menu number of the subglobal navigation links
  this.thediv = document.getElementById("subglobal"+thisitem);
  this.thediv.style.visibility = startstate;
}

//menu methods
function ehandler(theobj){
if (timerID){ // checks to see if there is already a timeout set - if so resets it
  window.clearTimeout(timerID);
}
  for (var i=1; i<= numofitems; i++){
   eval("menuitem"+i+".thediv").style.visibility="hidden";
  }
  theobj.thediv.style.visibility="visible";
  timerID = window.setTimeout("closeallsubnav()", 5000); // sets a timeout of 5 seconds before closing all subnav layers
}

function closeallsubnav(){ // closes all of the subglobal navigation links - similar to above but global link specific
for (var i=1; i<= numofitems; i++){
      eval('menuitem'+i+'.thediv').style.visibility='hidden';
    }
}
// -->
