rem: var outliner = document.getElementById("help-index-outliner"); var oview = outliner.outlinerBoxObject.view; for ( i = 0; i < 500; ++i ) { if ( !oview.isContainerOpen(i) && oview.getLevel(i) == 0 ) { oview.toggleOpenState(i); } } 
add: if (!helpIndexPanel.view) helpIndexPanel.view = helpIndexPanel.builder; var treeview = helpIndexPanel.view; var i = treeview.rowCount; while (i--) if (!treeview.getLevel(i) && !treeview.isContainerOpen(i)) treeview.toggleOpenState(i); 
context: function displayIndex() {    var outliner = document.getElementById("help-index-outliner");    var oview = outliner.outlinerBoxObject.view;        for ( i = 0; i < 500; ++i ) {      if ( !oview.isContainerOpen(i) && oview.getLevel(i) == 0 ) {        oview.toggleOpenState(i);      }    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0fac901f2772373ca1f00a439e7e5e31f778ddce/help.js/clean/extensions/help/resources/content/help.js