window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var menuActive = 0
 var menuOn = 0
 var onLayer
 var timeOn = null
 var loaded = 0


// LAYER SWITCHING CODE
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
  layerStyleRef="layer.";
  layerRef="document.layers";
  styleSwitch="";
  }else{
  layerStyleRef="layer.style.";
  layerRef="document.all";
  styleSwitch=".style";
 }
}

 
function layershow_h(){
   var i, visStr, args, theObj;
   args = layershow_h.arguments;
   
   for (i=0; i<(args.length-2); i+=3) {
      visStr   = args[i+2];
  
      if (navigator.appName == 'Netscape' && document.layers != null) {
          theObj = eval(args[i]);
          if (theObj) theObj.display = visStr;
      } else if (document.all != null) {
          if (visStr == 'show') visStr = 'block';
          if (visStr == 'hide') visStr = 'none';
          theObj = eval(args[i+1]);
          if (theObj) theObj.style.display = visStr;
      }
   }
}

  
 
// SHOW MENU
function showLayer_h(layerName){
if (NS4 || IE4) {
 if (timeOn != null) {
  clearTimeout(timeOn)
  hideLayer_h(onLayer)
 }
 if (NS4 || IE4) {
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');
}
 onLayer = layerName
 }
}

// HIDE MENU
function hideLayer_h(layerName){
 if (menuActive == 0) {
  if (NS4 || IE4) {
   eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="none"');
  }
 }
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer_h() {
menuActive=0
 timeOn = setTimeout("btnOut_h()",500)
}

// BUTTON MOUSE OUT
function btnOut_h(layerName) {
menuActive=0
 if (menuActive == 0) {
  hideLayer_h(onLayer)
  }
}

// MENU MOUSE OVER  
function menuOver_h(itemName) {
 clearTimeout(timeOn)
 menuActive = 1
}

// MENU MOUSE OUT 
function menuOut_h(itemName) {
 menuActive = 0 
  timeOn = setTimeout("hideLayer_h(onLayer)", 400)
 }

