getAjaxLineup = function(playerId, lineupId) {
	// do the ajax bit:
	var reqUrl = "/www2/lib2/brightcove/ajax_requests/get_lineup.php";
	var onSuccessFunc = function(req) { handleLineupsResponse(req); }
	var onErrorFunc = function(req) { alert('Error!\nStatusText='+req.statusText+'\nContents='+req.responseText); }
	var onTimeOutFunc = function(req) { alert(req.statusText); }
	var req = AjaxRequest.get({'url': reqUrl + '?bcpid=' + playerId + '&bclid=' + lineupId, 
		'onSuccess': onSuccessFunc, 'onError': onErrorFunc, 'timeout':6000, 'onTimeout': onTimeOutFunc });
}
function handleLineupsResponse(reqObj) {
	var retObj = eval("(" + reqObj.responseText + ")");
	var targ = document.getElementById("bc_playlist");
	for (var i=0; i<retObj.data.length; i++) {
		var tmp = document.createElement("div");
		tmp.className = "box_info";
		tmp.id = "track_" + i;
		var tmp2 = document.createElement("div");
		tmp2.className = "item_thumb";
		var anch = document.createElement("a");
		anch.href = "#";
		anch.onclick = new Function('playTrack(' + retObj.data[i].id + '); return false;');
		anch.innerHTML = '<img border="0" width="80" height="60" hspace="0" vspace="0" align="left" src="' + decodeURI(decodeURIComponent(retObj.data[i].thumbnails['120x90'])) + '" />';
		tmp2.appendChild(anch);
		tmp.appendChild(tmp2);
		var tmp3 = document.createElement("div");
		tmp3.className = "item_info";
		var tmp4 = document.createElement("div");
		tmp4.className = "item_artist"
		tmp3.onclick = new Function('playTrack(' + retObj.data[i].id + '); return false;');
		tmp3.onmouseout = function() {this.style.backgroundColor='#e6e7e9'};
		tmp3.onmouseover = function() {this.style.backgroundColor='#ffffff'; this.style.cursor='pointer'};
		var ttl = decodeURIComponent(retObj.data[i].title);
		var ttl2 = ttl.substr(0, 8) + '<br />' + ttl.substring(9)
		tmp4.innerHTML = '<span class="artist_name">' + ttl2 + '</span>';
		tmp3.appendChild(tmp4);
		tmp.appendChild(tmp3);
		targ.appendChild(tmp);
	}
}

function playTrack(bc_video_id){
	window.open("http://www6.islandrecords.com/site/av.php?bclid=1290867743&bcvid=" + bc_video_id, "island");
}