
var JSIncludePubli=true;var JSflashVersion=0;var JSflashVersion_DONTKNOW=-1;function getFlashVersion(){var agent=navigator.userAgent.toLowerCase();if(agent.indexOf("mozilla/3")!=-1&&agent.indexOf("msie")==-1){JSflashVersion=0;}
if(navigator.plugins!=null&&navigator.plugins.length > 0){var flashPlugin=navigator.plugins['Shockwave Flash'];if(typeof flashPlugin=='object'){if(flashPlugin.description.indexOf('9.')!=-1)JSflashVersion=9;else if(flashPlugin.description.indexOf('8.')!=-1)JSflashVersion=8;else if(flashPlugin.description.indexOf('7.')!=-1)JSflashVersion=7;else if(flashPlugin.description.indexOf('6.')!=-1)JSflashVersion=6;else if(flashPlugin.description.indexOf('5.')!=-1)JSflashVersion=5;else if(flashPlugin.description.indexOf('4.')!=-1)JSflashVersion=4;else if(flashPlugin.description.indexOf('3.')!=-1)JSflashVersion=3;}
}
else if(agent.indexOf("msie")!=-1&&parseInt(navigator.appVersion)>=4&&agent.indexOf("win")!=-1&&agent.indexOf("16bit")==-1){document.write('<scr'+'ipt language="VBScript"\> \n');document.write('on error resume next \n');document.write('dim obFlash \n');document.write('set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.9") \n');document.write('if IsObject(obFlash) then \n');document.write('JSflashVersion = 9 \n');document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.8") end if \n');document.write('if JSflashVersion < 9 and IsObject(obFlash) then \n');document.write('JSflashVersion = 8 \n');document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7") end if \n');document.write('if JSflashVersion < 8 and IsObject(obFlash) then \n');document.write('JSflashVersion = 7 \n');document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6") end if \n');document.write('if JSflashVersion < 7 and IsObject(obFlash) then \n');document.write('JSflashVersion = 6 \n');document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") end if \n');document.write('if JSflashVersion < 6 and IsObject(obFlash) then \n');document.write('JSflashVersion = 5 \n');document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") end if \n');document.write('if JSflashVersion < 5 and IsObject(obFlash) then \n');document.write('JSflashVersion = 4 \n');document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") end if \n');document.write('if JSflashVersion < 4 and IsObject(obFlash) then \n');document.write('JSflashVersion = 3 \n');document.write('end if \n');document.write('if JSFlashVersion > 4 then \n');document.write('Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash") \n');document.write('JSFlashVersion = Left(Hex(obFlash.FlashVersion),1) \n');document.write('end if \n');document.write('</scr'+'ipt\> \n');}
else if(agent.indexOf("webtv/2.5")!=-1)JSflashVersion=3;else if(agent.indexOf("webtv")!=-1)JSflashVersion=2;else{JSflashVersion=JSflashVersion_DONTKNOW;}
return JSflashVersion;}
function flash_id(cadena){var patron=/.*\/([\w-]+)\.swf$/i;if(patron.test(cadena)){return(RegExp.$1);}
return "PeliculaFlash";}
function abre_ventana_foto_grande(url,params){var wname=Math.round(Math.random()*100000000);window.open(url,wname,params);}
function EscribeBloquePublicidadFlash(archivoswf,cadenaclicktag,ancho,alto,wmode,idflash,retornacodigo,bgcolor){if(idflash==""){idflash=flash_id(archivoswf);}
if(wmode!="transparent"){wmode="opaque";}
var cadena='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+'width="'+ancho+'" height="'+alto+'" id="'+idflash+'">\n';cadena=cadena+'<param name="movie" value="'+archivoswf+cadenaclicktag+'" />\n';cadena=cadena+'<param name="wmode" value="'+wmode+'" />\n';cadena=cadena+'<param name="quality" value="high" />\n';var colorstr="";if(bgcolor){cadena=cadena+'<param name="bgcolor" value="'+bgcolor+'" />\n';colorstr='bgcolor='+bgcolor+'"'
}
cadena=cadena+'<embed wmode="'+wmode+'" src="'+archivoswf+cadenaclicktag+'" quality="high" '+colorstr+' menu="false" width="'+ancho+'" height="'+alto+'" name="'+idflash+'" type="application/x-shockwave-flash"'+' pluginspage="http://www.macromedia.com/go/getflashplayer">\n';cadena=cadena+'</embed>\n';cadena=cadena+'</object>\n';if(retornacodigo){return cadena;}
else{document.write(cadena);}
}
function writeCodeToElement(id,code){var bloque=(typeof(id)=='string')? document.getElementById(id):id;bloque.innerHTML=code;}
function EscribeGraficoFlash(archivoswf,cadenaclicktag,ancho,alto,wmode,version,justificacion){var LocalVersion=getFlashVersion();var cadena;if(wmode!="transparent"){wmode="opaque";}
if(LocalVersion > 0){if(LocalVersion < version){archivoswf="http://cache.elmundo.es/js/data/noflashc.swf";cadenaclicktag="?clickTag=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";}
archivoswf=archivoswf.replace(/http:\/\/www\.elmundo\.es/i,"http:\/\/estaticos\.elmundo\.es");archivoswf=archivoswf.replace(/http:\/\/elmundodeporte\.elmundo\.es/i,"http:\/\/estaticos\.elmundo\.es");var urlflash="";var re_url=/(http:\/\/.*)\/[\w-]+\.swf$/i;if(re_url.test(archivoswf)){urlflash=RegExp.$1;}
var idflash=flash_id(archivoswf);cadena='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+
'width="'+ancho+
'" height="'+alto+
'" align="'+justificacion+
'" id="'+idflash+'">\n';cadena=cadena+'<param name="movie" value="'+archivoswf+cadenaclicktag+'" />\n';cadena=cadena+'<param name="wmode" value="'+wmode+'" />\n';cadena=cadena+'<param name="quality" value="high" />\n';cadena=cadena+'<param name="menu" value="false" />\n';cadena=cadena+'<param name="allowScriptAccess" value="always" />\n';cadena=cadena+'<param name="flashvars" value="urldirectorioswf='+urlflash+'" />\n';cadena=cadena+'<embed wmode="'+wmode+'" src="'+archivoswf+cadenaclicktag+'" quality="high" menu="false" width="'+ancho+'" height="'+alto+'" align="'+justificacion+'" name="'+idflash+'" flashvars="urldirectorioswf='+urlflash+'" type="application/x-shockwave-flash" '+' pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always">\n';cadena=cadena+'</embed>\n';cadena=cadena+'</object>\n';document.write(cadena);}
else{cadena='<table cellspacing="0" cellpadding="10" bgcolor="eeeeee" border="0" width="'+ancho+'" height="'+alto+'" align="'+justificacion+'"><tr><td align="center"><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Instale el plug-in de Flash para ver correctamente este contenido</a></td></tr></table>\n'
document.write(cadena);}
}
function EscribeObjectVideo(archivowmv,ancho,alto,justificacion,autostart){cadena='<object CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="reproductorwmv" '+
'width="'+ancho+
'" height="'+alto+
'" align="'+justificacion+
'" type="application/x-oleobject">\n';cadena=cadena+'<param name="url" value="'+archivowmv+'" />\n';cadena=cadena+'<param name="AutoStart" value="'+autostart+'" />\n';cadena=cadena+'<embed type="application/x-mplayer2" src="'+archivowmv+'" width="'+ancho;cadena=cadena+'" height="'+alto+'" align="'+justificacion+'" autostart="'+autostart+'">\n';cadena=cadena+'</embed>\n';cadena=cadena+'</object>\n';document.write(cadena);}
function CParametro(n,v){this.nombre=n;this.valor=v;}
function EscribeAppletJava(valor_code,valor_codebase,valor_name,valor_width,valor_height,array_parametros_applet){var cadena='<applet code="'+valor_code+'" codebase="'+valor_codebase+'" name="'+valor_name+
'" width='+valor_width+' height='+valor_height+' MAYSCRIPT>\n';var numero_parametros=array_parametros_applet.length;for(var i=0;i<numero_parametros;i++){nuevo_parametro=array_parametros_applet[i];nombre_parametro=nuevo_parametro.nombre;valor_parametro=nuevo_parametro.valor;cadena=cadena+'<param name="'+nombre_parametro+'" value="'+valor_parametro+'" />\n';}
cadena=cadena+'Java support is required for panoramic images.\n';cadena=cadena+'</applet>\n';document.write(cadena);}
function clickAnunciante(url){if(url.indexOf("+http%3A//+")==-1){window.open(url);}
}
function Is(){var agt=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.minor=parseFloat(navigator.appVersion);this.nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)
&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)
&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));this.nav2=(this.nav&&(this.major==2));this.nav3=(this.nav&&(this.major==3));this.nav4=(this.nav&&(this.major==4));this.nav4up=(this.nav&&(this.major >=4));this.navonly=(this.nav&&((agt.indexOf(";nav")!=-1)||
(agt.indexOf("; nav")!=-1)));this.nav6=(this.nav&&(this.major==5));this.nav6up=(this.nav&&(this.major >=5));this.gecko=(agt.indexOf('gecko')!=-1);this.ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));this.ie3=(this.ie&&(this.major < 4));this.ie4=(this.ie&&(this.major==4)&&(agt.indexOf("msie 4")!=-1));this.ie4up=(this.ie&&(this.major >=4));this.ie5=(this.ie&&(this.major==4)&&(agt.indexOf("msie 5.0")!=-1));this.ie5_5=(this.ie&&(this.major==4)&&(agt.indexOf("msie 5.5")!=-1));this.ie5up=(this.ie&&!this.ie3&&!this.ie4);this.ie5_5up=(this.ie&&!this.ie3&&!this.ie4&&!this.ie5);this.ie6=(this.ie&&(this.major==4)&&(agt.indexOf("msie 6.")!=-1));this.ie6up=(this.ie&&!this.ie3&&!this.ie4&&!this.ie5&&!this.ie5_5);this.mac=(agt.indexOf("mac")!=-1);this.CSS1=(document.compatMode=="CSS1Compat");}
var is;var isIE3Mac=false;if((navigator.appVersion.indexOf("Mac")!=-1)&&(navigator.userAgent.indexOf("MSIE")!=-1)&&
(parseInt(navigator.appVersion)==3))
isIE3Mac=true;else is=new Is();function GetObjectStyle(objectId){if(document.layers&&document.layers[objectId]){return document.layers[objectId];}else if(document.getElementById&&document.getElementById(objectId)){return document.getElementById(objectId).style;}else if(document.all&&document.all(objectId)){return document.all(objectId).style;}else{return false;}
}
function cerrarPubNetscape(){document.Flotante.visibility="hidden";}
function miniPubNetscape(){document.Flotante.resizeTo(240,11);}
function maxiPubNetscape(){document.Flotante.resizeTo(240,515);}
function cerrarPubExplorer(capa){if(document.all){document.all(capa).style.visibility="hidden";document.all("anunciante").style.visibility="hidden";}
else{document.getElementById(capa).style.visibility="hidden";document.getElementById("anunciante").style.visibility="hidden";}
}
function miniPubExplorer(capa){if(document.all){document.all(capa).style.clip='rect('+0+' '+240+' '+11+' '+0+')';}
else{document.getElementById("anunciante").style.visibility="hidden";}
}
function maxiPubExplorer(capa){if(document.all){document.all(capa).style.clip='rect('+0+' '+240+' '+515+' '+0+')';}
else{document.getElementById("anunciante").style.visibility="visible";}
}
function wRefresh(){var distanciaTop=0;if(document.documentElement&&document.documentElement.scrollTop){distanciaTop=document.documentElement.scrollTop;}
else{if(window.pageYOffset){distanciaTop=window.pageYOffset;}
else{distanciaTop=document.body.scrollTop;}
}
wMark.top=(posY+distanciaTop)+'px';}
function setVals(){if(navDOM){}
else{innerWidth=document.body.clientWidth;innerHeight=document.body.clientHeight;}
posX=250;if(primeravez){posY=altura-2;}
else{posY=2;}
primeravez=false;wRefresh();}
function pinta(){if(posY >=29){posY-=20;setTimeout('pinta()',30);}
else{posY=2;}
if((is.nav4||is.nav4up)&&posY<30&&!(is.CSS1)){markid=setInterval("wRefresh()",markRefresh);}
wRefresh();}
function markMe(){if(is.nav4){document.layers["Flotante"].visibility="show";}
else{var ObjectStyleBarra=GetObjectStyle("Flotante");var ObjectStyleCreatividad=GetObjectStyle("anunciante");if(ObjectStyleBarra){ObjectStyleBarra.visibility="visible";}
if(ObjectStyleCreatividad){ObjectStyleCreatividad.visibility="visible";}
}
if((is.ie5up||is.nav4up)&&!(is.mac)){setVals();if(!is.CSS1){window.onresize=setVals;window.onscroll=setVals;}
pinta();}
}
var tamanoLetrapordefecto=5;var tamanoLetra=tamanoLetrapordefecto;var tamanoLetraminimo=3;var tamanoLetramaximo=7;var identidadLetra;function aumentaLetra(){if(tamanoLetra < tamanoLetramaximo){tamanoLetra+=1;identidadLetra=document.getElementById('tamano');identidadLetra.className='tamanoletra'+tamanoLetra;}
}
function disminuyeLetra(){if(tamanoLetra > tamanoLetraminimo){tamanoLetra-=1;identidadLetra=document.getElementById('tamano');identidadLetra.className='tamanoletra'+tamanoLetra;}
}
function imprimir(){window.print();}
function despliegaOS(estado){if(document.getElementById){var boton=document.getElementById("boton");boton.setAttribute("href","#");var menu=document.getElementById("caja").firstChild;while(menu.nodeType!=1){menu=menu.nextSibling;}
ponClaseOS(boton,estado);ponClaseOS(menu,estado);}
}
function despliegaOSPortada(estado){if(document.getElementById){var boton=document.getElementById("boton");boton.setAttribute("href","#");var menuDiv=document.getElementById("caja").firstChild;while(menuDiv.nodeType!=1){menuDiv=menuDiv.nextSibling;}
var botonDiv=document.getElementById("boton").firstChild;while(botonDiv.nodeType!=1){botonDiv=botonDiv.nextSibling;}
ponClaseOS(botonDiv,estado);ponClaseOS(menuDiv,estado);}
}
function obtenClaseOS(elemento){if(elemento.getAttribute("class")){return elemento.getAttribute("class");}
else
if(elemento.getAttribute("className")){return elemento.getAttribute("className");}
}
function ponClaseOS(elemento,valorClase){if(elemento.setAttribute("class",valorClase)){elemento.setAttribute("class",valorClase);}
else
if(elemento.setAttribute("className",valorClase)){elemento.setAttribute("className",valorClase);}
}
function inserta_pixel_resoluciones(){var screenWidth=screen.width;var screenHeight=screen.height;var browserWidth;var browserHeight;var random=Math.random()*1000000000;var re=/\s/g;var agent=navigator.userAgent.toLowerCase().replace(re,"_");if(document.all){browserWidth=document.body.clientWidth;browserHeight=document.body.clientHeight;}
else{browserWidth=innerWidth;browserHeight=innerHeight;}
document.write('<!--- ##IBEXCLU ---><!-- INICIO PIXELCOUNTER --><div style="position:absolute;top:0px;left:0px;width:1px;height:1px;visibility:hidden;z-Index:2"><img src="http://anapixel.elmundo.es/banner.gif?campaign=generico&group=generico&page=generico&creativity=generico&endpartialtimestamp=77359400&sign=BA4A9F01B3AFADEF9D0003A96FBDEF6D&type='+
escape('S'+screenWidth+'x'+screenHeight+'.B'+browserWidth+'x'+browserHeight+".U"+agent)+
'&rnd='+random+'" width="1" height="1" border="0" alt="anapixel" /></div><!-- FIN PIXELCOUNTER --><!--- ##FBEXCLU --->');}
function inserta_pixel_versionflash(){var version=getFlashVersion();var random=Math.random()*1000000000;document.write('<!--- ##IBEXCLU ---><!-- INICIO PIXELCOUNTER --><div style="position:absolute;top:0px;left:0px;width:1px;height:1px;visibility:hidden;z-Index:2"><img src="http://anapixel.elmundo.es/banner.gif?campaign=generico&group=generico&page=generico&creativity=generico&endpartialtimestamp=77359400&sign=BA4A9F01B3AFADEF9D0003A96FBDEF6D&type=flashversion'+
version+'&rnd='+random+'" width="1" height="1" border="0" alt="anapixel" /></div><!-- FIN PIXELCOUNTER --><!--- ##FBEXCLU --->');}
function EscribeReproductorFlash(archivoswf,parametros,ancho,alto){var LocalVersion=getFlashVersion();var cadena;if(LocalVersion > 0){if(LocalVersion < 7){archivoswf="http://cache.elmundo.es/js/data/noflashc.swf";parametros="?clickTag=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";}
archivoswf=archivoswf.replace(/http:\/\/www\.elmundo\.es/i,"http:\/\/estaticos\.elmundo\.es");archivoswf=archivoswf.replace(/http:\/\/elmundodeporte\.elmundo\.es/i,"http:\/\/estaticos\.elmundo\.es");var urlflash="";var re_url=/(http:\/\/.*)\/[w-]+\.swf$/i;if(re_url.test(archivoswf)){urlflash=RegExp.$1;}
var idflash=flash_id(archivoswf);cadena='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" '+
'width="'+ancho+
'" height="'+alto+
'" id="'+idflash+'">\n';cadena=cadena+'<param name="movie" value="'+archivoswf+parametros+'" />\n';cadena=cadena+'<param name="wmode" value="opaque" />\n';cadena=cadena+'<param name="quality" value="high" />\n';cadena=cadena+'<param name="scale" value="exactfit" />\n';cadena=cadena+'<param name="menu" value="false" />\n';cadena=cadena+'<param name="flashvars" value="urldirectorioswf='+urlflash+'" />\n';cadena=cadena+'<embed wmode="opaque" src="'+archivoswf+
parametros+
'" quality="high" menu="false" scale="exactfit" width="'+ancho+
'" height="'+alto+
'" name="'+idflash+
'" flashvars="urldirectorioswf='+urlflash+
'" type="application/x-shockwave-flash" '+
' pluginspage="http://www.macromedia.com/go/getflashplayer">\n';cadena=cadena+'</embed>\n';cadena=cadena+'</object>\n';document.write(cadena);}
else{cadena='<table cellspacing="0" cellpadding="10" bgcolor="eeeeee" border="0" width="'+ancho+
'" height="'+alto+
'"><tr><td align="center"><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Instale el plug-in de Flash para ver correctamente este contenido</a></td></tr></table>\n'
document.write(cadena);}
}
function Clickheretoprint(){var disp_setting="toolbar=no,location=no,directories=no, menubar=yes,";disp_setting+="scrollbars=yes,width=845, height=795, left=100, top=25";var codigo=document.getElementById("codigo").innerHTML;var tabla=document.getElementById("tabla").innerHTML;var docprint=window.open("","",disp_setting);docprint.document.open();docprint.document.write('<html><head><title>Versi&oacute;n para imprimir</title>');docprint.document.write('<link rel="stylesheet" type="text/css" href="fileadmin/template/css/print.css" title="printstyle"></head><body>');docprint.document.write('<div style="float: left; width:100%;"><img src="fileadmin/template/imagenes/cabecera_ficha.jpg" width="845" height="221" style="margin-top: 10px; margin-bottom: 15px;" ></div>');docprint.document.write('<div style="float: left; font-size: 20px;text-align:left; margin-left: 15px; width:830px;color:#29458F;text-transform: uppercase;">'+codigo+'<table style="color: #29458F;font-size: 16px;margin-top: 10px;font-weight:bold;">'+tabla+'</table></div>');docprint.document.write('<div style="float: left; margin-top: 10px; width: 100%; margin-left: 15px;"><a href="javascript:window.print()">Imprimir</a></div>');docprint.document.write('<div style="float: left; width:100%;"><img src="fileadmin/template/imagenes/pie_ficha.jpg" width="845" height="255" style="" ></div>');docprint.document.write('</body></html>');docprint.document.close();docprint.focus();}
