rem:  function selectTOC(link_attr) { var items = document.getElementsByAttribute("helplink", link_attr); if (items.length >= 1) { var parentRow = items[0].parentNode; var selectableNode = parentRow.parentNode;  var tree = document.getElementById("help-toc-tree"); tree.selectItem(selectableNode); } }   } 
context: function init(){  // Initialize the Help window  //  "window.arguments[0]" is undefined or context string  // 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);  gBrowser = document.getElementById("help-content");  var sessionHistory =  Components.classes["@mozilla.org/browser/shistory;1"]                                  .createInstance(Components.interfaces.nsISHistory);  getWebNavigation().sessionHistory = sessionHistory;  //if ("argument" in window && window.arguments.length >= 1) {  //  browser.loadURI(window.arguments[0]);  //} else {  //  goHome(); // should be able to do browser.goHome();  //}  if (window.location.search) {      loadURI(key[window.location.search]);      selectTOC(key[window.location.search]);  } else {      goHome();}function selectTOC(link_attr) {  var items = document.getElementsByAttribute("helplink", link_attr);  if (items.length >= 1) {	var parentRow = items[0].parentNode;  	var selectableNode = parentRow.parentNode; 	// helplink is an attribute  							// on a treecell, which cannot be selected  	var tree = document.getElementById("help-toc-tree");  	tree.selectItem(selectableNode);  } }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6feb8df69c43cbe67372bd89590a41fb9cb199d0/help.js/clean/extensions/help/resources/content/help.js