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 main_url = "https://megacaseuycom.sublimesolutions.com"; var main_url_https = "https://megacaseuycom.sublimesolutions.com"; var arr_no_autocomplete_off="frm_login";var imgs_lang="/artworks/es"; var lang="/artworks/es"; var DIR=""; var DIR_MONSTER_EDITOR=""; var STYLESID="megacaseuy"; var imgs="/artworks"; var url_tobookmark="MEGA CASE"; var id_idioma="1"; var lbl_cargando="
Cargando...
"; var lbl_cargando_ico=""; var lbl_buscando="Buscar..."; var lbl_sin_resultados="No se encontraron resultados."; var LBL_JS_BUSCADOR='Buscar...'; var class_plus="fa fa-angle-down"; var class_minus="fa fa-angle-up"; function ocultar_continuar() { o=getObj("cart3_continuar_compra_but_continuar"); if (o!=null) o.style.display="none"; } function mostrar_continuar() { o=getObj("cart3_continuar_compra_but_continuar"); if (o!=null) o.style.display=""; } function delCart3Session(key) { if (typeof(Storage) !== "undefined") { localStorage.removeItem(key); } else { document.cookie = key + "=; expires==Thu, 01 Jan 1970 00:00:00 UTC; path=/"; } } function getCart3Session(key) { if (typeof(Storage) !== "undefined") { return localStorage.getItem(key); } else { return getCookie(key); } } function setCart3Session(key, value) { if (typeof(Storage) !== "undefined") { localStorage.setItem(key, value); } else { document.cookie = key + "=" + value +"; expires=Sun, 09 Nov 2025 00:00:00 -0300; path=/"; } } function getCookie(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function locate_country(o,id_producto) { var url="/productos/ordenes3/scripts/locate_country.php?id_pais="+o.value+"&id_producto="+id_producto; mostrarcargando(); crear_script_tag(url,"locate_country"); } function addcombo(id_combo) { frm=getObj("combo"+id_combo); DHTMLALERT(""); if (frm==null) return; mostrarcargando(); frm.submit(); } function addproducto(id_producto) { frm=getObj("frmaddcart"+id_producto); DHTMLALERT(""); if (frm==null) return; mostrarcargando(); frm.submit(); } 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,obligatorios_otros,nroform) { if (typeof obligatorios_otros != "undefined") { campos_chequeo=obligatorios_otros; } else { campos_chequeo=obligatorios; } if (typeof nroform == "undefined") { nroform=''; } var campo,mensaje,valor; for (var i=0;i < campos_chequeo.length;i=i+2) { campo=campos_chequeo[i]; mensaje=campos_chequeo[i+1]; if (campo=="acepto_politicas") { o=getObj("acepto_politicas"); if (o!=null && o.checked==false) { DHTMLALERT(mensaje); obj_focus=o; foco_anterior=o; return false; } } else if (campo=="id_zona_usuario") { o=getObj("id_zona_usuario"); if (o.value=="0") { DHTMLALERT(mensaje); obj_focus=o; foco_anterior=o; 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=false; } 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); o=eval("form."+campo+"_dia"); obj_focus=o; foco_anterior=o; return false; } } else { DHTMLALERT(mensaje); o=eval("form."+campo+"_mes"); obj_focus=o; foco_anterior=o; 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); foco_anterior=obj_focus; return false; } if (valor!=clave_confirm) { DHTMLALERT(mensaje_extra); obj_focus=eval("form."+campo); foco_anterior=obj_focus; return false; } } else if (campo=="email") { 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; foco_anterior=obj_focus; return false; } } else { if (valor=="") { DHTMLALERT(mensaje); obj_focus=eval("form."+campo); foco_anterior=obj_focus; return false; } } } } } var o=getObj("btn_submit"+nroform); if (o!=null) {o.disabled=true;} return true; } var buscador_tocado=false; function validar_buscador(form) { if (!buscador_tocado) { DHTMLALERT("Ingresa un texto a buscar."); return false; } var o=form.buscar.value; if (o.length < 2) { DHTMLALERT("Ingresa un texto a buscar."); return false; } return true; } function enfocar_buscador() { getObj('frm_buscador').buscar.focus(); aplicar_quitar_clase('buscador','buscar_on'); } 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]; if (tiny_nombre!=null) { if (tiny_nombre.value.trim()=="") { DHTMLALERT("Indica 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 validar_testimoniar(form) { var tipo_testimonio_reg=getObj("tipo_testimonio_reg"); var calif=getObj("count").innerHTML; var eval_calificacion=getObj("calificacion1"); if (eval_calificacion.value==0) { if (tipo_testimonio_reg.value==2) { if (form.nombres.value=="") {DHTMLALERT("Indica tu nombre.");form.nombres.focus();return false;} m="Dirección de email incorrecta o no válida.|Los emails no coinciden.".split("|"); if (form.email.value.indexOf('@') < 0 || form.email.value.indexOf('.') < 0 || form.email.value.indexOf(',') > 0) {DHTMLALERT(m[0]);form.email.focus();return false;} } var texto_testimonio=form.texto_testimonio.value; if (texto_testimonio.trim()=="") { DHTMLALERT("Ingresa tu opinión."); form.texto_testimonio.focus(); return false; } } else { if (tipo_testimonio_reg.value==2) { if (form.nombres.value=="") {DHTMLALERT("Indica tu nombre.");form.nombres.focus();return false;} m="Dirección de email incorrecta o no válida.|Los emails no coinciden.".split("|"); if (form.email.value.indexOf('@') < 0 || form.email.value.indexOf('.') < 0 || form.email.value.indexOf(',') > 0) { DHTMLALERT(m[0]);form.email.focus();return false;} } o=getObj("calificacion1"); if (o.value=="") { DHTMLALERT("Selecciona la calificación.");return false; } } var o=getObj("btnsubmit_rec2"); o.disabled=true; return true; } function mostrarcargando() { var o = getObj("cargando_dinamico"); if (o==null) return; o.className='cargando_dinamico cargando_dinamico_on'; } function cerrarcargando() { var o = getObj("cargando_dinamico"); if (o==null) return; o.className='cargando_dinamico'; } 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; } var o=getObj("btn_login_submit"); if (o!=null) o.disabled="disabled"; var o=getObj("login_loader"); if (o!=null) o.style.display=""; 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('Indica el email del destinatario.');form.tuemail.focus();return false;} } else { if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) {alert('Indica el email del destinatario.');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 = 50473; 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) { if (typeof(Storage) !== "undefined") { uuid=localStorage.getItem("sessioncart"); } else { uuid=""; var name = "sessioncart" + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { uuid=c.substring(name.length, c.length); } } } var url="/usuarios/scripts/agregar_a_favoritos.php?id_objeto="+id_objeto+"&tipo_objeto="+tipo_objeto_favorito+"&uuid="+uuid; crear_script_tag(url,"fav"); } function remove_from_fav(id_fav) { if (window.confirm("żQuitar de favoritos?")) { var url="/usuarios/scripts/remove_favoritos.php?id_fav="+id_fav; crear_script_tag(url,"fav"); } } function $$asp( objId ) { var o = document.getElementById( objId ); if ( o == null ) return; var n_obj = document.createElement("INPUT"); n_obj.name = o.name + "_hidden_asp"; n_obj.id = o.name + "_hidden_asp"; n_obj.type = "hidden"; o.form.appendChild( n_obj ); o.onblur = function ( e ) { n_obj.value = o.value; }; o.onkeyup = function ( e ) { n_obj.value = o.value; }; o.onchange = function () { n_obj.value = o.value; }; o.onmousedown = function () { n_obj.value = o.value; }; } function cambiar_src(id,img) { var o=getObj("prodzoom"+id); if ( o!=null && o.src.indexOf("")!=-1 ) o.src=img; } function disable_autocomplete() { if (typeof intAutocomplete != "undefined") { clearInterval(intAutocomplete); intAutocomplete = -1; } if (typeof arr_no_autocomplete_off != "undefined") { var vec_no_autocomplete_off = arr_no_autocomplete_off.split(","); for (var j=0;j < vec_no_autocomplete_off.length;j++) { vec_no_autocomplete_off[vec_no_autocomplete_off[j]]=vec_no_autocomplete_off[j]; } } else { vec_no_autocomplete_off=new Array(); } var forms = document.getElementsByTagName("form"); for (var i=0;i < forms.length;i++) { if (forms[i].id!="frmorden" && (!vec_no_autocomplete_off[forms[i].id] || vec_no_autocomplete_off[forms[i].id]==undefined)) { forms[i].setAttribute("autocomplete","off"); var elementos=forms[i].getElementsByTagName("INPUT"); for (e=0;e < elementos.length; e++) { if (elementos[e]!=null && elementos[e].type=="text") { elementos[e].autocomplete = 'off'; } } } } } function nav_izq_min(){} function nav_der_min(){} function gal_zoom(){} function gal_right_modo1(){} function gal_left_modo1(){} function slideshow_fotos(){} function foto_directo(p){} function change_src(){} function gal_close_zoom_ly_trans() { var o=getObj("gal_zoom"); if (o==null) return; if (o.style.display!="none") { o.style.display="none"; o=getObj("ly_transparente"); if (o.style.display!="none") o.style.display="none"; } } function debe_registrarse() { DHTMLALERT("

Para usar esta función ingresa como usuario.

"); } 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"); } var foto_change_in=false; function change_foto_prod_in(obj,version,foto1,filename1,foto2,filename2) { if (foto_change_in) return; foto_change_in=true; var foto="/imgs/productos/productos"+version+"_"+foto2+"."+filename2; obj.src=foto; obj.srcset=foto; } function change_foto_prod_out(obj,version,foto1,filename1,foto2,filename2) { var foto="/imgs/productos/productos"+version+"_"+foto1+"."+filename1; obj.src=foto; obj.srcset=foto; foto_change_in=false; } function posicionar_mapa_sucursal(lat, lon) { location.href = str_replace(location.href,"#sucursales_mapa","")+"#sucursales_mapa"; map_suc.setCenter(new google.maps.LatLng(lat,lon)); map_suc.setZoom(15); } 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 < aux.length;i++) { v=aux[i].split("="); if (v[0]!="popup") { if (n!="") {n+="&";} if (v.length==1) { n+=v[0]; } else { n+=v[0]+"="+v[1]; } } } if (n=="") {dir+="?"+n;} else {dir+="?"+n+"&";} } return dir; } function calcular_ancho_alto_zoom(w, h, ancho_ventana, alto_ventana, ratio) { if (ratio > 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 { location.href=u; } catch (error) { location.href=u; } } function activar_free_shipping() { } function ver_telefono_proyecto(contenedor,tel) { aplicar_quitar_clase('telcont'+'_'+contenedor,'telcont_on'); force_undisplay('tellog'+'_'+contenedor); crear_script_tag('/includes/reg_ga_tel_click.php?tel='+tel,'ga_click'); } function sa(id) { if (document.getElementById(id)!=null) { document.getElementById(id).focus(); document.getElementById(id).select(); } } function end_contacto() { o=getObj("iframecontacto"); if (o!=null) o.src=""; location.href="/msgs/contacto_ok.php"; } var mini_form_focus=null; var timer_form_minifocus=-1; function mostrar_mini_contacto(nro_contacto) { if (nro_contacto=="") return; if (nro_contacto==1 || nro_contacto==10) nro_contacto_val=""; else nro_contacto_val=nro_contacto; aplicar_quitar_clase('contacto_mini'+nro_contacto,'contacto'+nro_contacto_val+'_mini_activo'); aplicar_quitar_clase('minicontacto'+nro_contacto_val+'_but'+nro_contacto,'minicontacto'+nro_contacto_val+'_but_on'); o=getObj("contacto_mini_nombres"+nro_contacto); if (o!=null) { mini_form_focus=o; timer_form_minifocus = setInterval(set_focus_miniform, 1000); } } function set_focus_miniform() { clearInterval(timer_form_minifocus); timer_form_minifocus = -1; mini_form_focus.focus(); } function llamar_panel_opciones() { display_undisplay('bienvenida_overlay'); display_undisplay('panel_opciones',2); } function go_paso1_compra() { var url="/productos/includes/check_minimo_compra.php"; crear_script_tag(url,"check_minimo_compra"); } function cargar_url_externa(url,nombre,link) { if (url==undefined || url=="") return; var div_cont_iframe = getObj("ly_iframe_container"); if (div_cont_iframe==null) return; var iframe = getObj("iframe_contenido_externo"); if (iframe.src!=undefined) { mostrarcargando(); div_cont_iframe.style.display=""; activar_layer_transparente("ly_transparente",CERRAR_IFRAME_PROD_URL_EXTERNA); iframe.src = url; cerrarcargando(); return; } if (div_cont_iframe.style.display=="") { div_cont_iframe.style.display="none"; if (getObj("ly_transparente").style.display!="none") { activar_layer_transparente("ly_transparente",CERRAR_IFRAME_PROD_URL_EXTERNA); alert('cerrarcargando'); cerrarcargando(); } } else { div_cont_iframe.style.display=""; activar_layer_transparente("ly_transparente",CERRAR_IFRAME_PROD_URL_EXTERNA); alert('mostrarcargando'); mostrarcargando(); } var o=getObj("item_url_externa_nombre"); var b=getObj("item_url_externa_link"); if (typeof nombre != "string") nombre=""; if (typeof link != "string") link=""; if (o!=null) o.innerHTML=nombre; if (b!=null) b.href=link; if (iframe.src!=undefined) iframe.src = url; return; } function CERRAR_IFRAME_PROD_URL_EXTERNA() { var div_cont_iframe = getObj("ly_iframe_container"); if (div_cont_iframe==null) return; div_cont_iframe.style.display="none"; activar_layer_transparente("ly_transparente",CERRAR_IFRAME_PROD_URL_EXTERNA); } function isFullScreen() { return (document.fullScreenElement && document.fullScreenElement !== null) || document.mozFullScreen || document.webkitIsFullScreen; } function requestFullScreen(element) { if (element.requestFullscreen) element.requestFullscreen(); else if (element.msRequestFullscreen) element.msRequestFullscreen(); else if (element.mozRequestFullScreen) element.mozRequestFullScreen(); else if (element.webkitRequestFullscreen) element.webkitRequestFullscreen(); } function exitFullScreen() { if (document.exitFullscreen) document.exitFullscreen(); else if (document.msExitFullscreen) document.msExitFullscreen(); else if (document.mozCancelFullScreen) document.mozCancelFullScreen(); else if (document.webkitExitFullscreen) document.webkitExitFullscreen(); } function toggleFullScreen(element) { if (isFullScreen()) exitFullScreen(); else requestFullScreen(element || document.documentElement); } function guardar_busqueda() { var url="/propiedades/includes/guardar_busqueda.php"; crear_script_tag(url,"guardar_busqueda"); }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) { var objeto; 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 != "" ) objeto.className += " "; objeto.className += clase; } } } function agregar_clase_objeto(obj,clase) { var objeto; if ( typeof(obj) != "object" ) objeto=getObj(obj); else objeto = obj; if ( objeto != null && objeto.className != undefined ) { if ( objeto.className.indexOf(clase) == -1 ) objeto.className += " " + clase; } } function quitar_clase_objeto(obj,clase) { var objeto; 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 aplicar_clase_tipo_vista(modo, f_forzar ) { var elemento1=getObj("vista_producto1"); var elemento2=getObj("vista_producto2"); if (elemento1==null || elemento2==null) return; switch(modo) { case 1: elemento1.className="orden_asc"; elemento2.className="orden_off"; quitar_clase_objeto('resultado_productos','prod_var1'); break; case 2: elemento1.className="orden_off"; elemento2.className="orden_asc"; aplicar_clase_objeto('resultado_productos','prod_var1',1); break; } set_vista_productos(modo, f_forzar); } 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 aplicar_clase_objeto(obj,clase,sin_repetir) { if (typeof(obj) != "object") objeto=getObj(obj); else objeto = obj; if (objeto!=null && objeto.className!=undefined) { if (sin_repetir) { objeto.className = objeto.className.split(clase).join(""); objeto.className = objeto.className.split(" ").join(""); if ( objeto.className.indexOf(clase)!=-1) return; } if ( objeto.className != "" ) { objeto.className += " "; } objeto.className += clase; } } 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"; } var focused = null; // salvado al abrir el DHTMLALERT var salvo_document_onkeydown = null; // salvado al abrir el DHTMLALERT var foco_anterior = null; // cargado A MANO antes de abrir el DHTMLALERT var dhtml_alert_params = {}; // parametros pasados al ultimo DHTMLALERT abierto function DHTMLALERT( msg, focus_obj, params, noclose ) { if ( msg == undefined ) msg = ""; if ( params == undefined ) params = {}; if ( noclose == undefined ) noclose = false; var dalert_msg = getObj("dhtml_alert_MSG"); var titulo = getObj("dhtml_alert_title"); // --------------------------------------------------------------- // cerrar dialogo: si se paso mensaje vacio o no se incluyo el objeto en el arbol if ( msg == "" || ! dalert_msg ) { // si hay que // cerrar el dialogo usar los parametros actuales cerrado_dhtmlalert( dalert_msg ); return; } // --------------------------------------------------------------- // hay que abrir un nuevo dialogo // cancelo timer del dialogo anterior, si lo habia if ( dhtml_alert_params.ocultar_timer_id ) { clearInterval( params.ocultar_timer_id ); params.ocultar_timer_id = undefined; } // de aca en adelante construyo nuevo dialogo dhtml_alert_params = params; // muestro mensaje dalert_msg.innerHTML = msg; if ( params.titulo != undefined && titulo != null ) { titulo.innerHTML = params.titulo; } else { titulo.innerHTML = " "; } // oculto titulo si corrsponde if ( params.ocultar_titulo ) agregar_clase_objeto( 'dhtml_alert', 'dhtml_alert_3' ); // muestro dialogo agregar_clase_objeto( 'dhtml_alert', 'dhtml_alert_on' ); if (noclose) { activar_layer_transparente( 'ly_transparente' ); getObj("btn_cerrar_dhmlalert").onclick = function() { return; } o=getObj("cont_close_dhtmlalert"); if (o!=null) o.style.display="none"; } else { activar_layer_transparente( 'ly_transparente', cerrar_dhtmlalert ); getObj("btn_cerrar_dhmlalert").onclick = function() { cerrar_dhtmlalert(); } o=getObj("cont_close_dhtmlalert"); if (o!=null) o.style.display=""; } // hay que enfocar algo que paso el usuario ? var o = focus_obj == undefined ? getObj( "btn_cerrar_dhmlalert" ) // no -> enfocar el boton de cerrar : getObj( focus_obj ); // si -> enfocar lo que paso if ( o != null ) o.focus(); // pongo funcion que espera escape salvo_document_onkeydown = document.onkeydown; document.onkeydown = cerrar_dhtmlalert_esc; // programo timer para que se oculte dialogo automaticamente si corresponde if ( params.ocultar_en_ms ) params.ocultar_timer_id = setInterval( cerrar_dhtmlalert, params.ocultar_en_ms ); } function cerrar_dhtmlalert_esc(e) { e = e || window.event; if ( e.keyCode == 27 ) { e.preventDefault(); // llamo directo, hay que // cerrar el dialogo usar los parametros actuales cerrado_dhtmlalert(); } } function cerrar_dhtmlalert() { // en lugar de llamar a la funcion de abrir sin parametros //DHTMLALERT(); // llamo directo, hay que // cerrar el dialogo usar los parametros actuales cerrado_dhtmlalert(); } function cerrado_dhtmlalert( dalert_msg ) { // remuevo funcion que espera escape document.onkeydown = salvo_document_onkeydown; salvo_document_onkeydown = null; // cancelo timer if ( dhtml_alert_params.ocultar_timer_id ) { clearInterval( dhtml_alert_params.ocultar_timer_id ); dhtml_alert_params.ocultar_timer_id = undefined; } // oculto dialogo if ( ! dalert_msg ) dalert_msg = getObj("dhtml_alert_MSG"); if ( dalert_msg ) { dalert_msg.innerHTML = ""; if ( getObj("ly_transparente").style.display != "none" ) { aplicar_quitar_clase( 'dhtml_alert', 'dhtml_alert_on' ); activar_layer_transparente( 'ly_transparente', cerrar_dhtmlalert ); } } // enfoco lo que estaba antes if ( foco_anterior != null ) { foco_anterior.focus(); foco_anterior = null; } // notifico que se cerro el dialogo if ( dhtml_alert_params.fnc_cerrar ) dhtml_alert_params.fnc_cerrar.call(); // limpio parametros para la proxima dhtml_alert_params = {}; } function activar_layer_transparente(id_obj,addfunction) { var obj=getObj(id_obj); if (obj==null) return; if (obj.className!="u") { obj.className="u"; 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.className="block"; } } 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"); if (obj.className.indexOf("dhtml_alert_on")!=-1) { activar_layer_transparente("ly_transparente",recomendar_web); aplicar_quitar_clase('recomendar','dhtml_alert_on'); } else { activar_layer_transparente("ly_transparente",recomendar_web); aplicar_quitar_clase('recomendar','dhtml_alert_on'); o=getObj("form_recomendar").tuemail; if (o!=null) { o.focus(); } else { o=getObj("form_recomendar").tuemail; if (o!=null) o.focus(); } } } var clases_visibles = []; function desocultar_ids(id_clase,visible_defecto) { if(clases_visibles[id_clase]==undefined)clases_visibles[id_clase]=visible_defecto; clases_visibles[id_clase]=!clases_visibles[id_clase]; if(clases_visibles[id_clase]) $("."+id_clase).show(); else $("."+id_clase).hide(); } var ALTO_CABECERA = 350; $(document).ready(function () { $(document).on("scroll", onScroll); $('#ly_menu_b span').removeClass('menuactivo'); onScroll( null ); $('#ly_menu_b a[href^="#"]').on('click', function (e) { e.preventDefault(); $(document).off("scroll"); var ps = window.location.href.split("#"); var url = ps[0]; if ( url.endsWith("/") ) url = url.substr( 0, url.length - 1 ); if ( e.currentTarget.hash != null && e.currentTarget.hash != "" && e.currentTarget.hash != "#" && url != main_url && url != main_url_https ) { url = (url.startsWith("https:") ? main_url_https : main_url ) + e.currentTarget.hash; window.location.href = url; return; } $('a').each(function () { $(this).removeClass('menuactivo'); }) $(this).addClass('menuactivo'); var target = this.hash; window.location.hash = target; $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top-ALTO_CABECERA }, 500, 'swing', function () { $(document).on("scroll", onScroll); }); }); }); function onScroll(event) { var scrollPos = $(document).scrollTop(); var activar = null; $('#ly_menu_b a').each( function () { var currLink = $(this); var href = currLink.attr("href"); if ( href == undefined || href == "" || href.substr(0,1) != "#" ) return; var refElement = $(href); var ref_pos = refElement.position(); if ( ! ref_pos ) { return; } if ( refElement.position().top-ALTO_CABECERA <= scrollPos && scrollPos <= refElement.position().top + refElement.height() ) activar = currLink; } ); if ( activar ) { $('#ly_menu_b a').each(function () { var currLink = $(this); currLink.removeClass("menuactivo"); } ); activar.addClass("menuactivo"); } }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(""); for (var i=1;i<20;i++) { tab_actual=getObj(tab_name+"_"+i); container_actual=getObj(prefijo+tab_name+"_"+i); if (tab_actual!=null && container_actual!=null) { tab_actual.className="off"; container_actual.style.display="none"; } } tab_actual=getObj(obj_id); container_actual=getObj(prefijo+obj_id); tab_actual.className="active"; container_actual.style.display=""; }var autoexpandiendo=false; var tipo_categorias=""; var contenidos_categorias_mostrar_items=""; var forzar_navegar_siempre=false; function init_cats() { var pdiv,phref; for (var i=0;i < paths.length;i++) { aux=paths[i].split("."); pdiv=getObj("a"+paths[i]); return_false=false; if (pdiv==null) { return_false=true; 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 (return_false) { 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 (return_false) { 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 plus=getObj("plus"+path); if (plus!=null) { //vascula la clase if (plus.className==class_plus) { plus.className=class_minus; } else { plus.className=class_plus; } } var aux=path.split("."); o=getObj("l"+path); if (o!=null) last_url_expand=o.href; else last_url_expand=""; var clase_padre="level1"; if (expandidos[path] == undefined || expandidos[path]==0) { expandir_hijos(path); 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; } if (!forzar_navegar_siempre) { contraer_hijos(path); } else { location.href=nav_url; return; } } else { contraer_hijos(path); 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); plus=getObj("plus"+path_actual); if (plus!=null) plus.className=class_plus; 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); plus=getObj("plus"+path_nav); if (plus!=null) plus.className=class_minus; } autoexpandiendo=false; }/* * easy-autocomplete * jQuery plugin for autocompletion * * @author Ċukasz PaweĊ‚czak (http://github.com/pawelczak) * @version 1.3.5 * Copyright License: */ var EasyAutocomplete=function(a){return a.Configuration=function(a){function b(){if("xml"===a.dataType&&(a.getValue||(a.getValue=function(a){return $(a).text()}),a.list||(a.list={}),a.list.sort||(a.list.sort={}),a.list.sort.method=function(b,c){return b=a.getValue(b),c=a.getValue(c),c>b?-1:b>c?1:0},a.list.match||(a.list.match={}),a.list.match.method=function(a,b){return a.search(b)>-1}),void 0!==a.categories&&a.categories instanceof Array){for(var b=[],c=0,d=a.categories.length;d>c;c+=1){var e=a.categories[c];for(var f in h.categories[0])void 0===e[f]&&(e[f]=h.categories[0][f]);b.push(e)}a.categories=b}}function c(){function b(a,c){var d=a||{};for(var e in a)void 0!==c[e]&&null!==c[e]&&("object"!=typeof c[e]||c[e]instanceof Array?d[e]=c[e]:b(a[e],c[e]));return void 0!==c.data&&null!==c.data&&"object"==typeof c.data&&(d.data=c.data),d}h=b(h,a)}function d(){if("list-required"!==h.url&&"function"!=typeof h.url){var b=h.url;h.url=function(){return b}}if(void 0!==h.ajaxSettings.url&&"function"!=typeof h.ajaxSettings.url){var b=h.ajaxSettings.url;h.ajaxSettings.url=function(){return b}}if("string"==typeof h.listLocation){var c=h.listLocation;"XML"===h.dataType.toUpperCase()?h.listLocation=function(a){return $(a).find(c)}:h.listLocation=function(a){return a[c]}}if("string"==typeof h.getValue){var d=h.getValue;h.getValue=function(a){return a[d]}}void 0!==a.categories&&(h.categoriesAssigned=!0)}function e(){void 0!==a.ajaxSettings&&"object"==typeof a.ajaxSettings?h.ajaxSettings=a.ajaxSettings:h.ajaxSettings={}}function f(a){return void 0!==h[a]&&null!==h[a]}function g(a,b){function c(b,d){for(var e in d)void 0===b[e]&&a.log("Property '"+e+"' does not exist in EasyAutocomplete options API."),"object"==typeof b[e]&&-1===$.inArray(e,i)&&c(b[e],d[e])}c(h,b)}var h={data:"list-required",url:"list-required",dataType:"json",listLocation:function(a){return a},xmlElementName:"",getValue:function(a){return a},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(a,b){return a=h.getValue(a),b=h.getValue(b),b>a?-1:a>b?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(a,b){return a.search(b)>-1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(a,b){return a},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},i=["ajaxSettings","template"];this.get=function(a){return h[a]},this.equals=function(a,b){return!(!f(a)||h[a]!==b)},this.checkDataUrlProperties=function(){return"list-required"!==h.url||"list-required"!==h.data},this.checkRequiredProperties=function(){for(var a in h)if("required"===h[a])return logger.error("Option "+a+" must be defined"),!1;return!0},this.printPropertiesThatDoesntExist=function(a,b){g(a,b)},b(),c(),h.loggerEnabled===!0&&g(console,a),e(),d()},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.Logger=function(){this.error=function(a){console.log("ERROR: "+a)},this.warning=function(a){console.log("WARNING: "+a)}},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.Constans=function(){var a={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(b){return a[b]}},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.ListBuilderService=function(a,b){function c(b,c){function d(){var d,e={};return void 0!==b.xmlElementName&&(e.xmlElementName=b.xmlElementName),void 0!==b.listLocation?d=b.listLocation:void 0!==a.get("listLocation")&&(d=a.get("listLocation")),void 0!==d?"string"==typeof d?e.data=$(c).find(d):"function"==typeof d&&(e.data=d(c)):e.data=c,e}function e(){var a={};return void 0!==b.listLocation?"string"==typeof b.listLocation?a.data=c[b.listLocation]:"function"==typeof b.listLocation&&(a.data=b.listLocation(c)):a.data=c,a}var f={};if(f="XML"===a.get("dataType").toUpperCase()?d():e(),void 0!==b.header&&(f.header=b.header),void 0!==b.maxNumberOfElements&&(f.maxNumberOfElements=b.maxNumberOfElements),void 0!==a.get("list").maxNumberOfElements&&(f.maxListSize=a.get("list").maxNumberOfElements),void 0!==b.getValue)if("string"==typeof b.getValue){var g=b.getValue;f.getValue=function(a){return a[g]}}else"function"==typeof b.getValue&&(f.getValue=b.getValue);else f.getValue=a.get("getValue");return f}function d(b){var c=[];return void 0===b.xmlElementName&&(b.xmlElementName=a.get("xmlElementName")),$(b.data).find(b.xmlElementName).each(function(){c.push(this)}),c}this.init=function(b){var c=[],d={};return d.data=a.get("listLocation")(b),d.getValue=a.get("getValue"),d.maxListSize=a.get("list").maxNumberOfElements,c.push(d),c},this.updateCategories=function(b,d){if(a.get("categoriesAssigned")){b=[];for(var e=0;ee;e+=1)c[e].data=b(a,c[e],d);return c},this.checkIfDataExists=function(a){for(var b=0,c=a.length;c>b;b+=1)if(void 0!==a[b].data&&a[b].data instanceof Array&&a[b].data.length>0)return!0;return!1}},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.proccess=function(b,c,d){function e(a,c){var d=[],e="";if(b.get("list").match.enabled)for(var g=0,h=a.length;h>g;g+=1)e=b.get("getValue")(a[g]),f(e,c)&&d.push(a[g]);else d=a;return d}function f(a,c){return b.get("list").match.caseSensitive||("string"==typeof a&&(a=a.toLowerCase()),c=c.toLowerCase()),!!b.get("list").match.method(a,c)}function g(a){return void 0!==c.maxNumberOfElements&&a.length>c.maxNumberOfElements&&(a=a.slice(0,c.maxNumberOfElements)),a}function h(a){return b.get("list").sort.enabled&&a.sort(b.get("list").sort.method),a}a.proccess.match=f;var i=c.data,j=d;return i=e(i,j),i=g(i),i=h(i)},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.Template=function(a){var b={basic:{type:"basic",method:function(a){return a},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(a){return a+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(a){return a},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(a){return a},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(a){return a},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}},c=function(a){var c,d=a.fields;return"description"===a.type?(c=b.description.method,"string"==typeof d.description?c=function(a,b){return a+" - "+b[d.description]+""}:"function"==typeof d.description&&(c=function(a,b){return a+" - "+d.description(b)+""}),c):"iconRight"===a.type?("string"==typeof d.iconSrc?c=function(a,b){return a+""}:"function"==typeof d.iconSrc&&(c=function(a,b){return a+""}),c):"iconLeft"===a.type?("string"==typeof d.iconSrc?c=function(a,b){return""+a}:"function"==typeof d.iconSrc&&(c=function(a,b){return""+a}),c):"links"===a.type?("string"==typeof d.link?c=function(a,b){return""+a+""}:"function"==typeof d.link&&(c=function(a,b){return""+a+""}),c):"custom"===a.type?a.method:b.basic.method},d=function(a){return a&&a.type&&a.type&&b[a.type]?c(a):b.basic.method},e=function(a){var c=function(){return""};return a&&a.type&&a.type&&b[a.type]?function(){var c=b[a.type].cssClass;return function(){return c}}():c};this.getTemplateClass=e(a),this.build=d(a)},a}(EasyAutocomplete||{}),EasyAutocomplete=function(a){return a.main=function(b,c){function d(){return 0===t.length?void p.error("Input field doesn't exist."):o.checkDataUrlProperties()?o.checkRequiredProperties()?(e(),void g()):void p.error("Will not work without mentioned properties."):void p.error("One of options variables 'data' or 'url' must be defined.")}function e(){function a(){var a=$("
"),c=n.getValue("WRAPPER_CSS_CLASS");o.get("theme")&&""!==o.get("theme")&&(c+=" eac-"+o.get("theme")),o.get("cssClasses")&&""!==o.get("cssClasses")&&(c+=" "+o.get("cssClasses")),""!==q.getTemplateClass()&&(c+=" "+q.getTemplateClass()),a.addClass(c),t.wrap(a),o.get("adjustWidth")===!0&&b()}function b(){var a=t.outerWidth();t.parent().css("width",a)}function c(){t.unwrap()}function d(){var a=$("
").addClass(n.getValue("CONTAINER_CLASS"));a.attr("id",f()).prepend($("
").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;af1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("
",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&bi-g-f&&b",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a":return d?ac;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='
',d=k.lazyLoad?a("
",{class:"owl-video-tn "+j,srcType:c}):a("
",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("
",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a(''),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('
').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1, animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('
'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("
").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('