var Dom = YAHOO.util.Dom;
var tickerzone = "plysongname";
var tickerspeed = 200;
var pos=0;
var tickersize = 25;
var txt = '';
var tmot = null;

function PlayerTicker()
{
	var txt_old = txt;
	var tmptxt = '';
	txt = document.forms.fply.iply.value;
	var txt_new = txt;
	if (txt_old != txt_new)
		{
		pos = 0;
		if (parent.tmot != null) clearTimeout(parent.tmot);
		}
	var l = txt.length;
	var zonenm = Dom.get(tickerzone);
	if (pos > tickersize) tmptxt = txt.substring((pos-tickersize),pos);
	else tmptxt = txt.substring(0,pos);
	zonenm.innerHTML = tmptxt;
	//window.status = tmptxt; // No funciona en navegadors moderns
	pos++;
	if (pos == (l+1)) pos=0;
	parent.tmot = setTimeout("PlayerTicker()",tickerspeed);
}
