var data, subdata; 
var data=null, subdata=null; 
function walkItems (root, name, func, sink, depth) {	var data, subdata;	var items = root[name];	var arraySink = sink && sink instanceof Array;	if (depth===undefined) 	{		depth = 0;	}	for (var k in items) 	{		var item = items[k];		if (!arraySink) 		{			func(item, sink, depth);		}		if (item && item[name]) 		{			subdata = walkItems(item, name, func, arraySink ? [] : sink, depth+1);		}		if (arraySink) 		{			data = func(item, subdata, depth);			if (data!==undefined && subdata!==undefined) 			{				data[name] = subdata;			}			sink.push(data);		}	}	return sink;}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/c101b6942a5384bb57e4dc40de691b95fa50d8f2/main.js/clean/Modules/Scorm2004/scripts/main.js