function updateStatusMessage(message)
{   
   statusMessage.innerText=message;
}

function updateTitle(newTitle)
{   
   title.innerText=newTitle;
}

function updateOwner(newOwner)
{   
   owner.innerText=newOwner;
}

function updateSongInfo(sTitle, sArtist, sNextTitle, sNextArtist)
{
	var sText = "Ahora: " + sArtist + " - " + sTitle;
	if( sNextTitle.length > 0 ) {
		sText += "   Proxima: " + sNextArtist + " - " + sNextTitle;
	}
	songInfo.innerText = sText;
	songInfo.style.display = "block";
	adInfo.style.display = "none";
	//var t = songInfo.getClientRects();
	//alert(t.item(0).right);
	//alert(songInfo.createTextRange());
}

function updateAdInfo(sSponsor, sTitle)
{
	adLink.href = "http://someadserver/jumptopage.asp?source=oasis&sponsor=" + escape(sSponsor) + "&spottitle=" + escape(sTitle);
	adLink.innerText = "Visitar " + sSponsor;
	songInfo.style.display = "none";
	adInfo.style.display = "block";
}

function updateLinkInfo(sSponsor, sTitle)
{
	var sText = "Informa: " + sTitle;
	if( sSponsor.length > 0 )
		sText += " de " + sSponsor;
	songInfo.innerText = sText;
	songInfo.style.display = "block";
	adInfo.style.display = "none";
}

function clearInfo()
{
	adLink.innerText = "";
	songInfo.innerText = "";
	songInfo.style.display = "block";
	adInfo.style.display = "none";
}