  if (typeof safebrowsing != "undefined") safebrowsing.setReportPhishingMenu();  
function buildHelpMenu(){  var updates =       Components.classes["@mozilla.org/updates/update-service;1"].      getService(Components.interfaces.nsIApplicationUpdateService);  var um =       Components.classes["@mozilla.org/updates/update-manager;1"].      getService(Components.interfaces.nsIUpdateManager);  // Disable the UI if the update enabled pref has been locked by the   // administrator or if we cannot update for some other reason  var checkForUpdates = document.getElementById("checkForUpdates");  var canUpdate = updates.canUpdate;  checkForUpdates.setAttribute("disabled", !canUpdate);  if (!canUpdate)    return;   var strings = document.getElementById("bundle_browser");  var activeUpdate = um.activeUpdate;    // If there's an active update, substitute its name into the label  // we show for this item, otherwise display a generic label.  function getStringWithUpdateName(key) {    if (activeUpdate && activeUpdate.name)      return strings.getFormattedString(key, [activeUpdate.name]);    return strings.getString(key + "Fallback");  }    // By default, show "Check for Updates..."  var key = "default";  if (activeUpdate) {    switch (activeUpdate.state) {    case "downloading":      // If we're downloading an update at present, show the text:      // "Downloading Firefox x.x..." otherwise we're paused, and show      // "Resume Downloading Firefox x.x..."      key = updates.isDownloading ? "downloading" : "resume";      break;    case "pending":      // If we're waiting for the user to restart, show: "Apply Downloaded      // Updates Now..."      key = "pending";      break;    }  }  checkForUpdates.label = getStringWithUpdateName("updatesItem_" + key);  if (um.activeUpdate && updates.isDownloading)    checkForUpdates.setAttribute("loading", "true");  else    checkForUpdates.removeAttribute("loading");}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/6bb67e0e788a81629a95ec5325f121e81d8682fe/utilityOverlay.js/buggy/browser/base/content/utilityOverlay.js