var ProjectFunctions=function(){var t=$("[data-js-main]").first(),n=$("[data-js-footer]").first();return{Init:function(){var n=this;n.BackToTop();n.HideEmptyContentWrappers();n.OldBrowsers.Init();n.ResponsiveTables();n.ExternalLinks();n.ChevronLinks();n.SocialMedia();n.StickyFooter();n.IE();document.addEventListener("SmoothStateLoaded",function(){n.BackToTop();n.ResponsiveTables();n.ExternalLinks();n.ChevronLinks();n.SmoothAnchors.init()})},IE:function(){var n=MQ.IE();n&&n<=11&&$("html").addClass("ie").addClass(["ie-",n.toString()].join(""))},HideEmptyContentWrappers:function(){$(".e-column-content__wrapper").each(function(){var n=$(this),t=$.trim(n.html());t===""&&n.remove()})},GetFixedElementsOffsetHeight:function(){var n=0,t=$("[data-js-indicator-filter-wrapper]"),i;return t.length&&(t.hasClass("is-fixed")||t.addClass("is-fixed"),n=t.outerHeight()),i=$(".h-wrapper").find("[data-js-fixed-wrapper]").first(),i.length&&i.css("position")==="fixed"&&(n+=i.outerHeight()),$("[data-variable-fixed]").each(function(t,i){$(i).css("position")==="fixed"&&(n+=$(i).outerHeight())}),n},SmoothAnchors:{property:{hash:""},init:function(){this.property.hash=location.hash;this.click();this.property.hash&&this.onPageLoad()},click:function(){var n=this;$(function(){$("[data-smooth-anchor]").click(function(t){var f=$(this),r=f.attr("href"),u=typeof r!="undefined"?$(r):undefined,i;typeof u!="undefined"&&u.length&&(i=u.offset().top,i=i-ProjectFunctions.GetFixedElementsOffsetHeight(),$("body, html").animate({scrollTop:i>0?i:0},1e3,function(){n.pushState(r)}),t.preventDefault())})})},onPageLoad:function(){var n=this;$(function(){var r=n.property.hash,t=$(r+", [name='"+r.substr(1)+"']").first(),i;t.length&&(i=t.offset().top,i=i-ProjectFunctions.GetFixedElementsOffsetHeight(),$("body, html").animate({scrollTop:i>0?i:0},1e3,function(){typeof(t.attr("data-js-concertina-trigger")!=="undefined")&&t.attr("aria-expanded")=="false"&&t.trigger("click");t.attr("tabindex","-1");t.trigger("focus");t.removeAttr("tabindex")}))})},pushState:function(n){var t=n?n:this.property.hash;if(history&&history.pushState){var i={hash:t},r=t.substring(1),u=[location.href.substring(0,location.href.indexOf("#")),t].join("");history.pushState(i,r,u)}}},BackToTop:function(){$("[data-js-back-to-top]").off("click.BackToTop").on("click.BackToTop",function(n){$("body,html").animate({scrollTop:0},1e3);$(".skip-to-content").last().focus().blur();n.preventDefault()});$(window).scroll(function(){var t=$(window).scrollTop(),i=$("footer").outerHeight(),n=$(".e-main-back-to-top__button");t>100?n.addClass("is-visible"):n.is(":focus")||n.removeClass("is-visible");$(document).height()-($(window).scrollTop()+$(window).height())<=i&&!n.is(":focus")&&n.removeClass("is-visible")})},OldBrowsers:{checks:[],Init:function(){for(var t=ProjectFunctions.OldBrowsers.checks,i=!1,u=function(){return!MQ.HasPlaceholders()},r,t=[MQ.LtIe10,u],n=0;n<t.length;n++)r=t[n],r()&&(i=!0);i&&$.getScript("/Custom/UI/Scripts/modules/Module.OldBrowsers.js",function(){OldBrowsers.Init()})}},SocialMedia:function(){function u(){n.addClass("is-active");i.attr("aria-hidden","false");t.attr("aria-expanded","true")}function r(){n.removeClass("is-active");i.attr("aria-hidden","true");t.attr("aria-expanded","false")}var n=$("[data-socials-wrapper]"),i=$("[data-socials-options]"),t=$("[data-socials-trigger]");t.on("click",function(t){t.preventDefault();t.stopPropagation();n.hasClass("is-active")?r():u()});$(document).on("click",function(t){$(t.target).closest("[data-socials-wrapper]").length==0&&n.hasClass("is-active")&&r()})},StickyFooter:function(){function i(){$("body").height()>$(window).height()?(t.css("padding-bottom",""),n.removeClass("is-sticky")):(t.css({"padding-bottom":[n.outerHeight(),"px"].join("")}),n.addClass("is-sticky"))}var r=debounce(function(){i()},200);i();$(window).resize(function(){r()})},ResponsiveTables:function(){if(typeof inCMS!="undefined"&&!inCMS){var n=$(".editable-text, .base-content, .cke_editable, .cke_panel_listItem").find("table.e-table-responsive, table.e-table-responsive--left");n.length&&n.each(function(){var n=$(this).find("thead"),r=$(this).find("tbody"),u=n.find("th"),f=r.find("tr"),t=[],i=n.length>0;i&&u.each(function(){t.push($(this).html());$(this).wrapInner("<div>")});f.each(function(){var n=$(this).find("td");n.each(function(){if($(this).wrapInner('<div class="table-cell-content" />'),i){var n=t[$(this).index()];$(this).prepend("<div class='table-cell-mobile-header'>"+n+"<\/div>")}})})})}},ExternalLinks:function(){if(typeof inCMS!="undefined"&&!inCMS){var n=$(".editable-text .external");n.each(function(){$(this).find("svg").length==0&&($(this).attr("rel","noopener noreferrer"),$(this).append('<span class="sr-only"> - external site opens in new window<\/span><svg class="icon icon-new-tab h-util-list__button__icon" focusable="false" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Custom/UI/Content/icons/symbol-defs.svg#icon-new-tab"><\/use><\/svg>'))})}},ChevronLinks:function(){if(typeof inCMS!="undefined"&&!inCMS){var n=$(".editable-text .s-link-icon-chevron");n.each(function(){$(this).find("svg").length==0&&$(this).append('<svg class="icon icon-chevron-right" focusable="false" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Custom/UI/Content/icons/symbol-defs.svg#icon-chevron-right"><\/use><\/svg>')})}}}}()