/* # browser_check.js Version 2.1 # ______ # NOTES: # To edit this code correctly please check the following options in your editor: # - TAB Stop: 2 # - Block Indent Step Size: 2 # ____________ # SCRIPT CODE: */ function browserCheck() { this.js = 0.0; // convert all characters to lowercase to simplify testing var agent = navigator.userAgent.toLowerCase(); /* this.agent = navigator.userAgent; var version = parseFloat(navigator.appVersion); this.appVersion = navigator.appVersion; */ /* # ___________ # GET VENDOR: */ var vendor = (agent.indexOf("opera") != -1) ? "opera" : (agent.indexOf("msie") != -1) ? "ie" : (agent.indexOf("firefox") != -1) ? "nn" : (agent.indexOf("mozilla") != -1) ? "nn" : null; if( !vendor ){ return; } eval( "this."+ vendor +" = true;" ); /* # _____________ # GET VERSION: */ function _get_ie_minor() { var split = agent.split(" "); for( var i=0; i= "+ version +"){"+ "if( this.major == "+ version +")"+ "this."+ vendor + version +" = true;"+ "this."+ vendor + version +"up = true;"+ /* "this."+ vendor + version +" = this.major;"+ "this."+ vendor + version +"up = this.major;"+ */ "version++;"+ "} "+ "else{ version = false; }" ); } eval( "delete this._get_"+ vendor +"_minor" ); /* # _____________ # GET PLATFORM: */ if (agent.indexOf("win")!=-1 || agent.indexOf("16bit")!=-1) { var platform = (agent.indexOf("windows nt 5.1")!=-1 || agent.indexOf("windows xp")!=-1) ? "winXP" : (agent.indexOf("windows nt 5.0")!=-1) ? "win2K" : (agent.indexOf("win 9x 4.90")!=-1) ? "winME" : (agent.indexOf("winnt")!=-1 || agent.indexOf("windows nt")!=-1) ? "winNT" : (agent.indexOf("win98")!=-1 || agent.indexOf("windows 98")!=-1) ? "win98" : (agent.indexOf("win95")!=-1 || agent.indexOf("windows 95")!=-1) ? "win95" : null; this.win = platform; } else if (agent.indexOf("mac")!=-1) { var platform = (agent.indexOf("68k")!=-1 || agent.indexOf("68000")!=-1) ? "mac68K" : (agent.indexOf("ppc")!=-1 || agent.indexOf("powerpc")!=-1) ? "macPPC" : null; this.mac = platform; } else if (agent.indexOf("sunos") != -1) { var platform = (agent.indexOf("sunos 5") != -1) ? "sun5" : (agent.indexOf("sunos 4") != -1) ? "sun4" : (agent.indexOf("i86") != -1) ? "sunI86" : null; this.sun = platform; } if( platform ) eval( "this."+ platform +" = true;" ); } is = new browserCheck(); /* # _______________ # GET JS VERSION: */ var js = 0.0; for( var i=0; i<=6; i++ ) document.write( "