String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,'');} var MSIE7=false; if (navigator.userAgent && navigator.userAgent.indexOf("MSIE 7")!=-1) MSIE7=true; var arr_no_autocomplete_off="frm_login";var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var DIR_MONSTER_EDITOR=""; var STYLESID="veemsmotoscomuy"; var imgs="/artworks"; var url_tobookmark="VEEMS"; var id_idioma="1"; var lbl_cargando="Cargando..."; var lbl_cargando_ico=""; var lbl_buscando="Buscar..."; var lbl_sin_resultados="No se encontraron resultados"; var LBL_JS_BUSCADOR='Buscar...'; function goprint(url) { abrirVentana(getUrlPrint(location.href)+"&imprimir=ok", 1024, 600, "_imprimir") } function getUrlPrint(url) { var aux=url.split("?"); var dir=aux[0];if (aux.length==1) return "?dmp=1"; if (aux.length>1) { aux=aux[1].split("&"); n=""; for (var i=0;i < aux.length;i++) { v=aux[i].split("="); if (v[0]!="opentype") { if (n!="") {n+="&";} if (v.length==1) { n+=v[0]; } else { n+=v[0]+"="+v[1]; } } } if (n!="") {dir+="?"+n;} } return dir; } function abrirVentana(url, width, height, name) { if (name==null) {name='nueva_ventana';} var str = "height=" + height + ",innerHeight=" + height; str += ",width=" + width + ",innerWidth=" + width; if (window.screen) { var ah = screen.availHeight - 30; var aw = screen.availWidth - 10; var xc = (aw - width) / 2; var yc = (ah - height) / 2; str += ",left=" + xc + ",screenX=" + xc; str += ",top=" + yc + ",screenY=" + yc; } str += ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no"; objwin=window.open(url, name, str); if (objwin) objwin.focus(); return false; } function getObj(id) {if (document.getElementById) {return document.getElementById(id)} else if (document.all) {return document.all[id]} else {return document.all[id]}} function setget_attr(obj, prop, val) { if (!val) return obj.getAttribute(prop); else { if (prop=="onmouseover" || prop=="onmouseout" || prop=="onclick" || typeof val=="function") { if (obj.addEventListener) { if (navegador_detect=="ie") val = Function(val); }else{ obj.attachEvent(prop, new Function('"+val+"'), false); } } obj.setAttribute(prop,val); } } function rnd(max) { var x = Math.random() * max; x = x + 1; return parseInt(x); } var obj_focus=null; function validar_form(form) { var campo,mensaje,valor; for (var i=0;i < obligatorios.length;i=i+2) { campo=obligatorios[i]; mensaje=obligatorios[i+1]; if (campo=="acepto_politicas") { o=getObj("acepto_politicas"); if (o!=null && o.checked==false) { alert(mensaje); return false; } } else { try { valor=eval("form."+campo+".value"); eval_error=false; } catch(err) { valor=""; eval_error=true; } if (eval_error) { e=eval("form."+campo+"_dia"); if (e==null) { } else { try { valor=eval("form."+campo+"_dia.value"); check_date=true; } catch(err) { check_date=true; } if (check_date) { dia=eval("form."+campo+"_dia.value"); mes=eval("form."+campo+"_mes.value"); try {anio=eval("form."+campo+"_anio.value");} catch(err) {anio=2000;} if (dia.substr(0,1)=="0") dia=dia.substr(1,dia.length-1); if (mes.substr(0,1)=="0") mes=mes.substr(1,mes.length-1); dia=parseInt(dia); mes=parseInt(mes)-1; anio=parseInt(anio); source_date = new Date(anio,mes,dia); if ((anio != source_date.getFullYear()) || (mes != source_date.getMonth()) || (dia != source_date.getDate())) { DHTMLALERT(mensaje); return false; } } else { DHTMLALERT(mensaje); return false; } } } else { if (campo=="clave") { var clave_confirm=getObj("confirm_clave").value; var aux=mensaje.split("|"); mensaje=aux[0]; mensaje_extra=aux[1]; if (valor.length < 6) {DHTMLALERT(mensaje);obj_focus=eval("form."+campo);return false;} if (valor!=clave_confirm) {DHTMLALERT(mensaje_extra);obj_focus=eval("form."+campo);return false;} } else if (campo=="email") { e=getObj("confirm_email"); if (e==null) { confirm_email=valor; } else { var confirm_email=getObj("confirm_email").value; } var aux=mensaje.split("|"); mensaje=aux[0]; mensaje_extra=aux[1]; if (valor.indexOf('@') < 0 || valor.indexOf('.') < 0 || valor.indexOf(',') > 0) { DHTMLALERT(mensaje); obj_focus=form.email; return false; } if (valor!=confirm_email) {DHTMLALERT(mensaje_extra);obj_focus=form.email;return false;} } else { if (valor=="") {DHTMLALERT(mensaje);obj_focus=eval("form."+campo);return false;} } } } } var o=getObj("btn_submit"); if (o!=null) {o.disabled=true;} return true; } var buscador_tocado=false; function validar_buscador(form) { if (!buscador_tocado) { DHTMLALERT("Ingrese un texto válido a buscar"); return false; } var o=form.buscar.value; if (o.length<2) { DHTMLALERT("Ingrese un texto válido a buscar"); return false; } return true; } function limpiar_buscador(obj,comp,recuperar) { if (typeof comp == "undefined") comp="Buscar"; if (recuperar && obj.value=="" && obj.oldval!=undefined) obj.value=obj.oldval; else if (obj.value==comp) { obj.oldval=obj.value; obj.value=""; } buscador_tocado=true; } function clear_input(o,l) { if (o.value==l) {o.value='';} } function check_form_registro(form) { var nform=0; for (i=1;i<=10;i++) { if (form["tiny_email"+i]!=null) { nform=i; break; } } if (nform==0) return false; var tiny_nombre=form["tiny_nombre"+nform]; var tiny_email=form["tiny_email"+nform]; console.log("tiny_nombre"+nform) console.log("tiny_nombre:"+tiny_nombre) if (tiny_nombre!=null) { if (tiny_nombre.value.trim()=="") { console.log("tiny_nombre.value:"+tiny_nombre.value) console.log("tiny_nombre.value.trim():"+tiny_nombre.value.trim()) DHTMLALERT("Ingresa tu nombre"); tiny_nombre.focus(); return false; } } var aux="Dirección de correo incorrecta o email no válido|Los emails no coinciden".split("|"); if (tiny_email.value.indexOf('@') < 0 || tiny_email.value.indexOf('.') < 0 || tiny_email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); tiny_email.focus();return false;} return true; } function validar_olvidemiclave(form) { var aux="Dirección de correo incorrecta o email no válido|Los emails no coinciden".split("|"); if (form.olvideemail.value.indexOf('@') < 0 || form.olvideemail.value.indexOf('.') < 0 || form.email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); form.olvideemail.focus(); return false; } return true; } function mostrarcargando() { var o = getObj("ly_cargando_dinamico"); o.style.display=""; } function cerrarcargando() { var o = getObj("ly_cargando_dinamico"); if (o==null) {return;} o.style.display="none"; } function crear_script_tag(file,tagname) { var head_html = document.getElementsByTagName('head'); if (head_html==null) head_html=document; else head_html=head_html[0]; if (tagname==undefined) tagname="jscript_gen"; scriptTag = getObj(tagname); if(scriptTag!=null) { head_html.removeChild(scriptTag); delete(scriptTag); scriptTag=null; } var script = document.createElement('script'); var vch="?"; if (file.indexOf("?")!=-1) vch="&"; script.src = file+vch+Math.random()*1000000; script.type = "text/javascript"; script.id = tagname; head_html.appendChild(script); //console.log("crear_script_tag:"+file); } function validar_login(formulario,msg) { if (formulario.usuario.value == '' || formulario.clave.value == '') { DHTMLALERT(msg); formulario.usuario.focus(); return false; return true; } } function lista_de_precios() { abrirVentana("/productos/listadeprecios.php", 800, 600, "listap") } function validar_recomendar(form) { if (form.miemail==null) { if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) {alert('Ingresa el email'); form.tuemail.focus(); return false;} } else { if (form.minombre.value == '') {alert('Ingresa tu nombre'); form.minombre.focus(); return false;} if (form.tunombre.value == '') {alert('Ingresa el nombre de tu amigo'); form.tunombre.focus(); return false;} if (form.miemail.value.indexOf('@') < 0 || form.miemail.value.indexOf('.') < 0 || form.miemail.value.indexOf(',') > 0) {alert('Ingresa tu email'); form.miemail.focus(); return false;} if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) {alert('Ingresa el email'); form.tuemail.focus(); return false;} } return true; } var last_video=0; function video(id,t,yt) { var url="/videos/get_video.php?id="+id+"&t="+t; if (typeof yt!="undefined") { url+="&yt="+escape(yt); } if (last_video>0) close_player(last_video); last_video=id; crear_script_tag(url); } function set_player(flv,id,ancho,alto) { t=getPageSize(); anchoventana=t[2]; altoventana=t[3]; if (anchoventana < ancho || altoventana < alto) { anchoventana=anchoventana; ratio=ancho/alto; if (anchoventana < ancho) { nuevancho=anchoventana; nuevoalto=parseInt((anchoventana/ratio)); } else { nuevancho=parseInt((altoventana*ratio)); nuevoalto=altoventana; } flv=str_replace(flv,"\""+ancho+"\"","\""+nuevancho+"\""); flv=str_replace(flv,"\""+alto+"\"","\""+nuevoalto+"\""); flv=str_replace(flv,"'"+ancho+"'","'"+nuevancho+"'"); flv=str_replace(flv,"'"+alto+"'","'"+nuevoalto+"'"); o=getObj("ly_player_container"+id); if (o!=null) { o.style.width=nuevancho+"px"; o.style.height=nuevoalto+"px"; } o=getObj("ly_player_container"+id); o=getObj("ly_player"+id); if (o!=null) { o.style.width=nuevancho; o.style.height=nuevoalto; } } var o=getObj("ly_player"+id); if (o==null) {return;} o.innerHTML=flv; showAndCenter("ly_player_container"+id); o=getObj("productos_presentacion6cont"); if (o!=null) { var owl = $("#productos_presentacion6cont"); owl.trigger('owl.stop'); } activar_layer_transparente("ly_transparente",close_player_alt); } function close_player_alt(id) { if (last_video>0) close_player(last_video); } function close_player(id) { var o=getObj("ly_player"+id); if (o!=null) o.innerHTML=""; if (getObj("ly_player_container"+id)!=null) getObj("ly_player_container"+id).style.display="none"; var ly_transparente = getObj("ly_transparente"); if (ly_transparente != null) { ly_transparente.style.display="none"; } } function startvideos() {} var ahora = 38934; function updateClock() { ahora++; if (ahora>(24*60*60)) ahora=0; var horas=parseInt(ahora/(60*60)); var resto=ahora-(horas*(60*60)); var minutos=parseInt(resto/(60)); var segundos=resto-(minutos*60); minutos = ( minutos < 10 ? "0" : "" ) + minutos; segundos = ( segundos < 10 ? "0" : "" ) + segundos; horas = ( horas < 10 ? "0" : "" ) + horas; getObj("hora").innerHTML = horas + ":" + minutos + ":" + segundos + " hs."; } function send_to_fav(id_objeto,tipo_objeto_favorito) { var url="/usuarios/scripts/agregar_a_favoritos.php?id_objeto="+id_objeto+"&tipo_objeto="+tipo_objeto_favorito; crear_script_tag(url,"fav"); } function remove_from_fav(id_fav) { if (window.confirm("Remover este ítem de mis favoritos.")) { var url="/usuarios/scripts/remove_favoritos.php?id_fav="+id_fav; crear_script_tag(url,"fav"); } } function $$asp( objId ) { var o = document.getElementById( objId ); if ( o == null ) return; var n_obj = document.createElement("INPUT"); n_obj.name = o.name + "_hidden_asp"; n_obj.id = o.name + "_hidden_asp"; n_obj.type = "hidden"; o.form.appendChild( n_obj ); o.onblur = function ( e ) { n_obj.value = o.value; }; o.onkeyup = function ( e ) { n_obj.value = o.value; }; o.onchange = function () { n_obj.value = o.value; }; o.onmousedown = function () { n_obj.value = o.value; }; } function cambiar_src(id,img){ var o=getObj("prodzoom"+id); if ( o!=null && o.src.indexOf("")!=-1 ) o.src=img; } function disable_autocomplete() { if (typeof intAutocomplete != "undefined") { clearInterval(intAutocomplete); intAutocomplete = -1; } if (typeof arr_no_autocomplete_off != "undefined") { var vec_no_autocomplete_off = arr_no_autocomplete_off.split(","); for (var j=0;j < vec_no_autocomplete_off.length;j++) { vec_no_autocomplete_off[vec_no_autocomplete_off[j]]=vec_no_autocomplete_off[j]; } } else { vec_no_autocomplete_off=new Array(); } var forms = document.getElementsByTagName("form"); for (var i=0;i < forms.length;i++) { if (forms[i].id!="frmorden" && (!vec_no_autocomplete_off[forms[i].id] || vec_no_autocomplete_off[forms[i].id]==undefined)) { forms[i].setAttribute("autocomplete","off"); var elementos=forms[i].getElementsByTagName("INPUT"); for (e=0;e < elementos.length; e++) { if (elementos[e]!=null && elementos[e].type=="text") { elementos[e].autocomplete = 'off'; } } } } } function debe_registrarse() { DHTMLALERT("Debes INICIAR SESIÓN para usar esta característica"); } var timer_refresh_timer=-1; function keep_alive() { clearInterval(timer_refresh_timer); timer_refresh_timer = -1; crear_script_tag("/includes/keep_alive.php"); } function change_def_cur(c) { var url="/includes/change_cur.php?cur="+c; crear_script_tag(url,"cur"); } function posicionar_mapa_sucursal(lat, lon){ map_suc.setCenter(new google.maps.LatLng(lat,lon)); map_suc.setZoom(15); } function limpiar_restaurar_input_value(o, p) { if (p==0) { if (o.lastval==undefined) { o.lastval = o.value; o.value=""; } else { if (o.value==o.lastval) o.value=""; } } else { if (o.lastval!=undefined && o.value=="") o.value = o.lastval; } } function openpopup(url) { if (url=="") url=location.href; url=getUrlPopup(url); if (url.indexOf("?")==-1) url+="?popup=ok"; else url+="popup=ok"; abrirVentana(url, 1024, 550, "_popup" + Math.ceil(1000*Math.random())); return false; } function getUrlPopup(url) { var aux=url.split("?"); var dir=aux[0]; if (aux.length>1) { aux=aux[1].split("&"); n=""; for (var i=0;i 1) { if ( w > ancho_ventana ) w = ancho_ventana; h = parseInt (w / ratio); if ( h > alto_ventana) { h = alto_ventana; w = parseInt (h * ratio); } } else { if ( h > alto_ventana ) h = alto_ventana; w = parseInt (h * ratio); if ( w > ancho_ventana) { w = ancho_ventana; h = parseInt (w / ratio); } } return new Array(w,h); } function img_zoom(img, w, h) { activar_layer_transparente("ly_transparente",close_img_plantilla_zoom); var obj = getObj("div_plantilla_zoom"); if (!obj) { var otemp=document.createElement("div"); otemp.id = "div_plantilla_zoom"; otemp.style.position="absolute"; var otemp_cerrar_contenedor=document.createElement("div"); var otemp_cerrar=document.createElement("div"); otemp_cerrar.id = "div_plantilla_zoom_but_cerrar"; otemp_cerrar.className="cerrar"; otemp_cerrar.style.position="absolute"; otemp_cerrar.style.top="0px"; otemp_cerrar.style.right="0px"; var addfunction = close_img_plantilla_zoom; if (otemp.addEventListener) { otemp.addEventListener("click", addfunction, false); otemp_cerrar.addEventListener("click", addfunction, false); } else if (otemp.attachEvent) { otemp.attachEvent("onclick", addfunction); otemp_cerrar.attachEvent("onclick", addfunction); } else { otemp["onclick"] = addfunction; otemp_cerrar["onclick"] = addfunction; } var otemp_href=document.createElement("a"); otemp_href.href="javascript:void(0);"; document.body.appendChild(otemp); otemp_cerrar.appendChild(otemp_href); otemp_cerrar_contenedor.appendChild(otemp_cerrar); otemp.appendChild(otemp_cerrar_contenedor); var obj = getObj("div_plantilla_zoom"); } obj.style.zIndex=99999999; obj.style.display=""; var img_plantilla_zoom = getObj("img_plantilla_zoom"); if (img_plantilla_zoom==null) { var oimg=document.createElement("img"); oimg.id = "img_plantilla_zoom"; oimg.src=img; obj.appendChild(oimg); img_plantilla_zoom = getObj("img_plantilla_zoom"); } else { img_plantilla_zoom.src = img; img_plantilla_zoom.style.zIndex=999999999; } img_plantilla_zoom.style.display=""; var ratio = w/h; var win=getPageSize(); var pageWidth = win[0]; var pageHeight = win[1]; var windowWidth = win[2]; var windowHeight = win[3]; var array_wh = new Array(); array_wh = calcular_ancho_alto_zoom(w, h, windowWidth, windowHeight, ratio); w = array_wh[0]; h = array_wh[1]; img_plantilla_zoom.width=w; img_plantilla_zoom.height=h; if (document.body && document.body.scrollTop) { var altobody=document.body.scrollTop; } else if (document.documentElement && !document.documentElement.scrollTop) { var altobody=document.documentElement.scrollTop; } else if (document.documentElement && document.documentElement.scrollTop) { var altobody=document.documentElement.scrollTop; } var X = ((windowWidth-w)/2); var Y = ((windowHeight-h)/2); var top=parseInt((altobody + (Y))); var left = parseInt((document.body.scrollLeft+(X))); if (top < 0) top=0; if (left < 0) left=0; obj.style.left=left+"px"; obj.style.top = top + "px"; obj.style.display=""; } function close_img_plantilla_zoom() { if (getObj("ly_transparente")) getObj("ly_transparente").style.display="none"; if (getObj("ly_transparente")) { getObj("img_plantilla_zoom").src = "/artworks/blank.gif"; getObj("img_plantilla_zoom").style.display="none"; } } function nav_new_page(u) { DHTMLALERT("Buscando ..."); var newForm = document.createElement("form"); newForm.action = u; newForm.method = "get"; newForm.target = "form"+Math.ceil(1000*Math.random()); try { //newForm.submit(); location.href=u; } catch (error) { location.href=u; } } function activar_free_shipping() { }function writeflash(o,m,w,h,wm,p,oid) { //alert(wm); var p=unescape(p); var obj = document.getElementById(o); if (obj==null){ alert(o+' MISSING'); return; } if (oid!=null && oid!=undefined) {tag_name="NAME='"+oid+"'";} else {tag_name="";} if (oid!=null && oid!=undefined) {oid="id='"+oid+"'";} else {oid="";} f=""; f+=""; f+=""; if (p!="") {f+="";} f+=""; f+=""; f+="0) if (slow==1) $("#"+objetos[i]).hide('slow'); else $("#"+objetos[i]).slideUp(); else obj.style.display="none"; } else { if (slow>0) if (slow==1) $("#"+objetos[i]).show('slow'); else $("#"+objetos[i]).slideDown(); else obj.style.display=""; } } } function aplicar_quitar_clase(obj,clase,forzar_quitar) { if (typeof(obj) != "object") objeto=getObj(obj); else objeto = obj; if (objeto!=null && objeto.className!=undefined) { if ( objeto.className.indexOf(clase)!=-1 || forzar_quitar!=undefined ) { objeto.className = objeto.className.split(clase).join(""); } else { if ( objeto.className != "" ) //console.log("obj:"+objeto.id); //console.log("clase:"+clase); objeto.className += " "; objeto.className += clase; } } } function aplicar_clase_objeto(obj,clase) { if (typeof(obj) != "object") objeto=getObj(obj); else objeto = obj; if (objeto!=null && objeto.className!=undefined) { if ( objeto.className != "" ) { objeto.className += " "; } objeto.className += clase; } } function quitar_clase_objeto(obj,clase) { if (typeof(obj) != "object") objeto=getObj(obj); else objeto = obj; if (objeto!=null && objeto.className!=undefined) { str=objeto.className; str=str_replace(str,clase,""); str=str_replace(str," ",""); objeto.className=str; } } function str_replace(str,s,t) { return str.split(s).join(t); } function resize_obj(id_obj, h_px, w_px){ obj=getObj(id_obj); if (h_px!=undefined && h_px!="") { if (isNaN(h_px)) h_px=parseInt(str_replace(h_px.toString(),"px","")); obj.style.height=h_px+"px"; } if (w_px!=undefined && w_px!="") { if (isNaN(w_px)) w_px=parseInt(str_replace(w_px.toString(),"px","")); obj.style.width=w_px+"px"; } } function showAndCenter(id, img){ var obj = id; if (typeof obj != "object") obj=getObj(id); if (obj==null) return; obj.style.display=""; obj.style.visibility="visible"; ancho_layer=obj.style.width; ancho_layer=ancho_layer.replace("px",""); alto_layer=obj.style.height; alto_layer=alto_layer.replace("px",""); if (document.body && document.body.scrollTop) { var altobody=document.body.scrollTop; } else if (document.documentElement && !document.documentElement.scrollTop) { var altobody=document.documentElement.scrollTop; } else if (document.documentElement && document.documentElement.scrollTop) { var altobody=document.documentElement.scrollTop; } var X = ((document.body.scrollWidth-ancho_layer)/2); var Y = ((screen.availHeight-alto_layer)/2); obj.style.zIndex=99999999; obj.style.left=parseInt((document.body.scrollLeft+(X)))+"px"; obj.style.top =parseInt((altobody +(Y) - 100))+"px"; } function DHTMLALERT(msg){ var dalert_msg = getObj("dhtml_alert_MSG"); if (msg==undefined) msg=""; if (!dalert_msg) return; var dalert = getObj("dhtml_alert"); if (msg!="") { dalert_msg.innerHTML = msg; //showAndCenter("dhtml_alert"); activar_layer_transparente("ly_transparente",cerrar_dhtmlalert); aplicar_quitar_clase('dhtml_alert','dhtml_alert_on'); var o=getObj("btn_cerrar_dhmlalert"); if (o!=null) o.focus(); } else { var dalert = getObj("dhtml_alert"); dalert_msg.innerHTML = ""; if (getObj("ly_transparente").style.display!="none") { activar_layer_transparente("ly_transparente",cerrar_dhtmlalert); aplicar_quitar_clase('dhtml_alert','dhtml_alert_on'); } try { obj_focus.focus(); obj_focus=null; } catch(err) {} } } function cerrar_dhtmlalert(){ DHTMLALERT(); } function activar_layer_transparente(id_obj,addfunction){ var obj=getObj(id_obj); if (obj==null) return; if (obj.style.display=="") { obj.style.display="none"; if (typeof addfunction == "function") { if (obj.removeEventListener) { obj.removeEventListener("click", addfunction, false); } if (obj.detachEvent) { obj.detachEvent("onclick", addfunction); } else { obj["click"] = null; } } } else { if (typeof addfunction == "function") { if (obj.addEventListener) { obj.addEventListener("click", addfunction, false); } else if (obj.attachEvent) { obj.attachEvent("onclick", addfunction); } else { obj["onclick"] = addfunction; } } obj.style.display=""; } } function getPageSize(){ var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = document.body.scrollWidth; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; if (self.innerHeight) { windowWidth = self.innerWidth; windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } if(xScroll < windowWidth){ pageWidth = windowWidth; } else { pageWidth = xScroll; } arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) return arrayPageSize; } function recomendar_web(){ var ly_transparente=getObj("ly_transparente"); var obj=getObj("recomendar"); activar_layer_transparente("ly_transparente",recomendar_web); aplicar_quitar_clase('recomendar','dhtml_alert_on'); o=getObj("form_recomendar").tuemail; if (o!=null) { o.focus(); } else { o=getObj("form_recomendar").tuemail; if (o!=null) o.focus(); } }function set_tab_new(obj) { var obj_id = obj.id; var prefijo="container_"; var obj_class = obj.className; var vec_tab_names = obj_id.split("_"); if (vec_tab_names.length<=1) { alert("Nombre TAG inválido falta prefijo _#"); return; } vec_tab_names.pop(); var tab_name = vec_tab_names.join("_"); obj_class = obj_class.split("_off").join(""); obj_class = obj_class.split("_on").join(""); var i=1; var tab_actual=null; var no_flag=false; while ( tab_actual != null || !no_flag) { tab_actual=getObj(tab_name+"_"+i); container_actual=getObj(prefijo+tab_name+"_"+i); if (tab_actual==null || container_actual==null) break; tab_actual.className="off"; container_actual.style.display="none"; i++; no_flag = true; } tab_actual=getObj(obj_id); container_actual=getObj(prefijo+obj_id); tab_actual.className="active"; container_actual.style.display=""; }var autoexpandiendo=false; var tipo_categorias=""; var contenidos_categorias_mostrar_items=""; var forzar_navegar_siempre=false; function init_cats() { var pdiv,phref; for (var i=0;i < paths.length;i++) { aux=paths[i].split("."); pdiv=getObj("p"+paths[i]); phref=getObj("l"+paths[i]); phrefimg=getObj("limg"+paths[i]); if ("0"=="1" && aux.length<=2) { } else { if (pdiv!=null) { if (pdiv.addEventListener) { if (phref!=null) phref.setAttribute("onclick","return false"); if (pdiv!=null) pdiv.setAttribute("onclick","expand_contract_cats('"+paths[i]+"')"); if (phrefimg!=null) phrefimg.setAttribute("onclick","expand_contract_cats('"+paths[i]+"')"); } else { if (phref!=null) phref.attachEvent("onclick", function(){return false}, false); if (pdiv!=null) pdiv.attachEvent("onclick", new Function("expand_contract_cats('"+paths[i]+"')"), false); if (phrefimg!=null) phrefimg.attachEvent("onclick", new Function("expand_contract_cats('"+paths[i]+"')"), false); } } } } } var last_url_expand=""; var last_padre_expandido=""; function expand_contract_cats(path) { var aux=path.split("."); o=getObj("l"+path); if (o!=null) last_url_expand=o.href; else last_url_expand=""; if (expandidos[path] == undefined || expandidos[path]==0) { expandir_hijos(path); var clase_padre="level1 treeactive"; } else { if (forzar_navegar_siempre || (aux.length==2 && !autoexpandiendo)) { if (cat_url.charAt(cat_url.length-1)=="&" || cat_url.charAt(cat_url.length-1)=="?") { var nav_url=cat_url+"path="+path; } else if (cat_url=="") { var nav_url=o.href; } else { var nav_url=cat_url+"&path="+path; } location.href=nav_url; return; } else { contraer_hijos(path); var clase_padre="level1"; } } var aux=path.split("."); if (aux.length==2) { if (last_padre_expandido!="") { var li_padre=getObj("p"+last_padre_expandido); if (li_padre!=null) li_padre.className="level1"; } var li_padre=getObj("p"+path); if (li_padre!=null) li_padre.className=clase_padre; last_padre_expandido=path; } } function expandir_hijos(path) { var ids_actual,prof_actual,path_actual,objhijo; var ids=path.split("."); var prof=ids.length-1; var hubo_expansion=false; for (var i=0;i < paths.length;i++) { path_actual=paths[i]; ids_actual=path_actual.split("."); prof_actual=ids_actual.length-1; if ((prof+1)==prof_actual) { if ((path_actual.substring(0,(path.length+1))) == (path+".")) { objhijo=getObj("p"+path_actual); if (objhijo!=null) { objhijo.style.display=""; hubo_expansion=true; } } } } if (tipo_categorias=="contenidos" && contenidos_categorias_mostrar_items=="") hubo_expansion=false; if (!hubo_expansion) { if (cat_url.charAt(cat_url.length-1)=="&" || cat_url.charAt(cat_url.length-1)=="?") { var nav_url=cat_url+"path="+path; } else { var nav_url=cat_url+"&path="+path; } if (!autoexpandiendo) { if (cat_url!="") { var h=getObj("l"+path); if (h==null || h.href=="") location.href=nav_url; else location.href=h.href; } else { if (last_url_expand!="") location.href=last_url_expand; } } } else { expandidos[path]=1; } } function contraer_hijos(path) { var path_actual,objhijo; var ids=path.split("."); var prof=ids.length-1; for (var i=0;i < paths.length;i++) { path_actual=paths[i]; if ((path_actual.substring(0,(path.length+1))) == (path+".")) { objhijo=getObj("p"+path_actual); expandidos[path_actual]=0; if (objhijo!=null) objhijo.style.display="none"; } } expandidos[path]=0; } function autoexpand(path) { if (path=="") return; autoexpandiendo=true; var ids=path.split("."); var path_nav="0"; for (var i=1;i<(ids.length);i++) { path_nav+="."+ids[i]; expandir_hijos(path_nav); } autoexpandiendo=false; }!function(a){a.fn.viewportChecker=function(b){var c={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(a,b){},scrollHorizontal:!1,scrollBox:window};a.extend(c,b);var d=this,e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},f=-1!=navigator.userAgent.toLowerCase().indexOf("webkit")||-1!=navigator.userAgent.toLowerCase().indexOf("windows phone")?"body":"html";return this.checkElements=function(){var b,g;c.scrollHorizontal?(b=a(f).scrollLeft(),g=b+e.width):(b=a(f).scrollTop(),g=b+e.height),d.each(function(){var d=a(this),f={},h={};if(d.data("vp-add-class")&&(h.classToAdd=d.data("vp-add-class")),d.data("vp-remove-class")&&(h.classToRemove=d.data("vp-remove-class")),d.data("vp-add-class-full-view")&&(h.classToAddForFullView=d.data("vp-add-class-full-view")),d.data("vp-keep-add-class")&&(h.removeClassAfterAnimation=d.data("vp-remove-after-animation")),d.data("vp-offset")&&(h.offset=d.data("vp-offset")),d.data("vp-repeat")&&(h.repeat=d.data("vp-repeat")),d.data("vp-scrollHorizontal")&&(h.scrollHorizontal=d.data("vp-scrollHorizontal")),d.data("vp-invertBottomOffset")&&(h.scrollHorizontal=d.data("vp-invertBottomOffset")),a.extend(f,c),a.extend(f,h),!d.data("vp-animated")||f.repeat){String(f.offset).indexOf("%")>0&&(f.offset=parseInt(f.offset)/100*e.height);var i=f.scrollHorizontal?d.offset().left:d.offset().top,j=f.scrollHorizontal?i+d.width():i+d.height(),k=Math.round(i)+f.offset,l=f.scrollHorizontal?k+d.width():k+d.height();f.invertBottomOffset&&(l-=2*f.offset),g>k&&l>b?(d.removeClass(f.classToRemove),d.addClass(f.classToAdd),f.callbackFunction(d,"add"),g>=j&&i>=b?d.addClass(f.classToAddForFullView):d.removeClass(f.classToAddForFullView),d.data("vp-animated",!0),f.removeClassAfterAnimation&&d.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){d.removeClass(f.classToAdd)})):d.hasClass(f.classToAdd)&&f.repeat&&(d.removeClass(f.classToAdd+" "+f.classToAddForFullView),f.callbackFunction(d,"remove"),d.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&a(document).bind("touchmove MSPointerMove pointermove",this.checkElements),a(c.scrollBox).bind("load scroll",this.checkElements),a(window).resize(function(b){e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},d.checkElements()}),this.checkElements(),this}}(jQuery); $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 999){ $('.subir').fadeIn(); force_display('monster_subir'); } else { $('.subir').fadeOut(); force_undisplay('monster_subir'); } }); $('a[href="#top"]').click(function(){ $("html, body").animate({scrollTop:0}, 300); return false; }); }); $(window).scroll(function () { if ($(this).scrollTop() > 70) { $('div.buscar').addClass("buscar_on"); } else { $('div.buscar').removeClass("buscar_on"); } }); $(window).scroll(function () { if ($(this).scrollTop() > 50) { $('ul.cssmenu').addClass("scroll_activo"); } else { $('ul.cssmenu').removeClass("scroll_activo"); } }); $(window).scroll(function () { if ($(this).scrollTop() > 1) { $('div.gencont1').addClass("gencont1_on"); } if ($(this).scrollTop() > 100) { $('div.gencont2').addClass("gencont2_on"); } if ($(this).scrollTop() > 70) { $('div.gencont3').addClass("gencont3_on"); } if ($(this).scrollTop() == 0) { $('div.gencont1').removeClass("gencont1_on"); $('div.gencont2').removeClass("gencont2_on"); $('div.gencont3').removeClass("gencont3_on"); } }); function desplegar_super_banner(){ $(document).ready(function() { var id = '#bs_dialog'; $('#banner_super_mask').fadeIn(1000); $('#banner_super_mask').fadeTo("slow",0.5); var winH = $(window).height(); var winW = $(window).width(); $(id).css('top', winH/2-$(id).height()/2); $(id).css('left', winW/2-$(id).width()/2); $(id).fadeIn(2000); $('.bs_window .bs_close').click(function (e) { e.preventDefault(); $('#banner_super_mask').hide(); $('.bs_window').hide(); }); $('#banner_super_mask').click(function () { $(this).hide(); $('.bs_window').hide(); }); }); } $( window ).resize(function() { var id = '#bs_dialog'; var winH = $(window).height(); var winW = $(window).width(); $(id).css('top', winH/2-$(id).height()/2); $(id).css('left', winW/2-$(id).width()/2); }); jQuery(document).ready(function() { }); /* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. * * Copyright © 2008 George McGinley Smith * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * Neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * */ // t: current time, b: begInnIng value, c: change In value, d: duration jQuery.easing['jswing'] = jQuery.easing['swing']; jQuery.extend( jQuery.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d) { //alert(jQuery.easing.default); return jQuery.easing[jQuery.easing.def](x, t, b, c, d); }, easeInQuad: function (x, t, b, c, d) { return c*(t/=d)*t + b; }, easeOutQuad: function (x, t, b, c, d) { return -c *(t/=d)*(t-2) + b; }, easeInOutQuad: function (x, t, b, c, d) { if ((t/=d/2) < 1) return c/2*t*t + b; return -c/2 * ((--t)*(t-2) - 1) + b; }, easeInCubic: function (x, t, b, c, d) { return c*(t/=d)*t*t + b; }, easeOutCubic: function (x, t, b, c, d) { return c*((t=t/d-1)*t*t + 1) + b; }, easeInOutCubic: function (x, t, b, c, d) { if ((t/=d/2) < 1) return c/2*t*t*t + b; return c/2*((t-=2)*t*t + 2) + b; }, easeInQuart: function (x, t, b, c, d) { return c*(t/=d)*t*t*t + b; }, easeOutQuart: function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b; }, easeInOutQuart: function (x, t, b, c, d) { if ((t/=d/2) < 1) return c/2*t*t*t*t + b; return -c/2 * ((t-=2)*t*t*t - 2) + b; }, easeInQuint: function (x, t, b, c, d) { return c*(t/=d)*t*t*t*t + b; }, easeOutQuint: function (x, t, b, c, d) { return c*((t=t/d-1)*t*t*t*t + 1) + b; }, easeInOutQuint: function (x, t, b, c, d) { if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; return c/2*((t-=2)*t*t*t*t + 2) + b; }, easeInSine: function (x, t, b, c, d) { return -c * Math.cos(t/d * (Math.PI/2)) + c + b; }, easeOutSine: function (x, t, b, c, d) { return c * Math.sin(t/d * (Math.PI/2)) + b; }, easeInOutSine: function (x, t, b, c, d) { return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; }, easeInExpo: function (x, t, b, c, d) { return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; }, easeOutExpo: function (x, t, b, c, d) { return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; }, easeInOutExpo: function (x, t, b, c, d) { if (t==0) return b; if (t==d) return b+c; if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }, easeInCirc: function (x, t, b, c, d) { return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; }, easeOutCirc: function (x, t, b, c, d) { return c * Math.sqrt(1 - (t=t/d-1)*t) + b; }, easeInOutCirc: function (x, t, b, c, d) { if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }, easeInElastic: function (x, t, b, c, d) { var s=1.70158;var p=0;var a=c; if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; if (a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; }, easeOutElastic: function (x, t, b, c, d) { var s=1.70158;var p=0;var a=c; if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; if (a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; }, easeInOutElastic: function (x, t, b, c, d) { var s=1.70158;var p=0;var a=c; if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); if (a < Math.abs(c)) { a=c; var s=p/4; } else var s = p/(2*Math.PI) * Math.asin (c/a); if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; }, easeInBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c*(t/=d)*t*((s+1)*t - s) + b; }, easeOutBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; }, easeInOutBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; }, easeInBounce: function (x, t, b, c, d) { return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; }, easeOutBounce: function (x, t, b, c, d) { if ((t/=d) < (1/2.75)) { return c*(7.5625*t*t) + b; } else if (t < (2/2.75)) { return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; } else if (t < (2.5/2.75)) { return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; } else { return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; } }, easeInOutBounce: function (x, t, b, c, d) { if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; } }); /* * * TERMS OF USE - EASING EQUATIONS * * Open source under the BSD License. * * Copyright © 2001 Robert Penner * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * * Neither the name of the author nor the names of contributors may be used to endorse * or promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * */(function(e){var t={url:!1,icon:!0,callback:!1,duration:120,on:"mouseover"};e.fn.zoom=function(n){return this.each(function(){var r=this,i=e(r),s=new Image,o=e(s),u,a=i.css("position"),f=e.extend({},t,n||{}),l="mousemove",c=!1;i.css({position:/(absolute|fixed)/.test(a)?a:"relative",overflow:"hidden"});if(!f.url){f.url=i.find("img").attr("src");if(!f.url)return}f.icon&&(u=e('
').appendTo(i)),s.onload=function(){function d(){t=i.outerWidth(),n=i.outerHeight(),r=(s.width-t)/t,u=(s.height-n)/n}function v(e){a=e.pageX-p.left,h=e.pageY-p.top,a>t?a=t:a<0&&(a=0),h>n?h=n:h<0&&(h=0),s.style.left=a*-r+"px",s.style.top=h*-u+"px",e.preventDefault()}function m(t){p=i.offset(),d(),v(t),o.stop().fadeTo(e.support.opacity?f.duration:0,1)}function g(){o.stop().fadeTo(f.duration,0)}var t,n,r,u,a,h,p=i.offset();o.addClass("zoomImg").css({position:"absolute",top:0,left:0,opacity:0,width:s.width,height:s.height,border:"none",maxWidth:"none"}).appendTo(i),f.on==="grab"?o.mousedown(function(t){p=i.offset(),e(document).one("mouseup",function(){g(),e(document).unbind(l,v)}),m(t),e(document)[l](v),t.preventDefault()}):f.on==="click"?o.click(function(t){if(c)return;return c=!0,m(t),e(document)[l](v),e(document).one("click",function(){g(),c=!1,e(document).unbind(l,v)}),!1}):(d(),o.hover(m,g)[l](v)),e.isFunction(f.callback)&&f.callback.call(s)},s.src=f.url})},e.fn.zoom.defaults=t})(jQuery);"function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g}); (function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath? (e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length; this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&& (this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this, [this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}), g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('
').wrap('
');this.$elem.find(".owl-wrapper").wrap('
');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")}, baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall= !1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;bthis.itemsAmount&& !0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a= this,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data("owl-item",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundPages",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/ this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('
');a.owlControls.append(b);a.buttonPrev= f("
",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=f("
",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();f(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper= f('
');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c",{"class":"owl-page"}),g=f("",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){f(this).data("owl-roundPages")=== f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),f(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem=== this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1; this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;"function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0), !0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed("paginationSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):"rewind"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed("slideSpeed"),g.setTimeout(function(){c.isCss3Finish=!0}, c.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem= this.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";g.clearInterval(this.autoPlayInterval)}, checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))}, addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+ a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement("div");a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]: !1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")})}, gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos; "function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)} function c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off("click.disable")}), a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1; !1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b("on");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem= a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)): (c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,e){a.goTo(e)}); a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a=this.currentItem:!0)&&e=f?g.setTimeout(c,100):e()}var d=this,f=0,k;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",a+"px");e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b, 100):e.wrapperOuter.css("height","")}var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");this.visibleItems=[];for(a=this.currentItem;a=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0=== f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=Object.create(l);b.init(a,this);f.data(this,"owlCarousel",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1, responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document);var imgs_resumenejecutivo=Array(); var vec_json_ej=Array(); var max_resumen=20; var last_res_expandido=0; var act_cat_ej=0; var primer_topico=false; var foto_home_resumen=0; var actual_resumen=0; var walk_cats_ejs = function(filter) { var array = []; for(var node = this.firstChild; node; node = node.nextSibling) { if (!filter)array.push(node); else if (filter(node))array.push(node); if (node.firstChild) array = array.concat(arguments.callee.call(node, filter)); } return array; }; function set_cat_ej(id_cat) { act_cat_ej=id_cat; primer_topico=false; usando_filtro=false; walk_cats_ejs.call(document.getElementById("cont_cats_ej"), set_actual_cat_ej); if (usando_filtro) { getObj("cont_ciclar_res").style.display="none"; } else { getObj("cont_ciclar_res").style.display=""; } } var usando_filtro=false; function set_actual_cat_ej(elemento) { if (typeof elemento.id=="string") { if (elemento.id.substring(0,11)=="cont_cat_ej") { if (elemento.id=="cont_cat_ej"+act_cat_ej) { elemento.className="reje_categoria_on"; } else { elemento.className="reje_categoria"; } } else if (elemento.id.substring(0,12)=="cont_topico_") { aux=elemento.id.split("_"); if (act_cat_ej==0) { elemento.style.display=""; if (!primer_topico) { mostrar_resumen(aux[3]); primer_topico=true; } } else { if (aux[2]==act_cat_ej) { usando_filtro=true; elemento.style.display=""; if (!primer_topico) { mostrar_resumen(aux[3]); primer_topico=true; } } else { elemento.style.display="none"; } } } } } var cargando_ej=false; function change_img_ej(n,id_foto,filename) { if (cargando_ej) return; cargando_ej=true; var imagen="/imgs/resumen_ejecutivo/resumen_ejecutivo"+foto_home_resumen+"_"+id_foto+"."+filename; var grande_ej=getObj("grande_ej"+n); var lc=getObj("div_cargando2"+n); lc.style.display=""; grande_ej.src=imagen; } function mostrar_resumen(i) { var ly,td,o,lc,imagen; actual_resumen=i; if (i==last_res_expandido) { last_res_expandido=0; return; } for(o=1;o<=max_resumen;o++) { lc=getObj("div_cargando2"+o); ly=getObj("ly_cont"+o); td=getObj("td_destacado"+o); sp=getObj("span_img_resumenejecutivo"+o); if (lc!=null) { if (o==i) { ly.style.display=""; td.className="reje_item_active"; if (sp.innerHTML=="") { if (typeof imgs_resumenejecutivo[i-1]=="string" && imgs_resumenejecutivo[i-1]!="") { imagen=""; lc.style.display=""; this_id_gal=nres_ids[o]; count_imgs_ej=0; chicas_ej=""; for (id_gal in vec_json_ej) { if (id_gal==this_id_gal) { objFotos=vec_json_ej[id_gal]; for (aux_foto in objFotos) { foto_ej=objFotos[aux_foto]; id_foto=foto_ej[0]; filename=foto_ej[1]; imgchica="/imgs/resumen_ejecutivo/resumen_ejecutivo10_"+id_foto+"."+filename; chicas_ej+="\"\""; count_imgs_ej++; } } } if (count_imgs_ej>1) { imagen=imagen+"
"+chicas_ej+"
"; } sp.innerHTML=imagen; } else { hide_cargando2(i); } } } else { lc.style.display="none"; ly.style.display="none"; td.className="reje_item"; } } } last_res_expandido=i; } function hide_cargando2(i) { var lc=getObj("div_cargando2"+i); lc.style.display="none"; cargando_ej=false; } function ciclar_resumen() { if (actual_resumen==0) return; var sig=parseInt(actual_resumen)+1; if (sig>max_resumen) sig=1; mostrar_resumen(sig); }