function func(v) { var disabled = false; var hidden = 0; var parseq = v.parent ? v.parent : null; if (!parseq) {  } 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; }  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}; } 
function func(item, sink, depth) { var elm = sink[depth].appendChild(sink[depth].ownerDocument.createElement('A')); elm.id = ITEM_PREFIX + item.id; elm.className = (item.href ? 'content' : 'block') + (item.isvisible ? '' : ' invisible'); elm.href = "#this"; elm.target ="_self"; if (item.hreff) { elm.innerHTML = setTitle(item); } else  { elm.innerHTML = item.title; }  if (item.item) { sink[depth+1] = sink[depth].appendChild(elm.ownerDocument.createElement('DIV')); } } 
	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};	}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/d026bc0adc8e7e6952a80d68d91a81165bbf0c21/main.js/clean/Modules/Scorm2004/scripts/main.js