//Browser Name : navName
//Platform Name : navigator.platform
//Browser Version : brVer
//Browser number : brNum

function objBrowser(){
	var b = navigator.appName.toLowerCase();
	var v = navigator.appVersion.toLowerCase();
	var p = navigator.userAgent.toLowerCase();

	this.navigator = (b=='netscape')?'ns':(b=='microsoft internet explorer')?'ie':'other'
	if(this.navigator == 'ns') this.version = parseFloat(v)
	else if(this.navigator == 'ie')	this.version = (v.indexOf('msie 5.5')>=0)?55:(v.indexOf('msie 5')>=0)?5:(v.indexOf('msie 4')>=0)?4:0
	this.platform = (p.indexOf('win')>=0)?'win32':(p.indexOf('mac')>=0)?'mac':'other'
	this.name = this.navigator+this.version
	this.style = (this.name == 'ns4')?'':'.style'
}
var browser = new objBrowser()

