rem: "", 
add: icon, 
context: function smw_add_event(evspan,evs) {	var startdate = null;	var enddate = null;	var desc = "";	var ttl = "";	var linkurl = "";	var childs = evspan.childNodes;	for (var i = 0; i < childs.length; /* manual increment below */ ) {		if (childs[i].nodeType == 1) { //ELEMENT_NODE -- some data element			switch (childs[i].className) {				case "smwtlstart":					if (childs[i].firstChild.nodeType == 3)						startdate = childs[i].firstChild.data;					evspan.removeChild(childs[i]);				break;				case "smwtlend":					if (childs[i].firstChild.nodeType == 3)						enddate = childs[i].firstChild.data;					evspan.removeChild(childs[i]);				break;				case "smwtltitle": 					if (childs[i].firstChild.nodeType == 3)						ttl = childs[i].firstChild.data;					evspan.removeChild(childs[i]);				break;				case "smwtlurl": // accept both plain text and <a>, use text of <a> for title					if (childs[i].firstChild.nodeType == 3)						linkurl = childs[i].firstChild.data;					else {						linkurl = childs[i].firstChild.getAttribute("href");						if (childs[i].firstChild.hasChildNodes())							ttl = childs[i].firstChild.firstChild.data;					}					evspan.removeChild(childs[i]);				break; 				default: //proceed					i++;			}		}  else i++; //proceed	}	desc = evspan.innerHTML; // the remaining nodes form the description of the event	var parseDateTimeFunction = evs._events.getUnit().getParser("iso8601");	var evt = new Timeline.DefaultEventSource.Event(		parseDateTimeFunction(startdate),		parseDateTimeFunction(enddate),		parseDateTimeFunction(null),		parseDateTimeFunction(null),		true, //( enddate == null ), // FIXME: timeline currently fails if there are only durations and mutliple bands		ttl,		desc,		"", //no image		linkurl,		"", //no icon		"",		""	);// TODO: must the following have a meaningful definition?//             evt.getProperty = function(name) {//                 return "";//             };	evs._events.add(evt);}
meta: 10565	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10565/010c76be1692b74bfd50c540072a6c3d2b594e26/SMW_timeline.js/buggy/skins/SMW_timeline.js