FlashMode = 0; plugin_version = 0; if (navigator.plugins && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash"]) { var plugin_version = 0; var words = navigator.plugins["Shockwave Flash"].description.split(" "); for (var i = 0; i < words.length; ++i) { if (isNaN(parseInt(words[i]))) continue; plugin_version = words[i]; } if (plugin_version >= 6) { var plugin = navigator.plugins["Shockwave Flash"]; var numTypes = plugin.length; for (j = 0; j < numTypes; j++) { mimetype = plugin[j]; if (mimetype) { if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1)) FlashMode = 1; // Mac wierdness if (navigator.mimeTypes["application/x-shockwave-flash"] == null) FlashMode = 0; } } } } } else { var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; // true if we're on ie var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true if we're on windows if(isIE && isWin){ var YesFlash = false; document.write(' \n'); document.write('on error resume next \n'); document.write('YesFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n'); document.write('YesFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n'); document.write('YesFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n'); document.write('YesFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n'); document.write(' \n'); // break up end tag so it doesn't end our script if (YesFlash) { FlashMode = 1; plugin_version = 6; } } else { FlashMode = 0; plugin_version = 0; } } // text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5