$(document).ready(function(){$('img.lazyload').Lazy({scrollDirection:'vertical',effect:'fadeIn',visibleOnly:true,onError:function(element){console.log('error loading '+element.data('src'));},afterLoad:function(element){}});});var parentOpen="(";var parentClose=")";jQuery(document).ready(function(){$('.art-sheet').before($(".divDoofinder"));$('.art-sheet').before($("nav"));$('.art-sheet').before($(".flexslider"));$("li.inicio a").attr("href","/")});jQuery(window).scroll(function(){$(".flexslider .flex-active-slide img").animate({marginTop:-($(".flexslider ul").height()-$(".flexslider").height())*($(window).scrollTop()*100/$(window).height())/100},0);$(".divFotoTitulo a").removeClass("zoom");});$(function(){$('#WAButton').floatingWhatsApp({phone:'34688696427',headerTitle:'Contáctanos por Whatsapp',popupMessage:'Hola, puedo ayudarte?',showPopup:true,buttonImage:'Whatsapp',position:'right'});});var forceCapaFija=false;$(document).ready(function(){var altura=$("nav li").height();$('.art-nav>div>ul').prepend('
  • logo
  • ');$('.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()){$(".art-nav").removeClass('capaFija');}else{$(".art-nav").addClass('capaFija');}}} function onScrollMobile(){if($(document).height()>$('body').height()+$("nav.art-nav.desktop-nav").height()){if(!forceCapaFija&&$('body').scrollTop()<$("nav.art-nav.desktop-nav").height()){$(".art-nav").removeClass('capaFija');}else{$(".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=eu&identificador=guiadelaudifono&Id=354&MAIN=https://www.factinet.com/&search="+$("#doo_s").val()+"&all=1",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();});});});var api;$(document).ready(function(){api=$(".smartmenu").smartMenu({responsive:"switch-margin"});});jQuery(document).ready(function($){var path=window.location.pathname.split("/").pop();if(path==''){path='index.php';} var target=$('nav li[class="'+path+'"]');target.addClass('sm-active');$(".sm-close, .art-sheet, header").on("click",function(event){$(".sm-close").hide();});$(".sm-response-switch").on("click",function(event){if($(".smartmenu[class*='sm-response']>li.sm-responsive-toggle").is(":visible")) $(".sm-close").show();});});$(document).on('ready',function(){$(".tablaOtrasCiudades .boxFotoTitulo").slick({lazyLoad:'ondemand',infinite:true,dots:true,arrows:true,slidesToShow:5,slidesToScroll:5,autoplay:false,autoplaySpeed:6000,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:true}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2,infinite:true}},{breakpoint:500,settings:{slidesToShow:2,slidesToScroll:2,infinite:true}}]});$(".divTiraPrecios .boxFotoTitulo").slick({lazyLoad:'ondemand',infinite:true,dots:false,arrows:false,fade:true,speed:5000,slidesToShow:1,slidesToScroll:1,autoplay:true,autoplaySpeed:6000});});$(document).ready(function(){window.setInterval(kenBurns2,2500);function kenBurns2(){$(".divTiraPrecios .slick-slide:not(.slick-current) img").removeClass("fx");$(".divTiraPrecios .slick-slide.slick-current img").addClass("fx");}});function initAutocomplete(){const options={componentRestrictions:{country:"es"},};autocomplete=new google.maps.places.Autocomplete((document.getElementById('pac-input')),options);autocomplete.addListener('place_changed',fillInAddress);} function fillInAddress(){var place=autocomplete.getPlace();$("#latitud").val(place.geometry.location.lat());$("#longitud").val(place.geometry.location.lng());$("#localidad").val(place.name);$('.pac-card .art-button').removeClass("disabled");} var marca='';jQuery(document).ready(function(){$('.pac-card .art-button').click(function(e){if($("#latitud").val()==''){Swal.fire({title:'Atención!',text:'Debes introducir una localidad o una dirección',icon:'info',confirmButtonText:'Ok'});}else{if($('#type-input').val()=='orden'&&marca==''){Swal.fire({title:'Atención!',text:'Selecciona una marca',icon:'info',confirmButtonText:'Ok'});}else{if($('#type-input').val()==''){Swal.fire({title:'Atención!',text:'Debes introducir un método de ordenación',icon:'info',confirmButtonText:'Ok'});}else{location.href="resultados?dir="+$("#pac-input").val()+"&orden="+$('#type-input').val()+"&lat="+$("#latitud").val()+"&lng="+$("#longitud").val()+"&marca="+marca+"&localidad="+$("#localidad").val();}}}});$('.clsMarcas li.liTableHover.isotope-item .item-hover').click(function(e){e.preventDefault();$(".clsMarcas article").removeClass("marcaSelected");$(this).parent().toggleClass("marcaSelected");marca=$(this).attr("href");});$('#pac-input').keyup(function(e){$('.pac-card .art-button').addClass("disabled");});$('#type-input').change(function(e){if($(this).val()=='orden'){$(".divMarcas").show();$('img.lazyload').Lazy();}else{$(".divMarcas").hide();}});setTimeout('$(".art-sheet").before($(".pac-container.pac-logo"));',2000);$("#type-input").val("");$("#type-input").trigger("change");});var lat='43.263013';var lon='-2.934985';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(".vlightbox_522:not(.noColorbox)").colorbox({rel:'vlightbox_522',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});$(".clkVerMas").click(function(){$(".xzoom-thumbs a").show();$(".verMas").hide();});});jQuery(document).ready(function(){jQuery(".vlightbox_519:not(.noColorbox)").colorbox({rel:'vlightbox_519',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});$(".clkVerMas").click(function(){$(".xzoom-thumbs a").show();$(".verMas").hide();});});jQuery(document).ready(function(){jQuery(".vlightbox_520:not(.noColorbox)").colorbox({rel:'vlightbox_520',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});$(".clkVerMas").click(function(){$(".xzoom-thumbs a").show();$(".verMas").hide();});});jQuery(document).ready(function(){jQuery(".vlightbox_518:not(.noColorbox)").colorbox({rel:'vlightbox_518',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});$(".clkVerMas").click(function(){$(".xzoom-thumbs a").show();$(".verMas").hide();});});jQuery(document).ready(function(){jQuery(".vlightbox_527:not(.noColorbox)").colorbox({rel:'vlightbox_527',maxWidth:'100%',maxHeight:'100%',slideshow:true,slideshowSpeed:600,slideshowStart:"Continuar",slideshowStop:"Parar",current:"{current} de {total}"});$(".clkVerMas").click(function(){$(".xzoom-thumbs a").show();$(".verMas").hide();});});function setMarker(id,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,id:id,zIndex:1});} $(document).ready(function(){setMarker('dir_332','Audio y Visión Perales','

    \'icono\'Audio y Visión Perales


    C/ Primero de Mayo, nº 23 Valencia VALENCIA
    ',39.448908,-0.388301,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_3029','Óptica Explorador Andrés','

    \'icono\'Óptica Explorador Andrés


    C/ Explorador Andres, 24 Valencia VALENCIA
    ',39.471615,-0.346083,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_331','Óptica y Audifonos Perales ','

    \'icono\'Óptica y Audifonos Perales


    C/ L´Alguer, Nº 10 bajo Valencia VALENCIA
    ',39.470316,-0.341328,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_4074','Óptica y Audifonos Perales ','

    \'icono\'Óptica y Audifonos Perales


    C/ L´Alguer, Nº 10 bajo Valencia VALENCIA
    ',39.470316,-0.341328,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_4075','Óptica y Audifonos Perales ','

    \'icono\'Óptica y Audifonos Perales


    C/ L´Alguer, Nº 10 bajo Valencia VALENCIA
    ',39.470316,-0.341328,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_3659','Opticalia Roger de Lauria','

    \'icono\'Opticalia Roger de Lauria

    ',39.469211,-0.374291,'images/map_icons/hoergeraeteakustiker_22px.png',30,34.6875);setMarker('dir_3661','Audífonos Conde','

    \'icono\'Audífonos Conde


    Avda. Burjassot, 18 Valencia VALENCIA
    ',39.483432,-0.38249,'images/map_icons/hoergeraeteakustiker_22px.png',30,34.6875);setMarker('dir_522','Audífonos Valencia','

    \'icono\'Audífonos Valencia


    C/Barraca, 86 Valencia VALENCIA
    ',39.467394,-0.329194,'images/map_icons/hoergeraeteakustiker_22px.png',30,34.6875);setMarker('dir_3658','Bellot Centre Optic Auditiu','

    \'icono\'Bellot Centre Optic Auditiu


    C/ Valencia N 29 Alginet VALENCIA
    ',39.263058,-0.46934,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_519','Opticalia-Audiocalia Sedaví','

    \'icono\'Opticalia-Audiocalia Sedaví


    Avd. Albufera, 25 Sedaví VALENCIA
    ',39.422885,-0.385669,'images/map_icons/ophthalmologist.png',30,34.6875);});$(document).ready(function(){setMarker('dir_520','Opticalia-Audiocalia Paiporta','

    \'icono\'Opticalia-Audiocalia Paiporta


    C/Jaime I, nº 20 Paiporta VALENCIA
    ',39.42991,-0.415287,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_634','Otocenter Burjassot','

    \'icono\'Otocenter Burjassot


    Carretera Liria, 91 Burjassot VALENCIA
    ',39.51171,-0.416397,'images/map_icons/hoergeraeteakustiker_22px.png',30,34.6875);setMarker('dir_635','Otocenter Santagemma','

    \'icono\'Otocenter Santagemma


    C/Santa Cecilia, 24 Paterna VALENCIA
    ',39.518599,-0.42216,'images/map_icons/hoergeraeteakustiker_22px.png',30,34.6875);setMarker('dir_518','Opticalia-Audiocalia Catarroja','

    \'icono\'Opticalia-Audiocalia Catarroja


    C/Filiberto Rodrigo, 9 Catarroja VALENCIA
    ',39.406751,-0.403354,'images/map_icons/ophthalmologist.png',30,34.6875);setMarker('dir_527','Óptica y Audiología Concha Cuevas','

    \'icono\'Óptica y Audiología Concha Cuevas


    Avenida Seminario, 4,Bajo Moncada VALENCIA
    ',39.547517,-0.389017,'images/map_icons/ophthalmologist.png',30,34.6875);});$(document).ready(function(){});$(document).ready(function(){$.goMap.fitBounds();$('.art-button.verOfertas').click(function(e){e.preventDefault();$.blockUI({message:'ajax

    Estamos obteniendo las mejores ofertas para tí...

    '});setTimeout('$.unblockUI();location.href = "'+$(this).attr("href")+'"',3000);date=new Date();var aRecent=$(this).data("id")+";"+date.toISOString().split('T')[0];pushLocalStorage("recent",aRecent);});$(".openBrandDialog").on('click',function(){$(".tableDiv.marcas"+$(this).data("id")).toggle();$('img.lazyload').Lazy();});$(".openPromoDialog").on('click',function(){$(".tableDiv.promo"+$(this).data("id")).toggle();$('img.lazyload').Lazy();});$(".openTeleaudilogiaDialog").on('click',function(){$(".tableDiv.divTeleaudiologia"+$(this).data("id")).toggle();});$(".openBrandBenefits").on('click',function(){$(".tableDiv.directoriodescripcion"+$(this).data("id")).toggle();$('img.lazyload').Lazy();});$(".directorioFoto img, .directorioFoto.fa").on('click',function(){$(".tableDiv.fotos"+$(this).data("id")).toggle();$('img.lazyload').Lazy();});$(".openMapDialog").on("click",function(){var isMap=getSearchParams('mapa');if(isMap=="1"){scrollElement=false;google.maps.event.trigger($($.goMap.mapId).data('dir_'+$(this).find(".clickMapDialog").data("id")),'click');scrollElement=true;}else{$(".tableDiv.mapDialog"+$(this).find(".clickMapDialog").data("id")).toggle();$('img.lazyload').Lazy();initialize('mapDialog'+$(this).find(".clickMapDialog").data("id"),$(this).find(".clickMapDialog").data("lat"),$(this).find(".clickMapDialog").data("lon"),$(this).find(".clickMapDialog").data("name"),18);}});jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"setajaxvars?clean=1",data:"action=getRecentDirectory&recent="+JSON.parse(localStorage.getItem("recent"))+"&all=0",success:function(datos){$(".divRecent").html(datos);$(".recentAll").on("click",function(){location.href=location.href+"?all=1";});$(".clearAll").on("click",function(){localStorage.clear();location.href=location.href;});}});jQuery(".prefPlusStar, .premiumStar").tooltipster({arrow:false,contentAsHTML:true,interactive:true,minWidth:200,maxWidth:350,theme:"tooltipster-smoke",followMouse:false,position:"bottom-left",timer:0,offsetY:10});});function initialize(element_id,lat,lng,title,zoom){var mapLocation=new google.maps.LatLng(lat,lng);var mapOptions={center:mapLocation,zoom:zoom};var map=new google.maps.Map(document.getElementById(element_id),mapOptions);var marker=new google.maps.Marker({position:mapLocation,map:map,title:title});} var forcecapaMapFija=false;$(document).bind('scroll',onScroll);function onScroll(){if($(document).height()>$(window).height()+263){if(!forcecapaMapFija&&$(window).scrollTop()<263){$(".map_canvas").removeClass('capaMapFija');}else{$(".map_canvas").addClass('capaMapFija');}}} function gotoMap(value){location.href=updateQueryStringParameter(location.href,"mapa",value);} $(document).on('ready',function(){$(".XregularTest").slick({lazyLoad:'ondemand',infinite:true,dots:false,arrows:false,slidesToShow:5,slidesToScroll:1,autoplay:true,autoplaySpeed:2000});});$(document).on('ready',function(){$(".sliderTestimonios").slick({lazyLoad:'ondemand',infinite:true,dots:true,arrows:false,speed:500,fade:true,cssEase:'linear',slidesToShow:1,slidesToScroll:1,autoplay:true,autoplaySpeed:6000,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,infinite:true}},{breakpoint:800,settings:{slidesToShow:1,slidesToScroll:1,infinite:true}},{breakpoint:500,settings:{slidesToShow:1,slidesToScroll:1,infinite:true}}]});});$(document).on('ready',function(){$(".directorioSlick").slick({lazyLoad:'ondemand',infinite:true,dots:true,arrows:true,slidesToShow:4,slidesToScroll:4,autoplay:true,autoplaySpeed:6000,responsive:[{breakpoint:1024,settings:{slidesToShow:4,slidesToScroll:4,infinite:true}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2,infinite:true}},{breakpoint:500,settings:{slidesToShow:2,slidesToScroll:2,infinite:true}}]});});$(document).ready(function(){accordion('.nav-item','.nav-item-inner-heading','.nav-sub-list');if(window.location.hash.replace("#","").split("_")[0]=='faq'){$(window.location.hash+" .nav-item-inner").css("background-color","#f3f2eb") $(window.location.hash+" .nav-sub-list").css("background-color","#f3f2eb") $(window.location.hash+" .nav-item-inner").find(".nav-item-inner-heading").trigger("click");const element=document.querySelector(window.location.hash);const topPos=element.getBoundingClientRect().top+window.pageYOffset-100;setTimeout(function(){window.scrollTo({top:topPos,behavior:'smooth'});},20);}});function accordion(section,heading,list){$(section).each(function(){var act='active',actClass='.active',that=$(this);function tglH(){that.find(list).slideToggle(250);} function open(click){$(click).toggleClass('plus minus');tglH();that.find(list).addClass(act);} function close(click){$(click).toggleClass('minus plus');tglH();that.find(list).removeClass(act);} if(that.find(list).length==0){$(this).find(heading).removeClass('plus').addClass('no-sub');}else{$(this).find(heading).click(function(e){e.preventDefault();});} $(this).find(heading).click(function(){if($(this).hasClass('minus')){close(this);that.find(list).removeClass(act);}else if($(this).hasClass('plus')){if($(heading).hasClass('minus')){$(heading).each(function(){if(!$(this).hasClass('no-sub')){$(this).removeClass('minus').addClass('plus');}}) $(section).each(function(){if($(this).find(list).hasClass(act)){$(actClass).slideToggle(250);$(this).find(list).removeClass(act);}});open(this);}else if($(this).hasClass('plus')){open(this);}}})})} $(document).on('ready',function(){$(".Xregular").slick({lazyLoad:'ondemand',infinite:true,dots:false,arrows:false,slidesToShow:5,slidesToScroll:1,autoplay:true,autoplaySpeed:2000});});$(document).on('ready',function(){$(".sliderTabla").slick({lazyLoad:'ondemand',infinite:true,dots:true,arrows:true,slidesToShow:5,slidesToScroll:5,autoplay:true,autoplaySpeed:6000,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,infinite:true}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2,infinite:true}},{breakpoint:500,settings:{slidesToShow:2,slidesToScroll:2,infinite:true}}]});});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/resultados?dir=Valencia&lat=39.47024&lng=-0.3768049&pagina=1',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://guiadelaudifono.com/resultados?dir=Valencia&lat=39.47024&lng=-0.3768049&pagina=1',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://guiadelaudifono.com/resultados?dir=Valencia&lat=39.47024&lng=-0.3768049&pagina=1',count:'horizontal',via:'factinet_es',hashtags:'',related:'',lang:'es'},pinterest:{url:'http://guiadelaudifono.com/resultados?dir=Valencia&lat=39.47024&lng=-0.3768049&pagina=1',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);}});});