rem: var body = document.getElementById("dirTreeBody"); if (dirTree && body) { var treeitems = body.getElementsByTagName("treeitem"); if (treeitems && treeitems.length > 0) { dirTree.selectItem(treeitems[0]); ChangeDirectoryByDOMNode(treeitems[0]); 
add: 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; 
context: function SelectFirstAddressBook(){  var body = document.getElementById("dirTreeBody");  if (dirTree && body) {    var treeitems = body.getElementsByTagName("treeitem");    if (treeitems && treeitems.length > 0) {      dirTree.selectItem(treeitems[0]);      ChangeDirectoryByDOMNode(treeitems[0]);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/404e12e0541a3ffd54ae714e9a3401c380718f10/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js