// Netventure, http://www.netventure.pl/

function browserCheck() {
	this.name = navigator.userAgent.toLowerCase();
	this.version = parseInt(navigator.appVersion);
	this.fullversion = parseFloat(navigator.appVersion);
	this.ie = (this.name.indexOf('msie') != -1);
	this.ie3 = (this.ie && (this.version == 2));
	this.ie4 = (this.ie && (this.version == 4));
	this.ie5 = (this.ie && (this.version == 5));
	this.ie4up = (this.ie && (this.version >= 4));
	this.ie5up = (this.ie && (this.version >= 5));
	this.ns  = ((this.name.indexOf('mozilla') != -1) && ((this.name.indexOf('spoofer') == -1) && (this.name.indexOf('compatible') == -1)));
	this.ns2 = (this.ns && (this.version == 2));
	this.ns3 = (this.ns && (this.version == 3));
	this.ns4 = (this.ns && (this.version == 4));
	this.ns5 = (this.ns && (this.version == 5));
	this.ns3up = (this.ns && (this.version >= 3));
	this.ns4up = (this.ns && (this.version >= 4));
	this.ns5up = (this.ns && (this.version >= 5));
	this.opera = (this.name.indexOf('opera') != -1);
	if (this.ns2 || this.ie3) this.jsv = 1.0
	else if (this.ns3 || this.opera) this.jsv = 1.1
	else if (this.ns4 || this.ie4) this.jsv = 1.2
	else if ((this.ns && (this.fullversion > 4.05)) || (this.ie && (this.version > 4))) this.jsv = 1.2;
	this.js = (this.ie4up || this.ns3up);
}
is = new browserCheck();