!function($){"use strict";$("document").ready((function(){$('[data-vc-full-width="true"]').width($('[data-vc-full-width="true"]').width()-1),$('[data-vc-full-width="true"]').width($('[data-vc-full-width="true"]').width()+1),$('[data-vc-full-width="true"]').trigger("resize"),setTimeout((function(){$('[data-vc-full-width="true"]').width($('[data-vc-full-width="true"]').width()-1),$('[data-vc-full-width="true"]').width($('[data-vc-full-width="true"]').width()+1),$('[data-vc-full-width="true"]').trigger("resize")}),1)})),$("a.smooth-scroll, .smooth-scroll > a").on("click",(function(t){t.preventDefault();var e=$(this).attr("href"),a=$(".ct-header__wrapper--stuck").outerHeight()||0;a=parseInt(a),$("html, body").animate({scrollTop:$(e).offset().top-a},700)})),$(".wpb_single_image.smooth-scroll a").on("click",(function(t){t.preventDefault();var e=$(this).attr("href");$("html, body").animate({scrollTop:$(e).offset().top-$(".ct-header__wrapper--stuck").outerHeight()},700)})),$(".wpb_single_image[data-img-hover]").each((function(){var t=$("img",this).attr("src"),e=$(this).data("img-hover");$("img",this).hover((function(){$(this).attr("src",e),$(this).attr("srcset",$(this).attr("srcset").replace(t,e))}),(function(){$(this).attr("src",t),$(this).attr("srcset",$(this).attr("srcset").replace(e,t))}))}));const t={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return t.Android()||t.BlackBerry()||t.iOS()||t.Opera()||t.Windows()}};$("body").on("section-reached",(function(){var t=$("body").sectionScroll.activeSection,e=$(t).attr("data-section-title"),a=$(t).attr("data-section-color"),i=$(".section-bullets");void 0===a?$(i).attr("style",""):$(i).css("color",a),void 0===e?$(".section-title",i).length>0&&$(".section-title",i).addClass("is_hidden"):0===$(".section-title",i).length?$(i).prepend('<li class="section-title"><div><span>'+e+"<span></div></li>"):($(".section-title").removeClass("is_hidden"),$(".section-title > div > span",i).text(e))})),$("body").on("GoogleMapsLoaded",(function(){$(".xtd-gmap").each((function(){let t=$(this);if($(this).height(t.data("height")),"object"==typeof window.google&&"object"==typeof window.google.maps&&t){const e={center:{lat:Number(t.data("latitude-center")),lng:Number(t.data("longitude-center"))},zoom:parseInt(t.data("zoom")),mapTypeId:window.google.maps.MapTypeId[t.data("type").toUpperCase()],mapTypeControl:!1,mapTypeControlOptions:{},navigationControl:!1,scrollwheel:!1,streetViewControl:!1,disableDefaultUI:!0,draggable:!1,styles:t.data("theme").length>=1?t.data("theme"):""};let a=new window.google.maps.Map(t[0],e),i=new window.google.maps.Marker({position:{lat:Number(t.data("latitude-center")),lng:Number(t.data("longitude-center"))},map:a});const o=t.data("image-src"),n=t.data("title"),r=t.data("description"),l=void 0!==o&&o.length>0,d=void 0!==n&&n.length>0,s=void 0!==r&&r.length>0;if(l||d||s){let t="";t='<div class="content"><div class="xtd-gmap-info">',t+=l?'<img src="'+o+'">':"",t+=d?"<div>"+n+"</div>":"",t+=s?"<p>"+r+"</p>":"",t+="</div></div>";const e=new google.maps.InfoWindow({content:t}).open(a,i);i.addListener("click",(()=>{e.open(a,i)}))}}}))})),$((function(){!t.any()&&$(".parallax-image[data-stellar-ratio]").length>0&&$.stellar({horizontalScrolling:!1,parallaxBackgrounds:!1,hideDistantElements:!1}),$(".scrollable-section").length>0&&$("body").sectionScroll({titles:!1}),$(".xtd-carousel-mini > .owl-carousel").each((function(){var t=$(this);imagesLoaded(t,(function(){t.owlCarousel({items:1,nav:!1,navText:["",""],dots:t.data("dots"),loop:t.data("loop"),dotsSpeed:700,autoplay:t.data("autoplay"),autoplayTimeout:t.data("timeout"),autoplayHoverPause:t.data("hover"),autoHeight:!0})}))})),$(".xtd-carousel-filmstrip").each((function(){var t=$(this);imagesLoaded(t,(function(){t.bxSlider({slideSelector:".wpb_single_image",ticker:!0,minSlides:4,speed:$(t).data("speed"),onSliderLoad:function(){$("body").trigger("bxSlider-ready")}})}))}))})),$("document").ready((function(){jQuery().magnificPopup&&$(".xtd-modal--inline > .vc_btn3[href^=#], a.xtd-modal--inline[href^=#]").magnificPopup({type:"inline",closeBtnInside:!0})}))}(jQuery);