window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);} gtag('js',new Date());gtag('config','UA-3938643-24');$(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});});});$(window).resize(function(){resizeHeader();});function resizeHeader(){$("header.art-header.myHeader").height(Math.min($(".ws_images ul li:first-child").height(),750));$("header.art-header.myHeader").css({"overflow":"hidden"});} jQuery(document).ready(function(){var isOpen=false;jQuery("#miniCart").hover(function(){if(!isOpen) jQuery("#miniCartDiv").not(":animated").slideDown('500').css('display','block');isOpen=true;},function(){jQuery("#miniCartDiv").slideUp('500');isOpen=false;});});var SITE_URL='https://www.ruralgia.com/';var IMGS_URL='https://www.ruralgia.com/includes/sliders/demo-2/data1';jQuery(document).ready(function(){$('.aImgProducto').zoom();});jQuery(document).ready(function(){jQuery(".cmbAtributos").on("change",function(event){var atributos=[];$(".cmbAtributos").each(function(){atributos.push($(this).attr("id")+":"+$("#"+$(this).attr("id")+" option:selected").attr("value"));});var listAtributos=atributos.join(';');$(".btn_add_carrito").attr("atributos",listAtributos);});jQuery(".cmbAtributos").trigger("change");});(function($){$(document).ready(function(){$('.xzoom, .xzoom-gallery').xzoom({zoomWidth:400,title:true,tint:'#333',Xoffset:15});$('.xzoom2, .xzoom-gallery2').xzoom({position:'#xzoom2-id',tint:'#ffa200'});$('.xzoom3, .xzoom-gallery3').xzoom({position:'lens',lensShape:'circle',sourceClass:'xzoom-hidden'});$('.xzoom4, .xzoom-gallery4').xzoom({tint:'#006699',Xoffset:15});$('.xzoom5, .xzoom-gallery5').xzoom({tint:'#006699',Xoffset:15});var isTouchSupported='ontouchstart'in window;if(isTouchSupported){$('.xzoom, .xzoom2, .xzoom3, .xzoom4, .xzoom5').each(function(){var xzoom=$(this).data('xzoom');xzoom.eventunbind();});$('.xzoom, .xzoom2, .xzoom3').each(function(){var xzoom=$(this).data('xzoom');$(this).hammer().on("tap",function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;var s=1,ls;xzoom.eventmove=function(element){element.hammer().on('drag',function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;xzoom.movezoom(event);event.gesture.preventDefault();});} xzoom.eventleave=function(element){element.hammer().on('tap',function(event){xzoom.closezoom();});} xzoom.openzoom(event);});});$('.xzoom4').each(function(){var xzoom=$(this).data('xzoom');$(this).hammer().on("tap",function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;var s=1,ls;xzoom.eventmove=function(element){element.hammer().on('drag',function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;xzoom.movezoom(event);event.gesture.preventDefault();});} var counter=0;xzoom.eventclick=function(element){element.hammer().on('tap',function(){counter++;if(counter==1)setTimeout(openfancy,300);event.gesture.preventDefault();});} function openfancy(){if(counter==2){xzoom.closezoom();$.fancybox.open(xzoom.gallery().cgallery);}else{xzoom.closezoom();} counter=0;} xzoom.openzoom(event);});});$('.xzoom5').each(function(){var xzoom=$(this).data('xzoom');$(this).hammer().on("tap",function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;var s=1,ls;xzoom.eventmove=function(element){element.hammer().on('drag',function(event){event.pageX=event.gesture.center.pageX;event.pageY=event.gesture.center.pageY;xzoom.movezoom(event);event.gesture.preventDefault();});} var counter=0;xzoom.eventclick=function(element){element.hammer().on('tap',function(){counter++;if(counter==1)setTimeout(openmagnific,300);event.gesture.preventDefault();});} function openmagnific(){if(counter==2){xzoom.closezoom();var gallery=xzoom.gallery().cgallery;var i,images=new Array();for(i in gallery){images[i]={src:gallery[i]};} $.magnificPopup.open({items:images,type:'image',gallery:{enabled:true}});}else{xzoom.closezoom();} counter=0;} xzoom.openzoom(event);});});}else{$('#xzoom-fancy').bind('click',function(event){var xzoom=$(this).data('xzoom');xzoom.closezoom();$.fancybox.open(xzoom.gallery().cgallery,{padding:0,helpers:{overlay:{locked:false}}});event.preventDefault();});$('#xzoom-magnific').bind('click',function(event){var xzoom=$(this).data('xzoom');xzoom.closezoom();var gallery=xzoom.gallery().cgallery;var i,images=new Array();for(i in gallery){images[i]={src:gallery[i]};} $.magnificPopup.open({items:images,type:'image',gallery:{enabled:true}});event.preventDefault();});}});})(jQuery);var forceCapaFija=false;$(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');}}} jQuery("img").error(function(){jQuery(this).attr("title",jQuery(this).attr("src"));jQuery(this).attr("src","https://www.factinet.com/images/no-picture.png");jQuery(this).css({"width":"150px","opacity":"0.2"});});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(".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');});jQuery(document).ready(function(){jQuery('#shareme, .shareme').sharrre({share:{facebook:true,twitter:true,googlePlus:false,pinterest:false},buttons:{googlePlus:{url:'http://hostalacerca.es/producto-Erre',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://hostalacerca.es/producto-Erre',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://hostalacerca.es/producto-Erre',count:'horizontal',via:'ruralgia',hashtags:'turismorural',related:'',lang:'es'},pinterest:{url:'http://hostalacerca.es/producto-Erre',media:'/uploads/grupos/20180803171511184c183b0b192cc008940b54d84ebbe7_1_.jpg',description:'Bienvenidos al Hostal Restaurante La Cerca, de Arcones. Situado en pleno corazón del parque natural del Guadarrama, al pie de la sierra del mismo nombre, muy próximo a Pedraza, Sepúlveda y las Cuevas de Prádena, el Hostal ofrece un ambiente cálido y familiar. Abierto todo el año, contempla precios especiales para grupos y tercera edad. Cocina de alta calidad a precios normales. Bodas, comuniones y otras celebraciones. Parking propio.',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);}});});