function Browser() {
	this.name = navigator.appName;
	this.agt=navigator.userAgent.toLowerCase();
	this.version = navigator.appVersion.substring(0,4);
	this.major = parseInt(navigator.appVersion);
	this.platform = navigator.platform;
	this.javaEnabled = navigator.javaEnabled();
	this.cookieEnabled = navigator.cookieEnabled;
	this.screenWidth = screen.width;
	this.screenHeight = screen.height;
	
	this.dom=(document.getElementById)?1:0;
	this.ns=(document.layers);
	this.ns4up=(this.ns && this.major >=4);
	this.ns6=(this.dom&&navigator.appName=="Netscape");
	this.op=this.agt.indexOf('opera')!=-1;
	this.ie=(document.all);
	this.ie4=(document.all&&!this.dom)?1:0;
	this.ie4up=(this.ie && this.major >= 4);
	this.ie5up=(document.all&&this.dom);
	this.win=((this.agt.indexOf("win")!=-1) || (this.agt.indexOf("16bit")!=-1));
	this.mac=(this.agt.indexOf("mac")!=-1);
}

var browser = new Browser();
