/*! * wpbakery page builder v6.0.0 (https://wpbakery.com) * copyright 2011-2019 michael m, wpbakery * license: commercial. more details: http://go.wpbakery.com/licensing */ // jscs:disable // jshint ignore: start document.documentelement.classname+=" js_active ",document.documentelement.classname+="ontouchstart"in document.documentelement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length,index=jquery(this).parent().hasclass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index))})})}}),"function"!=typeof window.vc_accordionbehaviour&&(window.vc_accordionbehaviour=function(){jquery(".wpb_accordion").each(function(index){var $tabs,active_tab,collapsible,$this=jquery(this);$this.attr("data-interval"),collapsible=!1===(active_tab=!isnan(jquery(this).data("active-tab"))&&0 div > h3",autoheight:!1,heightstyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionactivate,change:function(event,ui){void 0!==jquery.fn.isotope&&ui.newcontent.find(".isotope").isotope("layout"),vc_carouselbehaviour(ui.newpanel)}}),!0===$this.data("vcdisablekeydown")&&($tabs.data("uiaccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teasergrid&&(window.vc_teasergrid=function(){var layout_modes={fitrows:"fitrows",masonry:"masonry"};jquery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jquery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemselector:".isotope-item",layoutmode:void 0===layout_modes[layout_mode]?"fitrows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventdefault&&e.preventdefault();var $thumbs=jquery(this).data("isotope");jquery(this).parent().parent().find(".active").removeclass("active"),jquery(this).parent().addclass("active"),$thumbs.isotope({filter:jquery(this).attr("data-filter")})}),jquery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselbehaviour&&(window.vc_carouselbehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jquery(".wpb_carousel")).each(function(){var $this=jquery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);getcolumnscount(jquery(this));jquery(this).hasclass("columns_count_1")&&900;var carousel_li=jquery(this).find(".wpb_thumbnails-fluid li");carousel_li.css({"margin-right":carousel_li.css("margin-left"),"margin-left":0});var fluid_ul=jquery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jquery(window).on("resize",function(){screen_size!=(screen_size=getsizename())&&window.settimeout(function(){location.reload()},20)})}})}),"function"!=typeof window.vc_slidersbehaviour&&(window.vc_slidersbehaviour=function(){jquery(".wpb_gallery_slides").each(function(index){var $imagesgrid,this_element=jquery(this);if(this_element.hasclass("wpb_slider_nivo")){var slidertimeout=1e3*this_element.attr("data-interval");0===slidertimeout&&(slidertimeout=9999999999),this_element.find(".nivoslider").nivoslider({effect:"boxraingrow,boxrain,boxrainreverse,boxraingrowreverse",slices:15,boxcols:8,boxrows:4,animspeed:800,pausetime:slidertimeout,startslide:0,directionnav:!0,directionnavhide:!0,controlnav:!0,keyboardnav:!1,pauseonhover:!0,manualadvance:!1,prevtext:"prev",nexttext:"next"})}else this_element.hasclass("wpb_image_grid")&&(jquery.fn.imagesloaded?$imagesgrid=this_element.find(".wpb_image_grid_ul").imagesloaded(function(){$imagesgrid.isotope({itemselector:".isotope-item",layoutmode:"fitrows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemselector:".isotope-item",layoutmode:"fitrows"}))})}),"function"!=typeof window.vc_prettyphoto&&(window.vc_prettyphoto=function(){try{jquery&&jquery.fn&&jquery.fn.prettyphoto&&jquery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyphoto({animationspeed:"normal",hook:"data-rel",padding:15,opacity:.7,showtitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1')}),vc_initvideobackgrounds(),callskrollinit=!1,window.vcparallaxskroll&&window.vcparallaxskroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeattr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrsize,skrollrstart,$parallaxelement,parallaximage,youtubeid;callskrollinit=!0,"on"===$(this).data("vcparallaxofade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrsize=100*$(this).data("vcparallax"),($parallaxelement=$("
").addclass("vc_parallax-inner").appendto($(this))).height(skrollrsize+"%"),parallaximage=$(this).data("vcparallaximage"),(youtubeid=vcextractyoutubeid(parallaximage))?insertyoutubevideoasbackground($parallaxelement,youtubeid):void 0!==parallaximage&&$parallaxelement.css("background-image","url("+parallaximage+")"),skrollrstart=-(skrollrsize-100),$parallaxelement.attr("data-bottom-top","top: "+skrollrstart+"%;").attr("data-top-bottom","top: 0%;")}),callskrollinit&&window.skrollr&&(vcskrollroptions={forceheight:!1,smoothscrolling:!1,mobilecheck:function(){return!1}},window.vcparallaxskroll=skrollr.init(vcskrollroptions),window.vcparallaxskroll)}),"function"!=typeof window.vc_gridbehaviour&&(window.vc_gridbehaviour=function(){jquery.fn.vcgrid&&jquery("[data-vc-grid]").vcgrid()}),"function"!=typeof window.getcolumnscount&&(window.getcolumnscount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasclass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getsizename();function getsizename(){var screen_w=jquery(window).width();return 1170
').find(".inner");new yt.player($container[0],{width:"100%",height:"100%",videoid:youtubeid,playervars:{playlist:youtubeid,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onready:function(event){event.target.mute().setloop(!0)}}}),vcresizevideobackground($element),jquery(window).bind("resize",function(){vcresizevideobackground($element)})}),"function"!=typeof window.vcresizevideobackground&&(window.vcresizevideobackground=function($element){var iframew,iframeh,marginleft,margintop,containerw=$element.innerwidth(),containerh=$element.innerheight();containerw/containerh<16/9?(iframew=containerh*(16/9),iframeh=containerh,marginleft=-math.round((iframew-containerw)/2)+"px",margintop=-math.round((iframeh-containerh)/2)+"px"):(iframeh=(iframew=containerw)*(9/16),margintop=-math.round((iframeh-containerh)/2)+"px",marginleft=-math.round((iframew-containerw)/2)+"px"),iframew+="px",iframeh+="px",$element.find(".vc_video-bg iframe").css({maxwidth:"1000%",marginleft:marginleft,margintop:margintop,width:iframew,height:iframeh})}),"function"!=typeof window.vcextractyoutubeid&&(window.vcextractyoutubeid=function(url){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}),"function"!=typeof window.vc_googlemapspointer&&(window.vc_googlemapspointer=function(){var $=window.jquery,$wpbgmapswidget=$(".wpb_gmaps_widget");$wpbgmapswidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbgmapswidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_sethoverboxperspective&&(window.vc_sethoverboxperspective=function(hoverbox){hoverbox.each(function(){var $this=jquery(this),perspective=4*$this.width()+"px";$this.css("perspective",perspective)})}),"function"!=typeof window.vc_sethoverboxheight&&(window.vc_sethoverboxheight=function(hoverbox){hoverbox.each(function(){var $this=jquery(this),hoverboxinner=$this.find(".vc-hoverbox-inner");hoverboxinner.css("min-height",0);var frontheight=$this.find(".vc-hoverbox-front-inner").outerheight(),backheight=$this.find(".vc-hoverbox-back-inner").outerheight(),hoverboxheight=backheight