var parentOpen="(";var parentClose=")";$(document).ready(function(){});$('a[href*=#]').click(function(event){$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top},500);event.preventDefault();});$(document).ready(function(){$('.button[data-slide="aromas"]').attr("data-slide","que-hacemos");$("#btnAromas").colorbox({inline:true,href:"#aromas .art-post",width:"95%",height:"80%",onComplete:function(){$(this).colorbox.resize();}});$("#btnBiblioteca").colorbox({inline:true,href:"#biblioteca .art-post",width:"95%",height:"80%",onComplete:function(){$(this).colorbox.resize();}});var isiPad=navigator.userAgent.match(/iPhone/i)!=null;if(isiPad){$(".imgHome").addClass("iPad");}});$(document).ready(function(){$(window).scroll(function(){var scroll=$(window).scrollTop();if(scroll>=500){$(".logo3RealesFijo").addClass("visible");} else{$(".logo3RealesFijo").removeClass("visible");}});});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;});});$(document).ready(function(){resizeDiv();});window.onresize=function(event){resizeDiv();} function resizeDiv(){vpw=$(window).width();vph=$(window).height();$('.slide').css({'min-height':vph+'px'});$('.inMarxantAmbients').css({'height':vph-160+'px'});} jQuery(document).ready(function($){jQuery.rsCSS3Easing.easeOutBack='cubic-bezier(0.175, 0.885, 0.320, 1.275)';$('#slider-with-blocks-1').royalSlider({arrowsNav:true,arrowsNavAutoHide:false,fadeinLoadedSlide:false,controlNavigationSpacing:0,controlNavigation:'bullets',imageScaleMode:'none',imageAlignCenter:false,blockLoop:true,loop:true,numImagesToPreload:6,transitionType:'fade',keyboardNavEnabled:false,block:{delay:1500}});});$(document).ready(function(){vph=$(window).height();vpw=$(window).width();$(".youtube:not(.socialIcon)").colorbox({iframe:true,maxWidth:1640,maxHeight:1375,width:vpw,height:vph,fixed:true});});$(document).ready(function(){$(".art-hmenu li, .art-vmenu li, .art-slidemenu li").each(function(index){$(this).attr("data-slide",$(this).attr("class"))}) $("body").addClass("parallax");}) jQuery(document).ready(function(){grecaptcha.ready(function(){grecaptcha.execute("6LecO4MUAAAAACd76VNXkHVzwH6qdWnldjEg44Vz",{action:"action_name"}).then(function(token){jQuery('[name="g-recaptcha-response"]').val(token);});});});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("#contactoHome").ready(function(){if(1){jQuery("#contactoHome").submit(function(event){event.preventDefault();});} jQuery.validator.setDefaults({submitHandler:function(){if(1){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",url:"contacto.inc&clean=1",data:jQuery("#contactoHome").serialize()+"&plantillaEmail=",success:function(datos){jQuery("#contactoHome .divForm").text("");jQuery(".resultContacto").html(datos);;}});}else{Submit();}}});jQuery("#contactoHome").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("#contactoHome .rgpd_1nivel").css("height");jQuery("#contactoHome .rgpd_1nivel").mouseover(function(){jQuery(this).css("height","initial");jQuery(this).css("overflow","unset");});jQuery("#contactoHome .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);} $(document).ready(function(){resizeDiv();});$(document).on('click touchstart','.art-sheet',function(event){if($(".art-menu").is(":visible")==true) $(".art-menu-btn").trigger("click")}) window.onresize=function(event){resizeDiv();} function resizeDiv(){vpw=$(window).width();vph=$(window).height();$('.slide').css({'min-height':vph+'px'});} $('a[href*=#]').click(function(event){$('html, body').animate({scrollTop:$($.attr(this,'href')).offset().top},500);event.preventDefault();});$(document).ready(function(){$("#menuSlide").height($(document).height());});$(document).ready(function(){$("body").click(function(){if($("#menuSlide").css("right")=='0px') $("#menuSlide").css("right",'-363px');});$(".arrow, #menuSlide").click(function(){if($("#menuSlide").css("right")=='0px') $("#menuSlide").css("right",'-363px');else $("#menuSlide").css("right",'0px');});});window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);} gtag('js',new Date());gtag('config','UA-3938643-34');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://3reales.com/index.html',size:'medium',lang:'es-ES',annotation:''},facebook:{url:'http://3reales.com/index.html',action:'like',layout:'button_count',width:'',send:'false',faces:'false',colorscheme:'',font:'',lang:'es_ES'},twitter:{url:'http://3reales.com/index.html',count:'horizontal',via:'factinet_es',hashtags:'',related:'',lang:'es'},pinterest:{url:'http://3reales.com/index.html',media:'https://www.factinet.com/uploads/grupos/17a0774a1d48ed74863975f29fad9ab2_cubas.jpg',description:'Grupo activo que lidera la recuperación de la variedad listán prieto en españa referente internacional y especializados en su localización y certificación.',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);}});});