var b=0; var cor="mail"; var titulo=""; var Veces=0; var Muted=0; 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() { Dive= window.top.frames("DATA").document.getElementById('ImgPort'); ImT= window.top.frames("DATA").document.getElementById('ImgTransfig'); ImV= window.top.frames("DATA").document.getElementById('ImgVirgen'); if(Dive!=null) { Dive.filters[0].duration=3; Dive.filters[0].Apply(); if (ImT.style.visibility=="hidden") { ImT.style.visibility="visible"; ImT.style.display="block"; ImV.style.visibility="hidden"; ImV.style.display="none"; } else { ImT.style.visibility="hidden"; ImT.style.display="none"; ImV.style.visibility="visible"; ImV.style.display="block"; } Dive.filters[0].Play(); window.setTimeout("MuestraTransi();",14000); } } function ChecaTop(Obj,Pag) { 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() { 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() { lista= window.top.frames("DATA").document.getElementById('Lista'); if(lista!=null) { lista.filters[0].duration=1; lista.filters[0].Apply(); lista.style.visibility="hidden"; 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 MuestraLista() { var doc=window.top.frames['DATA'].document;var ldt= window.top.frames['PLAYER'].document.getElementById('ListData');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 ChecaStats () { if (window.event.ctrlKey) { window.top.frames["DATA"].location.href="../users/statframes.aspx"; } } function RClick(ev) { } 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 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; } function Mute() { if (Muted==0) { window.top.frames("PLAYER").mutbot.style.display="block"; Muted=1; } else { window.top.frames("PLAYER").mutbot.style.display="none"; Muted=0; } window.top.frames("PLAYER").MediaPlayer.settings.mute=Muted; } function ChecaMedia () { var Media = window.top.frames("PLAYER").MediaPlayer.playState; var MediaD=MediaPlayer.currentMedia; if ((Media==3)||(Media==6)) { TrackDBLoad_Start(); b=1; } } function HiB() { var r=window.top.frames("MENU").document.all("AnchoBanda"); if (window.top.frames("PLAYER").hibot.style.display=="none") { CambiaAncho('Alta'); if(r!=null) r.value='Alta'; } else { CambiaAncho('Media'); if(r!=null) r.value='Media'; } } function CambiaAncho (valor) { Limpia('SV'); var stream=""; if (valor=='Media') window.top.frames("PLAYER").hibot.style.display="none"; else window.top.frames("PLAYER").hibot.style.display="block"; Apunta('SV',valor,2099, 01, 15 ); var Media = window.top.frames("PLAYER").MediaPlayer.playState; // Test whether we have a valid Media object. if (valor=="Media") stream="http://208.53.138.151:8158" else stream="http://208.53.138.151:8112" window.top.frames("PLAYER").MediaPlayer.SRC=stream; window.top.frames("PLAYER").MediaPlayer.url=stream; if ((Media==3)||(Media==6)) { pantalla = window.top.frames("PLAYER").document.getElementById('Screen'); if(pantalla!=null) pantalla.innerHTML="Conectando..."; window.top.frames("PLAYER").MediaPlayer.controls.stop(); window.top.frames("PLAYER").MediaPlayer.controls.play(); TrackDBLoad_Start(); } } function Toca() { TrackDBLoad_Start(); pantalla = window.top.frames("PLAYER").document.getElementById('Screen'); if(pantalla!=null) pantalla.innerHTML="Espere, cargando buffer...."; window.top.frames("PLAYER").MediaPlayer.controls.play(); } function Pausa() {MediaPlayer.Stop(); } function Para() { pantalla = window.top.frames("PLAYER").document.getElementById('Screen'); if(pantalla!=null) pantalla.innerHTML="Detenido"; MediaPlayer.controls.stop(); } 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 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 TrackDBLoad_Start() { cachebuster++; var Media = window.top.frames("PLAYER").MediaPlayer.playState; iframe = window.top.frames("PLAYER").document.getElementById('SONGDATA'); var url = '/currsong.aspx?x='+cachebuster; if(iframe!=null) {iframe.src = url; } 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("MuestraData();",14000); 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 RecargaData() { iframe = window.top.frames("PLAYER").document.getElementById('SONGDATA'); var url = '/currsong.aspx?x='+cachebuster; if(iframe!=null) iframe.src = url; } function MuestraData(texto,txt,evt,doc) { var pantalla=window.top.frames['PLAYER'].document.getElementById('Screen');if(pantalla!=null) pantalla.innerHTML=texto; }