var maxVersion = 9; var actualVersion = 0; var requiredVersion = 6; for (var i = 2; i <= maxVersion; i++) {eval("var flash"+i+"Installed = false;");} var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; if(isIE && isWin){ document.write(' \n'); document.write('on error resume next \n'); for (var i = 2; i <= maxVersion; i++) {eval("document.write('flash"+i+"Installed = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash."+i+"\"))) \\n');");} document.write('<\/SCR' + 'IPT\> \n'); } for (var i = 2; i <= maxVersion; i++) {if (eval("flash" + i + "Installed") == true) actualVersion = i;} if (navigator.plugins) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description; var actualVersion = parseInt(flashDescription.substring(16)); } } if (actualVersion>=requiredVersion){ // Output flash object document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); } else { document.write("
The animation on this page requires Flash Player "+requiredVersion+".
To install it, click here. You can continue to use this site without installing Flash Player.
"); if (actualVersion==0) { document.write("You do not have flash installed."); } else { document.write("You have version "+actualVersion+" installed"); } }