var listView = []; 
	this.render = function (organization) 	{		// TODO isvisible		// TODO icons		// TODO status		// TODO toggle		// TODO scrollIntoView		// TODO readonly mit getItems([id, title, href, visible])				/*		basehref = organization.base && organization.base.indexOf(":")===-1 		 	? config.base + organization.base 		 	: organization.base; 		*/				// to build visual hierarchy by incremental spacing for OPTIONs		var TAB = "&nbsp;" 		// arrays to hold html strings for each view		var listView = [];		var treeView = [];		var reportView = [];		var stripView = [];		/**		 * recursive walk through tree		 * modifies the arrays defined above		 * @param {array} required, children of a manifest item		 */				function walk(items) 		{			var tabs = typeof arguments[1] === "string" ? arguments[1] : '';			for (var i=0, ni=items.length; i<ni; i+=1) 			{				var item = items[i];				var classname = item.href ? 'content' : 'block';				var href = "#"; // ????				if (item.isvisible!=="false")				{					// fill the different views					listView.push('<option class="nde ' + classname + '" id="lst' + 						item.id + '">' + tabs + " " + item.title + '</option>');					reportView.push('<tr><td>' + tabs + (tabs.length + 1) + 						'</td><td width="90%"><a class="nde ' + classname + '" id="rpt' +						item.id + '" href="' + href + '">' + item.title + 						'</a></td><td>x</td></tr>');					stripView.push('<td><a class="nde ' + classname + '" id="str' + 						item.id + '" href="' + href + '">' + item.title + '</a></td>');					treeView.push('<a class="nde ' + classname + '" id="tre' + 						item.id + '" href="' + href + '">' + item.title + '</a>');				} 				if (item.item) 				{					treeView.push('<div>');					walk(item.item, tabs + TAB); // RECURSION					treeView.push('</div>');				}			}		} // end walk				me.all("mainTitle").innerHTML = organization.title; 				// now run recursion		walk(organization.item, '');				setOuterHTML(this.all('listView'), '<select id="listView">' + listView.join('\n') + '</select>');		this.all('treeView').innerHTML = treeView.join('\n');	};
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/02b1b8d25ec3768079b8e0a010d07cf7e2e12427/gui.js/clean/Modules/Scorm2004/scripts/gui.js