context: function currentSong(theData) {	var parsedData = fillDataHash(theData);	var doc = parent.playlist.document;	var found = 0;	var refresh = 0;		//alert(["first: "+first, "parsed: "+parsedData['first_item']]);	if (first == null || first == parsedData['first_item']) {		first = parsedData['first_item'];		for (var i = first; i <= parsedData['last_item']; i++) {						// make sure we have matching item counts, refresh if not.			if (item = doc.getElementById('playlistitem' + i)) {				if (i == parsedData['currentsongnum']) {					item.className = "currentListItem";					found = parsedData['item_'+i];				} else {					item.className = "browsedbListItem";				}							// Check the id's of each item, refresh if any don't match.				var myString = new String(doc.getElementById('playlistitem' + i).innerHTML);				var rExp= new RegExp("item=(.*?)&amp;player","i");				if (rExp.exec(myString) == null) {rExp= new RegExp("item=(.*?)&player","i");}				var a = rExp.exec(myString);								//alert(["i:"+i,"a:"+a[1],"parse:"+parsedData['item_'+i], "found:"+found, "refresh:"+refresh, "current:"+currentID]);				if (a == null || a[1] != parsedData['item_'+i]) {					//alert([a[1],i,parsedData['item_'+i]]);					refresh = 1;				}			} else {				refresh = 1;			}		}		// refresh the playlist if we're not finding the current song		if (currentID != found) {			refresh = 1;		} 	} else {		first = parsedData['first_item'];		playlistChecker(first);	}	if (refresh != 0) {		refreshPlaylist();	} else {		doc.location.hash = parsedData['currentsongnum'];	}}
meta: 6551	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6551/2e1b109f76275cc8d9f33b209476445026f81780/ajax.js/clean/HTML/Fishbone/html/ajax.js