//  Henderson Library API functions
function Is ()
{  //Check the version of the browser, platform and js compatibility. 
    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase()

    // *** BROWSER VERSION ***
    this.major = parseInt(navigator.appVersion)
    this.minor = parseFloat(navigator.appVersion)

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)))
    this.nav3 = (this.nav && (this.major == 3))
    this.nav3up = (this.nav && (this.major >= 3))
    this.nav4 = (this.nav && (this.major == 4))
    this.nav4up = this.nav && (this.major >= 4)

    this.ie   = (agt.indexOf("msie") != -1)
    this.ie3  = (this.ie && (this.major == 2))
    this.ie4  = (this.ie && (this.major == 4))
    this.ie4up  = this.ie  && (this.major >= 4)

    //Check version of Internet Explorer for MAC
    if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) &&  (parseInt(navigator.appVersion)==3))
       { //MAC IExplorer 3 is like IExplorer 4
         this.ie4 = true;
         this.ie4up = true;
       }

    this.opera = (agt.indexOf("opera") != -1)
     
    // *** PLATFORM ***
    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
    this.mac    = (agt.indexOf("mac")!=-1)
    this.sun   = (agt.indexOf("sunos")!=-1)
    this.aix   = (agt.indexOf("aix")  !=-1)      // IBM
    this.linux = (agt.indexOf("inux")!=-1)
    this.sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1)
    this.unix  = (agt.indexOf("x11")!=-1) || this.sun || this.sco || this.aix || this.linux
}

//Main Program
var is;
is = new Is(); 

