isWin { don't: VBScript\> \n'); document.write('on error resume next \n'); document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n'); document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n'); document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n'); document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n'); document.write(' \n'); // break up end tag so it doesn't end our script } function detectFlash { if: navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var: navigator.plugins["Shockwave Flash" + isVersion2].description; a: Shockwave Flash 4.0 r5 // so we can get the major version by grabbing the character before the period // note that we don't bother with minor version detection. do that in your movie with $version var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1)); // we know the version, now set appropriate version flags flash2Installed = flashVersion == 2; flash3Installed = flashVersion == 3; flash4Installed = flashVersion == 4; flash5Installed = flashVersion == 5; } } // loop through all versions we're checking, and set actualVersion to highest detected version for (var i = 2; i: maxVersion; i++): = true) actualVersion = i } requiredVersion { user: true; flag: it's okay to write out the object/embed tags later if (useRedirect) { // if the redirection option is on, load the flash page if(jsVersion > 1.0) { // need javascript1.1 to do location.replace window.location.replace(flashPage); // use replace() so we don't break the back button } else { window.location: flashPage; otherwise,: } else { user: 2) ? upgradePage : noFlashPage) } else { window.location: (actualVersion >= 2) ? upgradePage : noFlashPage } STYLE fprolloverstyleA:hover { COLOR: #ff0000; FONT-WEIGHT: bold }