} 
} 
function mergeChildren(treeItem, nodes) {    var childContainer;    if (treeItem.id == "tree_root") {        childContainer=treeItem;    } else {        childContainer = findChild(treeItem, "DIV");    }    var childAdded = false;    var hasPlaceholder = childContainer != null && childContainer.className == "unopened";    if (nodes) {          for (var i = 0; i < nodes.length; i++) {            var node = nodes[i];            if (node.tagName == "node") {                if (hasPlaceholder) {                    // Remove the loading message                    treeItem.removeChild(childContainer);                    hasPlaceholder = false;                    childContainer = null;                }                if (childContainer === null) {                    childContainer = document.createElement("DIV");                    childContainer.className = "group";                                  setAccessibilityRole(childContainer, WAI_GROUP);                    treeItem.appendChild(childContainer);                }                var title = node.getAttribute("title");                var isLeaf = node.getAttribute("is_leaf");                var href = node.getAttribute("href");                var image = node.getAttribute("image");                var id = node.getAttribute("id");                var childItem = mergeChild(childContainer, id, title, href, image, isLeaf);                var isSelected = node.getAttribute("is_selected");                if (!isLeaf) {                    mergeChildren(childItem, node.childNodes);                }                if (isSelected) {                    selectedNode = childItem;                    highlightSelectedNode = node.getAttribute("is_highlighted");                }                childAdded = true;            }        }        }     if (childAdded) {         // Expand this node if it was collapsed and has children in the xml tree                var childClass = getChildClass(treeItem);        if (childClass == "hidden") {            toggleExpandState(treeItem);        } else {            changeExpanderImage(treeItem, true);             setWAIExpansionState(treeItem, true);        }     }  }
10107	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10107/a84572318622b407c613941e4c1b25809dfccf00/helptreechildren.js/clean/org.eclipse.help.webapp/advanced/helptreechildren.js