function getBrowser(){
this.navigator=navigator;
this.isIE=(navigator.appName=='Microsoft Internet Explorer');
this.isMozilla=(document.implementation&&document.implementation.createDocument)?true:false;
this.isNS=(navigator.appName=='Netscape');
this.isOpera=(this.navigator.userAgent.indexOf("Opera")!=-1);
this.isKonqueror=(this.navigator.userAgent.indexOf("Konqueror")!=-1);
this.isMac=(navigator.appVersion.indexOf("Mac")!=-1);
this.isSafari=(navigator.vendor)?navigator.vendor.match('Apple')!=null:false;
this.hasDOM=(document.getElementById)?true:false;
this.version=parseInt(navigator.appVersion);
if(this.isIE){this.ie4=(this.navigator.userAgent.indexOf('MSIE 4')>0);this.ie5=(this.navigator.userAgent.indexOf('MSIE 5')>0);
this.ie6=(this.navigator.userAgent.indexOf('MSIE 6')>0);if(this.ie5)this.version=5;if(this.ie6)this.version=6;}
if(this.isNS){this.ns4=(this.version==4);this.ns5=(this.version==5);this.ns6=(this.version==5);}}
browser=new getBrowser();
