',37.975508,-1.073113,'images/map_icons/ophthalmologist.png',30,34.6875);});$(document).ready(function(){});$(document).ready(function(){$.goMap.fitBounds();$('.art-button').click(function(e){e.preventDefault();showLoader();setTimeout('location.href = "'+$(this).attr("href")+'"',3000);});});function hideLoader(){$(".se-pre-con").fadeOut("slow");}
function showLoader(){$(".se-pre-con").fadeIn("slow");}
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");});});function validar(){if(jQuery("#formNewsletter").valid()){addUserNewsletter();}}
jQuery(document).ready(function(){jQuery("#btn_enviar").click(function(event){event.preventDefault();validar();});jQuery("#formNewsletter").validate({rules:{email:{required:true,email:true},politica:{required:true},nombre:{required:true},tipo_usuario:{required:true}}});var rgpdHeight=jQuery("#div_mini_newsletter .rgpd_1nivel").css("height");jQuery("#div_mini_newsletter .rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery("#div_mini_newsletter .rgpd_1nivel").mouseout(function(){jQuery(this).css("height",rgpdHeight);jQuery(this).css("overflow","hidden");});});function addUserNewsletter(){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"addUserNewsletter&clean=1",data:jQuery("#formNewsletter").serialize(),success:function(datos){if(datos.status=='success'){Swal.fire({title:'Registro correcto!',text:datos.message,icon:'error',confirmButtonText:'Ok',onClose:()=>{jQuery("#div_mini_newsletter").html(datos.message);}})}else{if(datos.status=='error'){Swal.fire({title:'Error!',text:datos.error_msg,icon:'error',confirmButtonText:'Ok',onClose:()=>{jQuery("#div_mini_newsletter").html(datos.error_msg);}})}}},error:function(datos){}});}
$(document).ready(function(){$("#tipo_usuario").val("Potenciales");});var oct8ne=document.createElement("script");oct8ne.server="backoffice-eu.oct8ne.com/";oct8ne.type="text/javascript";oct8ne.async=true;oct8ne.license="50B395EE98AA4889BD673651B7DB5108";oct8ne.src=(document.location.protocol=="https:"?"https://":"http://")+"static-eu.oct8ne.com/api/v2/oct8ne.js?"+(Math.round(new Date().getTime()/86400000));oct8ne.locale="es-ES";oct8ne.baseUrl="//www.guiadelaudifono.com";var s=document.getElementsByTagName("script")[0];if(document.cookie.indexOf("oct8ne-room")==-1){setTimeout(insertOct8ne,5000);window.addEventListener('mousemove',insertOct8ne);window.addEventListener('scroll',insertOct8ne);window.addEventListener('click',insertOct8ne);window.addEventListener('keydown',insertOct8ne);window.addEventListener('touchstart',insertOct8ne);}
else{insertOct8ne();}
function insertOct8ne(){if(!window.oct8neScriptInserted){s.parentNode.insertBefore(oct8ne,s);window.oct8neScriptInserted=true;window.removeEventListener('mousemove',insertOct8ne);window.removeEventListener('scroll',insertOct8ne);window.removeEventListener('click',insertOct8ne);window.removeEventListener('keydown',insertOct8ne);window.removeEventListener('touchstart',insertOct8ne);}}
window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());gtag('config','G-LJCFMCE8D7');(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M9CV5DKZ');!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','444802736648080');fbq('track','PageView');jQuery("#div_descripcion div,#div_descripcion p,#div_descripcion span,#div_descripcion a").not(".button").css({'color':'','font-size':'','text-indent':'','background-color':'transparent'});jQuery("#div_descripcion img").css({'max-width':'700px'});jQuery(document).ready(function(){jQuery("img:not(.pixelCode)").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"});});jQuery(".vlightbox1:not(.noColorbox)").colorbox({rel:'vlightbox1',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});jQuery('a[href$=".jpg"], a[href$=".jpeg"], a[href$=".gif"], a[href$=".png"], a[href$=".JPG"], a[href$=".JPEG"], a[href$=".GIF"], a[href$=".PNG"]').not(".noColorbox").colorbox({maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:6000});jQuery("a[href^='http']").not("[href*='"+location.host+"']").attr('target','_blank');if($(".readmore").length){$('').insertAfter($(".readmore"));$('.readmore').toggleClass("readmore__content__close");$('.readmore').css("height",$('.readmore').data("height"));jQuery(".readmore__toggle").click(function(){$(this).prev().toggleClass("readmore__content__close");if($(this).prev().hasClass("readmore__content__close")){$(this).text("Leer más...");$(this).prev().css("height",$('.readmore').data("height"));}else{$(this).text("Leer menos...");$(this).prev().css("height","initial");}});}});jQuery(document).ready(function(){jQuery('#shareme, .shareme').sharrre({share:{facebook:true,twitter:true,googlePlus:false,pinterest:true},buttons:{googlePlus:{url:'http://guiadelaudifono.com/var/www/vhosts/factinet.com/httpdocs/webs/index.php?id_casa=guiadelaudifono&page=directorio&categoria=optica&pagina=45',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://guiadelaudifono.com/var/www/vhosts/factinet.com/httpdocs/webs/index.php?id_casa=guiadelaudifono&page=directorio&categoria=optica&pagina=45',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://guiadelaudifono.com/var/www/vhosts/factinet.com/httpdocs/webs/index.php?id_casa=guiadelaudifono&page=directorio&categoria=optica&pagina=45',count:'horizontal',via:'factinet_es',hashtags:'',related:'',lang:'es'},pinterest:{url:'http://guiadelaudifono.com/var/www/vhosts/factinet.com/httpdocs/webs/index.php?id_casa=guiadelaudifono&page=directorio&categoria=optica&pagina=45',media:'https://www.factinet.com/uploads/grupos/d5eabc1155c3d3467530c757289a53eb_logogea2.png',description:'Audifonos buenos y economicos/invisibles, recargables y de marca. El Comparador oficial del audÃfono/ Mas de 1000 audÃfonos/ Mas de 3000 Centros auditivos y Ópticas audiológicas/Las principales marcas en audifonos/Las mejores ofertas mediante la comparación del consumo inteligente. Pide cita en tu centro mas cercano, revisiones gratuitas, audÃfonos a prueba, profesionales titulados El Grupo audiológico GEA esta formado por la guÃa del audÃfono, el grupo empresarial audiológic',layout:'horizontal'}},enableHover:false,enableCounter:false,enableTracking:true});$('a[href*="#"]:not([href="#"])').click(function(event){if(typeof($($.attr(this,'href')).offset())!='undefined'){event.preventDefault();$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top-($(".capaFija").is(":visible")*-100)-100},500);}});});