else if (CurrentActivity.parentActivity && CurrentActivity.parentActivity.sequencing.flow) 
else if (CurrentActivity.parentActivity && CurrentActivity.parentActivity.sequencing.flow!=="false") 
	function NavigationRequestProcess(navReq) // #168	{		if (ondebug) ondebug("NavigationRequestProcess", NavigationRequestProcess.caller); 		var returnValue = {valid: false, SequencingRequest: null, TerminationRequest: null};		switch (navReq.type) 		{		case 'Start':			if (!CurrentActivity) 			{				returnValue.valid = true;				returnValue.SequencingRequest = 'Start';			}			else			{				returnValue.Exception = 'NB.2.1-1';			}			break;		case 'ResumeAll':			if (!CurrentActivity)			{				if (SuspendedActivity)				{ 					returnValue.valid = true;					returnValue.SequencingRequest = 'ResumeAll';				}				else				{					returnValue.Exception = 'NB.2.1-3';				}			}			else			{				returnValue.Exception = 'NB.2.1-1';			}			break;		case 'Continue':			if (!CurrentActivity) 			{				returnValue.Exception = 'NB.2.1-2';			}			else if (CurrentActivity.parentActivity && CurrentActivity.parentActivity.sequencing.flow)			{				returnValue.valid = true;				returnValue.SequencingRequest = 'Continue';				if (CurrentActivity.isActive)				{					returnValue.TerminationRequest = 'Exit';				}			} 			else			{				returnValue.Exception = 'NB.2.1-4';			} 			break;		case 'Previous':			if (!CurrentActivity) 			{				returnValue.Exception = 'NB.2.1-2';			}			else if (CurrentActivity.parentActivity) 			{				if (CurrentActivity.parentActivity.sequencing.flow && !CurrentActivity.parentActivity.sequencing.forwardOnly)				{					returnValue.valid = true;					returnValue.SequencingRequest = 'Previous';					if (CurrentActivity.isActive)					{						returnValue.TerminationRequest = 'Exit';					}				}				else				{					returnValue.Exception = 'NB.2.1-5';				}			}			else			{				returnValue.Exception = 'NB.2.1-6';			}			break;		case 'Forward':		case 'Backward':			returnValue.Exception = 'NB.2.1-7';			break;		case 'Choice':			var target = activityMap[navReq.target]; 			if (target) 			{				if (!target.parentActivity || target.parentActivity.sequencing.choice)				{					if (!CurrentActivity)					{						returnValue.valid = true;						returnValue.SequencingRequest = 'Choice';						returnValue.TargetActivity = target;						break;					}					if (!isSibling(CurrentActivity, target))					{												var activityPath = getCommonAncestorAndPath(CurrentActivity, target).activityPath; 						if (activityPath.length) 						{							for (var i=0, ni=activityPath.length; i<ni; i+=1) 							{								var activity = activityPath[i];								if (activity.isActive && activity.sequencing.choiceExit==="false")								{									returnValue.Exception = 'NB.2.1-8';									break;								}							}						}						else						{							returnValue.Exception = 'NB.2.1-9';							break;						}					}					returnValue.valid = true;					returnValue.SequencingRequest = 'Choice';					returnValue.TargetActivity = target;					if (CurrentActivity.isActive)					{						returnValue.TerminationRequest = 'Exit';					}					break;				}				else				{					returnValue.Exception = 'NB.2.1-10';					break;				}			}			else			{				returnValue.Exception = 'NB.2.1-11';				break;			}			break;		case 'Exit':			if (CurrentActivity) 			{				if (CurrentActivity.isActive) 				{					returnValue.valid = true;					returnValue.SequencingRequest = 'Exit';					returnValue.TerminationRequest = 'Exit';				}				else				{					returnValue.Exception = 'NB.2.1-12';				}						}			else			{				returnValue.Exception = 'NB.2.1-2';			} 			break;		case 'ExitAll':			if (CurrentActivity) 			{				returnValue.valid = true;				returnValue.SequencingRequest = 'Exit';				returnValue.TerminationRequest = 'ExitAll';			}			else			{				returnValue.Exception = 'NB.2.1-2';			}			break;		case 'Abandon':			if (CurrentActivity) 			{				if (CurrentActivity.isActive) 				{					returnValue.valid = true;					returnValue.SequencingRequest = 'Exit';					returnValue.TerminationRequest = 'Abandon';				}				else				{					returnValue.Exception = 'NB.2.1-12';				}			}			else			{				returnValue.Exception = 'NB.2.1-2';			} 			break;		case 'AbandonAll':		case 'SuspendAll':			if (CurrentActivity) 			{				returnValue.valid = true;				returnValue.SequencingRequest = 'Exit';				returnValue.TerminationRequest = navReq.type;			}			else			{				returnValue.Exception = 'NB.2.1-2';			} 			break;		}		return returnValue;	} // end NavigationRequestProcess
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/02b1b8d25ec3768079b8e0a010d07cf7e2e12427/sequencing.js/clean/Modules/Scorm2004/scripts/sequencing.js