if (activities[tree[i].mActivityID].sco) { 
if (activities[tree[i].mActivityID].sco && activities[tree[i].mActivityID].href) { 
function updateNav() {	var tree=msequencer.mSeqTree.mActivityMap;	var disable;	for (i in tree) {		var disable=true;		var test=null;		if (mlaunch.mNavState.mChoice!=null) {			test=mlaunch.mNavState.mChoice[i];		}			if (test) {			if (test['mIsSelectable']==true) { 				disable=false;			} else {				disable=true;			}		}		var elm = all(ITEM_PREFIX + tree[i].mActivityID);		toggleClass(elm, 'disabled', disable); 				//search for the node to change		//set icons		if (activities[tree[i].mActivityID].sco) {								var node_stat_completion=activities[tree[i].mActivityID].completion_status;			//not attempted				if (node_stat_completion==null || node_stat_completion=="not attempted") {				toggleClass(elm,"not_attempted",1);			}					//incomplete			if (node_stat_completion=="unknown" || node_stat_completion=="incomplete") {				removeClass(elm,"not_attempted",1);				toggleClass(elm,"incomplete",1);				}						//just in case-support not required due to spec			if (node_stat_completion=="browsed") {					removeClass(elm,"not_attempted",1);					toggleClass(elm,"browsed",1);			}						//completed			if (node_stat_completion=="completed") {				removeClass(elm,"not_attempted",1);				removeClass(elm,"incomplete",1);				removeClass(elm,"browsed",1);				toggleClass(elm,"completed",1);				}						//overwrite if we have information on success (interaction sco) - ignore success=unknown						var node_stat_success=activities[tree[i].mActivityID].success_status;			if (node_stat_success=="passed" || node_stat_success=="failed" ) {								//passed				if (node_stat_success=="passed") {					removeClass(elm,"failed",1);					toggleClass(elm,"passed",1);				//failed				} else {					removeClass(elm,"passed",1);					toggleClass(elm,"failed",1);				}			}		} else {			if (elm) {				toggleClass(elm,"asset",1);			}			}						//toggleClass(elm.parentNode, 'hidden', item.hidden);	}}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/15f0c09bd1e79ed8d520f849b8ed4ab9797bf505/main.js/buggy/Modules/Scorm2004/scripts/main.js