ADLAuxiliaryResource res = null; 
var res = null; 
	contentDelivery: function (iTarget, oLaunch)	{				// This method implements the Content Delivery Environment Process (DB.2)		var target = this.getActivity(iTarget);		var done = false;				if (target == null)		{			oLaunch.mSeqNonContent = LAUNCH_ERROR;			oLaunch.mEndSession = this.mEndSession;			done = true;		}				var cur = this.mSeqTree.getFirstCandidate();				if (cur != null  && !done)		{			if (cur.getIsActive())			{				oLaunch.mSeqNonContent = LAUNCH_ERROR;				oLaunch.mEndSession = this.mEndSession;				done = true;			}		}				if (!done)		{			// Clear any 'suspended' activity			this.clearSuspendedActivity(target);						// End any active attempts			this.terminateDescendentAttempts(target);						// Begin all required new attempts			var begin = new Array();			var walk = target;						while (walk != null)			{				begin[begin.length] = walk;				walk = walk.getParent();			}						if (begin.length > 0)			{				for (var i = begin.length - 1; i >= 0; i--)				{					walk = begin[i];					if (!walk.getIsActive())					{						if (walk.getIsTracked())						{							if (walk.getIsSuspended())							{								walk.setIsSuspended(false);							}							else							{								// Initialize tracking information for the new attempt								walk.incrementAttempt();							}						}						walk.setIsActive(true);					}				}			}						// Set the tree in the appropriate state			this.mSeqTree.setCurrentActivity(target);			this.mSeqTree.setFirstCandidate(target);						// Fill in required launch information			oLaunch.mEndSession = this.mEndSession;			oLaunch.mActivityID = iTarget;			oLaunch.mResourceID = target.getResourceID();						oLaunch.mStateID = target.getStateID();			if (oLaunch.mStateID == null)			{				oLaunch.mStateID = iTarget;			}						oLaunch.mNumAttempt = target.getNumAttempt() + 				target.getNumSCOAttempt();			oLaunch.mMaxTime = target. getAttemptAbDur();						// Create auxilary services vector			Hashtable services = new Object();			ADLAuxiliaryResource test = null;			walk = target;						// Starting at the target activity, walk up the tree adding services			while (walk != null)			{				var curSet = walk.getAuxResources();				if (curSet != null)				{					for (var i = 0; i < curSet.length; i++)					{						ADLAuxiliaryResource res = null;						res = curSet[i];												// If the resource isn't already included in the set, add it						test = services[res.mType];												if (test == null)						{							services[res.mType] = res;						}					}				}								// Walk up the tree				walk = walk.getParent();			}						if (services.length > 0)			{				oLaunch.mServices = services;			}		}				this.validateRequests();		oLaunch.mNavState = this.mSeqTree.getValidRequests();						// Make sure Continue Exit is not enabled for non-content		if (oLaunch.mSeqNonContent != null)		{			oLaunch.mNavState.mContinueExit = false;		}		},
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/9a61eaa66de0d3d4142429f2960cc6a4b80b98e5/ADLSequencer.js/clean/Modules/Scorm2004/scripts/adl2js/ADLSequencer.js