var parentOpen="";var parentClose="";$(document).ready(function(){var size=$(".listNinguno ul li").size();$(".listNinguno ul li").each(function(index){if(index>=size/2){$(this).appendTo("#Column2 ul");}});resizeHeader();$(document).ready(function(){vph=$(window).height();vpw=$(window).width();$(".youtube:not(.socialIcon)").colorbox({iframe:true,maxWidth:840,maxHeight:475,width:vpw,height:vph,fixed:true});});if($(".page_producto .pd_descripcion").text()=='.')$(".productos_descripcion").hide();});$(window).resize(function(){resizeHeader();$(".page_resumen .divTienda #comments").attr("placeholder","Por favor, indica la hora y el día de recogida en caso de que vengas a recogerlo.");});function resizeHeader(){$("header.art-header.myHeader").height(Math.min($(".ws_images ul li:first-child").height(),600));$("header.art-header.myHeader").css({"overflow":"hidden"});}
$(document).ready(function(){$(".desktop .btn_add_carrito").click(function(){$("#miniCartDiv").show();});});var forceCapaFija=false;$(document).ready(function(){var altura=$("nav li").height();$('.art-nav>div>ul:not(.art-menu-iconos)').prepend('
');$('.logoCapaFija img').css("height",altura-12);$('.logoCapaFija img').css("width","auto");$('.logoCapaFija img').css("max-height","89%");});$(document).bind('scroll',onScroll);function onScroll(){if($(document).height()>$(window).height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$(window).scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".desktop .art-nav").removeClass('capaFija');$("html").removeClass('capaFijaHtml');}else{$(".desktop .art-nav").addClass('capaFija');$("html").addClass('capaFijaHtml');}}}
$(document).bind("touchmove",function(e){onScrollMobile();});function onScrollMobile(){if($(document).height()>$('body').height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$('body').scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".responsive .art-nav").removeClass('capaFija');}else{$(".responsive .art-nav").addClass('capaFija');}}}
$(document).ready(function(){$("#searchsubmit").click(function(){if($("#doo_s").val()!='')
location.href="buscar-productos-"+$("#doo_s").val().replaceAll(" ","+");});var timer=null;var texto='';$("#doo_s").keyup(function(){if(texto!=$("#doo_s").val()){clearTimeout(timer);timer=setTimeout(doStuff,100);texto=$("#doo_s").val();}});});function doStuff(){if($("#doo_s").val()!=''){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"https://www.factinet.com/setAjaxVars.php",data:"action=searchProductos&letra=ez&identificador=decasadeana&Id=458&MAIN=https://www.factinet.com/&search="+$("#doo_s").val()+"&all=",success:function(datos){if(datos!=''){$(".search-results").html(datos);$(".search-results").show();jQuery("img").error(function(){event.preventDefault();jQuery(this).attr("title",jQuery(this).attr("src"));jQuery(this).attr("src","/cacheimg?zc=2&w=400&h=400&src=images/no-picture.png");jQuery(this).css({"width":"100%","opacity":"0.2"});});$(".search-results .h").click(function(){$(".search-results").hide();});}else{$(".search-results").hide();}}});}}
function pulsaTecla(e){tecla=(document.all)?e.keyCode:e.which;if(tecla==13){if($("#doo_s").val()!='')
location.href="buscar-productos-"+$("#doo_s").val().replaceAll(" ","+");}}
$(document).ready(function(){$(".search-btn").click(function(){$(".divDoofinder").fadeToggle();$(function(){$(".search-form #doo_s").focus();});});});jQuery(document).ready(function(){$(".art-menu-logo").html('');jQuery(".art-menu-logo").click(function(){location.href="/";});});$(document).ready(function(){$(".desktop #miniCart > a").attr("href","#");$("#miniCart").click(function(){$('.desktop #miniCartDiv').fadeToggle();$('li#miniCart').toggleClass("cartRightDiv");});});function reCaptchaOnFocus(){var head=document.getElementsByTagName('head')[0]
var script=document.createElement('script')
script.type='text/javascript';script.src='https://www.google.com/recaptcha/api.js?render=6LecO4MUAAAAACd76VNXkHVzwH6qdWnldjEg44Vz'
head.appendChild(script);script.onload=()=>{grecaptcha.ready(function(){grecaptcha.execute("6LecO4MUAAAAACd76VNXkHVzwH6qdWnldjEg44Vz",{action:"action_name"}).then(function(token){jQuery('[name="g-recaptcha-response"]').val(token);});});};document.getElementById('Nombre').removeEventListener('focus',reCaptchaOnFocus);document.getElementById('Email').removeEventListener('focus',reCaptchaOnFocus);}
jQuery(document).ready(function(){document.getElementById('Nombre').addEventListener('focus',reCaptchaOnFocus,false);document.getElementById('Email').addEventListener('focus',reCaptchaOnFocus,false);});jQuery(document).ready(function(){jQuery(".clkNormas").colorbox({maxHeight:"700px",height:"90%",maxWidth:"700px",width:"90%",fixed:true});jQuery(".clkAviso").colorbox({maxHeight:"700px",height:"90%",maxWidth:"700px",width:"90%",fixed:true});jQuery(".rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery(".rgpd_1nivel").mouseout(function(){jQuery(this).css("height","80px");jQuery(this).css("overflow","hidden");});});jQuery("#contactPage").ready(function(){if(0){jQuery("#contactPage").submit(function(event){event.preventDefault();});}
jQuery.validator.setDefaults({submitHandler:function(){if(0){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"contacto.inc&clean=1",data:jQuery("#contactPage").serialize()+"&plantillaEmail=",success:function(datos){jQuery("#contactPage .divForm").text("");jQuery(".resultContacto").html(datos);;}});}else{Submit();}}});jQuery("#contactPage").validate({rules:{Nombre:{required:true},Apellidos:{required:true},Asunto:{required:true},Mensaje:{required:true},Email:{required:true,email:true},Telefono:{required:false,phone:true},Acepto:{required:true}}});var rgpdHeight=jQuery("#contactPage .rgpd_1nivel").css("height");jQuery("#contactPage .rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery("#contactPage .rgpd_1nivel").mouseout(function(){jQuery(this).css("height",rgpdHeight);jQuery(this).css("overflow","hidden");});});if(window.history.replaceState){window.history.replaceState(null,null,window.location.href);}
var lat='40.864917';var lon='-3.612925';var map;function createHomeLatLngMap(lat,lng){map=$("#map_canvas").goMap({zoom:15,maptype:'ROADMAP',mapTypeControl:true,places:"off",latitude:lat,longitude:lng});}
$(document).ready(function(){createHomeLatLngMap(lat,lon);});jQuery(document).ready(function(){jQuery('.wallDirectorio').jaliswall({item:'.headerDirectorio'});});function setMarker(titulo,descripcion,lat,lon,icon,w,h){var icon={url:icon,scaledSize:new google.maps.Size(w,h),};$.goMap.createMarker({title:titulo,html:{content:descripcion},latitude:lat,longitude:lon,icon:icon,zIndex:1});}
$(document).ready(function(){setMarker('De Casa de Ana Cotos','