} else if ((act[index] instanceof Object)){ 
} else if ((act[index] instanceof Object)){ 
function buildADLtree(act,obj){		for(var index in act) { 		var value;   		if ((index.substr(0,1) == "_") ) {			//create new object			obj = eval("new "+index.substr(1)+"()");			obj = buildADLtree(act[index],obj);		} else if ((act[index] instanceof Array)) {			var toset=new Array();			var temp=act[index];				for (var i=0;i<temp.length;i++) {				res=buildADLtree(temp[i],obj);				toset.push(res);			}				if (index!="mActiveChildren") {				obj[index] = toset; 			}	  			//keep trees in sync			if (index=="mChildren") {				obj["mActiveChildren"]=toset;			}		} else if ((act[index] instanceof Object)){						//handle object			res2=buildADLtree(act[index] ,obj);			obj[index] = res2;   				} else if (!(act[index] instanceof Array) && !(index.substr(0,1) == "_")){			value = act[index];			//set learner id and course id			if (index == "mLearnerID") {value = this.config.learner_id;}			if (index == "mScopeID") {value = this.config.course_id;}			obj[index] = value;		}    }	return obj;}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/4cb14a7ecafe0abb672d1bf32e902593cbe7608d/main.js/clean/Modules/Scorm2004/scripts/main.js