!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");$("html, body").animate({scrollTop:$(e).offset().top-$(".ct-header__wrapper--stuck").outerHeight()},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))})});var 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))}),$(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")}})})}),$(".xtd-gmap").each(function(){var t=$(this);$(this).height(t.data("height")).gmap3({center:[t.data("latitude-center"),t.data("longitude-center")],zoom:t.data("zoom"),disableDefaultUI:!0,draggable:!1,mapTypeId:google.maps.MapTypeId[t.data("type")],mapTypeControl:!1,mapTypeControlOptions:{},navigationControl:!1,scrollwheel:!1,streetViewControl:!1,styles:t.data("theme").length>=1?t.data("theme"):""}).marker([{position:[t.data("latitude"),t.data("longitude")]}]).overlay({position:[t.data("latitude"),t.data("longitude")],content:function(){var e=t.data("image-src"),a=t.data("title"),i=t.data("description"),o="";return o='<div class="xtd-gmap-info">',o+=void 0!==e&&e.length>0?'<img src="'+e+'">':"",o+=void 0!==a&&a.length>0?"<div>"+a+"</div>":"",o+=void 0!==i&&i.length>0?"<p>"+i+"</p>":"",o+="</div>"},x:-100,y:-70})})}),$("document").ready(function(){jQuery().magnificPopup&&$(".xtd-modal--inline > .vc_btn3[href^=#], a.xtd-modal--inline[href^=#]").magnificPopup({type:"inline",closeBtnInside:!0})})}(jQuery);