if (navType=="SuspendAll") { 
if (navType==='SuspendAll') { 
function launchNavType(navType) {			//if suspendAll set cmi.exit to suspend for active SCO	if (navType=="SuspendAll") {		err = currentAPI.SetValueIntern("cmi.exit","suspend");		err = currentAPI.SetValueIntern("cmi.entry","resume");   	}	//throw away API from previous sco and sync CMI and ADLTree	onItemUndeliver();		mlaunch = new ADLLaunch();	if (navType==='Start') {		mlaunch = msequencer.navigate(NAV_START);	}			if (navType==='ResumeAll') {		mlaunch = msequencer.navigate(NAV_RESUMEALL);	}		if (navType==='Exit') {		mlaunch = msequencer.navigate(NAV_EXIT);	}		if (navType==='ExitAll') {		mlaunch = msequencer.navigate(NAV_EXITALL);	}		if (navType==='Abandon') {		mlaunch = msequencer.navigate(NAV_ABANDON);	}		if (navType==='AbandonAll') {		mlaunch = msequencer.navigate(NAV_ABANDONALL);	}		if (navType==='SuspendAll') {	//	mlaunch = msequencer.navigate(NAV_SUSPENDALL);		//showLightbox();			//	var suspendData=serialize(msequencer.mSeqTree.mCurActivity.mActivityID);		mlaunch = msequencer.navigate(NAV_SUSPENDALL);										if (typeof headers !== "object") {headers = {};}		headers['Accept'] = 'text/javascript';		headers['Accept-Charset'] = 'UTF-8';				//look for tracking		var acts=msequencer.mSeqTree.mActivityMap;		var curtracking = new Object();		var tracking = new Object();		var states = new Object();		var root = new Object();		//save root elements		for (var element in msequencer) {			if (!(msequencer[element] instanceof Object)) {				root[element]=msequencer[element];			}		}				for (var element in acts) {			curtracking[element]=acts[element].mCurTracking;			tracking[element]=acts[element].mTracking;			//iterate over other properties			if (!states[element]) {states[element]=new Object();}			for (subelement in acts[element]) {				if (!(acts[element][subelement] instanceof Object) && !(acts[element][subelement] instanceof Array) ) {					states[element][subelement]=acts[element][subelement];				}			}		}						var validreq=msequencer.mSeqTree.mValidReq;				//just IDs		var lastleaf=msequencer.mSeqTree.mLastLeaf;		var firstcandidate=msequencer.mSeqTree.mFirstCandidate.mActivityID;		var suspendall=msequencer.mSeqTree.mSuspendAll.mActivityID;		var curactivity=msequencer.mSeqTree.mCurActivity.mActivityID;			var suspendedTree= new Object();		suspendedTree['mCurTracking']=curtracking;		suspendedTree['mTracking']=tracking;		suspendedTree['States']=states;		suspendedTree['mCurActivity']=null;		suspendedTree['mValidReq']=validreq;		suspendedTree['mLastLeaf']=lastleaf;		suspendedTree['mFirstCandidate']=firstcandidate;		suspendedTree['mSuspendAll']=suspendall;		suspendedTree['root']=root;						var r = sendAndLoad(this.config.suspend_url, toJSONString(suspendedTree), null, null, null, headers);				//setTimeout("self.close();",5000) 		//return;	}		if (navType==='Previous') {		mlaunch = msequencer.navigate(NAV_PREVIOUS);	}		if (navType==='Continue') {		mlaunch = msequencer.navigate(NAV_CONTINUE);			}		if (mlaunch.mActivityID) {			onItemDeliver(activities[mlaunch.mActivityID]);		} else {	  		//call specialpage	  		loadPage(gConfig.specialpage_url+"&page="+mlaunch.mSeqNonContent);		}		}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/00f4332b0459c73493eff8563b9fdac7ac5dcc7f/main.js/buggy/Modules/Scorm2004/scripts/main.js