var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var IE4up = (bName == "Microsoft Internet Explorer" && bVer < 4.5);
var IE5 = (bName == "Microsoft Internet Explorer" && bVer >=5);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
var NS3 = (bName == "Netscape" && bVer < 4);

var NS4=document.layers;
var IE4=document.all;
var V5 =navigator.appVersion;
var V4 =navigator.appVersion;

var isV5 = (V5.indexOf("MSIE 5.0") != -1)

//LAYER SWITCHING CODE

     if (NS4 || IE4) {
        if (navigator.appName == "Netscape") {
                                layerStyleRef="layer.";
                                layerRef="document.layers";
                                styleSwitch=""; layerDoc=".document."
        }else{
                                layerStyleRef="layer.style.";
                                layerRef="document.all";
                                styleSwitch=".style"; layerDoc="."
                        }
                }
        

   function showLayer(layerName){
        if (NS4 || IE4) {
                eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
                } return false;
        }
        
   function hideLayer(layerName){
        if (NS4 || IE4) {
                eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
                } return false;      
        }


