code: function hasFlash(){
      var name = "Shockwave Flash", mimeType = "application/x-shockwave-flash";
      
      if (!undef(navigator.plugins) && typeof navigator.plugins[name] == "object") {
          // adapted from the swfobject code
          var description = navigator.plugins[name].description;
          if (description && !undef(navigator.mimeTypes) && navigator.mimeTypes[mimeType] && navigator.mimeTypes[mimeType].enabledPlugin) {
              flashVersion = description.match(/\d+/g);
          }
      }
      if (!flashVersion) {
          var flash;
          try {
              flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
              flashVersion = Array.prototype.slice.call(flash.GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/), 1);
              flash = null;
          } 
          catch (notSupportedException) {
          }
      }
      if (!flashVersion) {
          return false;
      }
      var major = parseInt(flashVersion[0], 10), minor = parseInt(flashVersion[1], 10);
      HAS_FLASH_THROTTLED_BUG = major > 9 && minor > 0;
      return true;
  }
docs: end