rem: var menuItem = document.getElementById("offlineGoOfflineCmd"); 
context: function setOfflineUI(offline){  var broadcaster = document.getElementById("Communicator:WorkMode");  var panel = document.getElementById("offline-status");  var menuItem = document.getElementById("offlineGoOfflineCmd");  if (!broadcaster || !panel) return;  //Checking for a preference "network.online", if it's locked, disabling   // network icon and menu item  var prefService = Components.classes["@mozilla.org/preferences-service;1"];  prefService = prefService.getService();  prefService = prefService.QueryInterface(Components.interfaces.nsIPrefService);    var prefBranch = prefService.getBranch(null);    var offlineLocked = prefBranch.prefIsLocked("network.online");     if (offlineLocked ) {      broadcaster.setAttribute("disabled","true");  }  var bundle = srGetStrBundle("chrome://communicator/locale/utilityOverlay.properties");  if (offline)    {      broadcaster.setAttribute("offline", "true");      panel.setAttribute("tooltiptext", bundle.GetStringFromName("offlineTooltip"));      if (menuItem)        menuItem.setAttribute("checked", "true");    }  else    {      broadcaster.removeAttribute("offline");      panel.setAttribute("tooltiptext", bundle.GetStringFromName("onlineTooltip"));      if (menuItem)        broadcaster.removeAttribute("checked");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7302eb522eedbfe593094843e39477f01718af79/utilityOverlay.js/clean/xpfe/communicator/resources/content/utilityOverlay.js