rem: if ($(key)) { 
add: if (parsedData[key]) { 
context: function refreshInfo(theData) {	var parsedData = fillDataHash(theData);	if (parsedData['thissongnum']) {		hideElements(['notplaying']);		showElements(['nowplaying']);	} else {		hideElements(['nowplaying']);		showElements(['notplaying']);	}		// refresh cover art	if ($('coverartpath')) {		var coverPath = null;		if (parsedData['coverartpath'].match('cover') || parsedData['coverartpath'].match('radio')) {			coverPath = parsedData['coverartpath'];		} else {			coverPath = '/music/'+parsedData['coverartpath']+'/cover_100x100.jpg';		}		document.getElementById('coverartpath').src = coverPath;	}		// refresh href content	refreshHrefElement('albumhref',parsedData['albumid'],"album=");	refreshHrefElement('removealbumhref',parsedData['album'],"p4=");	refreshHrefElement('removeartisthref',parsedData['artist'],"p4=");	refreshHrefElement('songtitlehref',parsedData['songtitleid'],"item=");	refreshHrefElement('zaphref',parsedData['thissongnum']-1,"p2=");	//refresh text elements	var elems = ['artisthtml', 'songtitle', 'thissongnum', 'playtextmode', 'songcount', 'album'];	for (var i=0; i < elems.length; i++) {		var key = elems[i];		if ($(key)) {			refreshElement(key, parsedData[key]);		}	}	var elems = ['duration', 'bitrate', 'year'];	for (var i=0; i < elems.length; i++) {		var key = elems[i];		if ($(key)) {			showElements([key],'inline');			refreshElement(key, "("+parsedData[key]+")");		} else {			hideElements([key]);		}	}		if(parsedData['album']) {		showElements(['albuminfo']);		showElements(['album'], 'inline');	} else {		hideElements(['albuminfo', 'album']);	}	if(parsedData['artist']) {		showElements(['artistinfo', 'artist']);	} else {		hideElements(['artistinfo', 'artist']);	}}
meta: 6551	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6551/1ef047bfb2c7a98b85d0aa7bb7227327b0fc241b/ajax.js/clean/HTML/Fishbone/html/ajax.js