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="default13"; var imgs="/artworks"; var url_tobookmark="SUBLIME SOLUTIONS"; var id_idioma="1"; var lbl_cargando="Cargando..."; var lbl_cargando_ico=""; var lbl_buscando="Buscar"; var lbl_sin_resultados="La búsqueda no produjo 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) { 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") { 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 a buscar"); return false; } var o=form.buscar.value; if (o.length<2) { DHTMLALERT("Ingrese un texto 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 email incorrecta o no válida|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 email incorrecta o no válida|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 de tu amigo'); 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 de tu amigo'); 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 = 24252; 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?")) { 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").minombre; 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=1; 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(t){"use strict";var s={slide:0,delay:5e3,loop:!0,preload:!1,preloadImage:!1,preloadVideo:!1,timer:!0,overlay:!1,autoplay:!0,shuffle:!1,cover:!0,color:null,align:"center",valign:"center",firstTransition:null,firstTransitionDuration:null,transition:"fade",transitionDuration:1e3,transitionRegister:[],animation:null,animationDuration:"auto",animationRegister:[],init:function(){},play:function(){},pause:function(){},walk:function(){},slides:[]},i={},e=function(i,e){this.elmt=i,this.settings=t.extend({},s,t.vegas.defaults,e),this.slide=this.settings.slide,this.total=this.settings.slides.length,this.noshow=this.total<2,this.paused=!this.settings.autoplay||this.noshow,this.ended=!1,this.$elmt=t(i),this.$timer=null,this.$overlay=null,this.$slide=null,this.timeout=null,this.first=!0,this.transitions=["fade","fade2","blur","blur2","flash","flash2","negative","negative2","burn","burn2","slideLeft","slideLeft2","slideRight","slideRight2","slideUp","slideUp2","slideDown","slideDown2","zoomIn","zoomIn2","zoomOut","zoomOut2","swirlLeft","swirlLeft2","swirlRight","swirlRight2"],this.animations=["kenburns","kenburnsLeft","kenburnsRight","kenburnsUp","kenburnsUpLeft","kenburnsUpRight","kenburnsDown","kenburnsDownLeft","kenburnsDownRight"],this.settings.transitionRegister instanceof Array==!1&&(this.settings.transitionRegister=[this.settings.transitionRegister]),this.settings.animationRegister instanceof Array==!1&&(this.settings.animationRegister=[this.settings.animationRegister]),this.transitions=this.transitions.concat(this.settings.transitionRegister),this.animations=this.animations.concat(this.settings.animationRegister),this.support={objectFit:"objectFit"in document.body.style,transition:"transition"in document.body.style||"WebkitTransition"in document.body.style,video:t.vegas.isVideoCompatible()},this.settings.shuffle===!0&&this.shuffle(),this._init()};e.prototype={_init:function(){var s,i,e,n="BODY"===this.elmt.tagName,o=this.settings.timer,a=this.settings.overlay,r=this;this._preload(),n||(this.$elmt.css("height",this.$elmt.css("height")),s=t('
').css("overflow",this.$elmt.css("overflow")).css("padding",this.$elmt.css("padding")),this.$elmt.css("padding")||s.css("padding-top",this.$elmt.css("padding-top")).css("padding-bottom",this.$elmt.css("padding-bottom")).css("padding-left",this.$elmt.css("padding-left")).css("padding-right",this.$elmt.css("padding-right")),this.$elmt.clone(!0).children().appendTo(s),this.elmt.innerHTML=""),o&&this.support.transition&&(e=t('
'),this.$timer=e,this.$elmt.prepend(e)),a&&(i=t('
'),"string"==typeof a&&i.css("background-image","url("+a+")"),this.$overlay=i,this.$elmt.prepend(i)),this.$elmt.addClass("vegas-container"),n||this.$elmt.append(s),setTimeout(function(){r.trigger("init"),r._goto(r.slide),r.settings.autoplay&&r.trigger("play")},1)},_preload:function(){var t,s;for(s=0;s1&&!this.ended&&!this.paused&&!this.noshow&&(this.timeout=setTimeout(function(){t.next()},this._options("delay")))},_timer:function(t){var s=this;clearTimeout(this.timeout),this.$timer&&(this.$timer.removeClass("vegas-timer-running").find("div").css("transition-duration","0ms"),this.ended||this.paused||this.noshow||t&&setTimeout(function(){s.$timer.addClass("vegas-timer-running").find("div").css("transition-duration",s._options("delay")-100+"ms")},100))},_video:function(t){var s,e,n=t.toString();return i[n]?i[n]:(t instanceof Array==!1&&(t=[t]),s=document.createElement("video"),s.preload=!0,t.forEach(function(t){e=document.createElement("source"),e.src=t,s.appendChild(e)}),i[n]=s,s)},_fadeOutSound:function(t,s){var i=this,e=s/10,n=t.volume-.09;n>0?(t.volume=n,setTimeout(function(){i._fadeOutSound(t,s)},e)):t.pause()},_fadeInSound:function(t,s){var i=this,e=s/10,n=t.volume+.09;1>n&&(t.volume=n,setTimeout(function(){i._fadeInSound(t,s)},e))},_options:function(t,s){return void 0===s&&(s=this.slide),void 0!==this.settings.slides[s][t]?this.settings.slides[s][t]:this.settings[t]},_goto:function(s){function i(){f._timer(!0),setTimeout(function(){y&&(f.support.transition?(h.css("transition","all "+_+"ms").addClass("vegas-transition-"+y+"-out"),h.each(function(){var t=h.find("video").get(0);t&&(t.volume=1,f._fadeOutSound(t,_))}),e.css("transition","all "+_+"ms").addClass("vegas-transition-"+y+"-in")):e.fadeIn(_));for(var t=0;tg)&&(_=g),"auto"===b&&(b=g),e=t('
'),this.support.transition&&y&&e.addClass("vegas-transition-"+y),this.support.video&&l?(a=l instanceof Array?this._video(l):this._video(l.src),a.loop=void 0!==l.loop?l.loop:!0,a.muted=void 0!==l.mute?l.mute:!0,a.muted===!1?(a.volume=0,this._fadeInSound(a,_)):a.pause(),o=t(a).addClass("vegas-video").css("background-color",m),this.support.objectFit?o.css("object-position",u+" "+c).css("object-fit",p).css("width","100%").css("height","100%"):"contain"===p&&o.css("width","100%").css("height","100%"),e.append(o)):(r=new Image,n=t('
').css("background-image",'url("'+d+'")').css("background-color",m).css("background-position",u+" "+c),"repeat"===p?n.css("background-repeat","repeat"):n.css("background-size",p),this.support.transition&&w&&n.addClass("vegas-animation-"+w).css("animation-duration",b+"ms"),e.append(n)),this.support.transition||e.css("display","none"),v?h.eq(v-1).after(e):this.$elmt.prepend(e),h.css("transition","all 0ms").each(function(){this.className="vegas-slide","VIDEO"===this.tagName&&(this.className+=" vegas-video"),y&&(this.className+=" vegas-transition-"+y,this.className+=" vegas-transition-"+y+"-in")}),f._timer(!1),a?(4===a.readyState&&(a.currentTime=0),a.play(),i()):(r.src=d,r.complete?i():r.onload=i)},_end:function(){this.ended=!0,this._timer(!1),this.trigger("end")},shuffle:function(){for(var t,s,i=this.total-1;i>0;i--)s=Math.floor(Math.random()*(i+1)),t=this.settings.slides[i],this.settings.slides[i]=this.settings.slides[s],this.settings.slides[s]=t},play:function(){this.paused&&(this.paused=!1,this.next(),this.trigger("play"))},pause:function(){this._timer(!1),this.paused=!0,this.trigger("pause")},toggle:function(){this.paused?this.play():this.pause()},playing:function(){return!this.paused&&!this.noshow},current:function(t){return t?{slide:this.slide,data:this.settings.slides[this.slide]}:this.slide},jump:function(t){0>t||t>this.total-1||t===this.slide||(this.slide=t,this._goto(this.slide))},next:function(){if(this.slide++,this.slide>=this.total){if(!this.settings.loop)return this._end();this.slide=0}this._goto(this.slide)},previous:function(){if(this.slide--,this.slide<0){if(!this.settings.loop)return void this.slide++;this.slide=this.total-1}this._goto(this.slide)},trigger:function(t){var s=[];s="init"===t?[this.settings]:[this.slide,this.settings.slides[this.slide]],this.$elmt.trigger("vegas"+t,s),"function"==typeof this.settings[t]&&this.settings[t].apply(this.$elmt,s)},options:function(i,e){var n=this.settings.slides.slice();if("object"==typeof i)this.settings=t.extend({},s,t.vegas.defaults,i);else{if("string"!=typeof i)return this.settings;if(void 0===e)return this.settings[i];this.settings[i]=e}this.settings.slides!==n&&(this.total=this.settings.slides.length,this.noshow=this.total<2,this._preload())},destroy:function(){clearTimeout(this.timeout),this.$elmt.removeClass("vegas-container"),this.$elmt.find("> .vegas-slide").remove(),this.$elmt.find("> .vegas-wrapper").clone(!0).children().appendTo(this.$elmt),this.$elmt.find("> .vegas-wrapper").remove(),this.settings.timer&&this.$timer.remove(),this.settings.overlay&&this.$overlay.remove(),this.elmt._vegas=null}},t.fn.vegas=function(t){var s,i=arguments,n=!1;if(void 0===t||"object"==typeof t)return this.each(function(){this._vegas||(this._vegas=new e(this,t))});if("string"==typeof t){if(this.each(function(){var e=this._vegas;if(!e)throw new Error("No Vegas applied to this element.");"function"==typeof e[t]&&"_"!==t[0]?s=e[t].apply(e,[].slice.call(i,1)):n=!0}),n)throw new Error('No method "'+t+'" in Vegas.');return void 0!==s?s:this}},t.vegas={},t.vegas.defaults=s,t.vegas.isVideoCompatible=function(){return!/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)}}(window.jQuery||window.Zepto);var slice = [].slice; (function($, window) { var Starrr; window.Starrr = Starrr = (function() { Starrr.prototype.defaults = { rating: void 0, max: 5, readOnly: false, emptyClass: 'fa fa-star-o', fullClass: 'fa fa-star', change: function(e, value) {} }; function Starrr($el, options) { this.options = $.extend({}, this.defaults, options); this.$el = $el; this.createStars(); this.syncRating(); if (this.options.readOnly) { return; } this.$el.on('mouseover.starrr', 'a', (function(_this) { return function(e) { return _this.syncRating(_this.getStars().index(e.currentTarget) + 1); }; })(this)); this.$el.on('mouseout.starrr', (function(_this) { return function() { return _this.syncRating(); }; })(this)); this.$el.on('click.starrr', 'a', (function(_this) { return function(e) { e.preventDefault(); return _this.setRating(_this.getStars().index(e.currentTarget) + 1); }; })(this)); this.$el.on('starrr:change', this.options.change); } Starrr.prototype.getStars = function() { return this.$el.find('a'); }; Starrr.prototype.createStars = function() { var j, ref, results; results = []; for (j = 1, ref = this.options.max; 1 <= ref ? j <= ref : j >= ref; 1 <= ref ? j++ : j--) { results.push(this.$el.append("")); } return results; }; Starrr.prototype.setRating = function(rating) { if (this.options.rating === rating) { rating = void 0; } this.options.rating = rating; this.syncRating(); return this.$el.trigger('starrr:change', rating); }; Starrr.prototype.getRating = function() { return this.options.rating; }; Starrr.prototype.syncRating = function(rating) { var $stars, i, j, ref, results; rating || (rating = this.options.rating); $stars = this.getStars(); results = []; for (i = j = 1, ref = this.options.max; 1 <= ref ? j <= ref : j >= ref; i = 1 <= ref ? ++j : --j) { results.push($stars.eq(i - 1).removeClass(rating >= i ? this.options.emptyClass : this.options.fullClass).addClass(rating >= i ? this.options.fullClass : this.options.emptyClass)); } return results; }; return Starrr; })(); return $.fn.extend({ starrr: function() { var args, option; option = arguments[0], args = 2 <= arguments.length ? slice.call(arguments, 1) : []; return this.each(function() { var data; data = $(this).data('starrr'); if (!data) { $(this).data('starrr', (data = new Starrr($(this), option))); } if (typeof option === 'string') { return data[option].apply(data, args); } }); } }); })(window.jQuery, window);!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);jQuery.easing['jswing'] = jQuery.easing['swing']; jQuery.extend( jQuery.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d) { 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; } });(function( $ ){ var $scrollTo = $.scrollTo = function( target, duration, settings ){ $(window).scrollTo( target, duration, settings ); }; $scrollTo.defaults = { axis:'xy', duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1 }; $scrollTo.window = function( scope ){ return $(window)._scrollable(); }; $.fn._scrollable = function(){ return this.map(function(){ var elem = this, isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1; if( !isWin ) return elem; var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem; return $.browser.safari || doc.compatMode == 'BackCompat' ? doc.body : doc.documentElement; }); }; $.fn.scrollTo = function( target, duration, settings ){ if( typeof duration == 'object' ){ settings = duration; duration = 0; } if( typeof settings == 'function' ) settings = { onAfter:settings }; if( target == 'max' ) target = 9e9; settings = $.extend( {}, $scrollTo.defaults, settings ); duration = duration || settings.speed || settings.duration; settings.queue = settings.queue && settings.axis.length > 1; if( settings.queue ) duration /= 2; settings.offset = both( settings.offset ); settings.over = both( settings.over ); return this._scrollable().each(function(){ var elem = this, $elem = $(elem), targ = target, toff, attr = {}, win = $elem.is('html,body'); switch( typeof targ ){ case 'number': case 'string': if( /^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ) ){ targ = both( targ ); break; } targ = $(targ,this); case 'object': if( targ.is || targ.style ) toff = (targ = $(targ)).offset(); } $.each( settings.axis.split(''), function( i, axis ){ var Pos = axis == 'x' ? 'Left' : 'Top', pos = Pos.toLowerCase(), key = 'scroll' + Pos, old = elem[key], max = $scrollTo.max(elem, axis); if( toff ){ attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] ); if( settings.margin ){ attr[key] -= parseInt(targ.css('margin'+Pos)) || 0; attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0; } attr[key] += settings.offset[pos] || 0; if( settings.over[pos] ) attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos]; }else{ var val = targ[pos]; attr[key] = val.slice && val.slice(-1) == '%' ? parseFloat(val) / 100 * max : val; } if( /^\d+$/.test(attr[key]) ) attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max ); if( !i && settings.queue ){ if( old != attr[key] ) animate( settings.onAfterFirst ); delete attr[key]; } }); animate( settings.onAfter ); function animate( callback ){ $elem.animate( attr, duration, settings.easing, callback && function(){ callback.call(this, target, settings); }); }; }).end(); }; $scrollTo.max = function( elem, axis ){ var Dim = axis == 'x' ? 'Width' : 'Height', scroll = 'scroll'+Dim; if( !$(elem).is('html,body') ) return elem[scroll] - $(elem)[Dim.toLowerCase()](); var size = 'client' + Dim, html = elem.ownerDocument.documentElement, body = elem.ownerDocument.body; return Math.max( html[scroll], body[scroll] ) - Math.min( html[size] , body[size] ); }; function both( val ){ return typeof val == 'object' ? val : { top:val, left:val }; }; })( jQuery );(function(B){var X={topLeft:["top","left"],top:["top","center"],topRight:["top","right"],bottomLeft:["bottom","left"],bottom:["bottom","center"],bottomRight:["bottom","right"],leftTop:["left","top"],left:["left","center"],leftBottom:["left","bottom"],rightTop:["right","top"],right:["right","center"],rightBottom:["right","bottom"]};var r={fade:["vCover","fade"],zoomIn:["vCover","zoom"],zoomOut:["vCover","zoom"],coverDown:["vCover","sliceDown"],coverUp:["vCover","sliceUp"],coverRight:["hCover","sliceRight"],coverLeft:["hCover","sliceLeft"],blockExpandDown:["blocks","expand"],blockExpandUp:["blocks","expand"],blockExpandRight:["blocks","expand"],blockExpandLeft:["blocks","expand"],diagonalFade:["blocks","diagonalFade"],reverseDiagonalFade:["blocks","diagonalFade"],diagonalExpand:["blocks","diagonalExpand"],reverseDiagonalExpand:["blocks","diagonalExpand"],diagonalShift:["blocks","diagonalShift"],reverseDiagonalShift:["blocks","diagonalShift"],blockRandomFade:["blocks","randomEffect"],blockRandomExpand:["blocks","randomEffect"],blockRandomDrop:["blocks","randomEffect"],zigZagDown:["blocks","zigZag"],zigZagUp:["blocks","zigZag"],zigZagRight:["blocks","zigZag"],zigZagLeft:["blocks","zigZag"],spiralIn:["blocks","spiral"],spiralOut:["blocks","spiral"],sliceDownRight:["vSlices","sliceDown"],sliceDownLeft:["vSlices","sliceDown"],sliceDownRandom:["vSlices","sliceDown"],sliceUpRight:["vSlices","sliceUp"],sliceUpLeft:["vSlices","sliceUp"],sliceUpRandom:["vSlices","sliceUp"],sliceFadeRight:["vSlices","fade"],sliceFadeLeft:["vSlices","fade"],verticalRandomFade:["vSlices","fade"],sliceAltRight:["vSlices","sliceAlt"],sliceAltLeft:["vSlices","sliceAlt"],blindsRight:["vSlices","blinds"],blindsLeft:["vSlices","blinds"],verticalRandomBlinds:["vSlices","blinds"],sliceMoveRight:["vSlices","move"],sliceMoveLeft:["vSlices","move"],sliceRightDown:["hSlices","sliceRight"],sliceRightUp:["hSlices","sliceRight"],sliceRightRandom:["hSlices","sliceRight"],sliceLeftDown:["hSlices","sliceLeft"],sliceLeftUp:["hSlices","sliceLeft"],sliceLeftRandom:["hSlices","sliceLeft"],sliceFadeDown:["hSlices","fade"],sliceFadeUp:["hSlices","fade"],horizontalRandomFade:["hSlices","fade"],sliceAltDown:["hSlices","sliceAlt"],sliceAltUp:["hSlices","sliceAlt"],blindsDown:["hSlices","blinds"],blindsUp:["hSlices","blinds"],horizontalRandomBlinds:["hSlices","blinds"],sliceMoveDown:["hSlices","move"],sliceMoveUp:["hSlices","move"],horizontalSlide:["hSlide","slide"],verticalSlide:["vSlide","slide"]};var V="ontouchstart" in window;var s=a();var t=a(6);var f=q(2.9);var v=J();var Q=500;var h=50;var E="updateThumbnails";var b="resizeControlPanel";var d="updateSize";var x="rotator";var e="rotatorInit";var k="rotatorSlideChange";var U="rotatorSlideComplete";var L="rotatorFirst";var z="rotatorLast";var P="rotatorPlay";var w="rotatorPause";var R="rotatorPrevious";var o="rotatorNext";var O={linear:"linear","":"ease",swing:"ease",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInCubic:"cubic-bezier(.55,.055,.675,.19)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInBack:"cubic-bezier(.60,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175,.885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};m("transform");m("transition");m("backgroundSize");m("borderRadius");var g;var S;switch(B.support.transition){case"WebkitTransition":g="-webkit-transition";S="webkitTransitionEnd";break;case"MozTransition":g="-moz-transition";S="transitionend";break;case"OTransition":g="-o-transition";S="oTransitionEnd";break;default:g="transition";S="transitionend";break}function y(Z,ab){this._$timer=B("
").addClass("br-bar-timer");var aa=H(X[ab],X.top);this._$timer.addClass("bottom"===aa[0]?"br-bottom":"br-top");Z.append(this._$timer)}y.prototype={start:function(Z){this._$timer.animate({width:"101%"},{duration:Z,easing:"linear",queue:false})},stop:function(){this._$timer.stop().width(0)},pause:function(){this._$timer.stop()}};function Y(Z,ab){this._$timer=B('
');var aa=H(X[ab],X.topRight);this._$timer.css(aa[0],0).css(aa[1],0).addClass("br-opacity-transition");this._$left=this._$timer.find(">.br-lside .br-rotate");this._$right=this._$timer.find(">.br-rside .br-rotate");this._elapsed=this._delay=0;this._startTime;Z.append(this._$timer)}Y.prototype={start:function(Z){if(0===this._delay){this._delay=Z;this._$timer.addClass("br-opacity");this._$left.add(this._$right).stopTransition(true).css({transform:"rotateZ(0deg)"})}var aa=this._delay/2;this._startTime=(new Date()).getTime();this._$right.transition({transform:"rotateZ(180deg)"},Math.max(aa-this._elapsed,0),"linear",B.proxy(function(){var ab=Math.max(aa-Math.max(this._elapsed-aa,0),0);this._$left.transition({transform:"rotateZ(180deg)"},ab,"linear")},this))},stop:function(){this._elapsed=this._delay=0;this._$left.add(this._$right).stopTransition(true).css({transform:"rotateZ(180deg)"});this._$timer.removeClass("br-opacity")},pause:function(){this._$left.add(this._$right).stopTransition(true);this._elapsed+=(new Date()).getTime()-this._startTime;var aa=this._elapsed/this._delay,Z=aa*360;if(aa<=0.5){this._$right.css({transform:"rotateZ("+Z+"deg)"})}else{this._$left.css({transform:"rotateZ("+(Z-180)+"deg)"})}}};function n(aa,Z){this._parent=aa;this._intervalId=null;this._delay=Z}n.prototype={create:function(Z){var aa=this._total,ab="",ac=this._parent._$screen.find(">.br-effects");while(aa--){ab+='
'}ac.append(ab);$el=ac.children("."+Z).slice(-this._total);$el.css({backgroundColor:this._parent._$screen.css("backgroundColor")});if(f){$el.css("backface-visibility","visible")}return $el},clear:function(){clearInterval(this._intervalId);this._$el.stopTransition(true,false).css({visibility:"hidden"});this._parent._inProgress=false},resize:function(Z){this.clear();this._width=Math.ceil(this._$el.data("width")*Z);this._height=Math.ceil(this._$el.data("height")*Z)},setImage:function(Z,aa){Z.find(">img").remove();Z.append(B('').css({top:aa.css("top"),left:aa.css("left"),width:aa.width(),height:aa.height()}))},setBgImage:function(Z,aa){Z.css({backgroundImage:"url("+aa.attr("src")+")",backgroundSize:aa.css("width")+" "+aa.css("height"),backgroundPosition:aa.css("left")+" "+aa.css("top")})},animate:function(ad,aa,ac,ae){var Z=0,ab=this._total-1;this._intervalId=setInterval(B.proxy(function(){if(Z!==ab){B(ad[Z]).transition(aa,ac,ae)}else{B(ad[Z]).transition(aa,ac,ae,B.proxy(function(){this._parent.displayCurrent();this._$el.css({visibility:"hidden"})},this))}if(++Z==this._total){clearInterval(this._intervalId)}},this),this._delay)}};N.prototype=new n();N.prototype.constructor=N;function N(ab,Z){n.call(this,ab,0);this._cssTransform=this._parent._cssTransform;this._orientation=Z;this._total=1;var aa;if("vertical"===this._orientation){this._position="top";aa="br-vslide"}else{this._position="left";aa="br-hslide"}this._$el=this.create(aa).append("
");this._$slides=this._$el.children()}N.prototype.slide=function(ag,ai,ac,ad){var Z,af,ae={},ab=this._parent._$prevItem.find(">img.br-main-img"),ah,aa;if("vertical"===this._orientation){ah=-this._$slides.height();aa="translateY"}else{ah=-this._$slides.width();aa="translateX"}if(this._parent._backward){af=this._$slides.first();Z=this._$slides.last();if(this._cssTransform){this._$el.css({transform:aa+"("+ah+"px)"});ae.transform=aa+"(0)"}else{this._$el.css(this._position,ah);ae[this._position]=0}}else{af=this._$slides.last();Z=this._$slides.first();if(this._cssTransform){this._$el.css({transform:aa+"(0)"});ae.transform=aa+"("+ah+"px)"}else{this._$el.css(this._position,0);ae[this._position]=ah}}if(B.support.backgroundSize){this.setBgImage(Z,ab);this.setBgImage(af,ag)}else{this.setImage(Z,ab);this.setImage(af,ag)}if(v){setTimeout(B.proxy(function(){this._$el.css({visibility:"visible"});this._parent._$items.css({visibility:"hidden"});this.animate(this._$el.toArray(),ae,ac,ad)},this),1)}else{this._$el.css({visibility:"visible"});this._parent._$items.css({visibility:"hidden"});this.animate(this._$el.toArray(),ae,ac,ad)}};W.prototype=new n();W.prototype.constructor=W;function W(aa,ab,Z){n.call(this,aa,Z);this._cssTransform=this._parent._cssTransform;this._total=ab;this._width=Math.ceil(this._parent._stageWidth/this._total);this._$el=this.create("br-vslice").data({width:this._width})}W.prototype.sliceDown=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceDownLeft"===aa){ac.reverse()}else{if("sliceDownRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateY(-100%)"});this.animate(ac,{transform:"translateY(0)"},ab,ad)}else{this.set(Z,{top:-this._$el.height()});this.animate(ac,{top:0},ab,ad)}};W.prototype.sliceUp=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceUpLeft"===aa){ac.reverse()}else{if("sliceUpRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateY(100%)"});this.animate(ac,{transform:"translateY(0)"},ab,ad)}else{this.set(Z,{top:this._$el.height()});this.animate(ac,{top:0},ab,ad)}};W.prototype.sliceAlt=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceAltLeft"===aa){ac.reverse()}if(this._cssTransform){this.set(Z,{transform:"translateY(-100%)"});this._$el.filter(":odd").css({transform:"translateY(100%)"});this.animate(ac,{transform:"translateY(0)"},ab,ad)}else{this.set(Z,{top:-this._$el.height()});this._$el.filter(":odd").css({top:this._$el.height()});this.animate(ac,{top:0},ab,ad)}};W.prototype.blinds=function(Z,aa,ab,ad){this.set(Z,{width:0});var ac=this._$el.toArray();if("blindsLeft"===aa){ac.reverse()}else{if("verticalRandomBlinds"===aa){p(ac)}}this.animate(ac,{width:this._width+"px"},ab,ad)};W.prototype.fade=function(Z,aa,ab,ad){this.set(Z,{opacity:0});var ac=this._$el.toArray();if("sliceFadeLeft"===aa){ac.reverse()}else{if("verticalRandomFade"===aa){p(ac)}}this.animate(ac,{opacity:1},ab,ad)};W.prototype.move=function(Z,ab,ac,ae){var ad=this._$el.toArray(),aa=this._$el.parent().width();if("sliceMoveRight"===ab){ad.reverse();aa*=-1}if(this._cssTransform){this.set(Z,{transform:"translateX("+aa+"px)"});this.animate(ad,{transform:"translateX(0)"},ac,ae)}else{this.set(Z,{left:"+="+aa});this.animate(ad,{left:"-="+aa},ac,ae)}};W.prototype.zoom=function(Z,aa,ab,ac){if(this._cssTransform){this.set(Z,"zoomOut"===aa?{transform:"scale(2)"}:{transform:"scale(0)"});this.animate(this._$el.toArray(),{transform:"scale(1)"},ab,ac)}else{this.fade(Z,aa,ab,ac)}};W.prototype.set=function(aa,Z){var ab=aa.position().left;if(B.support.backgroundSize){this.setBgImage(this._$el,aa)}else{this.setImage(this._$el,aa)}var ac=this._$el.parent().width();this._$el.each(B.proxy(function(ah,af){var ae=Math.min(this._width,ac),ag=ah*this._width,ad=(ab-ag)+"px";B(af).css({left:ag,width:ae});if(B.support.backgroundSize){B(af).css({backgroundPosition:ad+" "+aa.css("top")})}else{B(af).find(">img").css({left:ad})}ac-=ae},this));this._$el.css(B.extend({opacity:1,top:0,visibility:"visible",transform:"none"},Z))};T.prototype=new n();T.prototype.constructor=T;function T(aa,ab,Z){n.call(this,aa,Z);this._cssTransform=this._parent._cssTransform;this._total=ab;this._height=Math.ceil(this._parent._stageHeight/this._total);this._$el=this.create("br-hslice").data({height:this._height})}T.prototype.sliceRight=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceRightUp"===aa){ac.reverse()}else{if("sliceRightRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateX(-100%)"});this.animate(ac,{transform:"translateX(0)"},ab,ad)}else{this.set(Z,{left:-this._$el.width()});this.animate(ac,{left:0},ab,ad)}};T.prototype.sliceLeft=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceLeftUp"===aa){ac.reverse()}else{if("sliceLeftRandom"===aa){p(ac)}}if(this._cssTransform){this.set(Z,{transform:"translateX(100%)"});this.animate(ac,{transform:"translateX(0)"},ab,ad)}else{this.set(Z,{left:this._$el.width()});this.animate(ac,{left:0},ab,ad)}};T.prototype.sliceAlt=function(Z,aa,ab,ad){var ac=this._$el.toArray();if("sliceAltUp"===aa){ac.reverse()}if(this._cssTransform){this.set(Z,{transform:"translateX(-100%)"});this._$el.filter(":odd").css({transform:"translateX(100%)"});this.animate(ac,{transform:"translateX(0)"},ab,ad)}else{this.set(Z,{left:-this._$el.width()});this._$el.filter(":odd").css({left:this._$el.width()});this.animate(ac,{left:0},ab,ad)}};T.prototype.blinds=function(Z,aa,ab,ad){this.set(Z,{height:0});var ac=this._$el.toArray();if("blindsUp"===aa){ac.reverse()}else{if("horizontalRandomBlinds"===aa){p(ac)}}this.animate(ac,{height:this._height+"px"},ab,ad)};T.prototype.fade=function(Z,aa,ab,ad){this.set(Z,{opacity:0});var ac=this._$el.toArray();if("sliceFadeUp"===aa){ac.reverse()}else{if("horizontalRandomFade"===aa){p(ac)}}this.animate(ac,{opacity:1},ab,ad)};T.prototype.move=function(aa,ab,ac,ae){var ad=this._$el.toArray(),Z=this._$el.parent().height();if("sliceMoveDown"===ab){ad.reverse();Z*=-1}if(this._cssTransform){this.set(aa,{transform:"translateY("+Z+"px)"});this.animate(ad,{transform:"translateY(0)"},ac,ae)}else{this.set(aa,{top:"+="+Z});this.animate(ad,{top:"-="+Z},ac,ae)}};T.prototype.set=function(ac,ab){var aa=ac.position().top;if(B.support.backgroundSize){this.setBgImage(this._$el,ac)}else{this.setImage(this._$el,ac)}var Z=this._$el.parent().height();this._$el.each(B.proxy(function(ah,ae){var ad=Math.min(this._height,Z),af=ah*this._height,ag=(aa-af)+"px";B(ae).css({top:af,height:ad});if(B.support.backgroundSize){B(ae).css({backgroundPosition:ac.css("left")+" "+ag})}else{B(ae).find(">img").css({top:ag})}Z-=ad},this));this._$el.css(B.extend({opacity:1,left:0,visibility:"visible",transform:"none"},ab))};u.prototype=new n();u.prototype.constructor=u;function u(ad,ae,af,ab){n.call(this,ad,ab);this._cssTransform=this._parent._cssTransform;this._blockArray;this._numRows=ae;this._numCols=af;this._width=Math.ceil(this._parent._stageWidth/this._numCols);this._height=Math.ceil(this._parent._stageHeight/this._numRows);this._total=this._numRows*this._numCols;this._$el=this.create("br-block").data({width:this._width,height:this._height});var Z=0;this._blockArray=[];for(var ac=0;acimg").css({left:aj,top:ah})}ae-=aa}}this._$el.css(B.extend({opacity:1,visibility:"visible",transform:"none"},af))};u.prototype.getDiagonalArray=function(){var aa=[];var ab=0,Z=(this._numRows-1)+(this._numCols-1)+1;while(ab!=Z){i=Math.min(this._numRows-1,ab);while(i>=0){j=Math.abs(i-ab);if(j>=this._numCols){break}aa.push(this._blockArray[i][j]);i--}ab++}return aa};u.prototype.getZigZagArray=function(ac){var ab=0,Z=0,aa=true;var ae=[];if("zigZagUp"===ac||"zigZagDown"===ac){for(var ad=0;ad=0;Z--){for(var aa=0;aa=0;aa--){for(var Z=0;Z=0&&af>=0){var ae=0;while(true){ag.push(this._blockArray[ad][ac]);if((++ae)>Z){break}switch(ab){case 0:ac++;break;case 1:ad++;break;case 2:ac--;break;case 3:ad--;break}}switch(ab){case 0:ab=1;Z=(--aa);ad++;break;case 1:ab=2;Z=(--af);ac--;break;case 2:ab=3;Z=(--aa);ad--;break;case 3:ab=0;Z=(--af);ac++;break}}return ag};function I(aa,Z){this._options=Z;this._stageWidth=Z.width;this._stageHeight=Z.height;this._rotate=Z.autoPlay;this._cssTransition=B.support.transition&&!f?Z.cssTransition:false;this._cssTransform=B.support.transform&&this._cssTransition;this._numItems;this._currIndex;this._effects={};this._backward;this._verticalCPanel;this._timer;this._timerId=null;this._tooltipId=null;this._layerIds=[];this._inProgress=false;this._start;this._delay=0;this._cpAlign;this._effectArray;this._startX;this._startY;this._swipeMove;this._swipeStart;this._touchScrolling;this._scrollEasing;this._promise;this._winWidth;this._$rotator=B(aa);this._$stage;this._$screen;this._$layers;this._$preloader;this._$cpanel;this._$cpWrapper;this._$extPanel;this._$thumbPanel;this._$list;this._$items;this._$thumbList;this._$thumbs;this._$tooltip;this._$currItem;this._$prevItem;this._namespace="."+((typeof this._$rotator.attr("id")!=="undefined")?this._$rotator.attr("id"):"rotator");this.init()}I.prototype={init:function(){if(!this._cssTransition){B.fn.transition=B.fn.animate;B.fn.stopTransition=B.fn.stop}this._$list=this._$rotator.find(">ul");if(!this._$list.hasClass("br-slides")){this._$list.addClass("br-slides")}if(this._options.shuffle){this.shuffleItems(this._$list)}this._$items=this._$list.children("li").addClass("br-item");this._numItems=this._$items.length;if("random"===this._options.startIndex){this._currIndex=Math.floor(Math.random()*this._numItems)}else{var Z=parseInt(this._options.startIndex,0);this._currIndex=(!isNaN(Z)&&0<=Z&&Z
');this._$screen=this._$list.parent();this._$stage=this._$screen.parent();this.setBackgroundColor(this._$screen,this._options.backgroundColor);this._$screen.append('
'+lbl_cargando_ico+'
');this._$preloader=this._$screen.find(">.br-preloader");if(false!==this._options.timer&&"none"!==this._options.timer){if("pie"===this._options.timer){if(this._cssTransform){this._timer=new Y(this._$screen,this._options.timerAlign)}}else{this._timer=new y(this._$screen,this._options.timerAlign)}}if("large"===this._options.navButtons&&1
").addClass("br-wrapper").copyBorder(this._$rotator);this._$rotator.css({borderWidth:0,borderRadiusTopLeft:0,borderRadiusTopRight:0,borderRadiusBottomLeft:0,borderRadiusBottomRight:0});if(!this._options.responsive){Z.css({width:this._$rotator.outerWidth(true),height:this._$rotator.outerHeight(true)})}this._$rotator.wrap(Z)},initSideButtons:function(){var Z=B("
").addClass("br-side-prev").click(B.proxy(this.prevSlide,this));var ab=B("
").addClass("br-side-next").click(B.proxy(this.nextSlide,this));var aa=Z.add(ab).mousedown(F);if(!f){aa.find(">div").addClass("br-opacity-transition")}this._$screen.append(aa);if(this._options.navButtonsOnHover){aa.css({opacity:0});this._$rotator.hover(function(){aa.animate({opacity:1},{duration:Q,queue:false})},B.proxy(function(ac){if(!this.onTooltip(ac)){aa.animate({opacity:0},{duration:Q,queue:false})}},this))}},initItems:function(){for(var ab=0;abimg");if(0===Z.length){ac=aa.attr("href");ai=H(aa.text(),"")}ag.data("imgurl",aa.attr("href")).append(B('').addClass("br-main-img"))}else{Z=ag.find(">img:not(.tt-img):first").addClass("br-main-img")}if(Z.length){if(typeof Z.data("thumb")!=="undefined"){ac=Z.data("thumb")}else{ac=Z.attr("src")}ai=H(Z.attr("title"),"");Z.removeAttr("title")}if("image"===this._options.tooltip){if(0===ag.find(">img.tt-img").length){ag.append(B('').addClass("tt-img").attr("src",ac))}}var af=ag.data("link");if(typeof af!=="undefined"&&""!==B.trim(af)){var ae=B("
").addClass("br-main-link").attr("href",af),ad=ag.data("target");if(typeof ad!=="undefined"){ae.attr("target",ad)}if(this._options.pauseOnInteraction){ae.click(B.proxy(this.pause,this))}this._$screen.find(">.br-links").append(ae);ag.data("linkEl",ae)}this.setShorthandData(ag,"transition",["effect","duration","easing","delay"]);ag.data({caption:ai,thumburl:ac,ready:false,effect:H(ag.data("effect"),this._options.effect),duration:M(ag.data("duration"),this._options.duration),easing:this.checkEasing(H(ag.data("easing"),this._options.easing)),delay:M(ag.data("delay"),this._options.delay)});this.initLayer(ag)}var ah=this._$screen.find(">.br-layers");this._$layers=ah.children();if(f){this._$layers.css("backface-visibility","visible")}if(this._options.layerOnHover){ah.css({opacity:0});this._$rotator.hover(function(){ah.animate({opacity:1},{duration:300,queue:false})},function(){ah.animate({opacity:0},{duration:300,queue:false})})}},initCPanel:function(){this._$cpanel=B("
").addClass("br-cpanel");this._$rotator.append(this._$cpanel);this._cpAlign=H(X[this._options.cpanelAlign],X.bottom);this._verticalCPanel=("left"===this._cpAlign[0]||"right"===this._cpAlign[0]);this.initThumbnails();this.initButtons();var ah=this._$cpanel.children();if(ah.length){this._$cpanel.wrap('
');this._$cpWrapper=this._$cpanel.parent();if(this._verticalCPanel){var ac=0,af=Math.max.apply(null,ah.map(function(){return B(this).outerWidth(true)}).get()),ad=0,Z=0;ah.each(function(){B(this).css({left:Math.floor((af-B(this).outerWidth(true))/2)});var ai=B(this).outerHeight(true);if(B(this).data("front")){B(this).css({top:ad});ad+=ai}else{B(this).css({bottom:Z});Z+=ai}ac+=ai});this._$cpanel.css({width:af,height:ac});if("top"===this._cpAlign[1]){this._$cpWrapper.css({top:0})}else{if("bottom"===this._cpAlign[1]){this._$cpWrapper.css({bottom:0})}else{this._$cpWrapper.css({top:"50%"});this._$cpanel.css({top:-this._$cpanel.outerHeight(true)/2})}}if(this._options.cpanelOutside){this.setOutsideVerticalCPanel()}else{this.setInsideCPanel()}if(false!==this._options.thumbnails){this._$cpanel.data({margin:this._$cpanel.outerHeight(true)-this._$cpanel.height(),buttonsSize:this._$cpanel.height()-ah.filter(".br-thumbnails").height()});if(this._options.responsive){this._$rotator.bind(b,B.proxy(this.resizeVerticalCPanel,this));this.initVerticalScroll()}else{if(this._$cpanel.outerHeight(true)>this._stageHeight){this.resizeVerticalCPanel();this.initVerticalScroll()}}}}else{var ab=0,ag=Math.max.apply(null,ah.map(function(){return B(this).outerHeight(true)}).get()),aa=0,ae=0;ah.each(function(){B(this).css({top:Math.floor((ag-B(this).outerHeight(true))/2)});var ai=B(this).outerWidth(true);if(B(this).data("front")){B(this).css({left:aa});aa+=ai}else{B(this).css({right:ae});ae+=ai}ab+=ai});this._$cpanel.css({width:ab,height:ag});if("left"===this._cpAlign[1]){this._$cpWrapper.css({left:0})}else{if("right"===this._cpAlign[1]){this._$cpWrapper.css({right:0})}else{this._$cpWrapper.css({left:"50%"});this._$cpanel.css({left:-this._$cpanel.outerWidth(true)/2})}}if(this._options.cpanelOutside){this.setOutsideHorizontalCPanel()}else{this.setInsideCPanel()}if(false!==this._options.thumbnails){this._$cpanel.data({margin:this._$cpanel.outerWidth(true)-this._$cpanel.width(),buttonsSize:this._$cpanel.width()-ah.filter(".br-thumbnails").width()});if(this._options.responsive){this._$rotator.bind(b,B.proxy(this.resizeHorizontalCPanel,this));this.initHorizontalScroll()}else{if(this._$cpanel.outerWidth(true)>this._stageWidth){this.resizeHorizontalCPanel();this.initHorizontalScroll()}}}}this._$cpanel.css({visibility:"visible"})}else{this._$cpanel.remove()}},setInsideCPanel:function(){this._$cpWrapper.css(this._cpAlign[0],0);if(this._options.cpanelOnHover){this._$cpanel.css({opacity:0});this._$rotator.hover(B.proxy(function(){this._$cpanel.animate({opacity:1},{duration:Q,queue:false})},this),B.proxy(function(Z){if(!this.onTooltip(Z)){this._$cpanel.animate({opacity:0},{duration:Q,queue:false})}},this))}},setOutsideHorizontalCPanel:function(){this._$cpWrapper.wrap('
');this._$extPanel=this._$cpWrapper.parent().prepend('
');var aa=this._$cpWrapper.height(),ab,Z;if("top"===this._cpAlign[0]){ab="marginTop";Z="top"}else{ab="marginBottom";Z="bottom"}this._$rotator.css(ab,aa).css({overflow:"visible"});this._$extPanel.css({left:0,width:"100%",height:aa}).css(Z,-aa);this.createBorderWrapper()},setOutsideVerticalCPanel:function(){this._$cpWrapper.wrap('
');this._$extPanel=this._$cpWrapper.parent().prepend('
');var aa=this._$cpWrapper.width(),ab,Z;if("left"===this._cpAlign[0]){ab="marginLeft";Z="left"}else{ab="marginRight";Z="right"}this._$rotator.css(ab,aa).css({overflow:"visible"});this._$extPanel.css({top:0,width:aa,height:"100%"}).css(Z,-aa);this.createBorderWrapper()},setBackgroundColor:function(Z,aa){if(typeof aa!=="undefined"){if(""===B.trim(aa)){aa="transparent"}Z.css({backgroundColor:aa})}},initButtons:function(){var aa={width:this._options.buttonWidth,height:this._options.buttonHeight,margin:this._options.buttonMargin},ab,Z,ac;if(this._options.playButton&&1
");ab.addClass("br-play-button").css(aa).toggleClass("br-pause",this._rotate).click(B.proxy(this.togglePlay,this)).mousedown(F);if(!f){ab.addClass("br-all-color-transition")}this._$cpanel.prepend(ab)}if((true===this._options.navButtons||"small"===this._options.navButtons)&&1
").addClass("br-prev-button").css(aa).toggleClass("br-up",this._verticalCPanel).click(B.proxy(this.prevSlide,this)).mousedown(F);ac=B("
").addClass("br-next-button").css(aa).toggleClass("br-down",this._verticalCPanel).click(B.proxy(this.nextSlide,this)).mousedown(F);if(!f){Z.add(ac).addClass("br-all-color-transition")}if(typeof ab!=="undefined"){ab.before(ac).after(Z)}else{Z.data("front",true);this._$cpanel.append(Z).prepend(ac)}}},initThumbnails:function(){var ac=(1").addClass("br-thumbnails");this._$thumbList=B("
    ");this._$thumbPanel.append(this._$thumbList);this._$cpanel.append(this._$thumbPanel);for(var aa=0;aa"+(aa+1)+"")}else{if("text"===ac){this._$thumbList.append("
  • "+this._$items.eq(aa).data("caption")+"
  • ")}else{if("image"===ac){var ab=B("
  • ").addClass("br-thumb-img"),Z=B('').css({opacity:0});if(!t){ab.append("
    ");if(!f){ab.find(">div").addClass("br-opacity-transition")}}ab.prepend(Z).appendTo(this._$thumbList);Z.one("load",B.proxy(function(ad){this.fillContent(B(ad.currentTarget),this._options.thumbWidth,this._options.thumbHeight);B(ad.currentTarget).animate({opacity:1},Q)},this)).attr("src",this._$items.eq(aa).data("thumburl"));if(Z[0].complete||"complete"===Z[0].readyState){Z.trigger("load")}}else{this._$thumbList.append(B("
  • ").toggleClass("br-bullet","bullet"===ac))}}}}this._$thumbs=this._$thumbList.children("li");if(!f){this._$thumbs.addClass("bullet"===ac?"br-all-transition":"br-all-color-transition")}if("bullet"!==ac){this._$thumbs.css({width:this._options.thumbWidth,height:this._options.thumbHeight,margin:this._options.thumbMargin,lineHeight:this._options.thumbHeight+"px"})}if(this._options.selectOnHover){this._$thumbs.mouseenter(B.proxy(this.selectSlide,this))}else{this._$thumbs.click(B.proxy(this.selectSlide,this)).mousedown(F)}if(this._verticalCPanel){this._$thumbList.css({width:this._$thumbs.outerWidth(true),height:this._numItems*this._$thumbs.outerHeight(true)})}else{this._$thumbList.css({width:this._numItems*this._$thumbs.outerWidth(true),height:this._$thumbs.outerHeight(true)})}this.initTooltip()}else{this._options.thumbnails=false}},initLayer:function(aa){var Z=aa.children(":not(.tt-html, img.tt-img, img.br-main-img, a.br-img-link)").addClass("br-layer");aa.data("layers",Z);this._$screen.find(">.br-layers").append(Z);Z.each(B.proxy(function(af,ae){var ad=B(ae),ab="marginTop",ac="marginLeft";if("auto"===ad[0].style.width&&"auto"===ad[0].style.height){ad.css("white-space","normal")}if(!isNaN(parseInt(ad[0].style.top,0))){if(!G(ad[0].style.top)){ad.css({top:(c(ad.css("top"),0)/this._stageHeight*100)+"%"})}ad.css({bottom:"auto"})}else{if(!isNaN(parseInt(ad[0].style.bottom,0))){if(!G(ad[0].style.bottom)){ad.css({bottom:(c(ad.css("bottom"),0)/this._stageHeight*100)+"%"})}ad.css({top:"auto"});ab="marginBottom"}}if(!isNaN(parseInt(ad[0].style.left,0))){if(!G(ad[0].style.left)){ad.css({left:(c(ad.css("left"),0)/this._stageWidth*100)+"%"})}ad.css({right:"auto"})}else{if(!isNaN(parseInt(ad[0].style.right,0))){if(!G(ad[0].style.right)){ad.css({right:(c(ad.css("right"),0)/this._stageWidth*100)+"%"})}ad.css({left:"auto"});ac="marginRight"}}this.setShorthandData(ad,"transition",["effect","duration","easing","delay"]);this.setShorthandData(ad,"transitionOut",["effectOut","durationOut","easingOut","delayOut"]);ad.data({width:"auto"===ad[0].style.width?"auto":ad.width(),height:"auto"===ad[0].style.height?"auto":ad.height(),opacity:A(ad.css("opacity"),1),padTop:c(ad.css("paddingTop"),0),padBottom:c(ad.css("paddingBottom"),0),padLeft:c(ad.css("paddingLeft"),0),padRight:c(ad.css("paddingRight"),0),borderTop:c(ad.css("borderTopWidth"),0),borderBottom:c(ad.css("borderBottomWidth"),0),borderLeft:c(ad.css("borderLeftWidth"),0),borderRight:c(ad.css("borderRightWidth"),0),fontSize:parseInt(ad.css("fontSize"),0),lineHeight:parseInt(ad.css("lineHeight"),0),verticalMargin:ab,horizontalMargin:ac,effect:this.getEffect(H(ad.data("effect"),this._options.layerEffect)),duration:M(ad.data("duration"),this._options.layerDuration),easing:this.checkEasing(H(ad.data("easing"),this._options.layerEasing)),delay:K(ad.data("delay"),this._options.layerDelay),effectOut:this.getEffect(H(ad.data("effectOut"),this._options.layerEffectOut)),durationOut:M(ad.data("durationOut"),this._options.layerDurationOut),easingOut:this.checkEasing(H(ad.data("easingOut"),this._options.layerEasingOut)),delayOut:K(ad.data("delayOut"),this._options.layerDelayOut)})},this))},setShorthandData:function(ad,ab,ae){var aa=ad.data(ab);if(typeof aa!=="undefined"){var Z=aa.split(" ",ae.length);for(var ac=0;ac").addClass("br-tt br-tt-"+this._cpAlign[0]).append('
    ');var Z=this._$tooltip.find(">.br-tt-content").css({width:this._options.tooltipWidth,height:this._options.tooltipHeight});B("body").prepend(this._$tooltip);if("image"===this._options.tooltip){this._$items.each(B.proxy(function(ae,ac){var ab=B(ac).find(">img.tt-img"),aa=ab.clone();Z.append(aa);var ad=this._$thumbs.eq(ae);ad.hover(B.proxy(function(){this._$tooltip.stop(true,true).find("img").hide().eq(ae).show();this.displayTooltip(ad)},this),B.proxy(this.hideTooltip,this));ab.one("load",B.proxy(function(){this.fillContent(ab,this._options.tooltipWidth,this._options.tooltipHeight);aa.css({visibility:"visible",top:ab.css("top"),left:ab.css("left"),width:ab.width(),height:ab.height()});ab.remove()},this)).attr("src",ab.attr("src"));if(ab[0].complete||"complete"===ab[0].readyState){ab.trigger("load")}},this))}else{this._$items.each(B.proxy(function(ag,ae){var ab,ac=B(ae).find(">.tt-html");if(ac.length&&""!==ac.html()){ab=ac.html()}else{ab=B(ae).data("caption")}if(typeof ab!=="undefined"&&""!==ab){var af=this._$thumbs.eq(ag);if("auto"===this._options.tooltipWidth&&"auto"===this._options.tooltipHeight){Z.html(ab);var ad=Z.width()+1,aa=Z.height()+1;Z.html("");af.bind(d,B.proxy(function(){Z.css({width:ad,height:aa})},this))}af.hover(B.proxy(function(){this._$tooltip.stop(true,true);af.trigger(d);Z.html(ab);this.displayTooltip(af)},this),B.proxy(this.hideTooltip,this))}},this))}if(s){this._$tooltip.mouseleave(B.proxy(function(aa){if(document.elementFromPoint&&!B(document.elementFromPoint(aa.clientX,aa.clientY)).closest(".banner-rotator").is(this._$rotator)){this._$rotator.trigger("mouseleave")}},this))}}},displayTooltip:function(ac){var Z=this._options.cpanelOutside?this._$extPanel:ac,ab,aa;if(this._verticalCPanel){aa=Z.offset().left;if("left"===this._cpAlign[0]){aa+=Z.outerWidth()}else{aa-=this._$tooltip.outerWidth(true)}ab=ac.offset().top-(this._$tooltip.outerHeight(true)-ac.outerHeight())/2}else{ab=Z.offset().top;if("top"===this._cpAlign[0]){ab+=Z.outerHeight()}else{ab-=this._$tooltip.outerHeight(true)}aa=ac.offset().left-(this._$tooltip.outerWidth(true)-ac.outerWidth())/2}this._tooltipId=setTimeout(B.proxy(function(){this._$tooltip.css({opacity:0,top:ab,left:aa}).show().animate({opacity:1},Q)},this),this._options.tooltipDelay)},hideTooltip:function(){clearTimeout(this._tooltipId);this._$tooltip.stop(true).animate({opacity:0},400,function(){B(this).hide()})},selectSlide:function(aa){if(this._options.pauseOnInteraction){this.pause()}if(!this._inProgress){var Z=B(aa.currentTarget).index();if(Z!=this._currIndex){if(this._options.layerOutSync){this.loadDeferred(B.proxy(function(){this.select_slide(Z)},this))}else{this.select_slide(Z)}}}},select_slide:function(Z){this._backward=Z0)?(this._currIndex-1):(this._numItems-1);this.loadSlide()},nextSlide:function(){if(this._options.pauseOnInteraction){this.pause()}if(!this._inProgress){if(this._options.layerOutSync){this.loadDeferred(B.proxy(function(){this.next_slide()},this))}else{this.next_slide()}}},next_slide:function(){this._$rotator.trigger(o);this._options.onNext.call(this);this._backward=false;this._currIndex=(this._currIndex.br-play-button").addClass("br-pause");if(!this._inProgress){this.resumeTimer()}this._$rotator.trigger(P);this._options.onPlay.call(this)}},pause:function(){if(this._rotate){this._rotate=false;this._$cpanel.find(">.br-play-button").removeClass("br-pause");if(!this._inProgress){this.pauseTimer()}this._$rotator.trigger(w);this._options.onPause.call(this)}},displayLayers:function(){this.stopLayers();this._layerIds=[];this._$currItem.data("layers").each(B.proxy(function(aa,Z){this._layerIds.push(setTimeout(B.proxy(function(){this.animateLayer(B(Z))},this),B(Z).data("delay")))},this))},animateLayer:function(Z){Z.stopTransition(true,true);var aa=Z.data(),ad={},ac={};Z.css({opacity:aa.opacity,margin:0,transform:"none"}).show();switch(aa.effect){case"fade":ad={opacity:0};ac={opacity:aa.opacity};break;case"moveDown":var ab=this.getVerticalMoveProp(Z,true);ad=ab.from;ac=ab.to;break;case"moveUp":var ab=this.getVerticalMoveProp(Z,false);ad=ab.from;ac=ab.to;break;case"moveRight":var ab=this.getHorizontalMoveProp(Z,true);ad=ab.from;ac=ab.to;break;case"moveLeft":var ab=this.getHorizontalMoveProp(Z,false);ad=ab.from;ac=ab.to;break;case"zoomIn":ad={transform:"scale(0)",opacity:0};ac={transform:"scale(1)",opacity:aa.opacity};break;case"zoomOut":ad={transform:"scale(2)",opacity:0};ac={transform:"scale(1)",opacity:aa.opacity};break;case"flipDown":ad={transform:"perspective(400px) rotateX(90deg)"};ac={transform:"perspective(400px) rotateX(0deg)"};break;case"flipUp":ad={transform:"perspective(400px) rotateX(-90deg)"};ac={transform:"perspective(400px) rotateX(0deg)"};break;case"flipRight":ad={transform:"perspective(400px) rotateY(-90deg)"};ac={transform:"perspective(400px) rotateY(0deg)"};break;case"flipLeft":ad={transform:"perspective(400px) rotateY(90deg)"};ac={transform:"perspective(400px) rotateY(0deg)"};break;case"slideDown":case"slideUp":case"slideRight":case"slideLeft":this.slideEffect(Z,{effect:aa.effect,duration:aa.duration,easing:aa.easing,effectOut:false});this.deferLayerOut(Z);return;default:this.deferLayerOut(Z);return}Z.css(ad).transition(ac,aa.duration,aa.easing);this.deferLayerOut(Z)},deferLayerOut:function(Z){var aa=Z.data("delayOut");if(typeof aa!=="undefined"&&0");ab.addClass("br-effect-wrapper").css({position:aa.css("position"),"float":aa.css("float"),width:aa.outerWidth(true),height:aa.outerHeight(true),zIndex:aa.css("zIndex"),top:aa[0].style.top,left:aa[0].style.left,bottom:aa[0].style.bottom,right:aa[0].style.right});aa.wrap(ab).css({display:"block",position:"relative",top:0,left:0,bottom:"auto",right:"auto"}).css(Z)},removeWrapper:function(Z){this.restoreStyle(Z);if(Z.parent().is(".br-effect-wrapper")){Z.unwrap()}},saveStyle:function(aa){var ac={},ab=["display","position","top","left","bottom","right","width","height"];for(var Z=0;Zimg.br-main-img").unbind("load.display");this.resetTimer();while(this._layerIds.length){clearTimeout(this._layerIds.pop())}var Z=this._$layers.filter(":visible");if(Z.length){var aa=[];Z.each(B.proxy(function(ae,ad){var ac=B(ad);if(typeof ac.data("promise")==="undefined"||"pending"!==ac.data("promise").state()){this.animateLayerOut(ac)}aa[ae]=ac.data("promise")},this));this._promise=B.when.apply(null,aa).done(function(){ab.call(this)});Z.removeData("promise")}else{ab.call(this)}}},loadSlide:function(){this._$items.find(">img.br-main-img").unbind("load.display");this._$screen.find(">.br-links>a.br-main-link").hide();this.resetTimer();this.clearLayers(true);B.each(this._effects,function(ac,ad){ad.clear()});if(0===this._currIndex){this._$rotator.trigger(L);this._options.onFirstSlide.call(this)}if((this._numItems-1)===this._currIndex){this._$rotator.trigger(z);this._options.onLastSlide.call(this);if(this._options.playOnce){this.pause()}}this._$rotator.trigger(k);this._options.onSlideChange.call(this);if(false!==this._options.thumbnails){this._$thumbs.removeClass("br-curr").eq(this._currIndex).addClass("br-curr");this._$rotator.trigger(E)}var Z=this._$items.eq(this._currIndex);if(Z.data("ready")){this.displayContent(Z)}else{this._$preloader.show();var aa=Z.find(">img.br-main-img");aa.one("load.display",B.proxy(function(){if(!Z.data("ready")){this.processImage(Z)}this.displayContent(Z)},this));var ab=((typeof aa.attr("src")==="undefined"||""===aa.attr("src"))?Z.data("imgurl"):aa.attr("src"));aa.attr("src",ab);if(aa[0].complete||"complete"===aa[0].readyState){aa.trigger("load")}}},displayContent:function(Z){this._$preloader.hide();this._inProgress=true;this._$prevItem=this._$currItem;this._$currItem=Z;var ad=this._$currItem.data();if(typeof ad.linkEl!=="undefined"){ad.linkEl.show()}if(!this._options.layerSync){this.displayLayers()}if(typeof this._$prevItem==="undefined"||this._$prevItem.index()==this._$currItem.index()){this.displayCurrent();return}var ac=ad.effect;if("random"===ac){ac=this._effectArray[Math.floor(Math.random()*this._effectArray.length)]}if(typeof r[ac]!=="undefined"){var aa=r[ac][0];var ab=r[ac][1];this._effects[aa][ab](this._$currItem.find(">img.br-main-img"),ac,ad.duration,ad.easing)}else{this.displayCurrent()}},displayCurrent:function(){this._$rotator.trigger(U);this._options.onSlideComplete.call(this);if(this._options.layerSync){this.displayLayers()}this._$items.css({visibility:"hidden"});this._$currItem.css({visibility:"visible"});this.startTimer();this._inProgress=false},loadImage:function(aa){var Z=B.Deferred(),ab=aa.find(">img.br-main-img");ab.one("load",B.proxy(function(){if(!aa.data("ready")){this.processImage(aa)}Z.resolve()},this)).error(function(){Z.reject()});var ac=((typeof ab.attr("src")==="undefined"||""===ab.attr("src"))?aa.data("imgurl"):ab.attr("src"));ab.attr("src",ac);if(ab[0].complete||"complete"===ab[0].readyState){ab.trigger("load")}return Z},loadNextImage:function(Z,aa){if(Z.length){B.when(this.loadImage(B(Z.pop()))).always(B.proxy(function(){this.loadNextImage(Z,aa)},this))}else{if(B.isFunction(aa)){aa.call(this)}}},loadAllImages:function(){var Z=0;var aa=setInterval(B.proxy(function(){if(Zimg.br-main-img");ac.one("load",B.proxy(function(){if(!ab.data("ready")){this.processImage(ab)}},this));var ad=((typeof ac.attr("src")==="undefined"||""===ac.attr("src"))?ab.data("imgurl"):ac.attr("src"));ac.attr("src",ad);if(ac[0].complete||"complete"===ac[0].readyState){ac.trigger("load")}}else{clearInterval(aa)}},this),100)},processImage:function(ag){var Z=ag.find(">img.br-main-img"),ac=H(ag.data("imagePosition"),this._options.imagePosition),ad=(ac+"").split(" ");if(2===ad.length){if(!isNaN(parseInt(ad[0],0))){Z.css({left:ad[0]})}if(!isNaN(parseInt(ad[1],0))){Z.css({top:ad[1]})}}else{switch(ac){case"fill":this.fillContent(Z,this._stageWidth,this._stageHeight);break;case"fit":this.fitContent(Z,this._stageWidth,this._stageHeight);break;case"center":this.centerContent(Z,this._stageWidth,this._stageHeight);break;case"stretch":this.stretchContent(Z,this._stageWidth,this._stageHeight);break}}var ae=this._$stage.width()/this._stageWidth,af=parseInt(Z.css("top"),0),ab=parseInt(Z.css("left"),0),aa=Z.width(),ah=Z.height();Z.data({top:af,left:ab,width:aa,height:ah}).css({top:Math.round(ae*af),left:Math.round(ae*ab),width:Math.round(ae*aa),height:Math.round(ae*ah)});ag.data("ready",true)},centerContent:function(Z,aa,ab){Z.css({top:(ab-Z.height())/2,left:(aa-Z.width())/2})},fillContent:function(aa,ac,ae){if("auto"===ac||"auto"===ae){return}var ab=aa.width(),Z=aa.height(),ad=Math.max(ae/Z,ac/ab);aa.css({width:ab*ad,height:Z*ad});this.centerContent(aa,ac,ae)},fitContent:function(aa,ae,af){var ac=aa.width(),Z=aa.height(),ad=ae/af,ab=ac/Z;if(ad>ab){ac*=af/Z;Z=af}else{Z*=ae/ac;ac=ae}aa.css({width:ac,height:Z});this.centerContent(aa,ae,af)},stretchContent:function(Z,aa,ab){Z.css({top:0,left:0,width:aa,height:ab})},startTimer:function(){this._delay=this._$currItem.data("delay");this.resumeTimer()},resumeTimer:function(){if(this._rotate&&0Z+this._$thumbPanel.width()){var ab=(((this._numItems-1)-this._currIndex)*this._$thumbs.outerWidth(true))+this._$thumbPanel.data("range");this._$thumbList.animate({left:ab},{duration:Q,easing:this._scrollEasing,queue:false})}}},updateVerticalThumbs:function(){var aa=this._$thumbs.eq(this._currIndex).offset().top,Z=this._$thumbPanel.offset().top;if(aaZ+this._$thumbPanel.height()){var ab=(((this._numItems-1)-this._currIndex)*this._$thumbs.outerHeight(true))+this._$thumbPanel.data("range");this._$thumbList.animate({top:ab},{duration:Q,easing:this._scrollEasing,queue:false})}}},resizeHorizontalCPanel:function(){this._$thumbPanel.css({width:Math.min(this._$screen.width()-this._$cpanel.data("margin")-this._$cpanel.data("buttonsSize"),this._$thumbList.width())});this._$cpanel.css({width:this._$cpanel.data("buttonsSize")+this._$thumbPanel.width()});this._$cpWrapper.siblings(".br-ext-bg").css({width:this._$screen.width()});this._$thumbList.stop();var Z=this._$thumbPanel.width()-this._$thumbList.width();if(this._$thumbList.position().left.br-ext-cp").css({height:this._$screen.height()});this._$thumbList.stop();var Z=this._$thumbPanel.height()-this._$thumbList.height();if(this._$thumbList.position().toph){if(this._swipeMove>0){this.nextSlide()}else{if(this._swipeMove<0){this.prevSlide()}}}}},mousescroll:function(Z){Z.preventDefault();var aa=(typeof Z.originalEvent.wheelDelta==="undefined")?-Z.originalEvent.detail:Z.originalEvent.wheelDelta;if(aa>0){this.prevSlide()}else{this.nextSlide()}},keyControl:function(Z){switch(Z.keyCode){case 37:this.prevSlide();break;case 39:this.nextSlide();break;case 80:this.togglePlay();break}},resize:function(){if(B(window).width()!==this._winWidth){this._winWidth=B(window).width();this.resetTimer();this.clearLayers(false);var Z=this._$stage.width()/this._stageWidth;this._$stage.css({height:Math.round(Z*this._stageHeight)});this._$screen.css({width:this._$stage.width(),height:this._$stage.height()});B.each(this._effects,function(ab,ac){ac.resize(Z)});this._$items.each(function(){if(B(this).data("ready")){var ab=B(this).find(">img.br-main-img");ab.css({top:Math.round(Z*ab.data("top")),left:Math.round(Z*ab.data("left")),width:Math.round(Z*ab.data("width")),height:Math.round(Z*ab.data("height"))})}});this._$layers.each(function(){var ac=B(this).data(),ab={};if(!isNaN(ac.width)){ab.width=Math.ceil(Z*ac.width)+"px"}if(!isNaN(ac.height)){ab.height=Math.ceil(Z*ac.height)+"px"}B(this).css({paddingTop:Math.round(Z*ac.padTop)+"px",paddingBottom:Math.round(Z*ac.padBottom)+"px",paddingLeft:Math.round(Z*ac.padLeft)+"px",paddingRight:Math.round(Z*ac.padRight)+"px",borderTopWidth:Math.round(Z*ac.borderTop)+"px",borderBottomWidth:Math.round(Z*ac.borderBottom)+"px",borderLeftWidth:Math.round(Z*ac.borderLeft)+"px",borderRightWidth:Math.round(Z*ac.borderRight)+"px",fontSize:Math.floor(Z*ac.fontSize)+"px",lineHeight:Math.floor(Z*ac.lineHeight)+"px"}).css(ab)});this._$rotator.trigger(b);var aa=this._$items.eq(this._currIndex);if(aa.data("ready")){this._$items.css({visibility:"hidden"});aa.css({visibility:"visible"});this.displayLayers();this.startTimer()}}},getEffect:function(Z){if(!this._cssTransform){if(-10)}function m(ag){var ae=["Webkit","Moz","O","ms"],ad=document.body||document.documentElement,ab=ad.style,aa=false;if(typeof ab[ag]!=="undefined"){aa=ag}else{var ac=ag.charAt(0).toUpperCase()+ag.slice(1);for(var Z=0;Z-1){if(typeof Z==="undefined"||parseFloat(ab.slice(aa+8))<=Z){return true}}return false}function J(){var aa=navigator.userAgent;var Z=aa.indexOf("Chrome");return(Z>-1)}function p(Z){var ac=Z.length;while(--ac>0){var aa=Math.floor(Math.random()*(ac+1)),ab=Z[ac];Z[ac]=Z[aa];Z[aa]=ab}}B.fn.copyBorder=function(ac){var ab=["top","bottom","left","right"],aa=["width","style","color"],Z=["borderRadiusTopLeft","borderRadiusTopRight","borderRadiusBottomLeft","borderRadiusBottomRight"];return this.each(function(){for(var af=0;af').parent().wrap('
    ');this.isAuto?this.o.pauseButton&&(this.$list.parent().parent().prepend('
    '),this.o.pauseOnHover=!1):this.$list.parent().parent().prepend('
    ').prepend('
    '); if(1").parent().addClass("simply-scroll-list"),this.isHorizontal?this.$list.children().css({"float":"left",width:e+"px"}):this.$list.children().css({height:e+"px"}))}this.o.startOnLoad?c(j).load(function(){g.init()}):this.init()};c.simplyScroll.fn= c.simplyScroll.prototype={};c.simplyScroll.fn.extend=c.simplyScroll.extend=c.extend;c.simplyScroll.fn.extend({init:function(){this.$items=this.$list.children();this.$clip=this.$list.parent();this.$container=this.$clip.parent();this.$btnBack=c(".simply-scroll-back",this.$container);this.$btnForward=c(".simply-scroll-forward",this.$container);this.isHorizontal?(this.itemMax=this.$items.eq(0).outerWidth(!0),this.clipMax=this.$clip.width(),this.dimension="width",this.moveBackClass="simply-scroll-btn-left", this.moveForwardClass="simply-scroll-btn-right",this.scrollPos="Left"):(this.itemMax=this.$items.eq(0).outerHeight(!0),this.clipMax=this.$clip.height(),this.dimension="height",this.moveBackClass="simply-scroll-btn-up",this.moveForwardClass="simply-scroll-btn-down",this.scrollPos="Top");this.posMin=0;this.posMax=this.$items.length*this.itemMax;var a=Math.ceil(this.clipMax/this.itemMax);if(this.isAuto&&"loop"==this.o.autoMode)this.$list.css(this.dimension,this.posMax+this.itemMax*a+"px"),this.posMax+= this.clipMax-this.o.speed,this.isForwards?(this.$items.slice(0,a).clone(!0).appendTo(this.$list),this.resetPosition=0):(this.$items.slice(-a).clone(!0).prependTo(this.$list),this.resetPosition=this.$items.length*this.itemMax,this.isRTL&&(this.$clip[0].dir="ltr",this.$items.css("float","right")));else if(!this.isAuto&&"loop"==this.o.manualMode){this.posMax+=this.itemMax*a;this.$list.css(this.dimension,this.posMax+this.itemMax*a+"px");this.posMax+=this.clipMax-this.o.speed;this.$items.slice(0,a).clone(!0).appendTo(this.$list); this.$items.slice(-a).clone(!0).prependTo(this.$list);this.resetPositionForwards=this.resetPosition=a*this.itemMax;this.resetPositionBackwards=this.$items.length*this.itemMax;var b=this;this.$btnBack.bind(this.events.start,function(){b.isForwards=false;b.resetPosition=b.resetPositionBackwards});this.$btnForward.bind(this.events.start,function(){b.isForwards=true;b.resetPosition=b.resetPositionForwards})}else this.$list.css(this.dimension,this.posMax+"px"),this.isForwards?this.resetPosition=0:(this.resetPosition= this.$items.length*this.itemMax,this.isRTL&&(this.$clip[0].dir="ltr",this.$items.css("float","right")));this.resetPos();this.interval=null;this.intervalDelay=Math.floor(1E3/this.o.frameRate);if(this.isAuto||"end"!=this.o.manualMode)for(;0!==this.itemMax%this.o.speed;)if(this.o.speed--,0===this.o.speed){this.o.speed=1;break}b=this;this.trigger=null;this.funcMoveBack=function(a){a!==i&&a.preventDefault();b.trigger=!b.isAuto&&b.o.manualMode=="end"?this:null;b.isAuto?b.isForwards?b.moveBack():b.moveForward(): b.moveBack()};this.funcMoveForward=function(a){a!==i&&a.preventDefault();b.trigger=!b.isAuto&&b.o.manualMode=="end"?this:null;b.isAuto?b.isForwards?b.moveForward():b.moveBack():b.moveForward()};this.funcMovePause=function(){b.movePause()};this.funcMoveStop=function(){b.moveStop()};this.funcMoveResume=function(){b.moveResume()};if(this.isAuto){this.paused=!1;var g=function(){if(b.paused===false){b.paused=true;b.funcMovePause()}else{b.paused=false;b.funcMoveResume()}return b.paused};this.supportsTouch&& this.$items.find("a").length&&(this.supportsTouch=!1);if(this.isAuto&&this.o.pauseOnHover&&!this.supportsTouch)this.$clip.bind(this.events.start,this.funcMovePause).bind(this.events.end,this.funcMoveResume);else if(this.isAuto&&this.o.pauseOnTouch&&!this.o.pauseButton&&this.supportsTouch){var d,f;this.$clip.bind(this.events.start,function(a){g();var c=a.originalEvent.touches[0];d=b.isHorizontal?c.pageX:c.pageY;f=b.$clip[0]["scroll"+b.scrollPos];a.stopPropagation();a.preventDefault()}).bind(this.events.move, function(a){a.stopPropagation();a.preventDefault();a=a.originalEvent.touches[0];a=d-(b.isHorizontal?a.pageX:a.pageY)+f;if(a<0)a=0;else if(a>b.posMax)a=b.posMax;b.$clip[0]["scroll"+b.scrollPos]=a;b.funcMovePause();b.paused=true})}else this.o.pauseButton&&(this.$btnPause=c(".simply-scroll-btn-pause",this.$container).bind("click",function(a){a.preventDefault();g()?c(this).addClass("active"):c(this).removeClass("active")}));this.funcMoveForward()}else this.$btnBack.addClass("simply-scroll-btn "+this.moveBackClass).bind(this.events.start, this.funcMoveBack).bind(this.events.end,this.funcMoveStop),this.$btnForward.addClass("simply-scroll-btn "+this.moveForwardClass).bind(this.events.start,this.funcMoveForward).bind(this.events.end,this.funcMoveStop),"end"==this.o.manualMode&&(!this.isRTL?this.$btnBack.addClass("disabled"):this.$btnForward.addClass("disabled"))},moveForward:function(){var a=this;this.movement="forward";null!==this.trigger&&this.$btnBack.removeClass("disabled");a.interval=setInterval(function(){a.$clip[0]["scroll"+a.scrollPos]< a.posMax-a.clipMax?a.$clip[0]["scroll"+a.scrollPos]+=a.o.speed:a.isLoop?a.resetPos():a.moveStop(a.movement)},a.intervalDelay)},moveBack:function(){var a=this;this.movement="back";null!==this.trigger&&this.$btnForward.removeClass("disabled");a.interval=setInterval(function(){a.$clip[0]["scroll"+a.scrollPos]>a.posMin?a.$clip[0]["scroll"+a.scrollPos]-=a.o.speed:a.isLoop?a.resetPos():a.moveStop(a.movement)},a.intervalDelay)},movePause:function(){clearInterval(this.interval)},moveStop:function(a){this.movePause(); null!==this.trigger&&("undefined"!==typeof a&&c(this.trigger).addClass("disabled"),this.trigger=null);this.isAuto&&"bounce"==this.o.autoMode&&("forward"==a?this.moveBack():this.moveForward())},moveResume:function(){"forward"==this.movement?this.moveForward():this.moveBack()},resetPos:function(){this.$clip[0]["scroll"+this.scrollPos]=this.resetPosition}})})(jQuery,window);"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);/* Modernizr 2.6.2 (Custom Build) | MIT & BSD * Build: http://modernizr.com/download/#-cssanimations-csstransitions-touch-shiv-cssclasses-prefixed-teststyles-testprop-testallprops-prefixes-domprefixes-load */ ;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+o.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+p.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n="Webkit Moz O ms",o=n.split(" "),p=n.toLowerCase().split(" "),q={},r={},s={},t=[],u=t.slice,v,w=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:w(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},q.cssanimations=function(){return F("animationName")},q.csstransitions=function(){return F("transition")};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e._domPrefixes=p,e._cssomPrefixes=o,e.testProp=function(a){return D([a])},e.testAllProps=F,e.testStyles=w,e.prefixed=function(a,b,c){return b?F(a,b,c):F(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;fVolver'); this.$back = this.$menu.find( 'li.dl-back' ); }, _initEvents : function() { var self = this; this.$trigger.on( 'click.dlmenu', function() { if( self.open ) { self._closeMenu(); } else { self._openMenu(); } return false; } ); this.$menuitems.on( 'click.dlmenu', function( event ) { event.stopPropagation(); var $item = $(this), $submenu = $item.children( 'ul.dl-submenu' ); if( $submenu.length > 0 ) { var $flyin = $submenu.clone().css( 'opacity', 0 ).insertAfter( self.$menu ), onAnimationEndFn = function() { self.$menu.off( self.animEndEventName ).removeClass( self.options.animationClasses.classout ).addClass( 'dl-subview' ); $item.addClass( 'dl-subviewopen' ).parents( '.dl-subviewopen:first' ).removeClass( 'dl-subviewopen' ).addClass( 'dl-subview' ); $flyin.remove(); }; setTimeout( function() { $flyin.addClass( self.options.animationClasses.classin ); self.$menu.addClass( self.options.animationClasses.classout ); if( self.supportAnimations ) { self.$menu.on( self.animEndEventName, onAnimationEndFn ); } else { onAnimationEndFn.call(); } self.options.onLevelClick( $item, $item.children( 'a:first' ).text() ); } ); return false; } else { self.options.onLinkClick( $item, event ); } } ); this.$back.on( 'click.dlmenu', function( event ) { var $this = $( this ), $submenu = $this.parents( 'ul.dl-submenu:first' ), $item = $submenu.parent(), $flyin = $submenu.clone().insertAfter( self.$menu ); var onAnimationEndFn = function() { self.$menu.off( self.animEndEventName ).removeClass( self.options.animationClasses.classin ); $flyin.remove(); }; setTimeout( function() { $flyin.addClass( self.options.animationClasses.classout ); self.$menu.addClass( self.options.animationClasses.classin ); if( self.supportAnimations ) { self.$menu.on( self.animEndEventName, onAnimationEndFn ); } else { onAnimationEndFn.call(); } $item.removeClass( 'dl-subviewopen' ); var $subview = $this.parents( '.dl-subview:first' ); if( $subview.is( 'li' ) ) { $subview.addClass( 'dl-subviewopen' ); } $subview.removeClass( 'dl-subview' ); } ); return false; } ); }, closeMenu : function() { if( this.open ) { this._closeMenu(); } }, _closeMenu : function() { var self = this, onTransitionEndFn = function() { self.$menu.off( self.transEndEventName ); self._resetMenu(); }; this.$menu.removeClass( 'dl-menuopen' ); this.$menu.addClass( 'dl-menu-toggle' ); this.$trigger.removeClass( 'dl-active' ); if( this.supportTransitions ) { this.$menu.on( this.transEndEventName, onTransitionEndFn ); } else { onTransitionEndFn.call(); } this.open = false; }, openMenu : function() { if( !this.open ) { this._openMenu(); } }, _openMenu : function() { var self = this; // clicking somewhere else makes the menu close $body.off( 'click' ).on( 'click.dlmenu', function() { self._closeMenu() ; } ); this.$menu.addClass( 'dl-menuopen dl-menu-toggle' ).on( this.transEndEventName, function() { $( this ).removeClass( 'dl-menu-toggle' ); } ); this.$trigger.addClass( 'dl-active' ); this.open = true; }, // resets the menu to its original state (first level of options) _resetMenu : function() { this.$menu.removeClass( 'dl-subview' ); this.$menuitems.removeClass( 'dl-subview dl-subviewopen' ); } }; var logError = function( message ) { if ( window.console ) { window.console.error( message ); } }; $.fn.dlmenu = function( options ) { if ( typeof options === 'string' ) { var args = Array.prototype.slice.call( arguments, 1 ); this.each(function() { var instance = $.data( this, 'dlmenu' ); if ( !instance ) { logError( "cannot call methods on dlmenu prior to initialization; " + "attempted to call method '" + options + "'" ); return; } if ( !$.isFunction( instance[options] ) || options.charAt(0) === "_" ) { logError( "no such method '" + options + "' for dlmenu instance" ); return; } instance[ options ].apply( instance, args ); }); } else { this.each(function() { var instance = $.data( this, 'dlmenu' ); if ( instance ) { instance._init(); } else { instance = $.data( this, 'dlmenu', new $.DLMenu( options, this ) ); } }); } return this; }; } )( jQuery, window );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); }var destacados_pag_actual=0; var hrefs_productos=new Array(); var last_tr_orden=""; function eliminar_guardado(producto) { if (window.confirm("¿ Confirmar eliminar producto ?")) { url="/productos/cart/includes/eliminar_guardar_para_despues.php?producto="+producto; crear_script_tag(url,"cart"); } } function orden_ver_mas(id_orden) { var tr=getObj("tr_orden1"+id_orden); if (tr.style.display=="") tr.style.display="none"; else tr.style.display=""; } function select_marca_alt(id_marca,path) { if (id_marca>0) { var url=DIR+"/productos/productos.php?secc=productos&id_marca2="+id_marca+"&path="+path; location.href=url; } } var last_id_superdest=0; var last_label_superdest=""; function get_superdestacados(id,l) { if (last_id_superdest>0) { var o=getObj("option_cat"+last_id_superdest); var link=""+last_label_superdest+""; o.innerHTML=link; } var o=getObj("option_cat"+id); var link=""+l+""; o.innerHTML=link; var o=getObj("nombre_cat_seleccionada"); o.innerHTML=l; last_id_superdest=id; last_label_superdest=l; cargar_url_ayax(DIR+"/productos/resumenes/resumen_para_ayax.php?id_categoria="+id, "cont_superdestacados", "POST", "reset_nav_prods()"); } function reset_nav_prods() { var o=getObj("categorias_combo"); if (o!=null) o.style.display="none"; var o=getObj("combo_cat_super"); if (o!=null) o.className="combocont comboseleccionado"; } function normalizar_nombre_cat(orig) { str = new String(orig); rExp = "/'/g"; rExp = eval(rExp); newS = String("\\u0027"); str = new String(str.replace(rExp, newS)); return str; } function show_list_combo_dinamico() { var o=getObj("categorias_combo"); if (o==null) return; if (o.style.display=="none") o.style.display=""; else o.style.display="none"; } function checkout_cart(id) { var o=getObj("ir_al_final_directo"+id); if (o!=null) { o.value=1; var o=getObj("btn_agregar_cart"+id); if (o!=null) { o.click(); } } } var cont_nombre_atributo_marcas=new Array(); function seleccionar_atributo(grupo,id_attr,prod,indice_atr,label) { var o; for (var i=0;i < atributos.length;i++) { if (atributos[i][0]==grupo) { o=getObj("div_cont_atributo"+grupo+atributos[i][1]); if (o!=null) o.className="item"; } } o=getObj("div_cont_atributo"+grupo+id_attr); if (o!=null) o.className="item seleccionado"; if (grupo==0) { id_atributo1_preseleccionado=id_attr; v=getObj("id_atributo1"+prod); } else { id_atributo2_preseleccionado=id_attr; v=getObj("id_atributo2"+prod); } if (v!=null) v.value=id_attr; i=id_atributo1_preseleccionado+"_"+id_atributo2_preseleccionado; try { vec_precio=precios_atributos[i]; } catch (e) { vec_precio=Array(0,0); } if (typeof vec_precio != "undefined") { precio=""+vec_precio[0]; precio_anterior=""+vec_precio[1]; o=getObj("contenedor_precio_anterior"); if (o!=null) { if (precio_anterior!=precio && precio_anterior > 0 && precio < precio_anterior) { o.style.display=""; } else { o.style.display="none"; } } o=getObj("precio_ent_actual"); if (o!=null) { aux=precio.split(".");e=aux[0];d=aux[1]; getObj("precio_ent_actual").innerHTML=e; getObj("precio_dec_actual").innerHTML=","+d; if (precio!=parseInt(precio)) getObj("precio_dec_actual").style.display=""; else getObj("precio_dec_actual").style.display="none"; } o=getObj("precio_ent_anterior"); if (o!=null) { aux=precio_anterior.split(".");e=aux[0];d=aux[1]; getObj("precio_ent_anterior").innerHTML=e; getObj("precio_dec_anterior").innerHTML=","+d; if (precio_anterior!=parseInt(precio_anterior)) getObj("precio_dec_anterior").style.display=""; else getObj("precio_dec_anterior").style.display="none"; } } o=getObj("atributo_navegacion_alternativa"+grupo); if (o!=null) o.style.display="none"; o=getObj("elemento_sel_atr"+grupo); if (o!=null) o.innerHTML=label; if (typeof cont_nombre_atributo_marcas[grupo] == "undefined") { cont_nombre_atributo_marcas[grupo]=id_attr; } var id_marcacion_anterior=cont_nombre_atributo_marcas[grupo]; var id_marcacion_actual=id_attr; o=getObj("cont_nombre_atributo_"+grupo+"_"+id_marcacion_anterior); if (o!=null) { el=str_replace(o.innerHTML,"",""); el=str_replace(el,"",""); o.innerHTML=el; } o=getObj("cont_nombre_atributo_"+grupo+"_"+id_attr); if (o!=null) { o.innerHTML=""+o.innerHTML+""; } cont_nombre_atributo_marcas[grupo]=id_attr; } function str_replace_on_prods(str, sear, repl) { return str.split(sear).join(repl); } var cant_cart_alt_anterior=1; function set_cant_alt(i,id) { o=getObj("cantidad_"+id); if (o!=null) o.value=i; o=getObj("productos_compra_cantidad_selector"); if (o!=null) o.style.display="none"; o=getObj("cant_seleccionada_alt"); o.innerHTML=i; o=getObj("cant_cart_alt"+cant_cart_alt_anterior); if (o!=null) { el=str_replace(o.innerHTML,"",""); el=str_replace(el,"",""); o.innerHTML=el; } o=getObj("cant_cart_alt"+i); if (o!=null) { o.innerHTML=""+o.innerHTML+""; } cant_cart_alt_anterior=i; } function check_preguntar(form) { if (form.pregunta.value=="") { DHTMLALERT("Ingresa la pregunta."); return false; } form.btnpreguntar.disabled=true; return true; } var colores_seleccionados=new Array(); function set_color_producto_foto(id_producto,id_color) { var img=getObj("img_producto"+id_producto); if (img==null) return; if (typeof array_fotos_colores[id_producto] == "undefined") return; var colores=array_fotos_colores[id_producto]; if (typeof colores[id_color] == "undefined") return; var foto_color=colores[id_color]; var id_foto=foto_color[0]; var ext=foto_color[1] var src=img.src; var last_ocurr=src.lastIndexOf("_"); var new_img=src.substring(0,last_ocurr+1)+id_foto+"."+ext; img.src=new_img; img.srcset=new_img+" 1x,"+new_img+" 2x,"+new_img+" 3x"; colores_seleccionados[id_producto]=id_color; } function nav_prod_masinfo(obj_href,id_producto) { if (typeof colores_seleccionados[id_producto] == "undefined") { return; } var url=obj_href.href; if (url.indexOf("?")==-1) { add_url="?"; } else { add_url="&"; } obj_href.href+=add_url+"selcolor="+colores_seleccionados[id_producto]; return; } function nav_prod_masinfo_button(url,id_producto) { if (typeof colores_seleccionados[id_producto] == "undefined") { location.href=url; return; } if (url.indexOf("?")==-1) { add_url="?"; } else { add_url="&"; } var new_url=url+add_url+"selcolor="+colores_seleccionados[id_producto]; location.href=new_url; return; } function change_pais(id_pais) { var o=getObj("tr_DESTINARIO_id_departamento"); if (o==null) return; if (id_pais==858) var dsp=""; else var dsp="none"; o.style.display=dsp; } function activar_datos_extra(codigo) { var o=getObj("datos_CUY"); if (o!=null) { if (codigo=="CUY") { url="/productos/cart/includes/calc_peso_cuy.php"; crear_script_tag(url,"cartpeso"); } else { o.style.display="none"; } } } var flag_dir_cuy_modificada=false; function cp_cuy_dir(direccion) { var o=getObj("CUY_calle"); if (o==null) return; if (o.value=="" || !flag_dir_cuy_modificada) { o.value=direccion; } } function dir_cuy_modificada() { flag_dir_cuy_modificada=true; } function marcar_pago_envio(contenedor, nom_clase) { if (contenedor.split("_").length==1) return; var nom_contenedor = contenedor.split("_")[0]; var id_contenedor = parseInt(contenedor.split("_")[1]); for (var i=0;i<200;i++) { if (getObj(nom_contenedor+"_"+i)!=null) { aplicar_quitar_clase(nom_contenedor+"_"+i, nom_clase, 1); } } aplicar_quitar_clase(contenedor,nom_clase); if (nom_contenedor=="pago") { if(getObj("formadepago"+id_contenedor) && !getObj("formadepago"+id_contenedor).checked) getObj("formadepago"+id_contenedor).click(); } if (nom_contenedor=="envio") { if(getObj("formadeenvio"+id_contenedor) && !getObj("formadeenvio"+id_contenedor).checked) getObj("formadeenvio"+id_contenedor).click(); } }$(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}, 600); return false; }); }); function scrollToAnchor(aid) { var aTag = $("a[name='"+ aid +"']"); $('html,body').animate({scrollTop: aTag.offset().top},'slow'); } $(window).scroll(function () { if ($(this).scrollTop() > 50) { $('ul.cssmenu').addClass("scroll_activo"); } else { $('ul.cssmenu').removeClass("scroll_activo"); } if ($(this).scrollTop() > 1) { $('div.gencont1').addClass("gencont1_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'; var id2 = '#banner_super_mask'; $('#banner_super_mask').fadeIn(0); $('#banner_super_mask').fadeTo("slow",0.5); var winH = $(window).height(); var winW = $(window).width(); $(id).css('bottom', winH/2-$(id).height()/2); $(id).css('right', winW/2-$(id).width()/2); $(id).fadeIn(500); var cerre_popup = false; $('.bs_window .bs_close').click(function(e){ e.preventDefault(); $(id2).hide(); aplicar_quitar_clase('bs_dialog','bs_window_off'); cerre_popup = true; }); $('#banner_super_mask').click(function(){ $(this).hide(); aplicar_quitar_clase('bs_dialog','bs_window_off'); cerre_popup = true; }); setTimeout(function(){ if ( !cerre_popup ) { $('#banner_super_mask').fadeTo("slow",0.25); } aplicar_quitar_clase('bs_dialog','bs_window_on'); }, 5000); setTimeout(function(){ if ( !cerre_popup ) { $('#banner_super_mask').hide(); aplicar_quitar_clase('bs_dialog','bs_window_off'); cerre_popup = true; } }, 20000); }); } $( window ).resize(function(){ var id = '#bs_dialog'; var winH = $(window).height(); var winW = $(window).width(); $(id).css('bottom', winH/2-$(id).height()/2); $(id).css('right', winW/2-$(id).width()/2); }); $('div.olvideclave').click(function(){ alert('a'); }); jQuery(document).ready(function() { jQuery('.prod_item').addClass("hidden").viewportChecker({ classToAdd:'visible animated bounceInRight', offset:50 }); jQuery('.gencont2').addClass("hidden").viewportChecker({ classToAdd:'visible animated fadeIn', offset:50 }); });