//javascript code to detect a flash plugin. function test_flash(){ var mm = 'Macromedia.'; var messages = { ok : '', //say nothing old : 'Your Flash plugin is too old. You will need to download a new version from ' + mm + '', broken : 'Your Flash plugin is oddly configured. You may need to reinstall it, or download a new one from ' + mm + '', absent : 'You will need a Flash player from ' + mm + ' to use UpStage' } var np = navigator.plugins; if (np && np.length && np["Shockwave Flash"]){ var fp = np["Shockwave Flash"]; var f = 0; for (var n=0; n < fp.length; n++){ var m = fp[n]; f |= (m && m.enabledPlugin && (m.suffixes.indexOf("swf") != -1) && navigator.mimeTypes["application/x-shockwave-flash"] != null); } if (f){ var ws = fp.description.split(" "); for (var w in ws){ var v = parseInt(ws[w]); if (v){ //document.write("Has Flash version "+ v); if (v >= 6){ document.write(messages.ok); } else{ document.write(messages.old); } } } } else{ document.write(messages.broken); } } else{ document.write(messages.absent); } }