var verExtra=-1;versiones=["MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];if(window.addEventListener)window.addEventListener('load',IniciarExtra,false);else if(window.attachEvent)window.attachEvent('onload',IniciarExtra);var recibirExtra=false;if(window.XMLHttpRequest){recibirExtra=new XMLHttpRequest();}else if(window.ActiveXObject){for(i=0;i<versiones.length&&!recibirExtra;i++){try{oXmlHttp=new ActiveXObject(versiones[i]);recibirExtra=oXmlHttp;}catch(e){}}}function IniciarExtra(){if(verExtra>=0){verExtra--;CambiarExtra(verExtra+1);}}function RecepcionExtra(nuevoExtra){if(recibirExtra.readyState==4){var entrada=recibirExtra.responseText;pos=entrada.indexOf('#'+'@#');if(pos!=-1){txtCss=entrada.substring(0,pos-1);entrada=entrada.substring(pos+3);estilo=document.getElementById("cssextra");if(estilo)estilo.parentNode.removeChild(estilo);estilo=document.createElement("style");estilo.id="cssextra";estilo.type="text/css";if(estilo.styleSheet)estilo.styleSheet.cssText=txtCss;else
estilo.appendChild(document.createTextNode(txtCss));document.getElementsByTagName("head")[0].appendChild(estilo);}pos=entrada.indexOf('@'+'#@');if(pos!=-1){txtScript=entrada.substring(pos+3);entrada=entrada.substring(0,pos-1);}EscribirDiv("extra",entrada);if(pos!=-1){script=document.getElementById("jsextra");if(script)script.parentNode.removeChild(script);script=document.createElement("script");script.id="jsextra";script.type="text/javascript";script.text=txtScript;document.getElementsByTagName("head")[0].appendChild(script);}verExtra=nuevoExtra;}}function CambiarExtra(nuevoExtra){if(nuevoExtra<0&&verExtra>=0){document.getElementById('extra').style.display="none";EscribirDiv("extra","&nbsp;");verExtra=-1;}else if(nuevoExtra>verExtra){document.getElementById("extra").style.display="block";EscribirDiv("extra",'<div class="destacado"><img class="icono" src="actualizando.gif" width="16" height="16" />&nbsp;<b>Cargando contenidos...</div>');recibirExtra.open("GET","extraajax.php",true);recibirExtra.onreadystatechange=function(){RecepcionExtra(nuevoExtra);};recibirExtra.send(null);}}