rem: function init() {  helpWindow = document.getElementById("help"); helpSearchPanel = document.getElementById("help-search-panel"); helpTocPanel = document.getElementById("help-toc-panel"); helpIndexPanel = document.getElementById("help-index-panel"); helpGlossaryPanel = document.getElementById("help-glossary-panel"); helpBrowser = document.getElementById("help-content");   var helpTopic = defaultTopic; if ("arguments" in window && window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) { helpFileURI = window.arguments[0].GetString(0); helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); helpTopic = window.arguments[0].GetString(1); }  loadHelpRDF();  displayTopic(helpTopic);   var sessionHistory =  Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory);  window.XULBrowserWindow = new nsHelpStatusHandler();   const interfaceRequestor = helpBrowser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor); const webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress); webProgress.addProgressListener(window.XULBrowserWindow, Components.interfaces.nsIWebProgress.NOTIFY_ALL);   showPanel('help-toc'); } 
add: init : function() { this.throbberElement = document.getElementById("navigator-throbber"); }, 
context: function init() {  //cache panel references.  helpWindow = document.getElementById("help");  helpSearchPanel = document.getElementById("help-search-panel");  helpTocPanel = document.getElementById("help-toc-panel");  helpIndexPanel = document.getElementById("help-index-panel");  helpGlossaryPanel = document.getElementById("help-glossary-panel");  helpBrowser = document.getElementById("help-content");  // Get the help content pack, base URL, and help topic  var helpTopic = defaultTopic;  if ("arguments" in window && window.arguments[0] instanceof Components.interfaces.nsIDialogParamBlock) {    helpFileURI = window.arguments[0].GetString(0);    helpBaseURI = helpFileURI.substring(0, helpFileURI.lastIndexOf("/")+1); // trailing "/" included.    helpTopic = window.arguments[0].GetString(1);  }  loadHelpRDF();  displayTopic(helpTopic);  // Initalize History.  var sessionHistory =  Components.classes["@mozilla.org/browser/shistory;1"]                                  .createInstance(Components.interfaces.nsISHistory);  window.XULBrowserWindow = new nsHelpStatusHandler();  // Hook up UI through Progress Listener  const interfaceRequestor = helpBrowser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor);  const webProgress = interfaceRequestor.getInterface(Components.interfaces.nsIWebProgress);  webProgress.addProgressListener(window.XULBrowserWindow, Components.interfaces.nsIWebProgress.NOTIFY_ALL);  //Always show the Table of Contents sidebar at startup.  showPanel('help-toc');}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/567b29c470738bf7c7299afb8ff7102351568f0c/help.js/clean/extensions/help/resources/content/help.js