var hmURL = "http://www.esmas.com/"; var cmURL = "http://www.esmascompras.com/"; var imgURL = "http://i.esmas.com/img/univ/portal/headerv3/"; var he = ".esmasHdr_"; var ff = "font-family: Arial, Helvetica, sans-serif;"; var tc = 'cellspacing="0" cellpadding="0" border="0"'; var isCentered = false; var nav = new Array( "btn_deportes.gif",hmURL+"deportes/", "btn_futbol.gif",hmURL+"deportes/futbol/", "btn_espectaculos.gif",hmURL+"espectaculos/", "btn_cine.gif",hmURL+"espectaculos/cine/", "VideoRedBase.gif","http://video.esmas.com/", "btn_telenovelas.gif",hmURL+"espectaculos/telenovelas/", "btn_noticieros.gif",hmURL+"noticierostelevisa/", "btn_ninos.gif",hmURL+"ninos/", "btn_mujer.gif",hmURL+"mujer/", "btn_salud.gif",hmURL+"salud", "btn_empleo.gif","http://www.templeo.com/" ); var serv = new Array( "head_ico_tarabu.gif",hmURL+"musica/", "icon_tv_y_video_wht.gif",hmURL+"tv/", "icon_player.gif","http://www.esmasplayer.com/", "icon_guiatv.gif",hmURL+"espectaculos/canalestv/", "head_ico_gyygs.gif","javascript:NewWindow('http://gyggs.com/','nosettings')", "icon_esmas_movil.gif","javascript:NewWindow('"+hmURL+"movil/','nosettings')" ); var tabs = new Array( "Esmas","http://search.esmas.com/esmas/buscador_noticias.php", "Imágenes","http://search.esmas.com/esmas/buscador_fotos.php", "Video","http://search.esmas.com/esmas/buscador_videos.php", "Música","http://search.esmas.com/esmas/buscador_musica.php", "Móvil","http://search.esmas.com/esmas/buscador_movil.php", "Internet","http://search.esmas.com/esmas/buscador_google.php", "Comunidades","http://search.esmas.com/esmas/buscador_comunidades.php" ); var upBnr2 = false; function comprasvs(forma){ if(forma.esearch.value == ""){ alert("Por favor introduce por lo menos una palabra"); return false; } if (forma.meta[2].checked == true){ forma.action = "http://www.esmascompras.com/pesquisa/pesquisa.asp"; forma.palavra.value = escape(forma.esearch.value); return true; } else { return true; } } function writeSmallDate(){ monthNames = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); theDate = new Date(); document.write(monthNames[theDate.getMonth()] +" " + theDate.getDate() + ", " + theDate.getFullYear()); } function makeHomePage(caller) { var agt=navigator.userAgent.toLowerCase(); if ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) { caller.style.behavior='url(#default#homepage)'; caller.setHomePage(caller); } } function GetAction(x) { document.esmas_newsearch.action = document.getElementById(x).value; document.getElementById('esearch').focus(); } function comprasvsnew(forma){ if(forma.esearch.value == "") { alert("Por favor introduce por lo menos una palabra"); return false; }else{ if(forma.action == undefined || forma.action == "") forma.action = 'http://search.esmas.com/esmas/buscador_noticias.php'; return true; } } function comprasvs(forma){ if(forma.esearch.value == "") { alert("Por favor introduce por lo menos una palabra"); return false; } } function writeHeader (logIzq, logDer, site, canal, subcanal, url1, url2, cent, upBnr, ssl) { (ssl != null)?imgURL="https://login.esmas.com/img/univ/portal/headerv3/":ssl2=false; (upBnr != null)?upBnr2=upBnr:upBnr2=false; (cent != null)?isCentered=true:isCentered=false; (logIzq != "")?logI=logIzq:logI=imgURL+"spacer.gif";(url1 != "")?URL1=url1:URL1=''; (logDer != "")?logD=logDer:logD=imgURL+"spacer.gif";(url2 != "")?URL2=url2:URL2=''; out = ''; out += '<style>'; out += ' '+he+'Search { color: #3A3A3A; font-size: 9px; '+ff+' letter-spacing: 1px; vertical-align: middle; text-align: left; width: 40px;}'; out += ' '+he+'SearchText { color: #3A3A3A; font-size: 9px; '+ff+' border: thin groove; border-bottom: thin groove;}'; out += ' '+he+'Icon { width: 52px; align: center; }'; out += ' '+he+'Fecha{ color: #FFFFFF; font-size: 9px; font-family : Verdana, Arial, Helvetica; font-weight: bold;}'; out += ' '+he+'reg2,'+he+'reg2:visited{'+ff+' color : #FFFFFF; font-size : 9px; text-decoration:none;letter-spacing: 1px;}'; out += ' '+he+'reg2:hover{'+ff+' color : #FFFFFF; font-size : 9px; text-decoration:none;letter-spacing: 1px;}'; out += '</style>'; out += '<div id="new_header">'; if(logDer != "") { out += '<div id="header_main" style="width: auto">'; }else{ out += '<div id="header_main" style="width: 775px">'; } out += '<script type="text/javascript" src="http://www.esmas.com/cosmosfiles/js/portal/newheader/tabmas.js"><\/script>';
out += '<link type="text/css" href="http://www.esmas.com/cosmosfiles/css/portal/newheader/styles.css" rel="stylesheet" />';
out += '<style type="text/css">.tabber{display:none;}</style>'; out += '<form class="forma_search" target="_blank" name="esmas_newsearch" id="esmas_newsearch" onsubmit="return comprasvsnew(this);" method="post" action="" >'; out += '<div class="img_logo_left">'; if(logIzq != "") out += '<a href="'+URL1+'"><img src="'+logI+'" class="img_logo_left_spacer" /><\/a>'; out += '<\/div>'; out += '<div id="cajabusqueda">'; out += '<div id="tabsinput">'; out += '<div class="tabber">'; out += '<div class="tabbertab"><h2>'+tabs[0]+'<\/h2><\/div>'; out += '<input id="header_opc1" type="hidden" name="header_opc1" value="'+tabs[1]+'" />'; out += '<div class="tabbertab"><h2>'+tabs[2]+'<\/h2><\/div>'; out += '<input id="header_opc2" type="hidden" name="header_opc2" value="'+tabs[3]+'" />'; out += '<div class="tabbertab"><h2>'+tabs[4]+'<\/h2><\/div>'; out += '<input id="header_opc3" type="hidden" name="header_opc3" value="'+tabs[5]+'" />'; out += '<div class="tabbertab"><h2>'+tabs[6]+'<\/h2><\/div>'; out += '<input id="header_opc4" type="hidden" name="header_opc4" value="'+tabs[7]+'" />'; out += '<div class="tabbertab"><h2>'+tabs[8]+'<\/h2><\/div>'; out += '<input id="header_opc5" type="hidden" name="header_opc5" value="'+tabs[9]+'" />'; out += '<div class="tabbertab"><h2>'+tabs[10]+'<\/h2><\/div>'; out += '<input id="header_opc6" type="hidden" name="header_opc6" value="'+tabs[11]+'" />'; out += '<div class="tabbertab"><h2>'+tabs[12]+'<\/h2><\/div>'; out += '<input id="header_opc7" type="hidden" name="header_opc7" value="'+tabs[13]+'" />'; out += '<\/div>'; out += '<div id="searchinput" style="vertical-align: top; top: 0;">'; out += '<input type="text" name="esearch" id="esearch" class="searchtext" onchange="javascript:while(\'\'+this.value.charAt(0)==\' \')this.value=this.value.substring(1,this.value.length);" /><button type="submit" value="buscar" name="buscar" id="gosearch" class="btn_search">Buscar<\/button>'; out += '<\/div>'; out += '<div id="sub_botones">'; out += '<div id="div_img_mapasitio">'; out += '<a href="http://www.esmas.com/mapadesitio/"><img src="http://i.esmas.com/img/univ/portal/headerv3/btn_book_sitemap.gif" alt="" class="img_mapasitio" /><\/a>';
out += '<\/div>'; out += '<div id="div_img_favoritos">'; out += '<a href="#" onclick="javascript:makeHomePage(this);"><img src="http://i.esmas.com/img/univ/portal/headerv3/btn_book_favoritos.gif" alt="" class="img_favoritos" /><\/a>';
out += '<\/div>'; out += '<\/div>'; out += '<\/div>'; if(logDer != "") { out += '<div class="img_logo_right">'; out += '<a href="'+URL2+'"><img src="'+logD+'" class="img_logo_right_spacer" /><\/a>'; out += '<\/div>'; } out += '<\/div>'; out += '<\/form>'; out += '<\/div>'; out += '<\/div>'; out += '<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="935px" border="0" bordercolor="#ff0000">'; hdr_columnas='1'; out += '<tr>'; out += ' <td colspan="'+hdr_columnas+'">'; out += ' <table cellpadding="0" cellspacing="0" border="0" class="borderheader" background="http://i.esmas.com/img/univ/v700/header/fondo_nav.gif">';
out += ' <tr>'; out += ' <td width="5px"><img src="'+imgURL+'spacer.gif" width="5" height="1" alt="" border="0"></td>'; out += ' <td background="'+imgURL+'fondo_fecha.gif" style="background-repeat: no-repeat;" width="114" height="22" style="padding-right: 10px;" align="center"><font class="esmasHdr_Fecha"><script>writeSmallDate();</script></font></td>'; menu = 1; for(i=0;i<nav.length;i++){ out += '<td><a href="' + nav[i+1] + '">'; out += '<img src="'+imgURL+ nav[i] +'" alt="" border="0" '; if(typeof( window['arMenu'+menu] ) != "undefined"){ out += 'onMouseOver="subir(' + (menu) + ')" onMouseOut="bajar(' + (menu) + ')"'; } out += '></a></td>'; i++;menu++; } out += ' <td width="5px"><img src="'+imgURL+'spacer.gif" width="5" height="1" border="0"></td>'; out += ' <td width="56"><a href="'+plecas['homerss'][1]+'"><img src="'+plecas['homerss'][0]+'" width="56" height="22" alt="RSS" border="0"></a></td>'; out += ' </tr>'; out += ' </table>'; out += ' </td>'; out += '</tr>'; out += '<tr>'; out += ' <td colspan="2" height="5"><img src="'+imgURL+'spacer.gif" width="1" height="5" alt="" border="0"></td>'; out += '</tr>'; out += '</table>'; document.write(out); } var arMenu1 = new Array( "119","237", "Blogs","http://blogs.esmas.com/deportes/", "Beisbol",hmURL+"deportes/beisbol/", "Estadísticas MLB","http://sef.esmas.com/sedep/flat/tor77/torneo.php?src=395", "Estadísticas LMB","http://sef.esmas.com/sedep/flat/tor78/torneo.php?src=406", "Basquetbol",hmURL+"deportes/basquetbol/", "Estadísticas NBA","http://sef.esmas.com/sedep/flat/tor38/torneo.php?src=185", "Futbol Americano",hmURL+"deportes/futbolamericano/", "Mundo Deportivo",hmURL+"deportes/otrosdeportes/", "Estadísticas F1","http://sef.esmas.com/sedep/flat/tor82/torneo.php?src=460", "Club América",hmURL+"clubamerica/", "Selección Mexicana",hmURL+"seleccionmexicana/", "Biografías",hmURL+"deportes/biografias/", "Fotogalería",hmURL+"deportes/fotogaleria/", "Video","http://video.esmas.com/", "Pregúntale a los Brizio",hmURL+"losbrizio/" ); var arMenu2 = new Array( "196","237", "","", "Futbol México",hmURL+"deportes/futbol/", "Futbol Internacional",hmURL+"deportes/futbolinternacional/", "Selección mexicana",hmURL+"seleccionmexicana/", "Estadísticas",hmURL+"sef/futbol/", "Estadísticas del Tri","http://sef.esmas.com/sedep/flat/tor81/torneo.php?src=calendar", "Club América",hmURL+"clubamerica/", "Pregúntale a los Brizio",hmURL+"losbrizio/" ); var arMenu3 = new Array( "261","237", "Cine",hmURL+"espectaculos/cine/", "Música",hmURL+"musica/", "Programación de TV","http://programaciontv.esmas.com/", "Blogs","http://blogs.esmas.com/espectaculos/", "Biografías",hmURL+"espectaculos/artistas/", "Fotogalería",hmURL+"espectaculos/fotogaleria/", "Canal de Video","http://video.esmas.com/", "Horóscopos",hmURL+"horoscopos/", "Revistas",hmURL+"revistas" ); var arMenu4 = new Array( "364","237", "Premios Oscar 2008",hmURL+"oscar2008", "Películas",hmURL+"espectaculos/cine/peliculas/", "Trailers","http://video.esmas.com/search/advanced_start.php?page=0&busqueda=&valor=5&tipo=&orden=2&categoria=&fecha=00000000", "Blog","http://blogs.esmas.com/espectaculos/?cat=2", "Fotogalerías",hmURL+"espectaculos/fotogaleria/", "Biografías",hmURL+"espectaculos/artistas/" ); var arMenu5 = new Array( "415","237", "Videos Cortos","http://video.esmas.com", "Tienda de Video","http://store.tarabu.com/vod_webhome.php", "TV en Vivo","http://store.tarabu.com/ltv/ltv_home2.php" ); var arMenu6 = new Array( "472","237", "Blogs","http://blogs.esmas.com/espectaculos/?cat=5", "Cuidado con el Ángel","http://www2.esmas.com/cuidado-con-el-angel/", "Fuego en la Sangre",hmURL+"fuegoenlasangre/", "Alma de Hierro",hmURL+"almadehierro/", "Querida Enemiga",hmURL+"querida-enemiga/", "Las Tontas no van al Cielo",hmURL+"lastontasnovanalcielo/", "Tormenta en el Paraiso",hmURL+"tormentaenelparaiso/", "Más telenovelas...",hmURL+"telenovelas/" ); var arMenu7 = new Array( "567","237", "Conductores",hmURL+"noticierostelevisa/conductores/", "Biografías",hmURL+"noticierostelevisa/biografias/", "Fotogalerías",hmURL+"noticierostelevisa/fotogaleria/", "Video","http://video.esmas.com" ); var arMenu8 = new Array( "652","237", "Biografías",hmURL+"ninos/biografias/", "Blog Niños","http://blogs.esmas.com/ninos/", "Burbujas",hmURL+"burbujas/", "Chabelo","http://www.chabelo.com/", "El Chavo del Ocho",hmURL+"elchavodel8/", "Juegos",hmURL+"ninos", "Tareas","http://ninos.esmas.com/divertitareas/", "Tarjetas","http://www.universopostal.com/categorias-esmas.php?cat=1" ); var arMenu9 = new Array( "710","237", "Fotogalerías",hmURL+"mujer/fotogaleria/", "Fotogalerías","http://www2.esmas.com/mujer/fotos/", "Tests",hmURL+"mujer/interactiva/483338.html", "Sexo y Amor",hmURL+"mujer/sexoyamor/", "Belleza y Moda",hmURL+"mujer/belleza/", "Dietas y Ejercicios",hmURL+"mujer/saludable/", "Mamá y Bebé",hmURL+"mujer/mamaybebe/", "Recetas de Cocina",hmURL+"mujer/cocina/", "Kamasutra","javascript:openVideoGal('http://www2.esmas.com/mujer/fotos/posturas-kamasutra-posiciones-ardiente-cuerpo-estimulo-excitacion-gozar-intensid/12426')", "Autoexplórate","javascript:NewWindow('/mujer/interactiva/exploracion/','exploracion','610','430','no')", "Blog Mujer","http://blogs.esmas.com/mujer/", "Tu Peso Ideal","javascript:NewWindow('"+hmURL+"flat/calculadoras/peso_ideal.html', 'calculadoras','400','300','no')", "Índice de Masa Corporal (IMC)","javascript:NewWindow('"+hmURL+"flat/calculadoras/imc.html', 'calculadoras','400','250','no')", "Tus Calorías Diarias","javascript:NewWindow('"+hmURL+"flat/calculadoras/calc_calorias.html', 'calculadoras','470','400','no')", "Videogalería","http://promociones.esmas.com/cadamujer/videos/video.jsp?id=10" ); var arMenu10 = new Array( "773","237", "Bien Contigo","http://www2.esmas.com/biencontigo/notas/000682/que-estar-bien-contigo.-elige-estar-bien", "Cruzada","http://www2.esmas.com/biencontigo/cruzada/cruzada.php", "Salud General","http://www2.esmas.com/biencontigo/salud/", "Deporte","http://www2.esmas.com/biencontigo/deportes/", "Ecología","http://www2.esmas.com/biencontigo/ecologia/", "Tecnología","http://www2.esmas.com/biencontigo/tecnologia/", "Blog","http://blogs.esmas.com/estarbiencontigo/", "Videos","http://www2.esmas.com/biencontigo/videos/index.php", "Salud Familiar",hmURL+"salud/saludfamiliar/", "Enfermedades",hmURL+"salud/enfermedades/", "Foros","http://foros2.esmas.com/discussions.php?CategoryID=52" ); var cuantosSubMenus = 10; var ie=(document.all); var ns=(document.layers); var ns6=(document.getElementById&&!document.all); if(document.location.href.indexOf("https")>-1){imgURL="https://login.esmas.com/img/univ/";} for (a=1; a<cuantosSubMenus+1; a++) { if(typeof(window['arMenu'+a]) != "undefined"){ contenidoMenu=eval("arMenu"+a); d=0; c='<table '+tc+' width="120"><tr><td><img src="'+imgURL+'head_lay_back.gif" width="120" height="1"></td></tr>'; for(b=2;b<contenidoMenu.length;b++){ c+='<tr><td align="left" bgcolor="#81898B" height="17" onMouseOut="mOut2(this,\'#81898B\');" onMouseOver="mOvr2(this,\'#81898B\');" onClick="mClk2(this);" style="padding-left:7px;padding-right:2px"><a href="'+contenidoMenu[b+1]+'" class="esmasHdr_reg2">'+contenidoMenu[b]+'</a></td></tr>'; (b<contenidoMenu.length-3)?c+='<tr><td background="'+imgURL+'head_lay_dots.gif" bgcolor="#7093C1"><img src="'+imgURL+'spacer.gif" height=1 width=1 ></td></tr>':c+=''; b++; } c+='<tr><td><img src="'+imgURL+'head_lay_back.gif" width="120" height="1"></td></tr></table>'; if (ie||ns6){ document.write('<div id="menu_ie'+a+'" style="position:absolute;left:'+contenidoMenu[0]+'px;top:'+ contenidoMenu[1] +'px;visibility:hidden" onMouseOver="entroAlLayer()" onMouseOut="salioDelLayer()">'+c+'</div>'); } if(ns){ document.write('<layer left="'+contenidoMenu[0]+'" top="'+ contenidoMenu[1] +'" visibility="hide" onMouseOver="entroAlLayer()" onMouseOut="salioDelLayer()" id="menu_ns'+a+'">'+c+'</layer>'); } } } estaSobreSubMenu = 0; menuArriba = 1; timeID1 = setTimeout("bajarSubMenus()", 1); timeID2 = setTimeout("bajarSubMenus()", 1); function entroAlLayer(){ estaSobreSubMenu = 1; clearTimeout(timeID1); clearTimeout(timeID2); } function salioDelLayer(){ estaSobreSubMenu = 0; timeID1 = setTimeout("bajarSubMenus()", 100); } function bajarSubMenus(rollover){ for (a=1;a<cuantosSubMenus+1;a++) { if(typeof(window['arMenu'+a]) != "undefined"){ if (ie){ menu = eval('document.all.menu_ie'+a); menu.style.visibility='hidden'; } if(ns){ menu = eval('document.menu_ns'+a); menu.visibility='hide'; } if (ns6){ menu = eval(document.getElementById('menu_ie'+a)); menu.style.visibility='hidden'; } } } } function subir(queMenu){ clearTimeout(timeID2); bajarSubMenus(); if (ie){ menu = eval('document.all.menu_ie'+queMenu); var contenidoMenu=eval("arMenu" + queMenu); if(isCentered){ var winW = Math.round((document.body.offsetWidth-970)/2); (winW<0)?winW=0:winW-=20; (contenidoMenu[0])?posx = parseInt(contenidoMenu[0]) + winW:posx = winW; menu.style.left= posx + 'px'; } if(!upBnr2){if(contenidoMenu[1] != null){menu.style.top= (parseInt(contenidoMenu[1])-90) + 'px';}} menu.style.visibility='visible'; menu.style.position='absolute'; menu.style.zIndex=2; } if(ns){ menu = eval('document.menu_ns'+queMenu); menu.visibility='show'; menu.style.position='absolute'; menu.style.zIndex=2; } if(ns6){ menu = eval(document.getElementById('menu_ie'+queMenu)); contenidoMenu=eval("arMenu"+queMenu); if(isCentered){ winW = Math.round((window.innerWidth-970)/2); (winW<0)?winW=0:winW-=20; (contenidoMenu[0])?posx = parseInt(contenidoMenu[0]) + winW:posx = winW; menu.style.left=posx+'px'; } if(!upBnr2){if(contenidoMenu[1] != null){menu.style.top= (parseInt(contenidoMenu[1])-90) + 'px';}} menu.style.visibility="visible"; menu.style.position='absolute'; menu.style.zIndex=2; } } function bajar(queMenu){ timeID2 = setTimeout("bajarSubMenus()", 100); menuArriba = queMenu; } function mOvr2(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'hand'; src.bgColor = clrOver; } } function mOut2(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; } } function mClk2(src){ src.children.tags('A')[0].click(); } /* Código para DART */ esmas_dart_ord = window.esmas_dart_ord || Math.floor(Math.random()*1E16);
