function Browser(){
	this.NavName = navigator.appName;
	this.NavAnt = navigator.userAgent;
	this.NavVer = navigator.appVersion;
	this.NavPlug = navigator.plugins;
	this.NavVsub = navigator.vendorSub;
	this.NavVerI = parseInt(this.NavVer);
	this.NavVerF = parseFloat(this.NavVer);
	this.os = "";
	this.osversion = "";
	this.type = "";
	this.version = "";
	this.AppleWebKit419Later = false;
	this.webkit = navigator.userAgent.match("AppleWebKit/(\\d+(\\.\\d+)*)")

	if(this.webkit) {
		this.AppleWebKit = this.webkit[1];
		webkitVersion = this.AppleWebKit.split('.');
		if (Number(webkitVersion[0]) > 419) {
			this.AppleWebKit419Later = true;
		} else if (Number(webkitVersion[0]) == 419) {
			if (Number(webkitVersion[1]) >= 3) {
				this.AppleWebKit419Later = true;
			} else {
				this.AppleWebKit419Later = false;
			}
		} else {
			this.AppleWebKit419Later = false;
		}
	}
	
	if(this.NavAnt.indexOf("Win",0) != -1){
		this.os = "WIN";
		this.osversion = "WIN";
	}
	if(this.NavAnt.match(/NT 5\.1|XP/)){
		this.os = "WIN";
		this.osversion = "XP";
	}
	if(this.NavAnt.match(/4\.90|ME/)){
		this.os = "WIN";
		this.osversion = "ME";
	}
	if(this.NavAnt.match(/NT 5\.0|2000/)){
		this.os = "WIN";
		this.osversion = "TK";
	}
	if(this.NavAnt.match(/NT 5\.0|WinNT/)){
		this.os = "WIN";
		this.osversion = "NT";
	}
	if(this.NavAnt.indexOf("Mac",0) != -1){
		this.os = "MAC";
		this.osversion = "MAC";
	}
	if(this.NavAnt.indexOf("68k",0)!=-1){
		this.os = "MAC";
		this.osversion = "MAC68K";
	}
	if(this.NavAnt.indexOf("X11",0) != -1){
		this.os = "UNIX";
		this.osversion = "UNIX";
	}
	if(this.NavAnt.indexOf("Planetweb",0) != -1){
		this.os = "EGB";
		this.osversion = "EGB";
	}

	if((this.NavAnt.indexOf("Mozilla/4") != -1 || this.NavAnt.indexOf("Netscape") != -1 || this.NavAnt.indexOf("Navigator") != -1)){
		this.type = "NN";
		this.version = "NN";
	}
	if(this.NavAnt.indexOf("Mozilla/4") != -1){
		this.type = "NN";
		this.version = "NN4";
	}
	if(this.NavAnt.indexOf("Netscape6/") != -1){
		this.type = "NN";
		this.version = "NN6";
	}
	if(this.NavAnt.indexOf("Netscape/7") != -1){
		this.type = "NN";
		this.version = "NN7";
	}
	if(this.NavAnt.indexOf("Navigator/8") != -1){
		this.type = "NN";
		this.version = "NN8";
	}
	if(this.NavAnt.indexOf("Navigator/9") != -1){
		this.type = "NN";
		this.version = "NN9";
	}

	if(this.NavAnt.indexOf("Microsoft Internet Explorer") != -1){
		this.type = "IE";
		this.version = "IE";
	}
	if(this.NavAnt.indexOf('MSIE 3')>0){
		this.type = "IE";
		this.version = "IE3";
	}
	if(this.NavVer.indexOf('MSIE 4')>0){
		this.type = "IE";
		this.version = "IE4";
	}
	if(this.NavVer.indexOf('MSIE 4.5')>0){
		this.type = "IE";
		this.version = "IE4.5";
	}
	if(this.NavAnt.indexOf('MSIE 5')>0){
		this.type = "IE";
		this.version = "IE5";
	}
	if(this.NavAnt.indexOf('MSIE 5.1')>0){
		this.type = "IE";
		this.version = "IE5.1";
	}
	if(this.NavAnt.indexOf('MSIE 5.2')>0){
		this.type = "IE";
		this.version = "IE5.2";
	}
	if(this.NavAnt.indexOf('MSIE 6')>0){
		this.type = "IE";
		this.version = "IE6";
	}
	if(this.NavAnt.indexOf('MSIE 7')>0){
		this.type = "IE";
		this.version = "IE7";
	}

	if(this.NavAnt.indexOf("Gecko") != -1){
		this.type = "GEK";
		this.version = "GEK";
	}
	if(this.NavAnt.indexOf("Safari",0) != -1){
		this.type = "SAF";
		this.version = "SAF";
	}
	if(this.NavAnt.indexOf("Firefox") != -1){
		this.type = "FF";
		this.version = "FF";
	}
	if(this.NavAnt.indexOf("Opera",0) != -1){
		this.type = "OPE";
		this.version = "OPE";
	}
	if(this.NavAnt.indexOf("iCab",0) != -1){
		this.type = "CAB";
		this.version = "CAB";
	}
}

var browser = new Browser();