rem: var children = dirTree.childNodes;  var treechildren; for (var i=0;i<children.length; i++) { if (children[i].localName == "treechildren") { treechildren = children[i]; break; } }  children = treechildren.childNodes; for (i=0; i<children.length; i++) { if (children[i].localName == "treeitem") { dirTree.selectItem(children[i]); ChangeDirectoryByDOMNode(children[i]);  return; } } 
add: dirTree.treeBoxObject.selection.select(0); ChangeDirectoryByURI(GetSelectedDirectory()); 
context: function SelectFirstAddressBook(){  var children = dirTree.childNodes;  var treechildren;  for (var i=0;i<children.length; i++) {    if (children[i].localName == "treechildren") {      treechildren = children[i];      break;    }  }  children = treechildren.childNodes;  for (i=0; i<children.length; i++) {    if (children[i].localName == "treeitem") {      dirTree.selectItem(children[i]);      ChangeDirectoryByDOMNode(children[i]);      // ok, we've got the first treeitem, we can stop.      return;    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js