var parentOpen="(";var parentClose=")";jQuery(document).ready(function(){$('.art-sheet').before($(".divDoofinder"));$('.art-sheet').before($("nav"));$('.art-sheet').before($(".flexslider"));$('.art-postmetadataheader').before($(".scrollScroll"));});jQuery(window).scroll(function(){$(".flexslider .flex-active-slide img").animate({marginTop:-($(".flexslider ul").height()-$(".flexslider").height())*($(window).scrollTop()*100/$(window).height())/100},0);});var forceCapaFija=false;$(document).ready(function(){var altura=$("nav li").height();$('.art-nav>div>ul').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()){$(".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-"+$("#doo_s").val();});});function pulsaTecla(e){tecla=(document.all)?e.keyCode:e.which;if(tecla==13){if($("#doo_s").val()!='')
location.href="buscar-"+$("#doo_s").val();}}
$(document).ready(function(){$(".search-btn").click(function(){$(".divDoofinder").fadeToggle();$(function(){$(".search-form #doo_s").focus();});});});$(window).load(function(){$('.flexslider').flexslider({animation:"fade",controlNav:false,slideshowSpeed:7000,animationSpeed:600,directionNav:false});});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();});});window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());gtag('config','UA-214290777-1');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:false},buttons:{googlePlus:{url:'http://mielelbardal.com/y-ahora-te-voy-a-contar-como-nos-comunicamos-entre-nosotras',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://mielelbardal.com/y-ahora-te-voy-a-contar-como-nos-comunicamos-entre-nosotras',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://mielelbardal.com/y-ahora-te-voy-a-contar-como-nos-comunicamos-entre-nosotras',count:'horizontal',via:'factinet_es',hashtags:'',related:'',lang:'es'},pinterest:{url:'http://mielelbardal.com/y-ahora-te-voy-a-contar-como-nos-comunicamos-entre-nosotras',media:'https://www.factinet.com/uploads/grupos/e30204627341bb0cd728c05d2956f856_logo.png',description:'Miel El Bardal de Braojos es una empresa que se dedica a la explotación apÃcola en la Sierra Norte de Madrid. Programa visitas guiadas al colmenar y divulgación sobre el hábitat de las abejas y su importancia en el ecosistema, asà como talleres de manejo de las colmenas y tareas del apicultor. También se dedican a la venta y distribución de miel y derivados.',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);}});});$(function(){$('#WAButton').floatingWhatsApp({phone:'34652216745',headerTitle:'Contáctanos por Whatsapp',popupMessage:'Hola, puedo ayudarte?',showPopup:true,buttonImage:'
',position:'right'});});