var openSub = 0;
var menuHideDelay= -1;

function showSubmenu(id) {
clearTimeout(menuHideDelay);
if(openSub > 0 && openSub != id ) {
hideSubmenu(openSub);
}

document.getElementById('submenu'+id).style.visibility='visible'; openSub = id;
}

function hideSubmenu(id) {
document.getElementById('submenu'+id).style.visibility='hidden';
openSub = 0;
}

function delayHideSubmenu() {
if (openSub > 0) {
menuHideDelay = setTimeout("hideSubmenu("+openSub+")",700);
  }
    }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

