//20010629
//beg@kognito.de, info@kognito.de
//Browsercheck atugen

function checkBrowser(){
	this.ver=navigator.appVersion;
	this.name=navigator.appName;
	this.agent=navigator.userAgent
	this.myID=document.getElementById?1:0;
	this.myTag = document.getElementsByTagName?1:0;
	this.defView = document.defaultView?1:0;
	this.elFP = document.elementFromPoint?1:0;
	
	this.ie5=(this.ver.indexOf("MSIE")>-1 && this.myID)?1:0;
	this.ie4=(document.all && !this.myID)?1:0;
	this.ie=this.ie4||this.ie5;
	this.ns5=(this.myID && parseInt(this.ver)>= 5) ?1:0;
	this.ns4=(this.name== "Netscape" && parseInt(navigator.appVersion)==4)?1:0;
	if (this.ns4){
	this.ns4old=(navigator.appVersion.substring (2,3)=="0")?1:0;
	}
	this.ns=this.ns4||this.ns5;
	this.mac=(navigator.appVersion.indexOf("Mac") > -1);
	this.myDom = (this.myID && this.myTag)?1:0
	this.opera=this.agent.indexOf("Opera")>-1
	this.opera50 = (this.myID && !this.myTag && !this.myDom)?1:0;
	this.opera51 = (this.myDom && !this.defView && !this.elFP)?1:0
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
	}
bw = new checkBrowser();
