// <![CDATA[

Playa.onStateChange = function() {
	var sTrack = "Track <strong>" + (Playa.playListPosition+1) + "</strong> of <strong>" + Playa.playlistSize + "</strong>";
	var sTitle = "Title:&nbsp;&nbsp;&nbsp;<strong> &#8220;";
	var sAlbum = "Album: <strong>" + Playa.album + "</strong>";
	if (Playa.path == "") {
		sTitle += Playa.title + "&#8221;</strong>";
	} else {
		sTitle += "<"+"a href=\"" + Playa.path + "\" target=\"_blank\" title=\"Click to download: " + Playa.title + "\"" + ">" + Playa.title + "<" + "/a" + ">&#8221;</strong>";
	}
	
	var state;
	state = Playa.btnState;
	writit(sTitle,'songTitle');
	writit(sAlbum,'songAlbum');
	writit(sTrack,'PlayaInfo');

if (document.getElementById("btnPlayStop"))
	{
		var x = document.getElementById("btnPlayStop");
		x.innerHTML = '';
		x.innerHTML = state;
		x.title=state;
	}
	else if (document.all)
	{
		var x = document.all["btnPlayStop"];
		x.innerHTML = state;
		x.title=state;
	}
	else if (document.layers)
	{
		var x = document.layers["btnPlayStop"];
		x.document.open();
		x.document.write(state);
		x.title=state;
		x.document.close();
	}


}

  // ]]>	
