/*
* BrowserCheck class
* ====================
* Author: Barak Ulmann
* based on the DynLayer technology. learn more about the DynDuo and cross-browser dhtml in:
* http://www.dansteinman.com/dynduo/
* Last Updated: October 5th 2003
*
* -- not final --
*/
function BrowserCheck()
{
//ns6.1 productSub = 20010726
//ns6.2 productSub = 20020508
//ns7 productSub = 20030208
//alert(parseInt(navigator.productSub))
this.ns = (navigator.appName == "Netscape")
this.ie = (navigator.appName == "Microsoft Internet Explorer")
if (this.ns)
this.version = parseInt(navigator.appVersion)
else if (this.ie)
this.version = parseFloat(navigator.appVersion.split('MSIE')[1])
this.ns4 = (document.layers)? true: false
this.ns5 = (this.ns && this.version == 5) // <==> ns 6.1 and above
this.ns61 = (this.ns5 && parseInt(navigator.productSub) < 20020000)
this.ns62 = (this.ns5 && 20020000 < parseInt(navigator.productSub) && 
parseInt(navigator.productSub) < 20030000)
this.ff = (navigator.userAgent.indexOf("Firefox") != -1) // FireFox
this.ie4 = (!document.getElementById && document.all)
this.ie5 = (navigator.appVersion.indexOf("MSIE 5.0") != -1)
this.ie55 = (navigator.appVersion.indexOf("MSIE 5.5") != -1)
this.ie6 = (navigator.appVersion.indexOf("MSIE 6.0") != -1)
}
var browser = new BrowserCheck()
