rem:  var width = document.documentElement.getAttribute("width"); var height = document.documentElement.getAttribute("height"); window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2); 
add:  var sessionHistory =  Components.classes["@mozilla.org/browser/shistory;1"] .createInstance(Components.interfaces.nsISHistory); 
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");  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);  // move to right end of screen  var width = document.documentElement.getAttribute("width");  var height = document.documentElement.getAttribute("height");  window.moveTo(screen.availWidth-width, (screen.availHeight-height)/2);  var sessionHistory =  Components.classes["@mozilla.org/browser/shistory;1"]                  .createInstance(Components.interfaces.nsISHistory);  getWebNavigation().sessionHistory = sessionHistory;  window.XULBrowserWindow = new nsHelpStatusHandler();  // hook up UI through progress listener  var interfaceRequestor = helpBrowser.docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor);  var 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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/8cdd1b0c5ece20e4b1e1dfb0a5f8000020c3ec1a/help.js/clean/extensions/help/resources/content/help.js