function setBrowserVersion() 
{ 
    var b = navigator.appName
    if (b=="Netscape") this.b = "ns"
    else if (b=="Microsoft Internet Explorer") this.b = "ie"
    else this.b = b
  
    this.v = parseInt(navigator.appVersion)
    if (this.b=="ns" && this.v>=4)
    {
      document.LOGON.VERSION.value="NS"
    }
    if (this.b=="ns" && this.v==4)
    {
      document.LOGON.VERSION.value="NS4"
    }
    if (this.b=="ns" && this.v==5)
    {
      document.LOGON.VERSION.value="NS5"
    }
    if (this.b=="ie" && this.v>=4)
    {
      document.LOGON.VERSION.value="IE"
    }
    if (navigator.userAgent.indexOf('MSIE 4')>0)
    {
      document.LOGON.VERSION.value="IE4"
    }
    if (navigator.userAgent.indexOf('MSIE 5')>0)
    {
      document.LOGON.VERSION.value="IE5"
    }
    if (navigator.userAgent.indexOf('MSIE 6')>0)
    {
      document.LOGON.VERSION.value="IE6"
    }
if (document.LOGON.VERSION.value !== "IE5" 
 && document.LOGON.VERSION.value !== "IE4"
 && document.LOGON.VERSION.value !== "IE6"
 && document.LOGON.VERSION.value !== "NS4"
 && document.LOGON.VERSION.value !== "NS5"){
   alert('You have a unsupported browser for this application, continuing will cause errors. Please download the latest browser from Netscape or Microsoft before continuing.')}
}

var browser = navigator.appName;
var version = parseInt(navigator.appVersion);
var clientRolloverCapable=false;
var loaded=false;
//detect browser
if ((browser =="Netscape" && version >= 3)||
    (browser.indexOf("Microsoft")!=-1&& version>= 4)) {
 clientRolloverCapable=true;
}

function addOffsetImage(imageSrc)
{
 var offsetImage=new Image();
     offsetImage.src=imageSrc;
}
function switchImage(imageName,imageSrc)
{
 if(clientRolloverCapable){
        self.document.images[imageName].src=imageSrc;
 }
}

