if (rootAct.item[i].isvisible==true && typeof(mlaunch.mNavState.mChoice[id])=="object") { var sub = new YAHOO.widget.TextNode({label:rootAct.item[i].title, id:ITEM_PREFIX + rootAct.item[i].id}, attach, true); sub.href="#this"; sub.target="_self"; sub.labelElId=ITEM_PREFIX + rootAct.item[i].id; } 
if (mlaunch.mNavState.mChoice!=null) { if (rootAct.item[i].isvisible==true && typeof(mlaunch.mNavState.mChoice[id])=="object") { var sub = new YAHOO.widget.TextNode({label:rootAct.item[i].title, id:ITEM_PREFIX + rootAct.item[i].id}, attach, true); sub.href="#this"; sub.target="_self"; sub.labelElId=ITEM_PREFIX + rootAct.item[i].id; } } 
function buildNavTree(rootAct,name,tree){		var tocView = all('treeView');		//create the TreeView instance:	treeYUI = new YAHOO.widget.TreeView(tocView);			//get a reusable reference to the root node:	var root = treeYUI.getRoot();			//display the rootNode	var rootNode = new YAHOO.widget.TextNode(rootAct.title, root, true);	rootNode.href="#this";	rootNode.target="_self";	rootNode.labelElId=ITEM_PREFIX + rootAct.id;		build(rootAct,rootNode);		function build(rootAct,attach){		if (rootAct.item) {			for (var i=0;i<rootAct.item.length;i++) {				//only include if visible				var id=rootAct.item[i].id;				if (rootAct.item[i].isvisible==true && typeof(mlaunch.mNavState.mChoice[id])=="object") { 					var sub = new YAHOO.widget.TextNode({label:rootAct.item[i].title, id:ITEM_PREFIX + rootAct.item[i].id}, attach, true);					sub.href="#this";					sub.target="_self";					sub.labelElId=ITEM_PREFIX + rootAct.item[i].id;				}					//further childs				if(rootAct.item[i].item) {					build(rootAct.item[i],sub);				}			}		}		}		treeYUI.draw();	treeYUI.expandAll();}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/28e562aa21b57add869615f49b662b0b2b960b1c/main.js/clean/Modules/Scorm2004/scripts/main.js