function BrowserCheck() {
	var n = navigator;
	var d = document;
	var v = n.appVersion;
	var ua = n.userAgent;
	
	this.IE = (ua.indexOf('MSIE') > -1)
	this.NS = (n.appName.indexOf('Netscape') > -1)
	this.MZ = (ua.indexOf('Gecko') > -1)
	this.OP = (ua.indexOf('Opera') > -1)
	
	this.IE4 = (d.all && !d.getElementById) ? true : false;
	this.IE4UP = (this.IE &&(d.all || d.getElementById)) ? true : false;
	this.IE5 = (ua.indexOf('MSIE 5.0') > -1)
	this.IE55 = (ua.indexOf('MSIE 5.5') > -1)
	this.IE6 = (ua.indexOf('MSIE 6.0') > -1)
	this.NS4 = (this.NS && v.indexOf("4.") > -1) ? true : false;
	this.NS6 = (this.NS && d.getElementById) ? true : false;
	this.DOM = (d.getElementById && d.createElement) ? true : false;
	this.OP5 = (this.OP && ua.indexOf('5.') > -1)
	
	this.MAC = (n.platform.indexOf('Mac') > -1)
	this.WIN = (n.platform.indexOf('Win') > -1)
}
is = new BrowserCheck();
