 oNewTOC.remove(0); 
delete oNewTOC[0]; 
	getChoiceSet: function (iOldTOC, oNewTOC)	{		var set = null;		// Hashtable		var lastLeaf = null;				if (iOldTOC != null)		{			var temp = null;			set = new Object();						// Walk backward along the vector looking for the last available leaf			for (var i = iOldTOC.length - 1; i >= 0; i--)			{				temp = iOldTOC[i];								if (temp.mDepth == -1)				{					if (temp.mIsSelectable)					{						// Not in the TOC, but still a valid target						set[temp.mID] = temp;					}				}				else if (temp.mIsVisible)				{					set[temp.mID] = temp;					oNewTOC[oNewTOC.length] = temp;				}								if (lastLeaf == null)				{					if (temp.mLeaf && temp.mIsEnabled)					{						lastLeaf = temp.mID;					}				}			}		}				if (lastLeaf != null)		{			this.mSeqTree.setLastLeaf(lastLeaf);		}				// If there are no items in the set, there is no TOC.		// todo: check this		if (set.length == 0)		{			set = null;		}				// If there is only one item in the set, it must be the root -- remove it		// If there is only one item in the set, it is the parent of a		//    choiceExit == false cluster, it cannot be selected -- no TOC		if (oNewTOC.length == 1)		{			var temp = oNewTOC[0];						if (!temp.mIsEnabled)			{				// todo: check this				oNewTOC.remove(0);			}			else if (!temp.mLeaf)			{				oNewTOC.remove(0);			}		}				return set;	},
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/1411d268e590bd7d23033c9d5908b240a6aef0df/ADLSequencer.js/clean/Modules/Scorm2004/scripts/adl2js/ADLSequencer.js