function getTocState() {	function func(v) 	{		var disabled = false;		var hidden = 0; // tristate 0=visible, 1=hidden by cam, 2=hidden by sequencer		var parseq = v.parent ? v.parent : null;		if (!parseq) 		{			// nothing to do, beyond root activity 		}		else if (!parseq.choice || checkActivity(v)) 		{			disabled = true;		} 		else if (currentAct && v.index<currentAct.index && parseq.forwardOnly)  		{			return r;		} 		else if (currentAct && v.index>currentAct.index && parseq.stopForward)  		{			return r;		} 		// TODO check case 117.6 c and e		if (!v.isvisible)  		{			hidden = 1;		} 		else if (v.hiddenFromChoice)  		{			hidden = 2;		} 		else if (currentAct && !currentAct.choiceExit && !'TODO IS CHILD OF CURRENT')  		{			hidden = 2;		} 		else if (!parseq) 		{		} 		else if (parseq.preventActivation && !parseq.isActive)  		{			hidden = 2;		} 		else if (parseq.constrainChoice && 'TODO v is neither previous nor next to current')  		{			hidden = 2;		} 		return {id:v.id, disabled:disabled, hidden:hidden};	}	var r = func(rootAct);	r.item = walkItems(rootAct, "item", func, []);	return r;}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/ebdb8ea432053e3eed7a5ec32e46f06704042fc4/main.js/clean/Modules/Scorm2004/scripts/main.js