// browser check, yes I still use one! It's only for crappy IE anyways... // All browser sniffing is limited to the init() function only. function check() { this.dom = document.getElementsByTagName( "body" ) ? 1 : 0; this.agent = navigator.userAgent.toLowerCase(); this.ie5 = ( this.agent.indexOf( "msie 5" ) > -1 && !this.op5 && !this.op6 ); this.ie55 = ( this.ie5 && this.agent.indexOf( "msie 5.5" )> -1 ); this.ie6 = ( this.agent.indexOf( "msie 6" ) > -1 && !this.op5 && !this.op6 ); this.ie = ( this.ie5 || this.ie55 || this.ie6 ); this.ns7 = ( this.agent.indexOf( "netscape/7" ) > -1 ); this.ns6 = ( this.agent.indexOf( "netscape6" ) > -1 ); this.ns = ( this.ns6 || this.ns7 ); return this; } var got = new check();