	walkActivity: function (iDirection,iPrevDirection,ioFrom)	{		// This method implements Flow Subprocess SB.2.3		var deliver = true;		var parent = ioFrom.at.getParent();				if (parent != null)		{			// Confirm that 'flow' is enabled for the cluster			if (!parent.getControlModeFlow())			{				deliver = false;			}		}		else		{			deliver = false;		}				if (deliver)		{			// Check if the activity should be 'skipped'.			var result = null;			var skippedRules = ioFrom.at.getPreSeqRules();						if (skippedRules != null)			{				result = skippedRules.evaluate(RULE_TYPE_SKIPPED, 					ioFrom.at, this.mRetry);			}						// If the rule evaluation did not return null, the activity is skipped			if (result != null)			{				var walk  =					this.walkTree(iDirection, iPrevDirection, false, ioFrom.at, true);								if (walk.at == null)				{					deliver = false;				}				else				{					ioFrom.at = walk.at;										// Test if we've switched directions...					if (iPrevDirection == FLOW_BACKWARD &&						walk.direction == FLOW_BACKWARD)					{						return this.walkActivity(FLOW_BACKWARD, FLOW_NONE, ioFrom);					}					else					{						return this.walkActivity(iDirection, iPrevDirection, ioFrom);					}				}			}			else			{				// The activity was not skipped, make sure it is enabled				if (!this.checkActivity(ioFrom.at))				{					// Make sure the activity being considered is a leaf					if (ioFrom.at.hasChildren(false))					{						var walk = this.walkTree(iDirection,							FLOW_NONE, true, ioFrom.at, true);												if (walk.at != null)						{							ioFrom.at = walk.at;														if (iDirection == FLOW_BACKWARD &&								walk.direction ==  FLOW_FORWARD)							{								deliver = this.walkActivity(FLOW_FORWARD,									FLOW_BACKWARD, ioFrom);							}							else							{								deliver = this.walkActivity(iDirection,									FLOW_NONE, ioFrom);							}						}						else						{							deliver = false;						}					}				}				else				{					deliver = false;				}			}		}		return deliver;	},
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/ebdb8ea432053e3eed7a5ec32e46f06704042fc4/ADLSequencer.js/buggy/Modules/Scorm2004/scripts/adl2js/ADLSequencer.js