function buscarXml(){
  var valor = document.all.artis.value;
  location.href="politonosBuscar.asp?idSong="+valor;
}
function cerrarNrs(){
	document.all.divNrs.style.display="none";
	document.all.divNrsChild.style.display="none";
	document.all.divNrsChildSup.style.display="none";
	document.all.divNrsCerrar.style.display="none";
}
function cerrarVentanaClip(){
      document.getElementById('divFoto').innerHTML = "v";
      document.all.divFoto.style.display = "none";
      var valor = document.all.frm1.vSong.value;
      window.open("http://yuhuu.top-play-ringtones.com/sections/popup/descarga-videoclip/"+valor+" ","w81","width=600,height=440,scrollbars=NO,resize=NO");
}
function cerrarVentanaClip2(){
      document.getElementById('divFoto').innerHTML = "v";
      document.all.divFoto.style.display = "none";
}
function abrirVentanaVideoClip(valor){
     window.open("http://yuhuu.top-play-ringtones.com/sections/popup/descarga-videoclip/"+valor+" ","w1","width=600,height=440,scrollbars=NO,resize=NO");
     document.all.visitas.src="http://www.yuhuu.com/admin/enlaceDesde.asp?q="+valor+"&vLink=Link Videoclip";
}
function windowRepro(foto,cancion,artista){
  window.open("mostrarRepro.asp?foto="+foto+"&cancion="+cancion+"&artista="+artista,"w1","width=450,height=250,scrollbars");
}
function escucharYT(codigo,foto,artista){

	        var vvv = '<table width="95%" border=0	bordercolor=black align="center">'+
'		  <tr>'+
'			  <td align="center">'+
				   '<object width="1" height="1" name="televisor" id="televisor">'+
				   '<param name="movie" value="http://www.youtube.com/v/'+codigo+'=es&fs=1&"></param>'+
				   '<param name="allowFullScreen" value="false"></param>'+
				   '<param name="allowscriptaccess" value="always"></param>'+
				   '<embed id="XXX" src="http://www.youtube.com/v/'+codigo+'&rel=0&border=1&autoplay=1&rel=0&color1=0x00000&color2=0x000000&hl=es&fs=0&" type="application/x-shockwave-flash" allowscriptaccess="always" '+
				   'allowfullscreen="true" width="1" height="1"></embed>'+
				   '</object>'+
'	          </td>'+
'		  </tr>'+
'         </table>		  ';
      document.getElementById('videosYT').style.display = "block";
      document.getElementById('equ').style.display = "block";
      document.getElementById('videosYT').innerHTML = vvv;
      document.all.fotito2.src = foto;
	  document.all.frm1.vVideo.value = codigo;
	  document.all.frm1.vArtista.value = artista;
}
function reproYouTube(cancion,foto,artista,NRS,posicion){
	if(posicion=="1"){
			   var so = new SWFObject("playerSingle.swf", "mymovie", "193", "55", "7", "#ffffff");
			   so.addVariable("autoPlay", "yes");
			   so.addVariable("overColor","#000000");
			   so.addVariable("playerSkin","0");
		       so.addVariable("soundPath", "");
			   so.write("flashPlayer");

	   document.all.flashPlayer.style.display = "none";
	   document.all.rep.style.display = "none";
	   document.all.frm1.vSong.value = NRS;	
	   document.getElementById('TitYouTube2').innerHTML = artista;
	   escucharYT(cancion, foto, artista);
	}else if(posicion=="2"){
	
        var vvv = "<iframe src='http://www.goear.com/listen/9b7f3fa/en-el-mundo-genial-de-las-cosas-que-dices-maldita-nerea' width=10 height=10></iframe>";

           document.getElementById('videosYT').style.display = "none";
            document.getElementById('equ').style.display = "none";
			document.all.flashPlayer.style.display = "block";
		    document.getElementById('videosYT').innerHTML = "";
			document.all.divFoto.style.display = "none";
			document.all.frm1.vSong.value=NRS;	
			document.all.rep.style.display = "block";
		    document.all.rep.style.top = posicion;
		    document.all.rep.style.left = 195;
			document.all.fotito.src=foto;
			document.getElementById('TitYouTube').innerHTML = vvv;

	}else{

            document.getElementById('videosYT').style.display = "none";
            document.getElementById('equ').style.display = "none";
			document.all.flashPlayer.style.display = "block";
		    document.getElementById('videosYT').innerHTML = "";
			document.all.divFoto.style.display = "none";
			document.all.frm1.vSong.value=NRS;	
			document.all.rep.style.display = "block";
		    document.all.rep.style.top = posicion;
		    document.all.rep.style.left = 195;
			document.getElementById('TitYouTube').innerHTML = artista;
			document.all.fotito.src=foto;

			if(posicion=="700"){
			  document.all.fotito.src=foto;
		      document.all.rep.style.left = 500;
		      document.all.navidad.style.left = 120;
		      abrirNavidad();
			}
			if(posicion=="1800"){
			  document.all.fotito.src="http://www.yuhuu.com/cine/"+foto;
			  document.all.fotito.src.width=60;
			}
			if(posicion=="190"){
			  document.all.fotito.src=foto;
			  document.all.fotito.src.width=60;
		      document.all.rep.style.top = 360;
		      document.all.rep.style.left = 220;
		      abrirNavidad();
			}
			//document.all.repr.src="http://www.youtube.com/watch?v="+cancion;
			
			   var so = new SWFObject("playerSingle.swf", "mymovie", "193", "55", "7", "#ffffff");
			   //abrirEscuchando(titulo,posicion);
			   //setTimeout("cerrarEscuchando()",4000);
			   so.addVariable("autoPlay", "yes");
			   so.addVariable("overColor","#000000");
			   so.addVariable("playerSkin","0");
		       so.addVariable("soundPath", cancion);
			   so.write("flashPlayer");
    }
}
function escuchame(valor,titulo,posicion){
	alert(valor);
	   var so = new SWFObject("playerSingle.swf", "mymovie", "200", "65", "7", "#B22222");
  if(valor=="0"){
        so.addVariable("soundPath", "http://contents.mediafusion.es/mp3/nada.mp3");
   }
     else
   {	
	   //abrirEscuchando(titulo,posicion);
	   //setTimeout("cerrarEscuchando()",4000);
	   so.addVariable("autoPlay", "yes");
	   so.addVariable("overColor","#000000");
	   so.addVariable("playerSkin","0");
       so.addVariable("soundPath", "http://www.yuhuu.com/musica/Alejandro Sanz Lola soledad.mp3");
       //so.addVariable("soundPath", "http://dc107.4shared.com/download/125685200/1f01009/She_Wolf_-_Loba__Michel_Spanglish_Extended_Version_.mp3");
   }
	   so.write("flashPlayer");
 }
 function abrirNavidad(){
 	document.all.navidad.style.display = "block";
}
 function cerrarNavidad(){
 	document.all.navidad.style.display = "none";
 	//cerrarEscuchando();
}
 function abrirEscuchando(valor,posicion){
arranca();
      document.all.frm1.vSong.value = valor;
      document.all.divEscucha.style.display = "block";
      document.all.divEscucha.style.top = posicion;
      document.getElementById('TitCancion').innerHTML = valor;
}
function arranca(){
     document.getElementById('topcon-inner').style.background="url(http://www.lahiguera.net/musicalia/artistas/david_bisbal/fotos/4171/david_bisbal.jpg)";
}
function cerrarEscuchando(){
       escuchame("0","0","0");
       document.all.divEscucha.style.display = "none";
       document.all.rep.style.display = "none";
       abrirVentana(document.all.frm1.vSong.value,document.all.frm1.vSong.value,'reproductor')
       //document.all.navidad.style.display = "none";
       //document.all.repr.src = "";
}
function abrirVideoClip2(valor,posicion,cantante,titulo,codigo){
      document.all.frm1.vSong.value = valor;
       var vvv ='<object width="400" height="250"><param name="movie" value="http://www.youtube.com/v/'+codigo+'&rel=0&border=1&autoplay=1&fs=1&amp;hl=es_ES">'+
                '</param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always">'+
                '</param><embed src="http://www.youtube.com/v/'+codigo+'&fs=1&amp;hl=es_ES" type="application/x-shockwave-flash" allowscriptaccess="always"'+
                ' allowfullscreen="false" width="400" height="250"></embed></object>';
                 
	                 document.getElementById('videosYT').innerHTML = vvv;

}
function pararYT(){
	 var vvv = "";
         document.getElementById('videosYT').innerHTML = vvv;
	 //document.getElementById('videosYT').style.display = "none";
       //  document.getElementById('equ').style.display = "none";
}
function abrirVideoClip(valor,posicion,cantante,titulo,codigo){
		   var so = new SWFObject("playerSingle.swf", "mymovie", "193", "55", "7", "#ffffff");
	   //abrirEscuchando(titulo,posicion);
	   //setTimeout("cerrarEscuchando()",4000);
	   so.addVariable("autoPlay", "yes");
	   so.addVariable("overColor","#000000");
	   so.addVariable("playerSkin","0");
	   
       so.addVariable("soundPath", "");
       //so.addVariable("soundPath", "http://dc107.4shared.com/download/125685200/1f01009/She_Wolf_-_Loba__Michel_Spanglish_Extended_Version_.mp3");
	   so.write("flashPlayer");

	document.all.flashPlayer.style.display = "none";
	document.all.rep.style.display = "none";
      document.all.frm1.vSong.value = valor;
      //document.all.divFoto.style.display = "block";
      //document.all.divFoto.style.top = posicion;
      //document.getElementById('XXX').src = "http://www.youtube.com/v/"+codigo+"&rel=0&border=1&autoplay=1&rel=0&color1=0xB22222&color2=0xB22222&hl=es&fs=0&";
        var vvv = '<table width="95%" border=0	bordercolor=black align="center">'+
'		  <tr>'+
'			  <td align="center">'+
				   '<object width="350" height="200" name="televisor" id="televisor">'+
				   '<param name="movie" value="http://www.youtube.com/v/'+codigo+'=es&fs=1&"></param>'+
				   '<param name="allowFullScreen" value="false"></param>'+
				   '<param name="allowscriptaccess" value="always"></param>'+
				   '<embed id="XXX" src="http://www.youtube.com/v/'+codigo+'&rel=0&border=1&autoplay=1&rel=0&color1=0x00000&color2=0x000000&hl=es&fs=0&" type="application/x-shockwave-flash" allowscriptaccess="always" '+
				   'allowfullscreen="true" width="270" height="200"></embed>'+
				   '</object>'+
'	          </td>'+
'		  </tr>'+
'         </table>		  ';

	  
      document.getElementById('videosYT').innerHTML = vvv;
      //document.getElementById('Video').innerHTML = titulo;
      document.getElementById('TitVideo').innerHTML = cantante;
     //document.all.visitas.src="http://www.yuhuu.com/admin/enlaceDesde.asp?q="+valor+"&vLink=Foto Videoclip";
      
}
function abrirVentanaPrincipal2(valor,artista,enlace){
window.open("http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor+" ","w1","width=800,height=800,scrollbars");
}
function linkDesde(valor){
window.open("enlaceDesdeNavidad2.asp?cualo=http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor);
//document.location.href="enlaceDesdeNavidad2.asp?cualo=http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
}
function linkDesde2(valor){
window.open("enlaceDesdeNavidad2.asp?cualo="+valor);
}
function linkDesde3(valor){
document.all.correo.src="http://www.yuhuu.com/enlaceDesdeNavidad2.asp?cualo="+valor;
}
function regThis(valor){
//var desde="enlaceDesdeFile.asp?vLink=" + valor;
var desde="enlaceDesdeNavidad2.asp?cualo=" + valor;
document.all.goToLink.src = desde;
}
function abrirVentanaPrincipal(valor,artista,enlace){
//var windowHandle = window.open("http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor+" ","w1","width=800,height=600,scrollbars");
//var windowHandle2 = window.open("http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor+" ","w2","width=800,height=600,scrollbars");
//windowHandle.close();
     // div del Iframe de TOPRING 
     document.all.divNrs.style.display="block";
     // IFRAME DE TOPRINGS
	 // document.all.divNrsF.src="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;

     document.all.divNrsCerrar.style.display="block";
     document.all.divNrsChildSup.style.display="block";
     document.all.divNrsChild.style.display="block";	
 //  window.frames['divNrsF'].src="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/Nightmare-101027-MO.htm";
 
 try   
 { 
   //document.getElementById('divNrsF').contentWindow.location.href="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/Nightmare-101027-MO.htm";
 }   
   catch (e)   
 {     
       // iframe src is currently not local   } 
	     document.getElementById('divNrsF').contentWindow.location.href="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/Nightmare-101027-MO.htm";

 }
 
//	 divNrsF.location.href="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
//	 window.frames['divNrsF'].location.reload();
  //   divNrsF.location.href="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
//parent.windowHandle = windowHandle.location.href="enlaceDesdeNavidad2.asp?cualo=http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
/*
    document.all.divNrsF.src="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/AVENGED_SEVENFOLD/Nightmare-101027-MO.htm";
 	document.all.divNrs.style.display="block";
	window.frames['divNrsF'].location = "http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
    window.frames['divNrsF'].location.reload();
	document.all.divNrsF.location.href="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
	document.all.divNrsChild.style.display="block";	
    document.all.divNrsChildSup.style.display="block";
    document.all.divNrsCerrar.style.display="block";
*/
}
function abrirVentana(valor,artista,enlace){
    // cerrarEscuchando();
	//location.href="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
    // window.open("http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor+" ","w1","width=600,height=440,scrollbars=NO,resize=NO");
     //document.all.visitas.src="http://www.yuhuu.com/admin/enlaceDesde.asp?q="+artista+"&vLink="+enlace;
     document.all.divNrsF.src="";
     document.all.imgNrs.src="http://octopus2.nrs-group.com/banners/ares_728x90.gif";
     document.all.imgNrs2.src=enlace;
     document.all.divNrs.style.display="block";
     document.all.divNrsChild.style.display="block";	
     document.all.divNrsChildSup.style.display="block";
     document.all.divNrsF.src="http://yuhuu.top-play-ringtones.com/sections/popup/descarga-melodia-original/"+valor;
var f = document.getElementById('divNrsF');
f.src = f.src;

}

function abrirVentanaMax(valor){
     window.open(valor+" ","w1","width=800,height=800,scrollbars");
}
function abrirVentanaArtista(valor){

     var letra = valor.substring(0,1);
     var host = "http://yuhuu.top-play-ringtones.com/sections/musica/originales.htm?L="+letra+"&c="+valor;
	 var sList =window.open(host+" ","w1","width=630,height=700,scrollbars");
	 sList.focus();
}
function buscar(){
  var host = "http://yuhuu.top-play-ringtones.com/sections/musica/originales.htm?";
  var valor = document.all.artis.value;
  window.open("http://yuhuu.top-play-ringtones.com/sections/buscar/buscar.htm?texto="+valor+"&tipo=MO");
  document.all.visitas.src="http://www.yuhuu.com/admin/enlaceDesde.asp?q="+valor+"&vLink=buscar";
}
function buscaLetra(valor){
   
   document.all.dva.style.display = "none";
   document.all.dvb.style.display = "none";
   document.all.dvc.style.display = "none";
   document.all.dvd.style.display = "none";
   document.all.dve.style.display = "none";
   document.all.dvf.style.display = "none";
   document.all.dvg.style.display = "none";
   document.all.dvh.style.display = "none";
   document.all.dvi.style.display = "none";
   document.all.dvj.style.display = "none";
   document.all.dvk.style.display = "none";
   document.all.dvl.style.display = "none";
   document.all.dvm.style.display = "none";
   document.all.dvn.style.display = "none";
   document.all.dvo.style.display = "none";
   document.all.dvp.style.display = "none";
   document.all.dvq.style.display = "none";
   document.all.dvr.style.display = "none";
   document.all.dvs.style.display = "none";
   document.all.dvt.style.display = "none";
   document.all.dvu.style.display = "none";
   document.all.dvv.style.display = "none";
   document.all.dvw.style.display = "none";
   document.all.dvx.style.display = "none";
   document.all.dvy.style.display = "none";
   document.all.dvz.style.display = "none";
   
   if(valor=="A"){
	       document.all.dva.style.display = "block";
   }
   if(valor=="B"){
	       document.all.dvb.style.display = "block";
   }
   if(valor=="C"){
		       document.all.dvc.style.display = "block";
   }
   if(valor=="D"){
		       document.all.dvd.style.display = "block";
   }
   if(valor=="E"){
		       document.all.dve.style.display = "block";
   }
   if(valor=="F"){
		       document.all.dvf.style.display = "block";
   }
   if(valor=="G"){
		       document.all.dvg.style.display = "block";
   }
   if(valor=="H"){
		       document.all.dvh.style.display = "block";
   }
   if(valor=="I"){
		       document.all.dvi.style.display = "block";
   }
   if(valor=="J"){
		       document.all.dvj.style.display = "block";
   }
   if(valor=="K"){
		       document.all.dvk.style.display = "block";
   }
   if(valor=="L"){
		       document.all.dvl.style.display = "block";
   }
    if(valor=="M"){
		       document.all.dvm.style.display = "block";
   }
    if(valor=="N"){
		       document.all.dvn.style.display = "block";
   }
    if(valor=="O"){
		       document.all.dvo.style.display = "block";
   }
    if(valor=="P"){
		       document.all.dvp.style.display = "block";
   }
    if(valor=="Q"){
		       document.all.dvq.style.display = "block";
   }
    if(valor=="R"){
		       document.all.dvr.style.display = "block";
   }
    if(valor=="S"){
		       document.all.dvs.style.display = "block";
   }
    if(valor=="T"){
		       document.all.dvt.style.display = "block";
   }
    if(valor=="U"){
		       document.all.dvu.style.display = "block";
   }
    if(valor=="V"){
		       document.all.dvv.style.display = "block";
   }
    if(valor=="W"){
		       document.all.dvw.style.display = "block";
   }
    if(valor=="X"){
		       document.all.dvx.style.display = "block";
   }
    if(valor=="Y"){
		       document.all.dvy.style.display = "block";
   } 
   if(valor=="Z"){
		       document.all.dvz.style.display = "block";
   }
   
}
function mostrarNoticia(valor){
    if(valor=="1"){
		       document.all.dvNoticias.style.display = "block";
    }
    if(valor=="2"){
		       document.all.dvNoticias2.style.display = "block";
    }
    if(valor=="3"){
		       document.all.dvNoticias3.style.display = "block";
    }
    if(valor=="4"){
		       document.all.divFoto.style.display = "block";
    }
}
function cerrarNoticia(valor){
    if(valor=="1"){
		       document.all.dvNoticias.style.display = "none";
    }
    if(valor=="2"){
		       document.all.dvNoticias2.style.display = "none";
    }
    if(valor=="3"){
		       document.all.dvNoticias3.style.display = "none";
    }
    if(valor=="4"){
		       document.all.divFoto.style.display = "none";
    }
}

			function show5(){

			if (!document.layers&&!document.all&&!document.getElementById)
			return

			 var Digital=new Date()
			 var hours=Digital.getHours()
			 var minutes=Digital.getMinutes()

			 var seconds=Digital.getSeconds()
				dows = new Array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
				months = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
				now = new Date();
				dow = now.getDay();
				d = now.getDate();
				m = now.getMonth();
				h = now.getTime();
				y = now.getYear();
				var entera=dows[dow]+" "+d+" de "+months[m]+" de "+y;

			var dn="PM"
			if (hours<12)
			dn="AM"
			if (hours>12)
			hours=hours-12
			if (hours==0)
			hours=12

			 if (minutes<=9)
			 minutes="0"+minutes
			 if (seconds<=9)
			 seconds="0"+seconds
			//change font size here to your desire
			myclock=" "+entera+"  "+hours+":"+minutes+":"+seconds+" "+dn+" "
			if (document.layers){
			document.layers.liveclock.document.write(myclock)
			document.layers.liveclock.document.close()
			}
			else if (document.all)
			liveclock.innerHTML=myclock
			else if (document.getElementById)
			document.getElementById("liveclock").innerHTML=myclock
			setTimeout("show5()",1000)
			 }
			 

						function regenerate(){
						window.location.reload()
						}
						function regenerate2(){
						if (document.layers){
						setTimeout("window.onresize=regenerate",5)
						intializemarquee()
						}
						}

						function intializemarquee(){
						document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
						document.cmarquee01.document.cmarquee02.document.close()
						thelength=document.cmarquee01.document.cmarquee02.document.height
						scrollit()
						}

						function scrollit(){
						if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
						document.cmarquee01.document.cmarquee02.top-=speed
						setTimeout("scrollit()",100)
						}
						else{
						document.cmarquee01.document.cmarquee02.top=marqueeheight
						scrollit()
						}
						}

						
						
var slideCache = new Array();

function RunSlideShow(pictureName,imageFiles,displaySecs){

var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if(document.all){
document.getElementById(pictureName).style.filter="blendTrans(duration=4)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all){
document.getElementById(pictureName).filters.blendTrans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)+ 
';'+nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",displaySecs*5000);
imageSeparator = futureImages.indexOf(";");
nextImage = futureImages.substring(0,imageSeparator);
if (slideCache[nextImage] == null)
{
slideCache[nextImage] = new Image;
slideCache[nextImage].src = nextImage;
}
}
function timeMsg()
{
document.getElementById('Titulo').innerHTML = document.all.frm1.vArtista.value;
document.getElementById('divCargando').style.display = "block";
var t=setTimeout("alertMsg()",10000);
}
function alertMsg()
{
document.getElementById('divCargando').style.display = "none";
}
						
						
						

						
