var b=0;
var cor="mail";
var titulo="";
var Veces=0;
var Muted=0;
var Server="";
var cachebuster = 0;
function RecargaPanel()
{
window.top.frames["PANEL"].location="BotPanel.aspx";
window.top.frames["BANNER"].location="ShowBanner.aspx";
}
function ChecaScroll()
{
var doct=null;
if (window.top.frames["DATA"].frames.length<2)
doct=window.top.frames["DATA"].document;
else doct=window.top.frames["DATA"].frames["DATA1"].document;
bd=doct.body;
if(bd!=null)
{
lista=doct.getElementById('Lista');
if(lista!=null)
{
lista.style.top=bd.scrollTop;
}
}
}
function ChecaSeparado(Obj)
{
if (Obj.top==Obj)
{
tb=Obj.document.getElementById('TITBAR');
if(tb!=null)
{
tb.style.display="block";
}
tT=Obj.document.getElementById('TBOT');
if(tT!=null)
{
tT.style.display="block";
}
}
}
function MuestraTransi()
{
var bb=2;
}
function ChecaTop(Obj,Pag)
{
if (navigator.userAgent=="EstereoCatolicaApp-v22") return;
var ply=Obj.top.frames["PLAYER"];
if (Pag==null){
if (ply==null) {Obj.top.location="../?Arp=/Funs.aspx";return true;}
}
else if (Obj.top==Obj) {location="../?ARP="+Pag;return true;}
return false;
}
function ChecaBuffer()
{
lista= window.top.frames["DATA"].document.getElementById('Tip');
if(lista!=null)
{
//lista.filters[0].duration=1;
//lista.filters[0].Apply();
Veces++;
if (lista.style.visibility=="hidden")
{
lista.style.visibility="visible";
//lista.filters[0].Play();
if (Veces<12) window.setTimeout("CambiaTip();",5000);
}
else
{
lista.style.visibility="hidden";
//lista.filters[0].Play();
if (Veces<16) window.setTimeout("CambiaTip();",2000);
}
}
}
function CambiaTip()
{
lista= window.parent.frames["DATA1"].document.getElementById('Tip');
if(lista!=null)
{
//lista.filters[0].duration=1;
//lista.filters[0].Apply();
Veces++;
if (lista.style.visibility=="hidden")
{
lista.style.visibility="visible";
//lista.filters[0].Play();
window.setTimeout("CambiaTip();",5000);
}
else
{
lista.style.visibility="hidden";
//lista.filters[0].Play();
if (Veces<12) window.setTimeout("CambiaTip();",3000);
}
}
}
function MuestraTip()
{
var TIP= window.parent.frames["DATA1"].document.getElementById('Tip');
if(TIP==null)
{
window.parent.frames["DATA1"].document.body.insertAdjacentHTML("beforeEnd","
")
TIP= window.parent.frames["DATA1"].document.getElementById('Tip');
CambiaTip();
}
}
function OcultaLista()
{
var doct=null;
if (window.top.frames["DATA"].frames.length<2)
doct=window.top.frames["DATA"].document;
else doct=window.top.frames["DATA"].frames["DATA1"].document;
lista= doct.getElementById('Lista');
if(lista!=null)
{
//lista.filters[0].duration=1;
//lista.filters[0].Apply();
lista.style.display="none";
//lista.filters[0].Play();
}
}
function Colorea(Tabla,color,colortexto)
{
var PRODS=document.getElementById(Tabla);
var a=0;
var b=1;
//if (colortexto==null) colortexto="#000000";
for (a=0;a0)
{
//PRODS.rows[a].style.color=colortexto;
if (b==0)
{
PRODS.rows[a].bgColor=color;
b=1;
}
else
{
//PRODS.rows[a].bgColor="TRANSPARENT";
b=0;
}
}
}
function ChecaStats ()
{
if (window.event.ctrlKey)
{
window.top.frames["DATA"].location.href="../users/statframes.aspx";
}
}
function RClick(ev)
{
}
function AJDATA(adi)
{
var r=window.top.frames["PLAYER"].document.body.offsetWidth-468;
if (r<0) r=0;
//window.top.frames["PLAYER"].document.getElementById('Screen').style.width=r;
}
// User Agent:Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
//browser: Mozilla
var Reproductor=null;
function MuestraLista()
{
var doc=null;ldt= window.top.frames["PLAYER"].document.getElementById("ListData");
if (window.top.frames["DATA"].frames.length<2) doc=window.top.frames["DATA"].document;
else doc=window.top.frames["DATA"].frames["DATA1"].document;lista= doc.getElementById("Lista");
var pl=window.top.frames["PLAYER"];
iFr = pl.document.getElementById("SONGDATA");
// texto=iFr.contentWindow.document.getElementById("SONGINFO").innerHTML;
var ldt= iFr.contentWindow.document.getElementById("LISTINFO");
var lista= doc.getElementById('Lista');
if(lista==null)
{
doc.body.insertAdjacentHTML("beforeEnd",'');
lista= doc.getElementById("Lista");
var listaT= doc.getElementById("ListaT"); if(ldt!=null) listaT.innerHTML=ldt.innerHTML;
}
if (lista.style.display=="none"){ lista.style.display="block";window.setTimeout("OcultaLista();",15000);}else{ lista.style.display="none";}
}
function Volumen(obj)
{
if (Muted==1) {Mute();}
var a=0;
cancelBubble = true;
var r =(event.offsetX-119)*2;
if (r>100) r=100;
window.top.frames["PLAYER"].MediaPlayer.settings.volume=r;
window.top.frames["PLAYER"].volbot.style.posLeft=event.offsetX-6;
}
function Mute()
{
if (Reproductor==null) Reproductor=window.top.frames["PLAYER"].document.getElementById("MediaPlayer");
if (Muted==0)
{
//window.top.frames["PLAYER"].mutbot.style.display="block";
Muted=1;
}
else
{
//window.top.frames["PLAYER"].mutbot.style.display="none";
Muted=0;
}
Reproductor.settings.mute=Muted;
}
function TrackDBLoad_Start()
{
cachebuster++;
var Media = Reproductor.playState;
iframe = window.top.frames["PLAYER"].document.getElementById("SONGDATA");
if(iframe==null) return;
if(iframe.document==null) return;
var url = '/currsong.aspx?x='+cachebuster;
texto=iframe.document.getElementById('SONGINFO');
txt=iframe.document.getElementById('LISTINFO');
pantalla = window.top.frames["PLAYER"].document.getElementById('Screen');
if(iframe!=null)
{iframe.src = url;
}
if (Media==6)
{
if(pantalla!=null) pantalla.innerHTML="Espere, cargando buffer....";
return;
}
if (Media==3)
{
if(pantalla!=null) if(texto!=null) pantalla.innerHTML=""+texto+"";
AJDATA(0);
}
else
{
MuestraData(texto,texto);
window.setTimeout("MuestraData();",14000);
return;
}
}
function MDT()
{
var pl=window.top.frames["PLAYER"];
pnt = pl.document.getElementById("Screen");
iFr = pl.document.getElementById("SONGDATA");
var texto=""
texto=iFr.contentWindow.document.getElementById("SONGINFO").innerHTML;
if ((pnt!=null)&&(texto!=null)) pnt.innerHTML=''+texto+'';
}
function Toca()
{
if (Reproductor==null) Reproductor=window.top.frames["PLAYER"].document.getElementById("MediaPlayer");
pantalla = window.top.frames["PLAYER"].document.getElementById('Screen');
//if(pantalla!=null) pantalla.innerHTML="Espere, cargando buffer...22.";
TrackDBLoad_Start();
iframe = window.top.frames["PLAYER"].document.getElementById("SONGDATA");
MDT();
AJDATA(0);
if (!Reproductor.src.length<7) Reproductor.src=Server;
Reproductor.play();}
function Pausa()
{
if (Reproductor==null) Reproductor=window.top.frames["PLAYER"].document.getElementById("MediaPlayer");
Reproductor.pause();
}
function Para()
{
if (Reproductor==null) Reproductor=window.top.frames["PLAYER"].document.getElementById("MediaPlayer");
pantalla = window.top.frames["PLAYER"].document.getElementById('Screen');
if(pantalla!=null) pantalla.innerHTML="Detenido";
if (Reproductor.src.length>7) Server=Reproductor.src; Reproductor.src="";
}
function Apunta ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
var cookie_string = name + "=" + escape ( value );
if ( exp_y )
{
var expires = new Date ( exp_y, exp_m, exp_d );
cookie_string += "; expires=" + expires.toGMTString();
}
if ( path )
cookie_string += "; path=" + escape ( path );
if ( domain )
cookie_string += "; domain=" + escape ( domain );
if ( secure )
cookie_string += "; secure";
document.cookie = cookie_string;
}
function MuestraData(texto,txt,evt,doc)
{var Media=3;iframe = window.top.frames["PLAYER"].document.getElementById('SONGDATA'); var url = '/currsong.aspx?x='+cachebuster;
if ((iframe!=null)&&(iframe.document!=null))
{
texto=iframe.document.getElementById("SONGINFO");
txt=iframe.document.getElementById("LISTINFO");
}
pantalla = window.top.frames["PLAYER"].document.getElementById('Screen');
if (Media==6)
{ if(pantalla!=null) pantalla.innerHTML="Espere, cargando buffer....";
window.setTimeout("RecargaData();",13000); return;
}
if (Media==1)
{ if(pantalla!=null) pantalla.innerHTML="Detenido.";
window.setTimeout("MuestraData(texto,txt);",30000); return;
}
else if (Media==3)
{ ldt= window.top.frames["PLAYER"].document.getElementById('ListData');
if ((pantalla!=null)&&(texto!=null)) pantalla.innerHTML=""+texto+"";
lista= window.top.frames("DATA").document.getElementById('ListaT');
if ((ldt!=null)&&(txt!=null)) ldt.innerHTML=txt;
if ((lista!=null)&&(txt!=null)) lista.innerHTML=txt;AJDATA(0);
}
else if (Media==7) { if (pantalla!=null) pantalla.innerHTML="Esperando data.."; window.setTimeout("MuestraData(texto,txt);",9000); return; }
else if (Media==9) { if (pantalla!=null) pantalla.innerHTML="Cambiando Media.."; window.setTimeout("MuestraData(texto,txt);",9000); return; }
else if (Media==10) { if (pantalla!=null) pantalla.innerHTML="Listo.."; window.setTimeout("MuestraData(texto,txt);",15000); return;}
else if (Media==11) { if (pantalla!=null) pantalla.innerHTML="Reconectando.."; window.setTimeout("MuestraData(texto,txt);",9000);return; }
else {
if (pantalla!=null) pantalla.innerHTML="Error connectando...."; window.setTimeout("MuestraData(texto,txt);",15000); return;
}
}
function ChecaMedia ()
{
var Media = Reproductor.playState;
if ((Media==3)||(Media==6))
{
TrackDBLoad_Start();
b=1;
}
}
function HiB()
{
var r=window.top.frames["MENU"].document.all("AnchoBanda");
}
function CambiaAncho (valor)
{
Limpia('SV');
}
function Limpia ( cookie_name )
{
var cookie_date = new Date ( ); // current date & time
cookie_date.setTime ( cookie_date.getTime() - 1 );
document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}
function RecargaData()
{
iframe = window.top.frames["PLAYER"].document.getElementById('SONGDATA');
var url = '/currsong.aspx?x='+cachebuster;
if(iframe!=null) iframe.src = url;
}