_d=document;
thebrowser = navigator.appName;
theversion = navigator.appVersion; 
var isIE4 = false;
if(thebrowser == "Microsoft Internet Explorer" && 
(theversion.lastIndexOf("4.") >= -1 || theversion.lastIndexOf("5.") >= -1))
{isIE4 = true}

var isDOM = ((document.getElementById && !isIE4) ? true : false); 
var isNS4 = (document.layers ? true : false);

function getRef(id) { 
        if (_d.layers) return _d.layers[id]
        else if (_d.getElementById(id)) return _d.getElementById(id)
        else if (_d.all[id]) return _d.all[id]
        
         }
function getSty(id,st) { 
        if (getRef(id).style) return getRef(id).style
         else return getRef(id)
        }
 
function cvVal(thisVal){
  if (isDOM || isIE4) {
     thisVal = thisVal.substring(0,thisVal.length - 2);
     }
  return thisVal;
}
function hlc_swap(imgname,imgsrc){ 
      document[imgname].src = eval(imgsrc+".src");
     }

