var isFlashEnabled = (function() { try { var fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); if (fo) { return true; } return false; } catch(ex) { return (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : false; } })();