var glbHomeURLinFullList="/common_v6/test.html"; function buildTree() { var root = new TreeNode(null,"Home", "/common_v6/test.html","active",0); var tempNode1, tempNode2, tempNode3, tempNode4, tempNode5; tempNode1 = new TreeNode(root, "Test Link" , "/common_v6/test1.html","active",1); tempNode2 = new TreeNode(tempNode1, "Second Level One" , "/common_v6/test2.html","active",2); tempNode2 = new TreeNode(tempNode1, "Second Level Two" , "/common_v6/test3.html","active",2); tempNode3 = new TreeNode(tempNode2, "Third Level 1" , "url2.html","hidden",3); tempNode3 = new TreeNode(tempNode2, "Third Level 1" , "/common_v6/test4.html","active",3); tempNode1 = new TreeNode(root, "Test1 Link" , "#","active",1); return (root); } 