!function(t){"use strict";t.fn.disableScroll=function(){window.oldScrollPos=t(window).scrollTop(),t(window).on("scroll.scrolldisabler",function(e){t(window).scrollTop(window.oldScrollPos),e.preventDefault()})},t.fn.enableScroll=function(){t(window).off("scroll.scrolldisabler")},t.fn.supposition=function(){var e=t(window),a=function(t){return window["y"===t?"pageYOffset":"pageXOffset"]||document.documentElement&&document.documentElement["y"===t?"scrollTop":"scrollLeft"]||document.body["y"===t?"scrollTop":"scrollLeft"]};return this.each(function(){var i=t(this),o=i.data("sf-options"),s=o.onInit,n=o.onBeforeShow,r=o.onHide;t.extend(i.data("sf-options"),{onInit:function(){(function(){var e=t("li",this),a=parseInt(e.css("z-index"))+e.length;e.each(function(){t(this).css({zIndex:--a})})}).call(this),s.call(this)},onBeforeShow:function(){(function(){this.each(function(){var i=t(this);i.css("display","block");var o=i.width(),s=i.parents("ul").width(),n=e.width()+a("x"),r=i.offset().left+o;r>n&&i.css("margin-left",(1===i.parents("ul").length?n-r:-(o+s))+"px");var l=e.height(),c=i.offset().top,d=i.height(),u=l+a("y");c+d>u&&i.css("margin-top",u-(d+c))})}).call(this),n.call(this)},onHide:function(){(function(){this.css({marginTop:"",marginLeft:""})}).call(this),r.call(this)}})})},t.fn.utvmenu=function(e){var a,i,o=t.extend({speed:200,autostart:!0,autohide:1},e);(i=(a=t(this)).find("ul").parent("li").children("a")).attr("data-option","off"),i.unbind("click").on("click",function(){var e=t(this);o.autohide&&e.parent().parent().find("a[data-option='on']").parent("li").children("ul").slideUp(o.speed/1.2,function(){t(this).parent("li").children("a").attr("data-option","off")}),"off"===e.attr("data-option")&&e.parent("li").children("ul").slideDown(o.speed,function(){e.attr("data-option","on")}),"on"===e.attr("data-option")&&(e.attr("data-option","off"),e.parent("li").children("ul").slideUp(o.speed))}),o.autostart&&a.find("a").each(function(){t(this).parent("li").parent("ul").slideDown(o.speed,function(){t(this).parent("li").children("a").attr("data-option","on")})})};var e,a={},i=void 0,o=0,s=!1,n=0,r=function(){e={width:window.innerWidth,height:window.innerHeight}};r(),window.addEventListener("resize",r);const l={map:function(t,e,a,i,o){return(t-e)*(o-i)/(a-e)+i},lerp:function(t,e,a){return(1-a)*t+a*e},getRandomFloat:function(t,e){return(Math.random()*(e-t)+t).toFixed(2)}};var c=function(e){var i=t(e),o=e.getAttribute("data-parallax-factor"),s=void 0,n=i.css("transform");e.factor=parseFloat((o||a.factor,10)),e.rect={top:i.offset().top,left:i.offset().left,width:i.width(),height:i.height()},e.initialOffset=e.rect.top,"none"!==n&&(s=d(n)),e.transforms=s};window._isElementInViewport=function(e){var a=t(window),i=a.scrollTop(),o=e.offset().top;return o+e.height()>=i&&o-(e.data("appear-top-offset")||0)<=i+a.height()};var d=function(t){var e=t.split("(")[1];e=(e=e.split(")")[0]).split(",");var a=Math.atan2(e[1],e[0]),i=Math.pow(e[0],2)+Math.pow(e[1],2),o=Math.sqrt(i),s=(e[0]*e[3]-e[2]*e[1])/o,n=Math.atan2(e[0]*e[2]+e[1]*e[3],i);return{rotate:a/(Math.PI/180),scaleX:o,scaleY:s,skewX:n/(Math.PI/180),skewY:0,translateX:e[4],translateY:e[5]}},u=function(a,i){var s=t(a),r=t(a.parentNode),c=s.offset().top,d=r.offset(),u=(d.top,d.top+r.outerHeight()),h=c-o,f=a.factor;t(window);""===s.data("parallax-remove-general-offset")&&(h+=n),""===s.data("parallax-remove-initial-offset")&&(h-=a.initialOffset),"bottom"===i&&(f*=-1);var m=h/f,p=0;!1!==_isElementInViewport(s)&&s.hasClass("parallax-scroll-container-calculated")&&!site_settings.scrollDisabled&&(s.hasClass("parallax-scroll-container-hide")&&!s.siblings(".mbYTP_wrapper").length&&s.removeClass("parallax-scroll-container-hide"),s.data("parallax-position-x")&&(p=s.data("parallax-position-x")),s.data("parallax-scale")?TweenMax.set(a,{scale:l.map(d.top-o,e.height,-1*r.outerHeight(),o>u?1-(s.data("parallax-scale")-1):1,s.data("parallax-scale"))}):s.data("parallax-scale-move")?TweenMax.set(a,{x:p,y:m,scale:l.map(d.top-o,e.height,-1*r.outerHeight(),o>u?1-(s.data("parallax-scale")-1):1,s.data("parallax-scale-move"))}):TweenMax.set(a,{x:p,y:m}))},h=function(){o<=0&&(s=!1);for(var t=0;t<i.length;t++)u(i[t],"bottom");s=!1},f=function(){if(o=window.scrollY||window.pageYOffset,!a.mobile&&window.matchMedia&&window.matchMedia(a.mediaQuery).matches)return!1;!s&&window.requestAnimationFrame&&(window.requestAnimationFrame(h),s=!0)},m=function(t,e){n=e},p=function(){i.length>0&&function(){for(var t=0;t<i.length;t++)c(i[t])}()};t(document).on("hongkong:refresh",h).on("hongkong:offset",m),t.hongkong=function(e){a=t.extend({factor:4,mobile:!1,mediaQuery:"(max-width: 42em)",threshold:0,selector:"[data-parallax]",selectorBottom:"[data-parallax-bottom]",selectorTop:"[data-parallax-top]"},e),(i=t(a.selector)).length>0&&(p(),f(),t(window).on("scroll",f)),t(window).on("resize load",p)}}(jQuery),function(t){"use strict";function e(){site_settings.brooklyn_header_scroll_offset=r.data("line-height"),r.hasClass("ut-header-fixed")&&(site_settings.brooklyn_header_scroll_offset=0),r.hasClass("ut-header-fixed")||(t(window).width()>767&&t(window).width()<=1024&&(r.css("transform","translate3d(0,0,0)"),site_settings.brooklyn_header_scroll_offset=80),t(window).width()<=767&&(r.css("transform","translate3d(0,0,0)"),site_settings.brooklyn_header_scroll_offset=60))}function a(){return window.pageYOffset||document.documentElement.scrollTop}function i(e){"style-9"===r.data("style")&&1===r.data("scrolldepth")&&("down"===e?(t(".site-logo").css({height:r.data("line-height"),"line-height":r.data("line-height")+"px","margin-top":80}),t(".site-logo img").css({"max-height":80})):(t(".site-logo").removeAttr("style"),t(".site-logo img").removeAttr("style")))}function o(){t(window).width()<=1025||(p=!0,a()<h?a()<=f&&(-a()>d&&(t("#ut-header-placeholder").height(c-a()),u=-a(),r.css("transform","translate3d(0,0,0)"),i("up"),m=!1),t("#ut-header-placeholder").length&&0===a()&&(site_settings.brooklyn_header_scroll_offset=Math.abs(d)+r.data("line-height"))):a()>0&&(m||(t("#ut-header-placeholder").height(r.data("line-height")-l),r.css("transform","translate3d(0,"+d+"px,0)"),i("down"),t("#ut-header-placeholder").length&&(site_settings.brooklyn_header_scroll_offset=r.data("line-height")),m=!0)),h=a())}t("html").addClass("js");var s=!1,n=t("body"),r=t("#header-section");navigator.userAgent.indexOf("Chrome");e(),t(window).utresize(function(){e()});var l="",c="",d="",u="",h="",f="",m=!1,p=!1;t(window).utresize(function(){t(window).width()<1025&&i("up"),t.waypoints("refresh")}),l=n.hasClass("ut-site-border-top")?parseInt(site_settings.siteframe_size):0,c=r.data("total-height"),d=r.data("line-height")-l-c,u=0,h=0,f=n.hasClass("ut-site-border-top")?l:0,t(".ut-stick-in-parent").ut_require_js({plugin:"stickit",source:"stickit",callback:function(t){t.stickit({screenMinWidth:1025,top:parseInt(d+c+40)})}}),r.hasClass("ut-header-floating")&&!n.hasClass("ut-header-hide-on-hero")&&(0===window.pageYOffset&&t("#ut-header-placeholder").length&&(site_settings.brooklyn_header_scroll_offset=Math.abs(d)+r.data("line-height")),t(window).scroll(function(){window.requestAnimationFrame(o)}),window.requestAnimationFrame(o)),setInterval(function(){p&&(p=!1,t.waypoints("refresh"))},200),t(".parallax-scroll-container:not(.parallax-scroll-container-disabled)").each(function(){var e=t(this),a=t(window).height(),i=e.outerHeight();if(i<a){var o=100-100*i/a+100;e.css("height",o+"%").css("margin-top",-(e.outerHeight()-i)/2+"px").addClass("parallax-scroll-container-calculated")}i>=a&&e.css("height","105%").css("margin-top",-(e.outerHeight()-i)/2+"px").addClass("parallax-scroll-container-calculated")}),t.hongkong({mobile:!0,selector:".parallax-scroll-container:not(.parallax-scroll-container-disabled)"}),t(window).on("load",function(){function e(e,i){i.data("particlestate")||(particlesJS(e,i.data("effect-config")),i.data("particlestate",!0)),i.data("particlestate")&&(void 0!==typeof pJSDom&&i.css("visibility","hidden"),clearTimeout(a),a=setTimeout(function(){void 0!==typeof pJSDom&&pJSDom.forEach(function(t,e){pJSDom[e].pJS.fn.particlesRefresh()}),t(".bklyn-overlay-effect").each(function(){t(this).css("visibility","visible")})},100))}var a="";t(".bklyn-overlay-effect").ut_require_js({plugin:"particlesJS",source:"particlesJS",callback:function(a){a.each(function(){var a=t(this),i=a.attr("id");a.data("particlestate",!1),new ResizeSensor(a,function(){e(i,a)}),e(i,a)})}})}),t(document).ready(function(){function e(){t("#ut-open-mobile-menu").addClass("is-active"),function(){var e=t(window).width(),a=t(window).outerHeight();t("#ut-mobile-nav").css("width",e).height(a),t(".ut-scroll-pane-wrap").css("width",e-20).height(a),t(".ut-scroll-pane").css("width",e).height(a),t("#ut-mobile-menu").css("width",e-40)}(),h.removeClass(h.data("primary-skin")).addClass(h.data("secondary-skin")),t("body").addClass("ut-mobile-menu-open"),t("#ut-mobile-nav").delay(250).slideToggle(600),f.each(function(){t(this).attr("src",p)}),site_settings.mobile_nav_open=!0,t(this).one("click",a)}function a(){t("#ut-open-mobile-menu").removeClass("is-active"),t("#ut-mobile-nav").slideToggle(600,function(){!1!==site_settings.mobile_hero_passed&&""!==site_settings.mobile_hero_passed||f.each(function(){t(this).attr("src",m)}),h.removeClass(h.data("secondary-skin")).addClass(h.data("primary-skin")),t("body").removeClass("ut-mobile-menu-open"),t(this).hide()}),site_settings.mobile_nav_open=!1,t(this).one("click",e)}function i(){var t=new RegExp("IEMobile","i");return navigator.userAgent.match(t)}function o(){w.css("visibility","hidden"),t(".ut-overlay-footer-icons-wrap","#ut-overlay-menu-footer").css("visibility","hidden"),t(".ut-overlay-copyright","#ut-overlay-menu-footer").css("visibility","hidden"),_.addClass("ut-overlay-menu-visible"),setTimeout(function(){w.each(function(e){var a=t(this);a.delay(75*e).queue(function(){a.css("visibility","visible").addClass("fadeInUp").dequeue()})}),setTimeout(function(){t(".ut-overlay-footer-icons-wrap","#ut-overlay-menu-footer").css("visibility","visible").addClass("fadeIn"),t(".ut-overlay-copyright","#ut-overlay-menu-footer").css("visibility","visible").addClass("fadeIn")},75*w.length+100)},500)}function r(){t(".ut-overlay-menu","#ut-overlay-nav").addClass("fadeOut"),t(".ut-overlay-footer-icons-wrap","#ut-overlay-menu-footer").removeClass("fadeIn").addClass("fadeOut"),t(".ut-overlay-copyright","#ut-overlay-menu-footer").removeClass("fadeIn").addClass("fadeOut"),setTimeout(function(){_.removeClass("ut-overlay-menu-visible"),setTimeout(function(){w.removeClass("fadeInUp"),t(".ut-overlay-menu","#ut-overlay-nav").removeClass("fadeOut"),t(".ut-overlay-copyright","#ut-overlay-menu-footer").removeClass("fadeOut").css("visibility","hidden"),t(".ut-overlay-footer-icons-wrap","#ut-overlay-menu-footer").removeClass("fadeOut").css("visibility","hidden")},500)},400)}function l(){t(".ut-header-mini-cart-overflow-container").each(function(){var e=t(this),a=0;t.each(e.children().slice(0,3),function(){a+=t(this).outerHeight(!0)}),e.closest(".ut-header-mini-cart-content").height(a)})}function c(){t(".ut-header-mini-cart-overflow-container").each(function(){var e=t(this);e.find(".ut-header-mini-cart-item-empty").length?e.closest("ul").addClass("ut-header-mini-cart-no-content"):e.closest("ul").removeClass("ut-header-mini-cart-no-content")})}function d(){var e=t(window).height();t("body").hasClass("ut-header-display-on-hero")||t("body").hasClass("ut-header-transparent-on-hero")||t("body").hasClass("ut-header-hide-on-hero")||(e-=t("#header-section").height()),t("body").hasClass("ut-site-border-top")&&(t(window).width()>1024?e-=site_settings.siteframe_top:e-=0),t("#ut-custom-hero").height(e),C.hasClass("ut-force-rev-slider-fullscreen")?C.children(".rev_slider").revredraw():(C.parent().addClass("ut-force-rev-slider-fullscreen"),C.addClass("ut-force-rev-slider-fullscreen"),C.siblings(".tp-fullwidth-forcer").addClass("ut-force-rev-slider-fullscreen"))}var u=t("img.utlazy");u.lazyload({effect:"fadeIn",effectspeed:"200",event:"scroll",load:function(){t(this).show(),t.waypoints("refresh")},failure_limit:Math.max(u.length-1,0)}),t(".ut-horizontal-navigation ul.menu").find(".current-menu-ancestor").each(function(){t(this).find("a").first().addClass("active")}).end().find(".current_page_parent").each(function(){t(this).find("a").first().addClass("active")}).end().superfish({autoArrows:!0,delay:15}).supposition(),t("#ut-mobile-menu").find(".current-menu-ancestor").each(function(){t(this).find("a").first().addClass("active")}).end().find(".current_page_parent").each(function(){t(this).find("a").first().addClass("active")}),t("#ut-mobile-menu .sub-menu li:last-child").addClass("last"),t("#ut-mobile-menu li:last-child").addClass("last");var h=t("#header-section"),f=t(".site-logo:not(.ut-overlay-site-logo)").find("img"),m=f.data("original-logo"),p=f.data("alternate-logo");t(window).utresize(function(){t(window).width()>979&&site_settings.mobile_nav_open&&t("#ut-open-mobile-menu").trigger("click")}),t(".ut-mm-trigger").one("click",e),t(".ut-scroll-pane").on("touchstart",function(){}),t(".ut-mobile-menu").data("collapsed")&&(t(".ut-mobile-menu .sub-menu").hide(),t(".ut-mobile-menu .menu-item-has-children > a").click(function(e){t(this).data("clicks")?(t(this).siblings(".sub-menu").hide(),t(this).data("clicks",!1)):(t(this).siblings(".sub-menu").show(),t(this).data("clicks",!0)),e.stopImmediatePropagation(),e.preventDefault()})),t(".ut-tablet-nav li a").click(function(e){var a=t(this).parent().index();t(".ut-tablet-nav li").removeClass("selected"),t(this).parent().addClass("selected"),t(".ut-tablet").children().hide().removeClass("show"),t(".ut-tablet").children().eq(a).fadeIn("fast").addClass("show"),e.preventDefault()});var g={is_scrolling:!1,scrolleffect:t("body").data("scrolleffect"),scrollspeed:t("body").data("scrollspeed"),init:function(){},scroll_to:function(e,a){self.is_scrolling=!0,t.scrollTo(e,this.scrollspeed,{easing:this.scrolleffect,offset:a,axis:"y",onAfter:function(){self.is_scrolling=!1,"object"==typeof e?e=e.attr("id"):e.indexOf("#")>-1&&(e=e.substring(1)),g.update_navigation(e)}})},check_navigation:function(e){let a=t(e).attr("id"),i=t('.ut-horizontal-navigation a[href*="#'+a+'"]');i.closest("ul").hasClass("sub-menu")&&i.closest("ul").parent().addClass("has-scroll-children")},update_navigation:function(e){if(!self.is_scrolling&&"main-content"!==e){if(g.clean_navigation(),"default"===site_settings.navigation){var a=t('.ut-horizontal-navigation a[href*="#'+e+'"]');a.addClass("selected"),a.closest("ul").hasClass("sub-menu")&&a.closest("ul").siblings("a").addClass("selected")}else"side"===site_settings.navigation&&t('#bklyn-sidenav a[href*="#'+e+'"]').addClass("selected");t('#ut-mobile-menu a[href*="#'+e+'"]').addClass("selected")}},update_home:function(){self.is_scrolling||(g.clean_navigation(),"default"===site_settings.navigation?(t(".ut-horizontal-navigation > ul > li").removeClass("sfHover"),t(".ut-horizontal-navigation a").removeClass("selected"),t(".ut-home-link > a").addClass("selected")):"side"===site_settings.navigation&&t('#bklyn-sidenav a[href*="#top"]').addClass("selected"),t("#ut-mobile-menu .ut-home-link > a").addClass("selected"))},clean_navigation:function(){"default"===site_settings.navigation?(t(".ut-horizontal-navigation > ul > li").removeClass("sfHover"),t(".ut-horizontal-navigation a").removeClass("selected")):"side"===site_settings.navigation&&t("#bklyn-sidenav a").removeClass("selected"),t("#ut-mobile-menu a").removeClass("selected")}};g.init(),t('.logo a[href*="#"], .ut-logo a[href*="#"]').click(function(e){e.preventDefault(),e.stopImmediatePropagation(),g.scroll_to(t(this).attr("href"),-site_settings.brooklyn_header_scroll_offset)}),t(".toTop").click(function(e){e.preventDefault(),e.stopImmediatePropagation(),g.scroll_to(t(this).attr("href"),-site_settings.brooklyn_header_scroll_offset)}),t('.hero-second-btn[href^="#"], .hero-btn[href^="#"], .hero-down-arrow a[href^="#"]').not(".ut-btn-disintegrate").not("#ut-hero-search-submit").click(function(e){e.stopImmediatePropagation(),e.preventDefault();var a=t(this).attr("href");if("#ut-to-first-section"===a){var i="";i=n.hasClass("ut-hero-has-fancy-border")?site_settings.brooklyn_header_scroll_offset+t("#ut-hero .ut-fancy-border").outerHeight()-1:site_settings.brooklyn_header_scroll_offset,g.scroll_to(t(".wrap"),-i)}else g.scroll_to(a,-site_settings.brooklyn_header_scroll_offset)}),t("#ut-hero-search-submit").click(function(e){e.stopImmediatePropagation(),e.preventDefault(),t("#searchform").submit()}),t('.hero-slider-button[href^="#"]').click(function(e){e.stopImmediatePropagation(),e.preventDefault();var a=t(this).attr("href");"#ut-to-first-section"===a?g.scroll_to(t(".wrap"),-site_settings.brooklyn_header_scroll_offset):g.scroll_to(a,-site_settings.brooklyn_header_scroll_offset)}),t('.ut-fancy-image-wrap a[href^="#"]').click(function(e){e.stopImmediatePropagation(),e.preventDefault();"#ut-to-first-section"===t(this).attr("href")?g.scroll_to(t(".wrap"),-site_settings.brooklyn_header_scroll_offset):g.scroll_to(t(this).attr("href"),-site_settings.brooklyn_header_scroll_offset)}),t(document).on("click",".ut-scroll-to-section, .ut-scroll-to-section a",function(e){var a=t(this).attr("href");if(void 0!==a){var i="#"+a.substring(a.indexOf("#")+1);g.scroll_to(i,-site_settings.brooklyn_header_scroll_offset),t('.ut-horizontal-navigation a[href*="'+i+'"]').length&&g.update_navigation(i),t('#bklyn-sidenav a[href*="'+i+'"]').length&&g.update_navigation(i),e.preventDefault()}}),window.location.hash&&setTimeout(function(){"default"===site_settings.navigation?g.scroll_to(window.location.hash,-site_settings.brooklyn_header_scroll_offset):"side"===site_settings.navigation&&g.scroll_to(window.location.hash,0)},400),t(".ut-horizontal-navigation a:not(.ut-header-search-trigger)").click(function(e){this.hash&&!t(this).hasClass("external")&&t(this.hash).length?(g.clean_navigation(),t(this).addClass("selected"),g.scroll_to(this.hash,-site_settings.brooklyn_header_scroll_offset),e.stopImmediatePropagation(),e.preventDefault()):this.hash&&t(this.hash).length&&t(this).parent().hasClass("contact-us")&&(g.scroll_to(this.hash,0),e.stopImmediatePropagation(),e.preventDefault()),"#"===t(this).attr("href")&&(e.stopImmediatePropagation(),e.preventDefault())}),t(".footer ul.menu a").click(function(e){this.hash&&t(this.hash).length&&(g.scroll_to(this.hash,-site_settings.brooklyn_header_scroll_offset),e.stopImmediatePropagation(),e.preventDefault())});var i=i();t("#ut-mobile-menu a").click(function(e){if(this.hash&&!t(this).hasClass("external")&&t(this.hash).length){if(i){var a=this.hash;t("html, body").animate({scrollTop:t(a).offset().top},ut_scrollspeed)}else g.scroll_to(this.hash,-site_settings.brooklyn_header_scroll_offset);e.stopImmediatePropagation(),e.preventDefault()}t(".ut-mm-trigger").trigger("click"),"#"===t(this).attr("href")&&(e.stopImmediatePropagation(),e.preventDefault())}),t("#bklyn-sidenav").length&&(t("#bklyn-sidenav").utvmenu({speed:800,autostart:!1,autohide:!0}),t("#bklyn-sidenav a").click(function(e){this.hash&&!t(this).hasClass("external")&&t(this.hash).length?(g.scroll_to(this.hash,0),e.stopImmediatePropagation(),e.preventDefault()):this.hash&&t(this).parent().hasClass("contact-us")&&(g.scroll_to(this.hash,0),e.stopImmediatePropagation(),e.preventDefault()),"#"===t(this).attr("href")&&(e.stopImmediatePropagation(),e.preventDefault())})),t(".ut-vc-offset-anchor-top").each(function(){g.check_navigation(this),t(this).waypoint(function(e){if(s){var a=t(this).data("id");"down"===e&&t('#navigation a[href*="#'+a+'"]').length?g.update_navigation(a):"down"!==e||t('#navigation a[href*="#'+a+'"]').length||g.update_home()}},{offset:site_settings.brooklyn_header_scroll_offset+"px"})}),t(".ut-vc-offset-anchor-bottom").each(function(){t(this).waypoint(function(e){if(s){var a=t(this).data("id");"up"===e&&t('.ut-horizontal-navigation a[href*="#'+a+'"]').length?g.update_navigation(a):"up"===e&&"section-without-id"===a&&g.update_home()}},{offset:site_settings.brooklyn_header_scroll_offset+20+"px"})}),t(".ut-offset-anchor").each(function(){t(this).waypoint(function(e){if("down"===e&&"to-main-content"!==t(this).attr("id")){var a=t(this).attr("id");t(this).data("parent")&&(a=t(this).data("parent")),"default"===site_settings.navigation?"section-contact"==a?(t(".ut-horizontal-navigation a").removeClass("selected"),t(".ut-horizontal-navigation li.contact-us a").addClass("selected")):g.update_navigation(a):"side"===site_settings.navigation&&(t("#bklyn-sidenav a").removeClass("selected"),t('#bklyn-sidenav a[href*="#'+a+'"]').addClass("selected"))}"up"===e&&"to-main-content"===t(this).attr("id")&&("default"===site_settings.navigation?(t(".ut-horizontal-navigation a").removeClass("selected"),t(".ut-home-link > a").addClass("selected")):"side"===site_settings.navigation&&(t("#bklyn-sidenav a").removeClass("selected"),t(".ut-home-link > a").addClass("selected")))},{offset:site_settings.brooklyn_header_scroll_offset+"px"})}),t(".ut-scroll-up-waypoint").each(function(){t(this).waypoint(function(e){if("up"===e){var a=t(this).data("section");t(this).data("parent")&&(a=t(this).data("parent")),g.update_navigation(a)}},{offset:site_settings.brooklyn_header_scroll_offset+10+"px"})}),t(".vc_section:not(.ut-section-with-linking)").each(function(){t(this).waypoint(function(e){var a=t(this).attr("id");"down"===e&&t('.ut-horizontal-navigation a[href*="#'+a+'"]').length?g.update_navigation(a):"down"===e&&!t('.ut-horizontal-navigation a[href*="#'+a+'"]').length&&t(".ut-home-link > a").length&&g.update_home()},{offset:site_settings.brooklyn_header_scroll_offset+1+"px"})}),t(document).on("click",'.bklyn-btn[href^="#"], .ut-btn[href^="#"], .cta-btn a[href^="#"], .ut-service-column-link[href^="#"], .ut-service-column-vertical-link[href^="#"], .ut-custom-link-module[href^="#"], .bklyn-big-icon-wrap a[href^="#"], .ut-animated-image-item a[href^="#"], .ut-custom-heading-module a[href^="#"], .ut-fancy-image-wrap a[href^="#"], .bklyn-fancy-list a[href^="#"], .ut-label-module[href^="#"], .ut-service-box-link[href^="#"]',function(e){this.hash&&t(this.hash).length?(e.stopImmediatePropagation(),e.preventDefault(),t(this).parent().hasClass("ut-btn-no-scroll-offset")?g.scroll_to(t(this).attr("href"),0):g.scroll_to(t(this).attr("href"),-site_settings.brooklyn_header_scroll_offset)):""!==this.hash&&"#"!==t(this).attr("href")||e.preventDefault()});if(t(".ut-btn-disintegrate").ut_require_js({plugin:"Particles",source:"buttonParticles",callback:function(e){e.each(function(e,a){var i=t(a),o=i.data("particle-effect"),s=i.data("particle-color"),n=i.data("particle-direction"),r=site_settings.button_particle_effects[o];r.color=s,r.direction=n,r.complete=function(){var e=i.attr("href").replace(/^.*?(#|$)/,"");e&&t("#"+e).length||"ut-to-first-section"===e?"ut-to-first-section"===e?g.scroll_to(t(".wrap"),-site_settings.brooklyn_header_scroll_offset):g.scroll_to("#"+e,-site_settings.brooklyn_header_scroll_offset):i.hasClass("ut-lightbox")||"#"!==i.attr("href")&&(e=i.attr("target").length?i.attr("target"):"_self",function(t,e){window.open(t,e).focus()}(i.attr("href"),e)),i.hasClass("ut-btn-integrate")?i.delay(3e3).queue(function(){t(this).data("particle-effect-storage").integrate({complete:function(){i.removeClass("ut-particles-deactivate-transition"),setTimeout(function(){i.parent().removeClass("ut-particles-deactivate-shadow")},400)}}),t(this).dequeue()}):(i.removeClass("ut-particles-deactivate-transition"),i.parent().removeClass("ut-particles-deactivate-shadow"))},i.data("particle-effect-storage",new Particles(i[0],r))}),t(e).click(function(e){t(this).parent().addClass("ut-particles-deactivate-shadow"),t(this).addClass("ut-particles-deactivate-transition"),t(this).data("particle-effect-storage").disintegrate(),e.preventDefault()})}}),t("iframe").each(function(){var e=t(this).attr("src");if(void 0!==e){var a=e.search("youtube"),i=e.split("?");a>0&&i[1]&&t(this).attr("src",e+"&wmode=transparent"),a>0&&!i[1]&&t(this).attr("src",e+"?wmode=transparent")}}),t(".vc_media_grid").ut_require_js({plugin:"lightGallery",source:"lightGallery",callback:function(t){t.lightGallery({mode:site_settings.lg_mode,selector:".ut-vc-ajax-images-lightbox",exThumbImage:"data-exthumbimage",download:site_settings.lg_download,hash:!1})}}),t(document).ajaxComplete(function(){t(".vc_media_grid").ut_require_js({plugin:"lightGallery",source:"lightGallery",callback:function(t){t.lightGallery({mode:site_settings.lg_mode,selector:".ut-vc-ajax-images-lightbox",exThumbImage:"data-exthumbimage",download:site_settings.lg_download,hash:!1})}})}),t(".woocommerce-product-gallery__wrapper a").ut_require_js({plugin:"lightGallery",source:"lightGallery",callback:function(t){t.lightGallery({mode:site_settings.lg_mode,selector:"this",iframeMaxWidth:"80%",download:site_settings.lg_download,hash:!1})}}),t(".ut-lightbox").ut_require_js({plugin:"lightGallery",source:"lightGallery",callback:function(t){t.lightGallery({mode:site_settings.lg_mode,selector:"this",iframeMaxWidth:"80%",download:site_settings.lg_download,hash:!1})}}),t(".ut-show-member-details").click(function(e){e.preventDefault(),t(".ut-overlay").addClass("ut-overlay-show"),t("#member_"+t(this).data("member")).addClass("ut-box-show").animate({top:"15%",opacity:1},1e3,"easeInOutExpo",function(){var e=t(this).offset().top,a=t(this).data("id");t(this).clone().attr("id",a).css({position:"absolute",top:e,"padding-top":0}).appendTo("body").addClass("member-clone"),t(this).removeClass("ut-box-show").css({top:"30%",opacity:"0"})})}),t(document).on("click",".ut-hide-member-details, body",function(e){t(e.target).is(".member-social, .member-social *, .ut-btn, .member-box a")||(t(".ut-modal-box.member-clone").length&&e.preventDefault(),t(".ut-modal-box.member-clone").animate({top:"0%",opacity:0},600,"easeInOutExpo",function(){t(this).remove(),t(".ut-overlay").removeClass("ut-overlay-show")}))}),t(document).on("click",".ut-overlay",function(e){e.preventDefault(),t(".ut-modal-box.member-clone").animate({top:"0%",opacity:0},600,"easeInOutExpo",function(){t(this).remove(),t(".ut-overlay").removeClass("ut-overlay-show")})}),!t("html").hasClass("no-touchevents")){var v;t(document).on("touchend",".member-photo",function(){var e=t(this);!0!==v&&e.hasClass("ut-touch-event")&&e.toggleClass("cs-hover")}).on("touchmove",function(){v=!0}).on("touchstart",function(){v=!1})}t(".nivoSlider").hover(function(){var e=t(this);e.find(".nivo-directionNav .nivo-prevNav").html(""),e.find(".nivo-directionNav .nivo-nextNav").html("")});var _=t("#ut-overlay-menu"),w=t("#ut-overlay-nav li a"),b=t("#ut-open-overlay-menu");if(t(document).on("click","#ut-open-overlay-menu",function(e){var a=t("#ut-open-overlay-menu").offset(),i=t("#header-section .site-logo").offset(),s=t("#ut-overlay-menu").offset();t(this).hasClass("is-active")?(window.requestAnimationFrame(r),b.prependTo("#ut-hamburger-wrap-overlay"),t("#ut-open-overlay-menu").removeAttr("style"),t("#ut-overlay-menu .site-logo").length&&t("#header-section .site-logo").fadeIn(),b.dequeue().delay(100).queue(function(){b.removeClass("is-active")})):(window.requestAnimationFrame(o),t("#ut-open-overlay-menu").css({top:a.top-s.top,left:a.left}),t("#ut-overlay-menu .site-logo").length&&(void 0===i&&(i={top:40,left:40}),t("#ut-overlay-menu .site-logo").css({top:i.top-s.top,left:i.left}),t("#header-section .site-logo").fadeOut()),b.prependTo("#ut-overlay-menu"),b.dequeue().delay(100).queue(function(){b.addClass("is-active")})),e.preventDefault()}),t(document).on("touchmove","#ut-overlay-menu",function(t){"click"!==t.type&&(t.stopImmediatePropagation(),t.preventDefault())}),document.addEventListener("keyup",function(t){27===t.keyCode&&b.hasClass("is-active")&&b.trigger("click")}),t("#ut-overlay-menu a").click(function(e){this.hash&&!t(this).hasClass("external")&&t(this.hash).length?(g.scroll_to(this.hash,-site_settings.brooklyn_header_scroll_offset),b.hasClass("is-active")&&b.trigger("click"),e.stopImmediatePropagation(),e.preventDefault()):this.hash&&t(this.hash).length&&t(this).parent().hasClass("contact-us")&&(g.scroll_to(this.hash,0),b.hasClass("is-active")&&b.trigger("click"),e.stopImmediatePropagation(),e.preventDefault()),"#"===t(this).attr("href")&&(e.stopImmediatePropagation(),e.preventDefault())}),t(".ut-header-search-trigger, .ut-top-header-search-trigger","#header-section").click(function(e){t("#ut-header-search-close","#ut-header-search").addClass("is-active"),t("#ut-header-search").addClass("ut-show-header-search"),t("#ut-header-searchform input").focus(),e.preventDefault()}),t("#ut-header-search-close","#ut-header-search").click(function(e){t(this).removeClass("is-active"),t("#ut-header-search").removeClass("ut-show-header-search"),e.preventDefault()}),document.addEventListener("keyup",function(e){27===e.keyCode&&t("#ut-header-search").hasClass("ut-show-header-search")&&t("#ut-header-search").removeClass("ut-show-header-search")}),window.devicePixelRatio>1||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())){t.fn.redraw=function(){return this.stop(!0,!0).hide(0,function(){t(this).show()})},t("#main-content section").each(function(){"fixed"===t(this).css("background-attachment")&&t(this).addClass("ut-has-fixed-background")});var y=t(document);y.scroll(function(){y.find(".ut-has-fixed-background").redraw()})}t(document).on("click",".ut-share-link",function(e){switch(t(this).data("social")){case"utsharetwitter":window.open("http://twitter.com/intent/tweet?url="+encodeURIComponent(location.href),"Twitter","width=650,height=350");break;case"utsharefacebook":window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(location.href),"facebook","width=650,height=350");break;case"utsharegoogle":window.open("https://plus.google.com/share?url="+encodeURIComponent(location.href),"googleWindow","width=500,height=500");break;case"utsharelinkedin":window.open("http://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(location.href)+"$title="+t(".page-title").text(),"linkedinWindow","width=650,height=450, resizable=1");break;case"utsharepinterest":window.open("http://pinterest.com/pin/create/bookmarklet/?media="+t(".entry-content img").first().attr("src")+"&description="+jQuery(".page-title").text()+" "+encodeURIComponent(location.href),"pinterestWindow","width=750,height=430, resizable=1");break;case"utsharexing":window.open("https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url="+encodeURIComponent(location.href),"deliciousWindow","width=550,height=550, resizable=1")}e.preventDefault()}),t(document).on("click",".ut-remove-header-cart-item",function(e){var a=t(this);a.parent().slideUp(function(){t.ajax({type:"POST",url:utShortcode.ajaxurl,data:{action:"remove_item_from_cart",cart_item_key:String(a.data("cart-item-key"))},success:function(e){a.parent().remove(),function(e){void 0!==e.cart_contents_count&&(t(".ut-header-cart-count").text(e.cart_contents_count),t(".ut-header-mini-cart-total-count").text(e.cart_contents_count)),void 0!==e.cart_contents_count&&t(".ut-header-mini-cart-total-price").html(e.cart_total),void 0!==e.cart_empty&&t(".ut-header-mini-cart-overflow-container").each(function(){t(this).html(e.cart_empty)})}(e),c(),l()}})}),e.preventDefault()}),l(),t(".ut-header-mini-cart-content").each(function(e,a){t(a).hasClass("ut-simplebar-initialized")||(t(a).addClass("ut-simplebar-initialized"),t(a).ut_require_js({plugin:"SimpleBar",source:"simplebar",callback:function(t){new SimpleBar(t.get(0))}}))}),t(document.body).on("added_to_cart",function(){c(),l()}),t(".ut-header-mini-cart-content").mouseenter(function(){site_settings.scrollDisabled=!0,n.disableScroll()}).mouseleave(function(){site_settings.scrollDisabled=!1,n.enableScroll()}),t(document).on("click",".quantity .decrease",function(e){var a=t(this),i=a.siblings(".qty").val(),o=parseFloat(i)-1;o>=1&&a.siblings(".qty").val(o).trigger("change"),e.preventDefault()}),t(document).on("click",".quantity .increase",function(e){var a=t(this),i=a.siblings(".qty").val(),o=parseFloat(i)+1;a.siblings(".qty").val(o).trigger("change"),e.preventDefault()});var C=!1;t("#ut-custom-hero").find(".rev_slider_wrapper").hasClass("fullscreen-container")&&(C=t("#ut-custom-hero").find(".rev_slider_wrapper")).one("revolution.slide.onloaded",function(t){d()}),t(window).utresize(function(){C&&d()}),t(".ut-portfolio-info-details a").on("click",function(e){"#"===t(this).attr("href")&&e.preventDefault()}),t("#ut-custom-contact-section").appear(),t(document.body).on("appear","#ut-custom-contact-section",function(){}),t(document.body).on("disappear","#ut-custom-contact-section",function(){}),t("#ut-hover-cursor").ut_require_js({plugin:"UT_Animated_Cursor",source:"customcursor",ieblock:!0,callback:function(){new window.UT_Animated_Cursor(document.getElementById("ut-hover-cursor"))}})}),window.UT_Adaptive_Images={image_observer:"",get_next_image_size:function(t){for(var e=[300,500,750,1e3,1500,2500],a=0;a<e.length;a++)if(e[a]===parseInt(t))return void 0!==e[a+1]?e[a+1]:e[a]},get_responsive_image:function(e,a){var i=t(e).data("adaptive-images");if(void 0!==i){var o=a?t(e).parent().width():t(e).outerWidth(),s=window.matchMedia("screen and (-webkit-min-device-pixel-ratio:2)");for(var n in i)if(o<n){if(s.matches){var r=UT_Adaptive_Images.get_next_image_size(n);if(void 0!==i[r])return!0,i[r]}return!0,i[n]}}return!1},load_responsive_background_image:function(t){var e=UT_Adaptive_Images.get_responsive_image(t,!1);e?t.style.backgroundImage="url('"+e+"')":t.getAttribute("data-src")&&(t.style.backgroundImage="url('"+t.getAttribute("data-src")+"')")},load_responsive_image:function(e){var a=UT_Adaptive_Images.get_responsive_image(e,!0);if(t(e).hasClass("ut-lazy-wait"))return!1;a?e.src=a:e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src"))},init_observer:function(e){this.image_observer=lozad(e,{rootMargin:"100%",load:function(t){UT_Adaptive_Images.load_responsive_image(t)},loaded:function(e){var a=t(e);a.addClass("ut-image-loaded loaded"),a.hasClass("ut-portfolio-featured-image")&&a.closest(".ut-portfolio-item").addClass("ut-portfolio-featured-image-loaded"),a.closest(".ut-image-gallery-image").length&&(a.closest(".ut-image-gallery-item").addClass("ut-image-loaded"),a.siblings(".ut-box-shadow-lazy").addClass("ut-box-shadow-ready")),a.delay(200).queue(function(){t.force_appear()}),a.hasClass("ut-lazy-wait")&&(a.data("loaded",!1),a.attr("data-loaded","false"),UT_Adaptive_Images.image_observer.observe(e))}}),this.image_observer.observe()},init_images:function(t){var e=document.querySelectorAll(".ut-adaptive-image");UT_Adaptive_Images.init_observer(e)}},UT_Adaptive_Images.init_images();var g;t(window).on("resize orientationchange load",function(){clearTimeout(g),g=setTimeout(function(){t(".ut-adaptive-image").each(function(e,a){t(a).is(":visible")&&t(a).parent().is(":visible")&&t(a).parent().width()+t(a).parent().height()>0&&UT_Adaptive_Images.load_responsive_image(a)})},250)}),t(".ut-selfvideo-player","#ut-hero").length&&(t(".ut-selfvideo-player","#ut-hero").each(function(){var e=this,a=t(this).attr("volume")/100;e.volume=a,t(".ut-video-control","#ut-hero").not(".youtube").click(function(a){t(this).hasClass("ut-unmute")?(e.muted=!1,t(this).removeClass("ut-unmute").addClass("ut-mute")):(e.muted=!0,t(this).removeClass("ut-mute").addClass("ut-unmute")),t(this).addClass("ut-player-assigned"),a.preventDefault()})}),t(".ut-video-control").not(".youtube").not(".ut-player-assigned").click(function(e){var a=t(this).data("for"),i=t("#"+a)[0];t(this).hasClass("ut-unmute")?(i.muted=!1,t(this).removeClass("ut-unmute").addClass("ut-mute")):(i.muted=!0,t(this).removeClass("ut-mute").addClass("ut-unmute")),e.preventDefault()})),t(window).on("load",function(){var e=!1;setTimeout(function(){if(!t(".ut-content-block-hero").length)return!1;t(".ut-vc-offset-anchor-top").each(function(){if(function(t){const e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}(this)&&!e){if("default"===site_settings.navigation){var a=t('.ut-horizontal-navigation a[href*="#'+t(this).data("id")+'"]');a.addClass("selected"),a.closest("ul").hasClass("sub-menu")&&a.closest("ul").siblings("a").addClass("selected")}else"side"===site_settings.navigation&&t('#bklyn-sidenav a[href*="#'+t(this).data("id")+'"]').addClass("selected");return e=!0,!0}})},100),s=!0})}(jQuery);