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";
}

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 + "');",250);
}

function Highlight(menu,item) {
   if (!document.getElementById) return;
   inmenu=true;
   lastmenu=menu;
}

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








function detectDom()
{
  if (!document.getElementById)
  {
    window.alert("This site was designed using modern web standards.  It appears you are using an older browser, and certain sections of this site may not function correctly.  For optimal viewing, please ensure you are using the latest version of your browser.  Thank you.");
  }
}







function showHideContent(id) 
{
  var theDiv = document.getElementById(id);
  
  if (theDiv.style.display == 'none')
    theDiv.style.display = 'block';
  else
    theDiv.style.display = 'none';
}


 


