

window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS6 = (bName == "Netscape" && bVer >= 5);
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 onLayer = null

if (NS4 || IE4) {
     if (navigator.appName == "Netscape" && !NS6) {
         layerStyleRef="layer.";
         layerRef="document.layers";
         styleSwitch="";
         document.captureEvents(Event.MOUSEDOWN);                	
         document.onmousedown = hideLayertimer;
     } else {
         layerStyleRef="layer.style.";
         layerRef="document.all";
         styleSwitch=".style";
         document.onmousedown = hideLayertimer;
     }
} else {
    vHrefPath = "";
    vImages = "";
    vDivTag = "";
}															
 															
// SHOW MENU onmouseover
function showLayer(layerName){
    if (layerName == null) {
        if ((NS4 || IE4 || NS6) && (onLayer != null)) {
            hideLayer(onLayer);
        }
        onLayer = null;
    } else {
        if (NS4 || IE4 || NS6) {
            if (onLayer != null) {
                hideLayer(onLayer);
            }
            if (NS4 || IE4 ) {
                eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');
            } else if(NS6){
                var mydiv = document.getElementById(layerName);
                mydiv.style.display = 'block';
            } 
        onLayer = layerName;
        }
    }
}

// HIDE MENU
function hideLayer(OpenLayerName){
    if ((NS4 || IE4) && OpenLayerName != null) {
        eval(layerRef+'["'+OpenLayerName+'"]'+styleSwitch+'.display="none"');
    } else if (NS6 && OpenLayerName != null) {
                var mydiv = document.getElementById(OpenLayerName);
                mydiv.style.display = 'none';
    } 
}

// TIMER FOR HIDE MENU
function hideLayertimer() {
    setTimeout("hideLayer(onLayer)",500);
}