function setLogoWidth(){var n=$(".mainLogo img").attr("width");n<350&&$(".mainLogo").css({"max-width":n,"margin-left":-n/2,width:"auto"})}function minHeightFeature(n){var t=$(".mainFeature"),i;t.children().length==0&&n!="767"&&n!="640"?(i=$nav.outerHeight(),$(".stickyHeader.siteHeader7").length==0&&t.css("min-height",i)):t.css("min-height","")}var $headerInner=$("#siteHeadInner"),$nav=$("#navigation"),$body=$("body"),$mobileOpener=$("#mobileHeader .mobileMenuButton"),$mobileHeaderShare=$("#mobileHeader .socialLinks"),$stayInformedContour=$(".stayInformedForm .contour"),$stayInformedText=$(".stayInformedForm .stayInformedText"),$stayInformedClose=$(".stayInformedClose"),navName,navTimer,childCount,timer,width=$(window).width(),height=$(window).height(),stayInformed,navigation;$(function(){updateMobileDropdowns($(".navDropdown, .subNavDropdown"));setNavClassShared($("#topLinksList"),!0);setLogoWidth();navigation.handleNavigation(currentMediaQuery);stayInformed.initializeForm(currentMediaQuery);minHeightFeature(currentMediaQuery)});$(window).on("resize",function(){stayInformed.checkForm(currentMediaQuery);($(window).width()!=width||$(window).height()!=height)&&(width=$(window).width(),height=$(window).height(),navigation.handleNavigation(currentMediaQuery),minHeightFeature(currentMediaQuery));$(".siteFooter9").length==0&&($(".stayInformedFormStickyHeader12").length>0?$("#siteHeader").css("margin-top",$(".stayInformedFormStickyHeader12").height()):$(".stayInformedStyles").length>0)});stayInformed={initializeForm:function(n){this.openContourForm();this.openContourFormMobile();this.checkForm(n)},openContourForm:function(){$(".stayInformedForm .contourField").on("click",function(){$(".stayInformedForm .contourField").animate({width:"115px",marginLeft:"5px",marginRight:"5px"},{complete:function(){$(".siteFooter9").length==0&&($(".stayInformedFormStickyHeader12").length>0?$(window).outerWidth()<=1024&&$("#siteHeader").css("margin-top",$(".stayInformedFormStickyHeader12").height()):$(".stayInformedStyles").length>0)}})})},openContourFormMobile:function(){if($(".stayInformedForm .contourMessageOnSubmit").length===0){$stayInformedText.on("click",function(){$(this).parent().addClass("open");$stayInformedContour.slideDown()});$stayInformedClose.on("click",function(){$(this).parent().removeClass("open");$stayInformedContour.slideUp()})}},resizeContourForm:function(n){var t=n==="767"||n==="640";t?this.openContourFormMobile():t||($stayInformedText.unbind("click"),$stayInformedClose.unbind("click"),$(".stayInformedForm").removeClass("open"),$stayInformedContour.css({display:"",overflow:""}))},checkForm:function(n){$(".stayInformedForm .contourMessageOnSubmit").length>0?$(".stayInformedForm").addClass("submitedForm"):this.resizeContourForm(n)}};navigation={handleNavigation:function(n){if(n!=="767"&&n!=="640"){if($body.hasClass("desktopNavigation"))return navigation.secondLevelNavigationPosition(),!1;this.unBindPhoneNavigation();$body.addClass("desktopNavigation");preventNavigationContainerClicks();this.secondLevelNavigationPosition();this.bindDesktopNavigation()}else{if($body.hasClass("phoneNavigation"))return navigation.setMinHeightNav(),!1;$body.addClass("phoneNavigation");this.unBindDesktopNavigation();this.bindPhoneNavigation();this.alignMenuOpener()}return!1},alignMenuOpener:function(){if($mobileHeaderShare.length>0){var n=$mobileOpener.outerHeight(),t=$mobileHeaderShare.outerHeight();n>t?$mobileHeaderShare.css("line-height",n+"px"):$mobileOpener.css("line-height",t+"px")}},bindPhoneNavigation:function(){$(".mobileMenuButton").on("click",function(){$(this).toggleClass("open");$(".navigationHolder").slideToggle();navigation.setMinHeightNav()});$(".hasDrop:not(.noMobileDrop) > a").on("touchend click",function(n){n.preventDefault();n.stopImmediatePropagation();$(".hasDrop > a").attr("aria-expanded","false");$(this).parent().toggleClass("displayDrop");$(this).parent().hasClass("displayDrop")&&$(this).attr("aria-expanded","true");$(this).next().slideToggle().addClass("openNav");$(this).parent().siblings().removeClass("displayDrop").find(".openNav").slideUp().removeClass("openNav")})},unBindPhoneNavigation:function(){$body.removeClass("phoneNavigation");$(".hasDrop").removeClass("displayDrop");$(".hasDrop > a").attr("aria-expanded","false");$(".openNav").removeClass("openNav");$(".subNavDropdown, .navDropdown").css({overflow:"",display:"",height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""});$(".navigationHolder").css({overflow:"",display:""});$mobileHeaderShare.css("line-height","");$mobileOpener.css("line-height","");$("#container").css("min-height","");$(".hasDrop > a").off("touchend click");$(".mobileMenuButton").off("click").removeClass("open")},bindDesktopNavigation:function(){var n="displayDrop",t=!1,i;if($(".touch").length>0){i="click";"ontouchstart"in document.documentElement?i="touchend":(t=!0,n="displayDrop touched");$(".hasDrop.mainNavLiItem > a").on(i,function(t){return(t.preventDefault(),t.stopImmediatePropagation(),clearTimeout(timer),$(this).parent().hasClass("displayDrop"))?($(this).parent().removeClass(n),$(this).attr("aria-expanded","false"),!1):($(".hasDrop > a").attr("aria-expanded","false"),$(this).attr("aria-expanded","true"),$(this).parent().addClass(n).siblings().removeClass(n),!1)});$(".hasDrop.secondLevelLi > a").on(i,function(n){if(n.preventDefault(),n.stopImmediatePropagation(),$(this).parent().hasClass("subNavOpened"))return $(this).parent().removeClass("subNavOpened").find(".subNavDropdown").stop().animate({height:0},1100),!1;var t=0;return $(this).parent().find(".subNavDropdown").children().each(function(){t+=$(this).outerHeight()}),$(this).parent().addClass("subNavOpened").find(".subNavDropdown").stop().animate({height:t},750),!1})}$(".hasDrop.mainNavLiItem").on("mouseenter",function(){var i=$(this);t?timer=setTimeout(function(){i.find("a").first().attr("aria-expanded","true");i.addClass(n)},150):(navName=i.text().trim(),window.clearTimeout(navTimer),$(".hasDrop > a").attr("aria-expanded","false"),i.find("a").first().attr("aria-expanded","true"),i.addClass(n).siblings().removeClass(n))}).on("mouseleave",function(){var i=$(this);t?timer=setTimeout(function(){i.find("a").first().attr("aria-expanded","false");i.removeClass(n)},150):(navName="",navTimer=window.setTimeout(function(){navName!=i.text().trim()&&(i.find("a").first().attr("aria-expanded","false"),i.removeClass(n))},750))});$(".hasDrop.secondLevelLi").on("mouseenter",function(){var n=0;childCount=0;$(this).find("a").first().attr("aria-expanded","true");$(this).find(".subNavDropdown").children().each(function(){(!$(this).hasClass("dropDownTouchOnly")||t)&&(n+=$(this).outerHeight(),childCount++)});$(this).hasClass("subNavOpened")||$(this).find(".subNavDropdown").stop().animate({height:n},750+250*childCount)}).on("mouseleave",function(){$(this).find("a").first().attr("aria-expanded","false");childCount=$(this).find("li:not(.dropDownTouchOnly)").length;$(this).removeClass("subNavOpened").find(".subNavDropdown").stop().animate({height:0},1100+250*childCount)})},unBindDesktopNavigation:function(){$body.removeClass("desktopNavigation");$(".subNavDropdown, .navDropdown").css({overflow:"",display:"",height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""});$(".hasDrop").off("mouseenter mouseleave");$(".hasDrop > a").off("touchend click")},secondLevelNavigationPosition:function(){var n=$(window).width(),t=238;$(".mainNav > li.hasDrop").each(function(){var i=$(this).offset(),r=i.left+t;r>n?$(this).find(".navDropdown").addClass("dropLeft"):$(this).find(".navDropdown").removeClass("dropLeft")})},navigationSpacing:function(n){if(n!=="767"&&n!=="640"){var t=$nav.outerHeight();$(".mainFeature").css("min-height",t)}else $(".mainFeature").css("min-height","")},setMinHeightNav:function(){if($(".mobileMenuButton").hasClass("open")){var n=$(".navigationHolder").offset().top+$(".navigationHolder").outerHeight();$("#container").css("min-height",n)}else $("#container").css("min-height","")}};$(function(){setNavClassShared($(".footerNavigation"),!0);setNavClassShared($(".legalLinks"),!0)})