base_href = "http://www.telecinco.es";
estilos = base_href + "/estilos/estilos.css";
titulo = "Telecinco.es";
<!-->
function imprime_head()
{
document.write("<base href='"+base_href+"'>\n<link rel=stylesheet href='"+estilos+"'>\n<title>"+titulo+"</title>");
}

function hidestatus(){ window.status='www.telecinco.es'; return true }
if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus;
document.onmouseout=hidestatus;

function ax(url,bol,hit,feat,logc,logd)
{
	if((hit.indexOf ("/")!=-1)) 	{ m=hit.split('/'); LPth=m[0]; LPg=m[1]; }
	else { LPth=undefined; LPg=hit;}								
emspy.jump(url,bol,'www.hits.telecinco.es','home_telecinco',LPth,LPg,'ventana',feat);
}

function ax2()
{
	var refe = window.event.srcElement;
	if (!(!refe.hit))
	{
		m=refe.hit.split('/');
		LPth=m[0]; 
		LPg=m[1];
		emspy.addImpression('www.hits.telecinco.es','home_telecincox',LPth,LPg);
		return;	
	}

}

function az(url,bol,hit,feat,logc,logd)
{
	if((hit.indexOf ("/")!=-1))	{m=hit.split('/'); LPth=m[0];  LPg=m[1];}
	else {LPth=undefined; LPg=hit;}		
emspy.jump(url,bol,'www.hits.telecinco.es',logd,LPth,LPg,'ventana',feat);
}
function fechat5()
{days = ["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sabado"];
    today = new Date(); 
	day = days[today.getDay()];
    year=today.getYear(); 
	if (year < 2000)
	year = year + 1900;
	document.write (day + " " + today.getDate() + "." + (parseInt(today.getMonth()) + 1) + "." + year);}

function c1(obj){  obj.style.backgroundColor="efefce";}
function c2(obj){  obj.style.backgroundColor="e6dfeb";}
var arrcabedi = [ "","", "","","", "","","", "","",""  ];var acinf=["","",""];

function wopen(theURL,feat) 
{ if (feat == "")
{ feat = "'scrollbars=yes,toolbars=yes'";}
window.open(theURL,'ventana',feat);}

//ruta absoluta para la votacion
var z=Math.floor(Math.random()*100000);
var RutaVotacion = "http://www.telecinco.es/VotacionEstadisticas.php";


function validaResultadohome(modo)	
	{
	var valor = document.votacion2.votos.options[document.votacion2.votos.options.selectedIndex].value; 
	var counter = document.votacion2.votos.length-1;
	counter=350+(counter*30);
	if(modo==0)  window.open(RutaVotacion + "?wa=" + document.votacion2.wa.value+ "&id="+ document.votacion2.id.value+"&i="+document.votacion2.i.value+"&porc="+document.votacion2.porc.value+"&counter="+counter+"&modo=resultado&z="+z ,"","width=468,height="+counter);						
	else if (modo==1 && valor != "")  window.open(RutaVotacion + "?wa=" + document.votacion2.wa.value + "&id="+ document.votacion2.id.value +"&i="+document.votacion2.i.value+"&porc="+document.votacion2.porc.value+"&v="+valor+"&counter="+counter+"&modo=voto&z="+z,"","width=468,height="+counter);
	} 


function validaResultado(modo){
		var chekeado=-1;
		var counter=0;
		if(modo==0){
			for(var i=0;i<document.votacion.elements.length;i++){
				if(document.votacion.elements[i].type!="hidden")
				{	counter++;
		 			if (document.votacion.elements[i].checked)  document.votacion.elements[i].checked=false;	
			  	}		 
			}
			counter=200+(counter*36);
			location.href = RutaVotacion + "?wa=" + document.votacion.wa.value+ "&id="+ document.votacion.id.value+"&i="+document.votacion.i.value+"&porc="+document.votacion.porc.value+"&counter="+counter+"&modo=resultado&z="+z ,"","width=468,height="+counter;

		}
		else{
			for(var i=0;i<document.votacion.elements.length;i++){
				if(document.votacion.elements[i].type!="hidden")
				{	counter++;
		 			if (document.votacion.elements[i].checked) chekeado=document.votacion.elements[i].value;
			  	}		 
			}
			if (chekeado!=-1){
				counter=200+(counter*36);
				location.href = RutaVotacion + "?wa=" + document.votacion.wa.value + "&id="+ document.votacion.id.value +"&i="+document.votacion.i.value+"&porc="+document.votacion.porc.value+"&v="+chekeado+"&counter="+counter+"&modo=voto&z="+z,"","width=468,height="+counter;
			}
		}
	}//validaResultado

function validaResultado2(modo){
		var chekeado=-1;
		var counter=0;
		if(modo==0)
			{	for(var i=0;i<document.votacion2.elements.length;i++){
				if(document.votacion2.elements[i].type!="hidden")
				{	counter++; if (document.votacion2.elements[i].checked)  document.votacion2.elements[i].checked=false; }	 }
			counter=200+(counter*36);
			document.location.href = RutaVotacion + "?wa=" + document.votacion2.wa.value+ "&id="+ document.votacion2.id.value+"&i="+document.votacion2.i.value+"&porc="+document.votacion2.porc.value+"&counter="+counter+"&modo=resultado&z="+z ,"","width=468,height="+counter;

		}
		else
		{	for(var i=0;i<document.votacion2.elements.length;i++)
			{ if(document.votacion2.elements[i].type!="hidden")
				{	counter++; if (document.votacion2.elements[i].checked) chekeado=document.votacion2.elements[i].value; }}
			if (chekeado!=-1){
				counter=200+(counter*36);
				document.location.href = RutaVotacion + "?wa=" + document.votacion2.wa.value + "&id="+ document.votacion2.id.value +"&i="+document.votacion2.i.value+"&porc="+document.votacion2.porc.value+"&v="+chekeado+"&counter="+counter+"&modo=voto&z="+z,"","width=468,height="+counter;
			} } }//validaResultado2

var flash_ok = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;

document.write('<SCRI' + 'PT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('flash_ok = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash")) \n');
document.write('</SCR' + 'IPT\> \n');

function pintaflash(pelicula,width,height)
{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
document.write('  WIDTH=' + width + ' HEIGHT=' + height + '>');
document.write(' <PARAM NAME=movie VALUE="' + pelicula + '"> <PARAM NAME=quality VALUE=high>'); 
document.write(' <EMBED src="' + pelicula + '" quality=high wLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height);
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED></OBJECT>');
}

function pintaimagen(imagen,ancho,alto,enlace) 
	{ 
	if (!enlace) // si NO viene enlace
		document.write("<img src='" + imagen + "' width='" + ancho + "' height='" + alto + "'>");
	else		
		document.write("<a href='" + enlace + "' target='_blank'><img src='" + imagen + "' width='" + ancho + "' height='" + alto + "' border=0></a>");
	}

function pintaflash_art(pelicula,width,height,url)
{resp="";
if( buscastr(pelicula,".swf") ||  buscastr(pelicula,".SWF") ) 
{
resp = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
resp += '  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ';
resp += '  WIDTH=' + width + ' HEIGHT=' + height + '>';
resp += ' <PARAM NAME=movie VALUE="' + pelicula + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '; 
resp += ' <EMBED src="' + pelicula + '" quality=high bgcolor=#FFFFFF wLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height;
resp += ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
resp += ' </EMBED></OBJECT>';
return resp;
}
else
{ return pintaimagen_art(pelicula,width,height,url);} }

function pintaimagen_art(imagen,ancho,alto,url) { 
ai="";ad="";
if(url!=""){ai="<a href='"+url+"'>";ad="</a>";}
re =  ai+"<img src='" + imagen + "' width='" + ancho + "' height='" + alto + "' border=0>"+ad;
return re;
}

function open_video(idVideo, urlVideo, idskin)
{
	if (idVideo == "")
	{
		if(idskin == ""){ idskin="84";}
		//no pago
		var url = "http://www.video.telecinco.es/checkvideo.htm?idSkin=" + idskin + "&urlVideo=" + urlVideo;
		window.open(url,"VideosTelecinco","width=320 height=240");
	}
	else
	{ //es de pago
		var url = "http://www.video.telecinco.es/checkvideo.htm?idSkin=" + idskin + "&idVideo=" + idVideo;
		window.open(url,"VideosTelecinco","width=320 height=240");
	}
}

function buscastr(str_origen,str_buscar)
{
	var url_val = String(str_origen);
	var res = url_val.search(str_buscar);
	if(res != -1)
		return true;
	else
		return false;
}

/***** eliminar lo de abajo ***/


function menu_elem_img(img,url,w,h,bord,est,align)
{altable="align=left";ai="";ad="";
if(align==""){altable="";}
if(bord != ""){b="<tr><td class=linhbox></td></tr>";}else{b="";}
resp = "<table width="+w+" height=100% border=0 cellspacing=0 cellpadding=0 class='"+est+"' "+altable+">"+b;
resp += "<tr><td valign=top width="+w+" height=100%>"+pintaflash_art(img,w,h,url)+"</td></tr></table>";

return resp;
}

function menu_elem_txt(tit,txt,url,w,h,bord,est,esttit,esttxt,n,align,linf) {
	bh="";
	bv="";
	rb=0;
	ai="";
	ai2="";
	ad="";
	al1=" valign=top ";
	al2=" valign=middle ";
	al=al2;
	altable="align=left";
	l_f="";

	if(align==""){
		altable="";
	}/*si dice que align == '' no le coloca a la tabla align=left asi que no se puede colocar ningun elemento al lado */
	
	if(esttxt==""){
		esttxt=esttit;
	}/*si el estilo del texto viene vacio lo reemplazo con el del titulo, si el del titulo viene vacio...???*/
	
	if(bord != ""){
		//bh="<tr><td class=linhbox></td></tr>";
		bv="<td width=3></td>";
		rb=3;
	}
	
	if(h!=""){
		h="height='"+h+"'";
	}
	//if(tit != ""){tit="<b>"+tit+"</b>";}else{tit="";}
	if((txt!="")&&(tit!="")){
		txt="<br>"+txt;
		al=al1;
	} else {
		al=al2;
	} /*quitar mas adelante lo de al al1 y al2*/
		
	if(url!=""){
		ai="<a href='"+url+"' class='"+esttxt+"' "+al+">";
		ai2="<a href='"+url+"' class='"+esttit+"' "+al+">";
		ad="</a>";
	}
	
	if(n!=""){
		n="&nbsp;<img src='images/pqnuevo.gif' border=0 align=absmiddle>";
	}
	
	if(linf!=""){
		l_f="<tr><td colspan=3 class="+linf+"><img width=1></td></tr>";
	}
	
	resp = "<table border=0 cellspacing=0 cellpadding=0 height =15px class='"+est+"' width="+w+" "+h+" "+altable+">"+bh;
//	resp += "<tr><td width=5><img width=1></td><td width="+(w-5-rb)+" "+al+" class="+esttxt+">"+ai2+tit+ad+ai+txt+ad+n+"</td>"+bv+"</tr>"+bh+l_f+"</table>";
	resp += "<tr><td width="+(w-5-rb)+" "+al+" class="+esttxt+">"+ai2+tit+ad+n+"</td>"+bv+"</tr>"+bh+l_f+"</table>";
	return resp;
} //function



//funcion mejorada que se reutiliza en el caso de ser un encabezado
function elemento(tit,tit2,txt,img,imgw,imgh,url,urltxt,urlimg,esttit,esttittxt,estbot,estbottit,estbottxt,estimg,estl1,estl2,n,inv,ancho,bordtxt) {

	if(urltxt=="") {
		urltxt=url;
	}
	
	if(urlimg=="") {
		urlimg=url;
	}
	
	if(imgw!='') {
		anchotxt=ancho-imgw;
	} else {
		anchotxt=ancho;
	}
	
	if (tit!="") {
		document.write(menu_elem_txt(tit,'',url,ancho,'',bordtxt,esttit,esttittxt,'',n,'',estl1));
	}
	
	if((img!="")||(tit2!="")||(txt!="")) {
		document.write("<table width="+ancho+" border=0 cellspacing=0 cellpadding=0 class='"+estbot+"'><tr><td valign=top>");
	
		if(img=="") {
			elemimg="";
		} else { 
			if((tit=="")&&(tit2=="")&&(txt=="")) {
				borde='';
			} else {
				borde=1;
			} 
			elemimg = menu_elem_img(img,urlimg,imgw,imgh,borde,estimg,1);
		}
		
		if((tit2=="")&&(txt=="")){
			elemtxt = "";
		} else {
		//  alert(menu_elem_txt(tit2,txt,urltxt,anchotxt,'',bordtxt,estbot,estbottit,estbottxt,n,1,''));
			elemtxt = menu_elem_txt(tit2,txt,urltxt,anchotxt,'',bordtxt,estbot,estbottit,estbottxt,n,1,'');
		}
		
		if(inv != ""){
			document.write(elemtxt + elemimg);
		} else {
			document.write(elemimg+elemtxt);
		}
		
		if(estl2 != ""){
			l_f = "<tr><td class='"+estl2+"' ></td></tr>";
		} else {
			l_f="";
		}
		
		document.write("</td>"+l_f+"</table>");
	}
}//function


function genera_ax(url,tipo,hit,ancho,alto)
{if(!hit){hit="home/elem";}
var r="";
switch(tipo)
{case "popup":
	{var extra = "";
	if ((ancho!="")&&(alto!="")){extra=",\"width="+ancho+",height="+alto+"\"";}
	r = "javas"+"cript:ax(\""+url+"\",true,\""+hit+"\""+extra+")";break;}
case "ventana":
	{r = "javas"+"cript:ax(\""+url+"\",true,\""+hit+"\")";break;}
default:
	{r = "javas"+"cript:ax(\""+url+"\",false,\""+hit+"\")";break;}
}
return r;}


function enlace_simple(txt,url,ancho,lin)
{if(lin){lin="lingris";}else{lin="";}
document.write(menu_elem_txt(txt,'',url,404,'',1,'fonbla10','v10gob','','','',lin));}


function titulo_img(img,imgw,imgh,url,tipo,hit,popw,poph)
{url = genera_ax(url,tipo,hit,popw,poph);
elemento('','','',img,imgw,imgh,url,'','','','','','','','','','','','',imgw,'');}

function titulo_texto2(txt,url,tipo,hit,popw,poph)
{if (url){url = genera_ax(url,tipo,hit,popw,poph);}
elemento(txt,'','','','','',url,'','','titdesta','v10bb','fondoc','','','','','','','',197,'');	}

function titulo_texto(txt,url,tipo,hit,popw,poph,ancho,estfondo,esttexto)
{ if (url){url = genera_ax(url,tipo,hit,popw,poph);}
elemento(txt,'','','','','',url,'','',estfondo,esttexto,'fondoc','','','','','','','',ancho,'');}