// This section handles the dynamic display of rollover menu items.
  function showHide(object, visibility){
    try {
      object.style.display=(visibility=="show")?"inline":"none"
    } catch (err) {
      // ignore possible error when page isn’t completely rendered yet
    }
}
 
function hideAll(){
  showHide(document.getElementById("products"),"hide");
  showHide(document.getElementById("about"),"hide");
  showHide(document.getElementById("help"),"hide");
  hideDD("show");
}

function hideDD(visibility){
  for (i = 0; i < document.forms[0].elements.length; i++) {
    if (document.forms[0].elements[i].className == "formdd") {
      showHide(document.forms[0].elements[i], visibility);
    }
  }
}
 
// This section handles the timeout

function startTimer(){
  timerID = window.setTimeout("hideAll()",1000);
  return timerID;
}
 
function stopTimer(timerID){
  window.clearTimeout(timerID)
}

// This section handles the page flip
  var timerID;

  function flipPage(pagename,external){
    if(external)
      window.open(pagename);
    else
      document.location = pagename;
  }
  function setClass(submenu,classname){
    if(!submenu.current){
      submenu.className = classname
    }
  }
