//
Browser Sniffer (999)Browser Sniffer Javascript courtesy of Netscape, with some of my own modifications
function Is ()
{
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.nav2 = (this.nav && (this.major == 2))
this.nav3 = (this.nav && (this.major == 3))
this.nav4 = (this.nav && (this.major == 4))
// detect NN 4.0x and up
this.nav4up = this.nav && (this.major >= 4)
// detect NN 4.5 specifically
this.nav45 = (this.nav && (this.minor == 4.5))
this.navonly = (this.nav && (agt.indexOf(";nav") != -1))
this.ie = (agt.indexOf("msie") != -1)
this.ie3 = (this.ie && (this.major == 2))
// detect IE 3.02 specifically
this.ie302 = (agt.indexOf("msie 3.02") != -1)
this.ie4 = (this.ie && (this.major == 4))
// detect IE 4.0x and up
this.ie4up = this.ie && (this.major >= 4)
// detect IE 5 betas specifically
this.ie5beta = (agt.indexOf("msie 5") != -1)
// detect all versions of opera
this.opera = (agt.indexOf("opera") != -1)
// *** JAVASCRIPT VERSION CHECK ***
if (this.nav2 || this.ie3) this.js = 1.0
else if (this.nav3 || this.opera) this.js = 1.1
else if (this.nav4 || this.ie4) this.js = 1.2
else if ((this.nav && (this.minor > 4.05)) || (this.ie && (this.major > 4)))
this.js = 1.2
else this.js = 0.0 // HACK: always check for JS version with > or >=
// *** PLATFORM ***
this.win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )
this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1))
// is this a 16 bit compiled version?
this.win16 = ((agt.indexOf("win16")!=-1)
|| (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1)
|| (agt.indexOf("windows 16-bit")!=-1) )
this.win31 = (agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
(agt.indexOf("windows 16-bit")!=-1)
this.win98 = ((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1))
this.winnt = ((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1))
this.win32 = this.win95 || this.winnt || this.win98 ||
((this.major >= 4) && (navigator.platform =="Win32")) ||
(agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1)
this.os2 = (agt.indexOf("os/2")!=-1)
|| (navigator.appVersion.indexOf("OS/2")!=-1)
|| (agt.indexOf("ibm-webexplorer")!=-1)
this.mac = (agt.indexOf("mac")!=-1)
this.mac68k = this.mac && ((agt.indexOf("68k")!=-1) ||
(agt.indexOf("68000")!=-1))
this.macppc = this.mac && ((agt.indexOf("ppc")!=-1) ||
(agt.indexOf("powerpc")!=-1))
}
var is;
var isIE3Mac = false;
if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3))
isIE3Mac = true;
else
is = new Is();
// end of file