!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"]},o=function(){var e=t("li",this),a=parseInt(e.css("z-index"))+e.length;e.each((function(){t(this).css({zIndex:--a})}))},i=function(){this.css({marginTop:"",marginLeft:""})},n=function(){this.each((function(){var o=t(this);o.css("display","block");var i=o.width(),n=o.parents("ul").width(),s=e.width()+a("x"),r=o.offset().left+i;r>s&&o.css("margin-left",(1===o.parents("ul").length?s-r:-(i+n))+"px");var l=e.height(),c=o.offset().top,u=o.height(),d=l+a("y");c+u>d&&o.css("margin-top",d-(u+c))}))};return this.each((function(){var e=t(this),a=e.data("sf-options"),s=a.onInit,r=a.onBeforeShow,l=a.onHide;t.extend(e.data("sf-options"),{onInit:function(){o.call(this),s.call(this)},onBeforeShow:function(){n.call(this),r.call(this)},onHide:function(){i.call(this),l.call(this)}})}))},t.fn.utvmenu=function(e){var a,o,i=t.extend({speed:200,autostart:!0,autohide:1},e);(o=(a=t(this)).find("ul").parent("li").children("a")).attr("data-option","off"),o.unbind("click").on("click",(function(){var e=t(this);i.autohide&&e.parent().parent().find("a[data-option='on']").parent("li").children("ul").slideUp(i.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(i.speed,(function(){e.attr("data-option","on")})),"on"===e.attr("data-option")&&(e.attr("data-option","off"),e.parent("li").children("ul").slideUp(i.speed))})),i.autostart&&a.find("a").each((function(){t(this).parent("li").parent("ul").slideDown(i.speed,(function(){t(this).parent("li").children("a").attr("data-option","on")}))}))};var e,a={},o=void 0,i=0,n=!1,s=0,r=function(){e={width:window.innerWidth,height:window.innerHeight}};r(),window.addEventListener("resize",r);const l=function(t,e,a,o,i){return(t-e)*(i-o)/(a-e)+o};var c=function(e){var o=t(e),i=e.getAttribute("data-parallax-factor"),n=void 0,s=o.css("transform");i=""!==i?parseFloat(i):a.factor||10,e.factor=i,e.rect={top:o.offset().top,left:o.offset().left,width:o.width(),height:o.height()},e.initialOffset=e.rect.top,"none"!==s&&(n=u(s)),e.transforms=n};window._isElementInViewport=function(e){var a=t(window),o=a.scrollTop(),i=e.offset().top;return i+e.height()>=o&&i-(e.data("appear-top-offset")||0)<=o+a.height()};var u=function(t){var e=t.split("(")[1];e=(e=e.split(")")[0]).split(",");var a=Math.atan2(e[1],e[0]),o=Math.pow(e[0],2)+Math.pow(e[1],2),i=Math.sqrt(o),n=(e[0]*e[3]-e[2]*e[1])/i,s=Math.atan2(e[0]*e[2]+e[1]*e[3],o);return{rotate:a/(Math.PI/180),scaleX:i,scaleY:n,skewX:s/(Math.PI/180),skewY:0,translateX:e[4],translateY:e[5]}},d=function(a,o){var n=t(a),r=t(a.parentNode),c=n.offset().top,u=r.offset(),d=(u.top,u.top+r.outerHeight()),h=c-i,f=a.factor;t(window);""===n.data("parallax-remove-general-offset")&&(h+=s),""===n.data("parallax-remove-initial-offset")&&(h-=a.initialOffset),"bottom"===o&&(f*=-1);var m=h/f,p=0;!1!==_isElementInViewport(n)&&n.hasClass("parallax-scroll-container-calculated")&&!site_settings.scrollDisabled&&(n.hasClass("parallax-scroll-container-hide")&&!n.siblings(".mbYTP_wrapper").length&&n.removeClass("parallax-scroll-container-hide"),n.data("parallax-position-x")&&(p=n.data("parallax-position-x")),n.data("parallax-scale")?TweenMax.set(a,{scale:l(u.top-i,e.height,-1*r.outerHeight(),i>d?1-(n.data("parallax-scale")-1):1,n.data("parallax-scale"))}):n.data("parallax-scale-move")?TweenMax.set(a,{x:p,y:m,scale:l(u.top-i,e.height,-1*r.outerHeight(),i>d?1-(n.data("parallax-scale")-1):1,n.data("parallax-scale-move"))}):TweenMax.set(a,{x:p,y:m}))},h=function(){i<=0&&(n=!1);for(var t=0;t<o.length;t++)d(o[t],"bottom");n=!1},f=function(){if(i=window.scrollY||window.pageYOffset,!a.mobile&&window.matchMedia&&window.matchMedia(a.mediaQuery).matches)return!1;!n&&window.requestAnimationFrame&&(window.requestAnimationFrame(h),n=!0)},m=function(t,e){s=e},p=function(){o.length>0&&function(){for(var t=0;t<o.length;t++)c(o[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),(o=t(a.selector)).length>0&&(p(),f(),t(window).on("scroll",f)),t(window).on("resize load",p)}}(jQuery),function(t){"use strict";t("html").addClass("js");var e=!1,a=t("body"),o=t("#header-section");navigator.userAgent.indexOf("Chrome");function i(){site_settings.brooklyn_header_scroll_offset=o.data("line-height"),o.hasClass("ut-header-fixed")&&(site_settings.brooklyn_header_scroll_offset=0),o.hasClass("ut-header-fixed")||(t(window).width()>767&&t(window).width()<=1024&&(o.css("transform","translate3d(0,0,0)"),site_settings.brooklyn_header_scroll_offset=80),t(window).width()<=767&&(o.css("transform","translate3d(0,0,0)"),site_settings.brooklyn_header_scroll_offset=60))}function n(){return window.pageYOffset||document.documentElement.scrollTop}function s(e){"style-9"===o.data("style")&&1===o.data("scrolldepth")&&("down"===e?(t(".site-logo").css({height:o.data("line-height"),"line-height":o.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")))}i(),t(window).utresize((function(){i()}));var r,l="",c="",u="",d="",h="",f=!1,m=!1;function p(){t(window).width()<=1025||(m=!0,n()<d?n()<=h&&(-n()>u&&(t("#ut-header-placeholder").height(c-n()),-n(),o.css("transform","translate3d(0,0,0)"),s("up"),f=!1),t("#ut-header-placeholder").length&&0===n()&&(site_settings.brooklyn_header_scroll_offset=Math.abs(u)+o.data("line-height"))):n()>0&&(f||(t("#ut-header-placeholder").height(o.data("line-height")-l),o.css("transform","translate3d(0,"+u+"px,0)"),s("down"),t("#ut-header-placeholder").length&&(site_settings.brooklyn_header_scroll_offset=o.data("line-height")),f=!0)),d=n())}t(window).utresize((function(){t(window).width()<1025&&s("up"),t.waypoints("refresh")})),l=a.hasClass("ut-site-border-top")?parseInt(site_settings.siteframe_size):0,c=o.data("total-height"),u=o.data("line-height")-l-c,d=0,h=a.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(u+c+40)})}}),o.hasClass("ut-header-floating")&&!a.hasClass("ut-header-hide-on-hero")&&(0===window.pageYOffset&&t("#ut-header-placeholder").length&&(site_settings.brooklyn_header_scroll_offset=Math.abs(u)+o.data("line-height")),t(window).scroll((function(){window.requestAnimationFrame(p)})),window.requestAnimationFrame(p)),setInterval((function(){m&&(m=!1,t.waypoints("refresh"))}),200),t(".parallax-scroll-container:not(.parallax-scroll-container-disabled)").each((function(){var e=t(this),a=t(window).height(),o=e.outerHeight();if(o<a){var i=100-100*o/a+100;e.css("height",i+"%").css("margin-top",-(e.outerHeight()-o)/2+"px").addClass("parallax-scroll-container-calculated")}o>=a&&e.css("height","105%").css("margin-top",-(e.outerHeight()-o)/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(){var e="";function a(a,o){o.data("particlestate")||(particlesJS(a,o.data("effect-config")),o.data("particlestate",!0)),o.data("particlestate")&&(void 0!==typeof pJSDom&&o.css("visibility","hidden"),clearTimeout(e),e=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))}t(".bklyn-overlay-effect[data-effect='particle']").ut_require_js({plugin:"particlesJS",source:"particlesJS",callback:function(e){e.each((function(){var e=t(this),o=e.attr("id");e.data("particlestate",!1),new ResizeSensor(e,(function(){a(o,e)})),a(o,e)}))}}),t(".bklyn-overlay-effect[data-effect='aurora']").ut_require_js({plugin:"auroraJS",source:"auroraJS",callback:function(e){e.each((function(){let e=t(this);new window.UT_Aurora_Effect(this,(function(t){let a=function(){t.draw(),requestAnimationFrame(a)};requestAnimationFrame(a),new ResizeSensor(e,(function(){t.resize()}))}))}))}}),t(".bklyn-overlay-effect[data-effect='shift']").ut_require_js({plugin:"shiftJS",source:"shiftJS",callback:function(e){e.each((function(){let e=t(this);new window.UT_Shift_Effect(this,(function(t){let a=function(){t.draw(),requestAnimationFrame(a)};requestAnimationFrame(a),new ResizeSensor(e,(function(){t.resize()}))}))}))}}),t(".bklyn-overlay-effect[data-effect='swirl']").ut_require_js({plugin:"swirlJS",source:"swirlJS",callback:function(e){e.each((function(){let e=t(this);new window.UT_Swirl_Effect(this,(function(t){let a=function(){t.draw(),requestAnimationFrame(a)};requestAnimationFrame(a),new ResizeSensor(e,(function(){t.resize()}))}))}))}}),t(".bklyn-overlay-effect[data-effect='coalesce']").ut_require_js({plugin:"coalesceJS",source:"coalesceJS",callback:function(e){e.each((function(){let e=t(this);new window.UT_Coalesce_Effect(this,(function(t){let a=function(){t.draw(),requestAnimationFrame(a)};requestAnimationFrame(a),new ResizeSensor(e,(function(){t.resize()}))}))}))}}),t(".bklyn-overlay-effect[data-effect='pipeline']").ut_require_js({plugin:"pipelineJS",source:"pipelineJS",callback:function(e){e.each((function(){let e=t(this);new window.UT_Pipeline_Effect(this,(function(t){let a=function(){t.draw(),requestAnimationFrame(a)};requestAnimationFrame(a),new ResizeSensor(e,(function(){t.resize()}))}))}))}}),window.location.hash&&setTimeout((function(){"default"===site_settings.navigation?window.UT_Scroll.scroll_to(window.location.hash,-site_settings.brooklyn_header_scroll_offset):"side"===site_settings.navigation&&window.UT_Scroll.scroll_to(window.location.hash,0)}),400)})),t(document).ready((function(){var o=t("img.utlazy");o.lazyload({effect:"fadeIn",effectspeed:"200",event:"scroll",load:function(){t(this).show(),t.waypoints("refresh")},failure_limit:Math.max(o.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 i=t("#header-section"),n=t(".site-logo:not(.ut-overlay-site-logo)").find("img"),s=n.data("original-logo"),r=n.data("alternate-logo");function l(){var e,a;t("#ut-open-mobile-menu").addClass("is-active"),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),i.removeClass(i.data("primary-skin")).addClass(i.data("secondary-skin")),t("body").addClass("ut-mobile-menu-open"),t("#ut-mobile-nav").delay(250).slideToggle(600),n.each((function(){t(this).attr("src",r)})),site_settings.mobile_nav_open=!0,t(this).one("click",c)}function c(){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||n.each((function(){t(this).attr("src",s)})),i.removeClass(i.data("secondary-skin")).addClass(i.data("primary-skin")),t("body").removeClass("ut-mobile-menu-open"),t(this).hide()})),site_settings.mobile_nav_open=!1,t(this).one("click",l)}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",l),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").on("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").on("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()})),window.UT_Scroll={is_scrolling:!1,scroll_effect:t("body").data("scrolleffect"),scroll_speed:t("body").data("scrollspeed"),init:function(){},scroll_to:function(e,a){self.is_scrolling=!0,t.scrollTo(e,this.scroll_speed,{easing:this.scroll_effect,offset:a,axis:"y",onAfter:function(){self.is_scrolling=!1,"object"==typeof e?e=e.attr("id"):e.indexOf("#")>-1&&(e=e.substring(1)),UT_Scroll.update_navigation(e)}})},check_navigation:function(e){let a=t(e).attr("id"),o=t('.ut-horizontal-navigation a[href*="#'+a+'"]');o.closest("ul").hasClass("sub-menu")&&o.closest("ul").parent().addClass("has-scroll-children")},update_dots:function(e){t("#ut-scroll-dots > div").removeClass("selected"),t('#ut-scroll-dots > div[data-section="#'+e+'"]').addClass("selected")},update_navigation:function(e){if(!self.is_scrolling&&"main-content"!==e){if(UT_Scroll.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"),t('#ut-scroll-dots > div[data-section="#'+e+'"]').addClass("selected")}},update_home:function(){self.is_scrolling||(UT_Scroll.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"),t("#ut-scroll-dots > div").removeClass("selected")}},UT_Scroll.init(),t('.logo a[href*="#"], .ut-logo a[href*="#"]').on("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),UT_Scroll.scroll_to(t(this).attr("href"),-site_settings.brooklyn_header_scroll_offset)})),t(".toTop").on("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),UT_Scroll.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").on("click",(function(e){e.stopImmediatePropagation(),e.preventDefault();var o=t(this).attr("href");if("#ut-to-first-section"===o){var i="";i=a.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,UT_Scroll.scroll_to(t(".wrap"),-i)}else UT_Scroll.scroll_to(o,-site_settings.brooklyn_header_scroll_offset)})),t("#ut-hero-search-submit").on("click",(function(e){e.stopImmediatePropagation(),e.preventDefault(),t("#searchform").submit()})),t('.hero-slider-button[href^="#"]').on("click",(function(e){e.stopImmediatePropagation(),e.preventDefault();var a=t(this).attr("href");"#ut-to-first-section"===a?UT_Scroll.scroll_to(t(".wrap"),-site_settings.brooklyn_header_scroll_offset):UT_Scroll.scroll_to(a,-site_settings.brooklyn_header_scroll_offset)})),t('.ut-fancy-image-wrap a[href^="#"]').on("click",(function(e){e.stopImmediatePropagation(),e.preventDefault(),"#ut-to-first-section"===t(this).attr("href")?UT_Scroll.scroll_to(t(".wrap"),-site_settings.brooklyn_header_scroll_offset):UT_Scroll.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 o="#"+a.substring(a.indexOf("#")+1);UT_Scroll.scroll_to(o,-site_settings.brooklyn_header_scroll_offset),t('.ut-horizontal-navigation a[href*="'+o+'"]').length&&UT_Scroll.update_navigation(o),t('#bklyn-sidenav a[href*="'+o+'"]').length&&UT_Scroll.update_navigation(o),e.preventDefault()}})),t(".ut-horizontal-navigation a:not(.ut-header-search-trigger)").on("click",(function(e){this.hash&&!t(this).hasClass("external")&&t(this.hash).length?(UT_Scroll.clean_navigation(),t(this).addClass("selected"),UT_Scroll.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")&&(UT_Scroll.scroll_to(this.hash,0),e.stopImmediatePropagation(),e.preventDefault()),"#"===t(this).attr("href")&&(e.stopImmediatePropagation(),e.preventDefault())})),t(".footer ul.menu a").on("click",(function(e){this.hash&&t(this.hash).length&&(UT_Scroll.scroll_to(this.hash,-site_settings.brooklyn_header_scroll_offset),e.stopImmediatePropagation(),e.preventDefault())}));var u=u();function u(){var t=new RegExp("IEMobile","i");return navigator.userAgent.match(t)}t("#ut-mobile-menu a").on("click",(function(e){if(this.hash&&!t(this).hasClass("external")&&t(this.hash).length){if(u){var a=this.hash;t("html, body").animate({scrollTop:t(a).offset().top},ut_scrollspeed)}else UT_Scroll.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").on("click",(function(e){(this.hash&&!t(this).hasClass("external")&&t(this.hash).length||this.hash&&t(this).parent().hasClass("contact-us"))&&(UT_Scroll.scroll_to(this.hash,0),e.stopImmediatePropagation(),e.preventDefault()),"#"===t(this).attr("href")&&(e.stopImmediatePropagation(),e.preventDefault())}))),t(".vc_section").each((function(){if(!t(".ut-vc-offset-anchor-top",this).length){let a=t(this).attr("id");t(this).waypoint((function(t){if(!e)return!1;"down"===t&&UT_Scroll.update_dots(a)}))}})),t(".ut-vc-offset-anchor-top").each((function(){UT_Scroll.check_navigation(this),t(this).waypoint((function(a){if(!e)return;let o=t(this).data("id");"down"===a&&t('#navigation a[href*="#'+o+'"]').length?UT_Scroll.update_navigation(o):"down"!==a||t('#navigation a[href*="#'+o+'"]').length||UT_Scroll.update_home()}),{offset:site_settings.brooklyn_header_scroll_offset+"px"})})),t(".ut-vc-offset-anchor-bottom").each((function(){t(this).waypoint((function(a){if(!e)return;let o=t(this).data("id");"up"===a&&t('.ut-horizontal-navigation a[href*="#'+o+'"]').length?UT_Scroll.update_navigation(o):"up"===a&&"section-without-id"===o&&UT_Scroll.update_home(),t(".ut-vc-offset-anchor-top",t(this).parent()).length&&"up"===a?UT_Scroll.update_dots(t(this).siblings(".ut-vc-offset-anchor-top").data("id")):"up"===a&&"section-without-id"===o?UT_Scroll.update_dots(t(this).parent().attr("id")):"up"===a&&o&&UT_Scroll.update_dots(o)}),{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")):UT_Scroll.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")),UT_Scroll.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?UT_Scroll.update_navigation(a):"down"===e&&!t('.ut-horizontal-navigation a[href*="#'+a+'"]').length&&t(".ut-home-link > a").length&&UT_Scroll.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")?UT_Scroll.scroll_to(t(this).attr("href"),0):UT_Scroll.scroll_to(t(this).attr("href"),-site_settings.brooklyn_header_scroll_offset)):""!==this.hash&&"#"!==t(this).attr("href")||e.preventDefault()}));var d;(t(".ut-btn-disintegrate").ut_require_js({plugin:"Particles",source:"buttonParticles",callback:function(e){e.each((function(e,a){var o=t(a),i=o.data("particle-effect"),n=o.data("particle-color"),s=o.data("particle-direction"),r=site_settings.button_particle_effects[i];r.color=n,r.direction=s,r.complete=function(){var e=o.attr("href").replace(/^.*?(#|$)/,"");e&&t("#"+e).length||"ut-to-first-section"===e?"ut-to-first-section"===e?UT_Scroll.scroll_to(t(".wrap"),-site_settings.brooklyn_header_scroll_offset):UT_Scroll.scroll_to("#"+e,-site_settings.brooklyn_header_scroll_offset):o.hasClass("ut-lightbox")||"#"!==o.attr("href")&&(e=o.attr("target").length?o.attr("target"):"_self",function(t,e){window.open(t,e).focus()}(o.attr("href"),e)),o.hasClass("ut-btn-integrate")?o.delay(3e3).queue((function(){t(this).data("particle-effect-storage").integrate({complete:function(){o.removeClass("ut-particles-deactivate-transition"),setTimeout((function(){o.parent().removeClass("ut-particles-deactivate-shadow")}),400)}}),t(this).dequeue()})):(o.removeClass("ut-particles-deactivate-transition"),o.parent().removeClass("ut-particles-deactivate-shadow"))},o.data("particle-effect-storage",new Particles(o[0],r))})),t(e).on("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"),o=e.split("?");a>0&&o[1]&&t(this).attr("src",e+"&wmode=transparent"),a>0&&!o[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").ut_require_js({plugin:"lightGallery",source:"lightGallery",callback:function(t){t.lightGallery({mode:site_settings.lg_mode,selector:"a",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").on("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"))||t(document).on("touchend",".member-photo",(function(){var e=t(this);!0!==d&&e.hasClass("ut-touch-event")&&e.toggleClass("cs-hover")})).on("touchmove",(function(){d=!0})).on("touchstart",(function(){d=!1}));t(".nivoSlider").on("hover",(function(){var e=t(this);e.find(".nivo-directionNav .nivo-prevNav").html(""),e.find(".nivo-directionNav .nivo-nextNav").html("")}));var h=t("#ut-overlay-menu"),f=t("#ut-overlay-nav li a"),m=t("#ut-open-overlay-menu");function p(){f.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"),h.addClass("ut-overlay-menu-visible"),setTimeout((function(){f.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*f.length+100)}),500)}function g(){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(){h.removeClass("ut-overlay-menu-visible"),setTimeout((function(){f.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)}if(t(document).on("click","#ut-open-overlay-menu",(function(e){var a=t("#ut-open-overlay-menu").offset(),o=t("#header-section .site-logo").offset(),i=t("#ut-overlay-menu").offset();t(this).hasClass("is-active")?(window.requestAnimationFrame(g),m.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(),m.dequeue().delay(100).queue((function(){m.removeClass("is-active")}))):(window.requestAnimationFrame(p),t("#ut-open-overlay-menu").css({top:a.top-i.top,left:a.left}),t("#ut-overlay-menu .site-logo").length&&(void 0===o&&(o={top:40,left:40}),t("#ut-overlay-menu .site-logo").css({top:o.top-i.top,left:o.left}),t("#header-section .site-logo").fadeOut()),m.prependTo("#ut-overlay-menu"),m.dequeue().delay(100).queue((function(){m.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&&m.hasClass("is-active")&&m.trigger("click")})),t("#ut-overlay-menu a").on("click",(function(e){this.hash&&!t(this).hasClass("external")&&t(this.hash).length?(UT_Scroll.scroll_to(this.hash,-site_settings.brooklyn_header_scroll_offset),m.hasClass("is-active")&&m.trigger("click"),e.stopImmediatePropagation(),e.preventDefault()):this.hash&&t(this.hash).length&&t(this).parent().hasClass("contact-us")&&(UT_Scroll.scroll_to(this.hash,0),m.hasClass("is-active")&&m.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").on("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").on("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 v=t(document);v.scroll((function(){v.find(".ut-has-fixed-background").redraw()}))}function _(){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 w(){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")}))}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),w(),_()}})})),e.preventDefault()})),_(),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(){w(),_()})),t(".ut-header-mini-cart-content").on("mouseenter",(function(){site_settings.scrollDisabled=!0,a.disableScroll()})).on("mouseleave",(function(){site_settings.scrollDisabled=!1,a.enableScroll()})),t(document).on("click",".quantity .decrease",(function(e){var a=t(this),o=a.siblings(".qty").val(),i=parseFloat(o)-1;i>=1&&a.siblings(".qty").val(i).trigger("change"),e.preventDefault()})),t(document).on("click",".quantity .increase",(function(e){var a=t(this),o=a.siblings(".qty").val(),i=parseFloat(o)+1;a.siblings(".qty").val(i).trigger("change"),e.preventDefault()}));var b=!1;function y(){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),b.hasClass("ut-force-rev-slider-fullscreen")?b.children(".rev_slider").revredraw():(b.parent().addClass("ut-force-rev-slider-fullscreen"),b.addClass("ut-force-rev-slider-fullscreen"),b.siblings(".tp-fullwidth-forcer").addClass("ut-force-rev-slider-fullscreen"))}t("#ut-custom-hero").find(".rev_slider_wrapper").hasClass("fullscreen-container")&&(b=t("#ut-custom-hero").find(".rev_slider_wrapper")).one("revolution.slide.onloaded",(function(t){y()})),t(window).utresize((function(){b&&y()})),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 o=t(e).data("adaptive-images");if(void 0!==o){var i=a?t(e).parent().width():t(e).outerWidth(),n=window.matchMedia("screen and (-webkit-min-device-pixel-ratio:2)");for(var s in o)if(i<s){if(n.matches){var r=UT_Adaptive_Images.get_next_image_size(s);if(void 0!==o[r])return!0,o[r]}return!0,o[s]}}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(),t(window).on("resize orientationchange load",(function(){clearTimeout(r),r=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").on("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").on("click",(function(e){var a=t(this).data("for"),o=t("#"+a)[0];t(this).hasClass("ut-unmute")?(o.muted=!1,t(this).removeClass("ut-unmute").addClass("ut-mute")):(o.muted=!0,t(this).removeClass("ut-mute").addClass("ut-unmute")),e.preventDefault()}))),t(window).on("load",(function(){var a=!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)&&!a){if("default"===site_settings.navigation){var e=t('.ut-horizontal-navigation a[href*="#'+t(this).data("id")+'"]');e.addClass("selected"),e.closest("ul").hasClass("sub-menu")&&e.closest("ul").siblings("a").addClass("selected")}else"side"===site_settings.navigation&&t('#bklyn-sidenav a[href*="#'+t(this).data("id")+'"]').addClass("selected");return a=!0,!0}}))}),100),e=!0}))}(jQuery);