$(function(){if(navigator.userAgent.indexOf("MSIE")!==-1)$("body a.disabled").on("click",function(n){n.preventDefault()});$(".share-this").on("keyup","span[st_url]",function(n){if(n.keyCode===13||n.keyCode===32){n.preventDefault();var t=this.parentNode.classList.contains("disabled");t||$(this).find(".stButton").click()}});if(window.self!==window.top){var n=$(".CandidatePortal.careers").length;if(n==0)$(".embedded").on("click","a",function(){var n=$(this).hasClass("share-this-link");n||$(this).attr("target","_blank")})}});$(function(){var f=50,t={Space:32,Enter:13,Escape:27,ArrowUp:38,ArrowDown:40},n,i,r;$("body > .header .culture").on("click",function(n){if(n.target==this)return $(this).toggleClass("expanded"),!1});$(".CandidatePortal .branding .header .login-icon").on("click keydown",function(i){if(i.target==this&&(i.type==="keydown"&&(i.keyCode===t.Space||i.keyCode===t.Enter)||i.type==="click"))return $(this).toggleClass("expanded"),$(this).attr("aria-expanded",$(this).hasClass("expanded")),$("a:focus").length==0&&n.find("a").first().focus(),!1});$(".CandidatePortal .branding .header .login-icon .candidate-name").on("click",function(t){if(t.target==this&&t.type==="click"){var i=$(".CandidatePortal .branding .header .login-icon");return i.toggleClass("expanded"),i.attr("aria-expanded",i.hasClass("expanded")),$("a:focus").length==0&&n.find("a").first().focus(),!1}});$(".CandidatePortal .branding .header .culture .header-text").on("keydown click",function(n){if(n.type==="keydown"&&(n.keyCode===t.Space||n.keyCode===t.Enter)||n.type==="click")return $(this).parent(".culture").toggleClass("expanded"),!1});$(".CandidatePortal .branding .header .culture").on("focusout",function(){setTimeout(function(){var n=!1;$(".CandidatePortal .branding .header .culture > .list > ul > li > a").each(function(){if($(this).is(":focus"))return n=!0,!1});n||$(".CandidatePortal .branding .header .culture").removeClass("expanded")},100)});n=$(".CandidatePortal .branding .header .login-icon");n.on("focusout",function(){setTimeout(function(){var t=!1;$(".CandidatePortal .branding .header .login-icon> .candidate-account  > ul > li > a").each(function(){if($(this).is(":focus"))return t=!0,!1});t||(n.removeClass("expanded"),n.attr("aria-expanded","false"))},100)});n.on("keydown",function(i){i.keyCode===t.Escape&&n.attr("aria-expanded")==="true"&&(n.removeClass("expanded"),n.attr("aria-expanded","false"))});n.find("ul > li").on("keydown",function(n){n.keyCode==t.ArrowDown&&(n.preventDefault(),$("a:focus").closest("li").next().find("a").focus());n.keyCode==t.ArrowUp&&(n.preventDefault(),$("a:focus").closest("li").prev().find("a").focus())});i=$("#mobile-menu");r=$(".mobile-menu-toggle");r.click(function(){r.attr("aria-expanded")==="false"?(i.slideDown(f),r.attr("aria-expanded","true")):(i.slideUp(f),r.attr("aria-expanded","false"))});i.find(".btn-close-menu").on("click",function(){i.slideUp(f);r.attr("aria-expanded","false")});var e=$(".CandidatePortal .branding .header-links .context-bar"),u=$(".CandidatePortal .branding .header-links .dropdown-content"),o=$(".CandidatePortal .branding .header-links .dropdown"),s=$(".CandidatePortal .branding .header-links .grouped-link");update=function(){if(e.length>0){var n=e.offset().top;e.css("padding-right","0");u.empty();o.hide();e.children().each(function(t,i){$(i).find("a").removeAttr("tabIndex");$(i).length>0&&$(i).offset().top>n&&(u.append($(i).clone()),$(i).find("a").attr("tabIndex",-1))});u.children().length>0&&(o.show(),e.css("padding-right","35px"))}};update();$(window).resize(function(){i.is(":visible")&&$(".toolbar .breadcrumb").is(":visible")&&(i.slideUp(0),r.attr("aria-expanded","false"));update()});i.find("li a:has(~ nav), li .icon:has(~ nav)").on("click keydown",function(n){if(n.type==="keydown"&&n.keyCode===t.Space||n.type==="click"){n.preventDefault();var i=$(n.target).parents("li").find("> a"),r=$(n.target).parents("li").find("> nav");i.attr("aria-expanded")==="false"?(r.slideDown(f),i.attr("aria-expanded","true")):(r.slideUp(f),i.attr("aria-expanded","false"))}});$("#groupedLink, #dropDown").on("click",function(n){if(n.target==this)return u.slideToggle(100),!1});$(document).click(function(n){if(u.is(":visible")){if($(n.target).closest(".CandidatePortal .branding .header-links .dropdown-content .context-bar-link").length!=0)return;$(".CandidatePortal .branding .header-links .dropdown-content").hide()}});u.on("focusout",function(){setTimeout(function(){var n=!1;$(".CandidatePortal .branding .header-links .dropdown-content > li > a").each(function(){if($(this).is(":focus"))return n=!0,!1});n||$(".CandidatePortal .branding .header-links .dropdown-content").hide()},100)})})