function cBrowser(){var userAgent=navigator.userAgent.toLowerCase()
this.version=parseInt(navigator.appVersion)
this.subVersion=parseFloat(navigator.appVersion)
this.mozVersion=0
this.ns=((userAgent.indexOf('mozilla')!=-1)&&((userAgent.indexOf('spoofer')==-1)&&(userAgent.indexOf('compatible')==-1)))
this.ns2=(this.ns&&(this.version==2))
this.ns3=(this.ns&&(this.version==3))
this.ns4b=(this.ns&&(this.subVersion<4.04))
this.ns4=(this.ns&&(this.version==4))
this.ns5=(this.ns&&(this.version==5))
this.ie=(userAgent.indexOf('msie')!=-1)
this.ie3=(this.ie&&(this.version==2))
this.ie4=(this.ie&&(this.version==4)&&(userAgent.indexOf('msie 4.')!=-1))
this.ie5=(this.ie&&(this.version==4)&&(userAgent.indexOf('msie 5.0')!=-1))
this.ie55=(this.ie&&(this.version==4)&&(userAgent.indexOf('msie 5.5')!=-1))
this.ie6=(this.ie&&(this.version==4)&&(userAgent.indexOf('msie 6.0')!=-1))
this.op=(userAgent.indexOf('opera')!=-1)
this.opv=(parseInt(userAgent.substring(userAgent.indexOf('opera')+6)))
this.op7=(this.op&&this.opv>=7)
this.chrome=(userAgent.indexOf('chrome')!=-1);this.safari=(userAgent.indexOf('safari')!=-1);this.win=(userAgent.indexOf('win')!=-1)
this.mac=(userAgent.indexOf('mac')!=-1)
this.unix=(userAgent.indexOf('x11')!=-1)
this.name=navigator.appName
if(this.ns5)
{var hMozVer=new RegExp('rv:([0-9\.]*)','ig')
hMozVer.exec(navigator.userAgent)
this.mozVersion=parseFloat(RegExp.$1)}
this.dom=this.ns5||this.ie5||this.ie55||this.ie6||this.op7}
var bw=new cBrowser()
