function changeHeaderInformation(n){var t=$("#block-hero .slide").eq(n).find(".slide-header").text(),i=$("#block-hero .slide").eq(n).find(".slide-body").text(),r=$("#block-hero .slide").eq(n).find(".slide-cta-link").text();$("#block-hero .page-header .headline h1").text(t);$("#block-hero .page-header .body span").text(i);$("#block-hero .page-header .cta a").attr("href",r)}function InitializeHeaderSlider(){var n={el:{slider:$("#block-hero .slider"),allSlides:$("#block-hero .slide"),sliderNav:$("#block-hero .slider-nav"),allNavButtons:$("#block-hero .slider-nav > a")},timing:800,slideWidth:1280,init:function(){this.bindUIEvents()},bindUIEvents:function(){this.el.sliderNav.on("click","a",function(t){n.handleNavClick(t,this)})},handleNavClick:function(n,t){n.preventDefault();var i=$(t).attr("href").split("-").pop();this.el.slider.animate({scrollLeft:i*this.slideWidth},this.timing);this.changeActiveNav(t);changeHeaderInformation(i)},changeActiveNav:function(n){this.el.allNavButtons.removeClass("active");$(n).addClass("active")}};n.init()}function InitializeSlider(n,t,i,r){var u={el:{slider:n,allSlides:t,sliderNav:i,allNavButtons:r},timing:400,slideWidth:mobileSlideWidth,init:function(){this.bindUIEvents()},bindUIEvents:function(){this.el.sliderNav.on("click","a",function(n){u.handleNavClick(n,this)})},handleNavClick:function(n,t){n.preventDefault();var i=$(t).attr("href").split("-").pop();this.el.slider.animate({scrollLeft:i*mobileSlideWidth},this.timing);this.changeActiveNav(t)},changeActiveNav:function(n){this.el.allNavButtons.removeClass("active");$(n).addClass("active")}};u.init()}function displayCommentButton(){var t=$(window).width(),n;t<=767&&(n=$("#displayCommentSectionHeader"),n.removeClass("commentHeader"),n.removeClass("hidden-xs"),$("#displayCommentsButton").addClass("hidden-xs"),$("#postCommentButton").removeClass("hidden-xs"),$("#displayLoadMore").removeClass("hidden-xs"),$("#commentSection").removeClass("hidden-xs"))}function displayCommentSection(){var n=$("#postacomment"),i=$("#signinToPost").html(),t;$("#postCommentButton").addClass("hidden-xs");t=$("#header");t.append(n);n.removeClass("hidden-xs");$("#displayPostACommentSection").remove(".commentHeader");$("#userYourAccentureLogin").text(i)}function closeButton(){$.sidr("close","main-menu");var n=$(".acn-icon-close");n.attr("class","acn-icon acn-icon-nav-top-menu")}function changeHeaderSectionText(n,t){typeof n!="undefined"&&($("#header-section-nav-text").text(n),$("#activeSectionNo").text(t+1))}function scrollEventHandler(){var i=$(window).scrollTop(),t="",n=-1;$(".block-title h2").each(function(r){i+100>=$(this).offset().top&&(t=$(this).text(),n=r)});activeSectionIndex!=n&&(changeHeaderSectionText(t,n),activeSectionIndex=n)}function scrollToAnchor(n){var t=$("#"+n),i="",o=$(window).scrollTop(),r=$("#header-topnav").height(),e=$(t).offset().top,u=0,f=18;(typeof t!="undefined"||typeof t.offset()!="undefined")&&($(t).hasClass("c-ui-square")||(r=0,f=0),document.getElementById("scWebEditRibbon")!==null&&(u=$("#scWebEditRibbon").height()),$("html,body").animate({scrollTop:e-(r+u+f)},750),i=$(t).text());n!="block-hero"&&n!="block-footer"?changeHeaderSectionText(i,activeSectionIndex):changeHeaderSectionText("",-1)}function ScrollSection(n){event.preventDefault();var t=activeSectionIndex+n;if(t<0){$(window).scrollTop(0);changeHeaderSectionText("",-1);return}t>$(".block-title h2").length-1||(activeSectionIndex=t,scrollToAnchor(activeSectionIndex+"-block-title"))}function isEditMode(){return $("html").hasClass("edit-mode")}function realWidth(n){var t=n.clone(),i;return t.css("visibility","hidden"),$("body").append(t),i=t.outerWidth(),t.remove(),i}function isJSONBlogPostDataAvailable(){return typeof _dataBlogPostList!="undefined"?!0:!1}function getJSONBlogPostData(){return _dataBlogPostList["GetBlogPosts-return"]["blog-post-list"].posts}function getJSONBlogPostDataFeatured(){return _dataBlogPostList["GetBlogPosts-return"]["blog-post-list"]["posts-featured"]}function bindBlogPosts(n){$(".module-blog-featured-post > div").loadTemplate($(".module-blog-featured-post .json-template"),getJSONBlogPostDataFeatured());$(".module-blog-post-list ul").loadTemplate($(".module-blog-post-list .json-template"),n);$(".module-blog-post-list ul li").slice(0,4).removeClass("hidden-xs")}function isJSONBlogPostAuthorDataAvailable(){return typeof _dataBlogPostList!="undefined"?!0:!1}function getJSONBlogPostAuthorData(){return _dataBlogPostList["GetBlogPosts-return"]["author-list"]}function bindBlogAuthors(){$("#author-carousel .carousel-inner").loadTemplate($(".module-blog-authors .json-template"),getJSONBlogPostAuthorData());var n="";for(ctr=0;ctr<$("#author-carousel .carousel-inner .item").length;ctr++)n+='<li data-target="#author-carousel" data-slide-to="'+ctr+'"><\/li>';$("#author-carousel .carousel-indicators").html(n);$("#author-carousel .carousel-inner .item").eq(0).addClass("active");$("#author-carousel .carousel-indicators li").eq(0).addClass("active");$(".module-blog-authors .author-full-bio").loadTemplate($(".module-blog-authors .json-template-fullbio"),getJSONBlogPostAuthorData())}function BlogPostListAuthors(){bindBlogAuthors();$(".module-blog-authors a.cta").on("click",function(n){n.preventDefault();var t=$("#author-carousel .item.active").index(),i=$(".author-full-bio > div").eq(t).html();$("#main-modal .modal-body").html(i);$("#main-modal").modal("show")})}function isJSONBlogPostTagDataAvailable(){return typeof _dataBlogPostList!="undefined"?!0:!1}function getJSONBlogPostTagData(){return _dataBlogPostList["GetBlogPosts-return"]["tag-list"]}function bindBlogTags(){$(".module-blog-tags ul").loadTemplate($(".module-blog-tags .json-template"),getJSONBlogPostTagData())}function BlogPostTags(){bindBlogTags()}function isJSONBlogPostYearDataAvailable(){return typeof _dataBlogPostList!="undefined"?!0:!1}function getJSONBlogPostYearData(){return _dataBlogPostList["GetBlogPosts-return"]["year-published-list"]}function bindBlogArchiveYears(){$(".module-blog-archive ul").loadTemplate($(".module-blog-archive .json-template"),getJSONBlogPostYearData());$(".module-blog-archive ul").append('<li><a href="#" title="Show All">Show All<\/a><\/li>')}function filterPostsByYear(n){return n=="Show All"?($(".module-blog-featured-post").removeClass("hidden"),getJSONBlogPostData()):($(".module-blog-featured-post").addClass("hidden"),$.grep(getJSONBlogPostData(),function(t){return t.dateYear==n}))}function BlogArchiveYears(){bindBlogArchiveYears();$(".module-blog-archive a").on("click",function(n){n.preventDefault();var t=$(this).text();bindBlogPosts(filterPostsByYear(t));$(".social-likes-post").socialLikes()})}function BlogPostArchiveYears(){bindBlogArchiveYears();$(".module-blog-archive a").on("click",function(n){var r,i,u,t;n.preventDefault();r=$(this).text();i="";$("#authorId").length==1?i=$("#authorId").val().replace(/ /g,"%20"):u=$("#authorId").map(function(){return $(this).text()});t=location.pathname;t=t.substr(0,t.indexOf("/",1));t==""&&(t="/"+$("#currentSite").val());window.open(location.protocol+"//"+location.hostname+t+"/home/blogs/blogarchive?year="+r+"&author="+i,"_self")})}function SetTalentSegmentSelectorValue(n){if(ComponentRegistry.TalentSegmentSelector){var t=$('#talent-segment-selector .dropdown-menu a[data-search-value="'+n+'"]').eq(0).text();$("#talent-segment-selector .text").text(t.substring(0,30))}}function GetWeekSundayDate(n){return n.addDays(n.getDay()*-1)}function monthDiff(n,t){var i;return i=(t.getFullYear()-n.getFullYear())*11,i-=n.getMonth(),i+t.getMonth()}function wsCall(n,t){$.getJSON(n,t)}function getLastDayOfMonth(n,t){return new Date(t,n+1,0)}function isJSONBlogRecentPostDataAvailable(){return typeof _dataBlogPostList!="undefined"?!0:!1}function getJSONBlogRecentPostData(){return _dataBlogPostList["GetBlogPosts-return"]["recentpost-list"]}function bindBlogRecentPosts(){$(".module-blog-recent ul").loadTemplate($(".module-blog-recent .json-template"),getJSONBlogRecentPostData());$(".module-blog-recent ul li").length==0&&$(".module-blog-recent").hide()}function placeholderIsSupported(){var n=document.createElement("input");return"placeholder"in n}function checkThumbnail(n,t){var r=document.getElementById(n),i=$(r).parent().siblings("#media-video-thumbnail");t=="onMediaLoad"?$(i).children(".acn-icon").show():$(i).children(".acn-icon").hide()}function playVideo(n){try{var t=document.getElementById(n).getElementsByTagName("video")[0];t.paused?t.play():t.pause()}catch(i){document.getElementById(n).doPlay()}}function doOnPlayStateChanged(n,t){n.isPlaying||n.isBusy||($("#"+t+"-overlay").css("visibility","visible"),$("#"+t+"-play").css("visibility","visible"),$("#"+t+"-play").closest(".mop-vid").removeClass("playing"))}function limitText(n,t,i){var r=$("#"+n),e=$("#"+t),f=Number(i),u;r.val().length>f&&(r.val(r.val().substring(0,f)),u=this.event||window.event,u.preventDefault?u.preventDefault():(u.returnValue=!1,u.cancelBubble=!0));r.val()==$("#commentContent").val()?e.val(f-r.val().length+" "+$("#commentContent").attr("data-characters-remaining")):e.val(f-r.val().length)}function isPreviewMode(){return $("#scCrossPiece").length>0&&$("#scFieldValues").length==0}function PackeryDynamicFeaturedArticle(){var n=document.querySelectorAll(".packery-container");return n!=null&&n!=undefined&&$.each(n,function(){var n=new Packery(this,{containerStyle:null,itemSelector:".packery-item"})}),!1}function Bootstraploader(){var i=$("head").find("script[src*='bootstrapValidator.js']").length>0,n,t;i||(n=document.createElement("script"),t=!1,n.async=!0,n.src="/Scripts/lib/bootstrapValidator.js",n.type="text/javascript",n.onload=n.onreadystatechange=function(){var n=this.readyState;(t||n!="complete")&&n!="loaded"||(t=!0,InitializeBootstrapValidator())},$("head").append(n))}function InitializeBootstrapValidator(){$(document).bootstrapValidator&&$(".acn-form").length>0&&$(".acn-form").bootstrapValidator({submitHandler:function(){},feedbackIcons:{valid:"glyphicon glyphicon-ok",invalid:"glyphicon glyphicon-remove",validating:"glyphicon glyphicon-refresh"}})}function isPreviewMode(){return $("#scCrossPiece").length>0&&$("#scFieldValues").length==0}function removeTags(n){if(n){var t;do t=n,n=n.replace(tagOrComment,"");while(n!==t);return n.replace(/</g,"")}return""}function ImageLoadChecker(){$("div.media").each(function(){if($(this).children().length==0)$(this).hide();else{var n=$(this).find(".img-responsive");if(n!=null||n!=undefined)if(imgSrc=$(this).find(".img-responsive").attr("src"),imgSrc==""||imgSrc==null||imgSrc=="null")$(this).find(".img-responsive").closest("div.media").hide();else $(this).find(".img-responsive").on("error",function(){$(this).closest("div.media").hide()})}})}function CovertibleCarousel(){$(".carousel-convertible").each(function(){var u=$(this).hasClass("carousel-break-sm")?768:480,n="#"+$(this)[0].id,t=n+" .carousel-inner",r=n+" .carousel-indicators",i;$(window).width()<u&&!$(n).hasClass("converted-sm")?(i="",$(t).data("html-lg",$(t).html()),$(n).find(".item-sm").each(function(t){var u,f;if(t==8)return!1;u=$(this).addClass("item").wrap("<p/>").parent().html();i+=u;f=$(r).find("li").length;f<=t&&$(r).append("<li data-target='"+n+"' data-slide-to='"+t+"'  class='break-sm' ><\/li>")}),$(t).html(null).html(i),$(n).addClass("converted-sm").find("item-sm").first().addClass("active")):$(window).width()>u&&$(n).hasClass("converted-sm")&&($(n).removeClass("converted-sm"),i=$(t).data("html-lg"),$(t).html(i),$(r).find(".break-sm").remove())})}function isBreakPoint(n){for(var i=[320,480,768,1024],r=$(window).width(),u,f,t=0,e=i.length;t<e;t++)if(i[t]===n){u=i[t-1]||0;f=i[t];break}return r>u&&r<=f}function pauseSleepCarouselInMobile(){$(".sleep-carousel").carousel();isBreakPoint(480)==!1&&$(".sleep-carousel").carousel("pause")}function PrintContent(n,t){var i,r,a,v=document.location.href,it=document.title,tt="",rt=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),y="",p,w,f,e,u,b,o,k,s,d,h,g,c,nt,l;for(typeof t=="undefined"?($.each($(".page-title, .block-title, .ui-container .ui-content-box").not(".not-printable"),function(){y+=$(this).html()}),$.each($("div, p").filter(".footer-textlink, .footer-copyright"),function(){tt+=$(this).html().replace(/&nbsp;&nbsp;/gi,"")})):(p=$("#"+t),p.parent().hasClass("event")&&(y=$("<div/>").append($(".social-share, .controls",p.parent().html()).remove().end()).html(),v="")),r='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">',r+="<html><head>",r+="<title>"+it+"<\/title>",r+='<link type="text/css" rel="stylesheet" href="/Content/styles/acn/MediaPrint.css"/>',r+="<\/head><body>",r+='<div class="print-logo-container">',r+='<img class="logo" src="/Content/images/acn-signature-gray-print.jpg"/><\/div>',r+='<div id="popup-content" class="popup-content">',r+=y,r+="<\/div>",r+='<div class="print-footer-section">',r+='<div class="print-url-container fsize-c">',n!=""&&(r+='<div class="print-url-lbl"><strong>'+n+":<\/strong><\/div>"),r+='<a class="print-url-link" href="'+v+'" target="_blank">',r+=v+"<\/a><\/div>",r+='<div id="print-footer-textlink" class="print-footer-textlink">',r+='<div class="acn-footer fsize-c">'+tt+"<\/div>",r+="<\/div><\/div><\/body><\/html>",a="toolbar=0,location=0,directories=0,menubar=0,status=0,resizable=1,scrollbars=1,",a+="width=760,height=560,left=100,top=25",i=window.open(window.location.href,"",a),i.document.open(),i.document.write(r),i.document.close(),rt?i.setTimeout(i.print,300):/msie|MSIE 8/.test(navigator.userAgent)?i.print():i.onload=function(){i.print()},i.focus(),w=i.document.getElementById("popup-content").getElementsByTagName("a"),f=0;f<w.length;f++)$(w[f]).removeAttr("href");for(e=i.document.getElementById("popup-content").getElementsByTagName("div"),u=0;u<e.length;u++)$(e[u]).parent("div").attr("id")!="authors-carousel"&&$(e[u]).removeAttr("style");for(b=i.document.getElementById("popup-content").getElementsByTagName("span"),o=0;o<b.length;o++)$(b[o]).removeAttr("style");for(k=i.document.getElementById("popup-content").getElementsByTagName("a"),s=0;s<k.length;s++)$(k[s]).removeAttr("title");if(i.document.getElementById("print-footer-textlink")!=null)for(d=i.document.getElementById("print-footer-textlink").getElementsByTagName("a"),h=0;h<d.length;h++)$(d[h]).removeAttr("style");if(i.document.getElementById("print-footer-textlink")!=null)for(g=i.document.getElementById("print-footer-textlink").getElementsByTagName("a"),c=0;c<g.length;c++)$(g[c]).after('<span class="pipebar">&nbsp;<\/span>');if(i.document.getElementById("print-footer-textlink")!=null)for(nt=i.document.getElementById("print-footer-textlink").getElementsByTagName("span"),l=0;l<nt.length;l++)$(nt[l]).removeAttr("style")}function checkIfSocialLike(n){var t=!0;return n.parents().each(function(){if($(this).attr("id")=="toolbar-container")return t=!1,!1;t=!0}),t}function pauseCarousel(){$("#hero-carousel").length>0&&$(".page-identifier").text()==""&&($("#hero-carousel").carousel(0),$("#hero-carousel").carousel("pause"))}function playCarousel(){$("#hero-carousel").length>0&&$(".page-identifier").text()==""&&$("#hero-carousel").carousel("cycle")}function putIdOnMainContent(){var n=$("#block-hero");n.find("*").each(function(){if($(this).text()!=""){if($(this).text()[0]!="\n"&&$(this).text()[0]!=""&&$(this).text()[0]!=" "&&checkIfSocialLike($(this)))return $(this).siblings().hasClass("carousel-headline")?($(this).siblings(".carousel-headline").attr("id","maincontent-hero"),$(this).siblings(".carousel-headline").attr("tabindex","-1"),!1):($(this).attr("id","maincontent-hero"),$(this).attr("tabindex","-1"),!1);var n=!1;if($(this).text()[0]=="\n"&&$(this).hasClass("carousel-headline")&&($(this).parents().each(function(){if($(this).attr("id")=="hero-slide1")return n=!0,!1;n=!1}),n==!0))return $(this).attr("id","maincontent-hero"),$(this).attr("tabindex","-1"),!1}})}function adjustAnnouncementBlockCarousel(){setTimeout(function(){var t=$("#block-blockannouncement .announcement-block"),n=$("#block-blockannouncement .announcement-block .announcement"),i;n.is(":visible")&&(pageState.isDesktop?(i=$("#announcement-carousel .carousel-inner").children(".item").length,i<=1&&(n.css({width:"320px",height:"191px"}),t.css({"margin-top":"132px"}))):(n.css({width:"",height:""}),t.css({"margin-top":""})))},600)}function headerAdjustment(){$(".navbar-fixed-top").css("top",$("#scCrossPiece").height())}function adjustHeaderForPreview(){$("#scCrossPiece").length>0&&$("#scFieldValues").length<=0&&headerAdjustment()}function adjustHeaderOnLoadEditor(){$("#scCrossPiece").length>0&&$("#scFieldValues").length<=0?(setTimeout(adjustHeaderOnLoadEditor),headerAdjustment()):(setTimeout(adjustHeaderOnLoadEditor,200),headerAdjustment());hideRibbon()}function adjustCookieStatementForPreview(){var n=0,t;n=$(".cookie-nav").height();IsIOS()&&$("body.keyboard-shown").length>0?$("#header-topnav, #ui-wrapper").css("top",""):$("#header-topnav, #ui-wrapper, #ui-error-wrapper").animate({top:n+"px"},300);t=$("#header-topnav").outerHeight()+n;$("#block-jumplink").animate({top:t+"px"},300)}function hideRibbon(){window.location.search.substring(1).toLowerCase().indexOf("sc_mode=preview")>=0&&($("#scWebEditRibbon").css("display","none"),$("#header-topnav").css("top","0px"),$("#scCrossPiece").css("height","0px"))}function adjustJumplinkForPreview(){var n=$("#scCrossPiece").height(),t=$("#header-topnav").outerHeight(),i=t+n;$("#block-jumplink").css("top",i);$(window).scrollTop()===0&&$("#block-jumplink").hide()}function SwapJquerySelection(n,t){var i=$(n).attr("class");$(n).attr("class",$(t).attr("class"));$(t).attr("class",i)}function RemoveCookieStatement(n){$.ajax({url:"/api/sitecore/CookieStatement/NoMoreCookieStatement",data:{availability:"no"},cache:!1,type:"GET",timeout:1e4,dataType:"json",success:function(){removeCookieElement(n)},error:function(n,t,i){alert("Error remove function! : "+i)}})}function animatedEntrance(n){n.indexOf("nav")>-1?$(n).slideDown(300,function(){$(".cookie-nav.alert-neutral .alert-neutral-text").trigger("focus");adjustCookieStatementForPreview()}):$(n).length>0&&$(n).show("slow")}function checkCookieStatementClosure(n){if(navigator.cookieEnabled)$.ajax({url:"/api/sitecore/CookieStatement/AskToShowStatement",cache:!1,type:"GET",timeout:1e4,dataType:"json",success:function(t){t.Success&&t.Answer=="No"?$(n).remove():animatedEntrance(n)}});else{removeCookieElement(n);return}}function GetQueryStringKeyValue(n){var u=""+document.location.search,o;if(u!=""){u=u.replace(/^[?#]/,"");u=u.replace(/[&]$/,"");u=u.replace(/\+/g," ");var f=u.split(/[&]/),t="",r="";if(n)for(i=0;i<f.length;i++){if(t=decodeURIComponent(f[i].split("=")[0]||""),r=decodeURIComponent(f[i].split("=")[1]||""),o=f[i+1],n.toString().toLowerCase()==="sk"&&t.toLowerCase().toString()==="sk"||n.toString().toLowerCase()==="jk"&&t.toLowerCase().toString()==="jk"||n.toString().toLowerCase()==="dte"&&t.toLowerCase().toString()==="dte"||n.toString().toLowerCase()==="ts"&&t.toLowerCase().toString()==="ts"||n.toString().toLowerCase()==="aoe"&&t.toLowerCase().toString()==="aoe")return i+1<f.length&&!(decodeURIComponent(o).indexOf("=")>=0)&&decodeURIComponent(o.split("=")[1]||"").toLowerCase().toString()===""?r+"&"+decodeURIComponent(o.split("=")[0]||""):r;if(t.toLowerCase()==n.toLowerCase())return r}else{var e={},s="",h="";for(i=0;i<f.length;i++)t=decodeURIComponent(f[i].split("=")[0]||""),r=decodeURIComponent(f[i].split("=")[1]||""),r.toLowerCase().toString()===""&&(t.toLowerCase().toString()==="sk"||t.toLowerCase().toString()==="jk"||t.toLowerCase().toString()==="dte"||t.toLowerCase().toString()==="ts"||t.toLowerCase().toString()==="aoe"||t.toLowerCase().toString()==="ct"||t.toLowerCase().toString()==="jt")?e[t]=r:r.toLowerCase().toString()!==""?e[t]=r:e[h]=s+"&"+t,s=r,h=t;return e}}}function UpdateQueryString(n){if(navigator.userAgent.indexOf("MSIE")!=-1){var t=parseInt(navigator.appVersion.match(/MSIE ([\d.]+)/)[1]);t>9&&SetQueryStringContent(n)}else SetQueryStringContent(n)}function SetQueryStringContent(){$(window).on("load",function(){var n=""+document.location.search;n=IsIE()?n.replace(/ /g,"+"):n.replace(/%20/g,"+");history.replaceState({},"",n)})}function SwapJquerySelection(n,t){var i=$(n).attr("class");$(n).attr("class",$(t).attr("class"));$(t).attr("class",i)}function adjustLoginPopoverPosition(){var r=$("#LoginPopoverTriggerContainer .popover .popover-content .loginpanel"),u=$("#LoginPopoverTriggerContainer .popover .popover-content .authenticated"),t=$("#LoginPopoverTriggerContainer .popover"),i=$("div.cookie-nav"),n=$("#header-topnav").height();r.is(":visible")?(i.is(":visible")&&(n+=i.height()),t.css({top:n+12})):u.is(":visible")&&(isDesktop()?t.css({top:n-7}):isTablet()&&t.css({top:n+2}))}function removeCookieElement(n){$(n).fadeOut(300,function(){$(n).remove();$("#header-topnav, #ui-wrapper, #ui-error-wrapper").css("top",0);$("body").removeClass("has-cookie-nav");IsIOS()&&$("#header-topnav, #ui-wrapper").css("top","");adjustJumplinkForPreview();adjustLoginPopoverPosition()})}function FormatValue(n){return n!=null?n.replace(/\\/gi,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"'):n}function SetCookie(n,t,i,r,u,f){var o=null,e;r!=null&&(e=new Date,e.setTime(e.getTime()+r*864e5),o=e.toGMTString());document.cookie=n+"="+escape(t)+(o?";expires="+o:"")+(i?";path="+i:"")+(u?";domain="+u:"")+(f?";secure":"")}function GetCookie(n){for(var r,u,i=document.cookie.split(";"),t=0;t<i.length;t++)if(r=i[t].substr(0,i[t].indexOf("=")),u=i[t].substr(i[t].indexOf("=")+1),r=r.replace(/^\s+|\s+$/g,""),r==n)return unescape(u)}function RemoveDuplicateID(n){$(n).each(function(){var n=$('[id="'+this.id+'"]');n.length>1&&$('[id="'+this.id+'"]').slice(1).remove()})}function RemoveQueryStringParameter(n){var t=window.location.href,i=new RegExp(n+"=.*?(&|$)","i"),r;t.match(i)&&(t=t.replace(i,""));navigator.userAgent.indexOf("MSIE")!=-1&&(r=parseInt(navigator.appVersion.match(/MSIE ([\d.]+)/)[1]),r>9&&history.pushState({},"",t))}function SetSessionStorageCurrentUrl(){typeof Storage!="undefined"&&sessionStorage.setItem("currentUrl",window.location.pathname+window.location.search)}function EllipsisConfigFunction(n){n.each(function(){var n=$(this);n.dotdotdot({ellipsis:"... ",wrap:"word",fallbackToLetter:!0,after:null,watch:!0,height:null,tolerance:0,callback:function(){},lastCharacter:{remove:[" ",",",";",".","!","?"],noEllipsis:[]}})})}function IfMobileNewTab(n){isMobile()?$(n).attr("target","_blank"):$(n).attr("target","_self")}function isCaptchaCorrect(n,t,i,r,u){var e=n,o=t,s=i,f=!1;return $.ajax({url:u,type:"POST",data:JSON.stringify({captchaID:o,captInput:e,captInstance:s}),contentType:"application/json",async:!1,error:function(n){console.log("captcha error:"+n)},success:function(n){if(f=n.CaptchaCorrect,n.CaptchaCorrect==!1){var t=r;document.getElementById(t).Captcha.ReloadImage()}}}),f}function CreateItemContent(n,t){var i=isMobile()?replaceAll("sm","xs",n):n,r;return isMobile()&&(r=t.attr("data-carousel-mobile-item-size"),r&&(i=replaceAll("xs-2","xs-"+r,i))),i}function EmailURL(){var n=window.location.pathname.split("/");return location.protocol+"//"+location.host+"/"+n[1]+"/ShareEmail?Subject={title}&body={url}"}function socialLink(n){var t,i;processingSocial||(t=$(n).children("span"),t[0]!=undefined&&(i=$(t).attr("class").split(" ")[1],processingSocial=!0,$("."+i).trigger("click")),processingSocial=!1)}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function PopOverContent(){var n=$("#LoginPopoverTriggerContainer .popover-content"),a=$(window).height(),c,t,i,l;if(n&&n.length>0){if($(".popover-content div").hasClass("authenticated")){$("#LoginPopoverTriggerContainer .popover-content").css({height:"auto",left:"auto !important",right:"3%"});isMobile()?$("#popover-bg").removeClass("removeOverlay"):$("#popover-bg").addClass("removeOverlay");var r=52,u="270px",f=-10,e="auto",o=0,s=0,h="absolute";isTablet()&&(r=46);isMobile()&&(u="95%",f=0,e=0,o="2.5%",s="2.5%",h="fixed");$("#LoginPopoverTriggerContainer .popover.fade.bottom.in").css({top:r+"px",right:f+"px",position:h,width:u,left:e,"margin-left":s,"margin-right":o})}else isMobile()?(c=n.offset().top-$(window).scrollTop(),t=a-c,t>=600&&(t=600),n.css({height:t+"px"})):(n.css({height:"600px"}),$(".cookie-nav").length>0?(i=$(".cookie-nav").height()+71,isTablet()&&(i=$(".cookie-nav").height()+57),$("#LoginPopoverTriggerContainer .popover.fade.bottom.in").css({top:i+"px"})):isTablet()&&$("#LoginPopoverTriggerContainer .popover.fade.bottom.in").css({top:"57px"}));l=$("#LoginPopoverTriggerContainer .popover").offset().left+$("#LoginPopoverTriggerContainer .popover").outerWidth()-($("#sign-in-link").offset().left+$("#sign-in-link").outerWidth())+$("#sign-in-link").width()/2;$("#LoginPopoverTriggerContainer .popover .arrow").css("right",l+"px")}}function processSignOutLandingPageLinks(){try{var n=$(".signout-append").attr("href");n!=typeof undefined&&n!=undefined&&(n=n.indexOf("?")==-1?n+"?ReturnUrl="+encodeURIComponent($("#signInPopupData").attr("data-signout-landingpage")):n+"&ReturnUrl="+encodeURIComponent($("#signInPopupData").attr("data-signout-landingpage")),$(".signout-append").attr("href",n))}catch(t){console.log("Error occurred : "+t.message)}}function processJobPortalLinks(){try{var n=$(".joburl-append").attr("href");n!=typeof undefined&&n!=undefined&&(n=n.indexOf("?")==-1?n+"?ReturnUrl="+encodeURIComponent($("#sign-in-data").attr("data-return-url")):n+"&ReturnUrl="+encodeURIComponent($("#sign-in-data").attr("data-return-url")),$(".joburl-append").attr("href",n))}catch(t){console.log("Error occurred : "+t.message)}}function redirectToLandingPage(n){var t,i,r,u;n.data=="reload"&&(t=$("#sign-in-data").attr("data-return-url"),t!=null?(document.getElementById("SignInLinksPopOver")==undefined||document.getElementById("SignInLinksPopOver")==null?t==""&&(t=window.location.protocol+"//"+window.location.host):t==""&&navigator.appVersion.indexOf("Trident")!=-1&&(t=window.location),i=document.getElementById("login-return-url"),typeof i!="undefined"&&i!=null&&i.hostname!=window.location.hostname.toLowerCase()&&(r=window.location.pathname.split("/")[1],r==null&&(r="us-en"),t=window.location.protocol+"//"+window.location.host+"/"+r),dropOmnitureCookie(),jQuery("body").trigger("analytics-form-success"),window.location.assign(t)):(u=$("div.component.col-sm-12.careersSignInContainer.signin-border"),u.attr("data-landingPageLink")?window.location.assign(u.attr("data-landingPageLink")):console.log("No Landing Page URL was specified. Please set the Landing Page URL.")))}function redirectToForgotPasswordPage(n){var t,i;n.data=="forgotPassword"&&(document.getElementById("SignInLinksPopOver")==undefined||document.getElementById("SignInLinksPopOver")==null?document.getElementById("SignInLinksPage")==undefined||document.getElementById("SignInLinksPage")==null?console.log("No Forgot Password Page URL was specified. Please set the Forgot Password Page URL."):(t=$("#SignInLinksPage"),t.attr("data-forgotPasswordLink")?window.location.assign(t.attr("data-forgotPasswordLink")):console.log("No Forgot Password Page URL was specified. Please set the Forgot Password Page URL.")):(i=$("#SignInLinksPopOver"),i.attr("data-forgotPasswordLink")?window.location.assign(i.attr("data-forgotPasswordLink")):console.log("No Forgot Password Page URL was specified. Please set the Forgot Password Page URL.")))}function redirectGetTranslations(n){var i,e,o,t;if(n.data=="getPageTranslations"){if(i={},i.eventType="ReceiveTranslations",i.emailAddress="e-mail address",i.password="password",i.submit="SIGN IN",i.rememberEmail="Remember password",i.forgotPassword="Forgot Password",i.emptyloginemailaddress="Empty Login EmailAddress",i.emptyloginpassword="Empty Login Password",i.invaliduserlogin="Invalid User Login",i.incorrectemailformat="Incorrect Email Format",i.accountlockout="Your account has been temporarily disabled. Please wait 30 minutes before attempting to login or reset your password.",document.getElementById("SignInLinksPopOver")==undefined||document.getElementById("SignInLinksPopOver")==null){if(document.getElementById("SignInLinksPage")==undefined||document.getElementById("SignInLinksPage")==null)console.log("No Translations Specified for Sign-in.");else if(t=$("#SignInLinksPage"),!t.attr("data-emailAddress-string")||(i.emailAddress=t.attr("data-emailAddress-string")),!t.attr("data-password-string")||(i.password=t.attr("data-password-string")),!t.attr("data-submit-string")||(i.submit=t.attr("data-submit-string")),!t.attr("data-rememberEmail-string")||(i.rememberEmail=t.attr("data-rememberEmail-string")),!t.attr("data-forgotPassword-string")||(i.forgotPassword=t.attr("data-forgotPassword-string")),!t.attr("data-IncorrectEmailFormat-string")||(i.incorrectemailformat=t.attr("data-IncorrectEmailFormat-string")),!t.attr("data-EmptyLoginEmailAddress-string")||(i.emptyloginemailaddress=t.attr("data-EmptyLoginEmailAddress-string")),!t.attr("data-EmptyLoginPassword-string")||(i.emptyloginpassword=t.attr("data-EmptyLoginPassword-string")),!t.attr("data-InvalidClientUserLogin-string")||(i.invaliduserlogin=t.attr("data-InvalidClientUserLogin-string")),!t.attr("data-AccountLockout-string")||(i.accountlockout=t.attr("data-AccountLockout-string")),e=$("#ADFSLogOnModal").attr("src"),o=e.indexOf("onb"),!o>=0){var r=$("#ADFSLogOnModal"),u=r.contents().find("#ContentPlaceHolder1_UsernameTextBox"),f=r.contents().find("#ContentPlaceHolder1_PasswordTextBox"),s=r.contents().find("#ContentPlaceHolder1_ErrorIncorrectEmailFormat"),h=r.contents().find("#ContentPlaceHolder1_ErrorEmptyUser"),c=r.contents().find("#ContentPlaceHolder1_ErrorEmptyPassword"),l=r.contents().find("#ContentPlaceHolder1_ErrorInvalidUserLogin"),a=r.contents().find("#ContentPlaceHolder1_ErrorAccountLockout");s.length>0&&u.attr("aria-describedby","ContentPlaceHolder1_ErrorIncorrectEmailFormat");h.length>0&&u.attr("aria-describedby","ContentPlaceHolder1_ErrorEmptyUser");c.length>0&&f.attr("aria-describedby","ContentPlaceHolder1_ErrorEmptyPassword");l.length>0&&f.attr("aria-describedby","ContentPlaceHolder1_ErrorInvalidUserLogin");a.length>0&&u.attr("aria-describedby","ContentPlaceHolder1_ErrorAccountLockout");h.length>0||s.length>0||a.length>0?(window.setTimeout(function(){u.trigger("focus")},500),r.addClass("withErrorMessage")):(c.length>0||l.length>0)&&(window.setTimeout(function(){f.trigger("focus")},500),r.addClass("withErrorMessage"))}}else t=$("#SignInLinksPopOver"),!t.attr("data-emailAddress-string")||(i.emailAddress=t.attr("data-emailAddress-string")),!t.attr("data-password-string")||(i.password=t.attr("data-password-string")),!t.attr("data-submit-string")||(i.submit=t.attr("data-submit-string")),!t.attr("data-rememberEmail-string")||(i.rememberEmail=t.attr("data-rememberEmail-string")),!t.attr("data-forgotPassword-string")||(i.forgotPassword=t.attr("data-forgotPassword-string")),!t.attr("data-IncorrectEmailFormat-string")||(i.incorrectemailformat=t.attr("data-IncorrectEmailFormat-string")),!t.attr("data-EmptyLoginEmailAddress-string")||(i.emptyloginemailaddress=t.attr("data-EmptyLoginEmailAddress-string")),!t.attr("data-EmptyLoginPassword-string")||(i.emptyloginpassword=t.attr("data-EmptyLoginPassword-string")),!t.attr("data-InvalidClientUserLogin-string")||(i.invaliduserlogin=t.attr("data-InvalidClientUserLogin-string")),!t.attr("data-AccountLockout-string")||(i.accountlockout=t.attr("data-AccountLockout-string"));IsIE8()?n.source.postMessage(JSON.stringify(i),"*"):n.source.window.postMessage(JSON.stringify(i),"*")}}function redirectGetPageStyles(n){if(n.data=="getPageStyles"){var t={};t.eventType="ReceiveStyles";t.fontFamily=$("body").css("font-family");IsIE8()?n.source.postMessage(JSON.stringify(t),"*"):n.source.window.postMessage(JSON.stringify(t),"*")}}function dropSocialAnalyticsCookie(){typeof acncm!="undefined"&&$.ajax({url:"/api/sitecore/SiteAnalytics/GetSocialProfileOmniData",type:"POST",async:!1,success:function(n){var t=n;t!==null&&(t.ProfileID!=null&&t.ProfileID!=""&&acncm.Visitor.detectedRegisteredUser(t.ProfileID),t.SocialIndustry!=null&&t.SocialIndustry!=""&&acncm.Visitor.detectedSocialConnectUserIndustry(t.SocialIndustry),t.SocialSkills!=null&&t.SocialSkills!=""&&acncm.Visitor.detectedSocialConnectUserCareerSkill(t.SocialSkills),t.SocialFlag!=null&&t.SocialFlag!=""&&acncm.Visitor.detectedSocialFlag(t.SocialFlag))}})}function dropOmnitureCookie(){typeof acncm!="undefined"&&$.ajax({url:"/api/sitecore/SiteAnalytics/GetUserProfileOmniData",type:"POST",async:!1,success:function(n){var t=n;t!==null&&(acncm.Forms.detectedLoginFormComplete(),t.VisitorGroup!=null&&t.VisitorGroup!=""&&acncm.Visitor.detectedVisitorGroup(t.VisitorGroup*1),t.UserProfileId!=null&&t.UserProfileId!=""&&acncm.Visitor.detectedRegisteredUser(t.UserProfileId),t.IndustryText!=null&&t.IndustryText!=""&&acncm.Visitor.detectedRegisteredUserIndustry(t.IndustryText),t.SkillText!=null&&t.SkillText!=""&&acncm.Visitor.detectedRegisteredUserSkill(t.SkillText),t.AuthType!=null&&t.AuthType!=""&&acncm.Visitor.detectedAuthType(t.AuthType),t.AuthFlag!=null&&t.AuthFlag!=""&&acncm.Visitor.detectedAuthFlag(t.AuthFlag),t.ClientType!=null&&t.ClientType!=""&&acncm.Visitor.detectedClientType(t.ClientType))}})}function triggerSignInPopup(){$("#sign-in-link").on("shown.bs.popover",function(){$("#popover-bg").fadeIn()});$("#sign-in-link").on("hidden.bs.popover",function(){$("#popover-bg").fadeOut()})}function validateFields(){var n=!0,t,i;return $(".validation-container").hide(),$(".validation-container .error-list").empty(),t=$("#email-input").val(),i=$("#Password").val(),(t.trim()==""||t.trim()==null)&&($(".validation-container .error-list").append("<li>Email is required<\/li>"),$(".validation-container").show(),n=!1),(i.trim()==""||i.trim()==null)&&($(".validation-container .error-list").append("<li>Password is required<\/li>"),$(".validation-container").show(),n=!1),$.ajax({async:!1}),$.getJSON("/api/sitecore/CareersSignInModule/ValidateCredentials",{email:$("#Email").val(),password:$("#Password").val()},function(t){t||($(".validation-container .error-list").append("<li>Invalid username/password<\/li>"),$(".validation-container").show(),n=!1);$.ajax({async:!0})}),n}function DisableCurrentLoginPopoverItem(){var n=$("#LoginPopoverTriggerContainer .popover-content .authenticated ul"),t=window.location.href.toLowerCase();n.length>0&&n.find("li a").each(function(){var n=$(this);t.indexOf(n.attr("href").toLowerCase())>-1&&n.replaceWith("<span class='color-primary'>"+n.text()+"<\/span>")})}function popoverInitialize(){$(".careersSignInContainer .login-btn").off();$(".careersSignInContainer .login-btn").on("click",function(n){if(validateFields()){var t=$(".login-btn").parent().parent().parent().parent().hasClass("loginpanel");t?window.location.assign(window.location.href):window.location.assign(clientLoginLandingPage)}else n.preventDefault()});$("#sign-in-link").popover({title:"testing",content:function(){return $("#loginPopoverContent").html()},placement:"bottom",html:!0});$("#sign-in-link").on("shown.bs.popover",function(){var f=$(window).width()-($("#sign-in-link").offset().left+$("#sign-in-link").width()),r,u,t;$("#LoginPopoverTriggerContainer .popover .arrow").css("right",f+"px");var e=$("#ui-menu-nav-collapse"),o=$("#ui-menu-nav-expand"),n=$("#LoginPopoverTriggerContainer .popover"),i=$(window).width(),s=$("#LoginPopoverTriggerContainer").find(".authenticated").length==0?!0:!1;s&&(i>=1200?o.length==1?(n.attr("style","left: 0% !important"),n.css("right","20.5%"),n.css("display","block"),r=$("#main-menu").width()-$("#LoginPopoverTriggerContainer").width(),$("#LoginPopoverTriggerContainer .popover .arrow").css("right",r+"px")):e.length==1&&(n.attr("style","display:block"),n.css("left",""),n.css("right","")):i<=767?$("#LoginPopoverTriggerContainer .popover.fade.bottom.in").css({left:"0",width:"90%","margin-left":"5%","margin-right":"5%"}):$("#LoginPopoverTriggerContainer .popover.fade.bottom.in").css({left:"15%",width:"85%"}));u=$("#LoginPopoverTriggerContainer");typeof u!="undefined"&&(t=$("#navigation-settings-content").data("recommendedforyoulink"),t!=""&&t!=null&&$("#LoginPopoverTriggerContainer .authenticated ul li:first-child a").attr("href",t))})}function setIframeSatTrackCookie(n){var i,t;if(n.data=="getTopSatTrackCookie"){function r(n){var i="; "+document.cookie,t=i.split("; "+n+"=");if(t.length==2)return t.pop().split(";").shift()}i=r("sat_track");i=="true"?(t=$("iframe[id=ADFSLogOnModal]"),t.length!=0&&t.get(0).contentWindow.postMessage("EnableSatTrack","*")):i=="false"&&(t=$("iframe[id=ADFSLogOnModal]"),t.length!=0&&t.get(0).contentWindow.postMessage("DisableSatTrack","*"))}}function ajaxJsonCall(n,t){return $.ajax({url:n,datatype:"json",data:t,contentType:"application/json; charset=utf-8",type:"POST"})}function updateCountryIconAndTitle(n){var r,t,i;n!=null&&n!=""&&(r="/Content/images/"+n+".jpg",$imageIcon.attr("src",r),$imageIcon.attr("title",n),$imageIcon.attr("alt",n),t=$("div.footer-textlink span.country-language-trigger a"),t.html(n),t.attr("title",n),i=$("div.language-selector-mobile a.country-language-trigger"),i.attr("title",n),i.find("span").html(n))}function updatePhoneAnchor(n,t,i){t!=null&&i!=null&&(n.attr("href","callto://"+t),n.text(i))}function updateGeoElements(n){currentCountryName&&currentCountryName!=""?currentCountryName.toLowerCase()!=n.CountryName.toLowerCase()?updateCountryIconAndTitle(currentCountryName):updateCountryIconAndTitle(n.CountryName):updateCountryIconAndTitle(n.CountryName);$("a.phone-LocalPhoneNumber").each(function(){updatePhoneAnchor($(this),n.PhoneNumberStripped,n.PhoneNumber)});$("a.phone-TollFreeHotLine").each(function(){updatePhoneAnchor($(this),n.TollFreeStripped,n.TollFree)})}function GetLocationInfo(){ajaxJsonCall("/api/sitecore/Footer/GetLocationInfo").done(function(n){if(updateGeoElements(n),typeof Storage!="undefined"){var t=JSON.stringify(n);sessionStorage.setItem("data",t)}})}function getJSONBlogPostDataEs(){var n="";return $.ajax({url:path,type:"POST",data:JSON.stringify({Author:paramAuthor,BlogTag:paramBlogTag,CountrySite:paramCountrySite,IncludeBlogAuthorResult:!1,IncludeBlogPostsResult:!0,IncludeBlogTagResult:!1,IncludeBlogPostsDate:!1,IndustryId:paramIndustryId,Month:paramMonth,RelativePath:paramRelativePath,BlogAuthorsSize:paramSizeBlogAuthors,BlogPostsSize:paramSizeBlogPosts,BlogTagsSize:paramSizeBlogTags,SubjectId:paramSubjectId,Year:paramYear,From:0}),contentType:"application/json",async:!1,error:function(){result=null},success:function(t){n=JSON.parse(t)}}),n}function realWidth(n){var t=n.clone(),i;return t.css("visibility","hidden"),jQuery("body").append(t),i=t.outerWidth(),t.remove(),i}function isJSONBlogPostDataAvailable(){return typeof _dataBlogPostList!="undefined"&&_dataBlogPostList!=null?!0:!1}function getJSONBlogPostData(){return _dataBlogPostList["GetBlogPosts-return"]["blog-post-list"].posts}function getJSONBlogPostParam(){return _dataBlogPostList["GetBlogPosts-return"]["blog-post-list"].params}function getJSONBlogPostDataFeatured(){return _dataBlogPostList["GetBlogPosts-return"]["blog-post-list"]["posts-featured"]}function bindBlogPosts(n){var t;n!="blog-result-is-null"?(jQuery(".module-blog-featured-post > div").loadTemplate(jQuery(".module-blog-featured-post .json-template"),getJSONBlogPostDataFeatured()),n.length>0?(t=jQuery(".module-blog-post-list ul"),t.loadTemplate(jQuery(".module-blog-post-list .json-template"),n),InsertDataAnalyticsAttributes(".module-blog-post-list h4 a","headline"),InsertDataAnalyticsAttributes(".module-blog-post-list p a","cta"),t.find("li").slice(0,4).removeClass("hidden-xs"),t.find("span.author").each(function(){var n=jQuery(this);n.find("span").text()==""&&n.addClass("hidden")})):isPageEditor=="True"&&(t=jQuery(".module-blog-post-list"),t.append(noResultsMessage)),totalBlogsRetrieved<=paramSizeBlogPosts&&$("#btn-blogs-load-more").addClass("clicked")):(t=jQuery(".module-blog-post-list"),t.text(errorMessageBlogs))}function isJSONBlogRecentPostDataAvailable(){return typeof _dataBlogPostList!="undefined"&&_dataBlogPostList!=null?!0:!1}function getJSONBlogRecentPostData(){return _dataBlogPostList["GetBlogPosts-return"]["recentpost-list"]}function bindBlogRecentPosts(){jQuery(".module-blog-recent ul").loadTemplate(jQuery(".module-blog-recent .json-template"),getJSONBlogRecentPostData());InsertDataAnalyticsAttributes(".module-blog-recent a","cta");jQuery(".module-blog-recent ul li").length==0&&jQuery(".module-blog-recent").hide()}function isJSONBlogPostAuthorDataAvailable(){return typeof _dataBlogPostList!="undefined"&&_dataBlogPostList!=null?!0:!1}function getJSONBlogPostAuthorData(){return localStorage.setItem("authorList",JSON.stringify(_dataBlogPostList["GetBlogPosts-return"]["author-list"])),_dataBlogPostList["GetBlogPosts-return"]["author-list"].slice(0,8)}function bindBlogAuthors(){var r,n,t,i;if(jQuery("#author-carousel .carousel-inner").loadTemplate(jQuery(".module-blog-authors .json-template"),getJSONBlogPostAuthorData()),jQuery("#author-carousel .carousel-inner .item").eq(0).addClass("active"),n=jQuery("#author-carousel .carousel-inner .item").length,t=jQuery("#author-carousel .carousel-inner .item-sm.blogpost").length,n>1||t>1){for(i="",ctr=0;ctr<n;ctr++)i+='<li data-target="#author-carousel" data-slide-to="'+ctr+'"><\/li>';jQuery("#author-carousel .carousel-indicators").html(i);jQuery("#author-carousel .carousel-inner .item").eq(0).addClass("active");jQuery("#author-carousel .carousel-indicators li").eq(0).addClass("active");InsertDataAnalyticsAttributes(".module-blog-authors #authors-carousel a","cta");jQuery("#author-carousel .carousel-indicators li").attr(dataContentType,"nav/paginate");jQuery("#author-carousel .carousel-indicators li").attr(linkName,"nav/paginate")}else n==1||t==1?jQuery("#author-carousel div ol.carousel-indicators").hide():jQuery(".module-blog-authors").hide();jQuery(".module-blog-authors .author-full-bio").loadTemplate(jQuery(".module-blog-authors .json-template-fullbio"),getJSONBlogPostAuthorData());r=jQuery(".module-blog-authors span.image-holder");setSpanAttributes(r);jQuery("span.image-holder").imageloader()}function setSpanAttributes(n){n.each(function(){var n=jQuery(this).attr("src"),t=jQuery(this).attr("alt"),i=jQuery(this).attr("title");jQuery(this).removeAttr("src alt title");jQuery(this).attr({"data-src":n,"data-alt":t,"data-title":i})})}function BlogPostListAuthors(){var i,t,n;bindBlogAuthors();jQuery(".module-blog-authors a.cta, a.ctaViewAll").on("click",function(n){function o(){var i="",n="FULL BIO";for($("#display-full-bio").length>0&&(n=$("#display-full-bio").text()),t.sort(SortAuthor),ctr=0;ctr<t.length;ctr++)i+='<div class="col-sm-4"><img src="'+t[ctr].Url_Image+'"><div class="module-body"><h2 class="authorname-overlay">'+t[ctr].Name+'<\/h2><a class="cta" data-author='+ctr+' href="#" title="'+n+'" '+dataContentType+'="cta" '+linkName+'="'+n.toLowerCase()+'">'+n+'<\/a><div class="hidden">'+t[ctr].Long_Description+"<\/div><\/div><\/img><\/div>",jQuery("div.modal-content .carousel-inner").html(i);isMobile()?u(2):u(3)}function u(n){var r=$(".modal-content .carousel-inner .col-sm-4"),t=0,i;for(ctr=0;ctr<r.length;ctr+=n)t+=1,i="",i=t==1?"active":t==2?"next":"",r.slice(ctr,ctr+n).wrapAll("<div id='slide-"+t+"' class = 'item "+i+"'><\/div>")}function s(n){var r,t,u,i;n.Social_Linked_In.length>0&&$("#modal-all-authors-bio .social").append('<span class="linkedin" title="LinkedIn"><a title="LinkedIn" href="'+n.Social_Linked_In+'" '+dataContentType+'="cta" '+linkName+'="linkedin"><\/a><\/span> ');r=n.Social_Twitter.lastIndexOf("=");t=n.Social_Twitter.substring(r+1);t.length>0&&$("#modal-all-authors-bio .social").append('<span class="twitter" title="Twitter"><a title="Twitter" href="https://twitter.com/intent/user?screen_name='+t+'" '+dataContentType+'="cta" '+linkName+'="twitter"><\/a><\/span>');u=n.Social_Email.lastIndexOf(":");i=n.Social_Email.substring(u+1);i.length>0&&$("#modal-all-authors-bio .social").append('<span class="email" title="Email"><a title="Email" href="mailto:'+i+'" '+dataContentType+'="cta" '+linkName+'="email"><\/a><\/span>')}function h(){var n=$(".modal-content .carousel-inner"),t=n.find(".next").index();n.find(".prev.left").removeClass("prev left");n.children().eq(t-1).removeClass("active").addClass("prev left");n.children().eq(t).removeClass("next").addClass("active");n.children().eq(t+1).addClass("next");(t>=n.children().length-1||n.children().length==1)&&$(".modal-content .slide > .icon-arrowrightarrow").hide();$(".job-arrow-left").show()}function c(n){var t=n.find(".prev").index();n.find(".next").removeClass("next");n.children().eq(t+1).removeClass("active").addClass("next");n.children().eq(t).removeClass("prev left").addClass("active");t<=0?$(".job-arrow-left").hide():n.children().eq(t-1).addClass("prev left");$(".modal-content .icon-arrowrightarrow").show()}var f,e,i,r,t;if(n.preventDefault(),f=jQuery("#main-modal"),e=this.id,this.id=="display-full-bio"&&(i=jQuery("#author-carousel .item.active").index(),r=jQuery(".author-full-bio > div").eq(i).html(),jQuery("#main-modal #modal-full-bio .modal-body").html(r),$("#content-wrapper, .skip-main").attr("aria-hidden","true"),jQuery("#main-modal .modal-dialog").removeAttr("style"),jQuery("#main-modal #modal-all-authors").hide(),jQuery("#main-modal #modal-full-bio").show(),jQuery("#main-modal #modal-all-authors-bio").hide()),this.id=="display-view-all"){t=JSON.parse(localStorage.getItem("authorList"));$(".modal-content .icon-arrowrightarrow").show();jQuery("#main-modal .modal-dialog").css("width","auto");jQuery("#main-modal #modal-full-bio").hide();jQuery("#main-modal #modal-all-authors-bio").hide();o();jQuery("div.modal-content a.cta").on("click",function(n){n.preventDefault();var t=$(JSON.parse(localStorage.getItem("authorList")).sort(SortAuthor)).eq($(n.target).data("author"))[0];$(window).width()<768&&$(".full-bio-back .no-underline.corporate-black").hide();jQuery("#modal-all-authors-bio .modal-body").html(jQuery(".author-full-bio > div").eq(0).html());$("#modal-all-authors-bio h4#authorname-desktop,h4#authorname-mobile").text(t.Name);$("#modal-all-authors-bio p").text(t.Long_Description);$("#modal-all-authors-bio img").attr("src",t.Url_Image);$("#modal-all-authors-bio img").attr("alt",t.Name);$("#modal-all-authors-bio img").attr("title",t.Name);$("#modal-all-authors-bio .social").html("");s(t);$("#content-wrapper, .skip-main").attr("aria-hidden","true");jQuery("#modal-all-authors").hide();jQuery("#modal-all-authors-bio").modal("show");jQuery(".modal-dialog").removeAttr("style")});jQuery("#modal-all-authors").show()}jQuery("#main-modal").modal("show");$("#scCrossPiece").length>0&&["modal-full-bio","modal-all-authors","modal-all-authors-bio"].forEach(function(n){var t=$("#scCrossPiece").height();document.getElementById(n).style.marginTop=t+"px"});$(".modal-backdrop, #main-modal .close").off("click").on("click",function(){$(".modal-content .icon-arrowrightarrow").hide();jQuery(".job-arrow-left").hide();$("#content-wrapper, .skip-main").attr("aria-hidden","false")});$(".modal-content .full-bio-back a").on("click",function(n){n.preventDefault();jQuery(".modal-content .carousel.slide").show();jQuery("#modal-all-authors").show();jQuery("#modal-all-authors-bio").modal("hide");jQuery("#main-modal .modal-dialog").css("width","auto")});jQuery(".modal-content .slide > .icon-arrowrightarrow").off("click").on("click",function(){h($(".modal-content .carousel-inner"))});jQuery(".job-arrow-left").off("click").on("click",function(){c($(".modal-content .carousel-inner"))})});i=_dataBlogPostList["GetBlogPosts-return"]["author-list"].length;$("#ShowAuthorViewAll").val()=="True"&&i>8&&(jQuery("#view-authors").find("a").html(jQuery("#AuthorViewAll").val()),t=jQuery("#view-authors a"),t.attr(dataContentType,"cta"),n=t.text(),n=n!==undefined&&n!==null?n.toLowerCase():"",n&&t.attr(linkName,n))}function SortAuthor(n,t){return n.Name<t.Name?-1:n.Name>t.Name?1:0}function isJSONBlogPostTagDataAvailable(){return typeof _dataBlogPostList!="undefined"&&_dataBlogPostList!=null?!0:!1}function getJSONBlogPostTagData(){return _dataBlogPostList["GetBlogPosts-return"]["tag-list"]}function bindBlogTags(){var n=jQuery(".module-blog-tags.edit-mode");n.length>0?jQuery(".module-blog-tags ul").loadTemplate(jQuery(".module-blog-tags .json-template"),getJSONBlogPostTagData()):getJSONBlogPostTagData().length>0?(jQuery(".module-blog-tags ul").loadTemplate(jQuery(".module-blog-tags .json-template"),getJSONBlogPostTagData()),InsertDataAnalyticsAttributes(".module-blog-tags a","cta")):jQuery(".module-blog-tags").hide()}function BlogPostTags(){bindBlogTags()}function isJSONBlogPostYearDataAvailable(){return typeof _dataBlogPostList!="undefined"&&_dataBlogPostList!=null?!0:!1}function getJSONBlogPostYearData(){return _dataBlogPostList["GetBlogPosts-return"]["year-published-list"]}function getJSONBlogArchiveLink(){return _dataBlogPostList["GetBlogPosts-return"]["blog-archive-link"]}function bindBlogArchiveYears(){var t=jQuery("#ShowArchivesByMonth").val()==="True",n=".module-blog-archive .json-template";t&&(n=".module-blog-archive .json-template-month");jQuery(".module-blog-archive ul").loadTemplate(jQuery(n),getJSONBlogPostYearData());InsertDataAnalyticsAttributes(".module-blog-archive a","cta");jQuery(".module-blog-archive ul li").length==0?jQuery(".module-blog-archive").removeClass("hidden-xs").hide():jQuery(".module-blog-archive ul").append('<li><a href="#" title="Show All" '+dataContentType+'="cta" '+linkName+'="show all">Show All<\/a><\/li>')}function filterPostsByYear(n){return n=="Show All"||n=="show_all"?(jQuery(".module-blog-featured-post").removeClass("hidden"),getJSONBlogPostData()):(jQuery(".module-blog-featured-post").addClass("hidden"),$.grep(getJSONBlogPostData(),function(t){return t.dateYear==n}))}function BlogArchiveYears(){bindBlogArchiveYears();var n=jQuery("#ShowArchivesByMonth").val()==="True";jQuery(".module-blog-archive a").on("click",function(t){var f;t.preventDefault();var i=jQuery(this),r=i.text(),u=i.text();r=="Show All"?(r="show_all",u="show_all"):n?(r=i.data("year"),u=i.data("month")):r=i.attr("title");f="";jQuery("#authorId").length==1&&(f=jQuery("#authorId").val().replace(/ /g,"%20"));var e=jQuery("#IndustryId").val(),o=jQuery("#SubjectId").val(),s=jQuery("#SingleIndexId").val(),h=jQuery("#currentSite").val(),c=getJSONBlogArchiveLink(),l=constructUrlLocation(h,r,e,o,s,c,n,u);window.open(l,"_self")})}function BlogPostArchiveYears(){bindBlogArchiveYears();var n=jQuery("#ShowArchivesByMonth").val()==="True";jQuery(".module-blog-archive a").on("click",function(t){var f,e;t.preventDefault();var i=jQuery(this),r=i.text(),u=i.text();r=="Show All"?(r="show_all",u="show_all"):n?(r=i.data("year"),u=i.data("month")):r=i.attr("title");f="";jQuery("#authorId").length==1?f=jQuery("#authorId").val().replace(/ /g,"%20"):ComponentRegistry.BlogPost?f=_dataBlogPostList["GetBlogPosts-return"]["author-list"][0].AuthorId:e=jQuery("#authorId").map(function(){return jQuery(this).text()});var o=jQuery("#IndustryId").val()!==undefined?jQuery("#IndustryId").val():"",s=jQuery("#SubjectId").val()!==undefined?jQuery("#SubjectId").val():"",h=jQuery("#SingleIndexId").val(),c=jQuery("#currentSite").val(),l=getJSONBlogArchiveLink(),a=constructUrlLocation(c,r,o,s,h,l,n,u);window.open(a,"_self")})}function hideEmptySocialIcons(){jQuery("div.social > span.linkedin > a, div.social > span.twitter > a ,div.social > span.email > a").each(function(){var n=jQuery(this).attr("href");jQuery(this).attr("data-analytics-content-type","cta");jQuery(this).parent().hasClass("linkedin")&&jQuery(this).attr("data-analytics-link-name","linkedin");jQuery(this).parent().hasClass("twitter")&&jQuery(this).attr("data-analytics-link-name","twitter");jQuery(this).parent().hasClass("email")&&jQuery(this).attr("data-analytics-link-name","email");(n===""||n==="mailto:"||n.split("=")[1]==="")&&jQuery(this).css("display","none")})}function getParam(n,t){var r,i,u;if(n!="")for(r=n.split("&"),i=0;i<r.length;i++)if(u=r[i].split("=")[0],u.toLowerCase()==t)return r[i].split("=")[1];return null}function constructUrlLocation(n,t,i,r,u,f,e,o){var s=location.protocol+"//"+location.hostname,h="/"+n+"/home/blogs/blogarchive";return f!==""&&(h=f),s=s+h+"?year="+t+"&industry="+i+"&subject="+r+"&source="+u,e&&(s+="&month="+o),s}function InsertDataAnalyticsAttributes(n,t){for(var r,i,f=jQuery(n),u=0;u<f.length;u++)r=jQuery(f[u]),r.attr(dataContentType,t),i=r.text(),i=i&&i!==null?i.trim().toLowerCase():"",i&&r.attr(linkName,i)}function FormatDateTalentConnectionSubscription(n){var t=$(".dtp-date.subscription").attr("type");return t=="text"?n.substr(6,4)+"/"+n.substr(3,2)+"/"+n.substr(0,2):n}function PrependOther(n){return"Other - "+n}function uploadResume(n){typeof n=="undefined"||n===""?alert("Email address is required"):window.open(n,"_blank","toolbar=yes,scrollbars=yes,resizable=yes,top=200,left=300,width=700,height=500")}function ReadOnlyDatepickerSubscription(){var e=$(".dtp-date.subscription").attr("type"),n=talentConnectionHelper.getTalentConnectionModel().DegreeStartDate,t=talentConnectionHelper.getTalentConnectionModel().ExpectedGraduationDate,i,r,o,u,f,s;n!=null&&(n=new Date(parseInt(n.substr(6))),i=n.getMonth()+1,$(i)[0]<10&&(i="0"+i),r=n.getDate(),$(r)[0]<10&&(r="0"+r),o=n.getFullYear(),n=e=="date"?o+"-"+i+"-"+r:i+"/"+r+"/"+o);t!=null&&(t=new Date(parseInt(t.substr(6))),u=t.getMonth()+1,$(u)[0]<10&&(u="0"+u),f=t.getDate(),$(f)[0]<10&&(f="0"+f),s=t.getFullYear(),t=e=="date"?s+"-"+u+"-"+f:u+"/"+f+"/"+s);e=="text"?($("#startDateValSubscription").val(n),$("#gradDateValSubscription").val(t),$("#startDateValSubscription").attr("readonly",!0),$("#gradDateValSubscription").attr("readonly",!0)):e=="date"&&($("#startDateValSubscription").val(n),$("#gradDateValSubscription").val(t),$("#startDateValSubscription").prop("readonly",!1),$("#gradDateValSubscription").prop("readonly",!1))}function rebindUndoableSkills(n){$("#selected-skills a.remove-selected-filter").off();$("#selected-skills a.remove-selected-filter").undoable();$("#selected-skills .remove-selected-filter").on("click",function(){for(var i=$(this).parent().next().find(".undo-changes").find("i").text().trim().toLowerCase(),t=0;t<n.length;t++)n[t]===i&&n.splice(t,1);storeSelectedValues();$("#selected-skills .undo a").on("click",function(){var r=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+r+'"]').attr("value"),i=$("#selected-skills").children().closest(".undoable.target.comment");n.length<5?n.indexOf(t.toLowerCase())==-1&&n.push(t.toLowerCase()):i.remove();n.length===5&&i.remove();storeSelectedValues()})});$(this).prop("disabled",!1)}function GetPreferredSkillSpecialization(){var n=[],t="";return $("#selected-skills .target.comment").each(function(){var i=$(this),t;i.css("display")!=="none"&&(t=i.children("label").attr("id"),t&&t!==""&&n.push(t))}),n.length>0&&(t=n.join("|")),t}function ResizeHorizontal(){if($("div").hasClass("profile-edit")){var t=$(".ui-content-box.dock-shadow-box"),n=$(".ui-content-box.dock-shadow-box").offset().left+10;$(window).width()>=1e3?($("#horizontalline").width($(".ui-content-box.dock-shadow-box").width()),$("#horizontalline").offset({left:n}),$("#horizontalline").css({"margin-right":"-20px"})):$("#horizontalline").removeAttr("style")}}function TalentConnectionCountryOnChange(n){var i=n.val(),t=$("#ddTalentConnectionRegistrationSchool"),r=$("#School-other"),u;schoolFields.hide();i!=""?(u=$("#SiteLanguage").val(),$.ajax({url:"/api/sitecore/EditProfileModule/GetUniversityByCountry",async:!1,type:"POST",data:JSON.stringify({countryId:i}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){t.prop("disabled",!1);var i='<option value="">Select<\/option>';$("#ddTalentConnectionRegistrationSchool").empty();$.each(n,function(n,t){i=i+"<option value="+t.Id+">"+t.Name+"<\/option>"});i=i+"<option value="+r.prop("value")+">"+r.prop("name")+"<\/option>";t.html(i).selectpicker("refresh")}})):t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh")}function FormatDateTalentConnection(n){var t=$(".dtp-date").attr("type");return t=="text"?n.substr(6,4)+"/"+n.substr(3,2)+"/"+n.substr(0,2):n}function PrependOther(n){return"Other - "+n}function GetProfileTalentConnectionValues(){var n={},e=$(".Status:radio:checked").val(),t,i;if(e=="isStudent"){var o=$("#ddTalentConnectionRegistrationCurrentStudy :selected").val(),s=$("#CurrentProgram-other").val(),r=$("#ddTalentConnectionRegistrationCurrentStudy :selected").text(),h=$("#currentProgramDefaultValue").val();n.CurrentProgramOfStudy=o==s?PrependOther($("#currentProgram-textBox").val()):r!=h?r:null;var c=$("#ddTalentConnectionRegistrationCountryOfSchool :selected").val(),l=$("#ddTalentConnectionRegistrationSchool :selected").val(),a=$("#School-other").val(),u=$("#ddTalentConnectionRegistrationSchool :selected").text(),v=$("#schoolDefaultValue").val();n.School=l==a?PrependOther($("#school-textBox").val()):u!=v?u:null;n.CountryOfSchool=c;var y=$("#ddTalentConnectionRegistrationMajor :selected").val(),p=$("#DegreeMajor-other").val(),f=$("#ddTalentConnectionRegistrationMajor :selected").text(),w=$("#degreeMajorDefaultValue").val();n.DegreeMajor=y==p?PrependOther($("#degreeMajor-textBox").val()):f!=w?f:null;t=$("#startDateVal").val();t!=""&&(n.DegreeStartDate=FormatDateTalentConnection(t));i=$("#gradDateVal").val();i!=""&&(n.ExpectedGraduationDate=FormatDateTalentConnection(i));n.HighestDegreeEarned=null}else n.HighestDegreeEarned=$("#ddTalentConnectionRegistrationDegreeEarnedTC").val(),n.currentProgramOfStudy=null,n.otherCurrentProgramOfStudy=null,n.currentProgramOfStudyText=null,n.currentProgramDefaultValue=null,n.countryOfSchool=null,n.school=null,n.otherschool=null,n.schoolText=null,n.schoolDefaultValue=null,n.degreeMajor=null,n.otherDegreeMajorValue=null,n.degreeMajorText=null,n.degreeMajorDefaultValue=null,n.startDateStr=null,n.expectedGradDateStr=null;return n.PhoneNumber=$("#EditProfilePhoneNumber").val(),n.LinkedInProfileUrl=$("#TalentConnectionRegistration_LinkedIn").val(),n}function ReadOnlyDatepickerEditProfile(){var n=$(".dtp-date").attr("type");n=="text"?($("#startDateVal").val($("#startDateTC").val()),$("#gradDateVal").val($("#gradDateTC").val()),$("#startDateVal").attr("readonly",!0),$("#gradDateVal").attr("readonly",!0)):n=="date"&&($("#startDateVal").val($("#degreeDateVal").val()),$("#gradDateVal").val($("#expDateVal").val()),$("#startDateVal").prop("readonly",!1),$("#gradDateVal").prop("readonly",!1))}function checkMaxEdit(n){var t=$(n),r=$(n+":checked").length;for(i=0;i<t.length;i++)r>=3?t[i].checked||(t[i].disabled=!0):t[i].checked||(t[i].disabled=!1)}function SelectNav(n){n!=null&&n!=""?(n=n.replace("#",""),n="#Nav"+n):n="#Naveditprofilepane";$(n).length<=0&&(n="#Naveditprofilepane");var t=$(n)[0].outerHTML;t=t.replace(/<a/g,"<span");t=t.replace(/\/a>/g,"/span>");$(n)[0].outerHTML=t;$(n).trigger("click")}function isAccountLockout(n){var t=!0;return $.ajax({url:"/api/sitecore/ResetPassword/IsAccountLockout",data:JSON.stringify({emailAddress:n}),dataType:"json",context:this,type:"POST",contentType:"application/json; charset=utf-8",async:!1,success:function(n){t=n},error:function(){t=!1}}),t}function CTABlogPostObject(){var n=this;n.CTABlogPost={Init:function(){n.CTABlogPost.Render()},Data:{},Render:function(){var t=$(".blog-article-module,.module-article.a-countdown"),n=1;if(t.length>0){var o=$(".blogPostCallToActionLink"),e=$(".modal"),s=$(".modal #carousel-modal"),h=$(".modal #carousel-modal .carousel-indicators li"),i="",r="",u="",f="";t.each(function(){i=$(this).find(o);typeof i!="undefined"&&i!=null&&i.attr("data-target","#ctaBlogPostModal"+n);r=$(this).find(e);typeof r!="undefined"&&r!=null&&r.attr("id","ctaBlogPostModal"+n);u=$(this).find(s);typeof u!="undefined"&&u!=null&&(u.attr("id","carousel-modal"+n),f=$(this).find(h),typeof f!="undefined"&&f!=null&&f.each(function(){$(this).attr("data-target","#carousel-modal"+n)}));n++});t.find(e).length>0&&t.find(e).each(function(){$(this).appendTo("body")})}}}}function resize(){jsUtility.setFeaturedImage();jsUtility.progressiveSetup();jsUtility.setDynamicBackground();jsUtility.setHeroImage();jsUtility.resizeHeroImage();jsUtility.setGapWidth();clearTimeout(this.id);this.id=setTimeout(jsUtility.updatePaddingBottom(),500)}function Bootstraploader(){var i=$("head").find("script[src*='bootstrapValidator.js']").length>0,n,t;i||(n=document.createElement("script"),t=!1,n.async=!0,n.src="/Scripts/lib/bootstrapValidator.js",n.type="text/javascript",n.onload=n.onreadystatechange=function(){var n=this.readyState;(t||n!="complete")&&n!="loaded"||(t=!0,InitializeBootstrapValidator())},$("head").append(n))}function IsIE(){return $("html").hasClass("ie")?!0:!1}function isMobile(){return $(window).width()<smallMin?!0:!1}function isTablet(){return $(window).width()>=smallMin&&$(window).width()<=smallMax?!0:!1}function accessBarAdjustment(){var n=document.getElementsByTagName("BODY")[0];if(n){var i=function(n){var i=$(".sticky-access-bar"),r=i.height();for(var u in n)i.length>0?(i.closest(".content-wrapper").css("padding-bottom",r),$(".optanon-alert-box-wrapper,.optanon-toggle-display").css("margin-bottom",r)):t.disconnect()},t=new MutationObserver(i);t.observe(n,{childList:!0,subtree:!0})}}function getCookie(n){var i="; "+document.cookie,t=i.split("; "+n+"=");if(t.length===2)return t.pop().split(";").shift()}var activeSectionIndex,packeryResizeTimeoutHandle,scrollButton,FooterElement,$accordionExpandCollapse,cBlockCarousel,processingSocial,$imageIcon,currentCountryName,objAlive,branchId,jumplinkColor,jumplinkDDownColor,JumpLink,sugJobColorTheme,jobOpenings,latestRecommended,CarouselForMobile,BlogPostListModule,BlogArchiveModule,BlogAuthorModule,isHighestDegreeValid,chkBoxTalentConnection,talentConnectionHelper,clearValidation,shareValidation,FormTaskListModule,ratio,accordionVideoCover,accordionBlindControl,isIE,forms,hasSubHeader,selectedSkillsArray,getStatus,currentProgramFields,counter,degreeMajorFields,TCCountry,schoolFields,SocialEmail,EditProfilePassword,EditProfileOldPassword,EditProfileEmailAddress,viewJobsLink,nosavedJobsContainer,currentdate,totalSavedJobs,savedJobsModuleHelper,setDataPlayPauseButton,readMoreText,reloadPageOnModalHide,userID,$this,CareersJobFeedsXmlModule,list,tabControl,cardCarouselModule,adjacentTileControl,CTAMobileAlert,dataOriginalTitle,OnEnterTrigger,aspectRatio,jsUtility,smallMin,smallMax,skipLinksFocus,substringStart,substringEnd,minimizeButtonKey,oldBannerKey,replacedKey;jQuery.fn.outerHTML=function(n){return n?this.before(n).remove():jQuery("<p>").append(this.eq(0).clone()).html()};$(window).on("load",function(){$(".modal").modal({backdrop:"static",keyboard:!1,show:!1});$("#main-modal").modal({backdrop:"static",keyboard:!1,show:!1});$("#search-input").autocomplete({disabled:!0});InitializeHeaderSlider();$("#accent").length>0&&$("#content-wrapper div div").first().addClass("first");$(".btn-group-country .dropdown-menu li a").on("click",function(){$(".btn1:first-child").text($(this).text());$(".btn1:first-child").val($(this).text())});$(".btn-group-state .dropdown-menu li a").on("click",function(){$(".btn2:first-child").text($(this).text());$(".btn2:first-child").val($(this).text())});$(".acn-popover .top").popover({placement:"top"});$(".acn-popover .top").popover("show");$("[rel='tooltip']").popover({placement:"top",html:"true",title:'<button type="button" id="close" class="close close-popover">&times;<\/button>',content:""}).on("shown.bs.popover",function(){var n=$(this);$(this).next(".popover").find("button.close-popover").on("click",function(){n.popover("hide")})});document.createElement("header");document.createElement("section");document.createElement("article");document.createElement("aside");document.createElement("nav");document.createElement("footer");var n=$("#scrollspy > ul > li").length-1;$("#total-navigation").html(n);$(function(){InitializeBootstrapValidator();$(".dock").length>0&&$(".page-title").addClass("page-title-dock")});$(".placeholder").length==0?$("#toolbar-container").hide():$(".placeholder").length>1&&$(".placeholder:has(.print)")&&$(".social-likes_single-w").length==0&&$("#DownloadModule").length==0&&$("#toolbar-container").addClass("visible-lg");$("#announcement-carousel").length!=0&&$("#ui-wrapper").addClass("has-announcement-module");$(".bottom-block-spacing").length>0&&$("#ui-wrapper").addClass("has-bottom-block-spacing");$(".top-block-spacing").length>0&&$("#ui-wrapper").addClass("has-top-block-spacing")});$(window).on("unload",function(){typeof Storage!="undefined"&&sessionStorage.setItem("hashCallback",window.location.href)});activeSectionIndex=-1;$(window).on("load",function(){$("#layout-homepage").on("DOMMouseScroll mousewheel keyup keydown keypress",function(){scrollEventHandler()});$(document).on("keydown",function(n){var t=n.keyCode?n.keyCode:n.which;(t==38||t==40)&&scrollEventHandler()})});if(ComponentRegistry.BlogIndustrySelectorHeader&&$(function(){var n=$('#block-blog-industry-selector .dropdown-menu a[href*="'+window.location.pathname+'"]').text();n.length>0&&$("#block-blog-industry-selector label").text(n)}),(ComponentRegistry.BlogPostList||ComponentRegistry.BlogArchiveList)&&isJSONBlogPostDataAvailable()&&$(function(){bindBlogPosts(getJSONBlogPostData());$(".module-blog-post-list button").on("click",function(n){n.preventDefault();$(".module-blog-post-list ul li[class=hidden-xs]").removeClass("hidden-xs");$(this).addClass("clicked")});var t=window.location.href,n=t.split("/"),i=n[0]+"//"+n[2];$(".social-likes-post").each(function(){$(this).attr("data-url",i+$(this).attr("data-url"))});$(".social-likes-post").socialLikes();BlogPostListAuthors();BlogPostTags();BlogPostArchiveYears()}),(ComponentRegistry.BlogPostAuthors||ComponentRegistry.BlogArchiveAuthor)&&isJSONBlogPostAuthorDataAvailable()&&$(function(){BlogPostListAuthors()}),(ComponentRegistry.BlogPostTags||ComponentRegistry.BlogArchiveTags)&&isJSONBlogPostTagDataAvailable()&&$(function(){BlogPostTags()}),ComponentRegistry.BlogPostListArchiveYears&&isJSONBlogPostYearDataAvailable()&&$(function(){BlogArchiveYears()}),(ComponentRegistry.BlogPostArchiveYears||ComponentRegistry.BlogArchiveYears)&&isJSONBlogPostYearDataAvailable()&&$(function(){BlogPostArchiveYears()}),ComponentRegistry.BlogPostMultipleSubjectAuthors)$("#author-carousel").on("click",".module-body a, .item-sm > a",function(n){n.preventDefault();var t=$(this).attr("href").substring("1"),i=$(".author-full-bio > div").eq(t).html();$("#main-modal .modal-body").html(i);$("#main-modal").modal("show")});if(Date.prototype.addDays=function(n){var t=new Date(this.valueOf());return t.setDate(t.getDate()+n),t},Date.prototype.addMonths=function(n){var t=new Date(this.valueOf());return t.setMonth(t.getMonth()+n),t},ComponentRegistry.AuthorRecentPosts&&isJSONBlogRecentPostDataAvailable()&&$(function(){bindBlogRecentPosts()}),ComponentRegistry.TeamMembersModule)$(".cta.member-fullbio").on("click",function(n){var r,t,i;n.preventDefault();r=$(this).attr("href").substring("1");t=$(".member-fullbio").parents(".col-sm-4.member-index-"+r).html();$(".member-item-header").empty();$(".member-item-header").append($(t).filter("img"));$(".member-item-details").empty();$(".member-item-details").append($(t).children());$(".member-item-details .shortdescription").remove();$(".member-item-details .fullbiography").removeClass("hidden");$(".member-item-details a.cta.member-fullbio").remove();$("h4#myModalLabel.modal-title").text("Member");i=$("#member-item-modal");$(i).removeClass("hidden");$("#main-modal .modal-body").html(i);$("#main-modal").modal("show")});placeholderIsSupported()||$("input, textarea").placeholder();$(window).on("resize",function(){$("#announcement-carousel").length!=0&&$("#ui-wrapper").addClass("has-announcement-module")});packeryResizeTimeoutHandle=null;$(function(){var i,n,r,t;if(typeof isNormal!="undefined"&&isNormal!=""&&isNormal=="true"&&top.location.hostname!=self.location.hostname&&(top.location=self.location),packeryResizeTimeoutHandle=window.setTimeout(function(){PackeryDynamicFeaturedArticle()},800),i=$(".onboarding"),i.length==0&&(n=$(".packery-container"),r=$("#webedit"),typeof n!="undefined"&&n.length>0&&r.length==0)){n.moduleClamping({moduleSelector:".module-article",titleSelector:"h4",bodySelector:".module-body",titleMaximumRowCount:3,bodyMaximumRowCount:3,totalMaximumRowCount:5,mouseOver:"expand",onMouseOver:function(){PackeryDynamicFeaturedArticle()},onMouseOut:function(){PackeryDynamicFeaturedArticle()}});$(window).on("load",function(){$(".packery-container .module-article").addClass("disable-link-analysis");isDesktop()&&!IsTouch()?$(".packery-container .module-article").trigger("mouseenter").trigger("mouseleave"):($(".packery-container .module-article").addClass("mouse-entered-onload"),$(".packery-container .module-article").trigger("click").trigger("click"),$(".packery-container .module-article").removeClass("mouse-entered-onload"));$(".packery-container .module-article").removeClass("disable-link-analysis")})}$(window).on("resize",function(){clearTimeout(packeryResizeTimeoutHandle);packeryResizeTimeoutHandle=window.setTimeout(function(){PackeryDynamicFeaturedArticle()},100)});t=$(".clamp-featured-section");typeof t!="undefined"&&t.length>0&&t.moduleClamping({moduleSelector:".module-article",titleSelector:"h4",bodySelector:"p",titleMaximumRowCount:3,bodyMaximumRowCount:3,totalMaximumRowCount:5,mouseOver:"expand",onMouseOver:function(){},onMouseOut:function(){}})});var isMobileDevice={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobileDevice.Android()||isMobileDevice.BlackBerry()||isMobileDevice.iOS()||isMobileDevice.Opera()||isMobileDevice.Windows()}},tagBody="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",tagOrComment=new RegExp("<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+tagBody+">[\\s\\S]*?<\/script\\s*|style\\b"+tagBody+">[\\s\\S]*?<\/style\\s*|/?[a-z]"+tagBody+")>","gi");$(function(){var n,t,i,r;RemoveDuplicateID("#SSOErrorID");n="";t=$("#SSOErrorID");t!=undefined&&t.length>0&&(n=t.val(),n=="1"?$("#SocialEmailModal").modal("show"):ComponentRegistry.ClientEditProfile||ComponentRegistry.EditProfile||ComponentRegistry.ClientAccount?n=="0"&&$("#SocialMediaModal").modal("show"):ComponentRegistry.Registration&&(n=="2"||n=="0")&&$("#SocialMediaModal").modal("show"));i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;r=i<768?95:i<1e3?110:120;$(".map area.first").attr("coords","0,0,"+r+",50");$(".map area.second").attr("coords",+r+",0,300,50")});$(window).on("load",function(){$(".social-likes__button.social-likes__button_single").on("click",function(){$(this).closest(".packery-item").css("overflow","visible")});clearTimeout(packeryResizeTimeoutHandle);packeryResizeTimeoutHandle=window.setTimeout(function(){PackeryDynamicFeaturedArticle()},100)});if(ComponentRegistry.DownArrowScroll){$(function(){$("#scroll-button").on("click",function(){var n=$(".ui-container").first(),e;$("#ui-wrapper").hasClass("has-announcement-module")&&(n=$(".ui-container:nth-child(2)"));var o=$("#accent"),i=$("#ui-wrapper"),t=0;if(n.length!==0&&i.length!==0){var r=i.offset().top,u=n.offset().top-r,f=n.find(".block-title");o.length>0?t=u:f.length>0?(e=f.offset().top-r,t=e):t=u}$("html,body").animate({scrollTop:t},2e3)});$("#scroll-button").on("keydown",function(n){n.which==13&&$(this).trigger("click")})});$(window).on("load",function(){var n=$("#scroll-button span.acn-icon").data("animation-time"),u=$("#scroll-button span.acn-icon"),f,t,i,r;if(IsIE8()||IsIE9())for(f=$("#scroll-button span.acn-icon").css("top"),t=4,(n!="null"||n!="")&&(t=n/2.5),i=1;i<=t;i++)r="35px",i==t&&(r=f),$("#scroll-button span.acn-icon").animate({top:"55px",opacity:0},2500).animate({top:r,opacity:1},0);n!="null"||n!=""?u.addClass("animation-"+n+"-sec"):u.addClass("animation-10-sec")});function IsIE9(){var n=InternetExplorer();return n==9}$(function(){moveScrollDownArrow()});$(window).on("resize",function(){moveScrollDownArrow()});function moveScrollDownArrow(){var n=$("#scroll-button"),t=$(".large-hero #scroll-button, .special-large-hero #scroll-button"),i=Math.max(document.documentElement.clientHeight,window.outerHeight||0),r=Math.max(document.documentElement.clientWidth,window.outerWidth||0);i<=670||1250>r?n.css("top","310px"):(n.css("top","400px"),t.css("top","446px"))}}Ads={name:"Ads",data:null,filterCategoryViewAllIsClicked:[],maxFilterItemsLoaded:5,initialLoad:!0,timeoutHandle:0,currentPageNo:0,currentSort:"",queryType:"searchbymetadata.query",currentFacetDisplayname:"",currentMetadataFieldname:"",mobileAcnFacets:null,advertisementLoadedArticles:null,protocol:location.protocol==="https:"?"https://":"http://",hostName:location.hostname,isLoaded:!1,getAdBoxType:function(){switch(AdsConfig.contentType){case"47ed666e-5b8e-45d4-84d6-6473ebd62205":return 3;case"852b3170-0397-4d61-81a2-fd5b68fb778b":return 2;default:return 1}},createAdBox:function(n){var u,e,i,t,f,r;if(n!=null){for(u=Ads.advertisementLoadedArticles!=null,u||(Ads.advertisementLoadedArticles=n),e=Ads.getAdBoxType(),i="",t=0;t<n.length;t++)switch(e){case 3:if(i+=Ads.createAdBox3(n[t]),u){for(f=!1,r=0;r<Ads.advertisementLoadedArticles.length;r++)if(n[t].SitecoreItemId.toString()==Ads.advertisementLoadedArticles[r].SitecoreItemId.toString()){f=!0;break}f||Ads.advertisementLoadedArticles.push(n[t])}break;case 2:i+=Ads.createAdBox2(n[t]);break;default:i+=Ads.createAdBox1(n[t])}return i}},createAdBox1:function(n){var e,t,u,s,f,h;if(n==null)return"";if(e='<div class="col-sm-4 trends-and-perspective ad-card packery-item"><div class="module-ad">{0}<\/div><\/div>',$(".module-ad-cards-filter #accordion-filter-results").is(":hidden")||(e='<div class="col-sm-6 trends-and-perspective ad-card packery-item"><div class="module-ad">{0}<\/div><\/div>'),t='<div class="header"><h3 class="ucase">{INDUSTRY}<\/h3><\/div>'.replace("{INDUSTRY}",typeof n.ArticleCategory=="undefined"||n.ArticleCategory==null?"":n.ArticleCategory.toUpperCase()),t+='<div class="media">',typeof n.FeaturedMediaType!="undefined"&&n.FeaturedMediaType!=null&&n.FeaturedMediaType!=""){var i="",o=typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&n.FeaturedImage.Path!=""?n.FeaturedImage.Path:"",r=typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&n.FeaturedImage.Path!=""?n.FeaturedImage.Alt:"";n.FeaturedMediaType.toUpperCase()=="VIDEO"?i="video":n.FeaturedMediaType.toUpperCase()=="IMAGE"&&n.ImagesInGallery>0&&(i="gallery");u="";r?u=r.toLowerCase():o&&(u=o.split("/").pop().toLowerCase());t+='<a href="{URL}" {IMAGEGALLERY-AND-ARTICLE-ID}  data-analytics-content-type= "image" data-analytics-link-name="{IMAGELINKNAME}"><span class="image-holder" data-src="{IMAGE}" data-alt="{ALT}" data-title="{TITLE}"><\/span><\/a>'.replace("{IMAGE}",o).replace("{URL}",i.length>0?"#":n.RelativePath).replace("{ALT}",r).replace("{IMAGELINKNAME}",u).replace("{TITLE}",r);i.length>0?(s=n.FeaturedVideo==null?"":n.FeaturedVideo.Id,f="",n.SitecoreItemId!=undefined&&(f=n.SitecoreItemId.toString().toLowerCase().replace("{","").replace("}","").replace("-","").replace("-","").replace("-","").replace("-","")),t=t.replace("{IMAGEGALLERY-AND-ARTICLE-ID}",'class="ui-link '+i+'" data-article-id="'+f+'" '+(i=="video"?'data-video-id="'+s+'"':""))+('<div><a href="#" class="ui-link '+i+'" {VIDEO} data-article-id="'+f+'"><i class="acn-icon ads icon-ads-'+i+'"><\/i><\/a><\/div>').replace("{URL}",n.RelativePath).replace("{VIDEO}",i=="video"?'data-video-id="'+s+'"':"")):t=t.replace("{IMAGEGALLERY-AND-ARTICLE-ID}","")}return t+="<\/div>",h="",n.Title&&(h=n.Title.toLowerCase()),t+='<div class="body"><h2><a href="{URL}"data-analytics-content-type= "headline" data-analytics-link-name="{HEADLINELINKNAME}">{TITLE}<\/a><\/h2><\/div>'.replace("{TITLE}",n.Title).replace("{URL}",n.RelativePath).replace("{HEADLINELINKNAME}",h),t+=Ads.createSocialShare(n),e.replace("{0}",t)},createAdBox2:function(n){var t;if(n==null)return"";var i=n.PrimaryColor==null||typeof n.PrimaryColor=="undefined"?"":n.PrimaryColor,f=typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&n.FeaturedImage.Path!=""?n.FeaturedImage.Path:"",r=typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&n.FeaturedImage.Path!=""?n.FeaturedImage.Alt:"",u='<div class="col-sm-4 ad-card packery-item"><div class="module-ad module-ad-2">{0}<\/div><\/div>';return $(".module-ad-cards-filter #accordion-filter-results").is(":hidden")||(u='<div class="col-sm-6 ad-card packery-item"><div class="module-ad module-ad-2">{0}<\/div><\/div>'),t='<div class="header {BG_COLOR}"><h3 class="ucase">{INDUSTRY}<\/h3><\/div>'.replace("{INDUSTRY}",n.PrimaryColor==null||typeof n.ArticleCategory=="undefined"?"":n.ArticleCategory).replace("{BG_COLOR}","bg-color-"+i),t+='<div class="media {BG_COLOR}"><a href="{URL}"><span class="image-holder" data-src="{IMAGE}" data-alt="{ALT}" data-title="{TITLE}"><\/span><\/a>'.replace("{IMAGE}",f).replace("{URL}",n.RelativePath).replace("{ALT}",r).replace("{TITLE}",r).replace("{BG_COLOR}","bg-color-"+i),t+="<\/div>",t+='<div class="social-share">',t+='<div class="col-xs-6 left">',t+=Ads.createSocialShare(n,i),t+="<\/div>",t+='<div class="col-xs-6 right">',t+='<a href="{URL}" class="cta {COLOR}">READ MORE<\/a>'.replace("{URL}",n.RelativePath).replace("{COLOR}","color-"+i),t+="<\/div>",t+="<\/div>",u.replace("{0}",t)},createAdBox3:function(n){var u;if(n==null)return"";var h=typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&n.FeaturedImage.Path!=""?n.FeaturedImage.Path:"",f=typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&n.FeaturedImage.Path!=""?n.FeaturedImage.Alt:"",e='<div class="col-sm-{0} ad-card packery-item"><div class="module-ad module-ad-3">{1}<\/div><\/div>'.replace("{0}",n.ArticleWidth>2?8:4);$(".module-ad-cards-filter #accordion-filter-results").is(":hidden")||(e='<div class="col-sm-{0} ad-card packery-item"><div class="module-ad module-ad-3">{1}<\/div><\/div>'.replace("{0}",n.ArticleWidth>2?12:6));var t='<div class="media">',o=n.FeaturedMediaType!=null&&n.FeaturedMediaType.toUpperCase()=="VIDEO",s='class="ui-link adsGallery"',i="",r="";return o&&(i=n.FeaturedVideo==null?"":n.FeaturedVideo.Id,n.SitecoreItemId!=undefined&&(r=n.SitecoreItemId.toString().toLowerCase().replace("{","").replace("}","").replace("-","").replace("-","").replace("-","").replace("-","")),s='class="ui-link video" data-video-id="'+i+'" data-article-id="'+r+'"'),t+='<a href="{URL}" {SHOWGALLERY}><span class="image-holder " data-src="{IMAGE}" data-alt="{ALT}" data-title="{TITLE}"><\/span><\/a>'.replace("{URL}",n.RelativePath).replace("{IMAGE}",h).replace("{ALT}",f).replace("{TITLE}",f).replace("{SHOWGALLERY}",AdsConfig.enableAdsArticleRedirection?"":s),o&&(u="video",t+=('<div><a href="#" class="ui-link '+u+'" {VIDEO} data-article-id="'+r+'"><i class="acn-icon ads icon-ads-'+u+'"><\/i><\/a><\/div>').replace("{URL}",n.RelativePath).replace("{VIDEO}",'data-video-id="'+i+'"')),t+="<\/div>",t+=Ads.createSocialShare(n),e.replace("{1}",t)},createVideoBox:function(n){if(n==null||n=="")return"";var i=isMobile()?169:338,r=isMobile()?300:600,t="";return n.DownloadTranscriptLink!=null&&n.DownloadTranscriptLink!="undefined"&&(t+='<a href="{0}" class="transcript"><i class="acn-icon {4}"><\/i>{1} ({2} {3}KB)<\/a>'.replace("{0}",n.DownloadTranscriptLink).replace("{1}",n.DownloadText).replace("{2}",n.TranscriptType).replace("{3}",n.SizeInKB).replace("{4}",n.DownloadIcon)),t},createSocialShare:function(n,t){var t=typeof t=="undefined"?"":'data-color="'+t+'"',r=Ads.protocol+Ads.hostName+n.RelativePath,i='<div class="social-share bg-color-white" '+t+">";return i+='<div class="social-likes social-likes_single" data-url="{URL}" data-title="{seotitle}" data-single-title="Share">'.replace("{URL}",r).replace("{seotitle}",n.seotitle),i+='<div class="arrow">Share<\/div>',i+='<div class="facebook" title="Share link on Facebook" data-analytics-content-type= "share intent" data-analytics-link-name="facebook"><\/div>',i+='<div class="twitter" data-via="df" data-related="df" title="Share link on Twitter" data-analytics-content-type= "share intent" data-analytics-link-name="twitter"><\/div>',i+='<div class="plusone" title="Share link on Google+" data-analytics-content-type= "share intent" data-analytics-link-name="googleplus"><\/div>',i+='<div class="pinterest" title="Share image on Pinterest" data-media=""data-analytics-content-type= "share intent" data-analytics-link-name="pinterest"><\/div>',i+="<\/div>",i+"<\/div>"},showAdsGallery:function(){for(var n,e,o,i="",r=Ads.advertisementLoadedArticles,t=0;t<r.length;t++)if(n=r[t],n!=null&&(n.FeaturedMediaType==null||n.FeaturedMediaType.toUpperCase()!="VIDEO")){var u="#",f="";typeof n.FeaturedImage!="undefined"&&n.FeaturedImage!=null&&(n.FeaturedImage.Path!=""&&(u=n.FeaturedImage.Path),n.FeaturedImage.Alt!=""&&(f=n.Alt));e='<span class="image-holder" data-src="{0}" data-alt="{1}"><\/span>'.replace("{0}",u).replace("{1}",f);o="<p>{0}<\/p>".replace("{0}",n.Description);i+='<div class="gallery-item">{0}<\/div>'.replace("{0}",e+o)}$("#gallery-carouselindustryAllAds").html(i);ViewGallery("industryAllAds")},showVideo:function(n){if(n!=null&&n!=""){var t=Ads.getCountrySite(),i='{"vid":"'+n+'"}',r=t==null||t==""?"/us-en/":"/"+t+"/";$.ajax({type:"POST",url:r+"getvideobyid.search",data:i,async:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){if(n!=null&&n!=""){$("#main-modal .modal-body").html(Ads.createVideoBox(n));$("#main-modal").removeClass("video gallery");$("#main-modal").addClass("module-ad-board-modal video");$("#main-modal ").modal("show");$("#main-modal .modal-header button.close").on("click",function(){$("#main-modal.module-ad-board-modal").removeClass("module-ad-board-modal video gallery").find(".modal-body").html("")})}},error:function(n,t,i){console.log("The server encounters an error when retrieving the video... "+i)}})}},showGallery:function(n){for(var e,o,r="",t=0;t<n.length;t++){var i=n[t].Image,u="",f="#";i!=null&&i!="undefined"&&(u=i.Alt,f=i.Path);e='<span class="image-holder" data-src="{0}" data-alt="{1}"><\/span>'.replace("{0}",f).replace("{1}",u);o="<p>{0}<\/p>".replace("{0}",n[t].Description);r+='<div class="gallery-item">{0}<\/div>'.replace("{0}",e+o)}$("#gallery-carouselindustryAllAds").html(r);ViewGallery("industryAllAds")},updateCurrentSort:function(){Ads.currentSort=$(".module-ad-board .cta.sort.active").data("filtername").replace(" ","")},getSortByParam:function(){var n=0,t=$(".module-ad-board .cta.sort.active").data("filtername");if(t!=null)switch(Ads.currentSort){case"MostPopular":case"MostRecent":n=1;break;default:n=0}else{(Ads.currentSort==null||Ads.currentSort=="")&&this.setDefaultSorting();switch(Ads.currentSort){case"MostPopular":case"MostRecent":n=1;break;default:n=0}}return n},addFilterTracker:function(n){var t=n.items;typeof t!=undefined&&t!=null&&t.length>Ads.maxFilterItemsLoaded&&Ads.initialLoad&&Ads.filterCategoryViewAllIsClicked.push({metadatafieldname:n.metadatafieldname,clicked:!1})},updateFilter:function(){var r,u,t,n;if(Ads.data!=null&&Ads.data.acnfacets!=null&&Ads.data.acnfacets.length>0){if(r="",u="",Ads.initialLoad&&(Ads.mobileAcnFacets=Ads.data.acnfacets),isMobile()){if(Ads.initialLoad)for(t=0;t<Ads.mobileAcnFacets.length;t++)n=Ads.mobileAcnFacets[t],n.items.length>0&&(Ads.addFilterTracker(n),r+=Ads.createFilterGroup(n.metadatafieldname,n.facetdisplayname,n.items,n.metadatafieldname),u+=Ads.createFilterGroupMobile(n.metadatafieldname,n.facetdisplayname,n.items,n.metadatafieldname))}else for(t=0;t<Ads.data.acnfacets.length;t++)n=Ads.data.acnfacets[t],n.items.length>0&&(Ads.addFilterTracker(n),r+=Ads.createFilterGroup(n.metadatafieldname,n.facetdisplayname,n.items,n.metadatafieldname),Ads.initialLoad&&(u+=Ads.createFilterGroupMobile(n.metadatafieldname,n.facetdisplayname,n.items,n.metadatafieldname)));var v='<div class="col-sm-12 filter-group"><h3>SORT BY<\/h3><hr><div class="sort-options">{0}<\/div><\/div>',f="",e="",o="",l="",y='<div class="filter sort">{0}<\/div>',i='<select id="sort" class="form-control dropup" name="sort" onchange="Ads.onDropdownFilterChange(this);">{0}<\/select>',s="",h="",a="",c=Ads.currentSort.toLowerCase();AdsConfig.mostFeaturedSortText!=""&&AdsConfig.enableCherryPick&&(e+=Ads.createSortGroup(AdsConfig.mostFeaturedSortText,c==AdsConfig.mostFeaturedSortText.replace(" ","").toLowerCase()),s='<option value="{0}" {2}>{1}<\/option>'.replace("{0}","FeaturedSort").replace("{1}",AdsConfig.mostFeaturedSortText).replace("{2}",c=="featuredsort"?'selected="selected"':""));AdsConfig.mostRecentText!=""&&(o+=Ads.createSortGroup(AdsConfig.mostRecentText,c==AdsConfig.mostRecentText.replace(" ","").toLowerCase()),h='<option value="{0}" {2}>{1}<\/option>'.replace("{0}","MostRecent").replace("{1}",AdsConfig.mostRecentText).replace("{2}",c=="mostrecent"?'selected="selected"':""));switch(AdsConfig.defaultSorting){case"MostRecent":f=l+e+o;i=i.replace("{0}",a+s+h);break;case"MostPopular":f=o+e+l;i=i.replace("{0}",h+s+a);break;case"FeaturedSort":f=e+l+o;i=i.replace("{0}",s+a+h)}AdsConfig.defaultSorting!=""&&(r+=v.replace("{0}",f),u+=y.replace("{0}",i));$(".module-ad-board .module-ad-cards-filter #accordion-filter-results .panel-body.laptop").html(r);isMobile()&&Ads.initialLoad&&$(".module-ad-board .module-ad-cards-filter #accordion-filter-results .panel-body.mobile").html(u);$("#accordion-filter-results .filter-group input[type=checkbox]").on("click",function(){var n=$(this).data("filtername"),t=$(this).data("metadatafieldname");Ads.advertisementLoadedArticles=null;Ads.currentPageNo=0;$(".module-ad-cards .ad-cards").html("");Ads.isLoaded=!1;Ads.performSearch();ImageLoadChecker()});$("#ads-clear-filter").on("click",function(){p();ImageLoadChecker()});function p(){var u,i,n,r,t;for($("#accordion-filter-results input:checked").each(function(){$(this).prop("checked",!1)}),Ads.currentPageNo=0,$(".module-ad-cards .ad-cards").html(""),n=0;n<Ads.filterCategoryViewAllIsClicked.length;n++)u=Ads.filterCategoryViewAllIsClicked[n],u.clicked=!1;if($("#accordion-filter-results .filter-group .cta-view").show(),isMobile()){for(Ads.initialLoad=!0,Ads.currentFacetDisplayname=null,Ads.currentMetadataFieldname=null,i=Ads.data.acnfacets,n=0;n<i.length;n++)if(r=i[n],r.items!=null)for(t=0;t<r.items.length;t++)Ads.data.acnfacets[n].items[t].selected=!1;Ads.advertisementLoadedArticles=null}Ads.isLoaded=!1;Ads.performSearch()}$("#accordion-filter-results .filter-group .cta-view").on("click",function(n){var r,u,t,i;for(n.preventDefault(),r=$(this).data("filtername"),u=$(this).data("metadatafieldname"),$("#accordion-filter-results .filter-group li."+r).filter(".hidden").removeClass("hidden"),$(this).addClass("hidden"),t=0;t<Ads.filterCategoryViewAllIsClicked.length;t++)i=Ads.filterCategoryViewAllIsClicked[t],i.metadatafieldname==u&&i.clicked==!1&&(i.clicked=!0)});$("#accordion-filter-results .sort-options .cta").on("click",function(n){n.preventDefault();var t=$(this).data("filtername");$("#accordion-filter-results .sort-options .cta").removeClass("active");$(this).addClass("active");Ads.currentPageNo=0;$(".module-ad-cards .ad-cards").html("");Ads.updateCurrentSort();Ads.isLoaded=!1;Ads.performSearch()})}},setDefaultSorting:function(){if(Ads.currentSort=AdsConfig.defaultSorting,Ads.currentSort==null||Ads.currentSort==""){var n=Ads.getAdBoxType();switch(n){case 3:Ads.currentSort=AdsConfig.enableCherryPick?"FeaturedSort":"MostRecent";break;default:Ads.currentSort="MostRecent"}}else(Ads.currentSort!="FeaturedSort"||AdsConfig.enableCherryPick)&&Ads.currentSort!="MostPopular"||(Ads.currentSort="MostRecent")},createFilterGroup:function(n,t,i,r){var f,e;if(typeof n!="undefined"&&n.length>0){var o="#ViewMore",s=$.grep(Ads.filterCategoryViewAllIsClicked,function(n){if(n.metadatafieldname==r)return!0}),h=s.length<=0?!1:s[0].clicked,u="<h3>{0}<\/h3><hr>".replace("{0}",t.toUpperCase());if(u+="<ul>",typeof i!=undefined&&i!=null)for(f=0;f<i.length;f++)e=i[f],u+=('<li class="filter '+n+' {0}"><input type="checkbox" data-filtername="{1}" data-metadatafieldname="{2}" data-term="{6}" {5}>{3} ({4})<\/li>').replace("{0}",!h&&f>=Ads.maxFilterItemsLoaded?"hidden":"").replace("{1}",n).replace("{2}",r).replace("{3}",e.term).replace("{4}",e.count).replace("{5}",e.selected?"checked":"").replace("{6}",e.term);return u+="<\/ul>",u+=!h&&typeof i!=undefined&&i!=null&&i.length>Ads.maxFilterItemsLoaded?'<a class="cta-view view-more" href="#" data-filtername="'+n+'" data-metadatafieldname="'+r+'" data-analytics-content-type= "cta" data-analytics-link-name="+'+$(o).val().toLowerCase()+'">+'+$(o).val()+"<\/a>":"",'<div class="col-sm-12 filter-group">{0}<\/div>'.replace("{0}",u)}return""},createFilterGroupMobile:function(n,t,i,r){var o,u,f,e;if(typeof n!="undefined"&&n.length>0){if(o='<div class="filter">{0}<\/div>',u='<select id="{0}" class="form-control dropup" name="{1}" onchange="Ads.onDropdownFilterChange(this);">'.replace("{0}",n).replace("{1}",n),u+='<option value="" selected="selected">{0}<\/option>'.replace("{0}",t),typeof i!=undefined&&i!=null)for(f=0;f<i.length;f++)e=i[f],u+='<option value="{0}" data-metadatafieldname="{2}" {3}>{1}<\/option>'.replace("{0}",e.term).replace("{1}",e.term).replace("{2}",r).replace("{3}",Ads.currentMetadataFieldname==r&&Ads.currentFacetDisplayname==e.term?'selected="selected"':"");return u+="<\/select>",o.replace("{0}",u)}return""},createSortGroup:function(n,t){return typeof n!="undefined"&&n.length>0?'<a class="cta sort {0}" href="#" data-filtername="{1}" data-analytics-content-type="cta" data-analytics-link-name="{3}">{2}<\/a>'.replace("{0}",t?"active":"").replace("{1}",n).replace("{2}",n.toUpperCase()).replace("{3}",n.toLowerCase()):""},displayData:function(n){var i,t;if(n!=null){Ads.data=n;Ads.isLoaded?t=Ads.createAdBox(n.documents):(i=AdsConfig.cherryPickArticles.concat(n.documents),t=Ads.createAdBox(i));$(".module-ad-cards .ad-cards").append(t);ComponentRegistry.OptimizeImages&&$(".module-ad-cards .ad-cards").find("span.image-holder").imageloader();Ads.initAdPackery();isMobile()&&(Ads.data!=null&&Ads.currentPageNo*AdsConfig.countInitial>=Ads.data.total?($(".module-ad-cards #IndustryAllAddsLoadMore").removeClass("visible-xs"),$(".module-ad-cards #IndustryAllAddsLoadMore").css({display:"none"})):$(".module-ad-cards #IndustryAllAddsLoadMore").hasClass("visible-xs")||$(".module-ad-cards #IndustryAllAddsLoadMore").addClass("visible-xs"));switch(Ads.getAdBoxType()){case 1:$(".module-ad .media a.ui-link.video").on("click",function(n){n.preventDefault();Ads.showVideo($(this).data("video-id"))});$(".module-ad .media a.ui-link.gallery").on("click",function(n){n.preventDefault();var i=$(this).data("article-id"),t=Ads.getCountrySite(),r='{"pid":"'+i+'", "f":1, "s":12}',u=t==null||t==""?"/us-en/":"/"+t+"/";$.ajax({type:"POST",url:u+"getimagesinpagegallery.search",data:r,async:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){Ads.showGallery(n)},error:function(n,t,i){console.log("The server encounters an error when retrieving the images.");console.log(i)}})});break;case 3:$(".module-ad .media a.ui-link.video").on("click",function(n){n.preventDefault();Ads.showVideo($(this).data("video-id"))});$(".module-ad .media a.ui-link.adsGallery").on("click",function(n){n.preventDefault();Ads.showAdsGallery()})}Ads.updateFilter();$(".module-ad-board .social-likes").socialLikes();Ads.getAdBoxType()==2&&$(".module-ad-board span.countText.clickable, .module-ad-board span.title.clickable, .module-ad-board .social-likes__icon.acn-icon.icon-share").each(function(){var n=$(this),t=n.closest(".social-share").data("color");n.addClass("color-"+t)});$(".social-share").filter("[data-color]").each(function(){var n=$(this),t=n.data("color")})}},showFilter:function(n){var r=$("#ads-clear-filter"),t,i;$(".panel-heading h4").addClass("col-xs-8");$("#ads-clear-filter").css("display","block");$("#ads-clear-filter").attr("data-analytics-content-type","cta");r!==null&&r!==undefined&&$("#ads-clear-filter").attr("data-analytics-link-name",r.text().toLowerCase());t=$(n.target).closest(".module-ad-board").find(".module-ad-cards");$ads=t.find(".ad-cards").closest("div.ads");t.closest(".module-ad-board").find("div.ads").addClass("col-sm-8");t.closest(".module-ad-board").find("div.ads").removeClass("col-sm-12");t.find(".ad-card.col-sm-4").addClass("col-sm-6");t.find(".ad-card.col-sm-4.col-sm-8").removeClass("col-sm-8");t.find(".ad-card.col-sm-4").removeClass("col-sm-4");t.find(".ad-card.col-sm-8").addClass("col-sm-12");t.find(".ad-card.col-sm-8").removeClass("col-sm-8");i=$(n.target).closest(".ad-filter");i.hasClass("right")&&!isMobile()&&($ads=i.parent().find("div.ads"),adsContent=$ads.html(),$ads.html(""),$ads.addClass("hidden"),$adsRightTemp=i.parent().find(".ads-right-temp"),$adsRightTemp.html(adsContent),$adsRightTemp.removeClass("hidden"),i.removeClass("col-sm-offset-8"));Ads.initAdPackery();i.find(".module-ad-cards-filter").addClass("open-filter")},hideFilter:function(n){var t,i;$(".panel-heading h4").removeClass("col-xs-8");$("#ads-clear-filter").css("display","none");t=$(n.target).closest(".module-ad-board").find(".module-ad-cards");t.closest(".module-ad-board").find("div.ads").addClass("col-sm-12");t.closest(".module-ad-board").find("div.ads").removeClass("col-sm-8");t.find(".ad-card.col-sm-6").addClass("col-sm-4");t.find(".ad-card.col-sm-6.col-sm-12").removeClass("col-sm-12");t.find(".ad-card.col-sm-6").removeClass("col-sm-6");t.find(".ad-card.col-sm-12").addClass("col-sm-8");t.find(".ad-card.col-sm-12").removeClass("col-sm-12");i=$(n.target).closest(".ad-filter");i.hasClass("right")&&!isMobile()&&($ads=i.parent().find("div.ads"),$adsRightTemp=i.parent().find(".ads-right-temp"),adsContent=$adsRightTemp.html(),$adsRightTemp.html(""),$adsRightTemp.addClass("hidden"),$ads.html(adsContent),$ads.removeClass("hidden"),i.addClass("col-sm-offset-8"));Ads.initAdPackery();i.find(".module-ad-cards-filter").removeClass("open-filter")},mobileModeOn:function(){$(".module-ad-board .module-ad-cards .ad-card").addClass("col-xs-12")},mobileModeOff:function(){$(".module-ad-board .module-ad-cards .ad-card").removeClass("col-xs-12")},initAdPackery:function(){clearTimeout(Ads.timeoutHandle);Ads.timeoutHandle=setTimeout(function(){var n=document.querySelector(".ad-cards.packery-container"),t;n!="undefined"&&n!=null&&(t=new Packery(n,{containerStyle:null}))},100)},getQueryDataCategoryIndustries:function(){return'"industry1","industry2","industry3"'},getQueryData:function(){var n={contentType:'"'+AdsConfig.contentType+'"',industries:Ads.getQueryDataCategoryIndustries(),pageNo:0,pageNo:0,pageCount:12}},formatValue:function(n){return n!=null?n.replace(/\\/gi,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"'):n},getSearchPath:function(){var n=window.location.pathname,i,t;if(n.substr(n.length-1)!="/")for(i=window.location.pathname.split("/"),n="",t=0;t<i.length-1;t++)n+=i[t]+"/";return n},getCountrySite:function(){return typeof AdsConfigCountrySite=="undefined"?"us-en":AdsConfigCountrySite},getCherryPickArticles:function(){for(var t="",n=0;n<AdsConfig.cherryPickArticles.length;n++)AdsConfig.cherryPickArticles[n].SitecoreItemId!=null&&AdsConfig.cherryPickArticles[n].SitecoreItemId!=""&&(t+=n>0?",":"",t+=AdsConfig.cherryPickArticles[n].SitecoreItemId);return t},getFilterItems:function(n){switch(n){case"contenttype":return"";case"servicecapability":return"";default:return""}},getSearchFacetsInitial:function(){for(var n,t="[",i=0;i<AdsConfig.keywordSearchFilter.length;i++)n=AdsConfig.keywordSearchFilter[i],t+='{"facetdisplayname":"{facetdisplayname}","metadatafieldname":"{metadatafieldname}","excludedmetadataitems":{excludeditems},"items":[{items}],"excludedmetadataids":{excludedids}}'.replace("{facetdisplayname}",n.facetdisplayname).replace("{metadatafieldname}",n.metadatafieldname).replace("{items}",n.items).replace("{excludeditems}",JSON.stringify(n.excludedmetadataitems)).replace("{excludedids}",JSON.stringify(n.excludedmetadataids)),i+1<AdsConfig.keywordSearchFilter.length&&(t+=",");return t+="]",JSON.stringify(t)},getUpdatedFacets:function(){for(var t,i,r,n,e,u=Ads.data.acnfacets,f=0;f<u.length;f++){for(t=u[f],i=[],r=0;r<t.items.length;r++){n=t.items[r];switch(isMobile()){case!0:n.selected&&i.push(n);default:e=$('input[type=checkbox][data-metadatafieldname="'+t.metadatafieldname+'"][data-term="'+n.term+'"]');e.length>0&&e.prop("checked")&&(n.selected=!0,i.push(n))}}t.items=i}return u},getSearchFacets:function(){if(Ads.data==null)return this.getSearchFacetsInitial();var n=Ads.getUpdatedFacets();return'"'+Ads.formatValue(JSON.stringify(n))+'"'},onDropdownFilterChange:function(n){var u,t,r,i;for(Ads.currentFacetDisplayname=n.value,Ads.currentMetadataFieldname=n.name,u=Ads.data.acnfacets,t=0;t<u.length;t++)if(r=u[t],r.metadatafieldname==Ads.currentMetadataFieldname)for(i=0;i<r.items.length;i++)Ads.data.acnfacets[t].items[i].selected=r.items[i].term==Ads.currentFacetDisplayname;Ads.advertisementLoadedArticles=null;Ads.currentPageNo=0;$(".module-ad-cards .ad-cards").html("");Ads.isLoaded=!1;Ads.performSearch()},performSearch:function(n){var r,i,u;if(Ads.data==null||!(Ads.currentPageNo*AdsConfig.countInitial>=Ads.data.total)){var t=Ads.getCountrySite(),o=AdsConfig.searchMetadataParametersId,s=this.getCherryPickArticles(),h=AdsConfig.pageTemplate==null||AdsConfig.pageTemplate=="undefined"?"DotComArticlePage,DotComOpenLayoutPage":AdsConfig.pageTemplate,c='"'+h+'"',l='"'+s+'"',a=Ads.getSortByParam(),v='"'+o+'"',y=AdsConfig.enableDateFilter==null||AdsConfig.enableDateFilter=="undefined"?!1:AdsConfig.enableDateFilter,p=Ads.currentPageNo*AdsConfig.countInitial+1;Ads.currentPageNo++;r=AdsConfig.countInitial;i=typeof n!="undefined"?n:this.getSearchFacets();currentPage=typeof digitalData!="undefined"&&digitalData.pageInstanceId!=""?digitalData.pageInstanceId.toLowerCase():document.URL.toLowerCase();u={page:currentPage,cacheFilter:i,activeSort:Ads.currentSort};acncm.CacheManager.write("industryAllAdsCache",JSON.stringify(u));var w='{"pt":'+c+', "sp":'+v+', "rt":"ArticleItem", "f":'+p+', "s":'+r+', "sb":'+a+', "df":'+i+', "cp":'+l+', "edf":'+y+"}",b=t==null||t==""?"/us-en/":"/"+t+"/",f=$("#graceful-error-message").val(),e="<div class='col-sm-12'><p class='align-center'>{0}<\/p><\/div>";$("#pre-loader").css("display","block");$.ajax({type:"POST",url:b+"featuredarticles.search",data:w,async:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){n!=null?(Ads.displayData(n),Ads.initialLoad&&(Ads.initialLoad=!1)):($(".ad-filter").hide(),$(".module-ad-board").append(e.replace("{0}",f)),$(".module-ad-cards").remove())},error:function(){sortOnly=!1;$(".ad-filter").hide();$(".module-ad-board").append(e.replace("{0}",f))},complete:function(){setTimeout(function(){$("#pre-loader").hide()},100)}})}},loadMore:function(){Ads.performSearch()},updateCacheValue:function(n){var i=acncm.CacheManager.read("industryAllAdsCache"),t,r;typeof i!="undefined"&&(t=JSON.parse(i),r={page:t.page,cacheFilter:t.cacheFilter,activeSort:t.activeSort,isFilterCollapsed:n},acncm.CacheManager.write("industryAllAdsCache",JSON.stringify(r)))},initControls:function(){var n=AdsConfig.filtername==null||AdsConfig.filtername==undefined?"":AdsConfig.filtername,t='<a href="#" onclick="return false;"data-analytics-content-type="cta" data-analytics-link-name="'+n.toLowerCase()+'">{0}<\/a>';$(".module-ad-board .module-ad-cards-filter .panel-title").html(t.replace("{0}",n.toUpperCase()));$(".module-ad-board .module-ad-cards button").on("click",function(){Ads.loadMore()})},init:function(){typeof AdsConfig!="undefined"&&AdsConfig!=null&&(this.setDefaultSorting(),this.initControls(),this.performSearch())}};$(function(){var t,n;if(ComponentRegistry.IndustryAllAdsFilter){$(window).on("show.bs.collapse",function(n){ComponentRegistry.IndustryAllAdsFilter&&(Ads.updateCacheValue(!1),setTimeout(function(){Ads.showFilter(n)},500))});$(window).on("hide.bs.collapse",function(n){ComponentRegistry.IndustryAllAdsFilter&&(Ads.updateCacheValue(!0),setTimeout(function(){Ads.hideFilter(n)},500))});$(window).on("resize ready",function(){ComponentRegistry.IndustryAllAdsFilter&&(isMobile()?Ads.mobileModeOn():Ads.mobileModeOff())});$(window).on("scroll",function(){if(!isMobile()){var n=parseInt($(".module-ad-cards").offset().top),t=parseInt($(".module-ad-cards").height()),i=parseInt($(window).scrollTop()),r=parseInt($(window).height()),u=i+r,f=t+n;u-f>=0&&(Ads.loadMore(),ImageLoadChecker())}Ads.isLoaded=!0});t=acncm.CacheManager.read("industryAllAdsCache");typeof t!="undefined"?(n=JSON.parse(t),currentPage=typeof digitalData!="undefined"&&digitalData.pageInstanceId!=""?digitalData.pageInstanceId.toLowerCase():document.URL.toLowerCase(),currentPage==n.page?(Ads.currentSort=n.activeSort,Ads.currentSort=="MostPopular"&&(Ads.currentSort="MostRecent"),Ads.initControls(),Ads.performSearch(n.cacheFilter)):Ads.init()):Ads.init();ImageLoadChecker()}});$(function(){function n(){var i=getParameterByName("PaginationNumber"),n=parseInt(i)-1,t=$("#hero-carousel"),u=$(t).find(".play-pause-button"),r;i===""||isNaN(n)||(r=$("#hero-carousel .carousel-indicators li[role='navigation']"),n>=0&&n<r.length&&(window.onload=function(){$(t).carousel("pause")},$(u).trigger("click"),n>0&&$(t).carousel(n)))}$("ol.carousel-indicators span.acn-icon, span#playPauseIcon").attr("title","icon-pause");$("ol.carousel-indicators span.acn-icon, span#playPauseIcon").attr("aria-label","icon-pause");$(".play-pause-button").attr("aria-label","icon-pause");$(".play-pause-button").on("click",function(){var n=$(this).children(".acn-icon"),t=$(n).data("play-pause-status");$(this).closest(".carousel").carousel(t);t=="pause"?($(n).data("play-pause-status","cycle").removeClass("icon-pause").addClass("icon-play"),$(n).attr("aria-label","icon-play"),$(".play-pause-button").attr("aria-label","icon-play"),$(n).attr("title","icon-play")):($(n).data("play-pause-status","pause").removeClass("icon-play").addClass("icon-pause"),$(n).attr("aria-label","icon-pause"),$(".play-pause-button").attr("aria-label","icon-pause"),$(n).attr("title","icon-pause"))});$("span#playPauseIcon").on("click",function(){$(this).hasClass("icon-pause")?($("span#playPauseIcon").attr("title","icon-play"),$("span#playPauseIcon").attr("aria-label","icon-play")):($("span#playPauseIcon").attr("title","icon-pause"),$("span#playPauseIcon").attr("aria-label","icon-pause"))});n();$.trim($("div#toolbar-container tr td").text())==""&&$("div#toolbar-container").css("visibility","hidden");$("div.hero-header h2.page-identifier p").replaceWith(function(){return $(this).contents()});$(".video-back").on("click touchstart",function(n){var t=$(this).data("url"),i;t!=""&&$(n.target).attr("id")!="playPauseIcon"&&(i=$(this).data("target").toLowerCase(),i=="true"?window.open(t,"_blank"):window.open(t,"_self"))})});$(function(){function f(){$("#hero-carousel video").each(function(){e($(this),!0)})}function e(n,t){if(n&&n.length>0){if(pageState.viewPortWidth<768){n.closest(".video-wrapper.hidden-xs, .hero-video-wrapper.hidden-xs").html("");return}var r=n.closest(".item"),u=r.height(),i=u*16/9;i<r.width()&&(i=r.width(),u=i*9/16);t?n.attr({height:"auto",width:i+"px"}).removeAttr("style"):n.attr({height:u+"px",width:i+"px"}).removeAttr("style")}}function o(){$(".carousel-headline .carouselHeadlineVideoOverlayLink").each(function(){var n=$(this).attr("title"),t=$(this).data("rel"),i=$(this).data("name"),r=$(this).data("linktype");$(window).width()<=767?$(this).parent().append("<a class='carouselHeadlineVideoOverlayLink' href='#' title='"+n+"' data-rel='"+t+"' data-name='"+i+"' data-linktype='"+r+"'>"+$(this).text()+"<\/a>"):$(this).parent().append("<span class='carouselHeadlineVideoOverlayLink' title='"+n+"' data-rel='"+t+"' data-name='"+i+"' data-linktype='"+r+"'>"+$(this).text()+"<\/span>");$(this).remove()})}var s,l;FooterElement.AssignFooterId();$(window).on("resize",function(){FooterElement.AssignFooterId()});o();window.location.pathname.toLowerCase().indexOf("jp-ja/careers")==-1&&window.location.pathname.toLowerCase().indexOf("jp-ja")>=1&&$("body").addClass("jp-ja-custom-css");$("#cookie-disclaimer-short").on("click",function(){$(this).hide();$("#cookie-disclaimer-long").removeClass("hide")});$(".carousel-headline").find("p").each(function(){$(this).attr("style")!=""&&$(this).contents().unwrap()});$(".header-body").find("p").each(function(){$(this).attr("style")!=""&&$(this).contents().unwrap()});$(".cta-container").find("p").each(function(){$(this).attr("style")!=""&&$(this).contents().unwrap()});$("#hero-carousel").on("slid.bs.carousel",function(){$("#hero-carousel .item.active video").each(function(){e($(this),!0)})});f();$(function(){var f=$("div").hasClass("profile-image-container"),e=$("div").hasClass("social-general-marquee"),o=$("#block-hero").data("flag-social"),s=$("#block-hero").data("flag-authenticated"),t="#"+$(".item div.social-general-marquee").closest(".item").attr("id")+" .hero-title-wrapper",r,n,u,i,h;t.length>0&&$(t).addClass("anonymous-header");f&&o=="True"?(n="#"+$(".item div.profile-image-container").closest(".item").attr("id")+" .hero-title-wrapper",n.length>0&&($(n).addClass("social-header"),$(n+" .header-body").addClass("hidden-xs hidden-sm"),r=$(n+" .header-body").length,r==0&&(i=n+" .find-careers",$(i).addClass("blank-content")))):e&&s=="True"&&(n="#"+$(".item div.social-general-marquee").closest(".item").attr("id")+" .hero-title-wrapper",n.length>0&&($(n).addClass("social-header"),$(n+" .header-body").addClass("hidden-xs hidden-sm"),$(n+" .find-careers").addClass("blank-content")));u=$(t+" .header-body").length;u==0&&(i=t+" .find-careers",$(i).addClass("blank-content"));$("ol.carousel-indicators li").on("keydown",function(n){n.which==13&&$(this).trigger("click")});$("span#playPauseIcon").on("keydown",function(n){n.which==13&&$(this).trigger("click")});$("div.social-likes__widget a").attr("style","text-decoration: none !important");$("div.social-likes__widget a").on("keydown",function(n){var t=$(this);if(n.which==13)$(this).trigger("click");else if(n.which==9&&$("div.popover-content").is(":visible")){n.preventDefault();$('div.popover-content div[role="link"]').first().trigger("focus");$("div.popover-content div.social-likes__widget").last().on("keydown",function(n){n.preventDefault();$("div.popover.fade.bottom.in").remove();$(t).trigger("focus")});$('div.popover-content div[role="link"]').on("keydown",function(n){n.which==13&&$(this).trigger("click")})}else if(n.which==9&&$("div.social-likes-post").hasClass("social-likes_opened")){$("div.social-likes-post").each(function(){n.preventDefault();$(this).find("div.social-likes__widget").first().trigger("focus");$(this).find("div.social-likes__widget").last().on("keydown",function(n){n.preventDefault();$("div.social-likes-post").removeClass("social-likes_opened");$(t).trigger("focus")})});$("div.social-likes-post div").on("keydown",function(n){n.which==13&&$(this).trigger("click")})}});$("ol.carousel-indicators li").attr("tabindex","0");$("div.social-likes-post div").attr("tabindex","0");$('div[role="link"].social-likes__widget').attr("tabindex","0");$("div.social-likes_single-w").each(function(){var n=$(this).find('#tooltipPopup div[role="link"].social-likes__widget').first();$(this).find(".social-likes__widget a").on("keydown",function(t){t.which==9&&$("div#tooltipPopup").hasClass("social-likes_opened")&&(t.preventDefault(),n.trigger("focus"))});$(this).find('#tooltipPopup div[role="link"].social-likes__widget').each(function(){$(this).on("keydown",function(n){n.which==13&&$("div#tooltipPopup").hasClass("social-likes_opened")&&(n.preventDefault(),$(this).trigger("click"))});$(this).on("focus",function(){$(this).css("border","1px solid blue")});$(this).on("blur",function(){$(this).css("border","")})})});$("div#tooltipPopup div.social-likes__widget").on("keydown",function(n){$("div#tooltipPopup.social-likes_opened  div.social-likes__widget").last().is(":focus")&&n.which==9&&(n.preventDefault(),$("div#tooltipPopup").removeClass("social-likes_opened"),$(this).parent().parent().find("a").trigger("focus"))});h=$(".featured-section-module-carousel ol.carousel-indicators li");$(".featured-section-module-carousel ol.carousel-indicators li").each(function(){var n=parseInt($(this).attr("data-slide-to"),10),t;++n;t="List item "+n;$(this).attr("aria-label",t);$(this).attr("role","navigation")});$("span#scroll-button").on("focus",function(){$("span#scroll-button").css("border","1px solid blue")});$("span#scroll-button").on("blur",function(){$("span#scroll-button").css("border","")});$("div.panel-heading h2").closest("div").attr("tabindex","0");$("div.panel-heading").on("keydown",function(){$("button.filter-option")!=""&&$("button.filter-option").attr("role","combobox")});$("button.filter-option").attr("role","combobox");$("span a.acn-footerlink").each(function(){$(this).text()||$(this).parent().remove()});$("a span.mobile-acn-footerlink").each(function(){$(this).text()||$(this).parents("li").remove()})});$("#hero-carousel .hero-video").each(function(){var n=$(this);n.hasClass("right")&&n.css("left",$(window).width()-50)});$("#announcement-carousel > .carousel-inner > .item > h5").find("p").each(function(){$(this).attr("style")!=""&&$(this).contents().unwrap()});$("#announcement-carousel > .carousel-inner > .item > a.cta").find("p").each(function(){$(this).attr("style")!=""&&$(this).contents().unwrap()});$("#announcement-carousel > .carousel-inner > div.item > p.announcement-content").each(function(){});$(window).on("resize",function(){setTimeout(function(){f()},300);adjustAnnouncementBlockCarousel();adjustCookieStatementForPreview();$("#hero-carousel .hero-video").each(function(){$("#hero-carousel .hero-video").hasClass("right")&&$(this).css("left",$(window).width()-50)});o()});IsIOS()&&$("#hero-carousel").find("#playPauseIcon").each(function(){$(this).removeClass("icon-pause");$(this).addClass("icon-play")});s=$(".block-title").find("#jump-link-headline");s.hasClass("dotdot")&&$(".richtext a:not([href])").css("top","-170px");var t=$("#primary-menu a"),n=$(".secondary-nav"),i=$(".secondary-nav > .secondary-nav-item"),a=$(".secondary-nav").css("background-color"),v=$("#secondary-header h3"),y=$("#menuClose"),p=$("#secondary-header, #secondary-header span"),r,h,c=function(){var u=$(this),e="secondaryNav-"+u.text().toLowerCase().trim().replace(" ","-"),f=".secondary-nav #"+e;r=f;$(f).length>0?(t.removeAttr("style"),u.css("background-color",a),v.text(u.html().trim()),n.css("display","block"),n.removeClass("hidden"),i.addClass("hidden"),$(f).removeClass("hidden"),i.scrollTop(0),$(window).width()<=767&&setTimeout(function(){n.css("z-index","999999")},100)):(t.removeAttr("style"),n.addClass("hidden"))},u=function(){i.addClass("hidden");t.removeAttr("style");n.addClass("hidden")},w=function(){n.css("display","none");n.css("z-index","9")};t.on("click",c);y.on("click",u);t.on("mouseover",c);n.on("mouseleave",u);p.on("click",w);t.on("keydown",function(n){var t=$(r+" a.cta-after").first();h=$(this);n.which==9&&t.is(":visible")&&(n.preventDefault(),t.trigger("focus"))});l=$(".secondary-nav-item a.cta-after");l.on("keydown",function(n){var t=$(r+" a.cta-after").last();n.which==9&&t.is(":focus")&&t.is(":visible")&&(u(),h.trigger("focus"))});$(".video-back .video-wrapper #carouselVideo").css("width",screen.width)});$("#hero-carousel h1").attr("tabindex","0");$("#hero-carousel h1, button").on("focus",function(){$("#hero-carousel").carousel("pause")});scrollButton=$("span#scroll-button");$("#hero-carousel ol.carousel-indicators li").last().on("keydown",function(n){n.which==9&&$(scrollButton).is(":visible")&&(n.preventDefault(),$(scrollButton).trigger("focus"))});$(scrollButton).on("keydown",function(n){n.which==9&&(n.preventDefault(),$("div.ui-content-box a").first().trigger("focus"))});$(window).on("load",function(){function v(){var n=d(),i=document.location.href.toLowerCase(),t,r;n!="null"&&n!=null&&typeof n!="undefined"&&n.length>0?(t=JSON.parse(n),t.DateCreated<864e5&&(i.indexOf("/careers")>=0?localStorage.removeItem(s):localStorage.removeItem(h)),y(t)):(r="/api/sitecore/CountrySelectorModule/GetCountrySelectorData",$.ajax({type:"GET",url:r,contentType:"application/json; charset=utf-8",data:{pageContext:pageContext},dataType:"json",async:!0,cache:!0,error:function(){alert("Error while trying to get Geo Group List.")},success:function(n){if(n.GeoGroup!=null&&n.GeoGroup!=""){if(n.GeoGroup.length>0){if(typeof Storage!="undefined"){var t={GeoGroup:n.GeoGroup,DateCreated:(new Date).getTime()};i.indexOf("/careers")>=0?localStorage.setItem(s,JSON.stringify(t)):localStorage.setItem(h,JSON.stringify(t))}y(n)}}else alert("Page Context is not set.")}}))}function d(){var n=document.location.href.toLowerCase();return typeof Storage!="undefined"&&(o=n.indexOf("/careers")>=0?localStorage.getItem(s):localStorage.getItem(h)),o}function y(n){var t="";n.GeoGroup.sort(function(n,t){var i=n.GeoName,r=t.GeoName;return i==r?0:i>r?1:-1});$.each(n.GeoGroup,function(n,i){if(i.GeoName!=""){var r=i.GeoName.toLowerCase().replace(" ","-")+"geo";t+="<div id='"+r+"' class='col-sm-2'>";t+="<span class='overlay-title'>"+i.GeoName+"<\/span><\/div>"}});$("#geo-group").html(t);t="";$.each(n.GeoGroup,function(n,i){var r=i.GeoName.toLowerCase().replace(" ","-")+"-row";t+="<div id='"+r+"' class='col-sm-2'>";t+="<h4 class='visible-xs overlay-title'>"+i.GeoName+"<\/h4>";$.each(i.CountryGroup,function(n,r){var u=i.GeoName+r.CountryGroupName;t+="<p class='"+u.toLowerCase().replace(" ","-")+"'>";t+="<span id='"+r.CountryGroupName.replace(/\s+/g,"-")+"' class='overlay-label'>"+r.CountryGroupName+"<\/span><br />";$.each(r.CountryList,function(n,i){var o=document.location.href.toLowerCase(),f=document.location.pathname.toLowerCase(),u="",e;o.indexOf("/careers")>=0?(u=i.CountryCareersUrl,(u==""||typeof u=="undefined")&&(u=i.Sites+"/home/careers")):(u=i.CountryDotcomUrl,(u==""||typeof u=="undefined")&&(u=i.Sites+"/home"));n!=0&&(t+="<span class='color-primary'> / <\/span>");(f==u||f==u+"/"||f==u+"/home")&&(u="javascript:void(0);");e=g(i.LanguageName);t+="<a aria-labelledby='"+r.CountryGroupName.replace(/\s+/g,"-")+"' href='"+u+"' class='overlay-language country-selector-module-link' title='"+e+"' data-linktype='language'>"+e+"<\/a>"});t+="<\/p>"});t+="<\/div>"});$("#geo-country-group").html(t);$("#europe-row p").length>7&&isDesktop()&&nt()}function g(n){var t,i;return(n!=null||n!="")&&(t=n.indexOf("-"),t>0&&(n=n.substring(t+1),i=n.indexOf("("),i>0&&(n=$.trim(n.substring(0,i))))),n}function nt(){var r=$("#europegeo").clone(),n,i;$(r).attr("id","europegeo-expand");$("#europegeo").after(r);n=$("#europe-row").clone();$(n).attr("id","europe-row-expand");$("#europe-row").after(n);$("#europe-row-expand p").remove();var t=$("p[class^=europe]").length,o=Math.floor(t/2),u=t-o+2,f="#europe-row-expand h4",e="";for(indx=u;indx<=t+1;indx++)i="p[class^=europe]:nth-child("+u+")",e="."+$(i).attr("class"),$(i).insertAfter($(f)),f=e;$("#europe-row-expand h4").remove()}var r,u,a,f,e,c,l,i,p,w;if($(".module-body.announcement-block").fadeIn(1e3),r=$("#cookie-statement-content").data("disclaimer-location"),r=="Marquee"?($("#ui-wrapper,#ui-error-wrapper").prepend($(".cookie-hero")),checkCookieStatementClosure(".cookie-hero"),$("#disclaimer-cookiestatement").addClass("hide")):r=="Navigation Bar"?($("body").prepend($(".cookie-nav")).addClass("has-cookie-nav"),checkCookieStatementClosure(".cookie-nav"),$("#disclaimer-cookiestatement").addClass("hide")):checkCookieStatementClosure("#disclaimer-cookiestatement,#disclaimer-cookiestatement-mobile"),adjustAnnouncementBlockCarousel(),u=$("#scWebEditRibbon"),u.length>0&&$("#scFieldValues").length<=0){adjustHeaderOnLoadEditor();a=$("a[data-sc-id='QuickRibbon']",u.contents());a.on("click dblclick",function(){setTimeout(adjustHeaderForPreview,50);setTimeout(adjustJumplinkForPreview,60)})}$("#btn-main-menu-mobile").on("click",function(){$.sidr("toggle","main-menu",function(){})});$("#btnMainMenu, #menuClose").on("click",function(){Navigation.collapseExpandMenu();var n=parseInt($("#main-menu").css("width"),10),t=parseInt($("#block-jumplink").css("width"),10),i=t-n+"px";$.sidr("toggle","main-menu",function(){$("#main-menu").is(":visible")?$("#block-jumplink").css("right","260px"):$("#block-jumplink").css("right","0px")})});var n=$("#btnMainMenu"),b=$("#main-menu"),t=$("#menuClose"),k=$(".secondary-nav");t.on("keydown",function(i){i.which==13&&(Navigation.collapseExpandMenu(),t.trigger("click"),n.trigger("focus"))});b.on("keydown",function(i){i.which==27&&(t.trigger("click"),n.trigger("focus"))});k.on("keydown",function(i){i.which==27&&(t.trigger("click"),n.trigger("focus"))});n.on("keypress",function(n){n.which==13&&$(this).trigger("click")});$("#btnCountrySelectorMenu").sidr({name:"main-menu",side:"right"});$(".keyboard-container-center").on("hover",function(){$("#smart-search-label-laptop").attr("class","hide-smart-search-label");$("#smart-search-label-tablet").attr("class","hide-smart-search-label");$(".hover-keyboard").show()},function(){$("#smart-search-label-laptop").attr("class","visible-md visible-lg");$("#smart-search-label-tablet").attr("class","visible-sm");$(".hover-keyboard").hide()});$("#search-form .tt-hint").attr("aria-label","hint");$("#search-form #keywords").attr("aria-label","keywords");f=$(".page-identifier");e=$(".page-identifier.hidden-xs");f.text()==""&&f.remove();e.text()==""&&e.remove();$("div.page-title").children("h1").text()==""&&$("div.page-title").children("h1").remove();$("#job-did-you-mean-section").attr("style","display: none")&&$("#job-did-you-mean-section h3").text()==""&&$("#job-did-you-mean-section h3").remove();$("h3.panel-title").text()==""&&$("#social-optin-section").attr("style","display: none")&&$("h3.panel-title").text("panel-title");$("#did-you-mean-section .top-nav-bar").text()==""&&$("#did-you-mean-section").attr("style","display: none")&&$("#did-you-mean-section .top-nav-bar").text("top-nav-bar");$("#social-optin-section .search-title").text()==""&&$("#social-optin-section").attr("style","display: none")&&$("#social-optin-section .search-title").text("search-title");$(".carousel-headline").each(function(){$.trim($(this).html())==""&&$(this).remove()});$(".social a.acn-spr").each(function(){var n=$(this);n.hasClass("acn-spr facebook")?n.attr("aria-label","Follow us on Facebook"):n.hasClass("acn-spr linkedin")?n.attr("aria-label","Follow us on LinkedIn"):n.hasClass("acn-spr instagram")?n.attr("aria-label","Follow us on Instagram"):n.hasClass("acn-spr twitter")?n.attr("aria-label","Follow us on Twitter"):n.hasClass("acn-spr googleplus")?n.attr("aria-label","Follow us on Google+"):n.hasClass("acn-spr youtube")?n.attr("aria-label","See Accenture on Youtube"):n.hasClass("acn-spr accenture app")&&n.attr("aria-label","Accenture Mobile Apps")});$(".country-language-trigger").on("tap",function(){v();$("#countryLanguageSelectorModal").appendTo("body").modal("show")});$(".country-language-trigger").on("click",function(){v();$("#countryLanguageSelectorModal").appendTo("body").modal("show")});var o="",s="CountryLanguageSelectorData_Careers",h="CountryLanguageSelectorData_Dotcom";c=$(".language-icon");l=$("#countryLanguageSelectorModal button.close");l.on("keydown",function(n){n.which==13&&($(this).trigger("click"),n.preventDefault(),c.trigger("focus"))});$("#countryLanguageSelectorModal").on("keydown",function(n){n.keyCode==27&&(l.trigger("click"),n.preventDefault(),c.trigger("focus"))});$("img.imagemodule").attr("title",function(){return $(this).attr("alt")});i=window.location.hash;i!=""&&(document.getElementById(i.replace("#","")).scrollIntoView(),setTimeout(function(){scrollToAnchor(i.substr(1))},1e3));p=window.location.href.toLowerCase();p.indexOf("onboarding/countdown-to-accenture")<0&&putIdOnMainContent();$(".btn1.dropdown-toggle.btn-primary").each(function(){$(this).on("keydown",function(n){$("div.suggestedjobs-btn-group.dropdown.white-dropdown").each(function(){$(this).on("focus","a",function(){$this=$(this);$this.closest("div.suggestedjobs-btn-group.dropdown.white-dropdown").scrollTop($this.index()*$this.outerHeight())}).on("keydown","a",function(n){if($this=$(this),n.keyCode==40)return $this.parent().next().find("a").trigger("focus"),!1;if(n.keyCode==38)return $this.parent().prev().find("a").trigger("focus"),!1;n.which==13?$this.trigger("click"):n.which==9&&($this.parent().parent().parent().removeClass("open"),$("btn-SuggestedJob-Submit").trigger("focus"))}).find("a").first().trigger("focus")});n.which==9&&$(this).parent().removeClass("open")})});$("span.icon-chevronthin.icon-chevron_thin.align-right").each(function(){$(this).on("keydown",function(n){n.which==13&&(n.preventDefault(),$(this).parent().next().removeClass("hidden"))})});$("span.close-video-accordion.icon-accordion-close-thin.icon-x-close").each(function(){$(this).on("keydown",function(n){n.which==13&&(n.preventDefault(),$(this).parent().addClass("hidden"))})});$("div.media-container a").each(function(){$(this).on("keydown",function(n){n.which==9&&(n.preventDefault(),$(this).closest(".media-container").addClass("hidden"),$(this).closest("#video-accordion").attr("style",""),$(this).closest("#video-accordion").find(".container-claster.hidden").removeClass("hidden"),$(this).closest(".container-claster").find(".icon-chevronthin").trigger("focus"))})});w=$(".validatorMessage,#industryErrorMessage");w.attr("tabindex","0")});Navigation={collapseExpandMenu:function(){var r=$("#ui-menu-nav-collapse"),u=$("#ui-menu-nav-expand"),f=$("#header-topnav, .cookie-nav"),c=$("#main-menu"),n=$("#LoginPopoverTriggerContainer .popover"),t=$(window).width(),i=1200,e=768,o=$("#LoginPopoverTriggerContainer").find(".authenticated").length==0?!0:!1,s=$(".onboarding"),h;r.length==1&&s.length==0&&(r.attr("id","ui-menu-nav-expand"),f.addClass("top-nav-menu-expand"),c.removeClass("hide-menu"),o&&(t>=i?(n.attr("style","left: 0% !important"),n.css("right","20.5%"),n.css("display","block"),h=$("#main-menu").width()-$("#LoginPopoverTriggerContainer").width(),$("#LoginPopoverTriggerContainer .popover .arrow").css("right",h+"px")):t<i&&t>e&&(n.attr("style","left: 0% !important"),n.css("right","25%"),n.css("display","block"))));u.length==1&&s.length==0&&(u.attr("id","ui-menu-nav-collapse"),f.removeClass("top-nav-menu-expand"),o&&(t>=i?(n.css("left",""),n.css("right","")):t<i&&t>e&&(n.css("right",""),n.css("left",""))))}};FooterElement={AssignFooterId:function(){$(window).width()<768?($("#block-footer-lg").attr("id",""),$("#block-footer-xs").attr("id","block-footer")):($("#block-footer-xs").attr("id",""),$("#block-footer-lg").attr("id","block-footer"))}};$(window).on("load resize",function(){var t=$("#mobile-textlink").outerWidth(),i=$("#mobile-textlink-careers").outerWidth(),n=0;$("#mobile-textlink li").each(function(){var i=$(this).outerWidth(),r=$(this).next().outerWidth();n+=i-1;n+r>t?($(this).addClass("nobordertextlink"),$(this).removeClass("withbordertextlink"),n=0):($(this).addClass("withbordertextlink"),$(this).removeClass("nobordertextlink"))});n=0;$("#mobile-textlink-careers li").each(function(){var t=$(this).outerWidth(),r=$(this).next().outerWidth();n+=t-1;n+r>i?($(this).addClass("nobordertextlink"),$(this).removeClass("withbordertextlink"),n=0):($(this).addClass("withbordertextlink"),$(this).removeClass("nobordertextlink"))})});if(window.onpagehide||window.onpagehide===null)$(window).on("pagehide",function(){SetSessionStorageCurrentUrl()});else $(window).on("unload",function(){SetSessionStorageCurrentUrl()});$(document).on("click",".authenticated ul li a",function(){var t=$(this).attr("id"),n;"signout"!=t&&(n=$(this).attr("href"),typeof n!="undefined"&&n!=""?location.reload(n):alert("Please set Client/Careers User Link value in content editor > _Settings ComponentSettings."))});$accordionExpandCollapse=$(".acn-accordion .panel-heading");$accordionExpandCollapse.on("click",function(){var n=$(this),t="";n&&n.length&&(n.find("h2.panel-title").length>0&&(t=n.find("h2.panel-title").text().trim().toLowerCase()),n.hasClass("collapsed")?n.attr("data-analytics-link-name",t+"-collapse"):n.attr("data-analytics-link-name",t+"-expand"))});(function(){(function(n){"use strict";var r,i,t;return r=function(n,t){var i;return this.$element=n,this.options=t,this.weekDays=["sun","mon","tue","wed","thu","fri","sat","sun"],this.time=new Date,this.currentYear=this.time.getFullYear(),this.currentMonth=this.time.getMonth(),this.options.time&&(i=this.splitDateString(this.options.time),this.currentYear=i.year,this.currentMonth=i.month),this.initialDraw(),null},r.prototype={addLeadingZero:function(n){return n<10?"0"+n:""+n},applyTransition:function(n,t){return n.css("transition",t),n.css("-ms-transition","-ms-"+t),n.css("-moz-transition","-moz-"+t),n.css("-webkit-transition","-webkit-"+t)},applyBackfaceVisibility:function(n){return n.css("backface-visibility","hidden"),n.css("-ms-backface-visibility","hidden"),n.css("-moz-backface-visibility","hidden"),n.css("-webkit-backface-visibility","hidden")},applyTransform:function(n,t){return n.css("transform",t),n.css("-ms-transform",t),n.css("-moz-transform",t),n.css("-webkit-transform",t)},splitDateString:function(n){var i,r,t,u;return t=n.split("-"),u=parseInt(t[0]),r=parseInt(t[1]-1),i=parseInt(t[2]),{year:u,month:r,day:i}},initialDraw:function(){return this.drawDays(this.currentYear,this.currentMonth)},editDays:function(n){var t,i,f,r,u=[];for(t in n)f=n[t],this.options.events[t]=n[t],r=this.splitDateString(t),i=this.$element.find('[data-year="'+r.year+'"][data-month="'+(r.month+1)+'"][data-day="'+r.day+'"]').parent(".day"),i.removeClass("active"),i.find(".badge").remove(),i.find("a").removeAttr("href"),this.currentMonth===r.month||this.options.activateNonCurrentMonths?u.push(this.makeActive(i,f)):u.push(void 0);return u},clearDays:function(n){var u,t,i,r,e,f;for(f=[],r=0,e=n.length;r<e;r++)u=n[r],delete this.options.events[u],i=this.splitDateString(u),t=this.$element.find('[data-year="'+i.year+'"][data-month="'+(i.month+1)+'"][data-day="'+i.day+'"]').parent(".day"),t.removeClass("active"),t.find(".badge").remove(),f.push(t.find("a").removeAttr("href"));return f},clearAll:function(){var t,i,r,u,e,f;for(this.options.events={},i=this.$element.find('[data-group="days"] .day'),f=[],r=u=0,e=i.length;u<e;r=++u)t=i[r],n(t).removeClass("active"),n(t).find(".badge").remove(),f.push(n(t).find("a").removeAttr("href"));return f},setMonth:function(n){var t;return t=this.splitDateString(n),this.currentMonth=this.drawDays(t.year,t.month)},prev:function(){return this.currentMonth-1<0?(this.currentYear=this.currentYear-1,this.currentMonth=11):this.currentMonth=this.currentMonth-1,this.drawDays(this.currentYear,this.currentMonth),this.options.onMonthChange&&this.options.onMonthChange.call(this),null},next:function(){return this.currentMonth+1>11?(this.currentYear=this.currentYear+1,this.currentMonth=0):this.currentMonth=this.currentMonth+1,this.drawDays(this.currentYear,this.currentMonth),this.options.onMonthChange&&this.options.onMonthChange.call(this),null},addOthers:function(t,i){var r;return typeof i=="object"&&(i.number!=null&&(r=n("<span><\/span>").html(i.number).addClass("badge"),i.badgeClass!=null&&r.addClass(i.badgeClass),t.append(r)),i.url&&t.find("a").attr("href",i.url)),t},makeActive:function(n,t){var i,f,r,u,e;if(t){if(t["class"])for(i=t["class"].split(" "),r=u=0,e=i.length;u<e;r=++u)f=i[r],n.addClass(f);else n.addClass("active");n=this.addOthers(n,t)}return n},getDaysInMonth:function(n,t){return new Date(n,t+1,0).getDate()},drawDay:function(t,i,r,u,f){var o,s,h,e,c,l;return e=n("<div><\/div>").addClass("day"),s=new Date,s.setHours(0,0,0,0),c=new Date(i,r-1,u),l=c.getTime()<s.getTime()?"past":c.getTime()===s.getTime()?"today":"future",e.addClass(this.weekDays[f%7]),e.addClass(l),h=i+"-"+this.addLeadingZero(r)+"-"+this.addLeadingZero(u),(u<=0||u>t)&&(o=new Date(i,r-1,u),u=o.getDate(),r=o.getMonth()+1,i=o.getFullYear(),e.addClass("not-current").addClass(l),this.options.activateNonCurrentMonths&&(h=i+"-"+this.addLeadingZero(r)+"-"+this.addLeadingZero(u))),e.append(n("<a>"+u+"<\/a>").attr("data-day",u).attr("data-month",r).attr("data-year",i)),this.options.monthChangeAnimation&&(this.applyTransform(e,"rotateY(180deg)"),this.applyBackfaceVisibility(e)),e=this.makeActive(e,this.options.events[h]),this.$element.find('[data-group="days"]').append(e)},drawDays:function(t,i){var p,e,s,o,c,w,h,u,l,a,b,k,r,f,v,d,y,g;if(r=this,f=new Date(t,i),p=f.getMonth(),b=f.getMonth()+1,d=f.getFullYear(),f.setDate(1),h=this.options.startFromSunday?f.getDay()+1:f.getDay()||7,l=this.getDaysInMonth(t,i),v=0,this.options.monthChangeAnimation)for(o=this.$element.find('[data-group="days"] .day'),u=y=0,g=o.length;y<g;u=++y)e=o[u],c=u*.01,this.applyTransition(n(e),"transform .5s ease "+c+"s"),this.applyTransform(n(e),"rotateY(180deg)"),this.applyBackfaceVisibility(n(e)),v=(c+.1)*1e3;return s=2,this.options.allRows?a=42:(k=Math.ceil((h-(s-1)+l)/7),a=k*7),this.$element.find("[data-head-year]").html(f.getFullYear()),this.$element.find("[data-head-month]").html(this.options.translateMonths[f.getMonth()]),w=function(){var t,i;for(r.$element.find('[data-group="days"]').empty(),t=s-h,u=r.options.startFromSunday?0:1;t<a-h+s;)r.drawDay(l,d,b,t,u),t=t+1,u=u+1;return i=function(){var t,i;for(o=r.$element.find('[data-group="days"] .day'),u=t=0,i=o.length;t<i;u=++t)e=o[u],r.applyTransition(n(e),"transform .5s ease "+u*.01+"s"),r.applyTransform(n(e),"rotateY(0deg)");if(r.options.onDayClick)r.$element.find('[data-group="days"] .day a').on("click",function(){return r.options.onDayClick.call(this,r.options.events)});if(r.options.onDayHover)r.$element.find('[data-group="days"] .day a').on("hover",function(){return r.options.onDayHover.call(this,r.options.events)});if(r.options.onActiveDayClick)r.$element.find('[data-group="days"] .day.active a').on("click",function(){return r.options.onActiveDayClick.call(this,r.options.events)});if(r.options.onActiveDayHover)return r.$element.find('[data-group="days"] .day.active a').on("hover",function(){return r.options.onActiveDayHover.call(this,r.options.events)})},setTimeout(i,0)},setTimeout(w,v),p}},n.fn.responsiveCalendar=function(t,i){var e,u,f;return i==null&&(i=void 0),u=n.extend({},n.fn.responsiveCalendar.defaults,typeof t=="object"&&t),f={next:"next",prev:"prev",edit:"editDays",clear:"clearDays",clearAll:"clearAll"},e=function(t){var i;u=n.metadata?n.extend({},u,t.metadata()):u;t.data("calendar",i=new r(t,u));u.onInit&&u.onInit.call(i);return t.find("[data-go]").on("click",function(){return n(this).data("go")==="prev"&&i.prev(),n(this).data("go")==="next"?i.next():void 0})},this.each(function(){var u,r;return u=n(this),r=u.data("calendar"),r?typeof t=="string"?f[t]!=null?r[f[t]](i):r.setMonth(t):typeof t=="number"&&r.jump(Math.abs(t)+1):e(u),null})},n.fn.responsiveCalendar.defaults={translateMonths:typeof months=="undefined"?["January","February","March","April","May","June","July","August","September","October","November","December"]:months,events:{},time:void 0,allRows:!0,startFromSunday:!1,activateNonCurrentMonths:!1,monthChangeAnimation:!0,onInit:void 0,onDayClick:void 0,onDayHover:void 0,onActiveDayClick:void 0,onActiveDayHover:void 0,onMonthChange:void 0},t=n('[data-spy="responsive-calendar"]'),t.length?(i={},t.data("translate-months")!=null&&(i.translateMonths=t.data("translate-months").split(",")),t.data("time")!=null&&(i.time=t.data("time")),t.data("all-rows")!=null&&(i.allRows=t.data("all-rows")),t.data("start-from-sunday")!=null&&(i.startFromSunday=t.data("start-from-sunday")),t.data("activate-non-current-months")!=null&&(i.activateNonCurrentMonths=t.data("activate-non-current-months")),t.data("month-change-animation")!=null&&(i.monthChangeAnimation=t.data("month-change-animation")),t.responsiveCalendar(i)):void 0})(jQuery)}).call(this),function(n){function ut(n,t,i){return i.transition=="transition"&&t=="swing"&&(t="ease"),{anims:[],duration:n,orgDuration:n,easing:t,startTime:p()}}function k(n,t){for(var i,r=0,u=n.anims.length;r<u;r++)(i=n.anims[r],i)&&i[0][t.transition](i[1],n.duration,n.easing,i[2])}function ft(n,t){var r,e,i;for(f(t)||(t=!0),s(n.pre)&&ft(n.pre,t),r=0,e=n.anims.length;r<e;r++)i=n.anims[r],i[0].stop(!0),t&&(i[0].css(i[1]),u(i[2])&&i[2]());s(n.post)&&ft(n.post,t)}function ui(n,t,i){t&&t.remove();switch(i.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":n.css("opacity",1);n.css("filter","")}}function et(n,t,i,r,u){if(t[i]&&t[i].call(n,r),u[i].length)for(var f=0,e=u[i].length;f<e;f++)u[i][f].call(n,r);return[]}function fi(n,i,r){return i.length&&(n.trigger(t(i[0][0],r),i[0][1]),i.shift()),i}function ei(t){t.each(function(){var t=n(this);t.data("_cfs_isHidden",t.is(":hidden")).hide()})}function oi(t){t&&t.each(function(){var t=n(this);t.data("_cfs_isHidden")||t.show()})}function d(n){return n.auto&&clearTimeout(n.auto),n.progress&&clearInterval(n.progress),n}function si(n,t,i,r,u,f,e){return{width:e.width,height:e.height,items:{old:n,skipped:t,visible:i},scroll:{items:r,direction:u,duration:f}}}function hi(n,t,i,r){var u=n.duration;return n.fx=="none"?0:(u=="auto"?u=t.scroll.duration/t.scroll.items*i:u<10&&(u=r/u),u<1)?0:(n.fx=="fade"&&(u=u/2),Math.round(u))}function vt(n,t,u){var s=i(n.items.minimum)?n.items.minimum:n.items.visible+1,f,e,o;t=="show"||t=="hide"?f=t:s>t?(r(u,"Not enough items ("+t+" total, "+s+" needed): Hiding navigation."),f="hide"):f="show";e=f=="show"?"removeClass":"addClass";o=l("hidden",u);n.auto.button&&n.auto.button[f]()[e](o);n.prev.button&&n.prev.button[f]()[e](o);n.next.button&&n.next.button[f]()[e](o);n.pagination.container&&n.pagination.container[f]()[e](o)}function g(n,t,i){var r,u,f;n.circular||n.infinite||(r=t=="removeClass"||t=="addClass"?t:!1,u=l("disabled",i),n.auto.button&&r&&n.auto.button[r](u),n.prev.button&&(f=r||t==0?"addClass":"removeClass",n.prev.button[f](u)),n.next.button&&(f=r||t==n.items.visible?"addClass":"removeClass",n.next.button[f](u)))}function ot(n,t){return u(t)?t=t.call(n):o(t)&&(t={}),t}function or(n,t){return t=ot(n,t),i(t)?t={visible:t}:t=="variable"?t={visible:t,width:t,height:t}:s(t)||(t={}),t}function sr(n,t){return t=ot(n,t),i(t)?t=t<=50?{items:t}:{duration:t}:e(t)?t={easing:t}:s(t)||(t={}),t}function yt(t,i){if(i=ot(t,i),e(i)){var r=ir(i);i=r==-1?n(i):r}return i}function hr(n,t){return t=yt(n,t),c(t)?t={button:t}:f(t)?t={play:t}:i(t)&&(t={timeoutDuration:t}),t.progress&&(e(t.progress)||c(t.progress))&&(t.progress={bar:t.progress}),t}function cr(t,r){return u(r.button)&&(r.button=r.button.call(t)),e(r.button)&&(r.button=n(r.button)),f(r.play)||(r.play=!0),i(r.delay)||(r.delay=0),o(r.pauseOnEvent)&&(r.pauseOnEvent=!0),f(r.pauseOnResize)||(r.pauseOnResize=!0),i(r.timeoutDuration)||(r.timeoutDuration=r.duration<10?2500:r.duration*5),r.progress&&(u(r.progress.bar)&&(r.progress.bar=r.progress.bar.call(t)),e(r.progress.bar)&&(r.progress.bar=n(r.progress.bar)),r.progress.bar?(u(r.progress.updater)||(r.progress.updater=n.fn.carouFredSel.progressbarUpdater),i(r.progress.interval)||(r.progress.interval=50)):r.progress=!1),r}function ci(n,t){return t=yt(n,t),c(t)?t={button:t}:i(t)&&(t={key:t}),t}function li(t,i){return u(i.button)&&(i.button=i.button.call(t)),e(i.button)&&(i.button=n(i.button)),e(i.key)&&(i.key=ir(i.key)),i}function lr(n,t){return t=yt(n,t),c(t)?t={container:t}:f(t)&&(t={keys:t}),t}function ar(t,r){return u(r.container)&&(r.container=r.container.call(t)),e(r.container)&&(r.container=n(r.container)),i(r.items)||(r.items=!1),f(r.keys)||(r.keys=!1),u(r.anchorBuilder)||ri(r.anchorBuilder)||(r.anchorBuilder=n.fn.carouFredSel.pageAnchorBuilder),i(r.deviation)||(r.deviation=0),r}function vr(n,t){return u(t)&&(t=t.call(n)),o(t)&&(t={onTouch:!1}),rt(t)?t={onTouch:t}:i(t)&&(t={items:t}),t}function yr(n,t){return f(t.onTouch)||(t.onTouch=!0),f(t.onMouse)||(t.onMouse=!1),s(t.options)||(t.options={}),f(t.options.triggerOnTouchEnd)||(t.options.triggerOnTouchEnd=!1),t}function pr(n,t){return u(t)&&(t=t.call(n)),rt(t)?t={}:i(t)?t={items:t}:o(t)&&(t=!1),t}function wr(n,t){return t}function nt(t,r,u,o,h){if(e(t)&&(t=n(t,h)),s(t)&&(t=n(t,h)),c(t)?(t=h.children().index(t),f(u)||(u=!1)):f(u)||(u=!0),i(t)||(t=0),i(r)||(r=0),u&&(t+=o.first),t+=r,o.total>0){while(t>=o.total)t-=o.total;while(t<0)t+=o.total}return t}function pt(n,t,i){for(var u,f=0,e=0,r=i;r>=0;r--){if(u=n.eq(r),f+=u.is(":visible")?u[t.d.outerWidth](!0):0,f>t.maxDimension)return e;r==0&&(r=n.length);e++}}function br(n,t,i){return ai(n,t.items.filter,t.items.visibleConf.org,i)}function kr(n,t,i,r){return ai(n,t.items.filter,r,i)}function ai(n,t,i,r){for(var s,e=0,f=0,u=r,o=n.length;u>=0;u--){if((f++,f==o)||(s=n.eq(u),s.is(t)&&(e++,e==i)))return f;u==0&&(u=o)}}function vi(n,t){return t.items.visibleConf.org||n.children().slice(0,t.items.visible).filter(t.items.filter).length}function w(n,t,i){for(var e,o=0,u=0,r=i,f=n.length-1;r<=f;r++){if((e=n.eq(r),o+=e.is(":visible")?e[t.d.outerWidth](!0):0,o>t.maxDimension)||(u++,u==f+1))return u;r==f&&(r=-1)}}function yi(n,t,i,r){var u=w(n,t,i);return t.circular||i+u>r&&(u=r-i),u}function st(n,t,i){return pi(n,t.items.filter,t.items.visibleConf.org,i,t.circular)}function dr(n,t,i,r){return pi(n,t.items.filter,r+1,i,t.circular)-1}function pi(n,t,i,r){for(var s,o=0,f=0,u=r,e=n.length-1;u<=e;u++){if((f++,f>=e)||(s=n.eq(u),s.is(t)&&(o++,o==i)))return f;u==e&&(u=-1)}}function tt(n,t){return n.slice(0,t.items.visible)}function gr(n,t,i){return n.slice(i,t.items.visibleConf.old+i)}function nu(n,t){return n.slice(0,t.items.visible)}function tu(n,t){return n.slice(0,t.items.visibleConf.old)}function iu(n,t,i){return n.slice(i,t.items.visible+i)}function wt(t,r,u){r.usePadding&&(e(u)||(u="_cfs_origCssMargin"),t.each(function(){var f=n(this),t=parseInt(f.css(r.d.marginRight),10);i(t)||(t=0);f.data(u,t)}))}function h(t,r,u){if(r.usePadding){var e=f(u)?u:!1;i(u)||(u=0);wt(t,r,"_cfs_tempCssMargin");t.each(function(){var t=n(this);t.css(r.d.marginRight,e?t.data("_cfs_tempCssMargin"):u+t.data("_cfs_origCssMargin"))})}}function ht(t){t.each(function(){var t=n(this);t.data("_cfs_origCss",t.attr("style")||"")})}function bt(t){t.each(function(){var t=n(this);t.attr("style",t.data("_cfs_origCss")||"")})}function wi(t,i){var e=t.items.visible,u=t.items[t.d.width],r=t[t.d.height],f=lt(r);i.each(function(){var i=n(this),e=u-ru(i,t,"Width");i[t.d.width](e);f&&i[t.d.height](gt(e,r))})}function kt(n,t){var s=n.parent(),u=n.children(),o=tt(u,t),f=ni(dt(o,t,!0),t,!1),i,r,e;return s.css(f),t.usePadding&&(i=t.padding,r=i[t.d[1]],t.align&&r<0&&(r=0),e=o.last(),e.css(t.d.marginRight,e.data("_cfs_origCssMargin")+r),n.css(t.d.top,i[t.d[0]]),n.css(t.d.left,i[t.d[3]])),n.css(t.d.width,f[t.d.width]+v(u,t,"width")*2),n.css(t.d.height,bi(u,t,"height")),f}function dt(n,t,i){return[v(n,t,"width",i),bi(n,t,"height",i)]}function bi(n,t,r,u){return(f(u)||(u=!1),i(t[t.d[r]])&&u)?t[t.d[r]]:i(t.items[t.d[r]])?t.items[t.d[r]]:(r=r.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",ct(n,t,r))}function ct(n,t,i){for(var f,e,r=0,u=0,o=n.length;u<o;u++)f=n.eq(u),e=f.is(":visible")?f[t.d[i]](!0):0,r<e&&(r=e);return r}function v(n,t,r,u){var h,o,e,c,s;if(f(u)||(u=!1),i(t[t.d[r]])&&u)return t[t.d[r]];if(i(t.items[t.d[r]]))return t.items[t.d[r]]*n.length;for(h=r.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",o=0,e=0,c=n.length;e<c;e++)s=n.eq(e),o+=s.is(":visible")?s[t.d[h]](!0):0;return o}function ki(n,t,i){var r=n.is(":visible"),u;return r&&n.hide(),u=n.parent()[t.d[i]](),r&&n.show(),u}function di(n,t){return i(n[n.d.width])?n[n.d.width]:t}function gi(n,t,i){for(var e,o,r=!1,u=!1,f=0,s=n.length;f<s;f++)e=n.eq(f),o=e.is(":visible")?e[t.d[i]](!0):0,r===!1?r=o:r!=o&&(u=!0),r==0&&(u=!0);return u}function ru(n,t,i){return n[t.d["outer"+i]](!0)-n[t.d[i.toLowerCase()]]()}function gt(n,t){if(lt(t)){if(t=parseInt(t.slice(0,-1),10),!i(t))return n;n*=t/100}return n}function t(n,t,i,r,u){return f(i)||(i=!0),f(r)||(r=!0),f(u)||(u=!1),i&&(n=t.events.prefix+n),r&&(n=n+"."+t.events.namespace),r&&u&&(n+=t.serialNumber),n}function l(n,t){return e(t.classnames[n])?t.classnames[n]:n}function ni(n,t,i){f(i)||(i=!0);var r=t.usePadding&&i?t.padding:[0,0,0,0],u={};return u[t.d.width]=n[0]+r[1]+r[3],u[t.d.height]=n[1]+r[0]+r[2],u}function b(n,t){for(var i,f,u=[],r=0,e=n.length;r<e;r++)for(i=0,f=t.length;i<f;i++)if(t[i].indexOf(typeof n[r])>-1&&o(u[i])){u[i]=n[r];break}return u}function uu(n){if(o(n))return[0,0,0,0];if(i(n))return[n,n,n,n];if(e(n)&&(n=n.split("px").join("").split("em").join("").split(" ")),!y(n))return[0,0,0,0];for(var t=0;t<4;t++)n[t]=parseInt(n[t],10);switch(n.length){case 0:return[0,0,0,0];case 1:return[n[0],n[0],n[0],n[0]];case 2:return[n[0],n[1],n[0],n[1]];case 3:return[n[0],n[1],n[2],n[1]];default:return[n[0],n[1],n[2],n[3]]}}function ti(n,t){var r=i(t[t.d.width])?Math.ceil(t[t.d.width]-v(n,t,"width")):0;switch(t.align){case"left":return[0,r];case"right":return[r,0];case"center":default:return[Math.ceil(r/2),Math.floor(r/2)]}}function fu(n){for(var i=[["width","innerWidth","outerWidth","height","innerHeight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],u=i[0].length,f=n.direction=="right"||n.direction=="left"?0:1,r={},t=0;t<u;t++)r[i[0][t]]=i[f][t];return r}function ii(n,t,r,f){var o=n,h,c;if(u(r))o=r.call(f,o);else if(e(r)){if(h=r.split("+"),c=r.split("-"),c.length>h.length)var l=!0,a=c[0],s=c[1];else var l=!1,a=h[0],s=h[1];switch(a){case"even":o=n%2==1?n-1:n;break;case"odd":o=n%2==0?n-1:n;break;default:o=n}s=parseInt(s,10);i(s)&&(l&&(s=-s),o+=s)}return(!i(o)||o<1)&&(o=1),o}function a(n,t,i,r){return nr(ii(n,t,i,r),t.items.visibleConf)}function nr(n,t){return i(t.min)&&n<t.min&&(n=t.min),i(t.max)&&n>t.max&&(n=t.max),n<1&&(n=1),n}function tr(t){y(t)||(t=[[t]]);y(t[0])||(t=[t]);for(var r=0,u=t.length;r<u;r++)e(t[r][0])&&(t[r][0]=n(t[r][0])),f(t[r][1])||(t[r][1]=!0),f(t[r][2])||(t[r][2]=!0),i(t[r][3])||(t[r][3]=0);return t}function ir(n){return n=="right"?39:n=="left"?37:n=="up"?38:n=="down"?40:-1}function rr(i,r,u){if(i){var f=r.triggerHandler(t("currentPosition",u));n.fn.carouFredSel.cookie.set(i,f)}}function eu(t){var i=n.fn.carouFredSel.cookie.get(t);return i==""?0:i}function ou(n,t){for(var r={},i=0,u=t.length;i<u;i++)r[t[i]]=n.css(t[i]);return r}function su(n,t,f,o){return s(n.visibleConf)||(n.visibleConf={}),s(n.sizesConf)||(n.sizesConf={}),n.start==0&&i(o)&&(n.start=o),s(n.visible)?(n.visibleConf.min=n.visible.min,n.visibleConf.max=n.visible.max,n.visible=!1):e(n.visible)?(n.visible=="variable"?n.visibleConf.variable=!0:n.visibleConf.adjust=n.visible,n.visible=!1):u(n.visible)&&(n.visibleConf.adjust=n.visible,n.visible=!1),e(n.filter)||(n.filter=f.filter(":hidden").length>0?":visible":"*"),n[t.d.width]||(t.responsive?(r(!0,"Set a "+t.d.width+" for the items!"),n[t.d.width]=ct(f,t,"outerWidth")):n[t.d.width]=gi(f,t,"outerWidth")?"variable":f[t.d.outerWidth](!0)),n[t.d.height]||(n[t.d.height]=gi(f,t,"outerHeight")?"variable":f[t.d.outerHeight](!0)),n.sizesConf.width=n.width,n.sizesConf.height=n.height,n}function hu(n,t){return n.items[n.d.width]=="variable"&&(n.items.visibleConf.variable=!0),n.items.visibleConf.variable||(i(n[n.d.width])?n.items.visible=Math.floor(n[n.d.width]/n.items[n.d.width]):(n.items.visible=Math.floor(t/n.items[n.d.width]),n[n.d.width]=n.items.visible*n.items[n.d.width],n.items.visibleConf.adjust||(n.align=!1)),(n.items.visible=="Infinity"||n.items.visible<1)&&(r(!0,'Not a valid number of visible items: Set to "variable".'),n.items.visibleConf.variable=!0)),n}function cu(n,t,i){return n=="auto"&&(n=ct(i,t,"outerWidth")),n}function lu(n,t,i){return n=="auto"&&(n=ct(i,t,"outerHeight")),n||(n=t.items[t.d.height]),n}function ur(n,t){var i=ti(tt(t,n),n);return n.padding[n.d[1]]=i[1],n.padding[n.d[3]]=i[0],n}function fr(n,t){var i=nr(Math.ceil(n[n.d.width]/n.items[n.d.width]),n.items.visibleConf),r;return i>t.length&&(i=t.length),r=Math.floor(n[n.d.width]/i),n.items.visible=i,n.items[n.d.width]=r,n[n.d.width]=i*r,n}function it(n){var i,t;return e(n)?(t=n.indexOf("immediate")>-1?!0:!1,i=n.indexOf("resume")>-1?!0:!1):t=i=!1,[t,i]}function er(n){return n===null}function o(n){return er(n)||typeof n=="undefined"||n===""||n==="undefined"}function y(n){return n instanceof Array}function c(n){return n instanceof jQuery}function s(n){return(n instanceof Object||typeof n=="object")&&!er(n)&&!c(n)&&!y(n)&&!u(n)}function i(n){return(n instanceof Number||typeof n=="number")&&!isNaN(n)}function e(n){return(n instanceof String||typeof n=="string")&&!o(n)&&!rt(n)&&!ri(n)}function u(n){return n instanceof Function||typeof n=="function"}function f(n){return n instanceof Boolean||typeof n=="boolean"||rt(n)||ri(n)}function rt(n){return n===!0||n==="true"}function ri(n){return n===!1||n==="false"}function lt(n){return e(n)&&n.slice(-1)=="%"}function p(){return(new Date).getTime()}function at(n,t){r(!0,n+" is DEPRECATED, support for it will be removed. Use "+t+" instead.")}function r(n,t){var i;if(!o(window.console)&&!o(window.console.log)){if(s(n)?(i=" ("+n.selector+")",n=n.debug):i="",!n)return!1;t=e(t)?"carouFredSel"+i+": "+t:["carouFredSel"+i+":",t];window.console.log(t)}return!1}n.fn.carouFredSel||(n.fn.caroufredsel=n.fn.carouFredSel=function(ct,yt){var au,wu,ku,nf,pu,du,tf;if(this.length==0)return r(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).carouFredSel(ct,yt)});var ai=this,nr=this[0],gu=!1;ai.data("_cfs_isCarousel")&&(gu=ai.triggerHandler("_cfs_triggerEvent","currentPosition"),ai.trigger("_cfs_triggerEvent",["destroy",!0]));au={};au._init=function(t,r,u){t=ot(nr,t);t.items=or(nr,t.items);t.scroll=sr(nr,t.scroll);t.auto=hr(nr,t.auto);t.prev=ci(nr,t.prev);t.next=ci(nr,t.next);t.pagination=lr(nr,t.pagination);t.swipe=vr(nr,t.swipe);t.mousewheel=pr(nr,t.mousewheel);r&&(bu=n.extend(!0,{},n.fn.carouFredSel.defaults,t));ri=n.extend(!0,{},n.fn.carouFredSel.defaults,t);ri.d=fu(ri);ir.direction=ri.direction=="up"||ri.direction=="left"?"next":"prev";var f=ai.children(),e=ki(er,ri,"width");if(rt(ri.cookie)&&(ri.cookie="caroufredsel_cookie_"+pi.serialNumber),ri.maxDimension=di(ri,e),ri.items=su(ri.items,ri,f,u),ri[ri.d.width]=cu(ri[ri.d.width],ri,f),ri[ri.d.height]=lu(ri[ri.d.height],ri,f),ri.responsive&&(lt(ri[ri.d.width])||(ri[ri.d.width]="100%")),lt(ri[ri.d.width])&&(ir.upDateOnWindowResize=!0,ir.primarySizePercentage=ri[ri.d.width],ri[ri.d.width]=gt(e,ir.primarySizePercentage),ri.items.visible||(ri.items.visibleConf.variable=!0)),ri.responsive?(ri.usePadding=!1,ri.padding=[0,0,0,0],ri.align=!1,ri.items.visibleConf.variable=!1):(ri.items.visible||(ri=hu(ri,e)),ri[ri.d.width]||(!ri.items.visibleConf.variable&&i(ri.items[ri.d.width])&&ri.items.filter=="*"?(ri[ri.d.width]=ri.items.visible*ri.items[ri.d.width],ri.align=!1):ri[ri.d.width]="variable"),o(ri.align)&&(ri.align=i(ri[ri.d.width])?"center":!1),ri.items.visibleConf.variable&&(ri.items.visible=w(f,ri,0))),ri.items.filter=="*"||ri.items.visibleConf.variable||(ri.items.visibleConf.org=ri.items.visible,ri.items.visible=st(f,ri,0)),ri.items.visible=a(ri.items.visible,ri,ri.items.visibleConf.adjust,nr),ri.items.visibleConf.old=ri.items.visible,ri.responsive)ri.items.visibleConf.min||(ri.items.visibleConf.min=ri.items.visible),ri.items.visibleConf.max||(ri.items.visibleConf.max=ri.items.visible),ri=fr(ri,f,e);else{ri.padding=uu(ri.padding);ri.align=="top"?ri.align="left":ri.align=="bottom"&&(ri.align="right");switch(ri.align){case"center":case"left":case"right":ri[ri.d.width]!="variable"&&(ri=ur(ri,f),ri.usePadding=!0);break;default:ri.align=!1;ri.usePadding=ri.padding[0]==0&&ri.padding[1]==0&&ri.padding[2]==0&&ri.padding[3]==0?!1:!0}}i(ri.scroll.duration)||(ri.scroll.duration=500);o(ri.scroll.items)&&(ri.scroll.items=ri.responsive||ri.items.visibleConf.variable||ri.items.filter!="*"?"visible":ri.items.visible);ri.auto=n.extend(!0,{},ri.scroll,ri.auto);ri.prev=n.extend(!0,{},ri.scroll,ri.prev);ri.next=n.extend(!0,{},ri.scroll,ri.next);ri.pagination=n.extend(!0,{},ri.scroll,ri.pagination);ri.auto=cr(nr,ri.auto);ri.prev=li(nr,ri.prev);ri.next=li(nr,ri.next);ri.pagination=ar(nr,ri.pagination);ri.swipe=yr(nr,ri.swipe);ri.mousewheel=wr(nr,ri.mousewheel);ri.synchronise&&(ri.synchronise=tr(ri.synchronise));ri.auto.onPauseStart&&(ri.auto.onTimeoutStart=ri.auto.onPauseStart,at("auto.onPauseStart","auto.onTimeoutStart"));ri.auto.onPausePause&&(ri.auto.onTimeoutPause=ri.auto.onPausePause,at("auto.onPausePause","auto.onTimeoutPause"));ri.auto.onPauseEnd&&(ri.auto.onTimeoutEnd=ri.auto.onPauseEnd,at("auto.onPauseEnd","auto.onTimeoutEnd"));ri.auto.pauseDuration&&(ri.auto.timeoutDuration=ri.auto.pauseDuration,at("auto.pauseDuration","auto.timeoutDuration"))};au._build=function(){ai.data("_cfs_isCarousel",!0);var t=ai.children(),n=ou(ai,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),i="relative";switch(n.position){case"absolute":case"fixed":i=n.position}pi.wrapper=="parent"?ht(er):er.css(n);er.css({overflow:"hidden",position:i});ht(ai);ai.data("_cfs_origCssZindex",n.zIndex);ai.css({textAlign:"left",float:"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0});wt(t,ri);ht(t);ri.responsive&&wi(ri,t)};au._bind_events=function(){au._unbind_events();ai.on(t("stop",pi),function(n,i){return n.stopPropagation(),ir.isStopped||ri.auto.button&&ri.auto.button.addClass(l("stopped",pi)),ir.isStopped=!0,ri.auto.play&&(ri.auto.play=!1,ai.trigger(t("pause",pi),i)),!0});ai.on(t("finish",pi),function(n){return n.stopPropagation(),ir.isScrolling&&ft(gi),!0});ai.on(t("pause",pi),function(n,t,i){var r,u,f;return n.stopPropagation(),ru=d(ru),t&&ir.isScrolling&&(gi.isStopped=!0,r=p()-gi.startTime,gi.duration-=r,gi.pre&&(gi.pre.duration-=r),gi.post&&(gi.post.duration-=r),ft(gi,!1)),ir.isPaused||ir.isScrolling||i&&(ru.timePassed+=p()-ru.startTime),ir.isPaused||ri.auto.button&&ri.auto.button.addClass(l("paused",pi)),ir.isPaused=!0,ri.auto.onTimeoutPause&&(u=ri.auto.timeoutDuration-ru.timePassed,f=100-Math.ceil(u*100/ri.auto.timeoutDuration),ri.auto.onTimeoutPause.call(nr,f,u)),!0});ai.on(t("play",pi),function(n,u,e,o){var s;n.stopPropagation();ru=d(ru);var c=[u,e,o],h=b(c,["string","number","boolean"]);return(u=h[0],e=h[1],o=h[2],u!="prev"&&u!="next"&&(u=ir.direction),i(e)||(e=0),f(o)||(o=!1),o&&(ir.isStopped=!1,ri.auto.play=!0),!ri.auto.play)?(n.stopImmediatePropagation(),r(pi,"Carousel stopped: Not scrolling.")):(ir.isPaused&&ri.auto.button&&(ri.auto.button.removeClass(l("stopped",pi)),ri.auto.button.removeClass(l("paused",pi))),ir.isPaused=!1,ru.startTime=p(),s=ri.auto.timeoutDuration+e,dur2=s-ru.timePassed,perc=100-Math.ceil(dur2*100/s),ri.auto.progress&&(ru.progress=setInterval(function(){var n=p()-ru.startTime+ru.timePassed,t=Math.ceil(n*100/s);ri.auto.progress.updater.call(ri.auto.progress.bar[0],t)},ri.auto.progress.interval)),ru.auto=setTimeout(function(){ri.auto.progress&&ri.auto.progress.updater.call(ri.auto.progress.bar[0],100);ri.auto.onTimeoutEnd&&ri.auto.onTimeoutEnd.call(nr,perc,dur2);ir.isScrolling?ai.trigger(t("play",pi),u):ai.trigger(t(u,pi),ri.auto)},dur2),ri.auto.onTimeoutStart&&ri.auto.onTimeoutStart.call(nr,perc,dur2),!0)});ai.on(t("resume",pi),function(n){return n.stopPropagation(),gi.isStopped?(gi.isStopped=!1,ir.isPaused=!1,ir.isScrolling=!0,gi.startTime=p(),k(gi,pi)):ai.trigger(t("play",pi)),!0});ai.on(t("prev",pi)+" "+t("next",pi),function(e,o,h,c,l){var nt,v,w,a,p,g,y,d,k;if(e.stopPropagation(),ir.isStopped||ai.is(":hidden"))return e.stopImmediatePropagation(),r(pi,"Carousel stopped or hidden: Not scrolling.");if(nt=i(ri.items.minimum)?ri.items.minimum:ri.items.visible+1,nt>bi.total)return e.stopImmediatePropagation(),r(pi,"Not enough items ("+bi.total+" total, "+nt+" needed): Not scrolling.");var tt=[o,h,c,l],a=b(tt,["object","number/string","function","boolean"]);if(o=a[0],h=a[1],c=a[2],l=a[3],v=e.type.slice(pi.events.prefix.length),s(o)||(o={}),u(c)&&(o.onAfter=c),f(l)&&(o.queue=l),o=n.extend(!0,{},ri[v],o),o.conditions&&!o.conditions.call(nr,v))return e.stopImmediatePropagation(),r(pi,'Callback "conditions" returned false.');if(!i(h)){if(ri.items.filter!="*")h="visible";else for(w=[h,o.items,ri[v].items],a=0,d=w.length;a<d;a++)if(i(w[a])||w[a]=="page"||w[a]=="visible"){h=w[a];break}switch(h){case"page":return e.stopImmediatePropagation(),ai.triggerHandler(t(v+"Page",pi),[o,c]);case"visible":ri.items.visibleConf.variable||ri.items.filter!="*"||(h=ri.items.visible)}}if(gi.isStopped)return ai.trigger(t("resume",pi)),ai.trigger(t("queue",pi),[v,[o,h,c]]),e.stopImmediatePropagation(),r(pi,"Carousel resumed scrolling.");if(o.duration>0&&ir.isScrolling)return o.queue&&(o.queue=="last"&&(yu=[]),(o.queue!="first"||yu.length==0)&&ai.trigger(t("queue",pi),[v,[o,h,c]])),e.stopImmediatePropagation(),r(pi,"Carousel currently scrolling.");if(ru.timePassed=0,ai.trigger(t("slide_"+v,pi),[o,h]),ri.synchronise)for(p=ri.synchronise,g=[o,h],y=0,d=p.length;y<d;y++)k=v,p[y][2]||(k=k=="prev"?"next":"prev"),p[y][1]||(g[0]=p[y][0].triggerHandler("_cfs_triggerEvent",["configuration",k])),g[1]=h+p[y][3],p[y][0].trigger("_cfs_triggerEvent",["slide_"+k,g]);return!0});ai.on(t("slide_prev",pi),function(u,f,e){var o,ur,rt,ot,lt,gt,or,bt,tr;if(u.stopPropagation(),o=ai.children(),!ri.circular&&bi.first==0)return ri.infinite&&ai.trigger(t("next",pi),bi.total-1),u.stopImmediatePropagation();if(h(o,ri),i(e)||(ri.items.visibleConf.variable?e=pt(o,ri,bi.total-1):ri.items.filter!="*"?(ur=i(f.items)?f.items:vi(ai,ri),e=kr(o,ri,bi.total-1,ur)):e=ri.items.visible,e=ii(e,ri,f.items,nr)),ri.circular||bi.total-e<bi.first&&(e=bi.total-bi.first),ri.items.visibleConf.old=ri.items.visible,ri.items.visibleConf.variable?(rt=a(w(o,ri,bi.total-e),ri,ri.items.visibleConf.adjust,nr),ri.items.visible+e<=rt&&e<bi.total&&(e++,rt=a(w(o,ri,bi.total-e),ri,ri.items.visibleConf.adjust,nr)),ri.items.visible=rt):ri.items.filter!="*"&&(rt=st(o,ri,bi.total-e),ri.items.visible=a(rt,ri,ri.items.visibleConf.adjust,nr)),h(o,ri,!0),e==0)return u.stopImmediatePropagation(),r(pi,"0 items to scroll: Not scrolling.");for(r(pi,"Scrolling "+e+" items backward."),bi.first+=e;bi.first>=bi.total;)bi.first-=bi.total;ri.circular||(bi.first==0&&f.onEnd&&f.onEnd.call(nr,"prev"),ri.infinite||g(ri,bi.first,pi));ai.children().slice(bi.total-e,bi.total).prependTo(ai);bi.total<ri.items.visible+e&&ai.children().slice(0,ri.items.visible+e-bi.total).clone(!0).appendTo(ai);var o=ai.children(),kt=gr(o,ri,e),yt=nu(o,ri),tt=o.eq(e-1),ct=kt.last(),ft=yt.last();h(o,ri);ot=0;lt=0;ri.align&&(gt=ti(yt,ri),ot=gt[0],lt=gt[1]);var fr=ot<0?ri.padding[ri.d[3]]:0,wt=!1,ci=n();ri.items.visible<e&&(ci=o.slice(ri.items.visibleConf.old,e),f.fx=="directscroll"&&(or=ri.items[ri.d.width],wt=ci,tt=ft,ei(wt),ri.items[ri.d.width]="variable"));var s=!1,sr=v(o.slice(0,e),ri,"width"),at=ni(dt(yt,ri,!0),ri,!ri.usePadding),hr=0,ht={},li={},vt={},yi={},wi={},cr={},lr={},ki=hi(f,ri,e,sr);switch(f.fx){case"cover":case"cover-fade":hr=v(o.slice(0,ri.items.visible),ri,"width")}wt&&(ri.items[ri.d.width]=or);h(o,ri,!0);lt>=0&&h(ct,ri,ri.padding[ri.d[1]]);ot>=0&&h(tt,ri,ri.padding[ri.d[3]]);ri.align&&(ri.padding[ri.d[1]]=lt,ri.padding[ri.d[3]]=ot);cr[ri.d.left]=-(sr-fr);lr[ri.d.left]=-(hr-fr);li[ri.d.left]=at[ri.d.width];var di=function(){},it=function(){},y=function(){},ar=function(){},p=function(){},vr=function(){},b=function(){},yr=function(){},c=function(){},l=function(){},nt=function(){};switch(f.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":s=ai.clone(!0).appendTo(er)}switch(f.fx){case"crossfade":case"uncover":case"uncover-fade":s.children().slice(0,e).remove();s.children().slice(ri.items.visibleConf.old).remove();break;case"cover":case"cover-fade":s.children().slice(ri.items.visible).remove();s.css(lr)}if(ai.css(cr),gi=ut(ki,f.easing,pi),ht[ri.d.left]=ri.usePadding?ri.padding[ri.d[3]]:0,(ri[ri.d.width]=="variable"||ri[ri.d.height]=="variable")&&(di=function(){er.css(at)},it=function(){gi.anims.push([er,at])}),ri.usePadding){ft.not(tt).length&&(vt[ri.d.marginRight]=tt.data("_cfs_origCssMargin"),ot<0?tt.css(vt):(b=function(){tt.css(vt)},yr=function(){gi.anims.push([tt,vt])}));switch(f.fx){case"cover":case"cover-fade":s.children().eq(e-1).css(vt)}ft.not(ct).length&&(yi[ri.d.marginRight]=ct.data("_cfs_origCssMargin"),y=function(){ct.css(yi)},ar=function(){gi.anims.push([ct,yi])});lt>=0&&(wi[ri.d.marginRight]=ft.data("_cfs_origCssMargin")+ri.padding[ri.d[1]],p=function(){ft.css(wi)},vr=function(){gi.anims.push([ft,wi])})}nt=function(){ai.css(ht)};bt=ri.items.visible+e-bi.total;l=function(){if(bt>0&&(ai.children().slice(bi.total).remove(),kt=n(ai.children().slice(bi.total-(ri.items.visible-bt)).get().concat(ai.children().slice(0,bt).get()))),oi(wt),ri.usePadding){var t=ai.children().eq(ri.items.visible+e-1);t.css(ri.d.marginRight,t.data("_cfs_origCssMargin"))}};tr=si(kt,ci,yt,e,"prev",ki,at);c=function(){ui(ai,s,f);ir.isScrolling=!1;vu.onAfter=et(nr,f,"onAfter",tr,vu);yu=fi(ai,yu,pi);ir.isPaused||ai.trigger(t("play",pi))};ir.isScrolling=!0;ru=d(ru);vu.onBefore=et(nr,f,"onBefore",tr,vu);switch(f.fx){case"none":ai.css(ht);di();y();p();b();nt();l();c();break;case"fade":gi.anims.push([ai,{opacity:0},function(){di();y();p();b();nt();l();gi=ut(ki,f.easing,pi);gi.anims.push([ai,{opacity:1},c]);k(gi,pi)}]);break;case"crossfade":ai.css({opacity:0});gi.anims.push([s,{opacity:0}]);gi.anims.push([ai,{opacity:1},c]);it();y();p();b();nt();l();break;case"cover":gi.anims.push([s,ht,function(){y();p();b();nt();l();c()}]);it();break;case"cover-fade":gi.anims.push([ai,{opacity:0}]);gi.anims.push([s,ht,function(){y();p();b();nt();l();c()}]);it();break;case"uncover":gi.anims.push([s,li,c]);it();y();p();b();nt();l();break;case"uncover-fade":ai.css({opacity:0});gi.anims.push([ai,{opacity:1}]);gi.anims.push([s,li,c]);it();y();p();b();nt();l();break;default:gi.anims.push([ai,ht,function(){l();c()}]);it();ar();vr();yr()}return k(gi,pi),rr(ri.cookie,ai,pi),ai.trigger(t("updatePageStatus",pi),[!1,at]),!0});ai.on(t("slide_next",pi),function(u,f,e){var o,rt,ht,s,ot,vt,gt,at,yt,cr,tr,ur,fr,or;if(u.stopPropagation(),o=ai.children(),!ri.circular&&bi.first==ri.items.visible)return ri.infinite&&ai.trigger(t("prev",pi),bi.total-1),u.stopImmediatePropagation();if(h(o,ri),i(e)||(ri.items.filter!="*"?(ht=i(f.items)?f.items:vi(ai,ri),e=dr(o,ri,0,ht)):e=ri.items.visible,e=ii(e,ri,f.items,nr)),rt=bi.first==0?bi.total:bi.first,ri.circular||(ri.items.visibleConf.variable?(s=w(o,ri,e),ht=pt(o,ri,rt-1)):(s=ri.items.visible,ht=ri.items.visible),e+s>rt&&(e=rt-ht)),ri.items.visibleConf.old=ri.items.visible,ri.items.visibleConf.variable){for(s=a(yi(o,ri,e,rt),ri,ri.items.visibleConf.adjust,nr);ri.items.visible-e>=s&&e<bi.total;)e++,s=a(yi(o,ri,e,rt),ri,ri.items.visibleConf.adjust,nr);ri.items.visible=s}else ri.items.filter!="*"&&(s=st(o,ri,e),ri.items.visible=a(s,ri,ri.items.visibleConf.adjust,nr));if(h(o,ri,!0),e==0)return u.stopImmediatePropagation(),r(pi,"0 items to scroll: Not scrolling.");for(r(pi,"Scrolling "+e+" items forward."),bi.first-=e;bi.first<0;)bi.first+=bi.total;ri.circular||(bi.first==ri.items.visible&&f.onEnd&&f.onEnd.call(nr,"next"),ri.infinite||g(ri,bi.first,pi));bi.total<ri.items.visible+e&&ai.children().slice(0,ri.items.visible+e-bi.total).clone(!0).appendTo(ai);var o=ai.children(),sr=tu(o,ri),ct=iu(o,ri,e),lt=o.eq(e-1),ft=sr.last(),hr=ct.last();h(o,ri);ot=0;vt=0;ri.align&&(gt=ti(ct,ri),ot=gt[0],vt=gt[1]);at=!1;yt=n();ri.items.visibleConf.old<e&&(yt=o.slice(ri.items.visibleConf.old,e),f.fx=="directscroll"&&(cr=ri.items[ri.d.width],at=yt,lt=ft,ei(at),ri.items[ri.d.width]="variable"));var y=!1,lr=v(o.slice(0,e),ri,"width"),wt=ni(dt(ct,ri,!0),ri,!ri.usePadding),ar=0,bt={},ci={},li={},wi={},kt={},ki=hi(f,ri,e,lr);switch(f.fx){case"uncover":case"uncover-fade":ar=v(o.slice(0,ri.items.visibleConf.old),ri,"width")}at&&(ri.items[ri.d.width]=cr);ri.align&&ri.padding[ri.d[1]]<0&&(ri.padding[ri.d[1]]=0);h(o,ri,!0);h(ft,ri,ri.padding[ri.d[1]]);ri.align&&(ri.padding[ri.d[1]]=vt,ri.padding[ri.d[3]]=ot);kt[ri.d.left]=ri.usePadding?ri.padding[ri.d[3]]:0;var di=function(){},nt=function(){},p=function(){},vr=function(){},b=function(){},yr=function(){},c=function(){},l=function(){},it=function(){};switch(f.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":y=ai.clone(!0).appendTo(er);y.children().slice(ri.items.visibleConf.old).remove()}switch(f.fx){case"crossfade":case"cover":case"cover-fade":ai.css("zIndex",1);y.css("zIndex",0)}gi=ut(ki,f.easing,pi);bt[ri.d.left]=-lr;ci[ri.d.left]=-ar;ot<0&&(bt[ri.d.left]+=ot);(ri[ri.d.width]=="variable"||ri[ri.d.height]=="variable")&&(di=function(){er.css(wt)},nt=function(){gi.anims.push([er,wt])});ri.usePadding&&(tr=hr.data("_cfs_origCssMargin"),vt>=0&&(tr+=ri.padding[ri.d[1]]),hr.css(ri.d.marginRight,tr),lt.not(ft).length&&(wi[ri.d.marginRight]=ft.data("_cfs_origCssMargin")),p=function(){ft.css(wi)},vr=function(){gi.anims.push([ft,wi])},ur=lt.data("_cfs_origCssMargin"),ot>0&&(ur+=ri.padding[ri.d[3]]),li[ri.d.marginRight]=ur,b=function(){lt.css(li)},yr=function(){gi.anims.push([lt,li])});it=function(){ai.css(kt)};fr=ri.items.visible+e-bi.total;l=function(){var n,t;fr>0&&ai.children().slice(bi.total).remove();n=ai.children().slice(0,e).appendTo(ai).last();fr>0&&(ct=tt(o,ri));oi(at);ri.usePadding&&(bi.total<ri.items.visible+e&&(t=ai.children().eq(ri.items.visible-1),t.css(ri.d.marginRight,t.data("_cfs_origCssMargin")+ri.padding[ri.d[1]])),n.css(ri.d.marginRight,n.data("_cfs_origCssMargin")))};or=si(sr,yt,ct,e,"next",ki,wt);c=function(){ai.css("zIndex",ai.data("_cfs_origCssZindex"));ui(ai,y,f);ir.isScrolling=!1;vu.onAfter=et(nr,f,"onAfter",or,vu);yu=fi(ai,yu,pi);ir.isPaused||ai.trigger(t("play",pi))};ir.isScrolling=!0;ru=d(ru);vu.onBefore=et(nr,f,"onBefore",or,vu);switch(f.fx){case"none":ai.css(bt);di();p();b();it();l();c();break;case"fade":gi.anims.push([ai,{opacity:0},function(){di();p();b();it();l();gi=ut(ki,f.easing,pi);gi.anims.push([ai,{opacity:1},c]);k(gi,pi)}]);break;case"crossfade":ai.css({opacity:0});gi.anims.push([y,{opacity:0}]);gi.anims.push([ai,{opacity:1},c]);nt();p();b();it();l();break;case"cover":ai.css(ri.d.left,er[ri.d.width]());gi.anims.push([ai,kt,c]);nt();p();b();l();break;case"cover-fade":ai.css(ri.d.left,er[ri.d.width]());gi.anims.push([y,{opacity:0}]);gi.anims.push([ai,kt,c]);nt();p();b();l();break;case"uncover":gi.anims.push([y,ci,c]);nt();p();b();it();l();break;case"uncover-fade":ai.css({opacity:0});gi.anims.push([ai,{opacity:1}]);gi.anims.push([y,ci,c]);nt();p();b();it();l();break;default:gi.anims.push([ai,bt,function(){it();l();c()}]);nt();vr();yr()}return k(gi,pi),rr(ri.cookie,ai,pi),ai.trigger(t("updatePageStatus",pi),[!1,wt]),!0});ai.on(t("slideTo",pi),function(n,i,r,u,f,e,o){n.stopPropagation();var c=[i,r,u,f,e,o],h=b(c,["string/number/object","number","boolean","object","string","function"]);return(f=h[3],e=h[4],o=h[5],i=nt(h[0],h[1],h[2],bi,ai),i==0)?!1:(s(f)||(f=!1),e!="prev"&&e!="next"&&(e=ri.circular?i<=bi.total/2?"next":"prev":bi.first==0||bi.first>i?"next":"prev"),e=="prev"&&(i=bi.total-i),ai.trigger(t(e,pi),[f,i,o]),!0)});ai.on(t("prevPage",pi),function(n,i,r){n.stopPropagation();var u=ai.triggerHandler(t("currentPage",pi));return ai.triggerHandler(t("slideToPage",pi),[u-1,i,"prev",r])});ai.on(t("nextPage",pi),function(n,i,r){n.stopPropagation();var u=ai.triggerHandler(t("currentPage",pi));return ai.triggerHandler(t("slideToPage",pi),[u+1,i,"next",r])});ai.on(t("slideToPage",pi),function(n,r,u,f,e){n.stopPropagation();i(r)||(r=ai.triggerHandler(t("currentPage",pi)));var o=ri.pagination.items||ri.items.visible,s=Math.ceil(bi.total/o)-1;return r<0&&(r=s),r>s&&(r=0),ai.triggerHandler(t("slideTo",pi),[r*o,0,!0,u,f,e])});ai.on(t("jumpToStart",pi),function(n,t){if(n.stopPropagation(),t=t?nt(t,0,!0,bi,ai):0,t+=bi.first,t!=0){if(bi.total>0)while(t>bi.total)t-=bi.total;ai.prepend(ai.children().slice(t,bi.total))}return!0});ai.on(t("synchronise",pi),function(n,i){var e,f,u,o;if(n.stopPropagation(),i)i=tr(i);else if(ri.synchronise)i=ri.synchronise;else return r(pi,"No carousel to synchronise.");for(e=ai.triggerHandler(t("currentPosition",pi)),f=!0,u=0,o=i.length;u<o;u++)i[u][0].triggerHandler(t("slideTo",pi),[e,i[u][3],!0])||(f=!1);return f});ai.on(t("queue",pi),function(n,t,i){return n.stopPropagation(),u(t)?t.call(nr,yu):y(t)?yu=t:o(t)||yu.push([t,i]),yu});ai.on(t("insertItem",pi),function(i,u,f,h,l){var p,v,y;i.stopPropagation();var w=[u,f,h,l],a=b(w,["string/object","string/number/object","boolean","number"]);return(u=a[0],f=a[1],h=a[2],l=a[3],s(u)&&!c(u)?u=n(u):e(u)&&(u=n(u)),!c(u)||u.length==0)?r(pi,"Not a valid object."):(o(f)&&(f="end"),wt(u,ri),ht(u),p=f,v="before",f=="end"?h?(bi.first==0?(f=bi.total-1,v="after"):(f=bi.first,bi.first+=u.length),f<0&&(f=0)):(f=bi.total-1,v="after"):f=nt(f,l,h,bi,ai),y=ai.children().eq(f),y.length?y[v](u):(r(pi,"Correct insert-position not found! Appending item to the end."),ai.append(u)),p=="end"||h||f<bi.first&&(bi.first+=u.length),bi.total=ai.children().length,bi.first>=bi.total&&(bi.first-=bi.total),ai.trigger(t("updateSizes",pi)),ai.trigger(t("linkAnchors",pi)),!0)});ai.on(t("removeItem",pi),function(i,r,u,f){var c,e;i.stopPropagation();var h=[r,u,f],s=b(h,["string/number/object","boolean","number"]);return(r=s[0],u=s[1],f=s[2],c=!1,r instanceof n&&r.length>1)?(e=n(),r.each(function(){var i=ai.trigger(t("removeItem",pi),[n(this),u,f]);i&&(e=e.add(i))}),e):(o(r)||r=="end"?e=ai.children().last():(r=nt(r,f,u,bi,ai),e=ai.children().eq(r),e.length&&r<bi.first&&(bi.first-=e.length)),e&&e.length&&(e.detach(),bi.total=ai.children().length,ai.trigger(t("updateSizes",pi))),e)});ai.on(t("onBefore",pi)+" "+t("onAfter",pi),function(n,t){n.stopPropagation();var i=n.type.slice(pi.events.prefix.length);return y(t)&&(vu[i]=t),u(t)&&vu[i].push(t),vu[i]});ai.on(t("currentPosition",pi),function(n,t){var i;return n.stopPropagation(),i=bi.first==0?0:bi.total-bi.first,u(t)&&t.call(nr,i),i});ai.on(t("currentPage",pi),function(n,t){n.stopPropagation();var r=ri.pagination.items||ri.items.visible,f=Math.ceil(bi.total/r-1),i;return i=bi.first==0?0:bi.first<bi.total%r?0:bi.first!=r||ri.circular?Math.round((bi.total-bi.first)/r):f,i<0&&(i=0),i>f&&(i=f),u(t)&&t.call(nr,i),i});ai.on(t("currentVisible",pi),function(n,t){n.stopPropagation();var i=tt(ai.children(),ri);return u(t)&&t.call(nr,i),i});ai.on(t("slice",pi),function(t,r,f,e){var s,h;if(t.stopPropagation(),bi.total==0)return!1;var c=[r,f,e],o=b(c,["number","number","function"]);if(r=i(o[0])?o[0]:0,f=i(o[1])?o[1]:bi.total,e=o[2],r+=bi.first,f+=bi.first,items.total>0){while(r>bi.total)r-=bi.total;while(f>bi.total)f-=bi.total;while(r<0)r+=bi.total;while(f<0)f+=bi.total}return s=ai.children(),h=f>r?s.slice(r,f):n(s.slice(r,bi.total).get().concat(s.slice(0,f).get())),u(e)&&e.call(nr,h),h});ai.on(t("isPaused",pi)+" "+t("isStopped",pi)+" "+t("isScrolling",pi),function(n,t){n.stopPropagation();var r=n.type.slice(pi.events.prefix.length),i=ir[r];return u(t)&&t.call(nr,i),i});ai.on(t("configuration",pi),function(e,a,b,c){var reInit,val,sz;if(e.stopPropagation(),reInit=!1,u(a))a.call(nr,ri);else if(s(a))bu=n.extend(!0,{},bu,a),b!==!1?reInit=!0:ri=n.extend(!0,{},ri,a);else if(!o(a))if(u(b))val=eval("opts."+a),o(val)&&(val=""),b.call(nr,val);else{if(o(b))return eval("opts."+a);typeof c!="boolean"&&(c=!0);eval("opts_orig."+a+" = b");c!==!1?reInit=!0:eval("opts."+a+" = b")}return reInit&&(h(ai.children(),ri),au._init(bu),au._bind_buttons(),sz=kt(ai,ri),ai.trigger(t("updatePageStatus",pi),[!0,sz])),ri});ai.on(t("linkAnchors",pi),function(i,u,f){return(i.stopPropagation(),o(u)?u=n("body"):e(u)&&(u=n(u)),!c(u)||u.length==0)?r(pi,"Not a valid object."):(e(f)||(f="a.caroufredsel"),u.find(f).each(function(){var i=this.hash||"";if(i.length>0&&ai.children().index(n(i))!=-1)n(this).off("click").on("click",function(n){n.preventDefault();ai.trigger(t("slideTo",pi),i)})}),!0)});ai.on(t("updatePageStatus",pi),function(i,r){var f,e,u;if(i.stopPropagation(),ri.pagination.container)return f=ri.pagination.items||ri.items.visible,e=Math.ceil(bi.total/f),r&&(ri.pagination.anchorBuilder&&(ri.pagination.container.children().remove(),ri.pagination.container.each(function(){for(var i,t=0;t<e;t++)i=ai.children().eq(nt(t*f,0,!0,bi,ai)),n(this).append(ri.pagination.anchorBuilder.call(i[0],t+1))})),ri.pagination.container.each(function(){n(this).children().off(ri.pagination.event).each(function(i){n(this).on(ri.pagination.event,function(n){n.preventDefault();ai.trigger(t("slideTo",pi),[i*f,-ri.pagination.deviation,!0,ri.pagination])})})})),u=ai.triggerHandler(t("currentPage",pi))+ri.pagination.deviation,u>=e&&(u=0),u<0&&(u=e-1),ri.pagination.container.each(function(){n(this).children().removeClass(l("selected",pi)).eq(u).addClass(l("selected",pi))}),!0});ai.on(t("updateSizes",pi),function(){var i=ri.items.visible,n=ai.children(),u=ki(er,ri,"width"),f,e;return bi.total=n.length,ir.primarySizePercentage?(ri.maxDimension=u,ri[ri.d.width]=gt(u,ir.primarySizePercentage)):ri.maxDimension=di(ri,u),ri.responsive?(ri.items.width=ri.items.sizesConf.width,ri.items.height=ri.items.sizesConf.height,ri=fr(ri,n,u),i=ri.items.visible,wi(ri,n)):ri.items.visibleConf.variable?i=w(n,ri,0):ri.items.filter!="*"&&(i=st(n,ri,0)),!ri.circular&&bi.first!=0&&i>bi.first&&(f=ri.items.visibleConf.variable?pt(n,ri,bi.first)-bi.first:ri.items.filter!="*"?br(n,ri,bi.first)-bi.first:ri.items.visible-bi.first,r(pi,"Preventing non-circular: sliding "+f+" items backward."),ai.trigger(t("prev",pi),f)),ri.items.visible=a(i,ri,ri.items.visibleConf.adjust,nr),ri.items.visibleConf.old=ri.items.visible,ri=ur(ri,n),e=kt(ai,ri),ai.trigger(t("updatePageStatus",pi),[!0,e]),vt(ri,bi.total,pi),g(ri,bi.first,pi),e});ai.on(t("destroy",pi),function(n,i){return n.stopPropagation(),ru=d(ru),ai.data("_cfs_isCarousel",!1),ai.trigger(t("finish",pi)),i&&ai.trigger(t("jumpToStart",pi)),bt(ai.children()),bt(ai),au._unbind_events(),au._unbind_buttons(),pi.wrapper=="parent"?bt(er):er.replaceWith(ai),!0});ai.on(t("debug",pi),function(){return r(pi,"Carousel width: "+ri.width),r(pi,"Carousel height: "+ri.height),r(pi,"Item widths: "+ri.items.width),r(pi,"Item heights: "+ri.items.height),r(pi,"Number of items visible: "+ri.items.visible),ri.auto.play&&r(pi,"Number of items scrolled automatically: "+ri.auto.items),ri.prev.button&&r(pi,"Number of items scrolled backward: "+ri.prev.items),ri.next.button&&r(pi,"Number of items scrolled forward: "+ri.next.items),pi.debug});ai.on("_cfs_triggerEvent",function(n,i,r){return n.stopPropagation(),ai.triggerHandler(t(i,pi),r)})};au._unbind_events=function(){ai.off(t("",pi));ai.off(t("",pi,!1));ai.off("_cfs_triggerEvent")};au._bind_buttons=function(){var i,u,a,v,o,s;if(au._unbind_buttons(),vt(ri,bi.total,pi),g(ri,bi.first,pi),ri.auto.pauseOnHover){i=it(ri.auto.pauseOnHover);er.on(t("mouseenter",pi,!1),function(){ai.trigger(t("pause",pi),i)}).on(t("mouseleave",pi,!1),function(){ai.trigger(t("resume",pi))})}if(ri.auto.button)ri.auto.button.on(t(ri.auto.event,pi,!1),function(n){n.preventDefault();var i=!1,r=null;ir.isPaused?i="play":ri.auto.pauseOnEvent&&(i="pause",r=it(ri.auto.pauseOnEvent));i&&ai.trigger(t(i,pi),r)});if(ri.prev.button){ri.prev.button.on(t(ri.prev.event,pi,!1),function(n){n.preventDefault();ai.trigger(t("prev",pi))});if(ri.prev.pauseOnHover){i=it(ri.prev.pauseOnHover);ri.prev.button.on(t("mouseenter",pi,!1),function(){ai.trigger(t("pause",pi),i)}).on(t("mouseleave",pi,!1),function(){ai.trigger(t("resume",pi))})}}if(ri.next.button){ri.next.button.on(t(ri.next.event,pi,!1),function(n){n.preventDefault();ai.trigger(t("next",pi))});if(ri.next.pauseOnHover){i=it(ri.next.pauseOnHover);ri.next.button.on(t("mouseenter",pi,!1),function(){ai.trigger(t("pause",pi),i)}).on(t("mouseleave",pi,!1),function(){ai.trigger(t("resume",pi))})}}if(ri.pagination.container&&ri.pagination.pauseOnHover){i=it(ri.pagination.pauseOnHover);ri.pagination.container.on(t("mouseenter",pi,!1),function(){ai.trigger(t("pause",pi),i)}).on(t("mouseleave",pi,!1),function(){ai.trigger(t("resume",pi))})}if(ri.prev.key||ri.next.key)n(document).on(t("keyup",pi,!1,!0,!0),function(n){var i=n.keyCode;i==ri.next.key&&(n.preventDefault(),ai.trigger(t("next",pi)));i==ri.prev.key&&(n.preventDefault(),ai.trigger(t("prev",pi)))});if(ri.pagination.keys)n(document).on(t("keyup",pi,!1,!0,!0),function(n){var i=n.keyCode;i>=49&&i<58&&(i=(i-49)*ri.items.visible,i<=bi.total&&(n.preventDefault(),ai.trigger(t("slideTo",pi),[i,0,!0,ri.pagination])))});if(n.fn.swipe&&(u="ontouchstart"in window,u&&ri.swipe.onTouch||!u&&ri.swipe.onMouse)){var y=n.extend(!0,{},ri.prev,ri.swipe),p=n.extend(!0,{},ri.next,ri.swipe),c=function(){ai.trigger(t("prev",pi),[y])},l=function(){ai.trigger(t("next",pi),[p])};switch(ri.direction){case"up":case"down":ri.swipe.options.swipeUp=l;ri.swipe.options.swipeDown=c;break;default:ri.swipe.options.swipeLeft=l;ri.swipe.options.swipeRight=c}ir.swipe&&ai.swipe("destroy");er.swipe(ri.swipe.options);er.css("cursor","move");ir.swipe=!0}if(n.fn.mousewheel&&ri.mousewheel){a=n.extend(!0,{},ri.prev,ri.mousewheel);v=n.extend(!0,{},ri.next,ri.mousewheel);ir.mousewheel&&er.off(t("mousewheel",pi,!1));er.on(t("mousewheel",pi,!1),function(n,i){n.preventDefault();i>0?ai.trigger(t("prev",pi),[a]):ai.trigger(t("next",pi),[v])});ir.mousewheel=!0}if(ri.auto.play&&ai.trigger(t("play",pi),ri.auto.delay),ir.upDateOnWindowResize){var f=function(){ai.trigger(t("finish",pi));ri.auto.pauseOnResize&&!ir.isPaused&&ai.trigger(t("play",pi));h(ai.children(),ri);ai.trigger(t("updateSizes",pi))},e=n(window),r=null;n.debounce&&pi.onWindowResize=="debounce"?r=n.debounce(200,f):n.throttle&&pi.onWindowResize=="throttle"?r=n.throttle(300,f):(o=0,s=0,r=function(){var n=e.width(),t=e.height();(n!=o||t!=s)&&(f(),o=n,s=t)});e.on(t("resize",pi,!1,!0,!0),r)}};au._unbind_buttons=function(){var r=t("",pi),i=t("",pi,!1);ns3=t("",pi,!1,!0,!0);n(document).off(ns3);n(window).off(ns3);er.off(i);ri.auto.button&&ri.auto.button.off(i);ri.prev.button&&ri.prev.button.off(i);ri.next.button&&ri.next.button.off(i);ri.pagination.container&&(ri.pagination.container.off(i),ri.pagination.anchorBuilder&&ri.pagination.container.children().remove());ir.swipe&&(ai.swipe("destroy"),er.css("cursor","default"),ir.swipe=!1);ir.mousewheel&&(ir.mousewheel=!1);vt(ri,"hide",pi);g(ri,"removeClass",pi)};f(yt)&&(yt={debug:yt});var ir={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},bi={total:ai.children().length,first:0},ru={auto:null,progress:null,startTime:p(),timePassed:0},gi={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},vu={onBefore:[],onAfter:[]},yu=[],pi=n.extend(!0,{},n.fn.carouFredSel.configs,yt),ri={},bu=n.extend(!0,{},ct),er=pi.wrapper=="parent"?ai.parent():ai.wrap("<"+pi.wrapper.element+' class="'+pi.wrapper.classname+'" />').parent();if(pi.selector=ai.selector,pi.serialNumber=n.fn.carouFredSel.serialNumber++,pi.transition=pi.transition&&n.fn.transition?"transition":"animate",au._init(bu,!0,gu),au._build(),au._bind_events(),au._bind_buttons(),y(ri.items.start)?wu=ri.items.start:(wu=[],ri.items.start!=0&&wu.push(ri.items.start)),ri.cookie&&wu.unshift(parseInt(eu(ri.cookie),10)),wu.length>0)for(ku=0,nf=wu.length;ku<nf;ku++)if(pu=wu[ku],pu!=0){if(pu===!0){if(pu=window.location.hash,pu.length<1)continue}else pu==="random"&&(pu=Math.floor(Math.random()*bi.total));if(ai.triggerHandler(t("slideTo",pi),[pu,0,!0,{fx:"none"}]))break}return du=kt(ai,ri),tf=tt(ai.children(),ri),ri.onCreate&&ri.onCreate.call(nr,{width:du.width,height:du.height,items:tf}),ai.trigger(t("updatePageStatus",pi),[!0,du]),ai.trigger(t("linkAnchors",pi)),pi.debug&&ai.trigger(t("debug",pi)),ai},n.fn.carouFredSel.serialNumber=1,n.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},n.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},n.fn.carouFredSel.pageAnchorBuilder=function(n){return'<a href="#"><span>'+n+"<\/span><\/a>"},n.fn.carouFredSel.progressbarUpdater=function(t){n(this).css("width",t+"%")},n.fn.carouFredSel.cookie={get:function(n){var r,i,u,t;for(n+="=",r=document.cookie.split(";"),i=0,u=r.length;i<u;i++){for(t=r[i];t.charAt(0)==" ";)t=t.slice(1);if(t.indexOf(n)==0)return t.slice(n.length)}return 0},set:function(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString());document.cookie=n+"="+t+u+"; path=/"},remove:function(t){n.fn.carouFredSel.cookie.set(t,"",-1)}},n.extend(n.easing,{quadratic:function(n){var t=n*n;return n*(-t*n+4*t-6*n+4)},cubic:function(n){return n*(4*n*n-9*n+6)},elastic:function(n){var t=n*n;return n*(33*t*t-106*t*n+126*t-67*n+15)}}))}(jQuery);ConvertibleCarousel={name:"ConvertibleCarousel",removeHiddenElement:function(n){$(".onboarding").length<1&&$(n).detach()},convert:function(n){var t=$(n),i=$("#"+t.attr("data-carousel-target")),e=[],o,f,r,u;$(i).parent().children().each(function(){$(this).hasClass("hidden")&&e.push(this)});$("#carouselDataSource > li").each(function(){$(this).hasClass("hidden")&&e.push(this)});isDesktop()&&!i.hasClass("convCarousel-desktop")?(f="desktop",r=ConvertibleCarousel,r.clearTarget(i),u="",t.hasClass("carousel-desktop")?u=r.createCarousel(t,f):t.hasClass("masonry-desktop")?u=r.createMasonry(t):t.hasClass("grid-desktop")?u=r.createGrid(t,f):t.hasClass("tabgrid-desktop")&&(u=r.createTabbedGrid(t,f)),i.html(u),i.addClass("convCarousel-container"),i.addClass("convCarousel-"+f),t.hasClass("carousel-desktop")?(addSwipeToCarousels(i.find(".carousel-inner")),r.addEvents(i)):t.hasClass("masonry-desktop")&&(o=t.attr("data-carousel-id"),new Packery(document.querySelector("#"+o))),ConvertibleCarousel.removeHiddenElement(e)):isTablet()&&!i.hasClass("convCarousel-tablet")?(f="tablet",r=ConvertibleCarousel,r.clearTarget(i),u="",t.hasClass("carousel-tablet")?u=r.createCarousel(t,f):t.hasClass("masonry-tablet")?u=r.createMasonry(t):t.hasClass("grid-tablet")?u=r.createGrid(t,f):t.hasClass("tabgrid-tablet")&&(u=r.createTabbedGrid(t,f)),i.html(u),i.addClass("convCarousel-container"),i.addClass("convCarousel-"+f),t.hasClass("carousel-tablet")?(addSwipeToCarousels(i.find(".carousel-inner")),r.addEvents(i)):t.hasClass("masonry-tablet")&&(o=t.attr("data-carousel-id"),new Packery(document.querySelector("#"+o))),ConvertibleCarousel.removeHiddenElement(e)):isMobile()&&!i.hasClass("convCarousel-mobile")&&(f="mobile",r=ConvertibleCarousel,r.clearTarget(i),u="",t.hasClass("carousel-mobile")?u=r.createCarousel(t,f):t.hasClass("list-mobile")?u=r.createList(t,f):t.hasClass("tabcarousel-mobile")&&(u=r.createTabbedCarousel(t,f)),i.html(u),i.addClass("convCarousel-container"),i.addClass("convCarousel-"+f),t.hasClass("carousel-mobile")?(addSwipeToCarousels(i.find(".carousel-inner")),r.addEvents(i)):t.hasClass("tabcarousel-mobile")&&(addSwipeToCarousels(i.find(".carousel-inner")),r.addEvents(i)),ConvertibleCarousel.removeHiddenElement(e),ComponentRegistry.FeaturedSection&&(i.hasClass("indicators-left")?i.removeClass("indicators-left"):i.hasClass("indicators-center")?i.removeClass("indicators-center"):i.hasClass("indicators-right")&&i.removeClass("indicators-right")))},clearTarget:function(n){n.html("");n.removeClass("convCarousel-desktop");n.removeClass("convCarousel-tablet");n.removeClass("convCarousel-mobile")},createList:function(n,t){for(var i=$(n),u=i.find("li"),e=i.attr("data-carousel-id"),o=i.attr("data-carousel-"+t+"-itemcount")==null||i.attr("data-carousel-"+t+"-itemcount")==""?0:parseInt(i.attr("data-carousel-"+t+"-itemcount")),f="",r=0;r<o&&r<u.length;r++)f+="<li><span>{CONTENT}<\/span><\/li>".replace("{CONTENT}",u.eq(r).html());return'<ul id="{ID}" class="conv-carousel-list">{CONTENT}<\/ul>'.replace("{ID}",e).replace("{CONTENT}",f)},createCarousel:function(n,t){var r=$(n),l='<div id="{ID}" class="carousel slide conv-carousel" data-ride="carousel" {SLIDESHOW}>',it,y,p,b,a,f,h,i,e,c,k,d,o,g,nt,tt;l+='<div class="carousel-inner">{ITEMS}<\/div>';l+='<div><ol class="carousel-indicators">{INDICATORS}<\/ol><\/div>';l+='<div class="view-all">{LINK}<\/div>';l+="<\/div>";it='<div class="item {ACTIVE}">{CONTENT}<\/div>';y='<div><div class="col-sm-12">{CONTENT1}<\/div><\/div>';p=$(".onboarding").length>0&&$(".onboarding #carouselDataSource li").length<2?'<div><div class="col-sm-6  col-sm-offset-3">{CONTENT1}<\/div><\/div>':'<div><div class="col-sm-6">{CONTENT1}<\/div><div class="col-sm-6">{CONTENT2}<\/div><\/div>';var rt='<div><div class="col-sm-4">{CONTENT1}<\/div><div class="col-sm-4">{CONTENT2}<\/div><div class="col-sm-4">{CONTENT3}<\/div><\/div>',ut='<div><div class="col-sm-3">{CONTENT1}<\/div><div class="col-sm-3">{CONTENT2}<\/div><div class="col-sm-3">{CONTENT3}<\/div><div class="col-sm-3">{CONTENT4}<\/div><\/div>',w=r.attr("data-carousel-id"),s=r.attr("data-carousel-"+t+"-itemcount")==null||r.attr("data-carousel-"+t+"-itemcount")==""?0:parseInt(r.attr("data-carousel-"+t+"-itemcount")),v=r.find("li"),u=l;u=u.replace("{ID}",w);var ft=r.attr("data-slideshow-interval"),ot=ft!=null?ft:"3000",et=r.attr("data-slideshow-"+t),st=et!=null&&et.toLowerCase()=="true"?'data-interval="'+ot+'"':'data-interval="false"';for(u=u.replace("{SLIDESHOW}",st),b="",a="",f=0;f<v.length&&f<8*s;f=f+s){h=it;i="";switch(s){case 1:i=isMobile()?replaceAll("sm","xs",y):y;break;case 2:i=isMobile()?replaceAll("sm","xs",p):p;isMobile()&&(e=r.attr("data-carousel-mobile-item-size"),e&&(i=replaceAll("6",e,i)));break;case 3:i=isMobile()?replaceAll("sm","xs",rt):rt;isMobile()&&(e=r.attr("data-carousel-mobile-item-size"),e&&(i=replaceAll("4",e,i)));break;case 4:i=isMobile()?replaceAll("sm","xs",ut):ut;isMobile()&&(e=r.attr("data-carousel-mobile-item-size"),e&&(i=replaceAll("xs-3","xs-"+e,i)));break;case 5:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><\/div>',r);break;case 6:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><\/div>',r);break;case 7:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><div class="col-sm-2">{CONTENT7}<\/div><\/div>',r);break;case 8:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><div class="col-sm-2">{CONTENT7}<\/div><div class="col-sm-2">{CONTENT8}<\/div><\/div>',r);break;case 9:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><div class="col-sm-2">{CONTENT7}<\/div><div class="col-sm-2">{CONTENT8}<\/div><div class="col-sm-2">{CONTENT9}<\/div><\/div>',r);break;case 10:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><div class="col-sm-2">{CONTENT7}<\/div><div class="col-sm-2">{CONTENT8}<\/div><div class="col-sm-2">{CONTENT9}<\/div><div class="col-sm-2">{CONTENT10}<\/div><\/div>',r);break;case 11:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><div class="col-sm-2">{CONTENT7}<\/div><div class="col-sm-2">{CONTENT8}<\/div><div class="col-sm-2">{CONTENT9}<\/div><div class="col-sm-2">{CONTENT10}<\/div><div class="col-sm-2">{CONTENT11}<\/div><\/div>',r);break;case 12:i=CreateItemContent('<div><div class="col-sm-2">{CONTENT1}<\/div><div class="col-sm-2">{CONTENT2}<\/div><div class="col-sm-2">{CONTENT3}<\/div><div class="col-sm-2">{CONTENT4}<\/div><div class="col-sm-2">{CONTENT5}<\/div><div class="col-sm-2">{CONTENT6}<\/div><div class="col-sm-2">{CONTENT7}<\/div><div class="col-sm-2">{CONTENT8}<\/div><div class="col-sm-2">{CONTENT9}<\/div><div class="col-sm-2">{CONTENT10}<\/div><div class="col-sm-2">{CONTENT11}<\/div><div class="col-sm-2">{CONTENT12}<\/div><\/div>',r)}for(c=0;c<s;c++)k="",c+f<v.length&&(k=v.eq(c+f).html()),i=i.replace("{CONTENT"+(c+1)+"}",k);h=h.replace("{CONTENT}",i);h=h.replace("{ACTIVE}",f<=0?"active":"");d=r.attr("data-pagination-show");o=d==null||d.toLowerCase()=="true"?'<li data-target="{TARGETID}" data-slide-to="{SLIDENUM}" class="{ACTIVE}"><\/li>':"";o=o.replace("{TARGETID}","#"+w);o=o.replace("{SLIDENUM}",f/s);o=o.replace("{ACTIVE}",f<=0?"active":"");b+=h;a+=o}return u=u.replace("{ITEMS}",b),g=r.attr("data-slideshow-button"),g!=null&&g.toLowerCase()=="true"&&a.length>0&&(a+='<li data-target="#{ID}" class="play-pause-button"><span class="acn-icon icon-pause" data-play-pause-status="pause"><\/span><\/li>'.replace("{ID}",w)),u=u.replace("{INDICATORS}",v.length<=s?"":a),nt=r.closest("li").data("tab-view-all"),typeof nt!="undefined"&&(tt=$("#"+nt).html(),u=u.replace("{LINK}",typeof tt!="undefined"?tt:"")),u},createTabbedCarousel:function(n,t){for(var f,h,i,e=$(n),o=e.find("> li"),u="",s="",r=0;r<o.length;r++)$tab=o.eq(r),$tabDs=$tab.find("ul"),f=$tabDs.attr("data-carousel-id"),h=$('<a href="#" class="tab {ISACTIVE}">{TITLE}<\/a>').attr("href","#"+f).wrap("<p/>").parent().html(),u+=u.length>0?"<span> | <\/span>":"",u+=h.replace("{TITLE}",$tab.attr("data-tab-header-mobile")).replace("{ISACTIVE}",r==0?"active":""),i=ConvertibleCarousel.createCarousel($tabDs,t),i=r>0?$(i).hide().wrap("<p/>").parent().html():i,i=$(i).attr("id",f).wrap("<p/>").parent().html(),s+="<section>{CONTENT}<\/section>".replace("{CONTENT}",i);return'<div id="{ID}" class="tab-carousel">{SECTIONS}<\/div>'.replace("{SECTIONS}",'<div class="tabs">{TABS}<\/div>'.replace("{TABS}",u)+s).replace("{ID}",e.attr("data-carousel-id"))},createMasonry:function(n){for(var r=$(n),i=r.find("li"),u="",t=0;t<i.length;t++)u+='<div class="col-sm-{WIDTH} component">{CONTENT}<\/div>'.replace("{CONTENT}",i.eq(t).html()).replace("{WIDTH}",i.eq(t).attr("data-masonry-width"));return'<section id="{ID}" class="container-block isotope-container">{ITEMS}<\/section>'.replace("{ITEMS}",u).replace("{ID}",r.attr("data-carousel-id"))},createGrid:function(n,t){for(var i=$(n),e=i.attr("data-grid-"+t+"-itemcount"),o=12/e,u=i.find("li"),f="",r=0;r<u.length;r++)f+='<div class="col-sm-{WIDTH} item">{CONTENT}<\/div>'.replace("{CONTENT}",u.eq(r).html()).replace("{WIDTH}",o);return'<div id="{ID}" class="grid">{ITEMS}<\/section>'.replace("{ITEMS}",f).replace("{ID}",i.attr("data-carousel-id"))},createTabbedGrid:function(n,t){for(var a,v,s,i,h,c,r=$(n),u=r.find("> li"),f=u.data("bg-color"),l='<div class="header '+f+'"><h2 class="content-title">{TITLE}<\/h2><\/div>',y=r.attr("data-grid-"+t+"-itemcount"),p=12/y,e="",o=0;o<u.length;o++){for($tab=u.eq(o),$tabItems=$tab.find("li"),a=$tab.data("show-line"),l=a.toLowerCase()!="true"?'<div class="header '+f+'"><h2 class="content-title">{TITLE}<\/h2><\/div>':'<div class="hline header '+f+'"><h2 class="content-title">{TITLE}<\/h2><\/div>',v=l.replace("{TITLE}",$tab.attr("data-tab-header")),s="",i=0;i<$tabItems.length;i++)s+='<div class="col-sm-{WIDTH} packery-item">{CONTENT}<\/div>'.replace("{CONTENT}",$tabItems.eq(i).html()).replace("{WIDTH}",p);h=$tab.data("tab-view-all");e+='<section class="packery-container">{HEADER}{ITEMS}<\/section>'.replace("{HEADER}",v).replace("{ITEMS}",s);typeof h!="undefined"&&(c=$("#"+h).html(),e+='<div class="view-all">{LINK}<\/div>'.replace("{LINK}",typeof c!="undefined"?c:""))}return'<div id="{ID}" class="tabgrid">{SECTIONS}<\/div>'.replace("{SECTIONS}",e).replace("{ID}",r.attr("data-carousel-id"))},addEvents:function(n){$(n).find(".convCarousel-container .play-pause-button").on("click",function(){var n=$(this).children(".acn-icon"),t=$(n).data("play-pause-status");$(this).closest(".carousel").carousel(t);t=="pause"?$(n).data("play-pause-status","cycle").removeClass("icon-pause").addClass("icon-play"):$(n).data("play-pause-status","pause").removeClass("icon-play").addClass("icon-pause")});$(n).find(".tab-carousel .tabs .tab").on("click",function(n){n.preventDefault();var i=$(this).attr("href"),t=$(this).closest(".tab-carousel");t.find(".conv-carousel").hide();t.find(i).show();t.find(".tab").removeClass("active");$(this).addClass("active")})}};$(function(){var n;$(".convCarousel").each(function(){ConvertibleCarousel.convert(this)});var t=sessionStorage.getItem("carouselCache"),i=$("#carousel-business-service-module .carousel-indicators li"),r=$("#carousel-business-service-module .tabs a");t!=null&&(n=JSON.parse(t),$(i).each(function(){$(this).data("slide-to")!=null&&$(this).data("slide-to")==n.slideTo&&$(this).trigger("click")}),$(r).each(function(){$(this).attr("href")==n.tab&&$(this).trigger("click")}));$("#carousel-business-service-module .carousel-indicators li").on("click",function(){var n={slideTo:$(this).data("slide-to"),tab:$(this).data("target")};sessionStorage.setItem("carouselCache",JSON.stringify(n))});$("#carousel-business-service-module .tabs a").on("click",function(){var n={tab:$(this).attr("href")};sessionStorage.setItem("carouselCache",JSON.stringify(n))})});$(window).on("resize",function(){$(".convCarousel").each(function(){ConvertibleCarousel.convert(this)})});(function(n,t,i){function y(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function e(n,t){var u=this,r=i(u);if(u.value==r.attr("placeholder")&&r.hasClass("placeholder"))if(r.data("placeholder-password")){if(r=r.hide().next().show().attr("id",r.removeAttr("id").data("placeholder-id")),n===!0)return r[0].value=t;r.trigger("focus")}else u.value="",r.removeClass("placeholder"),u==v()&&u.trigger("select")}function s(){var t,r=this,n=i(r),u=this.id;if(r.value==""){if(r.type=="password"){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"text"})}catch(f){t=i("<input>").attr(i.extend(y(this),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":n,"placeholder-id":u}).on("focus.placeholder",e);n.data({"placeholder-textinput":t,"placeholder-id":u}).before(t)}n=n.removeAttr("id").hide().prev().attr("id",u).show()}n.addClass("placeholder");n[0].value=n.attr("placeholder")}else n.removeClass("placeholder")}function v(){try{return t.activeElement}catch(n){}}var h=Object.prototype.toString.call(n.operamini)=="[object OperaMini]",f="placeholder"in t.createElement("input")&&!h,o="placeholder"in t.createElement("textarea")&&!h,c=i.fn,l=i.valHooks,a=i.propHooks,u,r;if(f&&o)r=c.placeholder=function(){return this},r.input=r.textarea=!0;else{r=c.placeholder=function(){var n=this;return n.filter((f?"textarea":":input")+"[placeholder]").not(".placeholder").on({"focus.placeholder":e,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n};r.input=f;r.textarea=o;u={get:function(n){var t=i(n),r=t.data("placeholder-password");return r?r[0].value:t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":n.value},set:function(n,t){var r=i(n),u=r.data("placeholder-password");return u?u[0].value=t:r.data("placeholder-enabled")?(t==""?(n.value=t,n!=v()&&s.call(n)):r.hasClass("placeholder")?e.call(n,!0,t)||(n.value=t):n.value=t,r):n.value=t}};f||(l.input=u,a.value=u);o||(l.textarea=u,a.value=u);i(function(){i(t).on("form","submit.placeholder",function(){var n=i(".placeholder",this).each(e);setTimeout(function(){n.each(s)},10)})});i(n).on("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})})}})(this,document,jQuery);BlockCarousel={name:"BlockCarousel",removeHidden:function(n){var t=n,i=$(t).closest(".ui-container"),r=i.attr("id"),u=$("#"+r+" .hidden");u.remove()},convert:function(n){var i=n,t=$("#"+$(i).attr("data-carousel-target")),r="",u="";isDesktop()&&!t.hasClass("convCarousel-desktop")?(BlockCarousel.clearTarget(t),r="desktop",u=BlockCarousel.createCarousel(i,r,t),t.html(u),t.addClass("convCarousel-"+r),addSwipeToCarousels(t.find(".carousel-inner")),BlockCarousel.addEvents(t.find(".block-carousel")),BlockCarousel.addProxyCarousel($(i).closest(".ui-container"))):isTablet()&&!t.hasClass("convCarousel-tablet")?(BlockCarousel.clearTarget(t),r="tablet",u=BlockCarousel.createCarousel(i,r,t),t.html(u),t.addClass("convCarousel-"+r),addSwipeToCarousels(t.find(".carousel-inner")),BlockCarousel.addEvents(t.find(".block-carousel")),BlockCarousel.addProxyCarousel($(i).closest(".ui-container"))):isMobile()&&!t.hasClass("convCarousel-mobile")&&(BlockCarousel.clearTarget(t),r="mobile",$(i).hasClass("carousel-mobile")?u=BlockCarousel.createCarousel(i,r,t):$(i).hasClass("list-mobile")&&(u=BlockCarousel.createList(i,r,t)),t.html(u),t.addClass("convCarousel-"+r),addSwipeToCarousels(t.find(".carousel-inner")),BlockCarousel.addEvents(t.find(".block-carousel")),BlockCarousel.addProxyCarousel($(i).closest(".ui-container")))},clearTarget:function(n){n.html("");n.removeClass("convCarousel-desktop");n.removeClass("convCarousel-tablet");n.removeClass("convCarousel-mobile")},createList:function(n,t){for(var r=$(n).children("li"),f=$(n).attr("data-carousel-id"),e=$(n).attr("data-carousel-"+t+"-itemcount")==null||$(n).attr("data-carousel-"+t+"-itemcount")==""?0:parseInt($(n).attr("data-carousel-"+t+"-itemcount")),u="",i=0;i<e&&i<r.length;i++)u+="<li><span>{CONTENT}<\/span><\/li>".replace("{CONTENT}",r.eq(i).html());return'<ul id="{ID}" class="conv-carousel-list">{CONTENT}<\/ul>'.replace("{ID}",f).replace("{CONTENT}",u)},createCarousel:function(n,t){var l='<div id="{ID}" class="carousel slide conv-carousel block-carousel" data-ride="carousel" {SLIDESHOW}>',v,c,i,r,u,f,y,p,s,w;l+='<div class="carousel-inner">{ITEMS}<\/div>';l+='<div class="{INDICATORS_ALIGNMENT}"><ol class="carousel-indicators">{INDICATORS}<\/ol><\/div>';l+="<\/div>";var a=$(n).attr("data-carousel-id"),h=$(n).attr("data-carousel-"+t+"-itemcount")==null||$(n).attr("data-carousel-"+t+"-itemcount")==""?0:parseInt($(n).attr("data-carousel-"+t+"-itemcount")),o=$(n).children("li"),g=$(n).attr("data-carousel-"+t+"-itemsize")==null||$(n).attr("data-carousel-"+t+"-itemsize")==""?0:parseInt($(n).attr("data-carousel-"+t+"-itemsize")),b=$(n).attr("data-carousel-"+t+"-item-offset")==null||$(n).attr("data-carousel-"+t+"-item-offset")==""?0:parseInt($(n).attr("data-carousel-"+t+"-item-offset")),nt=b<=0?"":'<div class="col-sm-'+b+'"><\/div>',tt=isMobile()?"center":$(n).attr("data-pagination-align"),e=l;e=e.replace("{ID}",a);var k=$(n).attr("data-slideshow-interval"),it=k!=null?k:"3000",d=$(n).attr("data-slideshow-"+t),rt=d!=null&&d.toLowerCase()=="true"?'data-interval="'+it+'"':'data-interval="false"';for(e=e.replace("{SLIDESHOW}",rt),v="",c="",i=0;i<o.length&&i<8*h;i=i+h){r='<div class="item {ACTIVE}" data-bg-image="{BG-IMG}" data-bg-color="{BG-COL}" data-bg-video="{BG-VID}" data-bg-video-autoplay="{BG-VID-PLAY}">{CONTENT}<\/div>';u="";switch(h){case 1:u='<div>{CONTENT_OFFSET}<div class="col-sm-{ITEM_SIZE}">{CONTENT1}<\/div><\/div>';break;case 2:u='<div>{CONTENT_OFFSET}<div class="col-sm-{ITEM_SIZE}">{CONTENT1}<\/div><div class="col-sm-{ITEM_SIZE}">{CONTENT2}<\/div><\/div>';break;case 3:u='<div>{CONTENT_OFFSET}<div class="col-sm-{ITEM_SIZE}">{CONTENT1}<\/div><div class="col-sm-{ITEM_SIZE}">{CONTENT2}<\/div><div class="col-sm-{ITEM_SIZE}">{CONTENT3}<\/div><\/div>'}for(f=0;f<h;f++)y="",f+i<o.length&&(y=o.eq(f+i).html()),u=u.replace("{CONTENT"+(f+1)+"}",y),u=u.replace("{ITEM_SIZE}",g),u=u.replace("{CONTENT_OFFSET}",nt),f==0&&(r=r.replace("{BG-IMG}",o.eq(f+i).attr("data-bg-image")),r=r.replace("{BG-COL}",o.eq(f+i).attr("data-bg-color")),r=r.replace("{BG-VID}",o.eq(f+i).attr("data-bg-video")),r=r.replace("{BG-VID-PLAY}",o.eq(f+i).attr("data-bg-video-autoplay")));r=r.replace("{CONTENT}",u);r=r.replace("{ACTIVE}",i<=0?"active":"");p=$(n).attr("data-pagination-show");s=p==null||p.toLowerCase()=="true"?'<li data-target="{TARGETID}" data-slide-to="{SLIDENUM}" class="{ACTIVE}" data-analytics-content-type="nav/paginate" data-analytics-link-name="nav/paginate"><\/li>':"";s=s.replace("{TARGETID}","#"+a);s=s.replace("{SLIDENUM}",i/h);s=s.replace("{ACTIVE}",i<=0?"active":"");v+=r;c+=s}return e=e.replace("{ITEMS}",v),w=$(n).attr("data-slideshow-button"),w!=null&&w.toLowerCase()=="true"&&c.length>0&&(c+='<li data-target="#{ID}" class="play-pause-button"><span class="acn-icon icon-pause" data-play-pause-status="pause" data-analytics-content-type="nav/paginate" data-analytics-link-name="icon-pause"><\/span><\/li>'.replace("{ID}",a)),e=e.replace("{INDICATORS}",o.length<=h?"":c),e.replace("{INDICATORS_ALIGNMENT}","indicators-"+tt.toLowerCase())},addEvents:function(n){$(n).find(".play-pause-button").on("click",function(){var n=$(this).children(".acn-icon"),t=$(n).data("play-pause-status");$(this).closest(".carousel").carousel(t);t=="pause"?($(n).data("play-pause-status","cycle").removeClass("icon-pause").addClass("icon-play"),$(n).attr("data-analytics-link-name","icon-play")):($(n).data("play-pause-status","pause").removeClass("icon-play").addClass("icon-pause"),$(n).attr("data-analytics-link-name","icon-pause"))});$(n).on("slide.bs.carousel",function(t){var r=$(t.relatedTarget).index(),i="#proxy-"+n.attr("id");$(i).carousel(r);var u=$(t.relatedTarget).attr("data-bg-color"),f=$(t.relatedTarget).closest(".ui-container").attr("id"),e=$(i).closest('div[data-content-id="'+f+'"]');BlockCarousel.updateShapeColor(u,e)})},addProxyCarousel:function(n){var t=$('#layout-wrapper div[data-content-id="'+n.attr("id")+'"] .inner.parallax'),i="#proxy-"+n.find(".block-carousel").attr("id"),r;t.find(i).remove();r=GetCarouselBackground(n);t.append(r);var u=$(n).find(".item.active").attr("data-bg-color"),f=$(n).attr("id"),e=$(i).closest('div[data-content-id="'+f+'"]');BlockCarousel.updateShapeColor(u,e);t.addClass("hasProxyCarousel")},updateShapeColor:function(n,t){var i="shape-color-"+n;t=$(t).removeClassPrefix("shape-color-");$(t).addClass(i)},resizeHeight:function(){$(".block-carousel.conv-carousel").each(function(){var t=$(this),n=0;t.find(".item").each(function(){var i=$(this),t=i.closest(".ui-content-box").find(".tempContainer");t.html(i.html());n=t.height()>n?t.height():n;t.html("")});t.find(".item").height(n)})},parallaxBackground:function(){$("#layout-wrapper .inner.parallax.hasProxyCarousel .carousel .item").each(function(){var n=$(this),t=n.closest(".outer").data("content-id");n.closest(".carousel.convertible-block-carousel").length>0&&(t=t+"-carousel");$("#"+t).data("background-align")=="Right"?n.css("background-position-x","right"):n.css("background-position-x","left");$("#"+t).data("background-cover")=="True"&&n.css("background-size","cover")})},addAnalyticsLinkTrackingAttribute:function(){$("#block-hero .carousel-indicators .play-pause-button").on("click",function(){var n=$(this).children(".acn-icon");n.hasClass("icon-pause")?n.attr("data-analytics-link-name","icon-pause"):n.attr("data-analytics-link-name","icon-play")})}};$.fn.removeClassPrefix=function(n){return this.each(function(t,i){var r=i.className.split(" ").filter(function(t){return t.lastIndexOf(n,0)!==0});i.className=r.join(" ")}),this};cBlockCarousel=$(".convBlockCarousel");$(function(){cBlockCarousel.each(function(){BlockCarousel.convert(this)});BlockCarousel.resizeHeight();BlockCarousel.parallaxBackground();cBlockCarousel.each(function(){BlockCarousel.removeHidden(this)});BlockCarousel.addAnalyticsLinkTrackingAttribute()});$(window).on("resize",function(){cBlockCarousel.each(function(){BlockCarousel.convert(this)});cBlockCarousel.each(function(){BlockCarousel.removeHidden(this)});BlockCarousel.resizeHeight()});(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n,t){"use strict";function h(n,t){this.container=n;this.options=t;this.init()}function c(t,i){this.widget=t;this.options=n.extend({},i);this.detectService();this.service&&this.init()}function y(n){function f(n,t){return t.toUpper()}var r={},u=n.data(),i,t;for(i in u)t=u[i],t==="yes"?t=!0:t==="no"&&(t=!1),r[i.replace(/-(\w)/g,f)]=t;return r}function l(n,t){return a(n,t,encodeURIComponent)}function a(n,t,i){return n.replace(/\{([^\}]+)\}/g,function(n,r){return r in t?i?i(t[r]):t[r]:n})}function f(n,t){var i=v+n;return i+" "+i+"_"+t}function p(t,i){function r(o){o.type==="keydown"&&o.which!==27||n(o.target).closest(t).length||(t.removeClass(u),f.off(e,r),typeof i=="function"&&i())}var f=n(document),e="click touchstart keydown";f.on(e,r)}function w(t){var i;if(n(t).hasClass(u)){t.removeClass(u);return}if(i=10,document.documentElement.getBoundingClientRect){var f=parseInt(t.css("left"),10),e=parseInt(t.css("top"),10),r=t[0].getBoundingClientRect();r.left<i?t.css("left",i-r.left+f):r.right>window.innerWidth-i&&t.css("left",window.innerWidth-r.right-i+f);r.top<i?t.css("top",i-r.top+e):r.bottom>window.innerHeight-i&&t.css("top",window.innerHeight-r.bottom-i+e)}t.addClass(u)}var i="social-likes",v=i+"__",u=i+"_opened",r=location.protocol==="https:"?"https:":"http:",b=location.hostname,o="",s="",e={facebook:{popupUrl:r+"//www.facebook.com/sharer/sharer.php?u={url}?quote={quote}",popupWidth:650,popupHeight:500},xing:{popupUrl:r+"//www.xing.com/social_plugins/share?h=1;url={url}",popupWidth:650,popupHeight:500},linkedin:{popupUrl:r+"//www.linkedin.com/shareArticle?mini=true&url={url}",popupWidth:650,popupHeight:500},twitter:{popupUrl:r+"//twitter.com/intent/tweet?url={url}&text={title}",popupWidth:600,popupHeight:450,click:function(){return/[\.:\-–—]\s*$/.test(this.options.title)||(this.options.title+=""),!0}},mailru:{popupUrl:r+"//connect.mail.ru/share?share_url={url}&title={title}",popupWidth:550,popupHeight:360},vkontakte:{popupUrl:r+"//vk.com/share.php?url={url}&title={title}",popupWidth:550,popupHeight:330},odnoklassniki:{popupUrl:r+"//www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl={url}",popupWidth:550,popupHeight:360},googleplus:{popupUrl:"https://plus.google.com/share?url={url}",popupWidth:700,popupHeight:500},email:{popupUrl:"mailto:?subject={title}&body={url}",popupWidth:0,popupHeight:0},email2:{popupUrl:"mailto:?subject={title}&body={url}",popupWidth:0,popupHeight:0},yahoomail:{popupUrl:r+"//compose.mail.yahoo.com/?Subject={title}&body={url}",popupWidth:630,popupHeight:500},gmail:{popupUrl:r+"//mail.google.com/mail/?view=cm&fs=1&su={title}&body={url}",popupWidth:630,popupHeight:500},pinterest:{popupUrl:r+"//pinterest.com/pin/create/button/?url={url}&description={title}",popupWidth:630,popupHeight:270},weibo:{popupUrl:"http://service.weibo.com/share/share.php?url={url}&title={title}",popupWidth:630,popupHeight:270},renren:{popupUrl:"http://share.renren.com/share/buttonshare?link={url}&title={title}",popupWidth:630,popupHeight:270},whatsapp:{popupUrl:r+"//api.whatsapp.com/send?text={title} {url}",popupWidth:650,popupHeight:500}};n.fn.socialLikes=function(t){return this.each(function(){var r=n(this),u=r.data(i);u?n.isPlainObject(t)&&u.update(t):(u=new h(r,n.extend({},n.fn.socialLikes.defaults,t,y(r))),r.data(i,u))})};n.fn.socialLikes.defaults={url:window.location.href.replace(window.location.hash,""),title:document.title,counters:!1,zeroes:!1,wait:450,popupCheckInterval:500,singleTitle:n(".social-likes").attr("data-single-title")};h.prototype={init:function(){this.container.addClass(i);this.single=this.container.hasClass(i+"_single");this.number=0;this.initUserButtons();var t=this.container.children();this.countersLeft=t.length;this.makeSingleButton();this.buttons=[];t.each(n.proxy(function(t,i){this.buttons.push(new c(n(i),this.options))},this))},initUserButtons:function(){!this.userButtonInited&&window.socialLikesButtons&&n.extend(!0,e,socialLikesButtons);this.userButtonInited=!0},makeSingleButton:function(){var r,u,t,e;if(this.single){r=this.container;this.options.singleTitle=n(".social-likes").data("plural-title");this.options.shareLabel=n(".social-likes").data("share-label");(r.closest(".joblisting-container .top-links").length>0||r.closest(".joblisting-container .bottom-links").length>0)&&(this.options.singleTitle=n(".social-likes").data("button-title"),this.options.shareLabel=n(".social-likes").data("button-title"));r.addClass(i+"_vertical");r.wrap(n("<div>",{"class":i+"_single-w"}));u=r.parent();t=n("<div>",{"class":f("widget","single")});o="";s='<span class="title {clickableCls}">'+this.options.shareLabel+"<\/span>";e=n(a('<a role="button" aria-label="Shares" tabindex="0" data-toggle="popover" data-placement="bottom" class="{buttonCls}" title="{title}"><span class="{iconCls}"  title="{title}"><\/span>'+o+s+"<\/a>",{buttonCls:f("button","single"),iconCls:f("icon","single acn-icon icon-share"),title:this.options.singleTitle,clickableCls:"clickable"}));this.sharedButton=e;t.append(this.sharedButton);u.append(t);t.on("click touchstart",function(n){var f=t.closest(".featured-section-module"),e=t.closest(".module-event-calendar"),u;if((!f||!(f.length>0))&&(!e||!(e.length>0))||n.type!="touchstart")return u=i+"__widget_active",t.addClass(u),w(r),p(r,function(){t.removeClass(u)}),!1});this.widget=t}},update:function(t){if(t.forceUpdate||t.url!==this.options.url){this.number=0;this.countersLeft=this.buttons.length;this.widget&&this.widget.find("."+i+"__counter").remove();n.extend(this.options,t);for(var r=0;r<this.buttons.length;r++)this.buttons[r].update(t)}},appear:function(){this.container.addClass(i+"_visible")}};c.prototype={init:function(){this.detectParams();this.initHtml()},update:function(t){n.extend(this.options,{forceUpdate:!1},t);this.widget.find("."+i+"__counter").remove()},detectService:function(){for(var t,r=this.widget[0].classList||this.widget[0].className.split(" "),i=0;i<r.length;i++)if(t=r[i],e[t]){this.service=t;n.extend(this.options,e[t]);return}},detectParams:function(){var t=this.widget.data(),i="&desc=",r="&tn=",u="ti=",f=n(".share-tools .share-icons-container").attr("data-email-subject"),e=n('meta[property="og:title"]').attr("content");this.options.title=f?f:e;t.url&&(this.options.url=t.url,t.network==="facebook"?(this.options.url.indexOf(i)>-1?t.description=this.options.url.split(i)[1].split("&tn")[0]:this.options.url.indexOf(u)>-1&&(t.description=" "),this.options.url.indexOf(r)>-1&&(t.picture=this.options.url.split(r)[1].split("&")[0])):t.network==="linkedin"&&(this.options.url.indexOf(i)>-1?t.summary=this.options.url.split(i)[1].split("&tn")[0]:this.options.url.indexOf(u)>-1&&(t.summary=" ")))},initHtml:function(){var i=this.options,t=this.widget,f=t.find("a"),r,e,u;if(f.length&&this.cloneDataAttrs(f,t),r=n("<span>",{"class":this.getElementClassNames("button"),text:t.text()}),i.clickUrl)e=l(i.clickUrl,{url:i.url,title:i.title}),u=n("<a>",{href:e}),this.cloneDataAttrs(t,u),t.replaceWith(u),this.widget=t=u;else t.on("click",n.proxy(this.click,this));t.removeClass(this.service);t.addClass(this.getElementClassNames("widget"));r.prepend(n("<span>",{"class":this.getElementClassNames("icon")}));t.empty().append(r);this.button=r},cloneDataAttrs:function(n,t){var i=n.data();for(var r in i)i.hasOwnProperty(r)&&t.data(r,i[r])},getElementClassNames:function(n){return f(n,this.service)},click:function(i){var r=this.options,o=!0,u,f,e;return typeof r.click=="function"&&(o=r.click.call(this,i)),(r.popupUrl.indexOf("facebook")>=0||r.popupUrl.indexOf("mail.google")>=0||r.popupUrl.indexOf("linkedin")>=0||r.popupUrl.indexOf("xing")>=0||r.popupUrl.indexOf("mailto:")>=0||r.popupUrl.indexOf("mail.yahoo")>=0)&&r.url.split("?")[1]!=t&&r.url.indexOf("id=")<0&&(r.url=r.url.split("?")[0]),o&&(u=l(r.popupUrl,{url:r.url.indexOf("events-calendar")>0?window.location.href:r.url,title:r.title}),r.popupUrl.indexOf("mailto:")>=0&&n(".blog-content-module").length>0&&(f=r.title,e=n(".share-tools .share-icons-container").attr("data-email-subject"),n(".hero-wrapper .page-title").length>0&&(f=n(".page-title").eq(0).text()),u=e?u.replace("subject="+encodeURI(r.title),"subject="+encodeURI(e)):u.replace("subject="+encodeURI(r.title),"subject=Check out this Accenture Blog"),u=u.replace("body=","body="+f+" ")),u=this.addAdditionalParamsToUrl(u),this.openPopup(u,{width:r.popupWidth,height:r.popupHeight})),!1},addAdditionalParamsToUrl:function(t){var i,r;return this.widget.data()["bs.popover"]!=null?t:(this.widget.data()["bs.tooltip"]!=null&&n(".share-tools").length>0&&(this.widget.data()["bs.tooltip"]="",n(".tooltip").remove()),this.widget.data().url&&this.widget.data().url.indexOf("events-calendar")&&this.widget.data().network==="xing")?t:(this.widget.data().network==="twitter"&&(this.widget.data().url!=null&&delete this.widget.data().url,this.widget.data().title!=null&&delete this.widget.data().title),i=n.param(n.extend(this.widget.data(),this.options.data)),n.isEmptyObject(i))?t:(r=t.indexOf("?")===-1?"?":"&",t+r+i)},openPopup:function(t,r){var e=Math.round(screen.width/2-r.width/2),f=0,u,o;screen.height>r.height&&(f=Math.round(screen.height/2-r.height/2));u=null;IsIE()?(u=window.open("","sl_"+this.service,"top="+f+",left="+e+",width="+r.width+",height="+r.height+",personalbar=0,toolbar=0,scrollbars=1,resizable=1"),u.location=t):u=this.service=="email"?window.open(t,"sl_"+this.service):window.open(t,"sl_"+this.service,"top="+f+",left="+e+",width="+r.width+",height="+r.height+",personalbar=0,toolbar=0,scrollbars=1,resizable=1");u?(u.focus(),this.widget.trigger("popup_opened."+i,[this.service,u]),r.height==0&&(this.service=="email"?setTimeout(function(){u.close()},2e3):u.close()),o=setInterval(n.proxy(function(){u.closed&&(clearInterval(o),this.widget.trigger("popup_closed."+i,this.service))},this),this.options.popupCheckInterval)):location.href=t}};n(function(){n("."+i).socialLikes()})});processingSocial=!1,function(n,t,i){function u(n){switch(n){case 12:return 1e3;case 8:return 660;case 6:return 490;case 4:return 320;case 3:return 250;case 2:return 150}return 1e3}function f(n){var t=pageState.viewPortWidth;return t<768&&(n=1),parseInt(t*.8*n)}function e(n){return n.hasClass("col-sm-2")?2:n.hasClass("col-sm-3")?3:n.hasClass("col-sm-4")?4:n.hasClass("col-sm-6")?6:n.hasClass("col-sm-8")?8:(n.hasClass("col-sm-12"),12)}var r=t.screen.width;n.fn.imageloader=function(t){var o=n.extend({},n.fn.imageloader.options,t);return this.each(function(){var t=n(this),p=t.attr("data-alt"),h=t.attr("data-src"),v=t.attr("data-class"),w=t.attr("data-style"),b=t.attr("data-title"),y=t.attr("data-col"),a=t.attr("data-width"),s,l;if(a)c=a;else{var k=n(t).closest("div[class^=col-sm]"),y=e(k),c=0;r>1e3?/\.gif$/i.test(h)||(c=u(y)):c=f(y)}return typeof h!="undefined"&&(h.search(o.srcIdentifier)>=0?h=h.replace(o.srcIdentifier,"w"+c):h.search(o.srcIdentifierSearch)>=0&&(h=h.replace(o.srcIdentifierSearch,"w"+c)),s=i.createElement("img"),s.src=h,s.alt=p,s.title=b,s.setAttribute("style",w),s.setAttribute("data-width",a),typeof v!="undefined"?s.setAttribute("class","img-responsive "+v):s.setAttribute("class","img-responsive"),l=t.html(),l!=null&&l!=""&&(s.innerHTML=l),t.replaceWith(s)),this}),this};n.fn.imageloader.options={srcIdentifier:"__w__",srcIdentifierSearch:"~"}}(jQuery,window,document);$(function(){$("span.image-holder").imageloader()}),function(n){n.fn.undoable=function(t){var i=n.extend({},n.fn.undoable.defaults,t);return this.each(function(){$this=n(this);$this.on("click",function(){var t=n(this);t.prop("disabled",!0);var r=(i.getTarget||n.fn.undoable.getTarget).call(n.fn.undoable,t),u=i.url,f=(i.getPostData||n.fn.undoable.getPostData).call(n.fn.undoable,t,r);return n.fn.undoable.postToServer(u,f,function(e){var s=n.extend(e,f),o;r.inlineStyling=i.inlineStyling;o=(i.showUndo||n.fn.undoable.showUndo).call(n.fn.undoable,r,s,i);r.hide();o.find(".undo a").on("click",function(){n(this).prop("disabled",!0);var f=(i.getUndoPostData||n.fn.undoable.getUndoPostData).call(n.fn.undoable,t,r,i);return n.fn.undoable.postToServer(i.undoUrl||u,f,function(){(i.hideUndo||n.fn.undoable.hideUndo).call(n.fn.undoable,o,r,i);t.prop("disabled",!1)},t),!1})},t),!1})})};n.fn.undoable.getTarget=function(n){var t=n.closest("tr");return t.length===0?n.closest(".target"):t};n.fn.undoable.getPostData=function(n){var t=n.attr("href");return{id:t.substring(t.indexOf("#")+1)}};n.fn.undoable.getUndoPostData=function(n,t,i){return(i.getPostData||this.getPostData).call(this,n,t,i)};n.fn.undoable.createUndoable=function(n,t,i){var r;if(n[0].tagName==="TR")r=n.children("td").length,n.after('<tr class="undoable"><td class="status" colspan="'+(r-1)+'">'+i+'<\/td><td class="undo"> <a href="#'+t.id+'">Undo<\/a><\/td><\/tr>');else{var u=n[0].tagName,e=n.attr("class")||"",o='<p class="undo"> <a href="#'+t.id+'">Undo<\/a><\/p>',f=i.indexOf("<\/i>");i=[i.slice(0,f+4),o,i.slice(f+4)].join("");n.after("<"+u+' class="undoable '+e+'"><p class="status">'+i+"<\/p><\/"+u+">")}return n.next()};n.fn.undoable.showUndo=function(t,i,r){var f=(r.formatStatus||this.formatStatus).call(this,i),u=(r.createUndoable||n.fn.undoable.createUndoable).call(n.fn.undoable,t,i,f);return r.showingStatus&&r.showingStatus(u),u.hide().fadeIn("slow").show(),t.inlineStyling&&(r.applyUndoableStyle||n.fn.undoable.applyUndoableStyle).call(n.fn.undoable,u),u};n.fn.undoable.hideUndo=function(n,t,i){return i.hidingStatus&&i.hidingStatus(n,t),n.remove(),t.fadeIn("slow").show(),t};n.fn.undoable.formatStatus=function(n){return'<div class="undo-changes">'+n.subject+"<i> "+n.predicate+"<\/i><\/div>"};n.fn.undoable.applyUndoableStyle=function(n){n.css("color","#777777");var t=n;n[0].tagName==="TR"&&(t=n.children("td"))};n.fn.undoable.postToServer=function(t,i,r,u){t?n.ajax({url:t,type:"POST",dataType:"json",data:i,success:r}):r({subject:"Removed",predicate:u[0].nextSibling.data})};n.fn.undoable.defaults={inlineStyling:!0}}(jQuery),function(n){n.fn.customScrollbar=function(t,i){var e={skin:undefined,hScroll:!0,vScroll:!0,updateOnWindowResize:!1,animationSpeed:300,onCustomScroll:undefined,swipeSpeed:1,wheelSpeed:40,fixedThumbWidth:undefined,fixedThumbHeight:undefined,preventDefaultScroll:!1},o=function(t,i){this.$element=n(t);this.options=i;this.addScrollableClass();this.addSkinClass();this.addScrollBarComponents();this.options.vScroll&&(this.vScrollbar=new r(this,new f));this.options.hScroll&&(this.hScrollbar=new r(this,new u));this.$element.data("scrollable",this);this.initKeyboardScrolling();this.bindEvents()},r,u,f;return o.prototype={addScrollableClass:function(){this.$element.hasClass("scrollable")||(this.scrollableAdded=!0,this.$element.addClass("scrollable"))},removeScrollableClass:function(){this.scrollableAdded&&this.$element.removeClass("scrollable")},addSkinClass:function(){typeof this.options.skin!="string"||this.$element.hasClass(this.options.skin)||(this.skinClassAdded=!0,this.$element.addClass(this.options.skin))},removeSkinClass:function(){this.skinClassAdded&&this.$element.removeClass(this.options.skin)},addScrollBarComponents:function(){this.assignViewPort();this.$viewPort.length==0&&(this.$element.wrapInner('<div class="viewport" />'),this.assignViewPort(),this.viewPortAdded=!0);this.assignOverview();this.$overview.length==0&&(this.$viewPort.wrapInner('<div class="overview" />'),this.assignOverview(),this.overviewAdded=!0);this.addScrollBar("vertical","prepend");this.addScrollBar("horizontal","append")},removeScrollbarComponents:function(){this.removeScrollbar("vertical");this.removeScrollbar("horizontal");this.overviewAdded&&this.$element.unwrap();this.viewPortAdded&&this.$element.unwrap()},removeScrollbar:function(n){this[n+"ScrollbarAdded"]&&this.$element.find(".scroll-bar."+n).remove()},assignViewPort:function(){this.$viewPort=this.$element.find(".viewport")},assignOverview:function(){this.$overview=this.$viewPort.find(".overview")},addScrollBar:function(n,t){this.$element.find(".scroll-bar."+n).length==0&&(this.$element[t]("<div class='scroll-bar "+n+"'><div class='thumb'><\/div><\/div>"),this[n+"ScrollbarAdded"]=!0)},resize:function(n){this.vScrollbar&&this.vScrollbar.resize(n);this.hScrollbar&&this.hScrollbar.resize(n)},scrollTo:function(n){this.vScrollbar&&this.vScrollbar.scrollToElement(n);this.hScrollbar&&this.hScrollbar.scrollToElement(n)},scrollToXY:function(n,t){this.scrollToX(n);this.scrollToY(t)},scrollToX:function(n){this.hScrollbar&&this.hScrollbar.scrollOverviewTo(n,!0)},scrollToY:function(n){this.vScrollbar&&this.vScrollbar.scrollOverviewTo(n,!0)},scrollByX:function(n){this.hScrollbar&&this.scrollToX(this.hScrollbar.overviewPosition()+n)},scrollByY:function(n){this.vScrollbar&&this.scrollToY(this.vScrollbar.overviewPosition()+n)},remove:function(){this.removeScrollableClass();this.removeSkinClass();this.removeScrollbarComponents();this.$element.data("scrollable",null);this.removeKeyboardScrolling();this.vScrollbar&&this.vScrollbar.remove();this.hScrollbar&&this.hScrollbar.remove()},setAnimationSpeed:function(n){this.options.animationSpeed=n},isInside:function(t,i){var f=n(t),e=n(i),r=f.offset(),u=e.offset();return r.top>=u.top&&r.left>=u.left&&r.top+f.height()<=u.top+e.height()&&r.left+f.width()<=u.left+e.width()},initKeyboardScrolling:function(){var n=this;this.elementKeydown=function(t){document.activeElement===n.$element[0]&&(n.vScrollbar&&n.vScrollbar.keyScroll(t),n.hScrollbar&&n.hScrollbar.keyScroll(t))};this.$element.attr("tabindex","-1").on("keydown",this.elementKeydown)},removeKeyboardScrolling:function(){this.$element.removeAttr("tabindex").off("keydown",this.elementKeydown)},bindEvents:function(){if(this.options.onCustomScroll)this.$element.on("customScroll",this.options.onCustomScroll)}},r=function(n,t){this.scrollable=n;this.sizing=t;this.$scrollBar=this.sizing.scrollBar(this.scrollable.$element);this.$thumb=this.$scrollBar.find(".thumb");this.setScrollPosition(0,0);this.resize();this.initMouseMoveScrolling();this.initMouseWheelScrolling();this.initTouchScrolling();this.initMouseClickScrolling();this.initWindowResize()},r.prototype={resize:function(n){this.overviewSize=this.sizing.size(this.scrollable.$overview);this.calculateViewPortSize();this.sizing.size(this.scrollable.$viewPort,this.viewPortSize);this.ratio=this.viewPortSize/this.overviewSize;this.sizing.size(this.$scrollBar,this.viewPortSize);this.thumbSize=this.calculateThumbSize();this.sizing.size(this.$thumb,this.thumbSize);this.maxThumbPosition=this.calculateMaxThumbPosition();this.maxOverviewPosition=this.calculateMaxOverviewPosition();this.enabled=this.overviewSize>this.viewPortSize;this.scrollPercent===undefined&&(this.scrollPercent=0);this.enabled?this.rescroll(n):this.setScrollPosition(0,0);this.$scrollBar.toggle(this.enabled)},calculateViewPortSize:function(){var n=this.sizing.size(this.scrollable.$element),t;n>0&&!this.maxSizeUsed?(this.viewPortSize=n,this.maxSizeUsed=!1):(t=this.sizing.maxSize(this.scrollable.$element),this.viewPortSize=Math.min(t,this.overviewSize),this.maxSizeUsed=!0)},calculateThumbSize:function(){var n=this.sizing.fixedThumbSize(this.scrollable.options),t;return t=n?n:this.ratio*this.viewPortSize,Math.max(t,this.sizing.minSize(this.$thumb))},initMouseMoveScrolling:function(){var t=this;this.$thumb.on("mousedown",function(n){t.enabled&&t.startMouseMoveScrolling(n)});this.documentMouseup=function(n){t.stopMouseMoveScrolling(n)};n(document).on("mouseup",this.documentMouseup);this.documentMousemove=function(n){t.mouseMoveScroll(n)};n(document).on("mousemove",this.documentMousemove);this.$thumb.on("click",function(n){n.stopPropagation()})},removeMouseMoveScrolling:function(){this.$thumb.off();n(document).off("mouseup",this.documentMouseup);n(document).off("mousemove",this.documentMousemove)},initMouseWheelScrolling:function(){var n=this;this.scrollable.$element.mousewheel(function(t,i,r,u){if(n.enabled){var f=n.mouseWheelScroll(r,u);n.stopEventConditionally(t,f)}})},removeMouseWheelScrolling:function(){this.scrollable.$element.off("mousewheel")},initTouchScrolling:function(){if(document.addEventListener){var n=this;this.elementTouchstart=function(t){n.enabled&&n.startTouchScrolling(t)};this.scrollable.$element[0].addEventListener("touchstart",this.elementTouchstart);this.documentTouchmove=function(t){n.touchScroll(t)};this.scrollable.$element[0].addEventListener("touchmove",this.documentTouchmove);this.elementTouchend=function(t){n.stopTouchScrolling(t)};this.scrollable.$element[0].addEventListener("touchend",this.elementTouchend)}},removeTouchScrolling:function(){document.addEventListener&&(this.scrollable.$element[0].removeEventListener("touchstart",this.elementTouchstart),document.removeEventListener("touchmove",this.documentTouchmove),this.scrollable.$element[0].removeEventListener("touchend",this.elementTouchend))},initMouseClickScrolling:function(){var n=this;this.scrollBarClick=function(t){n.mouseClickScroll(t)};this.$scrollBar.on("click",this.scrollBarClick)},removeMouseClickScrolling:function(){this.$scrollBar.off("click",this.scrollBarClick)},initWindowResize:function(){if(this.scrollable.options.updateOnWindowResize){var t=this;this.windowResize=function(){t.resize()};n(window).on("resize",this.windowResize)}},removeWindowResize:function(){n(window).off("resize",this.windowResize)},isKeyScrolling:function(n){return this.keyScrollDelta(n)!=null},keyScrollDelta:function(n){for(var t in this.sizing.scrollingKeys)if(t==n)return this.sizing.scrollingKeys[n](this.viewPortSize);return null},startMouseMoveScrolling:function(t){this.mouseMoveScrolling=!0;n("body").addClass("not-selectable");this.setUnselectable(n("body"),"on");this.setScrollEvent(t);t.preventDefault()},stopMouseMoveScrolling:function(){this.mouseMoveScrolling=!1;n("body").removeClass("not-selectable");this.setUnselectable(n("body"),null)},setUnselectable:function(n,t){n.attr("unselectable")!=t&&(n.attr("unselectable",t),n.find(":not(input)").attr("unselectable",t))},mouseMoveScroll:function(n){if(this.mouseMoveScrolling){var t=this.sizing.mouseDelta(this.scrollEvent,n);this.scrollThumbBy(t);this.setScrollEvent(n)}},startTouchScrolling:function(n){n.touches&&n.touches.length==1&&(this.setScrollEvent(n.touches[0]),this.touchScrolling=!0,n.stopPropagation())},touchScroll:function(n){if(this.touchScrolling&&n.touches&&n.touches.length==1){var i=-this.sizing.mouseDelta(this.scrollEvent,n.touches[0])*this.scrollable.options.swipeSpeed,t=this.scrollOverviewBy(i);t&&this.setScrollEvent(n.touches[0]);this.stopEventConditionally(n,t)}},stopTouchScrolling:function(n){this.touchScrolling=!1;n.stopPropagation()},mouseWheelScroll:function(n,t){var i=-this.sizing.wheelDelta(n,t)*this.scrollable.options.wheelSpeed;if(i!=0)return this.scrollOverviewBy(i)},mouseClickScroll:function(n){var t=this.viewPortSize-20;n["page"+this.sizing.scrollAxis()]<this.$thumb.offset()[this.sizing.offsetComponent()]&&(t=-t);this.scrollOverviewBy(t)},keyScroll:function(n){var t=n.which,i;this.enabled&&this.isKeyScrolling(t)&&(i=this.scrollOverviewBy(this.keyScrollDelta(t)),this.stopEventConditionally(n,i))},scrollThumbBy:function(n){var t=this.thumbPosition(),i,r;return t+=n,t=this.positionOrMax(t,this.maxThumbPosition),i=this.scrollPercent,this.scrollPercent=t/this.maxThumbPosition,i!=this.scrollPercent?(r=t*this.maxOverviewPosition/this.maxThumbPosition,this.setScrollPosition(r,t),this.triggerCustomScroll(i),!0):!1},thumbPosition:function(){return this.$thumb.position()[this.sizing.offsetComponent()]},scrollOverviewBy:function(n){var t=this.overviewPosition()+n;return this.scrollOverviewTo(t,!1)},overviewPosition:function(){return-this.scrollable.$overview.position()[this.sizing.offsetComponent()]},scrollOverviewTo:function(n,t){var i,r;return n=this.positionOrMax(n,this.maxOverviewPosition),i=this.scrollPercent,this.scrollPercent=n/this.maxOverviewPosition,i!=this.scrollPercent?(r=this.scrollPercent*this.maxThumbPosition,t?this.setScrollPositionWithAnimation(n,r):this.setScrollPosition(n,r),this.triggerCustomScroll(i),!0):!1},positionOrMax:function(n,t){return n<0?0:n>t?t:n},triggerCustomScroll:function(n){this.scrollable.$element.trigger("customScroll",{scrollAxis:this.sizing.scrollAxis(),direction:this.sizing.scrollDirection(n,this.scrollPercent),scrollPercent:this.scrollPercent*100})},rescroll:function(n){var i,t;n?(t=this.positionOrMax(this.overviewPosition(),this.maxOverviewPosition),this.scrollPercent=t/this.maxOverviewPosition,i=this.scrollPercent*this.maxThumbPosition,this.setScrollPosition(t,i)):(i=this.scrollPercent*this.maxThumbPosition,t=this.scrollPercent*this.maxOverviewPosition,this.setScrollPosition(t,i))},setScrollPosition:function(n,t){this.$thumb.css(this.sizing.offsetComponent(),t+"px");this.scrollable.$overview.css(this.sizing.offsetComponent(),-n+"px")},setScrollPositionWithAnimation:function(n,t){var i={},r={};i[this.sizing.offsetComponent()]=t+"px";this.$thumb.animate(i,this.scrollable.options.animationSpeed);r[this.sizing.offsetComponent()]=-n+"px";this.scrollable.$overview.animate(r,this.scrollable.options.animationSpeed)},calculateMaxThumbPosition:function(){return Math.max(0,this.sizing.size(this.$scrollBar)-this.thumbSize)},calculateMaxOverviewPosition:function(){return Math.max(0,this.sizing.size(this.scrollable.$overview)-this.sizing.size(this.scrollable.$viewPort))},setScrollEvent:function(n){var t="page"+this.sizing.scrollAxis();this.scrollEvent&&this.scrollEvent[t]==n[t]||(this.scrollEvent={pageX:n.pageX,pageY:n.pageY})},scrollToElement:function(t){var i=n(t);if(this.sizing.isInside(i,this.scrollable.$overview)&&!this.sizing.isInside(i,this.scrollable.$viewPort)){var r=i.offset(),u=this.scrollable.$overview.offset(),f=this.scrollable.$viewPort.offset();this.scrollOverviewTo(r[this.sizing.offsetComponent()]-u[this.sizing.offsetComponent()],!0)}},remove:function(){this.removeMouseMoveScrolling();this.removeMouseWheelScrolling();this.removeTouchScrolling();this.removeMouseClickScrolling();this.removeWindowResize()},stopEventConditionally:function(n,t){(t||this.scrollable.options.preventDefaultScroll)&&(n.preventDefault(),n.stopPropagation())}},u=function(){},u.prototype={size:function(n,t){return t?n.width(t):n.width()},minSize:function(n){return parseInt(n.css("min-width"))||0},maxSize:function(n){return parseInt(n.css("max-width"))||0},fixedThumbSize:function(n){return n.fixedThumbWidth},scrollBar:function(n){return n.find(".scroll-bar.horizontal")},mouseDelta:function(n,t){return t.pageX-n.pageX},offsetComponent:function(){return"left"},wheelDelta:function(n){return n},scrollAxis:function(){return"X"},scrollDirection:function(n,t){return n<t?"right":"left"},scrollingKeys:{37:function(){return-10},39:function(){return 10}},isInside:function(t,i){var r=n(t),u=n(i),f=r.offset(),e=u.offset();return f.left>=e.left&&f.left+r.width()<=e.left+u.width()}},f=function(){},f.prototype={size:function(n,t){return t?n.height(t):n.height()},minSize:function(n){return parseInt(n.css("min-height"))||0},maxSize:function(n){return parseInt(n.css("max-height"))||0},fixedThumbSize:function(n){return n.fixedThumbHeight},scrollBar:function(n){return n.find(".scroll-bar.vertical")},mouseDelta:function(n,t){return t.pageY-n.pageY},offsetComponent:function(){return"top"},wheelDelta:function(n,t){return t},scrollAxis:function(){return"Y"},scrollDirection:function(n,t){return n<t?"down":"up"},scrollingKeys:{38:function(){return-10},40:function(){return 10},33:function(n){return-(n-20)},34:function(n){return n-20}},isInside:function(t,i){var r=n(t),u=n(i),f=r.offset(),e=u.offset();return f.top>=e.top&&f.top+r.height()<=e.top+u.height()}},this.each(function(){if(t==undefined&&(t=e),typeof t=="string"){var r=n(this).data("scrollable");r&&r[t](i)}else if(typeof t=="object")t=n.extend(e,t),new o(n(this),t);else throw"Invalid type of options";})}}(jQuery),function(n){function i(t){var i=t||window.event,e=[].slice.call(arguments,1),r=0,f=0,u=0;return t=n.event.fix(i),t.type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),u=r,i.axis!==undefined&&i.axis===i.HORIZONTAL_AXIS&&(u=0,f=r),i.wheelDeltaY!==undefined&&(u=i.wheelDeltaY/120),i.wheelDeltaX!==undefined&&(f=i.wheelDeltaX/120),e.unshift(t,r,f,u),(n.event.dispatch||n.event.handle).apply(this,e)}var t=["DOMMouseScroll","mousewheel"];n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=t.length;n;)this.addEventListener(t[--n],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var n=t.length;n;)this.removeEventListener(t[--n],i,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.on("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.off("mousewheel",n)}})}(jQuery),function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:Array.isArray,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,isFunction:function(n){return typeof n=="function"?!0:!1},each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,getUniqueId:function(){var n=0;return function(){return n++}}(),templatify:function(n){function t(){return String(n)}return typeof n=="function"?n:t},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},noop:function(){}}}(),a="0.10.4",v=function(){"use strict";function n(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(){var i=[].slice.call(arguments,0);return function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),o=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var r=this.list.tail,i;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key]);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),y=function(){"use strict";function r(n){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix))}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(n){return JSON.parse(n)}var n,i;try{n=window.localStorage;n.setItem("~~~","!");n.removeItem("~~~")}catch(o){n=null}return i=n&&window.JSON?{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),e(n.getItem(this._prefix(t)))},set:function(i,r,e){return t.isNumber(e)?n.setItem(this._ttlKey(i),f(u()+e)):n.removeItem(this._ttlKey(i)),n.setItem(this._prefix(i),f(r))},remove:function(t){return n.removeItem(this._ttlKey(t)),n.removeItem(this._prefix(t)),this},clear:function(){for(var r,i=[],u=n.length,t=0;t<u;t++)(r=n.key(t)).match(this.keyMatcher)&&i.push(r.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(i){var r=e(n.getItem(this._ttlKey(i)));return t.isNumber(r)&&u()>r?!0:!1}}:{get:t.noop,set:t.noop,remove:t.noop,clear:t.noop,isExpired:t.noop},t.mixin(r.prototype,i),r}(),s=function(){"use strict";function i(t){t=t||{};this.cancelled=!1;this.lastUrl=null;this._send=t.transport?s(t.transport):n.ajax;this._get=t.rateLimiter?t.rateLimiter(this._get):this._get;this._cache=t.cache===!1?new o(0):e}function s(i){return function(r,u){function e(n){t.defer(function(){f.resolve(n)})}function o(n){t.defer(function(){f.reject(n)})}var f=n.Deferred();return i(r,u,e,o),f}}var r=0,u={},f=6,e=new o(10);return i.setMaxPendingRequests=function(n){f=n},i.resetCache=function(){e.reset()},t.mixin(i.prototype,{_get:function(n,t,i){function s(t){i&&i(null,t);e._cache.set(n,t)}function h(){i&&i(!0)}function c(){r--;delete u[n];e.onDeckRequestArgs&&(e._get.apply(e,e.onDeckRequestArgs),e.onDeckRequestArgs=null)}var e=this,o;this.cancelled||n!==this.lastUrl||((o=u[n])?o.done(s).fail(h):r<f?(r++,u[n]=this._send(n,t).done(s).fail(h).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(n,i,r){var u;return t.isFunction(i)&&(r=i,i={}),this.cancelled=!1,this.lastUrl=n,(u=this._cache.get(n))?t.defer(function(){r&&r(null,u)}):this._get(n,i,r),!!u},cancel:function(){this.cancelled=!0}}),i}(),p=function(){"use strict";function i(t){t=t||{};t.datumTokenizer&&t.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.datumTokenizer=t.datumTokenizer;this.queryTokenizer=t.queryTokenizer;this.reset()}function r(n){return n=t.filter(n,function(n){return!!n}),t.map(n,function(n){return n.toLowerCase()})}function u(){return{ids:[],children:{}}}function f(n){for(var i={},r=[],t=0,u=n.length;t<u;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function e(n,t){function o(n,t){return n-t}var i=0,r=0,u=[],f,e;for(n=n.sort(o),t=t.sort(o),f=n.length,e=t.length;i<f&&r<e;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}return t.mixin(i.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var i=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var f,e;f=i.datums.push(n)-1;e=r(i.datumTokenizer(n));t.each(e,function(n){for(var r,t=i.trie,e=n.split("");r=e.shift();)t=t.children[r]||(t.children[r]=u()),t.ids.push(f)})})},get:function(n){var u=this,o,i;return o=r(this.queryTokenizer(n)),t.each(o,function(n){var t,r,o,f;if(i&&i.length===0)return!1;for(t=u.trie,r=n.split("");t&&(o=r.shift());)t=t.children[o];if(t&&r.length===0)f=t.ids.slice(0),i=i?e(i,f):f;else return i=[],!1}),i?t.map(f(i),function(n){return u.datums[n]}):[]},reset:function(){this.datums=[];this.trie=u()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),f=function(){"use strict";function i(n){return n.local||null}function r(i){var r,u;return u={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(r=i.prefetch||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.thumbprint=a+r.thumbprint,r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",r.url||n.error("prefetch requires url to be set")),r}function u(i){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var r,u;return u={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(r=i.remote||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.rateLimiter=/^throttle$/i.test(r.rateLimitBy)?e(r.rateLimitWait):f(r.rateLimitWait),r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",delete r.rateLimitBy,delete r.rateLimitWait,r.url||n.error("remote requires url to be set")),r}return{local:i,prefetch:r,remote:u}}();(function(i){"use strict";function u(t){t&&(t.local||t.prefetch||t.remote)||n.error("one of local, prefetch, or remote is required");this.limit=t.limit||5;this.sorter=o(t.sorter);this.dupDetector=t.dupDetector||h;this.local=f.local(t);this.prefetch=f.prefetch(t);this.remote=f.remote(t);this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null;this.index=new p({datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer});this.storage=this.cacheKey?new y(this.cacheKey):null}function o(n){function i(t){return t.sort(n)}function r(n){return n}return t.isFunction(n)?i:r}function h(){return!1}var e,r;return e=i.Bloodhound,r={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=u,u.noConflict=function(){return i.Bloodhound=e,u},u.tokenizers=v,t.mixin(u.prototype,{_loadPrefetch:function(t){function f(n){i.clear();i.add(t.filter?t.filter(n):n);i._saveToStorage(i.index.serialize(),t.thumbprint,t.ttl)}var i=this,u,r;return(u=this._readFromStorage(t.thumbprint))?(this.index.bootstrap(u),r=n.Deferred().resolve()):r=n.ajax(t.url,t.ajax).done(f),r},_getFromRemote:function(n,t){function f(n,r){n?t([]):t(i.remote.filter?i.remote.filter(r):r)}var i=this,r,u;if(this.transport)return n=n||"",u=encodeURIComponent(n),r=this.remote.replace?this.remote.replace(this.remote.url,n):this.remote.url.replace(this.remote.wildcard,u),this.transport.get(r,this.remote.ajax,f)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(n,t,i){this.storage&&(this.storage.set(r.data,n,i),this.storage.set(r.protocol,location.protocol,i),this.storage.set(r.thumbprint,t,i))},_readFromStorage:function(n){var t={},i;return this.storage&&(t.data=this.storage.get(r.data),t.protocol=this.storage.get(r.protocol),t.thumbprint=this.storage.get(r.thumbprint)),i=t.thumbprint!==n||t.protocol!==location.protocol,t.data&&!i?t.data:null},_initialize:function(){function f(){u.add(t.isFunction(i)?i():i)}var u=this,i=this.local,r;return r=this.prefetch?this._loadPrefetch(this.prefetch):n.Deferred().resolve(),i&&r.done(f),this.transport=this.remote?new s(this.remote):null,this.initPromise=r.promise()},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){this.index.add(n)},get:function(n,i){function e(n){var f=r.slice(0);t.each(n,function(n){var i;return i=t.some(f,function(t){return u.dupDetector(n,t)}),i||f.push(n),f.length<u.limit});i&&i(u.sorter(f))}var u=this,r=[],f=!1;r=this.index.get(n);r=this.sorter(r).slice(0,this.limit);r.length<this.limit?f=this._getFromRemote(n,e):this._cancelLastRemoteRequest();f||(r.length>0||!this.transport)&&i&&i(r)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&s.resetCache()},ttAdapter:function(){return t.bind(this.get,this)}}),u})(this);var r=function(){return{wrapper:'<div class="twitter-typeahead"><\/div>',dropdown:'<div class="tt-dropdown-menu"><\/div>',dataset:'<div class="tt-dataset-%CLASS%"><\/div>',suggestions:'<ul role="listbox" class="tt-suggestions autocomplete-list"><\/ul>',suggestion:'<li role="option" aria-selected="false" class="tt-suggestion autocomplete-item"><\/li>'}}(),i=function(){"use strict";var i;return i=n(".redesign-search-page").length===0&&n(".job-search-hero-block").length===0&&n(".reinvent-locations-hero-module").length===0?{wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}}:{wrapper:{position:"relative",display:"initial"},hint:{position:"relative",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1",display:"none"},input:{position:"relative",verticalAlign:"top",backgroundColor:"white"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"relative",top:"100%",left:"0",zIndex:"100"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}},t.isMsie()&&t.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t.isMsie()&&t.isMsie()<=7&&t.mixin(i.input,{marginTop:"-1px"}),i}(),h=function(){"use strict";function i(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var r="typeahead:";return t.mixin(i.prototype,{trigger:function(n){var t=[].slice.call(arguments,1);this.$el.trigger(r+n,t)}}),i}(),e=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&u<f;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),c=function(n){"use strict";function r(n,i,r){for(var u=[],f,e=0,o=n.length;e<o;e++)u.push(t.escapeRegExChars(n[e]));return f=r?"\\b("+u.join("|")+")\\b":"("+u.join("|")+")",i?new RegExp(f):new RegExp(f,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,e;return(i=f.exec(t.data))&&(e=n.createElement(u.tagName),u.className&&(e.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),e.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(e,r)),!!i}function e(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:e(i,t)}var f;(u=t.mixin({},i,u),u.node&&u.pattern)&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],f=r(u.pattern,u.caseSensitive,u.wordsOnly),e(u.node,o))}}(window.document),l=function(){"use strict";function i(i){var u=this,e,o,s,h;if(i=i||{},i.input||n.error("input is missing"),e=t.bind(this._onBlur,this),o=t.bind(this._onFocus,this),s=t.bind(this._onKeydown,this),h=t.bind(this._onInput,this),this.$hint=n(i.hint),this.$input=n(i.input).on("blur.tt",e).on("focus.tt",o).on("keydown.tt",s),this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop),t.isMsie())this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){r[n.which||n.keyCode]||t.defer(t.bind(u._onInput,u,n))});else this.$input.on("input.tt",h);this.query=this.$input.val();this.$overflowHelper=f(this.$input)}function f(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function u(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var r;return r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return(n||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,e,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(n){var t=r[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(n,t){var i,r,f;switch(n){case"tab":r=this.getHint();f=this.getInputValue();i=r&&r!==f&&!u(t);break;case"up":case"down":i=!u(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!u(t);break;default:i=!0}return i},_checkInputValue:function(){var n,t,i;n=this.getInputValue();t=o(n,this.query);i=t?this.query.length!==n.length:!1;this.query=n;t?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.trigger("focus")},blur:function(){this.$input.trigger("blur")},getQuery:function(){return this.query},setQuery:function(n){this.query=n},getInputValue:function(){return this.$input.val()},setInputValue:function(n,t){this.$input.val(n);t?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&t.indexOf(n)===0;r=n!==""&&i&&!this.hasOverflow();r||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$hint=this.$input=this.$overflowHelper=null}}),i}(),u=function(){"use strict";function u(i){i=i||{};i.templates=i.templates||{};i.source||n.error("missing source");i.name&&!a(i.name)&&n.error("invalid dataset name: "+i.name);this.query=null;this.highlight=!!i.highlight;this.name=i.name||t.getUniqueId();this.source=i.source;this.displayFn=h(i.display||i.displayKey);this.templates=l(i.templates,this.displayFn);this.$el=n(r.dataset.replace("%CLASS%",this.name))}function h(n){function i(t){return t[n]}return n=n||"value",t.isFunction(n)?n:i}function l(i,r){function u(t){return n(".job-search-hero-block").is(":visible")?"<a class='suggestion-item'>"+r(t)+"<\/a>":n(".redesign-search-page .search-hero-keywords").is(":focus")?"<p><strong>"+r(t)+"<\/strong><\/p>":n(".reinvent-locations-hero-module .reinvent-location-keywords").is(":focus")?"<p><strong>"+r(t)+"<\/strong><\/p>":"<p>"+r(t)+"<\/p>"}return{empty:i.empty&&t.templatify(i.empty),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}function a(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var f="ttDataset",o="ttValue",s="ttDatum";return u.extractDatasetName=function(t){return n(t).data(f)},u.extractValue=function(t){return n(t).data(o)},u.extractDatum=function(t){return n(t).data(s)},t.mixin(u.prototype,e,{_render:function(u,e){function y(){return h.templates.empty({query:u,isEmpty:!0})}function p(){function v(t){var u;return u=n(r.suggestion).append(h.templates.suggestion(t)).data(f,h.name).data(o,h.displayFn(t)).data(s,t),u.children().each(function(){n(this).css(i.suggestionChild)}),u}var l,a;return l=n(r.suggestions).css(i.suggestions),a=t.map(e,v),l.append.apply(l,a),n(".redesign-search-page .search-hero-keywords").is(":focus")||n(".job-search-hero-block .search-bar").is(":focus")||n(".reinvent-locations-hero-module .reinvent-location-keywords").is(":focus")?h.highlight&&c({className:"tt-highlight corporate-regular",node:l[0],pattern:u}):h.highlight&&c({className:"tt-highlight",node:l[0],pattern:u}),l}function a(){return h.templates.header({query:u,isEmpty:!l})}function v(){return h.templates.footer({query:u,isEmpty:!l})}if(this.$el){var h=this,l;this.$el.empty();l=e&&e.length;!l&&this.templates.empty?this.$el.html(y()).prepend(h.templates.header?a():null).append(h.templates.footer?v():null):l&&this.$el.html(p()).prepend(h.templates.header?a():null).append(h.templates.footer?v():null);this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(n){function i(i){t.canceled||n!==t.query||t._render(n,i)}var t=this;this.query=n;this.canceled=!1;this.source(n,i)},cancel:function(){this.canceled=!0},clear:function(){this.cancel();this.$el.empty();this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),u}(),w=function(){"use strict";function r(i){var r=this,u,e,o;i=i||{};i.menu||n.error("menu is required");this.isOpen=!1;this.isEmpty=!0;this.datasets=t.map(i.datasets,f);u=t.bind(this._onSuggestionClick,this);e=t.bind(this._onSuggestionMouseEnter,this);o=t.bind(this._onSuggestionMouseLeave,this);this.$menu=n(i.menu).on("click.tt",".tt-suggestion",u).on("mouseenter.tt",".tt-suggestion",e).on("mouseleave.tt",".tt-suggestion",o);t.each(this.datasets,function(n){r.$menu.append(n.getRoot());n.onSync("rendered",r._onRendered,r)})}function f(n){return new u(n)}return t.mixin(r.prototype,e,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",n(t.currentTarget))},_onSuggestionMouseEnter:function(t){this._removeCursor();this._setCursor(n(t.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function n(n){return n.isEmpty()}this.isEmpty=t.every(this.datasets,n);this.isEmpty?this._hide():this.isOpen&&this._show();this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){var r,i,t;if(this.$menu.css("display","block"),n(".reinvent-location-keywords").length===0)if(n(".redesign-search-page .tt-suggestions").is(":visible")){if(r=n("#search-form-label.search-hero-keywords.autocomplete-search-field").attr("data-view-all-results-toggle")!==null&&typeof n("#search-form-label.search-hero-keywords.autocomplete-search-field").attr("data-view-all-results-toggle")!="undefined"?n("#search-form-label.search-hero-keywords.autocomplete-search-field").attr("data-view-all-results-toggle").toLowerCase():"",r==="true"){var o=n(".redesign-search-page .tt-input.search-hero-keywords").val(),u=".tt-suggestion.view-all-text-container",s=n(".search-hero-keywords").attr("data-view-all-results"),f=n(".tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion .view-all-text"),e=n(".tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion .arrow-strong");jQuery("<li/>",{"class":"tt-suggestion view-all-text-container"}).appendTo(".redesign-search-page .tt-dataset-keywordSuggestions .tt-suggestions");jQuery("<p/>",{"class":"view-all-container"}).appendTo(u);jQuery("<a/>",{"class":"view-all-text cta d-inline corporate-regular",html:s}).appendTo(".tt-suggestion.view-all-text-container .view-all-container");jQuery("<a/>",{"class":"arrow-strong cta-arrow corporate-regular"}).appendTo(".tt-suggestion.view-all-text-container .view-all-container");n(u).attr("data-attribute-view-all-keyword",o);f.attr("data-analytics-link-name",n(".tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion .view-all-text").text().toLowerCase());f.attr("data-analytics-content-type","search activity");e.attr("data-analytics-link-name",n(".tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion .view-all-text").text().toLowerCase());e.attr("data-analytics-content-type","search activity")}}else if(n(".job-search-hero-block-form .tt-suggestions").is(":visible")&&n(".job-search-hero-block .tt-dataset-keywordSuggestions .tt-suggestions").is(":visible"))for(i=n(".job-search-hero-block .tt-suggestions .tt-suggestion .suggestion-item"),t=0;t<i.length;t++)i[t].setAttribute("data-analytics-link-name",i[t].innerText.toLowerCase()),i[t].setAttribute("data-analytics-content-type","careers job search")},_getSuggestions:function(){n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").on("mouseenter",function(){n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").removeAttr("id","selectedOption");n(this).addClass("selected")}).on("mouseleave",function(){n(this).removeClass("selected")});return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(n,t){n.first().addClass("tt-cursor");t||this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(t){if(!n(".redesign-search-page .tt-dataset-keywordRecentSearches").is(":visible")&&!n(".job-search-hero-block .tt-dataset-keywordRecentSearches").is(":visible")){var r,u,i,f;if(!this.isOpen)return;if(u=this._getCursor(),r=this._getSuggestions(),this._removeCursor(),i=r.index(u)+t,i=(i+1)%(r.length+1)-1,i===-1){this.trigger("cursorRemoved");return}i<-1&&(i=r.length-1);this._setCursor(f=r.eq(i));this._ensureVisible(f)}},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$menu.scrollTop();u=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10);t<0?this.$menu.scrollTop(r+t):u<i&&this.$menu.scrollTop(r+(i-u))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(n){this.$menu.css(n==="ltr"?i.ltr:i.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var h=null,o="",i="",s,r,e;if(t.length){for(h={raw:u.extractDatum(t),value:u.extractValue(t),datasetName:u.extractDatasetName(t)},s=n(".search-hero-form .tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion p"),s.attr("data-analytics-content-type","search activity"),r=0;r<n(".search-hero-form .tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion p").length;r++)o=s[r].innerText,i=s[r],i.setAttribute("data-analytics-link-name",o.toLowerCase());if(n(".reinvent-location-hero-content-container").length!==0){var f=n(".reinvent-location-hero-content-container .tt-dataset-keywordSuggestions .tt-suggestions .tt-suggestion p"),l=n(".reinvent-location-result-area"),c=n(".reinvent-locations-hero-module");for(f.attr("data-analytics-content-type","engagement"),f.attr("data-linktype","engagement"),e=0;e<f.length;e++)o=f[e].innerText,i=f[e],i.setAttribute("data-analytics-link-name",o.toLowerCase()),l.length===0&&c.attr("data-attribute-hero-home-link")!==""&&i.setAttribute("href",c.attr("data-attribute-hero-home-link").replace("{0}",siteName))}}return h},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(n){function i(t){t.update(n)}t.each(this.datasets,i)},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function n(n){n.destroy()}this.$menu.off(".tt");this.$menu=null;t.each(this.datasets,n)}}),r}(),b=function(){"use strict";function f(i){var r,u,f;i=i||{};i.input||n.error("missing input");this.isActivated=!1;this.autoselect=!!i.autoselect;this.minLength=t.isNumber(i.minLength)?i.minLength:1;this.$node=e(i.input,i.withHint);r=this.$node.find(".tt-dropdown-menu");u=this.$node.find(".tt-input");f=this.$node.find(".tt-hint");u.on("blur.tt",function(n){var i,f,e;i=document.activeElement;f=r.is(i);e=r.has(i).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){u.trigger("focus")}))});r.on("mousedown.tt",function(n){n.preventDefault()});this.eventBus=i.eventBus||new h({el:u});this.dropdown=new w({menu:r,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this);this.input=new l({input:u,hint:f}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this);this._setLanguageDirection()}function e(t,f){var e,h,c,s;e=n(t);h=n(r.wrapper).css(i.wrapper);c=n(r.dropdown).css(i.dropdown);s=e.clone().css(i.hint).css(o(e));s.val("").removeData().addClass("tt-hint").prop("readonly",!0).prop("required",!1).removeAttr("name placeholder").attr({autocomplete:"off",spellcheck:"false",id:"search-form-clone"});e.data(u,{dir:e.attr("dir"),autocomplete:e.attr("autocomplete"),spellcheck:e.attr("spellcheck"),style:e.attr("style")});e.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(f?i.input:i.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return e.wrap(h).parent().prepend(f?s:null).append(c)}function o(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function s(n){var i=n.find(".tt-input");t.each(i.data(u),function(n,r){t.isUndefined(n)?i.prop(r,!1):i.attr(r,n)});i.detach().removeData(u).removeClass("tt-input").insertAfter(n);n.remove()}var u="ttAttrs";return t.mixin(f.prototype,{_onSuggestionClicked:function(n,t){var i;(i=this.dropdown.getDatumForSuggestion(t))&&this._select(i)},_onCursorMoved:function(){var n=this.dropdown.getDatumForCursor();this.input.setInputValue(n.value,!0);this.eventBus.trigger("cursorchanged",n.raw,n.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue();this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint();this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint();this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0;this.dropdown.open()},_onBlurred:function(){this.isActivated=!1;this.dropdown.empty();this.dropdown.close()},_onEnterKeyed:function(n,t){var i,r;i=this.dropdown.getDatumForCursor();r=this.dropdown.getDatumForTopSuggestion();i?(this._select(i),t.preventDefault()):this.autoselect&&r&&(this._select(r),t.preventDefault())},_onTabKeyed:function(n,t){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close();this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp();this.dropdown.open();n(".tt-suggestion.view-all-text-container").length>1&&n(".tt-suggestion.view-all-text-container")[0].remove()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown();this.dropdown.open();n(".tt-suggestion.view-all-text-container").length>1&&n(".tt-suggestion.view-all-text-container")[0].remove()},_onLeftKeyed:function(){this.dir==="rtl"&&this._autocomplete()},_onRightKeyed:function(){n(".redesign-search-page .search-hero-keywords").is(":focus")||n(".job-search-hero-block .search-bar").is(":focus")||this.dir==="ltr"&&this._autocomplete()},_onQueryChanged:function(n,t){this.input.clearHintIfInvalid();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty();this.dropdown.open();this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint();this.dropdown.open()},_setLanguageDirection:function(){var n;this.dir!==(n=this.input.getLanguageDirection())&&(this.dir=n,this.$node.css("direction",n),this.dropdown.setLanguageDirection(n))},_updateHint:function(){var i,r,f,e,o,u;i=this.dropdown.getDatumForTopSuggestion();n(".redesign-search-page .search-hero-keywords").is(":focus")||n(".job-search-hero-block .search-bar").is(":focus")||(i&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(r=this.input.getInputValue(),f=l.normalizeQuery(r),e=t.escapeRegExChars(f),o=new RegExp("^(?:"+e+")(.+$)","i"),u=o.exec(i.value),u?this.input.setHint(r+u[1]):this.input.clearHint()):this.input.clearHint())},_autocomplete:function(n){var i,r,u,t;i=this.input.getHint();r=this.input.getQuery();u=n||this.input.isCursorAtEnd();i&&r!==i&&u&&(t=this.dropdown.getDatumForTopSuggestion(),t&&this.input.setInputValue(t.value),this.eventBus.trigger("autocompleted",t.raw,t.datasetName))},_select:function(n){this.input.setQuery(n.value);this.input.setInputValue(n.value,!0);this._setLanguageDirection();this.eventBus.trigger("selected",n.raw,n.datasetName);this.dropdown.close();t.defer(t.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(n){n=t.toStr(n);this.isActivated?this.input.setInputValue(n):(this.input.setQuery(n),this.input.setInputValue(n,!0));this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy();this.dropdown.destroy();s(this.$node);this.$node=null}}),f}();(function(){"use strict";var u,i,r;u=n.fn.typeahead;i="ttTypeahead";r={initialize:function(r,u){function f(){var f=n(this),o,e;t.each(u,function(n){n.highlight=!!r.highlight});e=new b({input:f,eventBus:o=new h({el:f}),withHint:t.isUndefined(r.hint)?!0:!!r.hint,minLength:r.minLength,autoselect:r.autoselect,datasets:u});f.data(i,e)}return u=t.isArray(u)?u:[].slice.call(arguments,1),r=r||{},this.each(f)},open:function(){function t(){var r=n(this),t;(t=r.data(i))&&t.open()}return this.each(t)},close:function(){function t(){var r=n(this),t;(t=r.data(i))&&t.close()}return this.each(t)},val:function(t){function r(){var u=n(this),r;(r=u.data(i))&&r.setVal(t)}function u(n){var t,r;return(t=n.data(i))&&(r=t.getVal()),r}return arguments.length?this.each(r):u(this.first())},destroy:function(){function t(){var t=n(this),r;(r=t.data(i))&&(r.destroy(),t.removeData(i))}return this.each(t)}};n.fn.typeahead=function(t){var u;return r[t]&&t!=="initialize"?(u=this.filter(function(){return!!n(this).data(i)}),r[t].apply(u,[].slice.call(arguments,1))):r.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=u,this}})()}(window.jQuery);ComponentRegistry.SignIn&&$("#sectionSignInPage").length&&$(function(){var n,t;$("#sectionSignInPage").is(":visible")&&(n="/Authentication/LogOnModal",$("#sign-in-data").data("is-onboarding")==="True"&&(n=n+"?onb=1"),dataModel&&dataModel.enableLaunch&&(t=n.indexOf("?")>-1?"&":"?",n=n+t+"adobelaunch=1"),$("#sectionSignInPage").append('<iframe id="ADFSLogOnModal" src="'+n+'" title="Login credentials" scrolling="no"><\/iframe>'))});$(function(){if(processJobPortalLinks(),processSignOutLandingPageLinks(),popoverInitialize(),window.console||(window.console={log:function(){}}),window.addEventListener?(window.addEventListener("message",redirectToLandingPage),window.addEventListener("message",redirectToForgotPasswordPage),window.addEventListener("message",redirectGetTranslations),window.addEventListener("message",redirectGetPageStyles)):(window.attachEvent("onmessage",redirectToLandingPage),window.attachEvent("onmessage",redirectToForgotPasswordPage),window.attachEvent("onmessage",redirectGetTranslations),window.attachEvent("onmessage",redirectGetPageStyles)),$("#loginPopoverContent").length){$("#sign-in-link").on("click",function(){var n=$("#SignInLinksPopOver"),t=$("#sign-in-link"),i=$("#signInClose");PopOverContent();$(".popover-content").attr("tabindex",0);$("#signInClose").on("keypress",function(n){var t=$("#sign-in-link");n.which==13&&(t.trigger("click"),n.preventDefault(),t.trigger("focus"))});$("#linkedinButton").on("keydown",function(n){n.which==9&&$(".popover.fade.bottom").hasClass("in")&&(n.preventDefault(),$(this).is(":focus")&&$(".popover-content").trigger("focus"))});$("#sectionSignInPage").find("iframe").first().length==0&&$("#sectionSignInPage").append('<iframe id="ADFSLogOnModal" src="/Authentication/LogOnModal" title="Login credentials" scrolling="no"><\/iframe>');$(".modal-open").length>0||$("body").hasClass("sign-in-open")?$("body").removeClass("modal-open").removeClass("sign-in-open"):$("body").hasClass("sign-in-open")||$("body").addClass("modal-open").addClass("sign-in-open");DisableCurrentLoginPopoverItem();n.on("keydown",function(n){n.which==27&&(i.trigger("click"),t.trigger("focus"))})});$("#sign-in-link").on("keypress",function(n){n.which==13&&$(this).trigger("click")});$(".language-icon").on("keypress",function(n){n.which==13&&$(".language-icon").trigger("click")});$("#btnMainMenu").on("keydown",function(n){n.which==9&&$(".popover.fade.bottom").hasClass("in")&&(n.preventDefault(),$(this).is(":focus")&&$("#signInClose").trigger("focus"))})}triggerSignInPopup();$("#sign-in-data").data("is-onboarding")==="True"&&($('span[id^="footer-contacts"]').remove(),$(".social").remove());var n=window.navigator.userAgent.indexOf("MSIE ")>0||!!navigator.userAgent.match(/Trident.*rv\:11\./),t=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0;(document.referrer.indexOf("linkedin.com")>-1||document.referrer.indexOf("xing.com")>-1||$("#navUserDisplayUserName").text()&&(n||t))&&(dropSocialAnalyticsCookie(),dropOmnitureCookie())});$(window).on("resize",function(){PopOverContent();adjustLoginPopoverPosition()});if(window.addEventListener("message",setIframeSatTrackCookie),$imageIcon=$("img.language-icon"),currentCountryName=$imageIcon.attr("title"),(ComponentRegistry.FooterModule||ComponentRegistry.NavigationModule)&&$(function(){if(typeof Storage!="undefined"&&sessionStorage.length>0){var n=JSON.parse(sessionStorage.getItem("data"));n!=null?updateGeoElements(n):GetLocationInfo()}else GetLocationInfo()}),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(i){return n.SearchHeroModule=t(i)}):(n.SearchHeroModule=t(n.jQuery,n.jsUtility),ComponentRegistry.SearchHeroModule&&$(function(){SearchHeroModule.Init()}))}(typeof self!="undefined"?self:this,function(n){var ai=null,t=null,vi=null,vu="",lf="",f="",e="",ht="",af="",pe="",we="",vf="",pr=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,hr=!0,u=0,yi=0,st="recent_searches",bt=localStorage.getItem(st)?JSON.parse(localStorage.getItem(st)):[],be=n("#search-redesign-templates").length>0?n("#search-redesign-templates").data("hidden-redesign-templates").split("|"):null,r=n(".search-hero-form .search-hero-keywords"),yf=n(".search-results-area"),kt=n(".search-results-block .reinvent-pagination"),wr=kt.find(".reinvent-pagination-previous-container .prev-page-btn"),br=kt.find(".reinvent-pagination-next-container .next-page-btn"),dt=kt.find(".pagination-numbers"),ph=dt.find(".page-num"),s=1,rt=1,tt=null,w=null,gt=null,ni=null,ti=0,ii=0,cr=null,yu=!1,pi=!1,wi=!1,kr=!1,pu=!0,ri=!0,pf=null,ui=null,bi=null,a=n(".redesign-search-filters-container"),at=a.find(".search-filter-panel"),ut=a.find(".redesign-sort"),dr=a.find(".reinvent-filter-by"),l=a.find(".reinvent-filter-results"),ki=a.find("#reinvent-filter-most-relevant"),di=a.find("#reinvent-filter-most-recent"),wf=a.find(".reinvent-filter-footer"),gr=a.find(".reinvent-apply-filter-button"),wu=a.find(".reinvent-close-filter-button"),ke=a.find("div.dropdown-menu.dropdown-list"),et=a.find(".modal"),it=a.find("#reinvent-filter-list"),gi=l.is(":visible"),fi=0,nr=[],lr=[],nu="",tr=n(".search-results-block"),ir=!1,ar=n(".no-results-container"),ei=n(".search-results-block .popular-searches-container"),de=n(".search-results-block .search-tips-container"),bu=n(".search-results-block .redesign-line-bar"),b=null,ku=!1,bf=!1,ge="",no="",rr=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o="",g=1024,to="",ct="",vr="",oi="",tu="",iu="",ru="",io="",vt="",yt="",kf="",uu="",fu="",pt="",ot="",df="",nt=[],ft=[],eu="",gf="",k="",p=function(n){return n?n.replace(/\\/gi,"\\\\").replace(/'/g,"\\'").replace(/"/g,'\\"'):n},wh=function(){var r=0,i=du(),f=localStorage.getItem("ViewAllAttributes"),u=JSON.parse(f);u!=null&&(ir=u.ViewAllClickTriggeredRedesignSERP);(i===null||i==="")&&(i="us-en");vu="search_settings_"+i;lf="autocomplete_keywords_"+i;ai=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace("value"),queryTokenizer:Bloodhound.tokenizers.whitespace,local:[]});ai.initialize();typeof Storage!="undefined"&&(t=JSON.parse(sessionStorage.getItem(vu)),vi=JSON.parse(sessionStorage.getItem(lf)));t===null&&c(!1,"searchsettings.search");vi===null?c(!0,"suggestion.search","",1):ne();t!==null&&t.componentsettings!==null?(ai.limit=t.componentsettings.maximumsuggestion,r=t.componentsettings.minimumkeywordlength,we=t.componentsettings.showsuggestedterm):r=0;"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});ir===!0&&(ah(),yf.addClass("prefiltered"));n("body").addClass("serp-redesign-body");ro();uo();fo(r);es();hi();ds();oc();fc();ec();cs();ur();ye()},ur=function(){(function(n){n.URLSearchParams=n.URLSearchParams||function(n){var t=this;t.searchString=n;t.get=function(n){var i=new RegExp("[?&]"+n+"=([^&#]*)").exec(t.searchString);return i===null?null:decodeURIComponent(i[1])||0}}})(window)},ro=function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{enumerable:!1,value:function(n){var t=this.filter(function(t){return t==n});return t.length>0}})},uo=function(){(function(n){n.forEach(function(n){n.hasOwnProperty("append")||Object.defineProperty(n,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();t.forEach(function(t){var i=t instanceof Node;n.appendChild(i?argItem:document.createTextNode(String(t)))});this.appendChild(n)}})})})([Element.prototype,Document.prototype,DocumentFragment.prototype])},bh=function(){var t=n(".highlighted-topic-container .highlighted-topic-section .featured-article-image");IsIE()&&(Modernizr.objectfit||t.each(function(){var u=0,i,r;identifyWidth=t.width();u=t.width();i=n(this);r=i.find("img").prop("src");r&&i.css("backgroundImage","url("+r+")").css("width","identifyWidth").css("height","identifyHeight").addClass("compat-object-fit")}))},ne=function(){vi.length>0&&(ai.local=n.map(vi,function(n){return{value:n}}),ai.initialize(!0))},du=function(){var n=window.location.pathname,t;return typeof searchHeroCountrySite!="undefined"?n=searchHeroCountrySite:(t=n.split("/"),n=t[1]),n},te=function(n){return n===null||n===""?"/us-en/":"/"+n+"/"},fo=function(t){r.typeahead({hint:!0,highlight:!0,minLength:t},{name:"keywordSuggestions",displayKey:"value",source:ai.ttAdapter()});r.on("typeahead:selected",function(t,i){var e;ht=n(".tt-suggestion.view-all-text-container").attr("data-attribute-view-all-keyword");var u=event.keyCode,r=n(".search-hero-form .btn"),o=n(".search-results-block");o.trigger("focus");r.attr("tabindex","-1");typeof i=="undefined"?eo(u,r,ht):h(f).toLowerCase()!==i.value.toLowerCase()&&(e=i.value,oo(u,r,e))});r.on("typeahead:cursorchanged",function(){var t=n(".redesign-search-page .tt-dataset-keywordSuggestions");n(".tt-suggestion.view-all-text-container").hasClass("tt-cursor")&&r.typeahead("val",n(".tt-suggestion.view-all-text-container").attr("data-attribute-view-all-keyword"));t.scrollTop(0);t.scrollTop(n(".tt-cursor").first().offset().top-t.height())})},si=function(){ft=[];nt=[]},eo=function(n,t,i){n===9?(r.typeahead("val",h(i)),t.trigger("focus")):(h(f)!==h(i)?(r.typeahead("val",h(i)),lt(),fr(h(i)),hi(),rf(),s=1,u=0,si(),y("srk",v(i),"pg",s,"sb",u,"filter","")):r.typeahead("val",h(i)),rr||r.trigger("blur"),er(),or())},oo=function(n,t,i){si();n===9?(r.typeahead("val",h(i)),t.trigger("focus")):(s=1,u=0,y("srk",v(i),"pg",1,"sb",u,"filter",""),ou(),nf(),tr.trigger("focus"),er(),or(),su(i),bt.push(h(i)),localStorage.setItem(st,JSON.stringify(bt)),rf())},so=function(t,i){var a,o,r,f;if(i<=tt)return kt.addClass("hide"),!1;var p="...",y="searchresultsblock",e="",l="";dt.empty();kt.removeClass("hide");wr.removeClass("disabled");br.removeClass("disabled");wr.removeAttr("aria-disabled");br.removeAttr("aria-disabled");s==1&&(wr.addClass("disabled"),wr.attr("aria-disabled","true"));s==t&&(br.addClass("disabled"),br.attr("aria-disabled","true"));a=n(".pagination-dropdown");a.empty();var k=a.data("pagexy"),w=n(".pagination-dropdown-text");for(w.text(k.replace("{0}",s).replace("{1}",t)),w.append("<span class='ion-chevron-down hidden-md hidden-sm hidden-lg'><\/span>"),o=1;o<t+1;o++)r=document.createElement("option"),r.value=o,r.innerHTML=r.value,r.setAttribute("data-linkcomponentname","searchresultsblock-pagination"),r.setAttribute("data-linktype","search"),r.setAttribute("data-analytics-content-type","search"),r.setAttribute("data-linkpagesection","searchresultsblock"),r.setAttribute("data-analytics-link-name",o),o==s&&r.setAttribute("selected",!0),a.append(r);var u=1,v=4,h=u,c=t,b;for(t>7&&(s<=v?(h=u,c=u+v):s>=t+u-v?(c=t,h=t-v):(c=parseInt(s)+u,h=parseInt(s)-u)),h>u&&(e='<a href="javascript:void(0)" class="page-num" data-linkcomponentname="'+y+'" data-linktype="search" data-analytics-content-type="search" aria-label="page '+u+'" data-analytics-link-name="'+u+'">'+u+"<\/a>",dt.append(e),dt.append("<div class='page-num'>"+p+"<\/div>")),f=h;f<=c;f++)l=f==s?"current":"",b=l?'aria-current="page"':"",e='<a href="javascript:void(0)" class="page-num '+l+'" data-linkcomponentname="'+y+'" data-linktype="search" data-analytics-content-type="search" aria-label="page '+f+'"'+b+' data-analytics-link-name="'+f+'">'+f+"<\/a>",dt.append(e);c<t&&(dt.append("<div class='page-num'>"+p+"<\/div>"),e='<a href="javascript:void(0)" class="page-num '+l+'" data-linkcomponentname="'+y+'" data-linktype="search" data-analytics-content-type="search" aria-label="page '+t+'" data-analytics-link-name="'+t+'">'+t+"<\/a>",dt.append(e));s>t?kt.hide():kt.show()},ho=function(n){return n.featuredimage.Path.indexOf("~")===-1?n.featuredimage.Path.replace("/sitecore/shell/","~"):n.featuredimage.Path.replace("/sitecore/shell/"," ").trim()},co=function(t,i,r){if(t.highlightedtopicheaderurl.Url!==null){jQuery("<a/>",{"class":"featured-image-cta",href:t.highlightedtopicheaderurl.Url}).appendTo(".highlighted-topic-container .highlighted-topic-section .featured-article-image");var u=n(".highlighted-topic-container .highlighted-topic-section .featured-article-image .featured-image-cta");u.attr("tabindex","-1");jQuery("<img/>",{"class":"highlighted-topic-image",src:i}).appendTo(".highlighted-topic-container .highlighted-topic-section .featured-article-image .featured-image-cta");t.featuredimage.Alt!==null&&t.featuredimage.Alt!==""?u.attr("data-analytics-link-name",t.featuredimage.Alt):u.attr("data-analytics-link-name",t.highlightedtopicheader);u.attr("data-analytics-content-type","featured search");n(".highlighted-topic-container .highlighted-topic-section .featured-article-image .featured-image-cta .highlighted-topic-image").attr("alt",t.featuredimage.Alt)}else jQuery("<img/>",{"class":"highlighted-topic-image",src:i}).appendTo(".highlighted-topic-container .highlighted-topic-section .featured-article-image"),n(".highlighted-topic-container .highlighted-topic-section .featured-article-image .highlighted-topic-image").attr("alt"," ");r.addClass("col-lg-2 col-md-2 col-sm-2 col-xs-12");r.addClass("featured-image-resize")},lo=function(t,i,r){if(t.highlightedtopicheaderurl.Url!==null){r.text("");r.addClass("section-title");jQuery("<a/>",{href:t.highlightedtopicheaderurl.Url,html:t.highlightedtopicheader,"class":"cta","aria-describedby":"highlighted-topic-desc-id"}).appendTo(r);var u=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-content .featured-article-header .cta"),f=dh(n(".read-more-aria-label").attr("data-attribute-vague-text"),n(".read-more-aria-label").attr("data-attribute-read-more"),t.highlightedtopicheader);u.attr("data-analytics-link-name",t.highlightedtopicheader);u.attr("data-analytics-content-type","featured search");i.attr("href",t.highlightedtopicheaderurl.Url);i.attr("data-analytics-link-name",f);i.attr("data-analytics-content-type","featured search");i.attr("aria-label",f);i.attr("data-original-title",function(){return t.highlightedtopicheaderurl.Title});i.show()}else r.removeClass("section-title"),r.html(String(t.highlightedtopicheader)),i.attr("aria-label","read more about featured search article"),i.attr("data-original-title"),i.attr("data-analytics-link-name"),i.attr("data-analytics-content-type"),i.hide()},ao=function(t,i){t.highlightedeventregisterurl.Url?(n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-register").attr("href",t.highlightedeventregisterurl.Url),i.attr("data-original-title",function(){return t.highlightedeventregisterurl.Title}),i.attr("data-analytics-content-type","featured search"),i.attr("data-analytics-module-name","searchresultsblock"),i.attr("data-linkcomponentname","searchresultsblock"),i.show()):i.hide()},kh=function(n,t){jQuery("<p/>",{"class":"featured-desc fluid dot-ellipsis",html:n.highlightedtopicdescription,id:"highlighted-topic-desc-id"}).appendTo(t)},vo=function(t){var w=n(".highlighted-topic-container .highlighted-topic-section .featured-article-image"),l=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-desc"),b=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-content .featured-article-header"),k=n(".highlighted-topic-container .highlighted-topic-section .highlghted-topic-readmore"),ht=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-register"),lt=n(".highlighted-topic-area"),d=null,at=n(".highlighted-topic-featured"),h,i,r,p,et,ct,ot,s,u,f,c,st;if(t!==null||t!==0){t.highlightedeventitem!=null&&(t.highlightedtopicheader||(t.highlightedtopicheader=t.highlightedeventitem.eventname),t.highlightedtopicdescription||(t.highlightedtopicdescription=t.highlightedeventitem.eventdescription),t.highlightedeventregisterurl.Url||(t.highlightedeventregisterurl.Url=t.highlightedeventitem.registerlink));at.show();t.featuredimage!==null?(d=ho(t,d),co(t,d,w)):(w.removeClass("col-lg-2 col-md-2 col-sm-2 col-xs-12"),k.addClass("readmore-without-image"),k.removeClass("readmore-with-image"),w.removeClass("featured-image-resize"));t.highlightedtopicheader!==null?(lo(t,k,b),b.show()):b.hide();t.highlightedeventregisterurl!=null?ao(t,ht):ht.hide();l.empty();t.highlightedtopicdescription!==null?(kh(t,l),l.show()):l.hide();bh();(parseInt(o.get("pg"))===1||o.get("pg")===""||o.get("pg")===null)&&lt.show();n(".highlighted-topic-panel-container").remove();h=document.createElement("div");h.setAttribute("class","highlighted-topic-panel-container col-sm-12");h.setAttribute("aria-live","off");var a=0,g=0,nt="";for(i=0;i<t.highlightedsubtopics.length;i++){nt=a==0?"first":"";var e=t.highlightedsubtopics[i],v=document.createElement("div"),tt=document.createElement("div"),it=document.createElement("div"),rt=document.createElement("div"),ut=document.createElement("div"),ft=t.highlightedsubtopics[i].highlightedtopicheaderwidth==0?12:t.highlightedsubtopics[i].highlightedtopicheaderwidth,y=t.highlightedsubtopics[i].highlightedtopicitemwidth==0?4:t.highlightedsubtopics[i].highlightedtopicitemwidth;if(g+=ft,g==12&&(nt="last",g=0),v.setAttribute("class","highlighted-topic-panel-subcontainer"),tt.setAttribute("class","highlighted-topic-panel col-sm-"+ft+" col-xs-12 "+nt),a+=ft,i+1<t.highlightedsubtopics.length&&a+t.highlightedsubtopics[i+1].highlightedtopicheaderwidth<=12||(a=0),highlightedTopicHeaderLinkName="",!0&&typeof e.highlightedtopicheader!="undefined"&&(highlightedTopicHeaderLinkName=e.highlightedtopicheader.toLowerCase().trim()),n(v).append(it),n(tt).append(v),rt.setAttribute("class","bg-color-lighter-gray"),ut.setAttribute("class","panel-body"),n(rt).append(ut),r=t.highlightedsubtopics[i].highlightedtopicitems,e.subtopics.length>0)for(u=0;u<t.highlightedsubtopics[i].subtopics.length;u++)if(t.highlightedsubtopics[i].subtopics[u].highlightedtopicitems.length>0)for(p=0;p<t.highlightedsubtopics[i].subtopics[u].highlightedtopicitems.length;p++)r.push(t.highlightedsubtopics[i].subtopics[u].highlightedtopicitems[p]);for(r=t.highlightedsubtopics[i].highlightedtopicitems.sort(function(n,t){return n.sort?t.sort?n.sort==t.sort?0:n.sort<t.sort?-1:1:-1:1}),et=3,12%y==0&&y>2&&(et=12/y),ct=t.highlightedsubtopics[i].maximumtopicitempertopicheader==0?r.length:t.highlightedsubtopics[i].maximumtopicitempertopicheader,r=r.filter(function(n){return n.highlightedtopicitemlink!=null}),r.length>0&&(e.highlightedtopicheader!==null&&e.highlightedtopicheader!==""?n(it).append("<a data-linktype='customized - search topic details' data-analytics-content-type='customized - search topic details' data-analytics-link-name='"+highlightedTopicHeaderLinkName+"'><h3 class='eyebrow-title'>"+e.highlightedtopicheader.toUpperCase()+"<\/h3><\/a>"):n(it).append("<a data-linktype='customized - search topic details' data-analytics-content-type='customized - search topic details' data-analytics-link-name='customized - search topic details'><\/a>"),n(h).append(tt)),r=r.slice(0,ct),r=r.sort(function(n,t){return n.highlightedtopicitemtitle.localeCompare(t.highlightedtopicitemtitle)}),ot=Math.ceil(r.length/et),s=0,u=0;u<r.length;u++)s++,f=r[u],s==1&&(c=document.createElement("div"),c.setAttribute("class","col-sm-"+y+" col-xs-12 collapse-filter")),st="",!0&&typeof f.highlightedtopicitemtitle!="undefined"&&(st=f.highlightedtopicitemtitle.toLowerCase().trim()),f.highlightedtopicitemlink!=null&&n.trim(f.highlightedtopicitemlink)!=""?n(c).append("<div class='suggested-topic'><a class='fluid' href='"+f.highlightedtopicitemlink+"'data-name='asset' data-linktype='related search' data-analytics-content-type='related search' data-linkcomponentname='searchresultsblock' data-analytics-module-name='searchresultsblock' data-analytics-link-name='"+st+"' data-rel='"+f.sitecoreitemid+"'>"+f.highlightedtopicitemtitle+"<\/a><\/div>"):n(c).append("<p class='suggested-topic'>"+f.highlightedtopicitemtitle+"<\/p>"),s<=ot&&(n(ut).append(c),s==ot&&(s=0));n(v).append(rt)}n(".highlighted-topic-section").append(h);highlightedtopicitemsquery=!0;parseInt(o.get("pg"))===1||o.get("pg")===""||o.get("pg")===null?n(".highlighted-topic-container").show():n(".highlighted-topic-area").hide();re()}else n(".highlighted-topic-container").hide(),n(".search-results-block .highlighted-topic-container").empty()},yo=function(n){jQuery("<div/>",{"class":"col-sm-12 search-results-"+n}).appendTo(".search-results-section");jQuery("<hr/>",{"class":"all-results-line-bar"}).appendTo(".search-results-"+n);jQuery("<div/>",{"class":"search-results-header col-sm-8 col-md-12"}).appendTo(".search-results-"+n);jQuery("<div/>",{"class":"search-results-content col-sm-8 col-md-12"}).appendTo(".search-results-"+n)},po=function(n,t,i,r){for(var u=0;u<r.all_contenttype.length;u++)if(t.indexOf(i[u].name)>-1){jQuery("<p/>",{"class":"category dotdot content-title fluid",html:i[u].name.toUpperCase()}).appendTo(n);break}},wo=function(i,r,u){var o=t.componentsettings.showcontentdate,f=n(".search-results-"+i+" .date"),s=n(".search-results-"+i+" .category"),h=r.branchtemplate,e=!1;(o!==null&&!o||r.all_contentdate!==null&&r.all_contentdate.ishidden)&&(e=!0);be!==null&&h!==null&&be.indexOf(h)>=0&&(e=!0);e&&r.sitecoreitemid!==null||r.all_contentdate===null?f.html(""):f.html(String(sc(r.all_contentdate.docdate)));f.text().length!==0&&s.text().length!==0?u.attr("hidden",!1):f.text().length!==0||s.text().length!==0?u.attr("hidden",!1):u.attr("hidden",!0)},bo=function(t,i){var r=n(".search-results-"+t+" .search-result-link");i.seotitle!==null?r.html(String(i.seotitle)):r.html(String(i.title));n(".search-results-"+t+" .search-results-header a").attr("data-analytics-link-name",n(".search-results-"+t+" .search-results-header a").text().toLowerCase());n(".search-results-"+t+" .search-results-header a").attr("data-analytics-content-type","serp-ranked")},ko=function(t,i,r,u){jQuery("<h4/>",{"class":"header title quarternary-title"}).appendTo(i);var f=n(".search-results-"+u+" .search-results-header .header");jQuery("<a/>",{href:t.relativepath,"class":"search-result-link cta"}).appendTo(f);jQuery("<p/>",{"class":"search-results-divider fluid"}).appendTo(r);jQuery("<p/>",{"class":"date fluid"}).appendTo(r)},go=function(t,i,r){var u="";return u=i.seodescription!==null?i.seodescription:i.description,jQuery("<p/>",{"class":"content-description fluid"}).appendTo(r),n(".search-results-container .search-results-section .search-results-"+t+" .search-results-header .content-description").addClass("dot-ellipsis"),u},ns=function(t,i){for(var o,c,u=r.typeahead("val"),f=u.split(/\s/),s=/[ !@#$%^&*()_+\-=\[\]{};:"\\|,.<>\/?]/g,e=0;e<f.length;e++)f[e]=f[e].replace(s,"\\$&");u=u.replace(s,"\\$&");RegExp("(^'[\\S\\s]*'$)","ig").test(h(r.typeahead("val")))?(u=u.replace(/(^'|'$)/g,""),o=new RegExp("\\b("+u+")\\b","ig")):o=new RegExp("\\b("+f.join("|")+")\\b","ig");c=i.replace(o,"<strong>$1<\/strong>");n(".search-results-"+t+" .content-description").html(String(c))},ie=function(i,r){var v=[],p=t.componentsettings.filtervisibilitycount,w=t.componentsettings.showfiltersection,f,l,o,y,h;gf=r.total;(e=="recommendedcontentitems.search"||e=="default-blogsbyblogname"||e=="default-blogsbyblogauthor"||e=="default-blogsbyblogtopic")&&(tt=t.componentsettings.maximumsearchresultsperpagination);rt=Math.ceil(gf/tt);ps(r,rt);yi<=0&&(n(".search-results-container .search-results-section").empty(),vf!="newsroom"&&(yu===!0||r.total>p&&w===!0?(pi=!1,wi=!1,kr=!1,i!=="default-blogsbyblogname"&&i!=="default-blogsbyblogauthor"&&i!=="default-blogsbyblogtopic"?se(r.acnfacets):(a.removeClass("hidden"),a.addClass("invisible hidden-xs hidden-sm"))):(r.total>0?(wi=!1,kr=!0):kr=!1,pi=!0,sr()),yu=!1));so(rt,gf);gs(r,v);as(r,rt);ys(r,rt);i.toLowerCase()==="recommendedcontentitems.search"?uc(r,rt):ks(r);ws(r,rt);bs(r);hi();ee();for(var c=t.componentsettings.maximumsearchresultsperpagination,u=i.toLowerCase()==="recommendedcontentitems.search"||i==="default-blogsbyblogname"||i==="default-blogsbyblogauthor"||i==="default-blogsbyblogtopic"?c*s-c:0,b=i.toLowerCase()==="recommendedcontentitems.search"||i==="default-blogsbyblogname"||i==="default-blogsbyblogauthor"||i==="default-blogsbyblogtopic"?c*s:r.documents.length;u<b&&u<r.documents.length;u++)f=r.documents[u],yo(u),n(".search-results-section").css({height:"auto"}),n(".search-results-"+u+" .search-results-header").css({"max-width":"auto"}),l=n(".search-results-"+u+" .search-results-header"),o=n(".search-results-"+u+" .search-results-content"),f.all_contenttype.length>0&&(y=f.all_contenttype.sort(function(n,t){return n.name.localeCompare(t.name)}),po(o,v,y,f)),ko(f,l,o,u),wo(u,f,o),bo(u,f),h=go(u,f,l),h!==null?ns(u,h):n(".search-results-"+u+" .content-description").html(h),n(".search-results-"+u+" .date").text().length!==0&&n(".search-results-"+u+" .category").text().length!==0&&(n(".search-results-"+u+" .search-results-divider").html("|"),n(".search-results-"+u+" .search-results-divider").addClass("divider")),n(".search-results-"+(r.documents.length-1)+" .search-results-content").is("[hidden]")?n(".search-results-area").addClass("no-content-type-date"):n(".search-results-"+(r.documents.length-1)+" .search-results-content").is("[hidden]")||n(".search-results-area").removeClass("no-content-type-date");r.documents.length>0&&(n(".search-results-container").show(),re(),yi=r.documents.length);window.location.search.indexOf("filter=")>=0&&ot===0&&ts()},ts=function(){for(var t=window.location.search.split("filter=")[1].replace(/%20/g," ").replace(/%26/g,"&").split("+"),i=0;i<t.length;i++)n(".redesign-search-filters input").each(function(){var u=n(this).val(),r="";u===t[i]&&(n('.redesign-search-filters input[value="'+t[i]+'"]').attr("checked","checked"),r=t.length<1?3e3:0,setTimeout(function(){ot=0;le();(jsUtility.isMobile()||d(g))&&(ii=ti,sf())},r))})},is=function(n,i){typeof Storage!="undefined"?(n=JSON.stringify(i),sessionStorage.setItem(vu,n),t=JSON.parse(sessionStorage.getItem(vu))):t=i},rs=function(n,t){typeof Storage!="undefined"&&(n=JSON.stringify(t),sessionStorage.setItem(lf,n));vi=t;vi!=null&&ne()},us=function(i,u){var e="",o;if(f=r.val(),pf=jQuery.extend(!0,{},t),u!==null){if(i==="searchsettings.search"){is(e,u);return}i==="suggestion.search"?rs(e,u):i.toLowerCase()==="highlightedtopicitems.search"?(u!==0?(fi=1,o=n(".highlighted-topic-area"),o.removeClass("sr-only")):fi=0,vo(u)):i.toLowerCase()==="recommendedcontentitems.search"||i.toLowerCase()==="searchbykeywords.search"?(ou(),ie(i,u)):(i.toLowerCase()==="featuredarticles.search"||i.toLowerCase()==="customized-featuredarticles.search"||i.toLowerCase()==="default-featuredarticles.search"||i==="default-blogsbyblogname"||i==="default-blogsbyblogauthor"||i==="default-blogsbyblogtopic")&&(ie(i,u),ar.hide(),bu.hide(),ei.hide(),de.hide(),localStorage.removeItem("ViewAllAttributes"))}},eh,ce,lu,ff,sf,hf,au,cf,ye;n(window).on("popstate load",function(){var t;if(!ir&&(t=n(".redesign-search-page"),t.length!==0)){ur();o=new URLSearchParams(window.location.search);var i=n(".no-results-container"),e=n(".redesign-line-bar"),c=n(".redesign-search-page .tt-dataset-keywordRecentSearches"),l=n(".tt-dataset-keywordSuggestions .tt-suggestions");window.location.search!==""&&window.location.search.indexOf("srk=")>=0?(f===v(o.get("srk"))?r.typeahead("val",f):r.typeahead("val",o.get("srk")),lt(),v(o.get("srk")).length>1&&h(r.val())!==""&&!(r.typeahead("val").replace(/\s{1,}/g,"").length===2&&RegExp("\"{2,}|'{2,}").test(r.typeahead("val").replace(/\s{1,}/g,"")))&&(s=o.get("pg")===""||o.get("pg")===null?1:parseInt(o.get("pg")),u=o.get("sb")===""||o.get("sb")===null?0:parseInt(o.get("sb")),ot=0,tf(o.get("srk").trim()))):(f="",window.performance.navigation.type!==0&&window.location.search.indexOf("srk=")>=0?(r.typeahead("val",o.get("srk")),lt(),window.location.search!==""&&v(o.get("srk")).length>1&&h(r.val())!==""&&!(r.typeahead("val").replace(/\s{1,}/g,"").length===2&&RegExp("\"{2,}|'{2,}").test(r.typeahead("val").replace(/\s{1,}/g,"")))&&tf(o.get("srk").trim())):(r.typeahead("val",""),lt()),i.hide(),de.hide(),e.hide());c.hide();l.hide()}});var re=function(){var r=n(".dot-ellipsis"),t=n("html").attr("lang"),u=t.match("ja"),f=t.match("zh"),i="word";(u!==null||f!==null)&&(i="letter");r.dotdotdot({ellipsis:"... ",watch:window,truncate:i,height:"100%"})},dh=function(n){var t=Array.prototype.slice.call(arguments,1);return n.replace(/\{(\d+)\}/g,function(n,i){return t[i]})},ue=function(n,t,i){return data=n==="suggestion.search"?'{"f":'+i+', "ss": "'+fs()+'"}':'{"k":"'+p(t)+'","f":1,"s":10}'},fs=function(){return t!==null?p(JSON.stringify(t.autocomplete)):""},h=function(n){var t="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",u=new RegExp("\\s*<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+t+">[\\s\\S]*?<\/script\\s*|style\\b"+t+">[\\s\\S]*?<\/style\\s*|/?[a-z]"+t+")>","gi"),i,r;if(n){do if(r=n,n=n.replace(u,"").trim(),i=/[`%$^*()_+\=\[\]{}\\|<>\/~]/.test(n),i)return n.replace(/[`%$^*()_+\=\[\]{}\\|<>\/~]/g,"");while(n!==r);return n.replace(/&nbsp;|'&nbsp;'|'&nbsp'|"&nbsp;"|"&nbsp"|&nbsp|/g,"").trim()}return""},fr=function(t){var i=n(".tt-dataset-keywordSuggestions .tt-suggestions");bt.push(t.replace(/\s{2,}/g," "));localStorage.setItem(st,JSON.stringify(bt));i.hide();tf(t)},gu=function(){var t=n(".search-hero-form .btn");t.attr("tabindex","-1");r.attr("tabindex","-1")},er=function(){navigator.userAgent.search("Firefox")>=0&&(tr.attr("tabindex","0"),tr.trigger("focus"))},or=function(){rr&&(tr.attr("tabindex","0"),tr.trigger("focus"))},fe=function(n){return n.indexOf("&")>-1&&(n=n.replace(new RegExp("&","g"),"%26")),n},gh=function(n,t,i,r,u,f,e,o,s){var l=new RegExp("(\\?|\\&)"+t+"=.*?(?=(&|$))(\\?|\\&)"+r+"=.*?(?=(&|$))(\\?|\\&)"+f+"=.*?(?=(&|$))(\\?|\\&)"+o+"=.*?(?=(&|$))"),h="",c;if(s.length!==0){for(c=0;c<s.length;c++)h=s.length===1?h.concat(fe(s[c])):h.concat(fe(s[c]),"+");h.substr(-1)==="+"&&(h=h.substr(0,h.length-1))}return l.test(n)?n.replace(l,"$1"+t+"="+i+"&"+r+"="+u+"&"+f+"="+e+"&"+o+"="+h):/\?.+$/.test(n)?n+"&"+t+"="+i+"&"+r+"="+u+"&"+f+"="+e+"&"+o+"="+h:n+"?"+t+"="+i+"&"+r+"="+u+"&"+f+"="+e+"&"+o+"="+h},es=function(){var i=n(".search-hero-form"),t=n(".tt-suggestion.view-all-text-container");if(typeof Storage!="undefined"){i.on("submit",function(i){gu();var e=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search"),o=n(".redesign-search-page .tt-dataset-keywordRecentSearches"),u=h(r.val());i.preventDefault();(h(f)===""||h(f)!==u)&&(u===""||e.hasClass("selected")?e.hasClass("selected")&&(r.typeahead("val",n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search.selected p").text()),o.hide(),fr(r.val())):fr(u));ci();rr||r.trigger("blur");er();or();lt();f=r.val();t.hasClass("tt-cursor")&&r.typeahead("val",t.attr("data-attribute-view-all-keyword"))});os()}nc()},nc=function(){var t=n(".search-hero-form .btn");t.on("click",function(t){var i=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search"),e=n(".redesign-search-page .tt-dataset-keywordRecentSearches");ur();o=new URLSearchParams(window.location.search);si();r.val()!==""||i.hasClass("selected")||n(".no-results-container").is(":visible")?r.val()===""&f!==""?y("srk",v(r.val()),"pg","","sb","","filter",""):r.val()!==""&&f!==""&&r.val()!==o.get("srk")?(y("srk",v(r.val()),"pg",1,"sb",0,"filter",""),s=1,u=0):n(".popular-searches-content").is(":visible")&&!n(".search-tips-container").is(":visible")?(y("srk",v(r.val()),"pg",1,"sb",0,"filter",""),s=1,u=0):r.val()!==""&&n(".popular-searches-content").is(":visible")&&n(".search-tips-container").is(":visible")&&f===""?(y("srk",v(r.val()),"pg",1,"sb",0,"filter",""),s=1,u=0):r.val()!==""&&f===""&&(typeof o.get("srk")=="undefined"||o.get("srk")===null)&&(y("srk",v(r.val()),"pg",1,"sb",0,"filter",""),s=1,u=0):(t.preventDefault(),e.hide(),y("srk",v(r.val()),"pg","","sb","","filter",""),lt(),f=r.val(),er(),or())})},tc=function(n){n.filter('[aria-selected="true"]').attr("aria-selected","false").attr("id","")},ic=function(t){var i="selectedOption";t.attr("aria-selected",!0).attr("id",i);n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search#selectedOption").length===0?r.attr("aria-activedescendant",i):r.attr("aria-activedescendant","")},os=function(){var t=n(".redesign-search-page .tt-dataset-keywordRecentSearches");r.on("keydown",function(i){var e=i.keyCode,h;if(t.is(":visible")&&(e===40||e===38)){var u=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search"),f=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-searches"),e=i.keyCode,o=u.filter('[aria-selected="true"]'),s;if(!u.length)return;e===40&&(s=o.length!==0?o.next("li"):f.children().eq(0));e===38&&(s=o.length!==0?o.prev("li"):f.children().eq(-1));tc(u);ic(s);u.attr("aria-selected")&&(r.typeahead("val",n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search#selectedOption").text()),r.typeahead("close"),n(".tt-dataset-keywordSuggestions .tt-suggestions").hide());n("#search-form-label").attr("aria-activedescendant")==="selectedOption"?h=".search-hero-keywords":u.attr("aria-selected")&&(h=n("#selectedOption").first());f.scrollTop(0);f.scrollTop(n(h).offset().top-f.height())}})},hi=function(){var i,u;if(!RegExp("^\\s+$","gm").test(r.val())){for(localStorage.setItem(st,JSON.stringify(bt)),i=0;i<JSON.parse(localStorage.getItem(st)).length;i++)for(u=i+1;u<JSON.parse(localStorage.getItem(st)).length;u++)JSON.parse(localStorage.getItem(st))[i].replace(/\s{2,}/g," ").trim()===JSON.parse(localStorage.getItem(st))[u].replace(/\s{2,}/g," ").trim()&&(bt.splice(i,1),localStorage.setItem(st,JSON.stringify(bt)));localStorage.getItem(st)!=="[]"&&bt.forEach(function(i){var o=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-searches"),e,u,r,f;for(jQuery("<li/>",{"class":"recent-search autocomplete-item"}).prependTo(o),jQuery("<p/>",{text:i}).appendTo(n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search:first-of-type")),n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").attr("aria-selected",!1),n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").attr("role","option"),e=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search"),u=n(".search-hero-form .recent-search p"),u.attr("data-analytics-content-type","search activity"),n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").length>t.componentsettings.maximumrecentsearch&&n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search:last-of-type").remove(),r=0;r<n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").length;r++){for(f=r+1;f<n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").length;f++)u[r].innerHTML.replace(/\s{2,}/g," ").trim()===u[f].innerHTML.replace(/\s{2,}/g," ").trim()&&e[f].remove();u[r].setAttribute("data-analytics-link-name",u[r].innerHTML.toLowerCase())}})}},ci=function(){var t=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-searches"),i=n(".redesign-search-page .tt-dataset-keywordRecentSearches"),r=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search");t.scrollTop(0);i.hide();r.filter('[aria-selected="true"]').attr("aria-selected","false").attr("id","")},ss=function(t,i){r.on("click",function(){r.val()!==""&&i.hide()});n(document).on("mouseup",function(n){t.is(n.target)||t.has(n.target).length!==0||ci()})},hs=function(t,i,u){r.off("keyup").on("keyup",function(t){n(".redesign-search-page .tt-suggestions").is(":visible")&&u.hide();r.val()===""||t.keyCode===38||t.keyCode===40||ci()}).on("paste",function(){u.hide()}).on("cut",function(){u.show()});t.keyCode===8&&(i.scrollTop(0),n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-search").removeClass("selected"));t.keyCode===27&&ci();n(document).off("keydown").on("keydown",function(t){var i=n(".search-hero-form .btn");t.key==="Tab"&&t.shiftKey?(i.attr("tabindex","0"),r.attr("tabindex","0"),n(".redesign-search-page .tt-suggestion.view-all-text-container").hasClass("tt-cursor")?r.typeahead("val",r.val()):n(".search-hero-form .tt-dataset-keywordSuggestions .tt-suggestion").hasClass("tt-cursor")?r.typeahead("val",n(".search-hero-form .tt-dataset-keywordSuggestions .tt-suggestion.tt-cursor").text()):u.hide()):n(".search-results-block").is(":focus")&&(r.attr("tabindex","0"),i.attr("tabindex","0"),tr.removeAttr("tabindex"));t.key==="Tab"&&n(".redesign-search-page .tt-dataset-keywordRecentSearches").is(":visible")&&i.attr("tabindex","0")});n(document).on("keydown keyup",".search-hero-form",function(t){t.key==="Tab"&&n(".redesign-search-page .btn").is(":focus")?ci():t.key==="Tab"&&r.val()===""?u.show():t.key==="Tab"&&ci()})},cs=function(){var t=n(".redesign-search-page .tt-dataset-keywordRecentSearches"),i=n(".recent-searches-container.tt-dataset-keywordRecentSearches .recent-searches"),f=n(".redesign-search-page .tt-dropdown-menu"),u;if(f.addClass("col-xs-12 col-sm-10"),r.val()===""){u=n(".search-hero-form .btn");n(document).on("click keyup",".redesign-search-page .tt-input.search-hero-keywords",function(){rr||u.attr("tabindex","0");n(".redesign-search-page .tt-suggestions").is(":visible")||r.val()!==""?n(".redesign-search-page .tt-suggestions").is(":visible")||r.val()===""||event.keyCode===13&&(rr||r.trigger("blur"),er(),or()):event.keyCode===13?(t.hide(),gu(),navigator.userAgent.search("Firefox")>=0&&rr||r.trigger("blur")):t.show();ss(i,t);hs(event,i,t)});n(document).on("click",".tt-dataset-keywordSuggestions .tt-suggestion",function(){tr.trigger("focus");rr||r.trigger("blur");er();or()})}else n(document).on("click keyup",".redesign-search-page .tt-input.search-hero-keywords",function(){ci()})},nf=function(){var i=n(".highlighted-topic-container"),r=n(".highlighted-topic-container .highlighted-topic-section .featured-article-image"),u=n(".highlighted-topic-container .highlighted-topic-section .highlghted-topic-readmore"),t=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-content .featured-article-header"),f=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-desc"),e=n(".highlighted-topic-container .highlighted-topic-section .highlighted-topic-register"),o=n(".highlighted-topic-featured");i.hide();r.empty();t.empty();t.text("Featured Title");f.empty();e.hide();o.hide();u.hide()},ou=function(){var t=n(".search-results-container"),i=n(".search-results-section"),r=n(".results-for-keyword-container"),u=n(".highlighted-topic-container"),f=n(".no-results-container"),e=n(".search-tips-container"),o=n(".redesign-line-bar"),s=n(".popular-searches-container");i.empty();r.hide();u.hide();f.hide();e.hide();o.hide();s.hide();t.hide()},ls=function(t){var i=n(".highlighted-topic-area"),r=n(".search-results-block .highlighted-topic-container");t===1&&(parseInt(o.get("pg"))===1||o.get("pg")===""||o.get("pg")===null)?(r.show(),i.show()):(r.hide(),i.hide())},ee=function(){var t=n(".highlighted-topic-area"),i=n(".search-results-block .highlighted-topic-container");s===1&&fi>0?(i.show(),t.show()):(i.hide(),t.hide())},li=function(n,t,i){return n.replace(new RegExp(t,"g"),i)},v=function(n){var t=n.replace(/[`%$^*()_+\=\[\]{}\\|<>\/~]/g,"");return n.indexOf("/")>-1&&(n=li(t,"/","%2F")),n.indexOf("?")>-1&&(n=li(t,"\\?","%3F")),n.indexOf(":")>-1&&(n=li(t,":","%3A")),n.indexOf("@")>-1&&(n=li(t,"@","%40")),n.indexOf("=")>-1&&(n=li(t,"=","%3D")),n.indexOf("&")>-1&&(n=li(t,"&","%26")),n.indexOf("#")>-1&&(n=li(t,"#","%23")),n.indexOf(" ")>-1&&(n=li(t," ","%20")),n},lt=function(){var l=n(".results-for-keyword-container"),a=n(".all-results-container"),v=n(".no-results-header"),u=n(".search-results-block .search-tips"),e=n(".search-results-block .search-tips-content"),y=n(".search-results-section"),t=h(r.val()),p=n(".search-results-block .highlighted-topic-container"),w=n(".show-number-of-results"),b=n(".search-results-block .reinvent-pagination"),k=n(".recommended-content-container"),d=n(".search-results-block"),o=n(".search-results-area"),s=n(".highlighted-topic-area"),g=n(".popular-searches-content li:last-of-type"),nt=n(".popular-searches-content a"),i=n(".search-tips-container"),tt=n(".search-results-block .did-you-mean-container"),c;(h(f)===""||h(f)!==t)&&(ou(),nf(),kr=!1,wi=!0,sr(),(t.length<=1||t===""||t.replace(/\s{1,}/g,"").length===2&&(RegExp("\"{2,}|'{2,}").test(t)||RegExp("(^'[\\S\\s]*'$)","gm").test(t)||RegExp('(^"[\\S\\s]*"$)',"gm").test(t)))&&!n(".search-results-container .search-results-section").is(":visible")&&(tt.hide(),l.hide(),a.hide(),p.hide(),s.hide(),d.addClass("search-results-block-space"),o.addClass("no-search-results-space"),o.removeClass("no-content-type-date"),g.removeClass("onload-space"),nt.addClass("cta"),s.addClass("sr-only"),i.show(),u.show(),e.show(),u.empty().append(i.attr("data-attribute-search-tips")),e.empty().append(i.attr("data-attribute-searchTips-content")),c=n(".search-results-area ul"),navigator.userAgent.match(/Android/i)&&c.addClass("search-results-android-list"),f=r.val(),ar.show(),v.empty().append(ar.attr("data-attribute-no-results").replace("{keyword}",t)),y.css("height","0"),bu.show(),ei.show(),w.hide(),b.hide(),k.hide(),ee(),hi()))},tf=function(i){(h(f)===""||h(f)!==i||o.get("pg")!==null||o.get("sb")!==null)&&(ou(),nf(),i!==""&&t!==null&&i.length>=t.componentsettings.minimumkeywordlength&&!(i.replace(/\s{1,}/g,"").length===2&&RegExp("\"{2,}|'{2,}").test(i.replace(/\s{1,}/g,"")))&&(wt(n(".show-number-of-results"),!1),wt(n(".results-for-keyword-container"),!0),su(i),rf()))},su=function(n){var e=!1,f,s,i,r;if(t!=null){if(hh(),ur(),o=new URLSearchParams(window.location.search),f=t.componentsettings.maximumsearchresultsperpagination,k=o.get("pg")===null?1:parseInt(o.get("pg")),o.get("sb")!==null&&(u=o.get("sb")>-1&&o.get("sb")<2?parseInt(o.get("sb")):0),s=f*k+1-f,t.componentsettings.showhighlightedtopic===!0&&t.highlightedtopickeywords!==null)for(i=0;i<t.highlightedtopickeywords.length;i++)if(t.highlightedtopickeywords[i].toLowerCase()===n.toLowerCase()){df=1;pe=t.highlightedtopickeywords[i];highlightedtopicitemsquery=!1;hasHighlightedTopic=!0;c(!0,"highlightedtopicitems.search",n,1,t.componentsettings.maxhighlightedtopicitems,null,t.highlightedtopickeywords[i]);break}else df=0;if(t.componentsettings.showrecommendedcontent===!0&&t.recommendedcontentkeywords!==null)for(yi=0,i=0;i<t.recommendedcontentkeywords.length;i++)for(r=0;r<t.recommendedcontentkeywords[i].keywords.length;r++)if(t.recommendedcontentkeywords[i].keywords[r].toLowerCase()===n.toLowerCase()){af=t.recommendedcontentkeywords[i]._id;c(!0,"recommendedcontentitems.search",t.recommendedcontentkeywords[i]._id,1,t.componentsettings.maxrecommendedcontentitems,u,"","","",!0);e=!0;break}e===!1&&(yi=0,RegExp("^'.*?'$","gm").test(n)&&(u=rc("exactmatch")),c(!0,"searchbykeywords.search",n,s,t.componentsettings.maximumsearchresultsperpagination,u,"","","",!0))}},rc=function(n){var r,i;if((t.sortType!==null||t.sortType.length>0)&&(n!==null||typeof n!="undefined"))for(r=n.toLowerCase(),i=0;i<t.sortType.length;i++)if(r===t.sortType[i].sort.toLowerCase())return t.sortType[i].id;return 0},as=function(t){var u=n(".search-results-block .search-tips"),f=n(".search-results-block .search-tips-content"),i=n(".search-tips-container"),e=n(".search-results-section");ht=n(".tt-suggestion.view-all-text-container").attr("data-attribute-view-all-keyword");t.documents.length>0&&k<=rt&&(h(r.typeahead("val"))!==""||h(ht)!=="")?(u.hide(),f.hide(),i.hide(),e.show()):n(".search-results-container .search-results-section").is(":visible")||(u.show(),u.empty().append(i.attr("data-attribute-search-tips")),f.empty().append(i.attr("data-attribute-searchTips-content")),f.show(),i.show())},vs=function(n,t,i){if(RegExp("(^'[\\S\\s]*'$)","ig").test(h(r.typeahead("val"))))n.empty().append(t.attr(i).replace("{keyword}",h(r.val().replace(/(^'|'$)/g,"").trim())));else if(RegExp('(^"[\\S\\s]*"$)',"ig").test(h(r.typeahead("val"))))n.empty().append(t.attr(i).replace("{keyword}",h(r.val().replace(/(^"|"$)/g,"").trim())));else if(vt&&h(r.typeahead("val"))==="")n.empty().append(t.attr(i).replace("{keyword}",vt));else if(yt&&h(r.typeahead("val"))==="")n.empty().append(t.attr(i).replace("{keyword}",kf?kf:yt));else if(pt&&h(r.typeahead("val"))===""){var u=pt.split("|");n.empty().append(t.attr(i).replace("{keyword}",u[1]))}else n.empty().text(t.attr(i).replace("{keyword}",h(r.val().replace(/\s{2,}/g," ").trim())))},ys=function(t,i){var c=n(".no-results-header"),l=n(".search-results-section"),a=n(".search-results-block .popular-searches-container .subsection-title"),v=n(".search-results-block .popular-searches-container .popular-searches-content"),y=n(".highlighted-topic-container"),e=n(".search-results-block"),f=n(".search-results-area"),p=n(".popular-searches-content li:last-of-type"),u,o,s;if(ht=n(".tt-suggestion.view-all-text-container").attr("data-attribute-view-all-keyword"),t.documents.length>0&&k<=i&&(h(r.typeahead("val"))!==""||h(ht)!==""))ar.hide(),l.show(),bu.hide(),ei.hide(),y.show(),e.removeClass("search-results-block-space"),f.removeClass("no-search-results-space"),f.removeClass("prefiltered");else if(!n(".search-results-container .search-results-section").is(":visible")){for(vs(c,ar,"data-attribute-no-results"),ar.show(),bu.show(),ei.show(),e.addClass("search-results-block-space"),f.addClass("no-search-results-space"),p.removeClass("onload-space"),a.empty().append(ei.attr("data-attribute-popular-searches")),v.empty().append(ei.attr("data-attribute-popularSearches-content")),n(".popular-searches-content li a").attr("tabindex","0").attr("data-analytics-content-type","search activity"),u=0;u<n(".popular-searches-content a").length;u++)$popularSearchesInnerText=n(".popular-searches-content a")[u].innerText,$popularSearchesTextForAnalytics=n(".popular-searches-content a")[u],$popularSearchesTextForAnalytics.setAttribute("data-analytics-link-name",$popularSearchesInnerText.toLowerCase());o=n(".search-results-area ul");s=n(".popular-searches-content a");s.addClass("cta");navigator.userAgent.match(/Android/i)&&o.addClass("search-results-android-list")}},ps=function(t,i){var u=n(".results-for-keyword-container"),s=n(".results-for-keyword"),o=n(".highlighted-topic-container"),c=n(".no-results-container"),l=n(".search-tips-container"),a=n(".redesign-line-bar"),v=n(".popular-searches-container"),e=n(".redesign-search-filters-container");f=r.val();t.documents.length>0&&k<=i&&(h(r.typeahead("val"))!==""||h(ht)!=="")||(vt||yt||pt)&&h(r.typeahead("val"))===""?(vs(s,u,"data-attribute-results-for-keyword"),u.show(),o.show(),yf.removeClass("prefiltered"),u.removeClass("hide"),e.removeClass("hide")):t.documents.length>0&&k<=i?(u.removeClass("hide"),e.removeClass("hide")):(o.show(),u.hide(),c.show(),l.show(),a.show(),v.show(),e.addClass("hide"),u.addClass("hide"))},ws=function(i){var o=n(".show-number-of-results"),l=n(".number-of-results"),u=i.total,c=tt*s+1-tt,f="",a=n(".search-results-area .total-results");a.html("Showing "+u+" results");f=e=="recommendedcontentitems.search"||e=="default-blogsbyblogname"||e=="default-blogsbyblogauthor"||e=="default-blogsbyblogtopic"?c+t.componentsettings.maximumsearchresultsperpagination-1:c+i.documents.length-1;u<=t.componentsettings.maximumsearchresultsperpagination&&(f=u);rt==s&&(f=i.total);i.documents.length>0&&k<=rt&&(h(r.typeahead("val"))!==""||h(ht)!==""||ir)?(l.empty().append(o.attr("data-attribute-number-of-results").replace("{first}",c).replace("{last}",f).replace("{total}",u)),o.show()):o.hide()},bs=function(t,i){var r=n(".search-results-block .did-you-mean-container"),f=n(".search-results-block .did-you-mean-content"),u="",e=n(".results-for-keyword-container");we&&(i?r.hide():t.didYouMean!=null?t.originalKeyword!=null?r.hide():(u='<a tabindex="0" id="did-you-mean-link" data-linkcomponentname="did you mean" data-linktype="search activity" data-analytics-content-type="search activity"><span class="did-you-mean-link-text" data-analytics-link-name="'+t.didYouMean+'">'+t.didYouMean+"<\/span><\/a>",f.empty().append(r.attr("data-attribute-did-you-mean").replace("{suggestedTerm}",u)),n("#did-you-mean-link").addClass("cta"),r.show(),e.css("display","block")&&n(".did-you-mean-container").addClass("col-lg-8 col-md-8")):r.hide())},ks=function(t){var i=n(".all-results-container"),e=n(".all-results"),u=n(".recommended-content-container"),o=n(".highlighted-topic-container"),f=n(".highlighted-topic-area");t.documents.length>0&&k<=rt&&(h(r.typeahead("val"))!==""||h(ht)!==""||ir)?(e.empty().append(i.attr("data-attribute-all-results")),i.show(),u.hide(),fi===0&&(o.hide(),f.hide())):(i.hide(),u.hide(),f.addClass("sr-only"))},uc=function(t){var i=n(".recommended-content-container"),f=n(".recommended-content-container .recommended-content"),u=n(".all-results-container");t.documents.length>0&&k<=rt&&(h(r.typeahead("val"))!==""||h(ht)!=="")?(f.empty().append(i.attr("data-attribute-recommended-content").toUpperCase()),i.show(),u.hide()):(i.hide(),u.hide())},ds=function(){n(document).on("click",".search-hero-form .recent-search p",function(){var i=n(".search-results-block"),t;s=1;u=0;y("srk",v(n(this).text()),"pg",s,"sb",u,"filter","");i.trigger("focus");IsIE()&&gu();t=n(".redesign-search-page .tt-dataset-keywordRecentSearches");h(f)!==n(this).text()?(r.typeahead("val",n(this).text().replace(/\s{2,}/g," ").trim()),t.hide(),fr(h(r.val())),hi(),lt(),f=r.val()):(r.typeahead("val",n(this).text().replace(/\s{2,}/g," ").trim()),t.hide(),f=r.val())})},gs=function(n,t){var i,r;if(n.acnfacets!==null)for(i=0;i<n.acnfacets.length;i++)if(n.acnfacets[i].metadatafieldname==="contenttype"){for(r=0;r<n.acnfacets[i].items.length;r++)t.push(r,n.acnfacets[i].items[r].term);break}},fc=function(){n(document).on("click",".popular-searches-content li a",function(){s=1;u=0;si();y("srk",v(n(this).text()),"pg",s,"sb",u,"filter","");r.typeahead("val",n(this).text());fr(h(n(this).text()));lt();hi()})},ec=function(){n(document).on("keyup",".popular-searches-content li a",function(t){t.keyCode===13&&(s=1,u=0,si(),y("srk",v(n(this).text()),"pg",s,"sb",u,"filter",""),r.typeahead("val",n(this).text()),fr(h(n(this).text())),lt(),hi())})},oc=function(){var i=n(".search-results-block .popular-searches-container .subsection-title"),r=n(".search-results-block .popular-searches-container .popular-searches-content"),u=n(".search-results-block"),f=n(".search-results-area"),e=n(".search-tips-container"),t;for(i.empty().append(ei.attr("data-attribute-popular-searches")),r.empty().append(ei.attr("data-attribute-popularSearches-content")),n(".popular-searches-content li a").attr("tabindex","0").attr("data-analytics-content-type","search activity"),t=0;t<n(".popular-searches-content a").length;t++)$popularSearchesInnerText=n(".popular-searches-content a")[t].innerText,$popularSearchesTextForAnalytics=n(".popular-searches-content a")[t],$popularSearchesTextForAnalytics.setAttribute("data-analytics-link-name",$popularSearchesInnerText.toLowerCase());var o=n(".popular-searches-content a"),s=n(".popular-searches-content li:last-of-type"),h=n(".search-results-area ul");o.addClass("cta");s.addClass("onload-space");navigator.userAgent.match(/Android/i)&&h.addClass("search-results-android-list");e.hide();f.addClass("search-results-area-space");u.addClass("search-results-block-space")},sc=function(n){var i="",t;return n!=null&&n!=undefined?(t=new Date(Date.parse(n)),i=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()]+" "+t.getDate()+", "+t.getFullYear()):i=n,i},y=function(n,t,i,r,u,f,e,o){pr=n===""&&t===""?window.location.protocol+"//"+window.location.host+window.location.pathname:gh(pr,n,t,i,r,u,f,e,o);window.history.pushState({path:pr},"",pr)},rf=function(){r.val()!==""&&(n(".search-results-0").is(":visible")||(n(".search-hero-form .btn").attr("disabled",!0),n(".search-hero-form .search-hero-keywords").attr("disabled",!0)))},nh=function(){(n(".search-results-section").is(":visible")||n(".no-results-container").is(":visible"))&&(n(".search-hero-form .btn").prop("disabled",!1),n(".search-hero-form .search-hero-keywords").prop("disabled",!1))},th=function(n,t){n!==null&&us(t,n)},ih=function(n,t,i,r){var e=!1,u,f;if(suggestedtopicsquery=!1,t!=""&&r=="customized")for(u=0;u<n.length;u++)for(f=0;f<n[u].keywords.length;f++)if(n[u].keywords[f].toLowerCase()==t){suggestedtopicsquery=!1;c(!0,"viewall-suggestedtopics.search",t,1,i,null,null,n[u]._id);e=!0;break}},c=function(i,s,h,c,l,a,v,y,b,k){var it=te(du()),d=ue(s,h,c),g="",nt,rt;tt=l;e=s;ur();o=new URLSearchParams(window.location.search);window.location.search.indexOf("srk")>=0?(o.get("srk")!==""||o.get("srk")!==null)&&(f=o.get("srk")):f=r.val();(typeof y=="undefined"||y===null)&&(y="");(typeof b=="undefined"||b===null)&&(b="");w=v;gt=y;ni=b;(typeof a=="undefined"||a===null)&&(a=u);s=s.toLowerCase();nt=it+s;s==="suggestion.search"?(rt="",t!=null&&(rt=p(JSON.stringify(t.autocomplete))),d='{"f":'+c+', "ss": "'+rt+'"}'):s==="recommendedcontentitems.search"||s==="searchbykeywords.search"?d='{"k":"'+p(h)+'","f":'+c+',"s":'+l+', "sb":'+a+', "ss":"'+vf+'", "df":"'+p(JSON.stringify(t.keywordsearchfilters))+'","cs":"'+hr+'"}':s==="highlightedtopicitems.search"?d='{"k":"'+p(v)+'","f":'+c+',"s":'+l+"}":s.toLowerCase()==="featuredarticles.search"||s.toLowerCase()==="customized-featuredarticles.search"||s.toLowerCase()==="default-featuredarticles.search"?d='{"k":"'+p(h)+'","f":'+c+',"s":'+l+',"sb":'+a+',"cp":"'+y+'","cpid":"'+b+'", "df":"'+p(JSON.stringify(t.keywordsearchfilters))+'", "rt":"resultitem", "sp": "'+v+'"}':s==="default-blogsbyblogname"?(g=h.split(","),d='{"blogName":"'+p(g[0])+'", "blogIndustry":"'+g[1]+'", "blogSubject":"'+g[2]+'", "countrySite":"'+it.split("/")[1]+'", "defaultFacets":"'+p(JSON.stringify(t.keywordsearchfilters))+'"}',nt="/api/sitecore/BlogPostcardsBlock/GetBlogsByBlogName"):s==="default-blogsbyblogauthor"?(d='{"authorEnterpriseId":"'+h+'", "countrySite":"'+it.split("/")[1]+'", "defaultFacets":"'+p(JSON.stringify(t.keywordsearchfilters))+'"}',nt="/api/sitecore/BlogPostcardsBlock/GetBlogsByBlogAuthor"):s==="default-blogsbyblogtopic"&&(h=h+"|",g=h.split("|"),d='{"blogName":"'+g[0]+'","blogTopic":"'+g[1]+'","blogIndustry":"default","blogSubject":"default", "countrySite":"'+it.split("/")[1]+'", "defaultFacets":"'+p(JSON.stringify(t.keywordsearchfilters))+'"}',nt="/api/sitecore/BlogPostcardsBlock/GetBlogsByBlogTopic");f!=h&&(fi=0);fi=df===1?1:0;ls(fi);n.ajax({type:"POST",url:nt,data:d,async:i,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){th(n,s);nh();k&&(fh(),hu())},error:function(){t=null}})},yr={"highlightedtopicitems.search":function(n){c(!0,"highlightedtopicitems.search",f,n,tt,null,pe,null,null,!0)},"recommendedcontentitems.search":function(){f=af;c(!0,"recommendedcontentitems.search",af,1,t.componentsettings.maxrecommendedcontentitems,null,null,null,null,!0)},"searchbykeywords.search":function(n){c(!0,e,f,n,tt,null,null,null,null,!0)},"default-featuredarticles.search":function(n){c(!0,e,f,n,t.componentsettings.maximumsearchresultsperpagination,u,w,gt,ni,!0)},"default-blogsbyblogname":function(n){c(!0,e,vt+","+uu+","+fu,n,t.componentsettings.maximumsearchresultsperpagination,u,w,gt,ni,!0)},"default-blogsbyblogauthor":function(n){c(!0,e,yt,n,t.componentsettings.maximumsearchresultsperpagination,u,w,gt,ni,!0)},"default-blogsbyblogtopic":function(n){c(!0,e,pt,n,t.componentsettings.maximumsearchresultsperpagination,u,w,gt,ni,!0)}},rh=function(){if(s>1){s--;n(".search-results-container .search-results-section").empty();/srk/.test(window.location.href)&&y("srk",v(r.val()),"pg",s,"sb",u,"filter",ft);wt(n(".show-number-of-results"),!0);wt(n(".results-for-keyword-container"),!1);var t=tt*s+1-tt;yr[e]&&(hu(),r.typeahead("val",f),yr[e](t))}},uh=function(){if(s<rt){s++;n(".search-results-container .search-results-section").empty();/srk/.test(window.location.href)&&y("srk",v(r.val()),"pg",s,"sb",u,"filter",ft);wt(n(".show-number-of-results"),!0);wt(n(".results-for-keyword-container"),!1);var t=tt*s+1-tt;yr[e]&&(hu(),r.typeahead("val",f),yr[e](t))}},oe=function(t){if(yi>0&&t!=s){n(".search-results-container .search-results-section").empty();/srk/.test(window.location.href)&&y("srk",v(r.val()),"pg",t,"sb",u,"filter",ft);wt(n(".show-number-of-results"),!0);wt(n(".results-for-keyword-container"),!1);var i=tt*t+1-tt;yr[e]&&(hu(),r.typeahead("val",f),yr[e](i),s=parseInt(t))}},hu=function(){document.body.scrollTop=0;document.documentElement.scrollTop=0},fh=function(){var t=n(".search-results-container .search-results-section").first();t.attr("tabindex","-1");t.trigger("focus");IsIE()||t.trigger("blur");t.removeAttr("tabindex")},wt=function(n,t){n&&(t?n.removeAttr("aria-live"):n.attr("aria-live","off"))};n(wr).on("click",function(){rh()});n(br).on("click",function(){uh()});n(dt).on("click",ph,function(t){var i=t.target;n(event.target).hasClass("page-num")&&i.innerHTML!="..."&&(oe(i.innerText),t.preventDefault())});n(document).on("click",".did-you-mean-link-text",function(t){hr=!1;n(".did-you-mean-container").hide();var i=t.target.innerText;r.typeahead("val",i);su(i,!1);hr=!0;s=1;u=0;si();y("srk",v(n(this).val()),"pg",s,"sb",u,"filter","")});n(document).on("keyup","#did-you-mean-link",function(t){if(t.keyCode==13){hr=!1;n(".did-you-mean-container").hide();var i=t.target.innerText;r.typeahead("val",i);su(i,!1);hr=!0;s=1;u=0;si();y("srk",v(n(this).val()),"pg",s=1,"sb",u,"filter","")}});if(isMobile()){eh=n(".pagination-dropdown");eh.on("change",function(){oe(parseInt(n(this).val()))})}var d=function(n){var t=n||999;return window.innerWidth>=768&&window.innerWidth<=t?!0:!1},sr=function(){var t=ke.parent("div"),i=n(".search-results-block .did-you-mean-container");ut.removeClass("hidden");a.removeClass("hidden");a.removeClass("invisible");bi!==null&&bi.remove();wi===!0&&a.addClass("hidden");jsUtility.isMobile()||d(g)?(pi===!0&&(a.addClass("hidden"),ut.addClass("hidden"),l.addClass("hidden")),t.hasClass("modal")===!1&&t.addClass("modal")):(pi===!0&&ut.addClass("hidden"),t&&a.insertAfter(i),l.addClass("hidden"),t.hasClass("modal")&&t.removeClass("modal"),kr===!0&&(ut.removeClass("hidden"),a.removeClass("hidden"),a.addClass("invisible")));at.empty();dr.empty();l.empty();ut.children("span").empty();ki.empty();di.empty();gr.hide();wf.addClass("hidden");dr.text("Filter By");l.text("Filter Button")},oh=function(){l.addClass("hidden");au();var n=ut.attr("data-attribute-sort-by"),t=ki.attr("data-analytics-link-name"),i=di.attr("data-analytics-link-name");ut.children("span").prepend(n);ki.append(t);di.append(i);isMobile()||ut.addClass("filter-sort-margin-bottom")},se=function(t){var i,p,y,f,k,nt,tt,st,s,e,h,ht;if(t){sr();au();var ct=0,it=0,lt=ut.attr("data-attribute-sort-by"),wt=dr.attr("data-attribute-filter-by"),bt=a.find(".reinvent-close-filter").attr("data-analytics-link-name"),kt=ki.attr("data-analytics-link-name"),dt=di.attr("data-analytics-link-name"),gt=n(".did-you-mean-container").css("display")==="block";for(haveFilters=!1,nr=[],lr=[],bi=document.createElement("div"),dr.text(""),dr.append(wt),ut.removeClass("filter-sort-margin-bottom"),ut.removeClass("hidden"),wf.removeClass("hidden"),l.removeClass("hidden"),wf.find(".behind").removeAttr("style"),ut.children("span").prepend(lt),ki.append(kt),di.append(dt),n(bi).append("<span class='eyebrow-title filter-title corporate-bold'>"+l.data("attribute-filter-results")+"<\/span>"),n(bi).append("<span class='ion-android-close filter-close' data-analytics-link-name="+bt+" data-analytics-template-zone='search filter' role='button' tabindex='0' aria-labelledby='filter-close-desc'><\/span>"),ke.prepend(bi),gi&&l.text("Filter Button"),(vt||yt||pt)&&a.removeClass("invisible hidden-xs hidden-sm"),jsUtility.isMobile()||d(g)?(he(),a.insertAfter(".did-you-mean-container"),d(g)?gt||l.removeAttr("style"):l.removeAttr("style")):a.insertBefore(".did-you-mean-container"),e=0;e<t.length;e++){if(i=t[e],i.items.length>0&&ct++,i!=null&&i.items.length>0&&i.displayfacet==!0){var c=document.createElement("div"),u=document.createElement("div"),v=document.createElement("div"),rt=document.createElement("fieldset"),ft=document.createElement("ul");for(ut.removeAttr("style").children().removeAttr("style"),n(bi).attr("class","search-filter-result"),n(c).attr("class","redesign-search-filters"),n(c).addClass("corporate-regular"),n(c).attr("id",i.metadatafieldname+"-redesign-facet"),n(u).attr("data-analytics-content-type","search filter"),n(u).attr("class","reinvent-filter-category"),n(u).attr("aria-label",i.facetdisplayname),n(u).attr("role","button"),n(u).attr("tabindex","0"),n(u).attr("data-analytics-link-name",i.facetdisplayname.toLowerCase()+" - expand"),n(u).attr("aria-expanded","false"),it===0&&n(u).addClass("filter-border-top"),n(u).append("<h4>"+i.facetdisplayname+"<\/h4>"),n(u).append("<span class='ion-chevron-down reinvent-filter-icon'><\/span>"),n(c).append(u),p=0;p<t[e].items.length;p++){var r=i.items[p],w="",et=document.createElement("li"),o=document.createElement("label");for(haveFilters=!0,w=ch(i.metadatafieldname,r.term)?"checked":"",!0&&typeof r.term!="undefined"&&(checkBoxFaceItemLinkName=r.term.toLowerCase().trim()),nu=r.term,nr.push(r.term),f=0;f<nr.length;f++)for(y=0;y<nr.length;y++)f!=y&&nr[f]===nr[y]&&(lr.push(r.term),nr.splice(f,1));if(lr.length>0)for(f=0;f<lr.length;f++)lr[f]===nu.split("_")[0]&&(nu=lr[f]+"_"+e);k=n("<input/>").prop("class","filter-checkbox").prop("id",nu.replace(/\s+/g,"-").toLowerCase()).prop("type","checkbox").prop("name",r.term).prop("value",r.term).on("change",function(){ot=1;le()});nt="false";w=="checked"&&(k.attr("checked",w),nt="true");n(o).attr("for",nu.replace(/\s+/g,"-").toLowerCase());n(o).attr("data-analytics-content-type","search filter");jsUtility.isMobile()||d(g)||n(o).attr("data-analytics-link-name",checkBoxFaceItemLinkName);n(o).addClass("corporate-regular");n(o).append(k);n(o).append("<span class='ion-android-checkbox-blank icon-check-checkbox' role='checkbox' aria-checked='"+nt+"' aria-label='"+r.term+" filter with "+r.count+" results' tabindex='0'><\/span>");n(o).append("<span aria-hidden='true' class='text-checkbox'>"+r.term+" ("+r.count+")<\/span>");n(v).attr("class","reinvent-checkbox");navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&n(v).attr("tabindex","-1");jsUtility.isMobile()||d(g)||n(v).css({"overflow-y":"scroll"});n(v).addClass(i.facetdisplayname.toUpperCase().replace(/\s/g,""));n(et).append(o);n(ft).append(et);n(rt).append(ft);n(v).append(rt);n(c).append(v)}it++}at.append(c);tt=a.find(".reinvent-filter-number").data("attribute-filters-selected");tt&&(st=tt.replace("{0}",ti),a.find(".reinvent-filter-number").text(st))}if(ui!==null&&sh(),jsUtility.isMobile()||d(g))l.removeClass("hidden"),ri===!1&&(n(".redesign-search-filters div:first-child").next().hide(),hf()),pu==!1&&cr&&(s=cr[0].innerText.toUpperCase(),s=s.replace(/\s/g,""),n(".redesign-search-filters div:first-child").next().hide(),n(".reinvent-checkbox."+s).prev().addClass("corporate-semibold"),n(".reinvent-checkbox."+s).prev().children(".reinvent-filter-icon").removeClass("ion-chevron-down"),n(".reinvent-checkbox."+s).prev().children(".reinvent-filter-icon").addClass("ion-chevron-up"),n(".reinvent-checkbox."+s).show(),of());else if(ui!==null){for(e=0;e<ui.length;e++)h=ui[e].replace(/\s/g,"").toUpperCase(),n(".reinvent-checkbox."+h).prev().addClass("corporate-semibold"),n(".reinvent-checkbox."+h).prev().children(".reinvent-filter-icon").removeClass("ion-chevron-down"),n(".reinvent-checkbox."+h).prev().children(".reinvent-filter-icon").addClass("ion-chevron-up"),n(".reinvent-checkbox."+h).prev().attr("data-analytics-link-name",i.facetdisplayname.toLowerCase()+" - collapse "),n(".reinvent-checkbox."+h).prev().attr("aria-expanded","true"),n(".reinvent-checkbox."+h).show();ht=n(".redesign-search-filters div:first-child");ef(ht)}haveFilters==!1&&(sr(),oh());pi==!0&&sr()}ku===!0?(ku=!1,bf===!0?(bf=!1,n(ge).find("[id='"+no+"']").siblings("span.ion-android-checkbox-blank").trigger("focus")):gi?l.trigger("focus"):b.trigger("focus")):b!=null&&b.trigger("focus")},sh=function(){var t=n(".redesign-search-filters");t.each(function(){var t=n(this);t.children("")})},he=function(){var n,t;l.empty();ii>0?(n=l.data("attribute-modify-filters").replace("{0}",ii),l.attr("data-analytics-link-name",n),l.append(n)):(t=l.data("attribute-filter-results"),l.attr("data-analytics-link-name",t),l.append(t))},cu=function(i,r,f,e,o,s,h,c,l){var v=te(du()),a=ue(r,f,e);(typeof s=="undefined"||s===null)&&(s=u);r=r.toLowerCase();r==="recommendedcontentitems.search"||r==="searchbykeywords.search"?a='{"k":"'+p(f)+'","f":'+e+',"s":'+o+', "sb":'+s+', "ss":"'+vf+'", "df":"'+p(JSON.stringify(t.keywordsearchfilters))+'","cs":"'+hr+'"}':r==="default-featuredarticles.search"&&(a='{"k":"'+p(f)+'","f":'+e+',"s":'+o+',"sb":'+s+',"cp":"'+c+'","cpid":"'+l+'", "df":"'+p(JSON.stringify(t.keywordsearchfilters))+'", "rt":"resultitem", "sp": "'+h+'"}');n.ajax({type:"POST",url:v+r,data:a,async:i,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){hc(n)},error:function(){t=null}})},hc=function(n){n!==null&&(wi=n.total>0?!1:!0,se(n.acnfacets))},uf=function(){pf!==null&&(pu=!0,t=jQuery.extend(!0,{},pf),e==="default-featuredarticles.search"?cu(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,u,w):e!=="default-blogsbyblogname"&&e!=="default-blogsbyblogauthor"&&e!=="default-blogsbyblogtopic"&&cu(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,u))};n(window).on("resize",function(){wi===!1?uf():sr();ui=null;et.removeClass(lu);jsUtility.isMobile()||d(g)?l.show():(l.hide(),n(".search-filter-result").removeClass("align-search-filter-result"),n(".filter-close").removeClass("align-filter-close"),n(".reinvent-filter-footer").removeClass("align-reinvent-filter-footer"));et.hasClass("show-modal-xs")&&et.removeClass("show-modal-xs");et.hasClass("show-modal-sm")&&et.removeClass("show-modal-sm");it.removeAttr("style");it.modal("hide")});l.on("keydown click",function(n){var t=n.originalEvent.key!=undefined?!1:!0,i=t==!1&&(n.keyCode==13||n.keyCode==32)?!0:!1;(t||i)&&(n.preventDefault(),it.modal(),it.find(".dropdown-menu").addClass("bottom"))});it.on("show.bs.modal",function(){it.css("display","flex");var t=n("html").hasClass("safari");d(g)&&t&&n("body").addClass("reinvent-filter-position-fixed");(jsUtility.isMobile()||d(g))&&(ti=ii,ri=!1,n("body").addClass("reinvent-filter-overflow-hidden"),isMobile()?et.addClass("show-modal-xs"):et.addClass("show-modal-sm"),n(".redesign-search-filters div:first-child").next().hide(),of(),gr.hide(),wu.show(),hf())}).on("shown.bs.modal",function(){setTimeout(function(){it.removeAttr("style");it.addClass("fade");at.find("div.reinvent-filter-category").first()[0].focus()},300)}).on("hide.bs.modal",function(){it.find(".dropdown-menu").removeClass("bottom");pu=!0;ri=!0;n(document.activeElement).hasClass("reinvent-apply-filter")||(it.removeClass(lu),$accordions=n(".redesign-search-filters div:first-child"),ff($accordions))}).on("hidden.bs.modal",function(){it.removeAttr("style");it.removeClass("fade").removeClass("show-modal-xs").removeClass("show-modal-sm");setTimeout(function(){l[0].focus()},300)}).on("keydown",function(n){n.keyCode==27&&(uf(),l.trigger("focus"),b=l)});ce=function(n){var t=n.originalEvent.key!=undefined?!1:!0,i=t==!1&&(n.keyCode==13||n.keyCode==32)?!0:!1;(t||i)&&(b=l,it.modal("hide"),uf())};lu=function(t,i){return n("body").removeClass("reinvent-filter-position-fixed"),n("body").removeClass("reinvent-filter-overflow-hidden"),(i.match(/(^|\s)show-modal-\S+/g)||[]).join(" ")};wu.on("keydown click",function(n){ce(n)});n(".dropdown-menu").on("keydown click",".filter-close",function(n){if(/srk/.test(window.location.href)&&ft.length!==0){var t=window.location.search.split("filter=")[1].replace(/%20/g," ").replace(/%26/g,"&").split("+");for(i=0;i<ft.length;i++)t.includes(ft[i])||(ft.splice(ft[i],1),i=i-1)}ce(n)});ff=function(t){t.removeClass("is-open");t.each(function(){var t=n(this).text();n(this).hasClass("corporate-semibold")==!0&&(n(this).removeClass("corporate-semibold"),n(this).children(".reinvent-filter-icon").removeClass("ion-chevron-up"),n(this).children(".reinvent-filter-icon").addClass("ion-chevron-down"),n(this).attr("aria-expanded",!1),n(this).attr("data-analytics-link-name","content type - expand"))});t.removeClass("corporate-semibold")};at.on("click",".redesign-search-filters div:first-child",function(){var t=n(this),i=n(".redesign-search-filters div:first-child");if(cr=t,ui=[],(jsUtility.isMobile()||d(g))&&i.next().slideUp(),t.hasClass("corporate-semibold")==!0&&t.hasClass("is-open")==!1){t.next().slideUp();t.removeClass("corporate-semibold");t.addClass("corporate-regular");t.children(".reinvent-filter-icon").removeClass("ion-chevron-up");t.children(".reinvent-filter-icon").addClass("ion-chevron-down");t.attr("data-analytics-link-name",cr[0].innerText.toLowerCase()+" - expand");t.attr("aria-expanded","false");ef(i);return}t.hasClass("is-open")?(t.next().slideUp(),t.removeClass("corporate-semibold"),t.addClass("corporate-regular"),t.attr("data-analytics-link-name",cr[0].innerText.toLowerCase()+" - expand"),t.attr("aria-expanded","false"),t.toggleClass("is-open")):(t.next().slideDown(),(jsUtility.isMobile()||d(g))&&ff(i),t.attr("data-analytics-link-name",cr[0].innerText.toLowerCase()+" - collapse"),t.attr("aria-expanded","true"),t.addClass("corporate-semibold"),t.removeClass("corporate-regular"),t.toggleClass("is-open"));ef(i)});var ef=function(i){i.each(function(){var f=n(this).text();if((n(this).hasClass("corporate-semibold")===!0||n(this).hasClass("is-open"))&&(ui.push(f.toLowerCase()),!jsUtility.isMobile()&&!d(g))){var i=0,r=40,u=n(this).siblings(".reinvent-checkbox");u.find("li").each(function(){if(i<t.componentsettings.maximumitemperfacet){var f=n(this).height();r+=f;i++}else return u.css({"max-height":r+"px"}),!1})}})},hh=function(){if(u=0,ii=0,pi=!1,ui=null,t!==null&&t.keywordsearchfilters!==null&&t.keywordsearchfilters.length>0)for(i=0;i<t.keywordsearchfilters.length;i++)t.keywordsearchfilters[i].items.length=0},ch=function(n,i){for(var u,f=!1,r=0;r<t.keywordsearchfilters.length;r++)if(t.keywordsearchfilters[r].metadatafieldname==n)for(u=0;u<t.keywordsearchfilters[r].items.length;u++)if(t.keywordsearchfilters[r].items[u].term==i){f=!0;break}return f},of=function(){var n=a.find(".reinvent-filter-number").data("attribute-filters-selected").replace("{0}",ti);a.find(".reinvent-filter-number").text(n);ti>0||ii>0?(gr.show(),wu.hide()):(gr.hide(),wu.show())},le=function(){var v="",y=0,a,h,l,i,s;if(ur(),o=new URLSearchParams(window.location.search),n(".reinvent-checkbox label").attr("for",""),window.location.search.indexOf("srk")>=0?(o.get("srk")!==""||o.get("srk")!==null)&&(f=o.get("srk")):f=r.val(),r.typeahead("val",f),t!=null&&(a=t.componentsettings.maximumsearchresultsperpagination,ot===0?(k=o.get("pg")===null?1:parseInt(o.get("pg")),h=a*k+1-a):ot===1&&(h=1)),t!=null&&t.keywordsearchfilters!=null)for(i=0;i<t.keywordsearchfilters.length;i++)l=t.keywordsearchfilters[i],t.keywordsearchfilters[i].items.length=0,n("#"+l.metadatafieldname+"-redesign-facet input[type=checkbox]:checked").each(function(){var i=n(this).val(),t={};y+=1;v=i;result=n.grep(l.items,function(n){return n.term==i});result.length<=0&&(t.count=1,t.selected=!0,t.term=i,l.items.push(t),nt.push(v),ft=lh(nt))}),jsUtility.isMobile()||d(g)||ae();if(ti=y,yu=!0,yi=0,/srk/.test(window.location.href)&&(u=o.get("sb")===""||o.get("sb")===null?0:parseInt(o.get("sb"))),t!=null)if(isMobile()||d(g)){if(of(),e=="recommendedcontentitems.search"){for(i=0;i<t.recommendedcontentkeywords.length;i++)for(s=0;s<t.recommendedcontentkeywords[i].keywords.length;s++)t.recommendedcontentkeywords[i].keywords[s].toLowerCase()===f.toLowerCase()&&(f=t.recommendedcontentkeywords[i]._id);cu(!0,e,f,1,t.componentsettings.maxrecommendedcontentitems,u)}else e==="default-featuredarticles.search"?cu(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,u,w):e==="default-blogsbyblogname"?c(!0,e,vt+","+uu+","+fu,1,t.componentsettings.maximumsearchresultsperpagination,u,w):e==="default-blogsbyblogauthor"?c(!0,e,yt,1,t.componentsettings.maximumsearchresultsperpagination,u,w):e==="default-blogsbyblogtopic"?c(!0,e,pt,1,t.componentsettings.maximumsearchresultsperpagination,u,w):cu(!0,e,f,h,t.componentsettings.maximumsearchresultsperpagination,u);pu=!1}else if(ii=ti,e=="recommendedcontentitems.search"){for(i=0;i<t.recommendedcontentkeywords.length;i++)for(s=0;s<t.recommendedcontentkeywords[i].keywords.length;s++)t.recommendedcontentkeywords[i].keywords[s].toLowerCase()===f.toLowerCase()&&(f=t.recommendedcontentkeywords[i]._id);c(!0,e,f,1,t.componentsettings.maxrecommendedcontentitems,u)}else e==="default-featuredarticles.search"?c(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,u,w,gt,ni):e==="default-blogsbyblogname"?c(!0,e,vt+","+uu+","+fu,1,t.componentsettings.maximumsearchresultsperpagination,u,w):e==="default-blogsbyblogauthor"?c(!0,e,yt,1,t.componentsettings.maximumsearchresultsperpagination,u,w):e==="default-blogsbyblogtopic"?c(!0,e,pt,1,t.componentsettings.maximumsearchresultsperpagination,u,w):c(!0,e,f,h,t.componentsettings.maximumsearchresultsperpagination,u);ot=1;n(document.activeElement).parents("div").hasClass("reinvent-checkbox")&&n(document.activeElement).hasClass("ion-android-checkbox-blank")&&ve()},ae=function(){var f,i;if(ur(),o=new URLSearchParams(window.location.search),ot===0?s=parseInt(o.get("pg")):ot===1&&(s=1,k=s),t!=null&&t.keywordsearchfilters!=null)for(i=0;i<t.keywordsearchfilters.length;i++)f=t.keywordsearchfilters[i],n("#"+f.metadatafieldname+"-redesign-facet input[type=checkbox]").each(function(){var i=n(this).val(),e=nt.includes(i),t,f;if(n(this).is(":checked")||e!==!0||ot!==1||eu===1){if(n(this).is(":checked")&&ot===1&&/srk/.test(window.location.href))for(t=0;t<nt.length;t++)f=window.location.search.split("filter=")[1].replace(/%20/g," ").replace(/%26/g,"&").split("+"),f.includes(nt[t])||(y("srk",v(r.val()),"pg",k,"sb",u,"filter",ft),ot=0)}else for(t=0;t<nt.length;t++)nt[t]===i&&(nt.splice(t,1),/srk/.test(window.location.href)&&y("srk",v(r.val()),"pg",k,"sb",u,"filter",nt))});if(eu===1){for(i=0;i<nt.length;i++)n('.redesign-search-filters input[value="'+nt[i]+'"]').is(":checked")||(nt.splice(nt[i],1),i=i-1,eu=0);/srk/.test(window.location.href)&&eu===0&&y("srk",v(r.val()),"pg",k,"sb",u,"filter",nt)}},lh=function(n){for(var i,t=0;t<n.length;t++)for(i=t+1;i<n.length;i++)n[t].replace(/\s{2,}/g," ").trim()===n[i].replace(/\s{2,}/g," ").trim()&&n.splice(t,1);return n},ve=function(){b=n(document.activeElement);ge="."+b.parents("div")[0].classList[1];no=b.siblings("input")[0].id;bf=!0;ku=!0};n(document.activeElement).on("keydown",function(t){var i=t.keyCode,r="",tt=n(document.activeElement).parents("div").hasClass("redesign-search-filters-container"),h=n(document.activeElement).parents("div").hasClass("redesign-sort"),c=n(document.activeElement).parent("div").hasClass("redesign-search-filters"),e=n(document.activeElement).hasClass("ion-android-checkbox-blank"),it=n(document.activeElement).parents("div").hasClass("search-results-container"),rt=n(document.activeElement).parents("div").hasClass("search-results-header"),ut=n(document.activeElement).parents("section#footer-block").length>0,ft=n(document.activeElement).parents("div").hasClass("reinvent-pagination"),a=n(".search-filter-panel").find("div.reinvent-filter-category").last().hasClass("is-open"),v=n(".search-filter-panel").find("div.reinvent-filter-category").last().hasClass("corporate-semibold"),ot=n(document.activeElement).parents("div").hasClass("did-you-mean-container"),st=n(document.activeElement).hasClass("prev-page-btn"),ht=n(".reinvent-pagination").length>0,ct=n(".reinvent-pagination").css("display")!=="none",o=n(".search-filter-panel").children().length>0,y=n(".did-you-mean-container").css("display")!=="none",lt=n(document.activeElement).parent("form").hasClass("search-hero-form"),p,w,k,d,g,nt,u,s,f;if(gi=l.is(":visible"),lt===!0)i===9&&t.shiftKey===!1&&y===!0&&(t.preventDefault(),n("#did-you-mean-link").trigger("focus"));else if(tt==!0)if(p=n(".search-filter-panel").children("div").last()[0].children[1].classList[1],w=n(".search-filter-panel").children("div").first().children("div")[1].classList[1],i===9)t.shiftKey===!1?h===!0?(k=n(".redesign-sort").children("a").last()[0].id,n(document.activeElement)[0].id===k&&(t.preventDefault(),gi?l.trigger("focus"):n(".search-results-section").children("div").first().find("a").trigger("focus"))):c==!0?n(document.activeElement)[0].innerText.toUpperCase().replace(/\s/g,"")===p&&n(document.activeElement).hasClass("is-open")==!1&&ri&&n(".search-results-section").children("div").last().find("a").trigger("focus"):e===!0?(r="."+n(".search-filter-panel").children("div").last().find(".reinvent-checkbox")[0].classList[1],n(".reinvent-checkbox"+r).find("li").last().find("input")[0].id===n(document.activeElement).siblings("input")[0].id&&ri&&n(".search-results-section").children("div").last().find("a").trigger("focus")):ri||(n(document.activeElement).hasClass("reinvent-close-filter")||n(document.activeElement).hasClass("reinvent-apply-filter")?(et.find(".filter-close").trigger("focus"),t.preventDefault()):n(document.activeElement).hasClass("reinvent-filter-results")&&(at.find("div.reinvent-filter-category").first().trigger("focus"),t.preventDefault())):t.shiftKey===!0&&(c===!0?n(document.activeElement).siblings("div")[0].classList[1]===w&&ri&&(t.preventDefault(),n(".search-results-container").find("div.search-results-header").last().find("a").trigger("focus")):h===!0?(d=n(".redesign-sort").children("a").first()[0].id,y===!0&&n(document.activeElement)[0].id===d&&(t.preventDefault(),n("#did-you-mean-link").trigger("focus"))):ri||(n(document.activeElement).hasClass("reinvent-close-filter")||n(document.activeElement).hasClass("reinvent-apply-filter")?(at.find("div.reinvent-filter-category").last().hasClass("corporate-semibold")?at.find("div.reinvent-filter-category").last().next().find("li:visible").last().find("span.icon-check-checkbox")[0].focus():at.find("div.reinvent-filter-category").last().trigger("focus"),t.preventDefault()):n(document.activeElement).hasClass("filter-close")&&(et.find(".reinvent-close-filter").is(":visible")?et.find(".reinvent-close-filter").trigger("focus"):et.find(".reinvent-apply-filter").trigger("focus"),t.preventDefault())));else if(i===13||i===32){if(b=n(document.activeElement),b.hasClass("ion-android-checkbox-blank"))if(i===32)ve(),n(document.activeElement)[0].click();else return;else b.hasClass("sort-unselected")?i===13&&(di.attr("aria-pressed","false"),ki.attr("aria-pressed","false"),b[0].id==="reinvent-filter-most-recent"?di.attr("aria-pressed","true"):b[0].id==="reinvent-filter-most-relevant"&&ki.attr("aria-pressed","true"),n(document.activeElement)[0].click()):b.parent("div").hasClass("redesign-search-filters")&&n(document.activeElement)[0].click();ku=!0;b.hasClass("reinvent-filter-results")||t.preventDefault()}else i===38?e==!0&&(t.preventDefault(),n(document.activeElement).parents("li").prev().find("span.icon-check-checkbox").trigger("focus")):i===40&&e===!0&&(t.preventDefault(),n(document.activeElement).parents("li").next().find("span.icon-check-checkbox").trigger("focus"));else it===!0?(g=n(".search-results-container").find("div.search-results-header").first().find("a")[0].attributes[2].nodeValue,nt=n(".search-results-container").find("div.search-results-header").last().find("a")[0].attributes[2].nodeValue,t.shiftKey===!0&&i===9?rt===!0&&n(document.activeElement)[0].attributes[2].nodeValue==g&&pi===!1&&(t.preventDefault(),gi?l.trigger("focus"):n(".redesign-sort").find("a[tabindex='0']").trigger("focus")):t.shiftKey===!1&&i===9&&n(document.activeElement)[0].attributes[2].nodeValue===nt&&o===!0&&(t.preventDefault(),gi?kt.find("a").first().trigger("focus"):n(".search-filter-panel").find("div.reinvent-filter-category").first().trigger("focus"))):ot?t.shiftKey===!1&&i===9?haveFilters===!0&&(t.preventDefault(),n(".redesign-sort").children("a").first().trigger("focus")):t.shiftKey===!0&&i===9&&(t.preventDefault(),n(".search-hero-form").children("button").trigger("focus")):ft===!0?t.shiftKey===!0&&i===9&&st===!0&&o===!0&&(t.preventDefault(),a===!0||v===!0?n(".reinvent-checkbox"+r).find("li").last().find("span.ion-android-checkbox-blank").trigger("focus"):gi?yf.find("div.search-results-header").last().find("a")[0].focus():at.find("div.reinvent-filter-category").last().trigger("focus")):ut===!0&&t.shiftKey===!0&&i===9&&(ht===!0&&ct===!0||(u="."+n(document.activeElement).parent("span").parent("div")[0].classList[0],f="",u===".col-xs-4"?(s=n(document.activeElement).parents(".footer-links-container"),f="div"+u):(s=n(document.activeElement).parents(u).parent("div"),f="span"),s.prev().length<1&&n(document.activeElement).parents(f).prev().length<1&&o===!0&&(t.preventDefault(),a===!0||v===!0?n(".reinvent-checkbox"+r).find("li").last().find("span.ion-android-checkbox-blank").trigger("focus"):n(".search-filter-panel").find("div.reinvent-filter-category").last().trigger("focus"))))});gr.on("keydown click",".reinvent-apply-filter",function(n){var t=n.originalEvent.key!=undefined?!1:!0,i=t==!1&&(n.keyCode==13||n.keyCode==32)?!0:!1;(t||i)&&(b=l,eu=1,ae(),it.modal("hide"),ii=ti,sf())});sf=function(){var r,o,n,i;if(et.removeClass(lu),r=t.componentsettings.maximumsearchresultsperpagination,o=r*k+1-r,e=="recommendedcontentitems.search"){for(n=0;n<t.recommendedcontentkeywords.length;n++)for(i=0;i<t.recommendedcontentkeywords[n].keywords.length;i++)t.recommendedcontentkeywords[n].keywords[i].toLowerCase()===f.toLowerCase()&&(f=t.recommendedcontentkeywords[n]._id);c(!0,e,f,1,t.componentsettings.maxrecommendedcontentitems,u)}else e==="default-featuredarticles.search"?c(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,u,w,gt,ni):c(!0,e,f,o,t.componentsettings.maximumsearchresultsperpagination,u);he()};hf=function(){var t=n("html").hasClass(".safari");(t||jsUtility.isMobileBrowser()!=null)&&jsUtility.isMobile()&&(n(".search-filter-result").addClass("align-search-filter-result"),n(".filter-close").addClass("align-filter-close"),n(".reinvent-filter-footer").addClass("align-reinvent-filter-footer"))};n("#reinvent-filter-most-recent").on("click",function(){u=1;/srk/.test(window.location.href)&&y("srk",v(r.val()),"pg",1,"sb",u,"filter",ft);cf(u)});n("#reinvent-filter-most-relevant").on("click",function(){u=0;/srk/.test(window.location.href)&&y("srk",v(r.val()),"pg",1,"sb",u,"filter",ft);cf(u)});au=function(){n("#reinvent-filter-most-recent").removeAttr("class");n("#reinvent-filter-most-relevant").removeAttr("class");n("#reinvent-filter-most-recent").attr("aria-pressed","false");n("#reinvent-filter-most-relevant").attr("aria-pressed","false");u==1?(n("#reinvent-filter-most-recent").addClass("sort-selected"),n("#reinvent-filter-most-recent").attr("aria-pressed","true"),n("#reinvent-filter-most-relevant").addClass("sort-unselected")):(n("#reinvent-filter-most-relevant").addClass("sort-selected"),n("#reinvent-filter-most-relevant").attr("aria-pressed","true"),n("#reinvent-filter-most-recent").addClass("sort-unselected"))};cf=function(n){var i,u;if(yi=0,s=1,yu=!0,au(),r.typeahead("val",f),e=="recommendedcontentitems.search"){for(i=0;i<t.recommendedcontentkeywords.length;i++)for(u=0;u<t.recommendedcontentkeywords[i].keywords.length;u++)t.recommendedcontentkeywords[i].keywords[u].toLowerCase()===f.toLowerCase()&&(f=t.recommendedcontentkeywords[i]._id);c(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,n)}else e==="default-featuredarticles.search"?c(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,n,w,gt,ni):c(!0,e,f,1,t.componentsettings.maximumsearchresultsperpagination,n)};ViewAllRedesignSerp={ViewAllClick:function(n){ir=!0;var t={ViewAllClickTriggeredRedesignSERP:ir,keyword:n.attr("data-keywords"),viewAllPostIndustry:n.attr("data-blog-post-industry"),viewAllPostSubject:n.attr("data-blog-post-subject"),componenttype:n.attr("data-component-type"),searchEnabled:n.attr("data-search-enabled"),cherryPickIds:n.attr("data-cherrypick"),searchParamId:n.attr("data-metadata-search-id"),currentPageId:n.attr("data-current-page"),pageTitleMetadata:n.attr("data-pagetitle-metadata"),viewAllSortBy:n.attr("data-sort-by"),hasMetadataSearchSelection:n.attr("data-has-metadata-search-selection")},i=JSON.stringify(t);localStorage.setItem("ViewAllAttributes",i)}};var ah=function(){var r,i,n;to=localStorage.getItem("ViewAllAttributes");ct=JSON.parse(to);vr=ct.keyword;oi=ct.componenttype;tu=ct.cherryPickIds;iu=ct.searchParamId;ru=ct.currentPageId;io=ct.viewAllSortBy;u=io;r=ct.hasMetadataSearchSelection;oi==="blogsbyblogname"?(vt=vr,uu=ct.viewAllPostIndustry,fu=ct.viewAllPostSubject):oi==="blogsbyblogauthor"?(i=vr.split("|"),yt=i[0]?i[0]:"",kf=i[1]?i[1]:""):oi==="blogsbyblogtopic"&&(pt=vr);n="";t!=null&&r&&(n="default",t.componentsettings.showsuggestedtopics==!0&&t.suggestedtopickeywords!=null&&ih(t.suggestedtopickeywords,vr,t.componentsettings.maxsuggestedtopicitems,n),n+="-"+oi,oi==="blogsbyblogname"?c(!0,n,vt+","+uu+","+fu,1,t.componentsettings.maximumsearchresultsperpagination,u,iu,tu,ru):oi==="blogsbyblogauthor"?c(!0,n,yt,1,t.componentsettings.maximumsearchresultsperpagination,u,iu,tu,ru):oi==="blogsbyblogtopic"?c(!0,n,pt,1,t.componentsettings.maximumsearchresultsperpagination,u,iu,tu,ru):c(!0,n,vr,1,t.componentsettings.maximumsearchresultsperpagination,u,iu,tu,ru))},vh=n("a.ion-ios-search"),yh=n("div.search-icon-container");vh.on("focus",function(){yh.addClass("redesign-serp")});vh.on("blur",function(){yh.removeClass("redesign-serp")});return ye=function(){var t=n(".content-wrapper");if(t.hasClass("focus-indicator"))n(document.activeElement).on("mousedown",function(){var t=n(".page-num, .search-result-link");setTimeout(function(){t.trigger("blur")},0)})},{keywordSuggestions:ai,searchHeroSettings:t,autoCompleteKeywords:vi,FormatSearchHeroValue:p,Init:wh,AppendPolyfillForIE:uo,InitializeKeywordSuggestions:ne,GetPath:du,SetDefaultPath:te,Typeahead:fo,ShowResults:us,ShowFilters:se,FilterResults:le,IsFilterSelected:ch,RemoveAllFilters:hh,ToggleSort:au,RetainFocusOnFilter:ve,isSerpTablet:d,FilterSortBy:cf,CloseAccordions:ff,ToggleFilterButton:he,ShowFilterFooter:of,ResetFilterSelect:uf,CheckOpenedAccordions:ef,RemoveClassCallback:lu,CheckFiltersBrowser:hf,OpenAccordions:sh,ShowSortByOnly:oh,GetSearchData:ue,GetAutocompleteKeyword:fs,RemoveTags:h,StoreRecentSearch:es,SelectRecentSearch:os,DisplayRecentSearch:hi,HideSearchResults:ou,HideFilters:sr,SpacesAndSingleCharacter:lt,InitializeStartSearch:tf,StartSearch:su,SearchTips:as,NoSearchResults:ys,ResultsForKeyword:ps,ShowNumberResults:ws,DidYouMean:bs,AllResults:ks,ClickRecentSearch:ds,DisplayContentType:gs,DisableForm:rf,EnableForm:nh,CallBack:th,PerformSearch:c,PreviousPage:rh,NextPage:uh,ChangePage:oe,GeneratePagination:so,AddEllipsis:re,ClearedFeaturedSearchResults:nf,RecentSearchHide:ci,EventHandlers:cs,GetFeaturedImagePath:ho,CheckHighlightedTopicHeaderUrl:co,CheckHighlightedTopicHeader:lo,DisplayHighlightedEventRegister:ao,HighlightedTopicItems:vo,SearchResultsElements:yo,SearchResultsContentType:po,SearchResultsDateCategory:wo,SearchResultsTitle:bo,SearchResultsContent:ko,SearchResultsDescription:go,HighlightContentDescription:ns,RecommendedSearchbyKeywords:ie,SetSearchHeroSettings:is,SetSuggestionQuery:rs,SelectViewAll:eo,SelectSuggestion:oo,StoreLocalStorage:fr,SearchFieldMouseEvents:ss,SearchFieldKeyboardEvents:hs,TabIndexAccessibility:gu,FirefoxAccessibility:er,ViewAllSearch:ah,SafariAccessibility:or,ScrollUp:hu,FeaturedSectionDisplayControl:ee,ChangeFocus:fh,AriaLiveControl:wt,PerformSuggestedTopicSearch:ih,AddRemoveFilterFromUrl:ae,RemoveDuplicatedFilterStorage:lh,SearchFilterMobile:sf,ManualAddFilter:ts,highlightedForFiltersDisplayControl:ls,ResetArrays:si,ConvertCharacter:fe,IncludesPolyfillForIE:ro,removeFocusIndicatorOnClick:ye}}),ComponentRegistry.Download){function setDownloadModuleContent(n,t,i,r){var f=JSON.parse(r),e,s,u,o;for($("#download-module-header").html(n),$("#download-module-description").html(t),e=document.getElementById("DownloadItems");e.hasChildNodes();)e.removeChild(e.lastChild);for(u=0;u<f.length;u++)s=typeof f[u].LinkName!="undefined"?f[u].LinkName.toLowerCase():"",$("#DownloadItems").append("<div class='wrapper-icon'><span class='acn-icon sm icon-circle color-"+i+"'><span class='icon-text text-only'>"+(u+1)+"<\/span><\/span><\/div><br/><p class='download-module-link'>"+f[u].DisplayText+"<\/p><a href='"+f[u].Link+"' class='color-"+i+"' target='_blank' data-analytics-link-name='"+s+"' data-analytics-content-type='engagement'>"+f[u].LinkName+"<\/a><br/>");o=$("#download-module-modal");o.modal("show");$("#scCrossPiece").length>0&&o.css({"margin-top":"100px"})}$("#download-module-button").on("click",function(){$("#download-module-modal").modal("hide")});isDesktop()&&(objAlive=typeof downloadLocalStorage!="undefined"&&downloadLocalStorage!=null,objAlive&&(branchId=downloadLocalStorage.getItem("BranchId"),(branchId=="{7FAFC20C-52C2-4F17-A73D-333D190B1A94}"||branchId=="{6B8238E7-322A-4172-8C0B-CB2246AE1FF6}")&&$("#toolbar").find($("#DownloadModule").addClass("hidden-lg hidden-md"))));$("div#DownloadModule a").attr("title","Download")}if(ComponentRegistry.JumpLink){var mobile_screen=767,tab_screen_min=768,tab_screen_max=991,browserHeight=$(window).height()!==undefined?$(window).height():0,aBarOffset=0,jumpLinkDropDown=$("#jumplink-dropdown");function setDropdownHeight(){var n,t;bHeight=$(window).height()!==undefined?$(window).height():0;n=0;n=$("#block-jumplink").outerHeight()+$("#header-topnav").outerHeight();t=bHeight-n;setIOSView(bHeight);jumpLinkDropDown.css({"max-height":t+aBarOffset,"overflow-y":"auto"});jumpLinkDropDown.find("li").last().css("margin-bottom","0px")}function setIOSView(n){pageState.isIOS&&!windowWidth<=mobile_screen&&(n<704?(n==681&&(aBarOffset=58),n==671&&(aBarOffset=68),n==648&&(aBarOffset=85)):aBarOffset=35)}function changeNavTotal(){var n=$("#jumplink-dropdown li").length-1;$("#total-navigation").html(n)}window.onload=function(){changeNavTotal()};$(function(){function u(){var t=0,i=$("#content-wrapper > section > div:first-child > div.block-title.first"),u=$(".customLogo"),n,r;return i.length!==0&&u.length!==0&&(n=$("#content-wrapper > section > div:first-child"),r=n.attr("id"),n.length!==0&&r.substring(0,5)=="block"&&typeof i.offset()!="undefined"&&typeof n.offset()!="undefined"&&(t=i.offset().top-n.offset().top,t<1&&(t=0))),t}var n,t,r;if($("#block-jumplink").hide(),changeNavTotal(),(pageState.ieno=="11"||pageState.ieno=="10")&&jumpLinkDropDown.css("margin-right",17),n=$("#jumplink-dropdown li").length,t=$(".block-title").length,branchTemplate=="{36BD0663-9AAE-4B1F-9374-2CD6261F2CE9}")for(n=$("#jumplink-dropdown li").length,t=$(".block-title").length,i=t;i<n;i++)r=$(".block-title").length,$("#jumplink-dropdown li").eq(r).remove();$("#total-navigation").html()=="-1"&&$("#total-navigation").html(totalnav);$("#jumplink-page-up").on("click",function(n){var t=$("#jumplink-dropdown li.activeli").prev();if($(t).children("a").attr("data-jump-link-number")==0){$("#jumplink-dropdown").hide();n.preventDefault();return}$("#jumplink-dropdown").is(":visible")&&$("#jumplink-dropdown").hide();JumpLink.ScrollTo($(t).children("a").attr("href"))});$("#jumplink-page-down").on("click",function(n){var t=$("#jumplink-dropdown li.activeli").next();if($(t).children("a").attr("data-jump-link-number")==null){$("#jumplink-dropdown").hide();n.preventDefault();return}$("#jumplink-dropdown").is(":visible")&&$("#jumplink-dropdown").hide();JumpLink.ScrollTo($(t).children("a").attr("href"))});$(".to-top").on("click",function(){$("html, body").animate({scrollTop:0},500);$(window).scrollTop()===0&&($("#jumplink-dropdown").hide(),$("#block-jumplink").hide())});$(window).on("scroll resize orientation",function(){var r=$("#scCrossPiece").height()!==undefined?$("#scCrossPiece").height():0,o=$("#header-topnav").outerHeight(),i=0,f,e;$(".cookie-nav").is(":visible")&&(i=$(".cookie-nav").height()!==undefined?$(".cookie-nav").height():0);windowWidth<=mobile_screen||setDropdownHeight();f=o+r+i;e=$("#jumplink-dropdown li").length-1;$("#total-navigation").html(e);$("#block-jumplink").show().css("top",f);$(window).scrollTop()===0&&$("#block-jumplink").hide();var s=$("#jumplink-dropdown li")[1],h=$("#jumplink-dropdown").css("background-color"),t=$(s).children("a").attr("href"),c=$(window).scrollTop()+r,l=$(t).length?$(t).offset():0,n=l.top-c-i;$(t).children("div").first().hasClass("iscrisscrossed")&&(n=$(window).width()<=mobile_screen?n-100:$(window).width()>=tab_screen_min&&$(window).width()<=tab_screen_max?n-100:n-125);$(t).children("div").first().hasClass("iscrisscrossed")||(n=$(window).width()<=mobile_screen&&$(window).width()>=tab_screen_min&&$(window).width()<=tab_screen_max?n+40:n+25);$(window).width()>=tab_screen_min&&$(window).width()<=960&&(n=n+u());n<=u()?($("#block-jumplink .lateral-navigation").animate({top:"13px"},0),$("#jump-link-headline").css("visibility","visible")):($("#jumplink-dropdown").hide(),$("#jump-link-headline").css("visibility","hidden"),$("#block-jumplink .lateral-navigation").animate({top:"-33px"},0));$(".block-title").each(function(){var e=$("#scCrossPiece").height()!==undefined?$("#scCrossPiece").height():0,i=0,r,u;if($(".cookie-nav").is(":visible")&&(i=$(".cookie-nav").height()!==undefined?$(".cookie-nav").height():0),r=$(t).children("div").first().hasClass("iscrisscrossed")?100+e:100,u=$(this).length?$(this).offset():0,u.top-r-i-$(window).scrollTop()<=0){var f=$(this).parent().attr("id"),n=$('#jumplink-dropdown a[href="#'+f+'"]'),o="#"+f;$("#jump-link-headline").html($(n).children("span").html());$("#jumplink-dropdown li").removeClass("activeli");$("#jumplink-dropdown li a").css("background-color",h);$("#jumplink-dropdown li a").each(function(){if(o==$(this).attr("href")){n.parent().addClass("activeli");var t=$(n).parent(),i=$("#block-jumplink").css("background-color");t.attr("class")=="activeli"&&($("#current-navigation").html($(t).children("a").attr("data-jump-link-number")),$(".activeli a").css("background-color",i));$("#total-navigation").html($("#jumplink-dropdown li").length-1)}})}})});$("#jumplink-lateral-nav button").on("click",function(){var n,t,i;JumpLink.ToggleDropdownIcon();$("#jumplink-dropdown").is(":visible")||(n=0,n=$("#block-jumplink").outerHeight()+$("#header-topnav").outerHeight(),t=0,$(".cookie-nav").is(":visible")&&(t=$(".cookie-nav").outerHeight(),n+=t),i=browserHeight-n,$("#jumplink-dropdown").css("max-height",i),$("#jumplink-dropdown").css("overflow-y","auto"),$("#jumplink-dropdown li").last().css("margin-bottom","0px"))});$("#scrollspy").on("click",function(){return setDropdownHeight(),jumpLinkDropDown.toggle(),!1});$(document).on("click",function(){$("#jumplink-dropdown").hide()});$("div.ui-content-box a").eq(0).on("keydown",function(n){var t=$("#block-jumplink span.to-top a");n.which==9&&$(t).is(":visible")&&(n.preventDefault(),$("#block-jumplink span.to-top a").trigger("focus"))})});$("#jumplink-dropdown li a").on("click",function(n){var t=$(this).attr("href");if($(this).parent().hasClass("activeli")){$("#jumplink-dropdown").hide();n.preventDefault();return}$("#jumplink-dropdown").is(":visible")&&$("#jumplink-dropdown").hide();JumpLink.ScrollTo(t)});jumplinkColor=$("#block-jumplink").css("background-color");jumplinkDDownColor=$("#jumplink-dropdown").css("background-color");$("#jumplink-dropdown li a").on("mouseenter",function(){$(this).parent().hasClass("activeli")||$(this).css("background-color",jumplinkColor)}).on("mouseleave",function(){$(this).parent().hasClass("activeli")||$(this).css("background-color",jumplinkDDownColor)});$("#jumplink-page-up").on("mouseenter",function(){$(this).css("opacity",.8)}).on("mouseleave",function(){$(this).css("opacity",1)});$("#jumplink-page-down").on("mouseenter",function(){$(this).css("opacity",.8)}).on("mouseleave",function(){$(this).css("opacity",1)});JumpLink={ToggleDropdownIcon:function(){},ScrollTo:function(n){var f=0,u;$(".cookie-nav").is(":visible")&&(f=$(".cookie-nav").height()!==undefined?$(".cookie-nav").height():0);var l=$("#content-wrapper > section > div:first-child > div.block-title.first").innerHeight(),o=$("#accent").hasClass("accent-container customLogo"),s=103,r=95,e=68,h=-40,c=$("div[id='"+n.substr(1)+"']"),i=c.length?c.offset():0,t=i.top-103;isMobile()&&(h=-25);$("div[id='"+n.substr(1)+"'] .block-title").first().hasClass("first")&&(s=-40,r=h,e=h);$("div[id='"+n.substr(1)+"'] .block-title").first().hasClass("iscrisscrossed")&&(s=103,r=99,e=80);u=$(window).width();u<=mobile_screen?(t=i.top-e,$('#jumplink-dropdown a[href="'+n+'"]').attr("data-jump-link-number")==1&&(t=i.top-e),$("html, body").animate({scrollTop:t-($("#scCrossPiece").height()!==undefined?$("#scCrossPiece").height():0)-f},750)):u>=tab_screen_min&&u<=tab_screen_max?(t=i.top-r,$('#jumplink-dropdown a[href="'+n+'"]').attr("data-jump-link-number")==1&&(t=i.top-r,o&&(t+=12)),$("html, body").animate({scrollTop:t+5-($("#scCrossPiece").height()!==undefined?$("#scCrossPiece").height():0)-f},750)):u>=tab_screen_max&&u<=1024?(t=i.top-r,$('#jumplink-dropdown a[href="'+n+'"]').attr("data-jump-link-number")==1&&(t=i.top-r,o&&(t+=15)),$("html, body").animate({scrollTop:t+5-($("#scCrossPiece").height()!==undefined?$("#scCrossPiece").height():0)-f},750)):($('#jumplink-dropdown a[href="'+n+'"]').attr("data-jump-link-number")==1&&(t=i.top-s,o&&(t-=l)),$("html, body").animate({scrollTop:t+5-($("#scCrossPiece").height()!==undefined?$("#scCrossPiece").height():0)-f},750))}}}if(ComponentRegistry.TimelineModule&&$(function(){function s(){function ft(n,t){i=n/t}function et(t){n.find("span[class^='timeline-milestone-']").each(function(){var n=$(this)[0];n.style.left=(Number(n.style.left.replace("px",""))+t).toString()+"px"})}function ot(){var t,r;for(n.find("span[class^='timeline-milestone-']").remove(),t=0;t<=g;t++)r="",isMobile()&&t>=4?(r="display: none;",n.append("<span class='timeline-milestone-steps' data-step='"+t+"' style='left:"+t*i+"px;"+r+"'><\/span>")):n.append("<span class='timeline-milestone-steps' data-step='"+t+"' style='left:"+t*i+"px'><\/span>"),t==0?n.append("<span class='timeline-milestone-caption timeline-milestone-caption-"+t+" active' style='left:"+t*i+"px'>"+tt[t].getAttribute("data-milestone")+"<\/span>"):n.append("<span class='timeline-milestone-caption timeline-milestone-caption-"+t+"' style='left:"+t*i+"px; "+r+"'>"+tt[t].getAttribute("data-milestone")+"<\/span>");isMobile()&&($(".timeline-outer").closest(".floatcontainer").css("margin-top",""),$(".timeline-user-fullname hr").css("width",$(".timeline-user-fullname .fullname").width()))}var tt=$(".timeline-inner .timeline-milestone"),s=0,d=0,it=!1,a=0,y=tt.length,c=30,g=y-1,l=Math.floor(g*c),rt=0,p=isMobile(),v=$("#mobile-slider-extension"),ht=$(".timeline-inner"),h=$(".timeline-inner .timeline-milestone.active"),w=h.children("p").text()+h.find(".timeline-year-number").text()+h.find(".module-article.item .quote.quote-text").text(),st=$.trim($(".timeline-milestone.active").children(".timeline-year-number").text()),nt,b,ut,k;for(h.find(".btn.btn-primary").text()!=""&&(w+=h.find(".btn.btn-primary").text()+"Button to Activate Press Shift Tab"),nt=$(".timeline-milestone").find("button"),b=0;b<nt.length;b++)$(nt[b]).attr({"data-analytics-link-name":$(nt[b]).text(),"data-analytics-content-type":"cta"});n.slider({min:0,max:l,value:rt,step:c,slide:function(){$(".ui-slider-handle").text("◄►")},change:function(u,o){var b=o.value,rt=!1,ut,ft,k,tt,nt;if($(".ui-slider-handle").attr("aria-valuenow",b),t=b/c+e,ut=$.trim($('[data-milestone-no="'+t+'"]').children(".timeline-year-number").text()),$(".ui-slider-handle").text("◄►").attr({"data-analytics-link-name":"timeline-milestone-caption-"+t+"-"+ut,"data-analytics-content-type":"timeline"}),p?(t=b/c,t>s?b==l?(s+=t-a,d=s*c):(s=t,d=b):a!=0&&(b==l||a<t)?(s+=t-a,d=s*c):s>0&&b<l&&!it&&(s-=a-t>=2?a-t:1,d=s*c,rt=!0),a=t,it=!0):s=t,p&&o.value==l&&r>=0?r>0?(v.removeClass("hidden"),et(0-i),n.slider({value:l-c}),r==1&&v.addClass("hidden"),r--,f++,t++):(t=g,e=1):p&&o.value==0&&f>=0&&(f>0?(v.removeClass("hidden"),et(i),n.slider({value:0+c}),f--,r++,t--):(t=0,e=0)),it=!1,$(".timeline-milestone.active").removeClass("active"),$(".timeline-inner").find('[data-milestone-no="'+s+'"]').addClass("active"),h=$(".timeline-inner .timeline-milestone.active"),w=h.children("p").text()+h.find(".timeline-year-number").text()+h.find(".module-article.item .quote.quote-text").text(),h.find(".btn.btn-primary").text()!=""&&(w+=h.find(".btn.btn-primary").text()+"Button to Activate Press Shift Tab"),$(".ui-slider-handle").attr("aria-valuetext",w),n.find(".timeline-milestone-caption.active").removeClass("active"),ft=$(".timeline-milestone-caption-"+s),ft.addClass("active"),p&&(k=s+1,k<y&&k>3&&(n.find(".timeline-milestone-caption-"+k).is(":visible")||(n.find(".timeline-milestone-caption-"+k).show(),n.find(".timeline-milestone-steps[data-step='"+k+"']").show())),rt))for(tt=3,s==0&&(tt=4),nt=s+tt;nt<y;nt++)n.find(".timeline-milestone-caption-"+nt).hide(),n.find(".timeline-milestone-steps[data-step='"+nt+"']").hide()}});ut="timeline-milestone-caption-0-"+st;$(".ui-slider-handle").text("◄►").attr({role:"slider","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":0,"aria-valuetext":w,"data-analytics-link-name":ut,"data-analytics-content-type":"timeline"});k=4;u=Number(n.css("width").replace("px",""));ft(u,g);p?(v.css("left",u),y>k&&(v.removeClass("hidden"),u=Number(n.css("width").replace("px","")),ft(u,k-1),o=y-k,r=o),ot(),l=Math.floor((k-1)*c),n.slider({max:l,value:rt}),$(".timeline-outer").closest(".floatcontainer").css("margin-top",""),$(".timeline-user-fullname hr").css("width",$(".timeline-user-fullname .fullname").width())):(ot(),v.addClass("hidden"))}var n=$(".timeline-outer .timeline-slider"),i=0,o=0,f=0,r=0,t,e=0,u=0;s();$(window).on("resize",function(){s()})}),ComponentRegistry.RichText&&$(function(){var n=$('span[scfieldtype="rich text"]');n.children("img").each(function(){$(this).hasClass("img-responsive")||$(this).addClass("img-responsive")})}),ComponentRegistry.EventCalendar&&$(function(){function c(n){if(n){var i;n.indexOf(":")!=-1?(t=!0,i=n.split(":"),i[0]=r(i[0]),e=i[1],isMobile()?EventCalendar.ShowDayView(new Date(i[0])):EventCalendar.ShowWeekView(new Date(i[0]))):(i=n,i=r(i),isMobile()?EventCalendar.ShowDayView(new Date(i)):EventCalendar.ShowWeekView(new Date(i)))}else return!1}function r(n){return n=n.substr(1),n.substring(0,3)+" "+n.substring(3,5)+" "+n.substring(5,9)}function f(n){var t=[],i;t=n.toDateString().split(" ");t[2].length==1&&(t[2]="0"+t[2]);i=t[1]+t[2]+t[3];window.location.hash=i;EventCalendar.UpdateUrlOnFilterChange()}function o(){history.pushState("",document.title,window.location.pathname+window.location.search)}var u=!1,t=!1,n={},e,s,h;(document.location.search&&(n=GetQueryStringKeyValue()),typeof EventCalendarAPICallFormatGetEventFilters!="undefined")&&(window.location.hash&&(u=!0),$calendarPageTitle=$("#block-hero .page-title"),$calendarPageHeader=$calendarPageTitle.find("h1"),$calendarPageSubHeader=$calendarPageTitle.find(".header-body"),EventCalendar={mode:3,isMonthView:!0,isWeekView:!1,isDayView:!1,currentDate:new Date,currentSunday:new Date,currentCalendarDate:new Date,data_Events:"",currentCalendarDate:"",UpdateTimeInfo:function(n){$(".timeInfo span[data-head-month]").text(months[n.getMonth()]);$(".timeInfo span[data-head-year]").text(n.getFullYear())},UpdateEventDateLabel:function(n){var t=months[n.getMonth()]+" "+n.getDate()+", "+n.getFullYear();$(".responsive-calendar-events .headline span.full").text(EventsForLabel+" "+t);$(".responsive-calendar-filters .headline .mobile > span").text(t)},ShowDayView:function(n){if(EventCalendar.isMonthView=!1,EventCalendar.isWeekView=!1,EventCalendar.isDayView=!0,EventCalendar.currentDate=n,t==!1&&f(EventCalendar.currentDate),EventCalendar.isDayView){$(".responsive-calendar .day-headers").hide();$(".responsive-calendar .controls").hide();$(".responsive-calendar .days").hide();$calendarPageHeader.css("display","none");$calendarPageSubHeader.css("display","none");$calendarPageTitle.append('<h1 class="headline"> <a href="#"> <span class="acn-icon icon-calendar-arrow-lt"> <\/span> <\/a> <span> <\/span> <\/h1>');$calendarPageHeaderMonthView=$calendarPageTitle.find("h1.headline");$calendarPageHeaderMonthView.find("a").on("click",function(){EventCalendar.ShowMonthView(EventCalendar.currentDate);$calendarPageHeaderMonthView.hide();o();EventCalendar.UpdateUrlOnFilterChange()});$(".responsive-calendar-events").show();var i=n.getMonth(),r=n.getDate(),u=n.getFullYear();$calendarPageHeaderMonthView.find("> span").text(months[i]+" "+r+", "+u);EventCalendar.ShowEvents(EventCalendar.currentDate,EventCalendar.currentDate)}},ShowWeekView:function(n){var n,u,h,s,r,i,c,l,a,v,e;if(EventCalendar.isMonthView=!1,EventCalendar.isWeekView=!0,EventCalendar.isDayView=!1,t==!1&&f(n),EventCalendar.isWeekView){for(n=n,u=n.addDays(n.getDay()*-1),EventCalendar.currentSunday=u,EventCalendar.currentDate=n,h='<div class="day" style="-webkit-transition: -webkit-transform 0.5s ease 0.28s; transition: -webkit-transform 0.5s ease 0.28s; -webkit-transform: rotateY(0deg);"><a data-day="{DAY}" data-month="{MONTH}" data-year="{YEAR}" analytics-no-content-click="true" data-analytics-content-type="event calendar" data-analytics-link-name="{MONTHAttr}-{DAYAttr}-{YEARAttr}">{DAY}<\/a><\/div>',s="",ctr=0;ctr<7;ctr++)r=u.addDays(ctr),i=h,n.getTime()==u.addDays(ctr).getTime()&&(i='<div class="day selected" style="-webkit-transition: -webkit-transform 0.5s ease 0.28s; transition: -webkit-transform 0.5s ease 0.28s; -webkit-transform: rotateY(0deg);"><a data-day="{DAY}" data-month="{MONTH}" data-year="{YEAR}" analytics-no-content-click="true" data-analytics-content-type="event calendar" data-analytics-link-name="{MONTHAttr}-{DAYAttr}-{YEARAttr}">{DAY}<\/a><\/div>'),i=i.replace("{DAY}",r.getDate()),i=i.replace("{MONTH}",r.getMonth()+1),i=i.replace("{YEAR}",r.getFullYear()),i=i.replace("{DAY}",r.getDate()),i=i.replace("{DAYAttr}",r.getDate()),i=i.replace("{MONTHAttr}",r.getMonth()+1),i=i.replace("{YEARAttr}",r.getFullYear()),s+=i;c='<div class="btn prev" data-analytics-content-type="event calendar" data-analytics-link-name="last week" analytics-no-content-click="true"><span class="acn-icon icon-calendar-arrow-lt color-primary"><\/div>';l='<div class="btn next" data-analytics-content-type="event calendar" data-analytics-link-name="next week" analytics-no-content-click="true"><span class="acn-icon icon-calendar-arrow-rt color-primary"><\/div>';$(".responsive-calendar > .days.week-view").html(c+'<div class="week">'+s+"<\/div>"+l);a=$(".pull-left.week-view").attr("title");v='<a class="pull-left week-view"><span class="acn-icon icon-back-to-month"><\/span><span class="text">'+a+"<\/span><\/a>";$(".controls .week-view").html(v);e=$(".pull-left.week-view[title] a");e.attr("data-analytics-content-type","event calendar");e.attr("data-analytics-link-name","back to month");e.attr("analytics-no-content-click","true");$(".controls .week-view").on("click",function(){EventCalendar.ShowMonthView(n);setTimeout(EventCalendar.SelectDateOnMonthCalendar,0);EventCalendar.ShowEvents(EventCalendar.currentDate,EventCalendar.currentDate);o();EventCalendar.UpdateUrlOnFilterChange()});EventCalendar.UpdateTimeInfo(n);$(".responsive-calendar .day-headers").addClass("week-view");$(".responsive-calendar .days.week-view .day a").on("click",function(){EventCalendar.currentDate=new Date($(this).attr("data-month")+"/"+$(this).attr("data-day")+"/"+$(this).attr("data-year"));f(EventCalendar.currentDate);t=!1;$(".responsive-calendar .days.week-view .day").removeClass("selected");$(this).parent().addClass("selected");EventCalendar.UpdateUrlOnFilterChange();EventCalendar.UpdateTimeInfo(EventCalendar.currentDate);EventCalendar.ShowEvents(EventCalendar.currentDate,EventCalendar.currentDate)});$(".responsive-calendar .days.week-view .btn").on("click",function(){$(this).hasClass("prev")?EventCalendar.ShowWeekView(EventCalendar.currentDate.addDays(-7)):EventCalendar.ShowWeekView(EventCalendar.currentDate.addDays(7))});EventCalendar.ShowEvents(EventCalendar.currentDate,EventCalendar.currentDate);$(".responsive-calendar > .days.week-view").show();$(".controls .week-view").show();$(".month-view").hide();$(".controls .month-view").hide()}},ShowMonthView:function(n){if(EventCalendar.isMonthView=!0,EventCalendar.isWeekView=!1,EventCalendar.isDayView=!1,u==!1&&(EventCalendar.currentCalendarDate.getFullYear()!=n.getFullYear()||EventCalendar.currentCalendarDate.getMonth()!=n.getMonth()||EventCalendar.currentCalendarDate.getDate()!=n.getDate())){var t=monthDiff(EventCalendar.currentCalendarDate,n);if(t<0)for(diff2=0;diff2>t;diff2--)$(".responsive-calendar").responsiveCalendar("prev");else for(diff2=0;diff2<t;diff2++)$(".responsive-calendar").responsiveCalendar("next")}EventCalendar.currentCalendarDate=n;EventCalendar.mode==1?($(".responsive-calendar .day-headers").show(),$(".responsive-calendar .controls").show(),$(".responsive-calendar .days").show(),$calendarPageHeaderMonthView.remove(),$calendarPageHeader.css("display","block"),$calendarPageSubHeader.css("display","block"),$(".responsive-calendar-events").hide()):($(".responsive-calendar .day-headers").removeClass("week-view"),$(".controls .week-view").hide(),$(".week-view").hide(),$(".month-view").show(),$(".controls .month-view").show())},GetEventsData:function(n,t,i){var r=EventCalendarAPICallFormatGetEvents,u=$(".responsive-calendar-filters .filter .state label").attr("data-value").length<=0?"null":$(".responsive-calendar-filters .filter .state label").attr("data-value"),f=$(".responsive-calendar-filters .filter .organization label").attr("data-value").length<=0?"null":$(".responsive-calendar-filters .filter .organization label").attr("data-value"),e=$(".responsive-calendar-filters .filter .type label").attr("data-value").length<=0?"null":$(".responsive-calendar-filters .filter .type label").attr("data-value");r=r.replace("{EventCollectionPathId}",EventCollectionPathId);r=r.replace("{EventCollectionLanguage}",acnPage.Language);r=r.replace("{dateStart}",n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate());r=r.replace("{dateEnd}",t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate());r=r.replace("{filterLocation}",u);r=r.replace("{filterOrganization}",f);r=r.replace("{filterType}",e);wsCall(r,i)},MarkEventsOnCalendar:function(){var u;for($(".responsive-calendar .day").removeClass("active"),ctr=0;ctr<EventCalendar.data_Events.length;ctr++){var o=EventCalendar.data_Events[ctr].EventName,e=new Date(EventCalendar.data_Events[ctr].EventDateTimeEndString.replace(/-/g,"/")),n=new Date(EventCalendar.data_Events[ctr].EventDateTimeStartString.replace(/-/g,"/")),f=e.getDate()-n.getDate(),t=n.getDate(),r=n.getMonth()+1;if(f>0)for(i=0;i<=f;i++)u=n.addDays(i),t=u.getDate(),r=u.getMonth()+1,$(".responsive-calendar .days a[data-month="+r+"][data-day="+t+"]").parent().addClass("active");else $(".responsive-calendar .days a[data-month="+r+"][data-day="+t+"]").parent().addClass("active")}},ShowEventsCallback:function(n){var f,s,r;for($(".responsive-calendar-events .event:visible").remove(),$(".responsive-calendar-events .no-events").hide(),EventCalendar.UpdateEventDateLabel(EventCalendar.currentDate),EventCalendar.data_Events=n,f="",ctr=0;ctr<EventCalendar.data_Events.length;ctr++){var h=new Date(EventCalendar.data_Events[ctr].EventDateTimeEndString.replace(/-/g,"/")),u=new Date(EventCalendar.data_Events[ctr].EventDateTimeStartString.replace(/-/g,"/")),o=h.getDate()-u.getDate(),c=u.getDate(),l=u.getMonth()+1;if(o>0)for(i=0;i<=o;i++)s=u.addDays(i),f+=EventCalendar.showEventOnDay(s,EventCalendar.data_Events[ctr]);else f+=EventCalendar.showEventOnDay(u,EventCalendar.data_Events[ctr])}$(".responsive-calendar-events").append(f);$(".responsive-calendar-events .event:visible").each(function(){var n=$(this).find(".media .item"),i=n.find('img[src!=""]').length,r=n.find(".media-container").length,u=i+r,t=!0;n.each(function(){$this=$(this);$this.removeClass("active");($this.find('img[src!=""]').length>0||$this.find(".media-container").length>0)&&($this.css("display",""),u>1&&$(".responsive-calendar-events .event:visible .media .carousel-indicators li").eq($(this).index()).show(),t&&$this.addClass("active"),t=!1)});$(this).find('.location .content img[src=""]').css("display","none");$(this).find(".remind-me").attr("data-show-option")==="false"&&$(this).find(".remind-me").hide();$(this).find(".map-it").attr("data-show-option")==="false"&&$(this).find(".map-it").hide()});$(".responsive-calendar-events .event:visible").length>0?(r=$(".responsive-calendar-events .event:visible").eq(0),r.find(">a").removeClass("collapsed"),r.find(">a").attr("data-analytics-link-name","collapse button"),r.find(">a").attr("analytics-no-content-click","true"),r.find(">div").removeClass("collapsed"),r.find(">div").addClass("in"),r.find(">div").css("height","auto"),r.addClass("open")):$(".responsive-calendar-events .no-events").show();t==!0&&$(".responsive-calendar-events .event").each(function(){var n=$(this);n.children("a").children("h2").attr("id")==e?(n.find(">a").removeClass("collapsed"),n.find(">div").removeClass("collapsed"),n.find(">div").addClass("in"),n.find(">div").css("height","auto"),n.addClass("open")):(n.removeClass("open"),n.find(">a").addClass("collapsed"),n.find(">div").addClass("collapsed"),n.find(">div").removeClass("in"))});$(".responsive-calendar-events .event > a > h2").on("click",function(){$(this).parent().parent().toggleClass("open");var n=$(".responsive-calendar-events .event > a").attr("data-analytics-link-name")==="expand button"?"collapse button":"expand button";$(".responsive-calendar-events .event > a").attr("data-analytics-link-name",n);$(".responsive-calendar-events .event > a").attr("analytics-no-content-click",!0)});$(".event").each(function(){$(this).parent().hasClass("event-template")||($(this).find(".event-social-likes").each(function(){$(this).removeClass("event-social-likes");$(this).addClass("social-likes-post social-likes social-likes_single socialSharePopover popover-content")}),$(this).find(".social-likes").socialLikes(),$(this).find(".social-likes__widget").each(function(){$(this).popover({html:!0,placement:"bottom",container:"body",content:function(){return $(this).parent().find(".popover-content").html()}})}))});EventCalendar.MarkEventsOnCalendar(n)},showEventOnDay:function(n,t){var i="",e,o,s,u;if(n.getMonth()==EventCalendar.currentDate.getMonth()&&n.getDate()==EventCalendar.currentDate.getDate()){var r=$(".event-template"),h=r.find(".register"),f=t.RegisterLink;for(h.removeClass("invisible"),f||f.length!=0||h.addClass("invisible"),r.find("a[data-href='{RegisterLink}']").attr("href","javascript:void(0);"),r.find("a[data-href='{RegisterLink}']").attr("href","javascript:void(0);"),r.find("img[data-src='{LocationImage}']").attr("src",""),f&&r.find("a[data-href='{RegisterLink}']").attr("href",f),t.LocationGoogleMapUrl&&r.find("a[data-href='{LocationGoogleMapUrl}']").attr("href",t.LocationGoogleMapUrl),t.LocationImage&&r.find("img[data-src='{LocationImage}']").attr("src",t.LocationImage),e=[null,t.Image1,t.Image2,t.Image3],imageNum=0;imageNum<e.length;imageNum++)e[imageNum]?r.find("img[data-src='{image"+imageNum+"}']").attr("src",e[imageNum]):r.find("img[data-src='{image"+imageNum+"}']").attr("src","");i=r.html();o=r.find("#EventLocation");s=t.EventLocationAddress;s?o.removeClass("invisible"):o.addClass("invisible");i=r.html();u=n.getHours()!=0?n.getHours()>12?(n.getHours()-12).toString():n.getHours().toString():(n.getHours()+12).toString();u+=":";u+=("0"+n.getMinutes().toString()).slice(-2);u+=n.getHours()>=12?"pm":"am";var c=t.Video1,l=t.Video2,a=t.Video3;i=replaceAll("{EventId}",t.Id,i);i=replaceAll("{date}",u,i);i=replaceAll("{EventName}",t.EventName,i);i=replaceAll("{ctr}",ctr,i);i=i.replace("{shares}",555);i=replaceAll("{linkName}","expand button",i);$.isEmptyObject(c)||(i=i.replace("{Video1}",EventCalendar.UpdateEventVideo(c)));$.isEmptyObject(l)||(i=i.replace("{Video2}",EventCalendar.UpdateEventVideo(l)));$.isEmptyObject(a)||(i=i.replace("{Video3}",EventCalendar.UpdateEventVideo(a)));i=i.replace("{EventDescription}",t.EventDescription);i=i.replace("{EventLocation}",t.EventLocation);i=i.replace("{EventLocationAddress}",s);i=replaceAll("{EventCalendarAPICallFormatICal}",EventCalendarAPICallFormatICal,i);i=replaceAll("{eventCollectionId}",EventCollectionPathId,i);i=replaceAll("{eventId}",t.Id,i);i=replaceAll("{eventLanguage}",acnPage.Language,i);i=replaceAll("{ShowMap}",t.ShowMap,i);i=replaceAll("{ShowRemindMe}",t.ShowRemind,i)}return i},ShowEvents:function(n,t){n=typeof n=="undefined"?EventCalendar.currentDate:n;t=typeof t=="undefined"?EventCalendar.currentDate:t;(EventCalendar.isMonthView||EventCalendar.isWeekView||EventCalendar.isDayView)&&(n=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/1"),t=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+getLastDayOfMonth(n.getMonth(),n.getFullYear()).getDate()));EventCalendar.GetEventsData(n,t,EventCalendar.ShowEventsCallback)},ShowFiltersCallback:function(n){var u='<li><a href="#" title="{name}">{name}<\/a><\/li>',f='<li id="defaultValue_{name}"><a href="#" title="{name}">{name}<\/a><\/li>';for(filter=$(".responsive-calendar-filters .filter .state ul"),filter.html(""),n.EventLocations.length>0&&filter.append(replaceAll("{name}",selectAll,f)),ctr=0;ctr<n.EventLocations.length;ctr++)n.EventLocations[ctr]!=""&&filter.append(replaceAll("{name}",n.EventLocations[ctr],u));for(filter=$(".responsive-calendar-filters .filter .organization ul"),filter.html(""),n.EventOrganizations.length>0&&filter.append(replaceAll("{name}",selectAll,f)),ctr=0;ctr<n.EventOrganizations.length;ctr++)n.EventOrganizations[ctr]!=""&&filter.append(replaceAll("{name}",n.EventOrganizations[ctr],u));for(filter=$(".responsive-calendar-filters .filter .type ul"),filter.html(""),n.EventTypes.length&&filter.append(replaceAll("{name}",selectAll,f)),ctr=0;ctr<n.EventTypes.length;ctr++)n.EventTypes[ctr]!=""&&filter.append(replaceAll("{name}",n.EventTypes[ctr],u));var t=EventCalendar.CheckIfLocationIsValid(),i=EventCalendar.CheckIfOrgIsValid(),r=EventCalendar.CheckIfEventIsValid();t&&t!=selectAll.toLowerCase()&&($(".responsive-calendar-filters .filter .state label").attr("data-value",t),$(".responsive-calendar-filters .filter .state label").text(t));i&&i!=selectAll.toLowerCase()&&($(".responsive-calendar-filters .filter .organization label").attr("data-value",i),$(".responsive-calendar-filters .filter .organization label").text(i));r&&r!=selectAll.toLowerCase()&&($(".responsive-calendar-filters .filter .type label").attr("data-value",r),$(".responsive-calendar-filters .filter .type label").text(r));EventCalendar.UpdateUrlOnFilterChange();EventCalendar.FilterEvents();$(".responsive-calendar-filters .filter ul li").on("click",function(n){n.preventDefault();var i=$(this).text(),t=$(this).parent().parent().find("label");t.text(i);$(this)[0].id.indexOf("defaultValue")==-1?t.attr("data-value",i):t.attr("data-value","");EventCalendar.FilterEvents();EventCalendar.UpdateUrlOnFilterChange()})},FilterEvents:function(){EventCalendar.ShowEvents(EventCalendar.currentDate,EventCalendar.currentDate)},ShowFilters:function(){var n=EventCalendarAPICallFormatGetEventFilters.replace("{EventCollectionPathId}",EventCollectionPathId);n=n.replace("{EventCollectionLanguage}",acnPage.Language);wsCall(n,EventCalendar.ShowFiltersCallback)},ChangeMode:function(){EventCalendar.mode=window.outerWidth<768?1:window.outerWidth<1e3?2:3},SelectDateOnMonthCalendar:function(n){n=typeof n!="undefined"?n:EventCalendar.currentDate;$(".responsive-calendar .days .day").removeClass("selected");$(".responsive-calendar .days .day a[data-month="+(n.getMonth()+1).toString()+"][data-day="+n.getDate().toString()+"]").parent().addClass("selected")},UpdateEventDetails:function(){var n="";EventCalendar.mode==1?$('div[id^="collapse"] > .event-details').each(function(){$this=$(this);n=$this.find(".description");$this.find("#EventLocation").after(n);n.find("label").addClass("hidden")}):EventCalendar.mode==2&&$('div[id^="collapse"] > .event-details').each(function(t){$this=$(this);n=$this.find(".description");$this.find($(".media").eq(t)).after($(n));n.find("label").removeClass("hidden")})},UpdateEventVideo:function(n){var t="{Video}",i;return n&&n.PlayerId&&n.MediaId&&(n.MediaPlayerNetwork="//assets.delvenetworks.com/player/loader.swf",i="<div class='media-container'><span style='"+n.PlayerStyle+"' class='' data-orig-width='"+n.Width+"'  data-orig-height='"+n.Height+"'><object type='application/x-shockwave-flash'style='"+n.PlayerStyle+"' id='"+n.PlayerId+"'name= '"+n.PlayerId+"'data='"+n.MediaPlayerNetwork+"'data-orig-width='"+n.Width+"'width='"+n.Width+"px'height='"+n.Height+"px'><param name='wmode' value='"+n.WMode+"'><param name='allowScriptAccess' value='sameDomain'><param name='allowFullScreen' value='true'><param name='flashVars' value='playerForm="+n.PlayerForm+"&amp;mediaId="+n.MediaId+"'><\/object><\/span><\/div>",t=i),t},UpdateCurrentUrl:function(n,t,i,r,u){var f=document.location.href;return window.location.hash&&(n=""),f.indexOf("?")>-1?f=EventCalendar.RemoveFilterParameters(f):f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#"))),i&&(f+=f.indexOf("?")>-1?"&loc="+i:"?loc="+i),r&&(f+=f.indexOf("?")>-1?"&org="+r:"?org="+r),u&&(f+=f.indexOf("?")>-1?"&event="+u:"?event="+u),f+=n?f.indexOf("?")>-1?"&month="+n+t:"?month="+n+t:window.location.hash,f=f.replace(/ /g,"+"),f=f.replace("&#","#"),f=f.replace("?&","?"),f=f.replace("?#","#"),f.replace(/\&+/g,"&")},UpdateUrlOnFilterChange:function(){var n=$(".timeInfo span[data-head-month]").text(),t=$(".timeInfo span[data-head-year]").text();locFilter=$(".responsive-calendar-filters .filter .state label").attr("data-value");orgFilter=$(".responsive-calendar-filters .filter .organization label").attr("data-value");eventFilter=$(".responsive-calendar-filters .filter .type label").attr("data-value");newUrl=EventCalendar.UpdateCurrentUrl(n,t,locFilter,orgFilter,eventFilter);window.history.pushState({path:newUrl},"",newUrl)},RemoveFilterParameters:function(n){var t=n.substr(n.indexOf("?")),s=n.substring(0,n.indexOf("?")),r,u,f,e,o,i;return t.indexOf("loc")>-1&&(r=t.substr(t.indexOf("loc")),r.indexOf("&")>-1?(i=r.substring(r.indexOf("loc"),r.indexOf("&")+1),t=t.replace(i,"")):r.indexOf(";")>-1?(i=r.substring(r.indexOf("loc"),r.indexOf(";")+1),t=t.replace(i,"")):r.indexOf("#")>-1?(i=r.substring(r.indexOf("loc"),r.indexOf("#")),t=t.replace(i,"")):t=t.replace(r,"")),t.indexOf("org")>-1&&(u=t.substr(t.indexOf("org")),u.indexOf("&")>-1?(i=u.substring(u.indexOf("org"),u.indexOf("&")+1),t=t.replace(i,"")):u.indexOf(";")>-1?(i=u.substring(u.indexOf("org"),u.indexOf(";")+1),t=t.replace(i,"")):u.indexOf("#")>-1?(i=u.substring(u.indexOf("org"),u.indexOf("#")),t=t.replace(i,"")):t=t.replace(u,"")),t.indexOf("event")>-1&&(f=t.substr(t.indexOf("event")),f.indexOf("&")>-1?(i=f.substring(f.indexOf("event"),f.indexOf("&")+1),t=t.replace(i,"")):f.indexOf(";")>-1?(i=f.substring(f.indexOf("event"),f.indexOf(";")+1),t=t.replace(i,"")):f.indexOf("#")>-1?(i=f.substring(f.indexOf("event"),f.indexOf("#")),t=t.replace(i,"")):t=t.replace(f,"")),t.indexOf("month")>-1&&(e=t.substr(t.indexOf("month")),e.indexOf("&")>-1?(i=e.substring(e.indexOf("month"),e.indexOf("&")+1),t=t.replace(i,"")):e.indexOf(";")>-1?(i=e.substring(e.indexOf("month"),e.indexOf(";")+1),t=t.replace(i,"")):e.indexOf("#")>-1?(i=e.substring(e.indexOf("month"),e.indexOf("#")),t=t.replace(i,"")):t=t.replace(e,"")),t.indexOf("#")>-1&&(o=t.substr(t.indexOf("#")),o.indexOf("&")>-1?(i=o.substring(o.indexOf("#"),o.indexOf("&")+1),t=t.replace(i,"")):o.indexOf(";")>-1?(i=o.substring(o.indexOf("#"),o.indexOf(";")+1),t=t.replace(i,"")):t=t.replace(o,"")),t=t.replace("?&","?"),s+t},CheckIfLocationIsValid:function(){var i=[],r=[],t;return n.loc?(t=n.loc,t=t.toLowerCase(),$(".responsive-calendar-filters .filter .state .dropdown-menu li a").each(function(){i.push($(this).text().toLowerCase());r.push($(this).text())}),i.indexOf(t)>-1?r[i.indexOf(t)]:null):null},CheckIfOrgIsValid:function(){var i=[],r=[],t;return n.org?(t=n.org,t=t.toLowerCase(),$(".responsive-calendar-filters .filter .organization .dropdown-menu li a").each(function(){i.push($(this).text().toLowerCase());r.push($(this).text())}),i.indexOf(t)>-1?r[i.indexOf(t)]:null):null},CheckIfEventIsValid:function(){var i=[],r=[],t;return n.event?(t=n.event,t=t.toLowerCase(),$(".responsive-calendar-filters .filter .type .dropdown-menu li a").each(function(){i.push($(this).text().toLowerCase());r.push($(this).text())}),i.indexOf(t)>-1?r[i.indexOf(t)]:null):null},SetCurrentDateFromUrl:function(t){if(n.month){var u=n.month,r;for(monthYearArr=u.split(/(\d+)/),month=monthYearArr[0].toLowerCase(),r=monthYearArr[1],i=0;i<12;i++)if(month==months[i].toLowerCase())return t.setMonth(i),t.setFullYear(r),t}return t},UpdateShareEventDataUrl:function(){jQuery(".responsive-calendar-events .event-details .event-social-likes").attr("data-url",window.location.href)},AddAnalyticsLinkTrackingAttribute:function(){var t=$(".module-event-calendar"),n=t.find(".event-calendar-filter .btn-group");if(t){$(".ui-container").attr("data-analytics-template-zone",$(".ui-container").attr("id"));n.attr("data-analytics-link-name","toggle");n.attr("analytics-no-content-click","true");n.attr("data-analytics-content-type","event calendar");n.on("click",function(){var t=$(".state .dropdown-menu li a"),i=$(".organization .dropdown-menu li a"),r=$(".type .dropdown-menu li a");n.find(".dropdown-menu li a").attr("data-analytics-content-type","event calendar");t.attr("data-analytics-link-name","filter state/city/province");t.attr("analytics-no-content-click","true");i.attr("data-analytics-link-name","filter organization/university");i.attr("analytics-no-content-click","true");r.attr("data-analytics-link-name","filter event type");r.attr("analytics-no-content-click","true")});setTimeout(function(){for(var n=$(".responsive-calendar .month-view .day a"),t=0;t<n.length;t++)n[t].setAttribute("data-analytics-link-name",n[t].getAttribute("data-month")+"-"+n[t].getAttribute("data-day")+"-"+n[t].getAttribute("data-year")),n[t].setAttribute("analytics-no-content-click",!0);n.attr("data-analytics-content-type","event calendar")},1e3)}},Init:function(){$(window).on("resize",function(){EventCalendar.ChangeMode();EventCalendar.UpdateEventDetails()});$(".responsive-calendar .controls a.month-view").on("click",function(){var n=$(this).attr("data-go");EventCalendar.currentDate=n=="prev"?EventCalendar.currentDate.addMonths(-1):EventCalendar.currentDate.addMonths(1);EventCalendar.currentCalendarDate=EventCalendar.currentDate;EventCalendar.ShowEvents(EventCalendar.currentDate,EventCalendar.currentDate);EventCalendar.UpdateUrlOnFilterChange()});EventCalendar.ShowFilters();EventCalendar.UpdateEventDetails();EventCalendar.UpdateShareEventDataUrl();EventCalendar.AddAnalyticsLinkTrackingAttribute()}},u?(s=window.location.hash,splitHash=s.split(":"),splitHash[0]=r(splitHash[0]),splitHash[0]="#"+splitHash[0],splitHash[0]=splitHash[0].replace(/\s+/g,""),h=new Date(r(splitHash[0])),EventCalendar.currentDate=EventCalendar.SetCurrentDateFromUrl(h)):EventCalendar.currentDate=EventCalendar.SetCurrentDateFromUrl(new Date),EventCalendar.currentSunday=GetWeekSundayDate(EventCalendar.currentDate),EventCalendar.currentCalendarDate=EventCalendar.currentDate,$(".responsive-calendar").responsiveCalendar({time:EventCalendar.currentDate.getFullYear().toString()+"-"+(EventCalendar.currentDate.getMonth()+1).toString(),startFromSunday:!0,monthChangeAnimation:!1,allRows:!1,onDayClick:function(){EventCalendar.mode==1?EventCalendar.ShowDayView(new Date($(this).attr("data-month")+"/"+$(this).attr("data-day")+"/"+$(this).attr("data-year"))):EventCalendar.ShowWeekView(new Date($(this).attr("data-month")+"/"+$(this).attr("data-day")+"/"+$(this).attr("data-year")))},onInit:function(){$(".responsive-calendar .week-view").html("");setTimeout(EventCalendar.SelectDateOnMonthCalendar,0)},onMonthChange:function(){setTimeout(EventCalendar.SelectDateOnMonthCalendar,0);setTimeout(EventCalendar.ShowEvents,0)}}),c(window.location.hash),EventCalendar.ChangeMode(),EventCalendar.Init())}),ComponentRegistry.EventCalendarSmartByte&&$(function(){var n=new Date;$("#eventSmartByte .calendar .day").text(n.getDate());$("#eventSmartByte .calendar .month").text(months[n.getMonth()]);setTimeout(function(){for(var u,t,i,r=$("#careers_packery").find(".packery-component .module-article"),n=1;n<r.length;n++)$(r[n])[0].id==="eventSmartByte"&&(u=n);t=$("#careers_packery").find(".packery-component .module-article #eventSmartByte");i=t.find("h3 > a").attr("data-analytics-link-name")+"~"+u;t.find("h3 > a").attr("data-analytics-content-type",i);t.find("h4 > a").attr("data-analytics-content-type",i)},1e3)}),ComponentRegistry.EventList){$(function(){var s="/api/EventCalendar/GetEvents/{eventCollectionId}/{eventCollectionLanguage}/{dateStart}/{dateEnd}/{filterLocation}/{filterOrganization}/{filterType}",h="/api/EventCalendar/GetEventFilters/{EventCollectionPathId}/{EventCollectionLanguage}",u=$(".events-list-module").attr("data-event-collection-id"),f=$(".events-list-module").attr("data-event-max-count"),c=$(".events-list-module").attr("data-event-min-count"),t=$(".events-list-module").attr("data-bgcolors"),i=$(".events-list-module").attr("data-event-view-more-text"),n=$(".events-list-module").attr("data-event-view-more-link"),e=$(".events-list-module").attr("data-event-view-more-target"),r=$(".ui-container"),o=$("ul.dropdown-menu"),l=$(".dropdown-toggle");EventList={ShowFiltersCallback:function(n){if(n!==null&&n!==undefined){var r='<li id="defaultValue_{defaultId}" aria-label="{name}" aria-selected="false" role="option" tabindex="0" aria-setsize="{ariasize}" aria-posinset="1"><a tabindex="0" aria-hidden="true" id = "{default}" href="#" data-linktype="calendar filter" data-linkaction="{name}" data-analytics-link-name="{name}" data-analytics-content-type="calendar filter">{name}<\/a><\/li>',u="Select All",t="",f='<li id="event_list_{templateId}" aria-label="{name}" aria-selected="false" role="option" tabindex="0" aria-setsize="{ariasize}" aria-posinset="{posinset}"><a tabindex="0" aria-hidden="true" href="#" data-linktype="calendar filter" data-linkaction="{name}" data-analytics-link-name="{name}" data-analytics-content-type="calendar filter">{name}<\/a><\/li>',i="";if(typeof n.EventLocations!="undefined"&&n.EventLocations!==null){var h=n.EventLocations.length+1,l=f.replace("{ariasize}",h),e=r;for(t=$(".responsive-calendar-filters .filter .state ul"),e=e.replace("{defaultId}","Select_All_defaultLoc").replace("{default}","defaultLoc").replace("{ariasize}",h),t.append(replaceAll("{name}",u.toLowerCase(),e)),ctr=0;ctr<n.EventLocations.length;ctr++)i=l.replace("{templateId}","location_"+n.EventLocations[ctr].replace(/ +/g,"_")).replace("{posinset}",ctr+2),t.append(replaceAll("{name}",n.EventLocations[ctr],i))}if(typeof n.EventOrganizations!="undefined"&&n.EventOrganizations!==null){var c=n.EventOrganizations.length+1,a=f.replace("{ariasize}",c),o=r;for(t=$(".responsive-calendar-filters .filter .organization ul"),o=o.replace("{defaultId}","Select_All_defaultOrg").replace("{default}","defaultOrg").replace("{ariasize}",c),t.append(replaceAll("{name}",u.toLowerCase(),o)),ctr=0;ctr<n.EventOrganizations.length;ctr++)i=a.replace("{templateId}","organization"+n.EventOrganizations[ctr].replace(/ +/g,"_")).replace("{posinset}",ctr+2),t.append(replaceAll("{name}",n.EventOrganizations[ctr],i))}if(typeof n.EventTypes!="undefined"&&n.EventTypes!==null){var v=n.EventTypes.length+1,y=f.replace("{ariasize}",n.EventTypes.length),s=r;for(t=$(".responsive-calendar-filters .filter .type ul"),s=s.replace("{defaultId}","Select_All_defaultCat").replace("{default}","defaultCat").replace("{ariasize}",v),t.append(replaceAll("{name}",u.toLowerCase(),s)),ctr=0;ctr<n.EventTypes.length;ctr++)i=y.replace("{templateId}","type_"+n.EventTypes[ctr].replace(/ +/g,"_")).replace("{posinset}",ctr+2),t.append(replaceAll("{name}",n.EventTypes[ctr],i))}$(".responsive-calendar-filters .filter ul li").on("click",function(n){n.preventDefault();var i=$(this).text(),t=$(this).parent().parent().find(".corporate-black2.filter-value");t.text(i);$(this)[0].id.indexOf("defaultValue")===-1?t.attr("data-value",i):t.attr("data-value","");EventList.FilterEvents()})}},ShowEventsCallback:function(r){var u;if($(".events-list-module .event-container").remove(),$(".noevents").css("display","none"),typeof r!="undefined"&&r!==null&&r.length>0&&(r=r.sort(function(n,t){return new Date(n.EventDateTimeStart)-new Date(t.EventDateTimeStart)})),r.length>=c){var h=0,l=!1,o="<a{viewMoreLink} {targetType} class='event-container displayBlock viewmore color-container' data-linktype='engagement' data-linkaction='{viewMoreAction}' style='background-color: #6788bd' data-analytics-link-name='{viewMoreActionAttr}' data-analytics-content-type='engagement'><div class='row'><h3 class='viewmore ucase'>{viewMoreText}<\/h3><span class='acn-icon icon-jump-links-arrow-down'><\/span><\/div><\/a>",a=$(".events-list-module .subheader1").text().toLowerCase(),s=[],v;for(r.length>f?(h=f,l=!0):(h=r.length,l=!1),t!=null&&t!=""&&(s=t.split("|")),ctr=0;ctr<h;ctr++)u="<a href='{eventLink}' {eventTarget} class='event-container displayBlock color-container bg-color-{eventColor}' data-linktype='engagement' data-linkaction='{eventAction}' data-analytics-link-name='{eventNameAttr}' data-analytics-content-type='engagement'><div class='row'><div class='vertical-align event-date'><h2 class='header2 date ucase'>{eventDate}<\/h2><\/div><div class='vertical-align event-desc'><p class='event-name rotis'>{eventName}<span class='event-desc2'>{eventDescription}<\/span><\/p><p class='ucase font-bold event-loc rotis'>{eventLocation}<\/p><\/div><div class='event-arrowlink vertical-align'><span class='icon-arrowrightarrow align-right'><\/span><\/div><\/div><\/a>",v=s[ctr]!=undefined&&s[ctr]!=null?s[ctr]:"",u=u.replace("{eventDate}",EventList.FormatDate(r[ctr].EventDateTimeStart)),u=u.replace("{eventName}",r[ctr].EventName),u=u.replace("{eventDescription}",r[ctr].EventName!==""&&r[ctr].EventCareersDescription!==""?" - "+r[ctr].EventCareersDescription:r[ctr].EventCareersDescription),u=u.replace("{eventLocation}",r[ctr].EventLocation),u=u.replace("{eventColor}",v),u=u.replace("{eventLink}",n+(n!=""?"?src=SOMS#"+EventList.EventLinkParamFormatDate(r[ctr].EventDateTimeStart):"#")),u=u.replace("{eventTarget}",e),u=u.replace("{headerText}",a),u=u.replace("{eventAction}",r[ctr].EventName.toLowerCase()),u=u.replace("{eventNameAttr}",r[ctr].EventName),$(".events-list-module").append(u);l&&(o=o.replace("{targetType}",e),o=o.replace("{viewMoreText}",i),o=o.replace("{viewMoreLink}",n===""?"":" href='"+n+"'"),o=o.replace("{headerText}",a),o=o.replace("{viewMoreAction}",i.toLowerCase()),o=o.replace("{viewMoreActionAttr}",i.toLowerCase()),$(".events-list-module").append(o))}else r.length==undefined||r.length===0?$(".noevents").css("display",""):$(".events-list-module").remove();EventListResponsive.EventsListMobile()},GetEventsData:function(n,t){var i=s,r=$("#btn-label-filter-location").attr("data-value").length<=0?"null":$("#btn-label-filter-location").attr("data-value"),f=$("#btn-label-filter-organization").attr("data-value").length<=0?"null":$("#btn-label-filter-organization").attr("data-value"),e=$("#btn-label-filter-event").attr("data-value").length<=0?"null":$("#btn-label-filter-event").attr("data-value");i=i.replace("{eventCollectionId}",u);i=i.replace("{eventCollectionLanguage}",acnPage.Language);i=i.replace("{dateStart}",n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate());i=i.replace("{dateEnd}",t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate());i=i.replace("{filterLocation}",r);i=i.replace("{filterOrganization}",f);i=i.replace("{filterType}",e);wsCall(i,EventList.ShowEventsCallback)},ShowFilters:function(){var n=h.replace("{EventCollectionPathId}",u);n=n.replace("{EventCollectionLanguage}",acnPage.Language);wsCall(n,EventList.ShowFiltersCallback)},FilterEvents:function(){var n=new Date;EventList.GetEventsData(n,n.addMonths(3))},FormatDate:function(n){var r="",t,i;return n!=null&&n!=""?(t=new Date(n),t!=null&&t!=""&&(i=t.toDateString().split(" "),i.length>2&&(r=i[1]+" "+i[2]))):r="",r},EventLinkParamFormatDate:function(n){var r="",i,t;return n!=null&&n!=""?(i=new Date(n),i!=null&&i!=""&&(t=i.toDateString().split(" "),t.length>2&&(r=t[1]+t[2]+t[3]))):r="",r},RemoveTopAndBottomMargin:function(){var n=$("div .events-list-module"),t;n.length>0&&(t=n.closest(".ui-content-box"),t.attr("style","margin-top:0px !important;padding: 0px !important;"))},AddAnalyticsLinkTrackingAttribute:function(){r.has(".events-list-module")&&r.attr("data-analytics-template-zone",r.attr("id"))},Init:function(){var n=new Date;EventList.ShowFilters();EventList.GetEventsData(n,n.addMonths(3));EventList.RemoveTopAndBottomMargin();EventList.AddAnalyticsLinkTrackingAttribute()}};EventList.Init();o.on("keydown","li",function(n){var r=$(this).parent().parent().find(".corporate-black2.filter-value"),u=$(this).parent().parent().find("button.dropdown-toggle"),t,i;if(n.keyCode===9&&n.shiftKey)return $(this).trigger("click"),!1;switch(n.keyCode){case 36:n.preventDefault();$(this).attr("aria-selected","false");$(this).parent().find("li").first().attr("aria-selected","true").trigger("focus");r.text($(this).parent().find("li").first().attr("aria-label"));break;case 35:n.preventDefault();$(this).attr("aria-selected","false");$(this).parent().find("li").last().attr("aria-selected","true").trigger("focus");r.text($(this).parent().find("li").last().attr("aria-label"));break;case 38:if(n.preventDefault(),t=$(this).prev(),!t.is("li"))return;t.trigger("focus");$(this).attr("aria-selected","false");t.attr("aria-selected","true");r.text(t.attr("aria-label"));break;case 40:if(n.preventDefault(),i=$(this).next(),!i.is("li"))return;i.trigger("focus");$(this).attr("aria-selected","false");i.attr("aria-selected","true");r.text(i.attr("aria-label"));break;case 13:n.preventDefault();$(this).trigger("click");break;case 27:$(this).trigger("click");break;case 9:tabActiveElement=$(document.activeElement).parent().parent();$(this).trigger("click");tabActiveElement.next().trigger("focus");break;case 32:n.preventDefault();u.removeClass("clickable");$(this).trigger("click");setTimeout(function(){u.addClass("clickable")},200)}});l.on("click keydown",function(n){if(n.keyCode===27&&!$(this).parent().hasClass("open"))return!1;if(n.type==="click"||n.keyCode===13||n.keyCode===20||n.keyCode===32)if($(this).hasClass("clickable")){$(this).attr("aria-expanded","true");var t=$(this).next("ul"),i=t.find("[aria-selected=true]");i.length===0?setTimeout(function(){t.find("li").first().attr("aria-selected","true").trigger("focus")},0):setTimeout(function(){i.trigger("focus")},0)}else return!1});o.on("click","li",function(){$(this).parent().parent().find("[aria-selected=true]").attr("aria-selected","false");$(this).attr("aria-selected","true");$(this).parent().parent().find("button").attr("aria-expanded","false").trigger("focus");$(this).parent().attr("aria-activedescendant",$(this).attr("id"))})});$(window).on("load orientationchange resize",function(){EventListResponsive.EventsListMobile()});$(document).on("click",function(){var n=$(".responsive-calendar-filters .filter .btn-group");n.hasClass("open")?n.children("button").attr("aria-expanded","true"):n.children("button").attr("aria-expanded","false")})}if(EventListResponsive={EventsListMobile:function(){var n=$("div.event-desc"),i=$("div.vertical-align"),r=$("span.event-desc2"),t=$("div.event-date");$(window).width()<768?(i.css("height","135px"),t.css("position","absolute"),n.children().css("width","250px"),n.find("p.ucase.font-bold").css("margin-top","0px"),r.css("display","none"),$(window).width()>=700&&$(window).width()<768?(n.children().css("width","635px"),n.css("padding-top","40px")):$(window).width()>=600&&$(window).width()<700?(n.children().css("width","550px"),n.css("padding-top","40px")):$(window).width()>=500&&$(window).width()<600?(n.children().css("width","485px"),n.css("padding-top","40px")):$(window).width()>=400&&$(window).width()<500?(n.children().css("width","340px"),n.css("padding-top","55px")):(t.css("width","250px"),n.css("padding-top","55px"))):(i.css("height",""),t.css("position",""),t.css("width",""),n.children().css("width",""),n.find("p.ucase.font-bold").css("margin-top",""),n.css("padding-top",""),r.css("display",""))}},ComponentRegistry.SuggestedJobsModule){$("#RecommendedJobs-li").hide();var maxJobCountValue=$("#storeMaxCountValue").val(),minJobCountValue=$("#storeMinCountValue").val(),countrySite=$("#countrySite").val(),searchCountry="",searchLanguage="";function createHeadingFour(n){var t='<h4 class="font-black margin-fifteen">';return t+=n,t+"<\/h4>"}$("#span-ChangeLocation").on("click",function(){$("#suggestedjobs-changelocation").trigger("click")});$("#btnCitySelection").prop("disabled",!0);$("#btn-SuggestedJob-Submit").on("click",function(){var t="",n,i;t=$("#dd-country").text();n="";n=$("#dd-citystate").attr("value");var r=$("#storeMoreJobLinkValue").val(),u=$("#storeJobDetailsLinkValue").val(),f=$("#storeJobPreferencesValue").val(),e=searchLanguage,o={countrySiteName:searchCountry,cityState:n,minJobCountValue:minJobCountValue,maxJobCountValue:maxJobCountValue,moreJobLinkValue:r,jobDetailsLinkValue:u,jobPreferencesValue:f,language:e};t!=$("#storeSelectCountry").val()?n!=$("#storeSelectCity").val()?(i="/api/sitecore/SuggestedJobModule/OnSubmitSuggestedJob",$.ajax({url:i,data:o,contentType:"application/json; charset=utf-8",dataType:"json",cache:!1,error:function(){},success:function(n){function l(t){var f="",e=parseInt(t+1),i="";return jQuery.each(n.LatestJobsSet,function(t,r){r.keyword!==null&&typeof r.keyword!="undefined"&&r.keyword!==""&&r.keyword!=="NULL"?(i="&keyword="+r.keyword,i="&keyword="+processKeyword(i)):i="";t==e&&(f+="<div class='col-sm-"+n.ColumnSize+"'><p><a class='color-primary ui-link font-normal' href='"+r.jobDetailUrl.replace("{0}",countrySite).concat(i)+"'>"+r.title+"<\/a>"+u(r.location)+"<\/p><\/div>")}),r=parseInt(e+1),f}function u(t){var i="";return t!=null?jQuery.each(t,function(r,u){if(t.length>1){i="<label class='module-body Bold font-black'>&nbsp"+n.MultipleLocations+"<\/label>";return}i="<label class='module-body Bold font-black'>&nbsp"+u+"<\/label>"}):i="<label class='module-body Bold font-black'>&nbsp"+c+"<\/label>",i}var e=createHeadingFour($("#storeJobOpeningsIn").val()+" "+n.Country+' <span id="span-ChangeLocation" class="suggestedjobs-cta">'+$("#storeChangeLocation").val()+"<\/span>"),r,t,f;$("#storePreviousHeading").val(e);$("#suggestedJobsGoBack").trigger("click");SugJobForceColorTheme(sugJobColorTheme);$("#Tab-LatestJobs").html();var i="",o=n.LatestJobsSet,s=$("#storeRecommendedJobText").val(),h=$("#storeLatestJobText").val(),c=$("#storeLocationNegotiable").val();n.IsJobPreferencesHasResult?$("#LatestJobs-li").text(s):$("#LatestJobs-li").text(h);o.length>n.MinJobCount?(r=0,t="",n.LatestJobsSet.length!=0?jQuery.each(n.LatestJobsSet,function(f,e){n.LatestJobsSet.length==0?i+="<div class='col-sm-12'><div class='col-sm-12>"+e.noResultsFound+"<\/div><\/div>":r==f&&(e.keyword!==null&&typeof e.keyword!="undefined"&&e.keyword!==""&&e.keyword!=="NULL"?(t="&keyword="+e.keyword,t="&keyword="+processKeyword(t)):t="",i+="<div class='col-sm-12'><div class='col-sm-"+n.ColumnSize+"'><p><a class='color-primary ui-link font-normal' href='"+e.jobDetailUrl.replace("{0}",countrySite).concat(t)+"' data-rel='"+encodeURIComponent(e.id)+"' data-name='asset' >"+e.title+"<\/a>"+u(e.location)+"<\/p><\/div>"+l(f)+"<\/div>")}):i="<div class='col-sm-12'><div class='col-sm-12><p><label class='module-body Bold font-black'>"+n.NoResultsFound+"<\/label><\/p><\/div><\/div>"):n.LatestJobsSet.length!=0?jQuery.each(n.LatestJobsSet,function(r,f){f.keyword!==null&&typeof f.keyword!="undefined"&&f.keyword!==""&&f.keyword!=="NULL"?(t="&keyword="+f.keyword,t="&keyword="+processKeyword(t)):t="";i+="<div class='col-sm-12'><div class='col-sm-"+n.ColumnSize+"'><p><a class='color-primary ui-link font-normal' href='"+f.jobDetailUrl.replace("{0}",countrySite).concat(t)+"' data-rel='"+encodeURIComponent(f.id)+"' data-name='asset' >"+f.title+"<\/a>"+u(f.location)+"<\/p><\/div><\/div>"}):i="<div class='col-sm-12'><div class='col-sm-12><p><label class='module-body Bold font-black'>"+n.NoResultsFound+"<\/label><\/p><\/div><\/div>";f="";n.ShowMoreLatestJob==!0&&(f="<div class='more-jobs-link'><a class='suggestedjobs-cta' href='"+n.MoreButtonLink+"'>"+n.MoreJobs+"<\/a><\/div>");$("#Tab-LatestJobs").html(i+f);$("#job-description").hide()}})):$("#errorCityState").removeClass("hideobject").addClass("showobject"):$("#errorCountry").removeClass("hideobject").addClass("showobject")});$("#suggestedjobs-changelocation").on("click",function(){var t=$("#headingCountry").find("h4").html(),n;$("#storePreviousHeading").val(createHeadingFour(t));n=createHeadingFour($("#storeEnterNewLocation").val());$("#headingCountry").empty();$("#headingCountry").append(n);$("#suggestedJobsTab").addClass("hidedivider")});$("#suggestedJobsGoBack").on("click",function(){var n=$("#storePreviousHeading").val();$("#headingCountry").empty();$("#headingCountry").append(n);$("#suggestedJobsTab").removeClass("hidedivider");$("#span-ChangeLocation").on("click",function(){$("#suggestedjobs-changelocation").trigger("click")});$("#SuggestedJob-Tab").trigger("click")});$("#RecommendedJobs-li").on("click",function(){$("#span-ChangeLocation").css("visibility","hidden");$("#job-description").show()});$("#LatestJobs-li").on("click",function(){$("#job-description").hide();$("#span-ChangeLocation").css("visibility","visible")});function attachDropdownEvent(n){var t="#"+n+" li a";$(t).on("click",function(){var n=$(this).attr("Value");$(this).text()!=$("#dd-citystate").text()&&($("#dd-citystate").text($(this).text()),$("#dd-citystate").attr("value",n),$("#dd-citystate").removeClass("ddValueNoneSelected").addClass("ddValueSelected"),$("#errorCityState").removeClass("showobject").addClass("hideobject"))})}$("#dd-country-ul li a").on("click",function(){var i,n,r;if($(this).text()!=$("#dd-country").text()){$("#dd-country").removeClass("ddValueNoneSelected").addClass("ddValueSelected");$("#errorCountry").removeClass("showobject").addClass("hideobject");var u=$(this).text(),t=$(this).attr("value");searchCountry=t;i=$(this).attr("value");n=$(this).data("lang");searchLanguage=n;r={country:t,countryId:i,language:n};$.ajax({url:"/api/sitecore/SuggestedJobModule/RetrieveCityState",data:r,contentType:"application/json; charset=utf-8",dataType:"json",cache:!1,error:function(){},success:function(n){var t="",i="";$.each(n,function(n,r){r!==null&&r!==undefined&&(i=r);t+='<li><a value="'+r+'" tabindex="-1" data-analytics-link-name="'+i.toLowerCase()+'" data-analytics-content-type="cta">'+r+"<\/a><\/li>"});$("#dd-citystate-ul").empty();$("#dd-citystate-ul").append(t);attachDropdownEvent("dd-citystate-ul");t!=""?$("#btnCitySelection").prop("disabled",!1):$("#btnCitySelection").prop("disabled",!0)}});$("#dd-country").text($(this).text());$("#dd-citystate").text($("#storeSelectCity").val());$("#dd-citystate").removeClass("ddValueSelected").addClass("ddValueNoneSelected");$("#dd-citystate").attr("value","")}});$(function(){$("#SuggestedJob-Tab").on("click",function(n){n.preventDefault()});$("#job-description").hide();isTablet()?JobResultCarousel(4):isMobile()?JobResultCarousel(2):JobResultCarousel(5)});function SugJobForceColorTheme(n){$("#span-ChangeLocation").css("color",n)}sugJobColorTheme=$("#suggestedJobsGoBack").css("color");SugJobForceColorTheme(sugJobColorTheme);var jobs=$("div.jobresults"),withHover=function(){var n=$(this),u=n.data("bgcolor"),i,r,t;n.addClass("bg-color-"+u).addClass("color-container");$(".job-container-footer ").addClass("color-"+u);n.prev().length!==0&&(i=n.prev(),i=i[0].childNodes[1],$(i).css("border-right-color","transparent"));r=n.find(".job-container-footer .btn.recommended-jobs");t=n.find(".job-container-footer").data("button-color");(t!=""||typeof t!="undefined")&&(r.removeClass("bg-color-"+t),r.removeClass("br-color-"+t))},unHover=function(){var n=$(this),u=n.data("bgcolor"),i,r,t;n.removeClass("bg-color-"+u).removeClass("color-container");$(".job-container-footer ").removeClass("color-"+u);n.prev().length!==0&&(i=n.prev(),i=i[0].childNodes[1],$(i).css("border-right",""));r=n.find(".job-container-footer .btn.recommended-jobs");t=n.find(".job-container-footer").data("button-color");(t!=""||typeof t!="undefined")&&(r.addClass("bg-color-"+t),r.addClass("br-color-"+t))};$("div#content-wrapper.ui-content-wrapper").on("click",unHover);$("#search-container").on("click",unHover);jobs.on("mouseover",withHover);jobs.on("mouseout",unHover);jobs.on("click",withHover);$(window).on("load resize orientationchange",function(){var r=0,u,f;$(".jobresults").parent().is("div")&&$(".jobresults").unwrap();$("div.job-container-header").each(function(){$(this).height()>r&&(r=$(this).height())});$("div.job-container-header").height(r);u=$(".career-recommended-jobs");$(".jobresults").length===0&&u.parents().eq(0).children().length<2&&u.parents().eq(4).empty();$(".job-arrow").show();$(".jobresults").nextAll().removeClass("hidden");var n=$(".job-container").outerHeight()/2,t=0,i=0;$(window).width()<=767?(JobResultCarousel(2),t=n+16+"px",i=n+7+"px"):$(window).width()===960?(JobResultCarousel(5),t=n+21+"px",i=n+16+"px"):$(window).width()>=768&&$(window).width()<1024?(JobResultCarousel(4),t=n+10+"px",i=n+4+"px"):(JobResultCarousel(5),t=n+19+"px",i=n+13+"px");$(".job-arrow").css("bottom",t);$(".job-arrow-left").css("bottom",i);f=$(".jobresults .job-container:visible").last();$(".job-container").length>0&&$(".jobresults-search-open-position").height($(".job-container").innerHeight())});function JobResultCarousel(n){var e="slide-",t=0,r,u,f;for($(".job-arrow-left").hide(),$(".job-container").removeClass("withnoborder"),r=$("div.jobresults"),i=0;i<r.length;i+=n)t+=1,u="",u=t==1?"active":t==2?"next":"",r.slice(i,i+n).wrapAll("<div id='"+e+t+"' class = 'item "+u+"'><\/div>"),$("#"+e+t+" > .jobresults .job-container").last().addClass("withnoborder");$(".jobresults").length===1&&$(".jobresults").children().removeClass("withnoborder");f=$(".job-carousel .carousel-inner");(f.children().length<=1||f.find(".jobresults-search-open-position").length==1)&&$(".job-arrow").hide()}function JobArrowRight(n){var t=n.find(".next").index();n.find(".prev.left").removeClass("prev left");n.children().eq(t-1).removeClass("active").addClass("prev left");n.children().eq(t).removeClass("next").addClass("active");n.children().eq(t+1).addClass("next");(t>=n.children().length-1||n.children().length==1)&&$(".job-arrow").hide();$(".job-arrow-left").show()}function JobArrowLeft(n){var t=n.find(".prev").index();n.find(".next").removeClass("next");n.children().eq(t+1).removeClass("active").addClass("next");n.children().eq(t).removeClass("prev left").addClass("active");t<=0?$(".job-arrow-left").hide():n.children().eq(t-1).addClass("prev left");$(".job-arrow").show()}$(".job-arrow").on("click",function(){JobArrowRight($(".job-carousel .carousel-inner"))});$(".job-arrow-left").on("click",function(){JobArrowLeft($(".job-carousel .carousel-inner"))});function replaceAllReservedCharacter(n,t,i){return n.replace(new RegExp(t,"g"),i)}function ReplaceReservedCharacter(n){return n!=undefined&&n.length>0?(n.indexOf("/")>-1&&(n=replaceAllReservedCharacter(n,"/","%2F")),n.indexOf("?")>-1&&(n=replaceAllReservedCharacter(n,"\\?","%3F")),n.indexOf(":")>-1&&(n=replaceAllReservedCharacter(n,":","%3A")),n.indexOf("@")>-1&&(n=replaceAllReservedCharacter(n,"@","%40")),n.indexOf("=")>-1&&(n=replaceAllReservedCharacter(n,"=","%3D")),n.indexOf("&")>-1&&(n=replaceAllReservedCharacter(n,"&","%26")),n.indexOf("#")>-1&&(n=replaceAllReservedCharacter(n,"#","%23"))):n="",n}function processKeyword(n){var t="";return t=ReplaceReservedCharacter(n.split("&keyword=")[1]),t.replace(/[ ]{2,}/g,"").replace(/ , |, | ,|,|; |;| ;/g,"|").replace(/,$|\|$|;$| $/g,"").replace(/ /g,"-")}jobOpenings=$("#suggestedJobsTabContent2 a.color-primary").each(function(){var n=$(this).attr("href"),t="",i="";try{t=processKeyword(n);i=t?n.substring(0,n.indexOf("&keyword=")+9)+t:n}catch(r){i=n.substring(0,n.indexOf("&keyword="))}$(this).attr("href",i)});latestRecommended=$("a.recommended-jobs").each(function(){var n=$(this).attr("href"),t="";try{t=processKeyword(n);newUrl=t?n.substring(0,n.indexOf("&keyword=")+9)+t:n}catch(i){newUrl=n.substring(0,n.indexOf("&keyword="))}$(this).attr("href",newUrl)})}if(ComponentRegistry.FindJobsModule){function findAJob(n){$("#search-error").html();var t=$("#search-input").val(),i="";t=removeTags(t);i=t==""||typeof t=="undefined"?n:n+"?jk="+t;$(location).attr("href",i)}function enterKeyFindAJob(n){n.which==13&&$('button[onclick^="javascript:findAJob"]').trigger("click")}$(function(){var n=1,t=10,i=$("#context-item-id").val();$("#search-input").autocomplete({source:function(r,u){$.ajax({url:"/api/sitecore/FindJobModule/FindSuggestions",data:"{'contextItemId': '"+i+"','keywords': '"+r.term+"','from': '"+n+"' ,'size': '"+t+"'}",dataType:"json",type:"POST",contentType:"application/json; charset=utf-8",success:function(n){u($.map(n,function(n){if(n.title!="")return $("#search-error").html(),{value:n.title,id:n.requisitionId};$("#search-error").html("There are no search results for these sections.")}))}})},minLength:5,select:function(n,t){$("#job-selected-id").val(t.item.value)}})})}if(ComponentRegistry.FeaturedSection){$(function(){var n=$("#CampaignPortal > div.carousel-inner").height(),t;$("#CampaignPortal").find('[id^="CampaignPortal_item"]').each(function(){$(this).height()>n&&(n=$(this).height())});$(".featured-section-module-carousel .featured-section-module.module-article .media:empty").remove();t=$(".featured-section-module.module-article.component");t.each(function(n){$this=$(this);var t="";t=$this.find('span[class!="cta"]').length>0?$this.find("h4 span").html():$this.find("h4").html();console.log("title"+n+": "+t);$this.find("a").attr("title",t)});isMobile()&&CarouselForMobile()});$(window).on("load",function(){$(".featured-section-module-carousel .social-likes__widget.social-likes__widget_single").off("click");$(".CommonElementSharing .social-likes_single-w").popover({html:!0,placement:"bottom",container:"body",content:function(){var n=$(this).find("#tooltipPopup").data("url"),i=$(this).find("#tooltipPopup").data("title"),r=$(this).closest("div[id^='block-'].ui-container").attr("id"),t;return $(this).find(".social-likes strong").text(""),t=$(this).find(".social-likes").html(),n.match("/_Component")&&(n=n.substring(0,n.indexOf("/_Component"))),"<div class='social-likes social-likes_vertical social-likes_visible social-likes_opened' data-url='"+n+"' data-title='"+i+"' data-linkpagesection='"+r+"'> "+t.replace(/social-likes__widget social-likes__widget_/g,"")+" <\/div>"}}).css("display","table");$(".CommonElementSharing .social-likes_single-w").on("shown.bs.popover",function(){$(".popover.bottom > .arrow").remove();$(".arrow").css("left","50%");$(".popover-content .social-likes").socialLikes()})});CarouselForMobile=function(){(isMobile()||isTablet())&&$(".featured-section-module-carousel .carousel").each(function(){$(this).attr("data-interval","false")});$(".featured-section-module-carousel").each(function(){var n=$(this).find("div.carousel.slide.conv-carousel").attr("id"),t,r,f,e;if(n!=undefined){n="#"+n;var u=".featured-section-module-carousel "+n+" .carousel-inner .item",o=".featured-section-module-carousel "+n+" ol.carousel-indicators li",s=".featured-section-module-carousel "+n+" .carousel-inner",h=".featured-section-module-carousel "+n+" ol.carousel-indicators",i=$(u+" > div").children();if($(u).remove(),$(o).remove(),i!=null)for(t=0;t<i.length;t++)r=t==0?"active":"",f=$('<div class="item '+r+'"><\/div>').append($($("<div><\/div>").append($(i[t])[0]))),i.length>1&&(e=$(document.createElement("li")).addClass(r).attr({"data-target":n,"data-slide-to":t})),$(s).append(f),i.length>1&&$(h).append(e)}})}}var _dataBlogPostList,blogPostData=jQuery("#blog-post-data"),errorMessageBlogs="",noResultsMessage="",isPageEditor="",totalBlogsRetrieved=0,startIndex=0,enableBlogsLazyLoad=!1,blogPostParameters,paramAuthor,paramBlogTag,paramCountrySite,paramIndustryId,paramMonth,paramRelativePath,paramSizeBlogAuthors,paramSizeBlogPosts,paramSizeBlogTags,paramSubjectId,paramYear,path="",url=window.location.href,arr=url.split("/"),result=arr[0]+"//"+arr[2],dataContentType="data-analytics-content-type",linkName="data-analytics-link-name";if(blogPostData!=null&&blogPostData.length>0&&(_dataBlogPostList=JSON.parse(blogPostData.text()),errorMessageBlogs=blogPostData.data("error-message"),noResultsMessage=blogPostData.data("noresults-message"),isPageEditor=blogPostData.data("is-page-editor")),(ComponentRegistry.BlogPostList||ComponentRegistry.BlogArchiveList)&&isJSONBlogPostDataAvailable()&&(blogPostParameters=getJSONBlogPostParam(),(blogPostParameters!=null||blogPostParameters.length>0)&&(paramAuthor=blogPostParameters.Author!=null?blogPostParameters.Author:"",paramBlogTag=blogPostParameters.BlogTag!=null?blogPostParameters.BlogTag:"",paramCountrySite=blogPostParameters.CountrySite!=null?blogPostParameters.CountrySite:"",paramIndustryId=blogPostParameters.IndustryId!=null?blogPostParameters.IndustryId:"",paramMonth=blogPostParameters.Month!=null?blogPostParameters.Month:"",paramRelativePath=blogPostParameters.RelativePath!=null?blogPostParameters.RelativePath:"",paramSizeBlogAuthors=blogPostParameters.SizeBlogAuthors!=null?blogPostParameters.SizeBlogAuthors:"",paramSizeBlogPosts=blogPostParameters.SizeBlogPosts!=null?blogPostParameters.SizeBlogPosts:"",paramSizeBlogTags=blogPostParameters.SizeBlogTags!=null?blogPostParameters.SizeBlogTags:"",paramSubjectId=blogPostParameters.SubjectId!=null?blogPostParameters.SubjectId:"",paramYear=blogPostParameters.Year!=null?blogPostParameters.Year:"",path="/api/sitecore/BlogPostList/GetBlogPostData",totalBlogsRetrieved=parseInt(jQuery("#TotalBlogResult").val()),startIndex=paramSizeBlogPosts)),ComponentRegistry.BlogIndustrySelectorHeader){$(function(){var n=jQuery('#block-blog-industry-selector .dropdown-menu a[href*="'+window.location.pathname+'"]').text(),t;n.length<=0&&(n=jQuery("#block-blog-industry-selector .dropdown-menu a").eq(0).text());jQuery(window).width()<1e3?jQuery("#block-blog-industry-selector div.dropdown").eq(0).hide():jQuery("#block-blog-industry-selector div.dropdown").eq(1).hide();jQuery(window).on("resize",function(){jQuery(window).width()<1e3?(jQuery("#block-blog-industry-selector div.dropdown").eq(0).hide(),jQuery("#block-blog-industry-selector div.dropdown").eq(1).show()):(jQuery("#block-blog-industry-selector div.dropdown").eq(0).show(),jQuery("#block-blog-industry-selector div.dropdown").eq(1).hide())});t=realWidth(jQuery("#block-blog-industry-selector .dropdown-menu"));jQuery("#block-blog-industry-selector .btn").css("width",t-1+"px")});jQuery(window).on("load",function(){if(isPreviewMode()){var n=jQuery("#header-topnav").height();jQuery("#block-blog-industry-selector").css("margin-top",n-29+"px")}})}if((ComponentRegistry.BlogPostList||ComponentRegistry.BlogArchiveList)&&isJSONBlogPostDataAvailable()){$(function(){var n,t;bindBlogPosts(getJSONBlogPostDataEs());jQuery(".module-blog-post-list button").on("click",function(n){n.preventDefault();jQuery(".module-blog-post-list ul li[class=hidden-xs]").removeClass("hidden-xs")});jQuery(".social-likes-post.post-is-loaded").each(function(){jQuery(this).attr("data-url",result+jQuery(this).attr("data-url"))});jQuery(".social-likes-post").socialLikes();jQuery(".social-likes-post").removeClass("post-is-loaded");jQuery(".social-likes-post div").attr(dataContentType,"share intent");jQuery(".social-likes-post div.social-likes__widget_facebook").attr(linkName,"facebook");jQuery(".social-likes-post div.social-likes__widget_twitter").attr(linkName,"twitter");jQuery(".social-likes-post div.social-likes__widget_googleplus").attr(linkName,"googleplus");jQuery(".social-likes-post div.social-likes__widget_email").attr(linkName,"email");BlogPostListAuthors();n=jQuery("#ShowPopularTagsInMobile").val()==="True";isMobile()&&!n?jQuery(".module-blog-tags").hide():BlogPostTags();t=jQuery("#ShowArchivesInMobile").val()==="True";isMobile()&&!t?jQuery(".module-blog-archive").hide():BlogPostArchiveYears();hideEmptySocialIcons();enableBlogsLazyLoad=!0});$(window).on("scroll",function(){function f(){startIndex<totalBlogsRetrieved&&enableBlogsLazyLoad&&($("#pre-loader").css("display","block"),enableBlogsLazyLoad=!1,$.ajax({url:path,type:"POST",data:JSON.stringify({Author:paramAuthor,BlogTag:paramBlogTag,CountrySite:paramCountrySite,IncludeBlogAuthorResult:!1,IncludeBlogPostsResult:!0,IncludeBlogTagResult:!1,IncludeBlogPostsDate:!1,IndustryId:paramIndustryId,Month:paramMonth,RelativePath:paramRelativePath,BlogAuthorsSize:paramSizeBlogAuthors,BlogPostsSize:paramSizeBlogPosts,BlogTagsSize:paramSizeBlogTags,SubjectId:paramSubjectId,Year:paramYear,From:startIndex}),contentType:"application/json",error:function(){result=null},success:function(n){var i,r,t;startIndex+=paramSizeBlogPosts;startIndex+1>=totalBlogsRetrieved&&jQuery("#btn-blogs-load-more").addClass("clicked");i=jQuery(".module-blog-post-list ul");r=JSON.parse(n);i.loadTemplate(jQuery(".module-blog-post-list .json-template"),r,{append:!0});InsertDataAnalyticsAttributes(".module-blog-post-list h4 a","headline");InsertDataAnalyticsAttributes(".module-blog-post-list p a","cta");t=jQuery(".social-likes-post.post-is-loaded");t.length>0&&typeof t!=undefined&&(t.each(function(){jQuery(this).attr("data-url",result+jQuery(this).attr("data-url"))}),t.socialLikes(),jQuery(".social-likes-post").removeClass("post-is-loaded"),jQuery(".social-likes-post div").attr(dataContentType,"share intent"),jQuery(".social-likes-post div.social-likes__widget_facebook").attr(linkName,"facebook"),jQuery(".social-likes-post div.social-likes__widget_twitter").attr(linkName,"twitter"),jQuery(".social-likes-post div.social-likes__widget_googleplus").attr(linkName,"googleplus"),jQuery(".social-likes-post div.social-likes__widget_email").attr(linkName,"email"),hideEmptySocialIcons())},complete:function(){$("#pre-loader").css("cssText","display: none !important;");enableBlogsLazyLoad=!0;$("div.social-likes__widget a").attr("style","text-decoration: none !important");$("div.social-likes__widget a").on("keydown",function(n){var t=$(this);n.which==13&&($(this).trigger("click"),$("div.social-likes-post div").attr("tabindex","0"));n.which==9&&$("div.social-likes-post").hasClass("social-likes_opened")&&$("div.social-likes-post").each(function(){n.preventDefault();$(this).find("div.social-likes__widget").first().trigger("focus");$(this).find("div.social-likes__widget").last().on("keydown",function(n){n.which==9&&(n.preventDefault(),$("div.social-likes-post").removeClass("social-likes_opened"),$(t).trigger("focus"))})});$("div.social-likes-post div").on("keydown",function(n){n.which==13&&$(this).trigger("click")})})}}))}if(isMobile())$("#btn-blogs-load-more").on("click",function(){f()});else{var n,t,i,e,r,u;n=$(".module-blog-post-list").offset().top;t=$(window).scrollTop();i=$(".module-blog-post-list").height();e=document.body.offsetHeight;r=t-n;u=document.documentElement.clientHeight;u+r>=i&&f()}})}if(ComponentRegistry.AuthorRecentPosts&&isJSONBlogRecentPostDataAvailable()&&$(function(){var n=jQuery("#ShowMostRecentInMobile").val()==="True";if(isMobile()&&!n){jQuery(".module-blog-recent").hide();return}bindBlogRecentPosts()}),(ComponentRegistry.BlogPostAuthors||ComponentRegistry.BlogArchiveAuthor)&&isJSONBlogPostAuthorDataAvailable()&&$(function(){BlogPostListAuthors();hideEmptySocialIcons()}),(ComponentRegistry.BlogPostTags||ComponentRegistry.BlogArchiveTags)&&isJSONBlogPostTagDataAvailable()&&$(function(){var n=jQuery("#ShowPopularTagsInMobile").val()==="True";if(isMobile()&&!n){jQuery(".module-blog-tags").hide();return}BlogPostTags()}),ComponentRegistry.BlogPostArchiveYears&&isJSONBlogPostYearDataAvailable()&&$(function(){var t=jQuery("#ShowArchivesInMobile").val()==="True",n;if(isMobile()&&!t){jQuery(".module-blog-archive").hide();return}BlogPostArchiveYears();n=jQuery("#ListYearsByIndustrySubject");typeof n!="undefined"&&n.val()&&BlogArchiveYears()}),(ComponentRegistry.BlogPostListArchiveYears||ComponentRegistry.BlogArchiveYears)&&isJSONBlogPostYearDataAvailable()&&$(function(){var n=jQuery("#ShowArchivesInMobile").val()==="True";if(isMobile()&&!n){jQuery(".module-blog-archive").hide();return}BlogArchiveYears()}),ComponentRegistry.BlogPostMultipleSubjectAuthors){jQuery("#author-carousel").on("click",".module-body a, .item-sm > a",function(n){n.preventDefault();var t=jQuery(this).attr("href").substring("1"),i=jQuery(".author-full-bio > div").eq(t).html();jQuery("#main-modal .modal-body").html(i);jQuery("#main-modal").modal("show")});$(function(){hideEmptySocialIcons()})}if($(function(){var r=window.location.search.substring(1),t=getParam(r,"blogtag"),n,i;t!=null&&(jQuery(".module-blog-tags li[value='"+t+"']").find("a").addClass("disabled-tags"),n=jQuery(".disabled-tags"),n.length>0&&(i=n.text(),n.replaceWith("<span class='disabled-tags'>"+i+"<\/span>")))}),ComponentRegistry.BlogPostListModule){$(function(){BlogPostListModule.Init()});$(window).on("scroll",function(){if(BlogPostListModule.Data.IsBlogPostDataAvailable)if(isMobile())$("#btn-blogs-load-more").on("click",function(){BlogPostListModule.BlogsLazyLoad()});else{var n,t,i,f,r,u;n=$(".module-blog-post-list").offset().top;t=$(window).scrollTop();i=$(".module-blog-post-list").height();f=document.body.offsetHeight;r=t-n;u=document.documentElement.clientHeight;u+r>=i&&BlogPostListModule.BlogsLazyLoad()}});BlogPostListModule=function(){var t=window.location.href.split("/"),n={Init:function(){if(n.SetBlogPostListModuleData(),n.Data.IsBlogPostDataAvailable){n.SetBlogPostParameters();n.BindBlogPosts(n.GetJSONBlogPostData_Es());jQuery(".module-blog-post-list button").on("click",function(n){n.preventDefault();jQuery(".module-blog-post-list ul li[class=hidden-xs]").removeClass("hidden-xs")});n.LoadSocialShare();n.Data.EnableBlogsLazyLoad=!0;n.AddBlogPostListAnalytics()}},Data:{IsBlogPostDataAvailable:!1,BlogsList:null,ErrorMessage:"",NoResultsMessage:"",IsPageEditor:"",EnableBlogsLazyLoad:!1,Result:t[0]+"//"+t[2],BlogsParam:{Author:"",BlogTag:"",CountrySite:"",IndustryId:"",Month:"",RelativePath:"",SizeBlogAuthors:"",SizeBlogPosts:"",SizeBlogTags:"",SubjectId:"",Year:"",TotalBlogsRetrieved:0,StartIndex:0,Path:""},DefaultImage:$(".module-blog-post-list").data("defaultimage"),DefaultImageAlt:$(".module-blog-post-list").data("defaultimagealt")},SetBlogPostListModuleData:function(){var t=jQuery("#blog-post-list-module-data");t!=null&&t.length>0&&(n.Data.BlogsList=JSON.parse(t.text()),n.Data.ErrorMessage=t.data("error-message"),n.Data.NoResultsMessage=t.data("noresults-message"),n.Data.IsPageEditor=t.data("is-page-editor"),n.Data.IsBlogPostDataAvailable=typeof n.Data.BlogsList!="undefined"&&n.Data.BlogsList!=null)},SetBlogPostParameters:function(){var t=n.Data.BlogsList["GetBlogPosts-return"]["blog-post-list"].params;(t!=null||t.length>0)&&(n.Data.BlogsParam.Author=t.Author!=null?t.Author:"",n.Data.BlogsParam.BlogTag=t.BlogTag!=null?t.BlogTag:"",n.Data.BlogsParam.CountrySite=t.CountrySite!=null?t.CountrySite:"",n.Data.BlogsParam.IndustryId=t.IndustryId!=null?t.IndustryId:"",n.Data.BlogsParam.Month=t.Month!=null?t.Month:"",n.Data.BlogsParam.RelativePath=t.RelativePath!=null?t.RelativePath:"",n.Data.BlogsParam.SizeBlogAuthors=t.SizeBlogAuthors!=null?t.SizeBlogAuthors:"",n.Data.BlogsParam.SizeBlogPosts=t.SizeBlogPosts!=null?t.SizeBlogPosts:"",n.Data.BlogsParam.SizeBlogTags=t.SizeBlogTags!=null?t.SizeBlogTags:"",n.Data.BlogsParam.SubjectId=t.SubjectId!=null?t.SubjectId:"",n.Data.BlogsParam.Year=t.Year!=null?t.Year:"",n.Data.BlogsParam.Path="/api/sitecore/BlogPostListModule/GetBlogPostData",n.Data.BlogsParam.TotalBlogsRetrieved=parseInt(jQuery("#TotalBlogResult").val()),n.Data.BlogsParam.StartIndex=n.Data.BlogsParam.SizeBlogPosts)},GetJSONBlogPostData_Es:function(){var t="";return $.ajax({url:n.Data.BlogsParam.Path,type:"POST",data:JSON.stringify({Author:n.Data.BlogsParam.Author,BlogTag:n.Data.BlogsParam.BlogTag,CountrySite:n.Data.BlogsParam.CountrySite,IncludeBlogAuthorResult:!1,IncludeBlogPostsResult:!0,IncludeBlogTagResult:!1,IncludeBlogPostsDate:!1,IndustryId:n.Data.BlogsParam.IndustryId,Month:n.Data.BlogsParam.Month,RelativePath:n.Data.BlogsParam.RelativePath,BlogAuthorsSize:n.Data.BlogsParam.SizeBlogAuthors,BlogPostsSize:n.Data.BlogsParam.SizeBlogPosts,BlogTagsSize:n.Data.BlogsParam.SizeBlogTags,SubjectId:n.Data.BlogsParam.SubjectId,Year:n.Data.BlogsParam.Year,From:0}),contentType:"application/json",async:!1,error:function(){n.Data.Result=null},success:function(n){t=JSON.parse(n)}}),n.ReplaceNoImageToDefaultImage(t),t},ReplaceNoImageToDefaultImage:function(t){if(t!=null)for(var i=0;i<t.length;i++)t[i].Picture==""&&(t[i].Picture=n.Data.DefaultImage,t[i].Picture_Alt=n.Data.DefaultImageAlt)},HideCommentsAndPostImage:function(n){n.find("span.blog-comment span:not([class])").each(function(){var n=jQuery(this);n.text()=="0"&&n.parent().addClass("hidden")});n.find("span.title.clickable").each(function(){var n=jQuery(this);n.addClass("hidden")});n.find("img.img-responsive.post-image").each(function(){var n=jQuery(this);n.attr("src")||n.hide()})},HideEmptySocialIcons:function(){jQuery("div.social > span.linkedin > a, div.social > span.twitter > a ,div.social > span.email > a").each(function(){var n=jQuery(this).attr("href");(n===""||n==="mailto:"||n.split("=")[1]==="")&&jQuery(this).css("display","none")})},LoadSocialShare:function(){var t=jQuery(".social-likes-post.post-is-loaded");t.length>0&&typeof t!=undefined&&(t.each(function(){jQuery(this).attr("data-url",n.Data.Result+jQuery(this).attr("data-url"))}),jQuery(".social-likes-post").socialLikes(),jQuery(".social-likes-post").removeClass("post-is-loaded"),n.HideEmptySocialIcons())},BindBlogPosts:function(t){var i;t!="blog-result-is-null"?(t.length>0?(i=jQuery(".module-blog-post-list ul"),i.loadTemplate(jQuery(".module-blog-post-list .json-template"),t),i.find("li").slice(0,4).removeClass("hidden-xs"),n.HideCommentsAndPostImage(i)):n.Data.IsPageEditor=="True"&&(i=jQuery(".module-blog-post-list"),i.append(n.Data.NoResultsMessage)),n.Data.BlogsParam.TotalBlogsRetrieved<=n.Data.BlogsParam.SizeBlogPosts&&$("#btn-blogs-load-more").addClass("clicked")):(i=jQuery(".module-blog-post-list"),i.text(n.Data.ErrorMessage))},BlogsLazyLoad:function(){n.Data.BlogsParam.StartIndex<n.Data.BlogsParam.TotalBlogsRetrieved&&n.Data.EnableBlogsLazyLoad&&($("#pre-loader").css("display","block"),n.Data.EnableBlogsLazyLoad=!1,$.ajax({url:n.Data.BlogsParam.Path,type:"POST",data:JSON.stringify({Author:n.Data.BlogsParam.Author,BlogTag:n.Data.BlogsParam.BlogTag,CountrySite:n.Data.BlogsParam.CountrySite,IncludeBlogAuthorResult:!1,IncludeBlogPostsResult:!0,IncludeBlogTagResult:!1,IncludeBlogPostsDate:!1,IndustryId:n.Data.BlogsParam.IndustryId,Month:n.Data.BlogsParam.Month,RelativePath:n.Data.BlogsParam.RelativePath,BlogAuthorsSize:n.Data.BlogsParam.SizeBlogAuthors,BlogPostsSize:n.Data.BlogsParam.SizeBlogPosts,BlogTagsSize:n.Data.BlogsParam.SizeBlogTags,SubjectId:n.Data.BlogsParam.SubjectId,Year:n.Data.BlogsParam.Year,From:n.Data.BlogsParam.StartIndex}),contentType:"application/json",error:function(){n.Data.Result.result=null},success:function(t){n.Data.BlogsParam.StartIndex+=n.Data.BlogsParam.SizeBlogPosts;n.Data.BlogsParam.StartIndex>=n.Data.BlogsParam.TotalBlogsRetrieved&&jQuery("#btn-blogs-load-more").addClass("clicked");var i=jQuery(".module-blog-post-list ul"),r=JSON.parse(t);n.ReplaceNoImageToDefaultImage(r);i.loadTemplate(jQuery(".module-blog-post-list .json-template"),r,{append:!0});n.HideCommentsAndPostImage(i);n.LoadSocialShare();n.AddBlogPostListTitleAnalytics()},complete:function(){$("#pre-loader").css("cssText","display: none !important;");n.Data.EnableBlogsLazyLoad=!0}}))},AddBlogPostListAnalytics:function(){n.AddBlogPostListTitleAnalytics();n.AddBlogPostListReadPostAnalytics()},AddBlogPostListTitleAnalytics:function(){for(var r=jQuery(".blog-post-list-title"),i=0,n,t;i<r.length;)n=jQuery(r[i]),t=n&&n.text().length?n.text().toLowerCase().trim():"",t.length&&(n.attr("data-linkaction",t),n.attr("data-analytics-link-name",t)),i++},AddBlogPostListReadPostAnalytics:function(){var t=jQuery(".new-blog-post-list .read-post"),n=t.length?t.eq(0).text():"";n.length&&(n=n.toLowerCase().trim(),t.attr("data-linkaction",n))}};return n}()}if(ComponentRegistry.BlogPostListArchive){$(function(){BlogArchiveModule.Init()});$(document).on("click touch",function(){$(".archive-module .btn-group.dropdown").removeClass("open")});BlogArchiveModule=function(){var n={Init:function(){n.SetBlogArchiveModuleData();n.Data.IsBlogArchiveDataAvailable&&(n.SetBlogArchiveModuleData(),n.SetBlogArchiveModuleVisibilityInMobile(),n.ShowDropdownItems());n.AddArchiveAnalytics()},Data:{IsBlogArchiveDataAvailable:!1,BlogArchiveData:null,IsByMonth:!1,DropdownData:"0",DropdownElem:".module-blog-archive .dropdown-toggle",DropdownItems:".new-blog-post-list-archive .dropdown-menu li",ShowArchivesByMonth:"#ShowArchivesByMonth",NumberOfMonths:"#NumberOfMonthsToBeDisplayed",ShowArchivesInMobile:"#ShowArchivesInMobile",IndustryID:"#IndustryId",SubjectID:"#SubjectId",SingleSubjectIndexID:"#SingleIndexId",CurrentSite:"#currentSite",ShowAllDictionaryID:"#ShowAllDictionary",ShowAllDictionaryValue:"Show All"},SetBlogArchiveModuleData:function(){var t=jQuery("#blog-post-list-archive-data");t!=null&&t.length>0&&(n.Data.BlogArchiveData=JSON.parse(t.text()),n.Data.IsBlogArchiveDataAvailable=typeof n.Data.BlogArchiveData!="undefined"&&n.Data.BlogArchiveData!=null,n.Data.IsByMonth=jQuery(n.Data.ShowArchivesByMonth).val()==="True",n.Data.DropdownData=jQuery(n.Data.NumberOfMonths).val()!==""?jQuery(n.Data.NumberOfMonths).val():"empty",n.Data.ShowAllDictionaryValue=jQuery(n.Data.ShowAllDictionaryID).val()!==""?jQuery(n.Data.ShowAllDictionaryID).val():"Show All")},SetBlogArchiveModuleVisibilityInMobile:function(){var t=jQuery(n.Data.ShowArchivesInMobile).val()==="True";isMobile()&&!t?jQuery(".module-blog-archive").hide():n.BlogPostArchiveModuleYears()},GetJSONBlogPostYearData:function(){return n.Data.BlogArchiveData["GetBlogPosts-return"]["blog-post-list"]["year-published-list"]},GetJSONBlogArchiveLink:function(){return n.Data.BlogArchiveData["GetBlogPosts-return"]["blog-post-list"]["blog-archive-link"]},BlogPostArchiveModuleYears:function(){n.BindBlogArchiveModuleYears();jQuery(".module-blog-archive a").on("click",function(t){t.preventDefault();var i=jQuery(this),r=i.text(),u=i.text();r==="Show All"?(r="show_all",u="show_all"):n.Data.IsByMonth?(r=i.data("year"),u=i.data("month")):r=i.attr("title");var f=jQuery(n.Data.IndustryID).val()!==undefined?jQuery(n.Data.IndustryID).val():"",e=jQuery(n.Data.SubjectID).val()!==undefined?jQuery(n.Data.SubjectID).val():"",o=jQuery(n.Data.SingleSubjectIndexID).val(),s=jQuery(n.Data.CurrentSite).val(),h=n.GetJSONBlogArchiveLink(),c=n.ConstructURLLocation(s,r,f,e,o,h,n.Data.IsByMonth,u);window.open(c,"_self")})},BindBlogArchiveModuleYears:function(){var t=".module-blog-archive .json-template";n.Data.IsByMonth&&(t=".module-blog-archive .json-template-month");jQuery(".module-blog-archive ul").loadTemplate(jQuery(t),n.GetJSONBlogPostYearData());jQuery(".module-blog-archive ul li").length==0?jQuery(".module-blog-archive").removeClass("hidden-xs").hide():jQuery(".module-blog-archive ul").append("<li><a href='#' title='"+n.Data.ShowAllDictionaryValue+"' data-analytics-content-type='cta'>"+n.Data.ShowAllDictionaryValue+"<\/a><\/li>")},ConstructURLLocation:function(n,t,i,r,u,f,e,o){var s=location.protocol+"//"+location.hostname,h="/"+n+"/home/blogs/blogarchive";return f!==""&&f!=="/"&&(h=f),s=s+h+"?year="+t+"&industry="+i+"&subject="+r+"&source="+u,e&&(s+="&month="+o),s},ShowDropdownItems:function(){var i,t;if(BlogArchiveModule.Data.IsByMonth)for(i=jQuery(n.Data.DropdownItems).length,n.Data.DropdownData=n.Data.DropdownData==="empty"?i:n.Data.DropdownData,t=0;t<i;t++)t>=n.Data.DropdownData&&t!==i-1&&jQuery(n.Data.DropdownItems)[t].classList.add("hidden");jQuery("#BlogPostListArchiveDropdown").addClass("show")},AddArchiveAnalytics:function(){n.AddArchiveDropdownElemAnalytics();n.AddArchiveDropdownAnalytics()},AddArchiveDropdownElemAnalytics:function(){for(var r=jQuery(".module-blog-archive ul li a"),i=0,n,t;i<r.length;)n=jQuery(r[i]),t=n&&n.text().length?n.text().toLowerCase().trim():"",t.length&&(n.attr("data-linkaction",t),n.attr("data-analytics-link-name",t)),i++},AddArchiveDropdownAnalytics:function(){var t=jQuery(".module-blog-archive button.dropdown-toggle"),n=t.length?t.text():"";n.length&&(n=n.toLowerCase().trim(),t.attr("data-linkaction",n),t.attr("data-analytics-link-name",n))}};return n}()}if(ComponentRegistry.BlogPostListAuthors&&($(function(){BlogAuthorModule.Init()}),BlogAuthorModule=function(){var n={Init:function(){n.SetBlogAuthorModuleData();n.Data.IsBlogAuthorDataAvailable&&(n.BindBlogAuthors(),n.SetEventHandlers(),n.HideEmptySocialIcons(),n.AddClassNextItem(),BlogAuthorModule.MakeDescriptionDotDot())},Data:{IsBlogAuthorDataAvailable:!1,BlogAuthors:{All:null,FirstEight:null}},SetBlogAuthorModuleData:function(){var i=jQuery("#blog-post-list-authors-data"),t;i!=null&&i.length>0&&(t=JSON.parse(i.text()),n.Data.BlogAuthors.All=t["GetBlogPosts-return"]["blog-post-list"]["author-list"],n.Data.BlogAuthors.FirstEight=n.Data.BlogAuthors.All.slice(0,8),localStorage.setItem("authorList",JSON.stringify(n.Data.BlogAuthors.All)),n.Data.IsBlogAuthorDataAvailable=typeof t!="undefined"&&t!=null)},BindBlogAuthors:function(){jQuery(".module-blog-authors .author-full-bio").loadTemplate(jQuery(".module-blog-authors .json-template-fullbio"),n.Data.BlogAuthors.FirstEight);jQuery("#author-carousel .item .contributingAuthorImage").each(function(){var t=jQuery(this),n=t.attr("src");(n==undefined||n==null||n==="")&&t.addClass("hidden")})},SetEventHandlers:function(){jQuery(".carousel-indicators li").on("click",function(){n.LoadNextCarouselItem()});jQuery("a#display-see-more").on("click",function(){jQuery(".item.active #display-see-more").addClass("hidden");jQuery(".item.active #display-see-less").removeClass("hidden");jQuery(".authorShortDescription").addClass("hidden");jQuery(".authorLongDescription").removeClass("hidden");jQuery(".active .blogAuthorSocial .twitter a").attr("href")!=="https://twitter.com/intent/user?screen_name="&&jQuery(".active .blogAuthorSocial .twitter a").attr("href")!==""&&jQuery(".blog-contributing-authors.blogAuthorSocial").removeClass("hidden")});jQuery("a#display-see-less").on("click",function(){jQuery(".item.active #display-see-more").removeClass("hidden");jQuery(".item.active #display-see-less").addClass("hidden");jQuery(".authorShortDescription").removeClass("hidden");jQuery(".authorLongDescription").addClass("hidden");jQuery(".blog-contributing-authors.blogAuthorSocial").addClass("hidden")});jQuery(".moreContributorsLinkRight").on("click",function(){n.LoadNextCarouselItem();n.MoreContributorsRightClick(jQuery(".module-blog-authors #author-carousel .carousel-inner#authors-carousel"))});jQuery(".moreContributorsLinkLeft").on("click",function(){n.LoadNextCarouselItem();n.MoreContributorsLeftClick(jQuery(".module-blog-authors #author-carousel .carousel-inner#authors-carousel"))});jQuery(".module-blog-authors a.cta, a.ctaViewAll").on("click",function(t){var i,r,u;if(t.preventDefault(),i=this.id,i=="display-full-bio"&&(r=jQuery("#author-carousel .item.active").index(),u=jQuery(".author-full-bio > div").eq(r).html(),jQuery("#main-modal #modal-full-bio .modal-body").html(u),jQuery("#content-wrapper, .skip-main").attr("aria-hidden","true"),jQuery("#main-modal .modal-dialog").removeAttr("style"),jQuery("#main-modal #modal-all-authors").hide(),jQuery("#main-modal #modal-full-bio").show(),jQuery("#main-modal #modal-all-authors-bio").hide()),i=="display-view-all"){jQuery(".modal-content .icon-arrowrightarrow").show();jQuery("#main-modal .modal-dialog").css("width","auto");jQuery("#main-modal #modal-full-bio").hide();jQuery("#main-modal #modal-all-authors-bio").hide();n.BindAuthorFullBio();jQuery("div.modal-content a.cta").on("click",function(t){t.preventDefault();var i=jQuery(JSON.parse(localStorage.getItem("authorList")).sort(n.SortAuthor)).eq(jQuery(t.target).data("author"))[0];$(window).width()<768&&jQuery(".full-bio-back .no-underline.corporate-black").hide();jQuery("#modal-all-authors-bio .modal-body").html(jQuery(".author-full-bio > div").eq(0).html());jQuery("#modal-all-authors-bio h4#authorname-desktop,h4#authorname-mobile").text(i.Name);jQuery("#modal-all-authors-bio p").text(i.Long_Description);jQuery("#modal-all-authors-bio img").attr("src",i.Url_Image);jQuery("#modal-all-authors-bio img").attr("alt",i.Name);jQuery("#modal-all-authors-bio img").attr("title",i.Name);jQuery("#modal-all-authors-bio .social").html("");n.DisplaySocialLinks(i);jQuery("#content-wrapper, .skip-main").attr("aria-hidden","true");jQuery("#modal-all-authors").hide();jQuery("#modal-all-authors-bio").modal("show");jQuery(".modal-dialog").removeAttr("style")});jQuery("#modal-all-authors").show()}(i==="display-full-bio"||i==="display-view-all")&&jQuery("#main-modal").modal("show");jQuery(".modal-backdrop, #main-modal .close").off("click").on("click",function(){jQuery(".modal-content .icon-arrowrightarrow").hide();jQuery(".job-arrow-left").hide();jQuery("#content-wrapper, .skip-main").attr("aria-hidden","false")});jQuery(".modal-content .full-bio-back a").on("click",function(n){n.preventDefault();jQuery(".modal-content .carousel.slide").show();jQuery("#modal-all-authors").show();jQuery("#modal-all-authors-bio").modal("hide");jQuery("#main-modal .modal-dialog").css("width","auto")});jQuery(".modal-content .slide > .icon-arrowrightarrow").off("click").on("click",function(){n.ArrowRightClick(jQuery(".modal-content .carousel-inner"))});jQuery(".job-arrow-left").off("click").on("click",function(){n.ArrowLeftClick(jQuery(".modal-content .carousel-inner"))})})},LoadNextCarouselItem:function(){jQuery(".item #display-see-more").removeClass("hidden");jQuery(".item #display-see-less").addClass("hidden");jQuery(".authorShortDescription").removeClass("hidden");jQuery(".authorLongDescription").addClass("hidden");jQuery(".blog-contributing-authors.blogAuthorSocial").addClass("hidden")},HideEmptySocialIcons:function(){jQuery("div.social > span.linkedin > a, div.social > span.twitter > a ,div.social > span.email > a").each(function(){var n=jQuery(this).attr("href");(n===""||n==="mailto:"||n.split("=")[1]==="")&&jQuery(this).css("display","none")})},BlogAuthorCarousel:function(n){var r=jQuery(".modal-content .carousel-inner .col-sm-4"),t=0,i;for(ctr=0;ctr<r.length;ctr+=n)t+=1,i="",i=t==1?"active":t==2?"next":"",r.slice(ctr,ctr+n).wrapAll("<div id='slide-"+t+"' class = 'item "+i+"'><\/div>")},BindAuthorFullBio:function(){var r="",i="FULL BIO",t=JSON.parse(localStorage.getItem("authorList"));for(jQuery("#display-full-bio").length>0&&(i=jQuery("#display-full-bio").text()),t.sort(n.SortAuthor),ctr=0;ctr<t.length;ctr++)r+='<div class="col-sm-4"><img src="'+t[ctr].Url_Image+'"><div class="module-body"><h2 class="authorname-overlay">'+t[ctr].Name+'<\/h2><a class="cta" data-author='+ctr+' href="#" title="'+i+'" data-analytics-content-type="cta" data-analytics-link-name="'+i.toLowerCase()+'">'+i+'<\/a><div class="hidden">'+t[ctr].Long_Description+"<\/div><\/div><\/img><\/div>",jQuery("div.modal-content .carousel-inner").html(r);isMobile()?n.BlogAuthorCarousel(2):n.BlogAuthorCarousel(3)},DisplaySocialLinks:function(n){var r,t,u,i;n.Social_Linked_In.length>0&&jQuery("#modal-all-authors-bio .social").append('<span class="linkedin" title="LinkedIn"><a title="LinkedIn" href="'+n.Social_Linked_In+'" data-analytics-content-type="cta" data-analytics-link-name="linkedin"><\/a><\/span> ');r=n.Social_Twitter.lastIndexOf("=");t=n.Social_Twitter.substring(r+1);t.length>0&&jQuery("#modal-all-authors-bio .social").append('<span class="twitter" title="Twitter"><a title="Twitter" href="https://twitter.com/intent/user?screen_name='+t+'" data-analytics-content-type="cta" data-analytics-link-name="twitter"><\/a><\/span>');u=n.Social_Email.lastIndexOf(":");i=n.Social_Email.substring(u+1);i.length>0&&jQuery("#modal-all-authors-bio .social").append('<span class="email" title="Email"><a title="Email" href="mailto:'+i+'" data-analytics-content-type="cta" data-analytics-link-name="email"><\/a><\/span>')},AddClassNextItem:function(){var n=jQuery(".module-blog-authors #author-carousel .carousel-inner#authors-carousel"),t=n.find(".item.active").index();n.children().eq(t+1).addClass("next");jQuery(".moreContributorsLinkLeft").css("visibility","hidden");jQuery(".blogAuthorLinkedInOverlay").removeClass("hidden")},MoreContributorsRightClick:function(){var n=jQuery(".module-blog-authors #author-carousel .carousel-inner#authors-carousel"),i=jQuery(".module-blog-authors #author-carousel .carousel-inner#authors-carousel .item").length-1,t=n.find(".next").index();jQuery("div.item.next > div.module-body > div.authorShortDescription").triggerHandler("destroy.dot");n.find(".item.active").removeClass("active");n.find(".prev.left").removeClass("prev left");n.children().eq(t-1).removeClass("active").addClass("prev left");n.children().eq(t).removeClass("next").addClass("active");n.children().eq(t+1).addClass("next");n.find(".active").index()==0?(n.find(".prev.left").removeClass("prev left"),jQuery(".moreContributorsLinkLeft").css("visibility","hidden")):jQuery(".moreContributorsLinkLeft").css("visibility","visible");n.find(".active").index()==i&&jQuery(".moreContributorsLinkRight").css("visibility","hidden");BlogAuthorModule.MakeDescriptionDotDot()},MoreContributorsLeftClick:function(n){var t=n.find(".prev").index();jQuery("div.item.prev > div.module-body > div.authorShortDescription").triggerHandler("destroy.dot");n.find(".next").removeClass("next");n.children().eq(t+1).removeClass("active").addClass("next");n.children().eq(t).removeClass("prev left").addClass("active");t<=0?jQuery(".moreContributorsLinkLeft").css("visibility","hidden"):n.children().eq(t-1).addClass("prev left");jQuery(".moreContributorsLinkRight").css("visibility","visible");BlogAuthorModule.MakeDescriptionDotDot()},ArrowRightClick:function(){var n=jQuery(".modal-content .carousel-inner"),t=n.find(".next").index();n.find(".prev.left").removeClass("prev left");n.children().eq(t-1).removeClass("active").addClass("prev left");n.children().eq(t).removeClass("next").addClass("active");n.children().eq(t+1).addClass("next");(t>=n.children().length-1||n.children().length==1)&&jQuery(".modal-content .slide > .icon-arrowrightarrow").hide();jQuery(".job-arrow-left").show()},ArrowLeftClick:function(n){var t=n.find(".prev").index();n.find(".next").removeClass("next");n.children().eq(t+1).removeClass("active").addClass("next");n.children().eq(t).removeClass("prev left").addClass("active");t<=0?jQuery(".job-arrow-left").hide():n.children().eq(t-1).addClass("prev left");jQuery(".modal-content .icon-arrowrightarrow").show()},MakeDescriptionDotDot:function(){$("div.item.active > div.module-body > div.authorShortDescription").dotdotdot({watch:window,wrap:"letter",height:54,tolerance:3})},SortAuthor:function(n,t){return n.Name<t.Name?-1:n.Name>t.Name?1:0}};return n}()),ComponentRegistry.BlogPostRelatedContent&&$(function(){var n=$("#ShowMostRecentInMobile").val()==="True";if(isMobile()&&!n){$(".blogpost-related-content").hide();return}$(".blogpost-related-content ul li").length==0&&$(".blogpost-related-content").hide()}),ComponentRegistry.BlogPostRelatedTopics&&$(function(){var n=$("#ShowPopularTagsInMobile").val()==="True";if(isMobile()&&!n){$(".blog-related-topics").hide();return}$(".blog-related-topics ul li").length==0&&$(".blog-related-topics").hide()}),ComponentRegistry.SelfSelection&&$(function(){$(".self-selection").closest(".floatcontainer").addClass("selfselectionfloating");$(".self-selection .dropdown-menu a").on("click",function(){$(".self-selection .text").text($(this).text())})}),ComponentRegistry.CareersSmartByteCollection)$(window).on("load",function(){var n=$("#careers_packery");n.packery({itemSelector:".packery-component",gutter:0});n.packery()});if(ComponentRegistry.Unsubscribe){chkBoxTalentConnection=$("#chkAcnTalentConnection");$(function(){var i=$("#divTalentConnectionSubscription"),r,n,t,u;i.hide();r=chkBoxTalentConnection.val();r!=undefined&&talentConnectionHelper.talentConnectionInit();chkBoxTalentConnection.on("change",function(){var n=$(this);typeof n!="undefined"&&(n.is(":checked")?($("#ddHighestDegreeEarned").addClass("form-control validate-excluded-field"),$("#ddHighestDegreeError").hide(),$("#ddHighestDegreeChecked").hide(),i.show(),ReadOnlyDatepickerSubscription()):i.hide())});$("#ddHighestDegreeEarned").on("change",function(){var t=$("#ddHighestDegreeEarned").val(),i=$(".Status:radio:checked").val(),n,r=chkBoxTalentConnection.filter(":checked").val();r&&i=="isProfessional"?t==talentConnectionHelper.getDefaultSelectValue()||t==""?($("#ddHighestDegreeError").show(),$("#ddHighestDegreeChecked").hide(),$("#ddHighestDegreeLabel").css({color:"#b94a48","font-weight":"bold"}),n=!1):($("#ddHighestDegreeError").hide(),$("#ddHighestDegreeChecked").show(),$("#ddHighestDegreeLabel").css({color:"black","font-weight":""}),n=!0):n=!0});storeCache();n=!1;$("input[name=alertTopic]").on("click",function(){var t="",r,i;for($("input[name=alertTopic]").each(function(){t=$(this).prop("checked")==!1?t+"false|":t+"true|"}),n=!1,r=t.split("|"),i=0;i<=r.length;i++)if(r[i]=="false")n=!0;else if(r[i]=="true"){n=!1;break}n==!0&&$("#subs-main-modal").modal("show")});$("#subsCancel").on("click",function(){$('input[name="emailAddress"]').val($("#EmailAddress").val());$(".modal").modal("hide")});$("#update-subscription").on("click",function(){var n=$(".subscriptionForm").data("bootstrapValidator");if(n.$submitButton=$("#subsUpdate"),n.validate(),chkBoxTalentConnection.prop("checked")?$(".Status:radio:checked").val()==="isStudent"?isHighestDegreeValid=!0:typeof $("#ddHighestDegreeEarned")!==undefined&&$("#ddHighestDegreeEarned").val()===""?($("#ddHighestDegreeError").show(),$("#ddHighestDegreeLabel").css({color:"#b94a48","font-weight":"bold"}),isHighestDegreeValid=!1):isHighestDegreeValid=!0:isHighestDegreeValid=!0,n.isValid()&&isHighestDegreeValid){var f=$("#EmailAddress").val(),e=$('input[name="emailAddress"]').val(),o=$("#chkSubscribeToCareerBlog").val().toLowerCase()==="true",s=$("#hasTalentConnectionId").val().toLowerCase()==="true",t=$("#chkSubscribeToCareerBlog").prop("checked"),i=$("#talentConnectionHasChanged").val(!1),r=$("#careersBlogHasChanged").val(!1),u;u=talentConnectionHelper.getTalentConnectionModel().Subscription!=null&&talentConnectionHelper.getTalentConnectionModel().Subscription!=chkBoxTalentConnection.prop("checked")?talentConnectionHelper.getProfileTalentConnectionValuesSubscription():talentConnectionHelper.getTalentConnectionModel();t!=o&&r.val(!0);chkBoxTalentConnection.prop("checked")!=s&&i.val(!0);f==e?i.val().toLowerCase()==="true"||r.val().toLowerCase()==="true"?$.ajax({url:"/api/sitecore/SubscriptionEmailAlert/SubscribeTalentConnection",type:"POST",async:!1,data:JSON.stringify({profileTalentConnectionModel:u,blogSubscription:t}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error");typeof acncm!="undefined"&&acncm.Forms.detectedRegistrationFormError()},success:function(t){t==!0&&(n.defaultSubmit(),jQuery("body").trigger("analytics-form-success"))}}):(n.defaultSubmit(),jQuery("body").trigger("analytics-form-success")):$("#SubscriptionChangeEmailModal").modal("show")}else jQuery("body").trigger("analytics-form-error")});$("#textarea").placeholder();$("#textarea").each(function(){var n=$(this);n.on("focus",function(){/msie|MSIE 9/.test(navigator.userAgent)||n.removeAttr("placeholder")})});$("#emailoptinForm").bootstrapValidator({fields:{unsubscribeCaptchaInput:{trigger:"blur",validators:{notEmpty:{message:"Required Captcha"},callback:{message:"Incorrect Captcha",callback:function(n){return n==""?!0:isOptInCaptchaCorrect()}}}}}});$("div").hasClass("manage-alert")&&$("form").hasClass("acn-form subscriptionForm form-horizontal")&&($.trim($("div[class='step-headline manage-subscription-headline']").text())=="E-mail Address"&&($(".manage-alert .subscriptionForm section[class='form-section col-xs-12'] hr").hide(),$(".manage-alert .subscriptionForm section[class='form-section col-xs-12']").attr("class","form-section bg-color-lighter-gray col-xs-12"),$("#subscriptionId").parent().attr("class","form-section col-xs-12")),$("div").hasClass("client profile-edit")&&($(".manage-alert .subscriptionForm section[class='form-section col-xs-12'] hr").hide(),$(".manage-alert .subscriptionForm section[class='form-section col-xs-12']").attr("class","form-section bg-color-lighter-gray col-xs-12"),$("#subscriptionId").parent().attr("class","form-section col-xs-12")));t=$("#optinmodule-emailstatus-content").data("emailstatus-code");t!=null&&t>=200&&t<300&&typeof acncm!="undefined"&&acncm.EA.detectedSignUp();u=$("#IsUnsubscribed").val();u=="True"&&$("#unsubscribe-modal").length&&$("#subs-main-modal").modal("show")});function storeCache(){var n=[],t;$("input[type=checkbox]").each(function(){$(this).prop("checked")==!0&&n.push($(this).val())});t={cacheTopics:n};acncm.CacheManager.write("subscribedTopicsCache",JSON.stringify(t))}function OpenUnsubscribePage(){window.location.href=$("#unsubscribe-modal").attr("href");storeCache()}function CancelSubscription(){var t=acncm.CacheManager.read("subscribedTopicsCache"),i,n;if(typeof t!="undefined")for(i=JSON.parse(t),cachedTopics=i.cacheTopics,n=0;n<=cachedTopics.length-1;n++)$("input:checkbox[value='"+cachedTopics[n]+"']").prop("checked",!0)}function showTextbox(){var n=$("#textarea");n.length>0&&(n.show(),n.val(""))}function hideTextbox(){var n=document.getElementById("textarea");n.style.display="none"}function ValidateOptIn(n,t,i,r,u,f,e,o){var h=$("#"+r).val(),c=!1,l,s;typeof h=="undefined"&&(h=u,c=!0);l=[];$('input[name="'+i+'"]:checked').each(function(){l.push($(this).val())});s=$("#"+t).data("bootstrapValidator");s.$submitButton=$("#"+n);s.validate();s.isValid()&&$.ajax({url:"/api/sitecore/OptInModule/OptInModulePost",type:"POST",async:!1,data:JSON.stringify({emailAddress:h,alertTopic:l,countrySite:o,itemGuid:f,isAuthenticated:c}),contentType:"application/json",dataType:"json",traditional:!0,error:function(){alert("OptIn is unavailable")},success:function(n){SuccessSubscribe(n,e,c)}})}function ValidateSubs(n){var t=$(".subscriptionForm").data("bootstrapValidator");if(t.$submitButton=$("#subsUpdate"),t.validate(),t.isValid()&&n==!0)t.defaultSubmit();else return}function SuccessSubscribe(n,t,r){var e=$("#"+t),u=document.createElement("div"),o=document.createElement("ul"),s=document.createElement("span"),l=$("#optinmodule-captcha-content").data("optin-emailalert"),f,h,c;if(r&&(f=e.find('a[class="cta"]')),$("#optinmodule-formcontent").remove(),e.empty(),$(u).attr({"class":"form-section title-nonprimary",id:"opt-in-bottom"}),$(o).attr({id:"opt-in-description","class":"description"}),$(s).attr({id:"optinmodule_emailstatus_content","class":"hidden","data-emailstatus-code":n.emailStatusCode}),e.replaceWith(u),$(u).append("<hr />").append("<h2 class = 'module-headline title-nonprimary'>"+n.title+"<\/h2>"),$(u).append("<p id='opt-in-summary'>"+n.optInSummary+"<\/p>"),n.alertTopic.length>0)for(i=0;i<n.alertTopic.length;i++)$(o).append("<li>"+n.alertTopic[i]+"<\/li>");$(u).append(o);typeof f!="undefined"&&f.length>0?(h=document.createElement("div"),$(h).addClass("module-body col-xs-12").append(f),$(u).append(h)):n.emailStatusCode!=l&&(c="<a class='cta' href="+n.ManageSubsLink.Url+"?ea="+n.EncryptedEmailAddress+"&#Subscription'>"+n.ManageSubsLink.Text+"<\/a>",$(u).append(c));$(u).after(s);n.vCaptcha==null&&$(s).next().remove()}function isOptInCaptchaCorrect(){var t=$('input[name="unsubscribeCaptchaInput"]').val(),n=!1,i=$("#optinmodule-captcha-content").data("optin-captchaid"),r=$("#optinmodule-captcha-content").data("optin-captchainstance"),u=$("#optinmodule-captcha-content").data("optin-userinputclientid");return $.ajax({url:"/api/sitecore/OptInModule/IsWordCorrect",type:"POST",async:!1,data:JSON.stringify({id:i,input:t,instance:r}),contentType:"application/json",traditional:!0,error:function(){alert("Error on captcha validation.")},success:function(t){t=="True"?n=!0:document.getElementById(u).Captcha.ReloadImage()}}),n}function emailConfirmationSettings(){var n,i,t;$("div").hasClass("page-title")&&(n=$("#HeaderBackgroundColor"),i=$(".page-title.row > h1"),$(".page-title.row > h1").text($("#HeaderTitle").val()),$("#block-hero").addClass("bg-color-"+n.val()).removeClass("bg-color-active"),t=$(".bg-color-"+n.val()).css("background-color"),$(".cta").css("color",t))}talentConnectionHelper={talentConnectionInit:function(){var n;$("#talentConnectionHasChanged").val(!1);$("#ddUniversity").append(new Option(talentConnectionHelper.getDefaultSelectValue()));n=talentConnectionHelper.getTalentConnectionModel().LinkedInProfileUrl;n!=null&&$("#TalentConnectionRegistration_LinkedIn").val(n);var i=$("#CurrentProgram-fields"),r=$("#DegreeMajor-fields"),t=$("#School-fields");t.hide();talentConnectionHelper.getUniversityByCountryOnLoad();talentConnectionHelper.getCurrentProgramOfStudyOther();talentConnectionHelper.getDegreeMajorOther()},getCurrentProgramOfStudyOther:function(){$("#ddCurrentProgramOfStudy").val()==$("#CurrentProgram-other").val()?($("#currentProgram-textBox").val($("#currentProgramOtherText").val()),$("#CurrentProgram-fields").show()):currentProgramFields.hide()},getDegreeMajorOther:function(){$("#ddDegreeMajor").val()==$("#DegreeMajor-other").val()?($("#degreeMajor-textBox").val($("#degreeMajorOtherText").val()),$("#DegreeMajor-fields").show()):degreeMajorFields.hide()},getUniversityByCountryOnLoad:function(){var r=$("#ddCountries").val();if(r==""||r==undefined)$("#ddUniversity").prop("disabled",!0);else{var n=$("#ddUniversity"),f=$("#School-other"),t=$("#School-other").attr("name"),i=talentConnectionHelper.getTalentConnectionModel().School,u=i.substr(0,t.length);u==t&&(t=i.substr(8));$.ajax({url:"/api/sitecore/SubscriptionEmailAlert/GetUniversityByCountry",async:!1,type:"POST",data:JSON.stringify({countryId:$("#ddCountries").val()}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(r){n.prop("disabled",!1);var u='<option value="">Select<\/option>';$("#ddUniversity").empty();$.each(r,function(n,t){u=u+"<option value="+t.Id+">"+t.Name+"<\/option>"});n.html(u).selectpicker("refresh");$("#ddUniversity option").each(function(){var u=$.trim($(this).text()),r;if(i.length>0){if(u.toLowerCase()==i.toLowerCase())return n.selectpicker("val",$(this).val()).selectpicker("refresh"),!1}else return schoolFields.hide(),!1;r=$("#School-other").val();n.selectpicker("val",r).selectpicker("refresh");schoolFields.show();$("#school-textBox").val(t)})}})}},getTalentConnectionDefaultValues:function(){var n={};return n.HighestDegreeEarned=null,n.CurrentProgramOfStudy=null,n.CountryOfSchool=null,n.School=null,n.DegreeMajor=null,n.DegreeStartDate=null,n.ExpectedGraduationDate=null,n.LinkedInProfileUrl="",n.Subscription=!1,n},getRelevantExperience:function(){return $(".getStatusAcn")},getDefaultSelectValue:function(){return $("#selectId").val()},getTalentConnectionModel:function(){return JSON.parse($("#TCModel").val())!==null?JSON.parse($("#TCModel").val()):talentConnectionHelper.getTalentConnectionDefaultValues()},countryOnChange:function(n){var t=n.val(),i=$("#ddUniversity"),r;schoolFields.hide();$("#school-textBox").val("");t!=""&&t!=talentConnectionHelper.getDefaultSelectValue()?(r=$("#SiteLanguage").val(),$.ajax({url:"/api/sitecore/SubscriptionEmailAlert/GetUniversityByCountry",async:!1,type:"POST",data:JSON.stringify({countryId:t}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){i.prop("disabled",!1);var t='<option value="">Select<\/option>';$("#ddUniversity").empty();$.each(n,function(n,i){t=t+"<option value="+i.Id+">"+i.Name+"<\/option>"});i.html(t).selectpicker("refresh")}})):i.prop("disabled",!0).selectpicker("val","").selectpicker("refresh")},toggleExperienceLevelAcnTC:function(n){var t=$(n).val();$(n).is(":checked")&&(talentConnectionHelper.getRelevantExperience().hide(),t=="isStudent"?$("#ddhighestDegreeEarned").removeClass("form-control validate-excluded-field"):$("#ddhighestDegreeEarned").addClass("form-control validate-excluded-field"),$("#"+t).show())},getProfileTalentConnectionValuesSubscription:function(){var e=$(".Status:radio:checked").val(),n={},t,i;if(typeof chkBoxTalentConnection!==undefined&&$("#hasTalentConnectionId").val()=="False"){if(e=="isProfessional")n.highestDegreeEarned=$("#ddHighestDegreeEarned").val(),n.currentProgramOfStudy=null,n.countryOfSchool=null,n.school=null,n.degreeMajor=null,n.degreeStartDate=null,n.expectedGraduationDate=null;else{var o=$("#ddCurrentProgramOfStudy :selected").val(),s=$("#CurrentProgram-other").val(),r=$("#ddCurrentProgramOfStudy :selected").text(),h=$("#currentProgramDefaultValue").val();n.currentProgramOfStudy=o==s?PrependOther($("#currentProgram-textBox").val()):r!=h?r:null;var c=$("#ddCountries :selected").val(),l=$("#ddUniversity :selected").val(),a=$("#School-other").val(),u=$("#ddUniversity :selected").text(),v=$("#schoolDefaultValue").val();n.school=l==a?PrependOther($("#school-textBox").val()):u!=v?u:null;n.countryOfSchool=c;var y=$("#ddDegreeMajor :selected").val(),p=$("#DegreeMajor-other").val(),f=$("#ddDegreeMajor :selected").text(),w=$("#degreeMajorDefaultValue").val();n.degreeMajor=y==p?PrependOther($("#degreeMajor-textBox").val()):f!=w?f:null;t=$("#startDateValSubscription").val();t!=""&&(n.degreeStartDate=FormatDateTalentConnectionSubscription(t));i=$("#gradDateValSubscription").val();i!=""&&(n.expectedGraduationDate=FormatDateTalentConnectionSubscription(i));n.highestDegreeEarned=null}n.linkedInProfileUrl=$("#TalentConnectionRegistration_LinkedIn").val();n.subscription=!0}else n.subscription=!1;return n}};$("#ddCountries").on("change",function(){var n=$(this);talentConnectionHelper.countryOnChange(n)});$(".Status").each(function(){var n=$(this);talentConnectionHelper.toggleExperienceLevelAcnTC(n);n.on("click",function(){talentConnectionHelper.toggleExperienceLevelAcnTC($(this))})});$("#ddCurrentProgramOfStudy").on("change",function(){var n=$(this).val(),t=$("#CurrentProgram-other").val();n==t?currentProgramFields.show():currentProgramFields.hide()});$("#ddCurrentProgramOfStudy").val()==$("#CurrentProgram-other").val()&&($("#currentProgram-textBox").val($("#currentProgramOtherText").val()),$("#CurrentProgram-fields").show());$("#ddDegreeMajor").on("change",function(){var n=$(this).val(),t=$("#DegreeMajor-other").val();n==t?degreeMajorFields.show():degreeMajorFields.hide()});$("#ddDegreeMajor").val()==$("#DegreeMajor-other").val()&&($("#degreeMajor-textBox").val($("#degreeMajorOtherText").val()),$("#DegreeMajor-fields").show());$("#ddUniversity").on("change",function(){var n=$(this).val(),t=$("#School-other").val();n==t?schoolFields.show():schoolFields.hide()})}$("#btnUploadResumeSubscription").on("click",function(){var n=$("#EditProfileEmailAddress").val();$.ajax({url:"/api/sitecore/SubscriptionEmailAlert/GetUploadLink",async:!1,type:"POST",data:JSON.stringify({email:n}),contentType:"application/json",success:function(n){uploadResume(n)},error:function(){alert("EMAIL VALIDATION ERROR")}})});if(ComponentRegistry.contactUs){var profileClicked="",referrerUrl="",urlTrack="",isacncmAlive=typeof acncm.CacheManager!="undefined"&&acncm.CacheManager!=null,getReferrerUrl=document.referrer,jobSeekersRelationship=$("#frmJobseekers").data("jobseekers");getReferrerUrl==""&&(getReferrerUrl=window.location.href);isacncmAlive&&(urlTrack=acncm.CacheManager.readUrl("TrackingHistory"));$(function(){var t=GetExternalReferralUrl(),n;$(".comment-italic").placeholder();$("#newsMediaDropDown").addClass("bottom-separator");$("#linkNewQuestion").on("click",function(){if($(".btn-group.bootstrap-select.form-control ul").each(function(){var n=$(this).find("li").find("a").first().text();$(this).find("li").removeClass("selected");$(this).find("li").first().addClass("selected");$(this).parent().parent().find(".filter-option").text(n)}),$("#SendQuestionThanksMsg").css("display","none"),$("#sendQuestionPanelBody").css("display","block"),$("#frmSendQuestion").find("input").val(""),$("#frmSendQuestion").find("textarea").val(""),sqValidator=="submitted"){var n=$("#frmSendQuestion").data("bootstrapValidator");n.setLiveMode("disabled");n.setLiveMode(sqValidator)}$("#frmSendQuestion").data("bootstrapValidator").resetForm();$("#sendQuestion_related").val("Select");$("#sendQuestion_country").val("Select Your Country/Region");$("#SendQuestion_Count").prop("readonly",!1);$("#SendQuestion_Count").val(sqNumChar);$("#SendQuestion_Count").attr("readonly","readonly")});$("#frmSendQuestion").bootstrapValidator({fields:{captchaInput:{trigger:"submit",validators:{notEmpty:{message:$("#CaptchaRequired").val()},callback:{message:$("#IncorrectCaptcha").val()}}}},submitHandler:function(){}});$("#btnSendQuestion").on("click",function(){var u=GetExternalReferralUrl(),f=$("#sendquestionCaptcha input[name=captchaInput]").val(),e=$("#sendQuestion_related :selected").text(),t;if(e=="Other"?$("#frmSendQuestion").data("bootstrapValidator").enableFieldValidators("others",!0):$("#frmSendQuestion").data("bootstrapValidator").enableFieldValidators("others",!1),f!==""?(t=$("#frmSendQuestion").data("bootstrapValidator"),t.enableFieldValidators("captchaInput",!1)):(t=$("#frmSendQuestion").data("bootstrapValidator"),t.enableFieldValidators("captchaInput",!0)),n=t,t.$submitButton=this,t.validate(),t.isValid()){var i=$("#sendQuestion_emailaddress").val(),v=$("#sendQuestion_country").val(),o=$("#sendQuestion_related").val(),s={FirstName:$("#sendQuestion_firstname").val(),LastName:$("#sendQuestion_lastname").val(),UserEmail:$("#sendQuestion_emailaddress").val(),UserOrg:$("#sendQuestion_company").val(),UserRelationship:$("#sendQuestion_related").val(),UserOther:$("#sendQuestion_others").val(),Country:$("#sendQuestion_country").val(),TelNumber:$("#sendQuestion_phone").val(),Comments:$("#sendQuestion_description").val()},r=sendquestionId,h=$("#currentItemLanguage").val(),c=o,l="<Information><FirstName>"+$("#sendQuestion_firstname").val()+"<\/FirstName><LastName>"+$("#sendQuestion_lastname").val()+"<\/LastName><EmailAddress>"+$("#sendQuestion_firstname").val()+"<\/EmailAddress><Company>"+removeTags($("#sendQuestion_company").val())+"<\/Company><Relationship>"+$("#sendQuestion_related").val()+"<\/Relationship><Others>"+removeTags($("#sendQuestion_others").val())+"<\/Others><Country>"+$("#sendQuestion_country").val()+"<\/Country><Comments>"+removeTags($("#sendQuestion_description").val())+"<\/Comments><PhoneNumber>"+$("#sendQuestion_phone").val()+"<\/PhoneNumber><CountrySite>"+CountrySiteName+"<\/CountrySite><Status>"+ProfileId+"<\/Status><CreatedId>"+i+"<\/CreatedId><FormGuid>"+formDefinitionGuid+"<\/FormGuid><\/Information>",a={FormDefinitionGuid:formDefinitionGuid,CountrySite:CountrySiteName,HistoricalDataTxt:l,CreateUserId:i,UserProfileId:ProfileId};$.ajax({url:"/api/sitecore/contactus/index",type:"POST",data:JSON.stringify({contactUsInput:a,emailBody:s,itemId:r,currentItemLanguage:h,relationship:c,captchaID:captchaIDSnd,captInput:$("#sendquestionCaptcha input[name=captchaInput]").val(),captInstance:captInstanceSnd,serverName:window.location.origin,formName:sendQuestionFormName+" "+r,currentUrl:window.location.href,referrerUrl:getReferrerUrl,trackingHistory:urlTrack,external_Url:u,contactUsPage:!0}),contentType:"application/json",traditional:!0,error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error")},success:function(n){var t;n=="True"?(t=$("#sqcaptchaid").attr("data-ccode"),document.getElementById(t).Captcha.ReloadImage(),$("#frmSendQuestion").data("bootstrapValidator").resetForm(),$("#errorSummary").hide(),$("#sendQuestionPanelBody").css("display","none"),$("#SendQuestionThanksMsg").css("display","block"),$("html, body").animate({scrollTop:$("#contact-us-accordion").offset().top-100},100),jQuery("body").trigger("analytics-form-success",!0)):(t=$("#sqcaptchaid").attr("data-ccode"),document.getElementById(t).Captcha.ReloadImage(),$("#frmSendQuestion").data("bootstrapValidator").updateStatus("captchaInput","INVALID","callback"),$("#errorSummary").show(),jQuery("body").trigger("analytics-form-error"))}})}else jQuery("body").trigger("analytics-form-error")});$("#linkNewJobs").on("click",function(){if($(".btn-group.bootstrap-select.form-control ul").each(function(){var n=$(this).find("li").find("a").first().text();$(this).find("li").removeClass("selected");$(this).find("li").first().addClass("selected");$(this).parent().parent().find(".filter-option").text(n)}),$("#JobSeekersThanksMsg").css("display","none"),$("#JobseekersBody").css("display","block"),$("#frmJobseekers").find("input").val(""),$("#frmJobseekers").find("textarea").val(""),$("#jobseeker_country").val("SELECT"),jsValidator=="submitted"){var n=$("#frmJobseekers").data("bootstrapValidator");n.setLiveMode("disabled");n.setLiveMode(jsValidator)}$("#frmJobseekers").data("bootstrapValidator").resetForm();$("#jobs_char_remaining").prop("readonly",!1);$("#jobs_char_remaining").val(jobNumChar);$("#jobs_char_remaining").attr("readonly","readonly")});$("#frmJobseekers").bootstrapValidator({fields:{captchaInput:{trigger:"submit",validators:{notEmpty:{message:$("#CaptchaRequired").val()},callback:{message:$("#IncorrectCaptcha").val()}}}},submitHandler:function(){}});$("#btnJobseekers").on("click",function(){var r=GetExternalReferralUrl(),u=$("#jSeekCaptcha input[name=captchaInput]").val(),n;if(u!==""?(n=$("#frmJobseekers").data("bootstrapValidator"),n.enableFieldValidators("captchaInput",!1)):(n=$("#frmJobseekers").data("bootstrapValidator"),n.enableFieldValidators("captchaInput",!0)),n.$submitButton=this,n.validate(),n.isValid()){var t=$("#jobseeker_emailaddress").val(),h=$("#jobseeker_country").val(),f={FirstName:$("#jobseeker_firstname").val(),LastName:$("#jobseeker_lastname").val(),UserEmail:$("#jobseeker_emailaddress").val(),UserOrg:"",UserRelationship:jobSeekersRelationship,UserOther:"",Country:$("#jobseeker_country").val(),TelNumber:"",Comments:$("#jobseeker_comments").val()},e="<Information><FirstName>"+$("#jobseeker_firstname").val()+"<\/FirstName><LastName>"+$("#jobseeker_lastname").val()+"<\/LastName><EmailAddress>"+$("#jobseeker_emailaddress").val()+"<\/EmailAddress><Country>"+$("#jobseeker_country").val()+"<\/Country><Comments>"+removeTags($("#jobseeker_comments").val())+"<\/Comments><CountrySite>"+CountrySiteName+"<\/CountrySite><Status>"+ProfileId+"<\/Status><CreatedId>"+t+"<\/CreatedId><FormGuid>"+formDefinitionGuid+"<\/FormGuid><\/Information>",i=jobSeekerId,o=jobSeekersRelationship,s={FormDefinitionGuid:formDefinitionGuid,CountrySite:CountrySiteName,HistoricalDataTxt:e,CreateUserId:t,UserProfileId:ProfileId};$.ajax({url:"/api/sitecore/contactus/index",type:"POST",data:JSON.stringify({contactUsInput:s,emailBody:f,itemId:i,currentItemLanguage:acnPage.Language,relationship:o,captchaID:captchaIDjSeek,captInput:$("#jSeekCaptcha input[name=captchaInput]").val(),captInstance:captInstancejSeek,serverName:window.location.origin,formName:jobseekerFormName+" "+i,currentUrl:window.location.href,referrerUrl:getReferrerUrl,trackingHistory:urlTrack,external_Url:r,contactUsPage:!0}),contentType:"application/json",traditional:!0,error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error")},success:function(n){var t;n=="True"?(t=$("#jSeekcaptchaid").attr("data-ccode"),document.getElementById(t).Captcha.ReloadImage(),$("#frmJobseekers").data("bootstrapValidator").resetForm(),$("#errorSummary").hide(),$("#JobseekersBody").css("display","none"),$("#JobSeekersThanksMsg").css("display","block"),$("html, body").animate({scrollTop:$("#contact-us-accordion").offset().top},100),jQuery("body").trigger("analytics-form-success",!0)):(t=$("#jSeekcaptchaid").attr("data-ccode"),document.getElementById(t).Captcha.ReloadImage(),$("#frmJobseekers").data("bootstrapValidator").updateStatus("captchaInput","INVALID","callback"),$("#errorSummary").show(),jQuery("body").trigger("analytics-form-error"))}})}else jQuery("body").trigger("analytics-form-error")});$("#btnSendEmailModal").on("click",function(){var n=$("#frmContactUsModal").data("bootstrapValidator"),t;if(n.$submitButton=this,n.validate(),t={FirstName:$("#modal_firstName").val(),LastName:$("#modal_lastName").val(),UserEmail:$("#modal_email").val(),Comments:$("#modal_comments").val(),Country:CountryMediaSiteName,profileName:profileClicked,fromEmailAddress:$("#modal_email").val()},n.isValid()){var i=$("#modal_email").val(),r="<Information><FirstName>"+$("#modal_firstName").val()+"<\/FirstName><LastName>"+$("#modal_lastName").val()+"<\/LastName><EmailAddress>"+$("#modal_email").val()+"<\/EmailAddress><Comments>"+removeTags($("#modal_comments").val())+"<\/Comments><CountrySite>"+CountryMediaSiteName+"<\/CountrySite><Status>-1<\/Status><CreatedId>"+i+"<\/CreatedId><Recipient>"+t.UserEmail+"<\/Recipient><FormGuid>sampleGUID<\/FormGuid><\/Information>",u=$("#modal_comments").val();$.ajax({url:"/api/sitecore/contactus/modal",type:"POST",data:JSON.stringify(t),contentType:"application/json",traditional:!0,error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error")},success:function(t){$("#contact-main-modal .confirm").hide();t.IsEmailSent==!0?($("#contact-main-modal .contact-thankyou").show(),jQuery("body").trigger("analytics-form-success",!0)):($("#contact-main-modal .contact-emailnotsent").show(),jQuery("body").trigger("analytics-form-error"));n.setLiveMode("disabled").setLiveMode("submitted")}})}});$("#btnModalCancel").on("click",function(){var n,t;$("#contact-main-modal").modal("hide");n=$("#frmContactUsModal").attr("data-bv-live");n=="submitted"&&(t=$("#frmContactUsModal").data("bootstrapValidator"),t.setLiveMode("disabled"),t.setLiveMode(n));$("#frmContactUsModal").data("bootstrapValidator").resetForm()});$(".contact-modal-close").on("click",function(){$("#contact-main-modal").modal("hide");$("#frmContactUsModal input, #frmContactUsModal textarea").val("");$("#frmContactUsModal").data("bootstrapValidator").resetForm();$("#contact-main-modal .countdown").prop("readonly",!1);$("#contact-main-modal .countdown").val(2e3);$("#contact-main-modal .countdown").attr("readonly","readonly")});$("#btnModalClose").on("click",function(){var t=$("#frmContactUsModal").attr("data-bv-live"),n;t=="submitted"&&(n=$("#frmContactUsModal").data("bootstrapValidator"),n.setLiveMode("disabled"),n.setLiveMode(t));$("#frmContactUsModal input, #frmContactUsModal textarea").val("");$("#frmContactUsModal").data("bootstrapValidator").resetForm();$("#contact-main-modal .countdown").prop("readonly",!1);$("#contact-main-modal .countdown").val(2e3);$("#contact-main-modal .countdown").attr("readonly","readonly")});if(modalClick(),IsTouch()===!0)$(".panel-heading").on("click",function(){var n=$(this),t=n.parent().find(n.attr("data-target"));if($(".panel-collapse").hasClass("collapsing"))return!1;t.collapse("toggle");n.hasClass("collapsed")?(n.closest(".panel-group").find(".panel-heading:not(.collapsed)").each(function(){$(this).parent().find($(this).attr("data-target")).collapse("toggle");$(this).addClass("collapsed")}),n.removeClass("collapsed")):n.addClass("collapsed")}).on("dblclick",function(n){return n.stopPropagation(),n.preventDefault(),!1});isDesktop()&&$("button.contact-info-item-number").parent().removeAttr("onclick")});function DropdownOnChange(n){var u=n.value,t=$(n).attr("id"),i="#Search-"+t,r="#Department-"+t;$.ajax({type:"POST",url:"/api/sitecore/NewsMediaSubModule/GetContactResources",data:'{"dropDownValue":"'+u+'"}',contentType:"application/json; charset=utf-8",dataType:"json",async:!1,success:function(n){var u=n;$(i).empty();$(r).empty();n.length>0&&$(r).text($("#"+t+" option:selected").text());$.each($(u),function(n,t){$(i).append('<div class="col-sm-4"><div class="contact-info-item col-xs-12 col-sm-12"><h5 class="module-body contact-info-item-person">'+t.FullName+'<\/h5><h5 class="module-body contact-info-item-location">'+t.Location+'<\/h5><button class="module-body btn btn-primary col-xs-12 contact-info-item-number">'+t.PhoneNumber+'<\/button><div class="contact-info-item-envelope"><\/div><\/div><\/div>')});modalClick()},error:function(n,t,i){alert(n.status);alert(i)}})}function modalClick(){$(".contact-info-item-envelope").on("click",function(){checkIfEdit();showModal();profileClicked=$(this).parent().find("h5.contact-info-item-person").html()})}function showModal(){$("#contact-main-modal .confirm").show();$("#contact-main-modal .contact-thankyou").hide();$("#contact-main-modal .contact-emailnotsent").hide();$("#contact-main-modal").modal()}function checkIfEdit(){$("#scCrossPiece").length>0&&$("#contact-main-modal").css("margin-top","50px")}function GetExternalReferralUrl(){var n=sessionStorage.getItem("External_ReferrerUrl");return n!="undefined"&&n!=null&&n!=""?n:"None"}$(".panel-heading.collapsed").on("keyup",function(n){n.keyCode==13&&$(this).trigger("click")});$(".contact-info-item-envelope").on("keyup",function(n){n.keyCode==13&&$(this).trigger("click")})}if(ComponentRegistry.customforms){clearValidation=function(n){var i=$("input[name='"+n+"']"),t=$("#"+i.closest("form").attr("id")).data("bootstrapValidator");t._submitIfValid=!1;t.updateStatus(n,t.STATUS_NOT_VALIDATED,null)};shareValidation=function(n,t,i,r){this.nameField=n;this.shareField=t;this.percentage=i;this.errorMessage=r;this.validatorInterval=null;this.validatorCounter=1;this.maxValidatorCounter=15;this.isTotalShareValid=function(){var u=this.nameField.substring(0,this.nameField.length-1),f=this.shareField.substring(0,this.shareField.length-1),t=0,i=!1,e=$("input[name^='"+u+"']:visible"),r=[],n;return e.each(function(n){var u,e;this.value.toUpperCase()!="N/A"&&(i=!0,u=$("input[name='"+f+(n+1)+"']"),u!=null&&u.length>0&&(r.push(u),e=u[0].value,isNaN(e)||(t+=parseInt(e))))}),n=!i||t===this.percentage,n||setTimeout(function(){$.each(r,function(n,t){n>0&&t.closest(".form-group").find("i.form-control-feedback").removeClass("glyphicon-ok").addClass("glyphicon-remove")})},800),n};this.clearValidationOnBlur=function(n){var t=$("input[name='"+n+"']");t.on("change",function(){var u=t.closest("form").attr("id"),i=$("#"+u).data("bootstrapValidator"),r;i._submitIfValid=!1;r=n.substring(0,n.length-1);$("input[name^='"+r+"']:visible").each(function(){i.updateStatus($(this).attr("name"),i.STATUS_NOT_VALIDATED,null)})})};this.addValidation=function(){validatorInterval=setInterval(function(){var r=$("input[name='"+this.shareField+"']").closest("form").attr("id"),t=$("#"+r).data("bootstrapValidator"),i;if(t!=null){clearInterval(validatorInterval);$("span.outer-message").remove();var n=t.options.fields,u=this.shareField.substring(0,this.shareField.length-1),f=this.errorMessage;$("input[name^='"+u+"']").each(function(t){var i=$(this).attr("name"),r;t==0&&(r=n[i].validators,r.callback={message:f,callback:function(){return isTotalShareValid()}},n[i]=$.extend(!0,n[i],r));clearValidationOnBlur(i)});for(i in n)t._initField(i)}else validatorCounter=validatorCounter+1,validatorCounter>maxValidatorCounter&&clearInterval(validatorInterval)},3e3)};this.addValidation()};function updateValidationErrorPosition(n){n!=undefined&&n!=null&&$.each(n,function(n,t){var r=$("[name='"+t+"']"),i;r.length>0&&(r.attr("data-bv-icon-location",".validatorMessage"),i=r.parents(".form-group").first(),i!=null&&i.length>0&&(i.addClass("bottom-validator"),$.each(i.children(),function(n,t){$(t).removeClass("col-sm-6").addClass("col-sm-11")})))})}$(function(){function t(n){var t=$(n).closest(".acn-form"),i,r,u;if(t!=null){var f=$(t).find(".cascading_group").find(".firstDropDownDiv select"),e=$(t).find(".cascading_group").find(".secondDropDownDiv select"),o=$(t).find(".cascading_group").find(".thirdDropDownDiv select");f!=null&&(i=$(f).val(),i!=""&&i!=null&&($(".firstDropDownDiv select option:selected").attr("selected",!1),$(".firstDropDownDiv select option").first().attr("selected","selected")),e!=null&&(r=$(e).val(),r!=""&&r!=null&&($(".secondDropDownDiv select option:selected").attr("selected",!1),$(".secondDropDownDiv select option").first().attr("selected","selected"))),o!=null&&(u=$(o).val(),u!=""&&u!=null&&($(".thirdDropDownDiv select option:selected").attr("selected",!1),$(".thirdDropDownDiv select option").first().attr("selected","selected"))))}}var n;$(".custom-form-link").on("click",function(){t($(this))});n=$(this).closest("form");$("custForm").bootstrapValidator({fields:{captchaInput:{trigger:"submit"}}});$(".firstDropDownDiv select").on("change",function(){var t=$(this).val(),n=$(this).closest(".cascading_group").find("#secondDropDown");t!=""&&t!=null?($.ajax({url:"/api/sitecore/FormsModule/GetSecondValues",type:"POST",data:{selectedGuid:t,firstValue:firstValues,secondValue:secondValues},error:function(n,t,i){alert(i)},success:function(t){n.empty();n.html(defaultValue);$.each(t,function(t,i){n.append("<option value='"+i.Key+"'>"+i.Value+"<\/option>")});n.selectpicker("refresh")}}),secondValues!=""&&($(this).closest(".cascading_group").find(".secondDropDownDiv").show(),$(this).closest(".cascading_group").find(".secondDropDownDiv select").addClass("validate-excluded-field"),$(".secondDropDownDiv select").trigger("change"),$(".thirdDropDownDiv select").trigger("change"))):(n.empty(),n.html(defaultValue),n.selectpicker("refresh"),$(".secondDropDownDiv select").trigger("change"),$(".thirdDropDownDiv select").trigger("change"))});$(".secondDropDownDiv select").on("change",function(){var t=$(this).val(),n=$(this).closest(".cascading_group").find("#thirdDropDown");t!=""&&t!=null?($.ajax({url:"/api/sitecore/FormsModule/GetThirdValues",type:"POST",data:{secondSelectedGuid:t,secondDDValue:secondValues,thirdValue:thirdValues},error:function(n,t,i){alert(i)},success:function(t){n.empty();n.html(defaultValue);$.each(t,function(t,i){n.append("<option value='"+i.Key+"'>"+i.Value+"<\/option>")});n.selectpicker("refresh")}}),thirdValues!=""&&($(this).closest(".cascading_group").find(".thirdDropDownDiv").show(),$(this).closest(".cascading_group").find(".thirdDropDownDiv select").addClass("validate-excluded-field"))):(n.empty(),n.html(defaultValue),n.selectpicker("refresh"))});var i=new Date,r=i.getFullYear(),u=r-100;$(".dtp-date").datetimepicker({lang:$("#languageSelected").val(),timepicker:!1,format:"d/m/Y",formatDate:"Y/m/d",closeOnDateSelect:!0,scrollInput:!1,yearStart:u,onSelectDate:function(n,t){var i=$(".dtp-date").closest("form").attr("id"),r=t.attr("data-bv-field");$("#"+i).data("bootstrapValidator").updateStatus(r,"NOT_VALIDATED")}});$(".dtp-datetime-local").datetimepicker({dayOfWeekStart:1,lang:$("#languageSelected").val(),scrollInput:!1,onSelectDate:function(n,t){var i=$(".dtp-datetime-local").closest("form").attr("id"),r=t.attr("data-bv-field");$("#"+i).data("bootstrapValidator").updateStatus(r,"NOT_VALIDATED")},onSelectTime:function(n,t){var i=$(".dtp-datetime-local").closest("form").attr("id"),r=t.attr("data-bv-field");$("#"+i).data("bootstrapValidator").updateStatus(r,"NOT_VALIDATED")}});$(".dtp-time").datetimepicker({datepicker:!1,format:"H:i",step:5,closeOnDateSelect:!0,scrollInput:!1,onSelectTime:function(n,t){var i=$(".dtp-time").closest("form").attr("id"),r=t.attr("data-bv-field");$("#"+i).data("bootstrapValidator").updateStatus(r,"NOT_VALIDATED")}});$(".dtp-month-year").datetimepicker({lang:$("#languageSelected").val(),timepicker:!1,format:"M, Y",formatDate:"M, Y",closeOnDateSelect:!0,scrollInput:!1,onSelectDate:function(n,t){var i=$(".dtp-month-year").closest("form").attr("id"),r=t.attr("data-bv-field");$("#"+i).data("bootstrapValidator").updateStatus(r,"NOT_VALIDATED")}});$(".dtp-week-year").datetimepicker({lang:$("#languageSelected").val(),timepicker:!1,weeks:!0,format:"W, Y",formatDate:"W, Y",closeOnDateSelect:!0,scrollInput:!1,onSelectDate:function(n,t){var i=$(".dtp-week-year").closest("form").attr("id"),r=t.attr("data-bv-field");$("#"+i).data("bootstrapValidator").updateStatus(r,"NOT_VALIDATED")}});$('[class*="dtp-"]').on("change",function(){var n=$(this).closest("form").attr("id"),t=$(this).attr("data-bv-field");$("#"+n).data("bootstrapValidator").updateStatus(t,"NOT_VALIDATED")});if(IsTouch()===!0)$(".panel-heading").on("click",function(){var n=$(this),t=n.parent().find(n.attr("data-target"));if($(".panel-collapse").hasClass("collapsing"))return!1;t.collapse("toggle");n.hasClass("collapsed")?(n.closest(".panel-group").find(".panel-heading:not(.collapsed)").each(function(){$(this).parent().find($(this).attr("data-target")).collapse("toggle");$(this).addClass("collapsed")}),n.removeClass("collapsed")):(n.addClass("collapsed"),$(n+".panel-collapse").addClass("collapse"))}).on("dblclick",function(n){return n.stopPropagation(),n.preventDefault(),!1});$("html.touch").length<=0&&($.mask.definitions["~"]="[+-]",$.mask.definitions.h="[A-Z,a-z,0-9,/]",$(".mask-date").mask("?hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh",{placeholder:" ",completed:function(){if(input=this.val(),/^\d{2}\/\d{2}\/\d{4}$/.test(input)){var i=input.split("/")[0],r=input.split("/")[1],u=input.split("/")[2],n=new Date(u,i-1,r);if(n.getMonth()+1!=$.trim(i)||n.getDate()!=$.trim(r)||n.getFullYear()!=$.trim(u)){var t=new Date,f=t.getDate(),e=t.getMonth()+1,o=t.getFullYear(),s=f+"/"+e+"/"+o;this.val(s)}}}}));$("#dynamic-place-holder select").removeClass("validate-excluded-field");$(".collapsing-module select, :radio.collapsed-radio").on("change",function(){var t,n;t=$(this).hasClass("collapsed-radio")?$(this).attr("data-ul-div-id"):$(this).find(":selected").attr("data-ul-div-id");n=$(this).closest("form").attr("id");$("#"+n+" #dynamic-place-holder > [id]").each(function(){t==this.id?($("#"+this.id+" input:not(.countdown), #"+this.id+" select, #"+this.id+" textarea").attr("includedinemail","true"),$("#"+this.id+" select").addClass("validate-excluded-field"),$("#"+t).show()):($("#"+this.id+" input:not(.countdown), #"+this.id+" select, #"+this.id+" textarea").attr("includedinemail","false"),$("#"+this.id+" select").removeClass("validate-excluded-field"),$("#"+this.id).hide())});$("#"+n).data("bootstrapValidator").resetForm();$("#"+n+" #errorSummary").hide()});FormTaskListModule.Init()});$("input[type=button]").on("keyup",function(n){n.keyCode==13&&$(this).trigger("click")});FormTaskListModule=function(){return FormTaskList={Init:function(){FormTaskList.Render();FormTaskList.SetEventHandlers()},Render:function(){var i=1,o=$(".taskListFormContent"),s=$(".form-action-button-complete"),r="",e,n,l,t;s.each(function(){$(this).attr("data-target","#taskListFormContent"+i);r=o.clone();r.attr("id","taskListFormContent"+i);r.appendTo("body");i++});var u=1,h=$(".taskListFormConfirm"),c=$(".form-action-button-confirm"),f="";c.each(function(){$(this).attr("data-target","#taskListFormConfirm"+u);f=h.clone();f.attr("id","taskListFormConfirm"+u);f.appendTo("body");u++});e=$(".taskListDocument");n="";n=e.clone();n.find("div#uploadContent > div > input#fileUpload").css("height","inherit");n.attr("id","taskListDocumentIntoBody");n.appendTo("body");l=$(".taskListPhoto");t="";t=e.clone();t.attr("id","taskListPhotoIntoBody");t.appendTo("body")},SetEventHandlers:function(){$(document).on("change","input.cb-form-select-all,input.enabled",function(){var n=$("input.cb-form-select-row:enabled");this.checked?n.prop("checked",!0):n.prop("checked",!1)});$(".form-action-button-complete").on("click",function(n){n.preventDefault();var i=$(this).attr("data-bmdVideoFullscreen")||!1,t={src:$(this).attr("data-bmdSrc"),width:$(this).attr("data-bmdWidth")};i&&(t.allowfullscreen="");$($(this).attr("data-target")).find(".task-list-form-container").attr(t);$($(this).attr("data-target")).find(".task-list-form-container").addClass("iframe-modal")});$(".form-action-button-confirm").on("click",function(n){n.preventDefault();var i=$(this).attr("data-bmdVideoFullscreen")||!1,t={src:$(this).attr("data-bmdSrc"),width:$(this).attr("data-bmdWidth"),submitId:$(this).attr("data-formSubmitId")};i&&(t.allowfullscreen="");$($(this).attr("data-target")).find(".form-confirm-yes").attr(t);$($(this).attr("data-target")).find(".form-confirm-no").attr({submitId:$(this).attr("data-formSubmitId")})});$(".form-confirm-yes").on("click",function(){var i=$(this).attr("allowFullscreen")||!1,n={src:$(this).attr("src"),width:$(this).attr("width")},t;i&&(n.allowfullscreen="");t=$("#taskListFormContent");formTaskListModal=t.clone();formTaskListModal.attr("id","taskListFormContent"+$(this).attr("submitId"));formTaskListModal.appendTo("body");formTaskListModal.find(".task-list-form-container").attr(n);formTaskListModal.find(".task-list-form-container").addClass("iframe-modal");formTaskListModal.find(".popup-form-close").on("click",function(){window.location.reload(!0)});formTaskListModal.modal("show")});$(".form-confirm-no").on("click",function(){var n=$(this).attr("submitId")||!1;$.ajax({type:"POST",url:"/api/sitecore/FormStatus/UpdateStatus",data:{submitId:n,status:"Not Required"},success:function(){window.location.reload(!0)}})});$(".popup-form-close").on("click",function(){window.location.reload(!0)});$(".document-action-button-upload").on("click",function(n){n.preventDefault();var t=$(this).attr("data-documentName")||!1,r=$(this).attr("data-joinerType")||!1,u=$(this).attr("data-documentHeader")||!1,i=!1;r=="0"&&(i=!0);$("#taskListDocumentIntoBody #uploadHeaderContent").empty();$("#taskListDocumentIntoBody #uploadHeaderContent").append("Upload "+u);$($(this).attr("data-target")).find(".document-close").attr({isUploaded:!1});t=="IDDOBProof"?($("#taskListDocumentIntoBody #iDDOBProofContent").show(),$("#taskListDocumentIntoBody #relievingLetterContent").hide(),$("#taskListDocumentIntoBody #relievingLetterContentNotRequired").hide(),$("#taskListDocumentIntoBody #uploadContent").show(),$("#taskListDocumentIntoBody #uploadButtons").show()):t=="Relievingletter"&&i==!0?($("#taskListDocumentIntoBody #iDDOBProofContent").hide(),$("#taskListDocumentIntoBody #relievingLetterContent").show(),$("#taskListDocumentIntoBody #relievingLetterContentNotRequired").hide(),$("#taskListDocumentIntoBody #uploadContent").hide(),$("#taskListDocumentIntoBody #uploadButtons").hide()):($("#taskListDocumentIntoBody #iDDOBProofContent").hide(),$("#taskListDocumentIntoBody #relievingLetterContent").hide(),$("#taskListDocumentIntoBody #relievingLetterContentNotRequired").hide(),$("#taskListDocumentIntoBody #uploadContent").show(),$("#taskListDocumentIntoBody #uploadButtons").show());$("#taskListDocumentIntoBody #btnUpload").show();$("#taskListDocumentIntoBody #btnClose").hide();$($(this).attr("data-target")).find(".document-yes").attr({documentId:$(this).attr("data-documentID")});$($(this).attr("data-target")).find(".document-no").attr({documentId:$(this).attr("data-documentID")});$($(this).attr("data-target")).find(".document-upload").attr({documentId:$(this).attr("data-documentID")});$($(this).attr("data-target")).find(".document-upload").attr({documentName:$(this).attr("data-documentName")});$($(this).attr("data-target")).find(".document-upload").attr({userProfileId:$(this).attr("data-userProfileId")})});$(".popup-document-close").on("click",function(){window.location.reload(!0)});$(".document-close").on("click",function(){window.location.reload(!0)});$(".document-yes").on("click",function(){var n=$(this).attr("documentId")||!1;$("#taskListDocumentIntoBody #uploadContent").show();$("#taskListDocumentIntoBody #uploadButtons").show()});$(".document-no").on("click",function(){var n=$(this).attr("documentId")||!1;$.ajax({type:"POST",url:"/api/sitecore/FormStatus/UpdateStatus",data:{submitId:n,status:"Not Required"},success:function(){$("#taskListDocumentIntoBody #relievingLetterContentNotRequired").show();$("#taskListDocumentIntoBody #uploadButtons").show();$(".document-yes").attr("disabled",!0);$(".document-no").attr("disabled",!0);$("#taskListDocumentIntoBody #btnUpload").hide();$("#taskListDocumentIntoBody #btnClose").show()}})});$(".document-upload").on("click",function(){var t=$(this).attr("documentId")||!1,n=$(this).attr("documentName")||!1,i=$(this).attr("userProfileId")||!1,r=$("#taskListDocumentIntoBody #fileUpload").prop("files");(function(r){var u=new FileReader;u.onload=function(u){$.ajax({type:"POST",url:"/api/sitecore/UploadDocument/UploadDoc",data:{documentFileName:n,fileNameExt:r.name.toLowerCase(),userProfileId:i,fileUpload:u.target.result},success:function(i){$("#taskListDocumentIntoBody #resultPreview").empty();$("#taskListDocumentIntoBody #resultPreview").append(i.split(";")[0]);i.split(";")[1]=="true"&&$.ajax({type:"POST",url:"/api/sitecore/FormStatus/UpdateStatus",data:{submitId:t,status:"For Approval"},success:function(){$(".document-yes").attr("disabled",!0);$(".document-no").attr("disabled",!0);$("#taskListDocumentIntoBody #btnUpload").hide();$("#taskListDocumentIntoBody #btnClose").show();n=="PANcardcopy"&&$.ajax({type:"POST",url:"/api/sitecore/FormStatus/UpdateStatus",data:{submitId:"d91dbdd0-2884-421f-9e70-dd407e4b25d0",status:"Not Required"},success:function(){}})}})}})};u.readAsDataURL(r)})(r[0])})}}}()}if(ComponentRegistry.MediaPlayer){var vid,vidObj,carouselIds=[],widthAdjustment=10,pageCarousel=$(".carousel");jQuery().appear||function(n){function e(){var r,t,e;for(u=!1,r=0;r<i.length;r++)t=n(i[r]).filter(function(){return n(this).is(":appeared")}),t.trigger("appear",[t]),f&&(e=f.not(t),e.trigger("disappear",[e])),f=t}var i=[],r=!1,u=!1,o={interval:250,force_process:!1},t=n(window),f;n.expr.pseudos.appeared=function(i){var r=n(i);if(!r.is(":visible"))return!1;var u=t.scrollLeft(),f=t.scrollTop(),e=r.offset(),o=e.left,s=e.top;return s+r.height()>=f&&s-(r.data("appear-top-offset")||0)<=f+t.height()&&o+r.width()>=u&&o-(r.data("appear-left-offset")||0)<=u+t.width()?!0:!1};n.fn.extend({appear:function(t){var f=n.extend({},o,t||{}),h=this.selector||this,s;if(!r){s=function(){u||(u=!0,setTimeout(e,f.interval))};n(window).on("scroll",s).on("resize",s);r=!0}return f.force_process&&setTimeout(e,f.interval),i.push(h),n(h)}});n.extend({force_appear:function(){return r?(e(),!0):!1}})}(jQuery);$(function(){function u(n){var r,i,t;if(n!=null){r=n.closest(".media-container");i=n.attr("id");n.find('param[name="state"]').length>0&&n.find('param[name="state"]').val("isPlaying");resizeVideoObject(n);try{t=document.getElementById(i).getElementsByTagName("video")[0];t.paused?(t.play(),ComponentRegistry.MediaPlayer.SkipPlayPauseAnalyticsTracking(!0,!1)):(ComponentRegistry.MediaPlayer.SkipPlayPauseAnalyticsTracking(!1,!0),t.pause())}catch(u){}}}var i,r,n,t;resizeVideo();$(window).on("resize",function(){window.setTimeout(resizeVideo(),100)});$("#media-video-thumbnail .icon-circle, #media-video-thumbnail img").on("click touchstart",function(){var n=$(this).closest(".media-container").find(".white_content"),t,i;n.length>0?(t=$("#header-topnav").clone(),i=$("#block-jumplink").clone(),$(this).closest(".media-container").prepend(t),$(this).closest(".media-container").prepend(i),$("#header-topnav").hide(),$("#block-jumplink").hide(),$(this).closest(".media-container").find("#block-jumplink").css("left","0"),$(this).closest(".media-container").find("#header-topnav").css("z-index","1001"),$(this).closest(".media-container").find(".navbar-default .navbar-nav > li > a > span").css("color","#000"),n.css("display","block"),$(this).closest(".media-container").parent().find(".black_overlay").css("display","block"),ComponentRegistry.MediaPlayer.ShowComponentsUnderVideoOverlay(!1),IsTouch()?$("html").css({overflow:"hidden",position:"relative"}):$("html").css({overflow:"hidden"})):$(this).closest(".media-container").find("#media-video-thumbnail").hide()});$(".popupvid-x-button-container").on("click touchstart",function(){var t=$(this).closest(".media-container").find(".white_content"),n;t.css("display","none");$("#header-topnav").show();$("#block-jumplink").show();$(this).closest(".media-container").find("#header-topnav").remove();$(this).closest(".media-container").find("#block-jumplink").remove();$(this).closest(".media-container").parent().find(".black_overlay").css("display","none");$("html").css({overflow:"auto",position:"relative"});IsTouch()===!0&&(n=$(this).closest(".white_content").find("video")[0],n.play&&n.pause());ComponentRegistry.MediaPlayer.ShowComponentsUnderVideoOverlay(!0)});i=$(".container-claster .close-video-accordion");i.on("click  touchstart",function(){if(IsTouch()===!0){var n=$(this).closest(".container-claster").find("video")[0];try{n.play&&n.pause()}catch(t){}}});r=$(".container-claster .icon-chevron_thin");r.on("click",function(){isMobile()&&($accordionHeight=$(this).closest(".container-claster").find(".media-container img"),$accordionHeight.length==1?$(this).closest("#video-accordion").css({overflow:"hidden",height:$accordionHeight.height()}):$(this).closest("#video-accordion").css({overflow:"hidden",height:"370px"}),$(this).closest("container-claster").find("iframe").css({height:"350px"}));u(videoObj)});$(".download-transcript-container a").on("keydown",function(n){n.which==9&&(n.preventDefault(),$(this).is(":focus")&&$(".popupvid-x-button").trigger("focus"))});$(".white_content span").attr("tabindex",0);$(".white_content .popupvid-x-button").attr("aria-label","close");$(".carousel.slide .carousel-indicators li").on("click",function(){window.setTimeout(function(){resizeVideo()},100)});$(".convCarousel-mobile .carousel.slide, .convCarousel-tablet .carousel.slide, .convCarousel-desktop .carousel.slide").on("slide.bs.carousel",function(){window.setTimeout(function(){resizeVideo()},100)});$("div[data-video-player-id]").appear();var f=$("div[data-video-player-id]").attr("data-video-player-id"),e="object[id='"+f+"']";$(e).appear();n=$(".image-container #DownloadModule");isMobile()===!1&&n.length!=0&&$(n).find("a, span").addClass("color-primary");$("head link[href*='white.min.css']").length==0&&(isMobile()===!0&&(n=$(".image-container.white #DownloadModule"),n.length!=0&&$(n).find("a, span").addClass("color-primary")),t=$(".color-container.white #DownloadModule"),t.length!=0&&$(t).find("a, span").addClass("color-primary"))});function resizeVideo(){$("div.media-container #media-video-thumbnail img").filter(":visible").each(function(){var n=$(this),r=n.closest('div[class^="col-sm"]'),t=r.width(),i=parseInt($(this).data("width"));$(".onboarding").length==0?n.width()>t?n.css({width:t+"px"}):i>t?n.css({width:t+"px"}):n.css({width:i+"px"}):n.width()>t||i>t?n.css({width:t+"px"}):n.css({width:i+"px"})})}function resizeVideoObject(n){var b=$(".onboarding"),s=.5625,e,t,k=n.closest("#block-hero").length,d=n.closest(".white_content").length,f,c,l,u,r,i,o,p,h,w;if(k>0){e=$("#block-hero .item.active .hero-title-wrapper");t=e.width();$(window).width()<767&&$(window).width()>$(window).height()?(t=t-150,i=t*9/16):$(window).width()>1e3?(t=t-200,i=t*9/16):i=t*9/16;var a=$(".white_content"),v=($(window).height()-(i+63))/2,y=($(window).width()-t)/2;a.css({top:v+"px",left:y+"px"});n.css({width:t+"px",height:i+"px"});n.find("video").length>0&&n.find("video").css({width:t+"px",height:i+"px","margin-left":"0px"})}else if(e=n.closest('div[class^="col-sm"]'),t=e.width(),f="",f=parseInt(n.data("orig-width")),c=parseInt(n.data("orig-height")),b.length==0?(f>0&&c>0&&(l=c/f,l>.73&&l<.77&&(s=.75)),u=0,n.closest("div.media").length>0?u=n.closest("div.media").width():n.closest("div.video-placeholder").length>0?u=n.closest("div.video-placeholder").width()+widthAdjustment:n.closest("div.component").length>0&&(u=n.closest("div.component").width()),n.closest(".packery-item").length>0?t=n.closest(".packery-item").width():n.closest(".packery-component").length>0&&(t=n.closest(".packery-component").width()),n.width()>t?(r=t-widthAdjustment,u!=0&&u<t&&(r=u-widthAdjustment),i=r*s,n.attr({width:r+"px",height:i+"px"}).css({width:r+"px",height:i+"px"})):f>t?(r=t,u!=0&&u<f&&(r=u-widthAdjustment),i=r*s,n.attr({width:r+"px",height:i+"px"}).css({width:r+"px",height:i+"px"})):isNaN(f)||(r=f,u!=0&&u<f&&(r=u-widthAdjustment),i=r*s,n.attr({width:r+"px",height:i+"px"}).css({width:r+"px",height:i+"px"}))):(o=n.closest(".carousel-inner"),e.width()==100&&o.length>0?(p=o,t=p.width()):e.width()==50&&o.length>0&&(h=n.closest(".module-article"),t=h.innerWidth()),n.closest(".item > .col-sm-6").length>0&&o.length>0&&(h=n.closest(".module-article"),t=h.innerWidth()-20),w=768,$(window).width()<w?(t=$(".packery-item").width()>0?$(".packery-item")[0].getBoundingClientRect().width:$(".packery-container").width(),i=t*9/16,n.css({width:t+"px",height:i+"px"})):(i=t*9/16,n.css({width:t+"px",height:i+"px"})),n.find("video").length>0&&n.find("video").css({width:t+"px",height:i+"px"})),d>0){e=$("#block-hero .item.active .hero-title-wrapper");t=e.width();$(window).width()<767&&$(window).width()>$(window).height()?(t=t-150,i=t*9/16):$(window).width()>1e3?(t=t-200,i=t*9/16):i=t*9/16;var a=$(".white_content"),v=($(window).height()-(i+63))/2,y=($(window).width()-t)/2;a.css({top:v+"px",left:y+"px"});n.css({width:t+"px",height:i+"px"});n.find("video").length>0&&n.find("video").css({width:t+"px",height:i+"px","margin-left":"0px"})}}function toggleFullScreen(){vid&&(vid.requestFullScreen?vid.requestFullScreen():vid.webkitRequestFullScreen?vid.webkitRequestFullScreen():vid.mozRequestFullScreen&&vid.mozRequestFullScreen())}ComponentRegistry.MediaPlayer={Cache:{Keys:{AutoPlayExecuted:"mpm_autoplayexecuted",AutoPlay:"mpm_autoplay",AutoPause:"mpm_autopause"}},SkipPlayPauseAnalyticsTracking:function(n,t){acncm.CacheManager.write(ComponentRegistry.MediaPlayer.Cache.Keys.AutoPlayExecuted,1);n&&acncm.CacheManager.write(ComponentRegistry.MediaPlayer.Cache.Keys.AutoPlay,1);t&&acncm.CacheManager.write(ComponentRegistry.MediaPlayer.Cache.Keys.AutoPause,1)},ShowComponentsUnderVideoOverlay:function(n){var t=jQuery("#content-wrapper"),i=jQuery("#header-topnav"),r=jQuery("#block-jumplink"),u=jQuery("div.acn-popover div.popover.top");n?(t.removeAttr("style"),i.removeAttr("style"),r.removeAttr("style"),u.removeAttr("style")):(t.css("z-index","10"),i.css("z-index","1"),r.css("z-index","10"),u.css("z-index","1001"))}}}if(ComponentRegistry.AccordionContentModule){$(function(){accordionBlindControl.init();$(".accordionModule").each(function(){$(this).on("keydown",function(n){n.which==13&&(n.preventDefault(),$(this).trigger("click"))})})});ratio=.5625;accordionVideoCover=$(".accordion-video-cover");$(window).on("load resize orientationchange",function(){accordionVideoCover.css("width",accordionVideoCover.closest(".panel-group").width()+"px");accordionVideoCover.css("height",accordionVideoCover.closest(".panel-group").width()*ratio+"px");$(window).width()<767&&$(window).innerWidth()<$(window).innerHeight()&&$(".accordion-video-partial").css("overflow","hidden")})}if(accordionBlindControl=function(){var n=function(){function f(n){var t=$(n.target).prev(".panel-heading").find(".accordion-icon");t.toggleClass("icon-chevronthin icon-chevron_thin icon-accordion-close-thin icon-x-close");$(t).hasClass("icon-x-close")?$(t).attr("title",c):$(t).attr("title",l)}function e(t){n="";t.find(".accordion-left h3").length?n=t.find("h3").text().trim().toLowerCase():t.find(".accordion-left img").length&&(n=t.find(".accordion-right span").length?t.find(".accordion-right").text().trim().toLowerCase():t.find(".accordion-left img").attr("alt").toLowerCase())}var o=$(".panel-heading.col-sm-12"),r=$(".panel-group"),s=$(".panel-collapse.col-sm-12"),h=$(".accordion-link"),c=$("#accordionContentAlternateTextCollapse").val(),l=$("#accordionContentAlternateTextExpand").val(),n,t,i,u;o.each(function(){var t=$(this).parent().parent().attr("id"),n=$(this).attr("id");t!=undefined&&n!=undefined&&($("#"+n).attr("data-parent","#"+t),$("#"+n).attr("id",t+"-"+$("#"+n).attr("id")))});s.each(function(){$(this).attr("id","collapse-"+$(this).prev().attr("id"));$(this).prev().attr("href","#"+$(this).attr("id"))});r.children().on("click",function(n){if($(n.currentTarget).siblings().children(".collapsing").length>0)return!1});h.on("click",function(){url=$(this).attr("href");window.open(url,"_self")});r.on("hidden.bs.collapse",f);r.on("shown.bs.collapse",f);for(n="",t=jQuery(".accordionModule"),i=0;i<t.length;i++)u=jQuery(t[i]),e(u),u.attr("data-analytics-link-name",n+"/expand");t.on("click",function(){var u="engagement",t=jQuery(this),i,r;e(t);i=n+"/collapse";r=n+"/expand";t.hasClass("collapsed")?(t.attr("data-linkaction",r),t.attr("data-analytics-link-name",i)):(t.attr("data-linkaction",i),t.attr("data-analytics-link-name",r));t.attr("data-linktype",u);t.attr("data-analytics-content-type",u);var f=t.closest(".panel-group"),o=f.find(".panel-collapse.in").find('iframe[id^="ytim-player"]'),s=JSON.stringify({event:"command",func:"stopVideo",args:""});o.each(function(){var n=$(this);n[0].contentWindow.postMessage(s,"*")})})};return{init:n}}(),(typeof ComponentRegistry.ImageGallery!==undefined||typeof ComponentRegistry.IndustryAllAdsFilter!==undefine)&&(ComponentRegistry.ImageGallery||ComponentRegistry.IndustryAllAdsFilter)){var itemId,finalHeight,finalWidth,itemsPerScreen,leftDistance=0,itemType,$galleryItem,$paginationItem,gallerycarouselid,gallerypagerid,showModal=!1,itemsToRevert=0,$parentGalleryItem,itemTypeDesktop="Desktop",itemTypeTablet="Tablet",itemTypeMobile="Mobile",galleryCollection=window.localStorage,windowWidth,maxHeight,currentWidth;$(function(){$(".btnviewgallery").on("keypress",function(n){n.which==13&&$(this).trigger("click")});$(".btnclose-gallery").on("keypress",function(n){n.which==13&&$(this).trigger("click")})});function LoadGallery(){windowWidth=$(window).width();maxHeight=$(window).height()-298;gallerycarouselid="#gallery-carousel"+itemId;gallerypagerid="#gallery-pager"+itemId;setPrependItems();$parentGalleryItem=$galleryItem.parent();initializeGallery();resetGalleryItems();itemType==itemTypeMobile&&initializeGallery();$paginationItem=$(gallerypagerid+" a");setWidthItem();formatPager(itemsPerScreen-1)}function initializeGallery(){var r=$("#view-gallery-overlay"+itemId+" :button#caroufredprev");nextBtn=$("#view-gallery-overlay"+itemId+" :button#caroufrednext");var n="block",t=!1,i=!1;windowWidth<1e3&&(n="none",t=!0,i=!0);$parentGalleryItem.carouFredSel({items:{visible:1,start:0},circular:!0,infinite:!0,direction:"left",width:"100%",align:"center",scroll:{items:1,duration:1e3,pauseOnHover:!0},pagination:{container:gallerypagerid,deviation:0},swipe:{onMouse:t,onTouch:i},prev:{button:"#caroufredprev"},next:{button:"#caroufrednext"}});nextBtn.css("display",n);r.css("display",n)}function resetGalleryItems(){galleryCollection.setItem("galleryCollectionItems",$galleryItem.parent().html());galleryCollection.setItem("currentPager","1");$parentGalleryItem.html(galleryCollection.getItem("galleryCollectionItems"));setPrependItems()}function setPrevNextButtons(n){var t=n/2+5;$("#caroufredprev").css("top",t);$("#caroufrednext").css("top",t)}function setWidthItem(){var i=windowWidth-210,t,n;if(widthDesktop=windowWidth/1.5,widthMobileTablet=i,$paginationItem=$(gallerypagerid+" a"),windowWidth<768)$galleryItem.each(function(n){n>7&&$(this).remove()}),$paginationItem.each(function(n){n>7&&$(this).remove()}),itemType=itemTypeMobile,currentWidth=widthMobileTablet,resizeGalleryItems();else if(1e3>windowWidth>768)itemType=itemTypeTablet,currentWidth=widthDesktop,setPaginationItems(),resizeGalleryItems();else{itemType=itemTypeDesktop;currentWidth=widthDesktop;setPaginationItems();resizeGalleryItems();setPrevNextButtons(finalHeight);t=80;n=finalWidth+t;itemsPerScreen=Math.floor(windowWidth/n);var e=windowWidth-itemsPerScreen*n,o=finalHeight+100,r=windowWidth/2,u=(itemsPerScreen-1)*n,f=n/2;leftDistance=0-(u-r+f);$(".caroufredsel_wrapper").css("left",leftDistance)}}function formatPager(n){if(itemType==itemTypeDesktop)for(setPrependItems();n!=0;)$galleryItem.last().prependTo(gallerycarouselid),n--,$galleryItem=$(gallerycarouselid+" .gallery-item").not('[style*="none"]')}function resizeGalleryItems(){$galleryItem.each(function(){$this=$(this);$this.width(currentWidth);var i=$this.find("img")[0],r=i.height,u=i.width,n=$this.width(),f=n-u,e=f/u,o=e*r,t=o+r;if(finalHeight=t,t>maxHeight){var s=t-maxHeight,h=s/t,c=h*n;n=n-c;t=maxHeight;$this.width(n);finalHeight=maxHeight}finalWidth=n})}function setPaginationItems(){var n=$paginationItem.length,t,r,u;if(n>15)for(t=Math.floor(n/15),r=15,i=1;i<=t;i++)u=r*i+1,$(gallerypagerid+" a:nth-child("+u+")").before("<br/>")}function setPrependItems(){$galleryItem=$(gallerycarouselid+" .gallery-item")}function CloseGallery(n){$("#view-gallery-overlay"+n).modal("hide");galleryCollection.setItem("currentPager",$(gallerypagerid+" a.selected > span").html());showModal=!1}function ViewGallery(n){itemId=n;$("#view-gallery-overlay"+n).modal("show");$("#ui-wrapper").after($("#view-gallery-overlay"+n));showModal=!0;setTimeout(LoadGallery(),350);setTimeout(setCurrentItem,500);var t;$(".gallery-pager a").each(function(){t=1+$(this).index();$(this).attr("aria-label","pagination dot"+t)})}function ViewGalleryMobile(n){$(".btnviewgallery").is(":hidden")&&ViewGallery(n)}function setCurrentItem(){$paginationItem.filter($(":nth-child("+galleryCollection.getItem("currentPager")+")")).trigger("click")}$(document).on("keyup",function(n){n.keyCode==39?$("#caroufrednext").trigger("click"):n.keyCode==37&&$("#caroufredprev").trigger("click")});$(window).on("resize",function(){afterResize()});function afterResize(){showModal&&($("#btnclosegallery"+itemId).trigger("click"),setTimeout(function(){$("#btnviewgallery"+itemId).trigger("click")},500))}}if(isIE=document.all&&document.querySelector,function(){isIE&&$("html").addClass("ie")}(),ComponentRegistry.Registration){var primaryJobSelected={items:[]},primaryCityList={items:[]},isFormSubmitted=!1,jobSelector="#selectPrimaryJob .checkbox label input[type=checkbox]",citySelector="#selectCity .checkbox label input[type=checkbox]",checkboxPrimaryJob=$(jobSelector),checkboxPrimaryCity,counter=0,schoolFields=$("#School-fields");schoolFields.hide();$(".social-disconnect")!=undefined&&$(".social-disconnect").hide();$(function(){function h(n){n==undefined||n==""?alert("Email address is required"):window.open(n,"_blank","toolbar=yes,scrollbars=yes,resizable=yes,top=200,left=300,width=700,height=500")}function n(n){var t=!1;return $.ajax({url:"/api/sitecore/RegistrationModule/IsPasswordValid",type:"POST",data:JSON.stringify({Password:n}),contentType:"application/json",async:!1,error:function(){alert("PASSWORD VALIDATION ERROR")},success:function(n){t=n.ValidatedPassword}}),t}function t(n,t,i,r){var u=!1;return $.ajax({url:"/api/sitecore/RegistrationModule/IsValidDataInput",type:"POST",data:JSON.stringify({data:n,includeLetters:t,includeNumbers:i,selectedSpecialCharacters:r}),contentType:"application/json",async:!1,error:function(){alert("ALPHA VALIDATION ERROR")},success:function(n){u=n.IsValidInput}}),u}function o(n){var t=!1;return $.ajax({url:"/api/sitecore/RegistrationModule/IsEmailValid",type:"POST",data:JSON.stringify({EmailCharacters:n}),contentType:"application/json",async:!1,error:function(){alert("EMAIL VALIDATION ERROR")},success:function(n){t=n.ValidatedEmail}}),t}function c(n){var i=!1,t=$('.validatorMessage span[data-bv-validator="callback"][data-bv-validator-for="CareersRegistration_EmailAddress"]'),r=t.closest("div.form-group");return r.find("i.form-control-feedback").removeClass("glyphicon-warning-sign"),$.ajax({url:"/api/sitecore/RegistrationModule/IsEmailUsed",type:"POST",data:JSON.stringify({EmailCharacters:n}),contentType:"application/json",async:!0,error:function(){alert("EMAIL VALIDATION ERROR")},success:function(u){i=u.ValidatedEmail;n==""&&$("#UploadErrorMessage").hide();r.find("i.form-control-feedback").css({display:"inline-block"});i?(t.css({display:"inline-block"}),t.parent().css({display:"inline-block"}),t.closest("div.form-group").removeClass("has-success").addClass("has-error"),t.closest("div.form-group").find("i.form-control-feedback").removeClass("glyphicon-ok").addClass("glyphicon-remove"),i?i&&l(n)?(t.closest("div.form-group").removeClass("has-success").addClass("has-warning"),t.closest("div.form-group").find("i.form-control-feedback").removeClass("glyphicon-ok").addClass("glyphicon-warning-sign"),t.text($("#Warning").val())):t.text($("#UsedEmail").val()):n.length>EmailMaxLengthValue?t.text($("#EmailMaxLength").val()):t.text($("#ValidEmail").val())):(t.css({display:"inline-block"}),t.parent().css({display:"inline-block"}),t.text($("#ValidEmail").val()),r.find("i.form-control-feedback").removeClass("glyphicon-warning-sign").addClass("glyphicon-ok"))}}),i}function l(n){var t=!1;return $.ajax({url:"/api/sitecore/RegistrationModule/IsLinkedUser",type:"POST",data:JSON.stringify({emailCharacters:n}),contentType:"application/json",async:!1,error:function(){alert("EMAIL VALIDATION ERROR")},success:function(n){var f,o,r;t=n.ValidatedEmail;var e=$("#ddPreferredIndustryMobile"),u=n.Industry,i=[];if(u!==undefined){if($("#CareerRegistration_FirstName").val(n.FirstName),$("#CareerRegistration_LastName").val(n.Lastname),$("select#ddBoxRegistrationCountryRegion").selectpicker("val",n.CountryRegion),u.indexOf("|")>-1?i=u.split("|"):i[0]=u,e.val()===undefined){for($("#selectedIndustries").empty(),f=0;f<i.length;f++)a(i[f]);hasIndustry();rebindUndoableIndustryReg()}else e.selectpicker("val",i[0]);o=$("#CareerRegistration_FirstName").closest("form");r=$(o).data("bootstrapValidator");r.updateStatus("CareerRegistration_FirstName","NOT_VALIDATED");r.validateField("CareerRegistration_FirstName");r.updateStatus("CareerRegistration_LastName","NOT_VALIDATED");r.validateField("CareerRegistration_LastName")}}}),t}function a(n){var t=$("#ModalRegIndustries input[value='"+n+"']");t.prop("checked",!0);$("#selectedIndustries").append("<span class='target comment'><a href='#' class='remove-selected-filter'>X<\/a>"+t[0].name+"<label hidden guid="+n+" value="+t[0].name+"> "+t[0].name+"<\/label><\/span>")}function v(){var n={},t,i,u;if(n.TalentConnectionId,n.UserId,n.PhoneNumber=$("#TalentConnectionRegistration_PhoneNumber").val(),n.RelevantExperience=$("#ddPreferredExperience").val(),t=$(".Status:radio:checked").val(),t=="isProfessional"&&(n.HighestDegreeEarned=$("#ddTalentConnectionRegistrationDegreeEarned").val(),n.ChangeJobIn=$("#ddTalentConnectionRegistrationInterestedJobs").val()),t=="isStudent"){n.CountryOfSchool=$("#ddTalentConnectionRegistrationCountryOfSchool").val();var h=$("#ddTalentConnectionRegistrationMajor :selected").val(),c=$("#DegreeMajor-other").val(),f=$("#ddTalentConnectionRegistrationMajor :selected").text(),l=$("#degreeMajorDefaultValue").val();n.DegreeMajor=h==c?r($("#degreeMajor-textBox").val()):f!=l?f:null;var a=$("#ddTalentConnectionRegistrationCurrentStudy :selected").val(),v=$("#CurrentProgram-other").val(),e=$("#ddTalentConnectionRegistrationCurrentStudy :selected").text(),y=$("#currentProgramDefaultValue").val();n.CurrentProgramOfStudy=a==v?r($("#currentProgram-textBox").val()):e!=y?e:null;var p=$("#ddTalentConnectionRegistrationSchool :selected").val(),w=$("#School-other").val(),o=$("#ddTalentConnectionRegistrationSchool :selected").text(),b=$("#schoolDefaultValue").val();n.School=p==w?r($("#school-textBox").val()):o!=b?o:null;i=$("#startDateVal").val();i!=""&&(n.DegreeStartDate=s(i));u=$("#gradDateVal").val();u!=""&&(n.ExpectedGraduationDate=s(u))}return n.LinkedInProfileUrl=$("#TalentConnectionRegistration_LinkedIn").val(),n.IsResumeUploaded=$("#").val(),n.AvatureId=$("#").val(),n.IsPreviouslyEmployed=$("#ddTalentConnectionRegistrationPreviouslyEmployed").val(),n.AreaOfInterest=$("#ddAreaOfInterest").val(),n}function s(n){var t=$(".dtp-date").attr("type");return t=="text"?n.substr(6,4)+"-"+n.substr(3,2)+"-"+n.substr(0,2):n}function r(n){return"Other - "+n}var u=$("#ddBoxRegistrationCountryRegion"),f,e;u.val()!=""&&CountryRegionOnChange($(u));$("#chkJoinTalentConnection").on("change",function(){var n=$(this),t=$(".talent-connection-fields");n!=undefined&&(n.is(":checked")?($("#ddTalentConnectionRegistrationDegreeEarned").addClass("form-control validate-excluded-field"),ReadOnlyDatepicker(),t.show()):t.hide())});$("#CareersRegistration_EmailAddress").on("blur",function(){var n=$(this).val(),t,i;n!=""&&o(n)&&(t=$('.validatorMessage span[data-bv-validator="callback"][data-bv-validator-for="CareersRegistration_EmailAddress"]'),i=t.closest("div.form-group"),i.find("i.form-control-feedback").css({display:"none"}),c(n))});checkboxPrimaryJob.on("click",function(){OrderSelection($(this),primaryJobSelected.items,jobSelector)});$("#ModalRegCities .modal-header .close").on("click",function(){var r=$("#selectedCities .target.comment"),t=$("#ModalRegCities input[type=checkbox]"),n;for($("#ModalRegCities input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)}),$(r).each(function(){var n=$(this).children("label").attr("value");if($(this).css("display")!="none")for(i=0;i<t.length;i++)if(n==$(t[i]).attr("name")){$(t[i]).prop("checked",!0);break}}),n=0;n<primaryCityList.items.length;n++)$("#ModalRegCities input[type=checkbox][value='"+primaryCityList.items[n].value+"']").prop("checked")?primaryCityList.items[n].isPending=!1:(primaryCityList.items.splice(n,1),n--);checkMaxPrimary(citySelector)});$("#ModalRegIndustries .modal-header .close").on("click",function(){var t=$("#selectedIndustries .target.comment"),n=$("#ModalRegIndustries input[type=checkbox]");$("#ModalRegIndustries input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$(t).each(function(){var t=$(this).children("label").attr("value");if($(this).css("display")!="none")for(i=0;i<n.length;i++)if(t==$(n[i]).attr("name")){$(n[i]).prop("checked",!0);break}})});f=$("#ddTalentConnectionRegistrationCountryOfSchool");$("#ddTalentConnectionRegistrationCountryOfSchool").on("change",function(){TalentConnectionCountryOnChange($(f))});e=$("#formID").val();$(e).bootstrapValidator({fields:{CareersRegistration_EmailAddress:{validMessage:"The username looks great",trigger:"none",validators:{emailAddress:{message:$("#EmailAddNotValid").val()},notEmpty:{message:$("#EmailRequired").val()},callback:{message:""}}},CareersRegistration_Password:{trigger:"blur",validators:{notEmpty:{message:$("#CreatePasswordlRequired").val()},callback:{message:$("#InvalidPassword").val(),callback:function(t,i){var r=$("#CareersRegistration_RetypePassword").val();if(t=="")return r!=""&&i.updateStatus("CareersRegistration_RetypePassword",i.STATUS_INVALID,"identical"),!0;if(n(t)||r==""){if(n(t))return r!=""&&i.updateStatus("CareersRegistration_RetypePassword",r==t?i.STATUS_VALID:i.STATUS_INVALID,"identical"),!0}else return i.updateStatus("CareersRegistration_RetypePassword",i.STATUS_INVALID,"identical"),!1}},stringLength:{max:RetypePasswordMaxLengthValue,message:$("#PasswordMaxLength").val()}}},CareersRegistration_RetypePassword:{trigger:"blur",validators:{notEmpty:{message:$("#RetypePasswordlRequired").val()},callback:{message:$("#InvalidPassword").val(),callback:function(t,i){var r=$("#CareersRegistration_Password").val(),u=n(t);return r!=""&&t!=""&&!u?(i.updateStatus("CareersRegistration_RetypePassword",i.STATUS_INVALID,"identical"),!0):(t==""&&i.updateStatus("CareersRegistration_RetypePassword",i.STATUS_VALID,"identical"),!0)}},identical:{field:"CareersRegistration_Password",message:$("#PasswordIdentical").val()},stringLength:{max:RetypePasswordMaxLengthValue,message:$("#RetypePasswordMaxLength").val()}}},CareerRegistration_FirstName:{trigger:"blur",validators:{notEmpty:{message:$("#FirstNameRequired").val()},callback:{message:$("#FirstNameAlphaOnly").val(),callback:function(n){return n==""?!0:t(n,!0,!1,["\\p{Pd}"])}},stringLength:{max:50,message:$("#FirstNameMaxLength").val()}}},CareerRegistration_LastName:{trigger:"blur",validators:{notEmpty:{message:$("#LastNameRequired").val()},callback:{message:$("#LastNameAlphaOnly").val(),callback:function(n){return n==""?!0:t(n,!0,!1,["\\p{Pd}"])}},stringLength:{max:50,message:$("#LastNameMaxLength").val()}}},ddBoxRegistrationCountryRegion:{validators:{notEmpty:{message:$("#CountryRegion").val()}}},ddlPreferredCountryRegion:{validators:{notEmpty:{message:$("#PreferredCountryRegion").val()}}},ddPreferredExperience:{validators:{notEmpty:{message:$("#PreferredExperience").val()}}},ddPreferredIndustryMobile:{validators:{notEmpty:{message:$("#PreferredIndustryMobile").val()}}},ddBoxRegistrationStateProvince:{validators:{notEmpty:{message:$("#StateProvince").val()}}},CareerRegistration_City:{validators:{stringLength:{max:50,message:$("#CityMaxLength").val()},callback:{message:$("#CityAlphaOnly").val(),callback:function(n){return n==""?!0:t(n,!0,!1,[])}}}},captchaInput:{trigger:"submit",validators:{notEmpty:{message:$("#CaptchaRequired").val()},callback:{message:$("#IncorrectCaptcha").val()}}},ddTalentConnectionRegistrationDegreeEarned:{validators:{callback:{message:$("#HighestDegreeEarnedRequired").val(),callback:function(n){var t=$(".Status:radio:checked").val(),i=$("#chkJoinTalentConnection").filter(":checked").val();return i=="on"&&t=="isProfessional"?n==""||n=="Select"?!1:!0:!0}}}},TalentConnection_RelevantWorkExperience:{trigger:"blur",validators:{notEmpty:{message:$("#RelevantWorkExperienceRequired").val()}}}}}).on("blur",'[name="CareersRegistration_EmailAddress"]',function(){var t=$(this).closest("form"),n=$(t).data("bootstrapValidator");n.updateStatus("CareersRegistration_EmailAddress","NOT_VALIDATED");n.validateField("CareersRegistration_EmailAddress")});$("#btnUploadResume").on("click",function(){var n=$("#CareersRegistration_EmailAddress").val();o(n)&&n!=""?$.ajax({url:"/api/sitecore/RegistrationModule/GetUploadLink",async:!1,type:"POST",data:JSON.stringify({email:n}),contentType:"application/json",success:function(n){h(n)},error:function(){alert("EMAIL VALIDATION ERROR")}}):$("#UploadErrorMessage").show()});$("#btnRegister").on("click",function(n){var a=$(this).closest("form"),o=$('input[name="captchaInput"]').val(),i,h,t,r,u,f,e,d,g;o!==""?(i=$(a).data("bootstrapValidator"),i.enableFieldValidators("captchaInput",!1)):(i=$(a).data("bootstrapValidator"),i.enableFieldValidators("captchaInput",!0));var nt=$("#chkJoinTalentConnection").filter(":checked").val(),y=$("#chkSubscribeToCareerBlog"),s=!1;if(typeof y!==undefined&&(s=y.prop("checked")?!0:!1),nt==undefined&&$("#ddTalentConnectionRegistrationDegreeEarned").removeClass("form-control validate-excluded-field"),i.validate(),h=hasIndustry()&hasPrimaryJob(),h)if(h&&i.isValid()){t={};t.City=$("#CareerRegistration_City").val();t.CountryRegionItemId=$("#ddBoxRegistrationCountryRegion").val();t.EmailAddress=$("#CareersRegistration_EmailAddress").val();t.FirstName=$("#CareerRegistration_FirstName").val();t.LastName=$("#CareerRegistration_LastName").val();t.Address1="";t.Address2="";t.HasAccentureAlertSubscription=!1;t.HasLocalNewsletterSubscription=$("#chkCareersNewsLetter").prop("checked");t.HasJobEmailAlertSubscription=$("#chkJobAlert").prop("checked");t.HasPrivacyAgreement=!1;t.IsProcessed=!1;t.JobPreferenceCityItemIds=GetRegistrationPreferredSelectedCities();t.JobPreferenceCountryRegionItemId=$("#ddlPreferredCountryRegion").val();t.JobPreferenceIndustryItemIds=GetRegistrationPreferredSelectedIndustries();t.JobPreferenceYearsOfExperienceItemId=$("#ddPreferredExperience").val();t.RegistrationId="{00000000-0000-0000-0000-000000000000}";t.SalutationItemId=$("#ddBoxRegistrationSalutation").val();t.StateProvinceItemId=$("#ddBoxRegistrationStateProvince").val();t.UniversityItemId=$("#ddBoxRegistrationUniversity").val();t.Password=$("#CareersRegistration_Password").val();t.JobPortalUrl=$("#CareersRegistration_JobPortalUrl").val();t.PreferredLanguage=$("#SiteLanguage").val();r={};r.SkillValue=GetRegistrationPreferredSelectedPrimaryJob();u={};u.SkillValue=GetRegistrationPreferredSelectedSpecializationSkills();f={};e=$("#ddPreferredTravel").val();f.SkillValue=e?e.match(/\d+/)[0]:e;var p=$("#CountrySite").val(),w=$("#SiteLanguage").val(),c,l,o=$('input[name="captchaInput"]').val(),b=$("#CaptchaID").val(),k=$("#CaptInstance").val(),tt=$("#UserInputID").val();$("#chkJoinTalentConnection").is(":checked")?(d=v(),c=JSON.stringify({RegistrationValues:t,RegistrationTravelPercentageValue:f,RegistrationSpecializationSkillValues:u,RegistrationPrimaryJobValues:r,TalentConnectionValues:d,countrySite:p,siteLanguage:w,captInput:o,captId:b,captInstance:k,isSubscribedToBlog:s}),l="/api/sitecore/RegistrationModule/SaveRegistrationWithTalentConnection"):(c=JSON.stringify({RegistrationValues:t,RegistrationTravelPercentageValue:f,RegistrationSpecializationSkillValues:u,RegistrationPrimaryJobValues:r,countrySite:p,siteLanguage:w,captInput:o,captId:b,captInstance:k,isSubscribedToBlog:s}),l="/api/sitecore/RegistrationModule/SaveRegistration");$.ajax({url:l,async:!1,type:"POST",data:c,contentType:"application/json",error:function(n,t,i){console.log(n);consoe.log(t);console.log(i);typeof acncm!="undefined"&&acncm.Forms.detectedRegistrationFormError();jQuery("body").trigger("analytics-form-error")},success:function(t){typeof acncm!="undefined"&&acncm.Forms.detectedRegistrationFormComplete();t[0].EmailSending==!0&&t[0].RegistrationSaving==!0?(isFormSubmitted=!0,jQuery("body").trigger("analytics-form-success"),window.location.assign(t[0].RedirectTo),n.preventDefault()):t[0].IsCaptchaValid==!1?($("#"+tt).get(0).Captcha.ReloadImage(),i.updateStatus("captchaInput","INVALID","callback"),jQuery("body").trigger("analytics-form-error")):(console.log("Error Saving Registration"),n.preventDefault(),jQuery("body").trigger("analytics-form-error"))}})}else jQuery("body").trigger("analytics-form-error"),g=$.trim($("#CareerRegistration_City").val()),g==""&&$("#CareerRegistration_City").siblings().hide(),typeof acncm!="undefined"&&acncm.Forms.detectedRegistrationFormError();else i.isValid()==!1&&jQuery("body").trigger("analytics-form-error");n.preventDefault()})});function CountryRegionOnChange(n){var i="",t,r,u,f;n.value!=undefined?i=n.value:n.val()!=undefined&&(i=n.val());t=$("#ddBoxRegistrationStateProvince");r=$("#ddBoxRegistrationUniversity");i!=""?$.ajax({url:"/api/sitecore/RegistrationModule/GetStateProvinceByCountry",async:!1,type:"POST",data:JSON.stringify({CountryRegion:i}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){var r,i,u;typeof n=="undefined"||n[0].Id==""?(r=' <option value="NotApplicable">'+$("#NotApplicable").val()+"<\/option>",t.prop("disabled",!0),t.closest(".form-group").hasClass("has-success")&&(i=$("#ddBoxRegistrationStateProvince").closest("form"),u=$(i).data("bootstrapValidator").updateStatus("ddBoxRegistrationStateProvince","VALID","notEmpty"),t.closest("div.has-success").removeClass("has-success"),t.parent().find("i.glyphicon-ok").removeClass("glyphicon glyphicon-ok").css("display","none")),t.closest(".form-group").hasClass("has-error")&&(i=$("#ddBoxRegistrationStateProvince").closest("form"),u=$(i).data("bootstrapValidator").updateStatus("ddBoxRegistrationStateProvince","VALID","notEmpty"),t.closest("div.has-error").removeClass("has-error"),t.parent().find("i.glyphicon-remove").removeClass("glyphicon glyphicon-remove").css("display","none"))):(r=' <option value="">Select<\/option>',t.prop("disabled",!1),$.each(n,function(n,t){r=r+"<option value="+t.Id+">"+t.Name+"<\/option>"}),i=$("#ddBoxRegistrationStateProvince").closest("form"),t.closest(".form-group").hasClass("has-success")&&(t.closest("div.has-success").removeClass("has-success"),t.parent().find("i.glyphicon-ok").removeClass("glyphicon glyphicon-ok").css("display","none")),t.closest(".form-group").hasClass("has-error")&&(t.closest("div.has-error").removeClass("has-error"),t.parent().find("i.glyphicon-remove").removeClass("glyphicon glyphicon-remove").css("display","none")),u=$(i).data("bootstrapValidator").updateStatus("ddBoxRegistrationStateProvince","NOT_VALIDATED","notEmpty"));t.html(r).selectpicker("refresh")}}):(t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh"),u=$("#ddBoxRegistrationStateProvince").closest("form"),f=$(u).data("bootstrapValidator").updateStatus("ddBoxRegistrationStateProvince","VALID","notEmpty"),t.closest("div.has-error").removeClass("has-error"),t.parent().find("i.glyphicon-remove").removeClass("glyphicon glyphicon-remove").css("display","none"),r.prop("disabled",!0).selectpicker("val","").selectpicker("refresh"))}function StateOnChange(n){var i=n.value,t=$("#ddBoxRegistrationUniversity"),r;i!=""?(r=$("#SiteLanguage").val(),$.ajax({url:"/api/sitecore/RegistrationModule/GetUniversities",async:!1,type:"POST",data:JSON.stringify({StateProvince:i,siteLanguage:r}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){t.prop("disabled",!1);var i='<option value="">Select<\/option>';$("#ddBoxRegistrationUniversity").empty();$.each(n,function(n,t){i=i+"<option value="+t.Id+">"+t.Name+"<\/option>"});t.html(i).selectpicker("refresh")}})):t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh")}function TalentConnectionCountryOnChange(n){var i=n.val(),t=$("#ddTalentConnectionRegistrationSchool"),r=$("#School-other"),u;schoolFields.hide();i!=""?(u=$("#SiteLanguage").val(),$.ajax({url:"/api/sitecore/RegistrationModule/GetUniversityByCountry",async:!1,type:"POST",data:JSON.stringify({countryId:i}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){t.prop("disabled",!1);var i='<option value="">Select<\/option>';$("#ddTalentConnectionRegistrationSchool").empty();$.each(n,function(n,t){i=i+"<option value="+t.Id+">"+t.Name+"<\/option>"});i=i+"<option value="+r.prop("value")+">"+r.prop("name")+"<\/option>";t.html(i).selectpicker("refresh")}})):t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh")}$("button.filter-option").on("keydown",function(n){n.which==13&&$(this).trigger("click")});$(".module-body.selection-reseter.cta").on("keypress",function(n){n.keyCode==13&&$(this).trigger("click")});$("#ddlPreferredCountryRegion").on("keypress",function(n){n.keyCode==13&&$(this).trigger("click")});$("#ddlPreferredCountryRegion").on("keydown",function(){event.keyCode==13&&$(this).trigger("click")});$(".btn-default").on("keydown",function(){$(this).is(":focus")&&($("#ddlPreferredCountryRegion").trigger("focus"),event.keyCode==13&&$(this).trigger("click"))});forms=$(".captchaVal,#CareersRegistration_EmailAddress,#CareersRegistration_Password,#CareersRegistration_RetypePassword,#CareerRegistration_FirstName,#CareerRegistration_LastName");forms.on("keydown",function(e){var tabcounter=0,formParent,messageFocus;e.keyCode==9&&tabcounter<=0&&(eval($(this).trigger("blur")),e.preventDefault(),formParent=$(this).parentsUntil(".form-group"),messageFocus=formParent.find(".validatorMessage"),messageFocus.trigger("focus"))});$(function(){var n=$(".validatorMessage");n.on("keydown",function(n){var t,i;n.keyCode==9&&(t=$(this).closest("div.has-error"),t.attr("class")&&(i=$(":focus").find('[data-bv-visible="true"]').attr("data-bv-validator-for"),n.preventDefault(),$("[name="+i+"]").trigger("focus")))})});hasSubHeader=$(".hero-title-wrapper").find(".careers-subheader");hasSubHeader&&$(".top-block-spacing").css("margin-top",function(n,t){return parseInt(t,10)+80+"px"})}if(ComponentRegistry.JobPreference){$(function(){var c,u;rebindUndoablePrimaryJob();rebindUndoableCityReg();rebindUndoableIndustryReg();rebindUndoableSkills();c=$("#ddlPreferredCountryRegion");c.val()!=""&&GetCitiesByCountry($(c));$("#btnCityUpdate").on("click",function(){$("#selectedCities").empty();for(var n=0;n<primaryCityList.items.length;n++)primaryCityList.items[n].isPending===!0?(primaryCityList.items.splice(n,1),n--):$("#selectedCities").append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+primaryCityList.items[n].name+'<label hidden guid="'+primaryCityList.items[n].value+'" value="'+primaryCityList.items[n].name+'">'+primaryCityList.items[n].name+"/><\/span>");rebindUndoableCityReg();$("#RegCitiesLink").text($("#SelectCitiesLink").val())});$("#ModalRegCities .modal-footer .selection-reseter").on("click",function(){$("#ModalRegCities input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$("#ModalRegCities input[type=checkbox]").prop("disabled",!1);for(var n=0;n<primaryCityList.items.length;n++)primaryCityList.items[n].isPending=!0});$("#btnIndustryUpdate").on("click",function(){$("#selectedIndustries").empty();$("#selectIndustry .checkbox label input[type=checkbox]:checked").each(function(){$("#selectedIndustries").append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+$(this).attr("name")+'<label hidden guid="'+$(this).attr("value")+'" value="'+$(this).attr("name")+'">'+$(this).attr("name")+"<\/label><\/span>")});hasIndustry();rebindUndoableIndustryReg();setTimeout(function(){$("#industryErrorMessage").trigger("focus")},1e3)});$("#ModalRegIndustries .modal-footer .selection-reseter").on("click",function(){$("#ModalRegIndustries input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)})});$("button.filter-option").attr("role","combobox");$("#btnPrimaryJobUpdateReg").on("click",function(){$("#selectedPrimaryJob").empty();for(var n=0;n<primaryJobSelected.items.length;n++)primaryJobSelected.items[n].isPending===!0?(primaryJobSelected.items.splice(n,1),n--):$("#selectedPrimaryJob").append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+primaryJobSelected.items[n].name+'<label hidden guid="'+primaryJobSelected.items[n].value+'" value="'+primaryJobSelected.items[n].name+'">'+primaryJobSelected.items[n].name+"<\/label><\/span>");hasPrimaryJob();rebindUndoablePrimaryJob();setTimeout(function(){$("#primaryJobErrorMessage").trigger("focus")},0)});$("#ModalRegPrimaryJob .modal-footer .selection-reseter").on("click",function(){$("#ModalRegPrimaryJob input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$("#ModalRegPrimaryJob input[type=checkbox]").prop("disabled",!1);checkedPrimaryJobCount=0;for(var n=0;n<primaryJobSelected.items.length;n++)primaryJobSelected.items[n].isPending=!0});$("#ModalRegPrimaryJob .modal-header .close").on("click",function(){$("#ModalRegPrimaryJob input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$("#ModalRegPrimaryJob input[type=checkbox]").each(function(){var n=$("#selectedPrimaryJob [class='target comment']"),i=$(this).attr("name"),t="";for(u=0;u<n.length;u++)if($(n[u]).css("display")!="none")if(t=$(n[u]).children("label").attr("value"),i==t){$(this).prop("checked",!0);checkMaxPrimary(jobSelector);break}else $(this).prop("checked",!1);setTimeout(function(){checkMaxPrimary(checkboxPrimaryJob)},100)});for(var n=0;n<primaryJobSelected.items.length;n++)$("#ModalRegPrimaryJob input[type=checkbox][value='"+primaryJobSelected.items[n].value+"']").prop("checked")?primaryJobSelected.items[n].isPending=!1:(primaryJobSelected.items.splice(n,1),n--)});var o=GetAllSkillSpecialization(),t=[],s=$("#ss-maximum-message"),h=$("#ss-duplicated-message"),f=$("#ss-not-available-message"),i=$("#specialization-warning-message"),n=$("#skillsSpecialization"),e=$("#selected-skills"),l=$("#ddSkillSpecializationList"),r=[];if(o){for(u=0;u<o.length;u++)r.push(o[u].skillName);if(r&&(searchDropdown(document.getElementById("skillsSpecialization"),r),s||h||f||f||i)){$(".cta-arrow").on("click",function(){for(var y,c=[],a=0;a<r.length;a++)c.push(r[a].toLowerCase());if(n&&c&&e){c.sort(function(n,t){return n.toLowerCase().localeCompare(t.toLowerCase())});var v=c.indexOf(n.val().toLowerCase()),u=r[v],p=e.children();n.val()!==""&&(v>-1?t.indexOf(n.val().toLowerCase())===-1?t.length<5?u&&(y=o.filter(function(n){return n.skillName===u})[0].skillId,e.append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+u+'<label hidden value="'+u+'" id="'+y+'" /><\/span>'),p.children().closest(".undoable.target.comment").remove(),t.indexOf(n.val().toLowerCase())===-1&&t.push(u.toLowerCase())):(i.show(),s.show()):(i.show(),h.show()):(i.show(),f.show()));n.val("");rebindUndoableSkills(t);l.hide()}});n.on("keydown",function(u){var c,v,p;if((s||h||f||f||i)&&(s.hide(),h.hide(),f.hide(),i.hide(),u.which===13)){for(u.preventDefault(),c=[],v=0;v<r.length;v++)c.push(r[v].toLowerCase());if(n&&c&&e){c.sort(function(n,t){return n.toLowerCase().localeCompare(t.toLowerCase())});var y=c.indexOf(n.val().toLowerCase()),a=r[y],w=e.children();n.val()!==""&&(y>-1?t.indexOf(n.val().toLowerCase())===-1?t.length<5?a&&(p=o.filter(function(n){return n.skillName===a})[0].skillId,e.append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+a+'<label hidden value="'+a+'" id="'+p+'" /><\/span>'),w.children().closest(".undoable.target.comment").remove(),t.indexOf(n.val().toLowerCase())===-1&&t.push(a.toLowerCase())):(i.show(),s.show()):(i.show(),h.show()):(i.show(),f.show()));n.val("");rebindUndoableSkills(t);l.hide()}}})}}});function hasIndustry(){var r=$("#ddPreferredIndustryMobile").val(),t,n,i;return r!=undefined?!0:(t=$("#selectedIndustries .target.comment"),t!=undefined?(n=!1,$(t).each(function(){if(i=$(this).attr("style"),i==undefined)return n=!0,!1;i.indexOf("display: block")>=0&&$(this).hasClass("undoable")==!1&&(n=!0)}),n?($("#industryId").removeClass("has-feedback").removeClass("has-error"),$("#industryErrorMessage").hide(),!0):($("#industryId").addClass("has-feedback").addClass("has-error"),$("#industryErrorMessage").show(),$("#industryErrorMessage").trigger("focus"),!1)):($("#industryErrorMessage").show(),!1))}function hasPrimaryJob(){var r=$("#ddPreferredPrimaryJobMobile").val(),t,n,i;return r!=undefined?!0:(t=$("#selectedPrimaryJob .target.comment"),t!=undefined?(n=!1,$(t).each(function(){if(i=$(this).attr("style"),i==undefined)return n=!0,!1;i.indexOf("display: block")>=0&&$(this).hasClass("undoable")==!1&&(n=!0)}),n?($("#primaryJobId").removeClass("has-feedback").removeClass("has-error"),$("#primaryJobErrorMessage").hide(),!0):($("#primaryJobId").addClass("has-feedback").addClass("has-error"),$("#primaryJobErrorMessage").show(),setTimeout(function(){$("#RegPrimaryJob").trigger("focus")},0),!1)):($("#primaryJobErrorMessage").show(),!1))}function checkMaxPrimary(n){var t=$(n),r=$(n+":checked").length;for(i=0;i<t.length;i++)r>=3?t[i].checked||(t[i].disabled=!0):t[i].checked||(t[i].disabled=!1)}function OrderSelection(n,t,i){var r=n,u;if(checkboxIsCheckedReg(r[0],i,r.parents().eq(3).attr("id")),r.prop("checked"))if(t.length>0)if(t.filter(function(n){return n.value===r[0].value}).length===0)t.push({name:r[0].name,value:r[0].value,isPending:!1});else for(u=0;u<t.length;u++)t[u].name===r[0].name&&(t.splice(u,1),t.push({name:r[0].name,value:r[0].value,isPending:!1}));else t.push({name:r[0].name,value:r[0].value,isPending:!1});else for(u=0;u<t.length;u++)t[u].name===r[0].name&&(t[u].isPending=!0)}function checkboxIsCheckedReg(n,t){n.checked?counter++:counter--;setTimeout(function(){checkMaxPrimary(t)},100)}function GetCitiesByCountry(n){var r="",i,t;if(n.value!=undefined?r=n.value:n.val()!=undefined&&(r=n.val()),i="",t="",$("#selectedCities").empty(),$("#RegCitiesLink").text($("#SelectCitiesLink").val()),r!=""){$.ajax({url:"/api/sitecore/RegistrationModule/GetCitiesByCountry",async:!1,type:"POST",data:JSON.stringify({CountryRegion:r}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){n==0?t==0&&($("#RegCitiesLink").addClass("disable-pointers"),IsIE()&&$("#RegCitiesLink").replaceWith("<span class='col-sm-12 disable-pointers' id='RegCitiesLink'>"+$("#RegCitiesLink").text()+"<\/span>")):IsIE()?$("#RegCitiesLink").replaceWith("<a href='#' id='RegCitiesLink' class='cta col-sm-12' data-target='#cities' data-toggle='modal'>"+$("#RegCitiesLink").text()+"<\/a>"):$("#RegCitiesLink").removeClass("disable-pointers");last=$(n).length;rows=18;$("#RegCitiesLink").attr("data-toggle","modal");$("#selectCity").empty();$.each(n,function(n,r){i="<div class='checkbox'><label><input type='checkbox' name='"+r.Name+"' value='"+r.Id+"' />"+r.Name+"<\/label><\/div>";t+=(n+1)%rows==1?'<div class="col-sm-4">'+i:n+1==last||(n+1)%rows==0?i+"<\/div>":i})}});primaryCityList.items=[];$("#selectCity").append(t);checkboxPrimaryCity=$(citySelector);checkboxPrimaryCity.on("click",function(){OrderSelection($(this),primaryCityList.items,citySelector)})}else $("#RegCitiesLink").removeAttr("data-toggle")}function GetCitiesByCountryForMobile(n){var i=n.value,t=$("#ddPreferredCity");i!=""?$.ajax({url:"/api/sitecore/RegistrationModule/GetCitiesByCountry",async:!1,type:"POST",data:JSON.stringify({CountryRegion:i}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){var i=' <option value="">Select<\/option>';t.prop("disabled",!1);t.empty();$.each(n,function(n,t){i=i+"<option value="+t.Id+">"+t.Name+"<\/option>"});t.html(i).selectpicker("refresh")}}):t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh")}function GetRegistrationPreferredSelectedCities(){var n="",t=$("#selectedCities .target.comment");return t.length>0?t.each(function(){$(this).css("display")!="none"&&(n+=$(this).children("label").attr("guid")+"|")}):n=$("#ddPreferredCity").val(),n}function GetRegistrationPreferredSelectedIndustries(){var n=[],t="",i=$("#selectedIndustries .target.comment");return i.length>0?i.each(function(){var i=$(this),t;i.css("display")!=="none"&&(t=i.children("label").attr("guid"),t&&t!==""&&n.push(t))}):t=$("#ddPreferredIndustry").val(),n.length>0&&(t=n.join("|")),t}function GetRegistrationPreferredSelectedPrimaryJob(){var n=[],t="",i=$("#selectedPrimaryJob .target.comment");return i.each(function(){var i=$(this),t;i.css("display")!=="none"&&(t=i.children("label").attr("guid"),t&&t!==""&&n.push(t))}),n.length>0&&(t=n.join("|")),t}function rebindUndoableCityReg(){$("#selectedCities a.remove-selected-filter").off();$("#selectedCities a.remove-selected-filter").undoable();$("#selectedCities .remove-selected-filter").on("click",function(){$(".undoable.target.comment").css("display","inline-block");$(".undo").css("padding-right","10px");var n=$(this).parent().find("label").attr("guid");$("#ModalRegCities input[value="+n+"]:checked").each(function(){$(this).prop("checked",!1);for(var n=0;n<primaryCityList.items.length;n++)primaryCityList.items[n].name===$(this)[0].name&&(primaryCityList.items.splice(n,1),n--);checkMaxPrimary(citySelector)});$("#selectedCities .undo a").on("click",function(){var n=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+n+'"]').attr("guid");$("#ModalRegCities input[value="+t+"]:not(:checked)").each(function(){$(this).prop("checked",!0);primaryCityList.items.push({name:$(this)[0].name,value:$(this)[0].value,isPending:!1});checkMaxPrimary(citySelector)})})})}function rebindUndoableIndustryReg(){$("#selectedIndustries a.remove-selected-filter").off();$("#selectedIndustries a.remove-selected-filter").undoable();$("#selectedIndustries .remove-selected-filter").on("click",function(){$(".undoable.target.comment").css("display","inline-block");$(".undo").css("padding-right","10px");var n=$(this).parent().find("label").attr("guid");$("#ModalRegIndustries input[value="+n+"]:checked").each(function(){$(this).prop("checked",!1)});hasIndustry();$("#selectedIndustries .undo a").on("click",function(){var n=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+n+'"]').attr("guid");$("#ModalRegIndustries input[value="+t+"]:not(:checked)").each(function(){$(this).prop("checked",!0)});hasIndustry()})})}function rebindUndoablePrimaryJob(){$("#selectedPrimaryJob a.remove-selected-filter").off();$("#selectedPrimaryJob a.remove-selected-filter").undoable();$("#selectedPrimaryJob .remove-selected-filter").on("click",function(){$(".undoable.target.comment").css("display","inline-block");$(".undo").css("padding-right","10px");var n=$(this).parent().find("label").attr("guid");$("#ModalRegPrimaryJob input[value="+n+"]:checked").each(function(){$(this).prop("checked",!1);for(var n=0;n<primaryJobSelected.items.length;n++)primaryJobSelected.items[n].name===$(this)[0].name&&(primaryJobSelected.items.splice(n,1),n--);checkMaxPrimary(jobSelector)});hasPrimaryJob();$("#selectedPrimaryJob .undo a").on("click",function(){var n=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+n+'"]').attr("guid");$("#ModalRegPrimaryJob input[value="+t+"]:not(:checked)").each(function(){$(this).prop("checked",!0);primaryJobSelected.items.push({name:$(this)[0].name,value:$(this)[0].value,isPending:!1});checkMaxPrimary(jobSelector)});hasPrimaryJob()})})}$("#RegIndustryLink").on("keydown",function(n){n.which==9&&$(".modal.fade.row").hasClass("in")&&(n.preventDefault(),$(this).is(":focus")&&$("#industries").trigger("focus"))});$("#RegPrimaryJob").on("keydown",function(n){n.which==9&&$(".modal.fade.row").hasClass("in")&&(n.preventDefault(),$(this).is(":focus")&&$("#primary-job").trigger("focus"))});function GetAllSkillSpecialization(){var t=[],r=[],i=[],n=acncm.CacheManager.readSession("SkillsSpecialization");if(typeof n!="undefined")n=JSON.parse(n);else return $.ajax({url:"/api/sitecore/RegistrationModule/GetAllSkillSpecialization",type:"POST",async:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(u){var e,f,o;if(u){for(e=Object.keys(u),t=Object.keys(u).map(function(n){return u[n]}),f=0;f<e.length;f++)e&&t&&(o={skillId:e[f],skillName:t[f]},o&&i.push(o));i&&(i.sort(function(n,t){return n.skillName.toLowerCase().localeCompare(t.skillName.toLowerCase())}),acncm.CacheManager.writeSession("SkillsSpecialization",JSON.stringify(i)),r=acncm.CacheManager.readSession("SkillsSpecialization"),typeof r!="undefined"&&(n=JSON.parse(r)))}else return t=null},error:function(){i=null}}),n;return n}function searchDropdown(n,t){function u(n){n&&(f(n),i>=n.length&&(i=0),i<0&&(i=n.length-1),n[i]&&n[i].classList.add("search-dropdown-active"))}function f(n){if(n)for(var t=0;t<n.length;t++)n[t]&&n[t].classList.remove("search-dropdown-active")}function r(t){var u=$(".search-dropdown-items"),r,i;if(u)for(r=0;r<u.length;r++)i=u[r],t!=i&&t!=n&&i&&($(i).children().remove(),$(i).hide())}var i;n&&(n.addEventListener("input",function(){$this=$(this);var u,f,e,o=$this.val();if(r(),!o)return!1;if(i=-1,u=$("#ddSkillSpecializationList"),u&&(u.addClass("search-dropdown-items"),u.show()),t){for(e=0;e<t.length;e++)if(t[e].substr(0,o.length).toUpperCase()===o.toUpperCase()&&(f=document.createElement("DIV"),f.innerHTML="<strong>"+t[e].substr(0,o.length)+"<\/strong>",f.innerHTML+=t[e].substr(o.length),f.innerHTML+="<input type='hidden' value='"+t[e]+"'>",f.addEventListener("click",function(){n.value=this.innerText;$("#skillsSpecialization").trigger("focus");r()}),u.append(f),u.children().length===5))break;f||$(u).hide()}}),n.addEventListener("keydown",function(n){var t=$("#ddSkillSpecializationList");t&&(t=t.children(),n.keyCode==40?(n.preventDefault(),i++,u(t)):n.keyCode==38?(n.preventDefault(),i--,u(t)):n.keyCode==13&&(n.preventDefault(),i>-1&&t[i]&&t[i].click()))}));document.addEventListener("click",function(n){r(n.target)})}selectedSkillsArray=[];function rebindUndoableSkills(n){$("#selected-skills a.remove-selected-filter").off();$("#selected-skills a.remove-selected-filter").undoable();$("#selected-skills .remove-selected-filter").on("click",function(){var i,t;for($(".undoable.target.comment").css("display","inline-block"),$(".undo").css("padding-right","10px"),i=$(this).parent().next().find(".undo-changes").find("i").text().trim().toLowerCase(),t=0;t<n.length;t++)n[t]===i&&n.splice(t,1);$("#selected-skills .undo a").on("click",function(){var r=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+r+'"]').attr("value"),i=$("#selected-skills").children().closest(".undoable.target.comment");n.length<5?n.indexOf(t.toLowerCase())==-1&&n.push(t.toLowerCase()):i.remove();n.length===5&&i.remove()})});$(this).prop("disabled",!1)}function GetRegistrationPreferredSelectedSpecializationSkills(){var n=[],t="",i=$("#selected-skills .target.comment");return i.each(function(){var i=$(this),t;i.css("display")!=="none"&&(t=i.children("label").attr("id"),t&&t!==""&&n.push(t))}),n.length>0&&(t=n.join("|")),t}}if(ComponentRegistry.RegistrationComplete&&$(function(){$("#btnStartToday").on("click",function(){window.location.href=$("#startToday").val()});$("#btnJoin").on("click",function(){window.location.href=$("#Join").val()});$("#btnSignIn").on("click",function(){window.location.href=$("#signIn").val()});$("#resendEmailForm").bootstrapValidator({fields:{CaptchaInput:{trigger:"submit",validators:{notEmpty:{message:$("#CaptchaRequired").val()},callback:{message:$("#IncorrectCaptcha").val()}}}}});$("#btnResendEmail").on("click",function(){var s=$("#RegEmail").val(),i=$("#RegStrID").val(),r=$("#RegCountry").val(),u=$("#SiteLanguage").val(),t=$('input[name="CaptchaInput"]').val(),f=$("#CaptchaID").val(),e=$("#CaptInstance").val(),o=$("#UserInputID").val(),n;isFormDisabled=!1;t!==""?(isFormDisabled=!0,n=$("#resendEmailForm").data("bootstrapValidator"),n.enableFieldValidators("CaptchaInput",!1)):(isFormDisabled=!1,n=$("#resendEmailForm").data("bootstrapValidator"),n.enableFieldValidators("CaptchaInput",!0),n.validate(),jQuery("body").trigger("analytics-form-error"));isFormDisabled&&$.ajax({url:"/api/sitecore/RegistrationModule/ResendEmail",async:!1,type:"POST",data:JSON.stringify({RegistrationID:i,countrySite:r,siteLanguage:u,captInput:t,captId:f,captInstance:e}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error")},success:function(t){t.IsEmailSent==!0?(acncm.CacheManager.write("_ss_fa_resend",!0),alert("RESENDING EMAIL SUCCESSFULL"),jQuery("body").trigger("analytics-form-success")):t.IsCaptchaValid==!1?($("#"+o).get(0).Captcha.ReloadImage(),n.updateStatus("CaptchaInput","INVALID","callback"),jQuery("body").trigger("analytics-form-error")):alert("RESENDING EMAIL FAILED")}})})}),ComponentRegistry.customforms){getStatus=$(".getStatus");$(".Status").each(function(){var n=$(this);ToggleExperienceLevel(n);$(n).on("click",function(){ToggleExperienceLevel($(this))})});function ToggleExperienceLevel(n){var t=$(n).val();$(n).is(":checked")&&(getStatus.hide(),t=="isStudent"?$("#ddTalentConnectionRegistrationDegreeEarned").removeClass("form-control validate-excluded-field"):$("#ddTalentConnectionRegistrationDegreeEarned").addClass("form-control validate-excluded-field"),$("#"+t).show())}currentProgramFields=$("#CurrentProgram-fields");currentProgramFields.hide();$("#ddTalentConnectionRegistrationCurrentStudy").on("change",function(){var n=$(this).val(),t=$("#CurrentProgram-other").val();n==t?currentProgramFields.show():currentProgramFields.hide()});degreeMajorFields=$("#DegreeMajor-fields");degreeMajorFields.hide();$("#ddTalentConnectionRegistrationMajor").on("change",function(){var n=$(this).val(),t=$("#DegreeMajor-other").val();n==t?degreeMajorFields.show():degreeMajorFields.hide()});$("#ddTalentConnectionRegistrationSchool").on("change",function(){var n=$(this).val(),t=$("#School-other").val();n==t?schoolFields.show():schoolFields.hide()});function ReadOnlyDatepicker(){$(".dtp-date").attr("type")=="text"&&($("#startDateVal").attr("readonly",!0),$("#gradDateVal").attr("readonly",!0))}$(function(){$("i").addClass("col-xs-1").addClass("col-sm-1")});$(".BDC_CaptchaDiv").css("height","auto")}if(ComponentRegistry.EditProfile){var primaryJobSelected={items:[]},primaryCityListEdit={items:[]},checkedPrimaryJobEditCount=0,jobSelector="#selectPrimaryJobEdit .checkbox label input[type=checkbox]",citySelector="#selectCity .checkbox label input[type=checkbox]",checkboxPrimaryJobEdit=$(jobSelector),checkboxPrimaryCityEdit=$(citySelector),currentProgramFields=$("#CurrentProgram-fields");currentProgramFields.hide();counter=0;$("#ddTalentConnectionRegistrationCurrentStudy").on("change",function(){var n=$(this).val(),t=$("#CurrentProgram-other").val();n==t?currentProgramFields.show():currentProgramFields.hide()});degreeMajorFields=$("#DegreeMajor-fields");degreeMajorFields.hide();$("#ddTalentConnectionRegistrationMajor").on("change",function(){var n=$(this).val(),t=$("#DegreeMajor-other").val();n==t?degreeMajorFields.show():degreeMajorFields.hide()});TCCountry=$("#ddTalentConnectionRegistrationCountryOfSchool");$("#ddTalentConnectionRegistrationCountryOfSchool").on("change",function(){TalentConnectionCountryOnChange($(TCCountry))});schoolFields=$("#School-fields");schoolFields.hide();$("#ddTalentConnectionRegistrationSchool").on("change",function(){var n=$(this).val(),t=$("#School-other").val();n==t?schoolFields.show():schoolFields.hide()});$(function(){function w(n){var t=$(n).val();$(n).is(":checked")&&(p.hide(),t=="isStudent"?$("#ddTalentConnectionRegistrationDegreeEarnedTC").removeClass("form-control validate-excluded-field"):$("#ddTalentConnectionRegistrationDegreeEarnedTC").addClass("form-control validate-excluded-field"),$("#"+t).show())}var l,y,p,c;if(ReadOnlyDatepickerEditProfile(),typeof $("#IsSucceedingPageLoad")=="object"&&$("#IsSucceedingPageLoad").length>0&&$("#IsSucceedingPageLoad").val()==="True"?$("#ProfileUpdatesConfirmation").show():$("#ProfileUpdatesConfirmation").hide(),$("#ddTalentConnectionRegistrationCurrentStudy").val()==$("#CurrentProgram-other").val()&&($("#currentProgram-textBox").val($("#currentProgramOtherText").val()),$("#CurrentProgram-fields").show()),$("#ddTalentConnectionRegistrationMajor").val()==$("#DegreeMajor-other").val()&&($("#degreeMajor-textBox").val($("#degreeMajorOtherText").val()),$("#DegreeMajor-fields").show()),l=$("#ddTalentConnectionRegistrationCountryOfSchool").val(),l==""||l==undefined)$("#ddTalentConnectionRegistrationSchool").prop("disabled",!0);else{var e=$("#ddTalentConnectionRegistrationSchool"),v=$("#School-other"),a=$.trim(e.text());$.ajax({url:"/api/sitecore/EditProfileModule/GetUniversityByCountry",async:!1,type:"POST",data:JSON.stringify({countryId:$("#ddTalentConnectionRegistrationCountryOfSchool").val()}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){e.prop("disabled",!1);var t='<option value="">Select<\/option>';$("#ddTalentConnectionRegistrationSchool").empty();$.each(n,function(n,i){t=t+"<option value="+i.Id+">"+i.Name+"<\/option>"});t=t+"<option value="+v.prop("value")+">"+v.prop("name")+"<\/option>";e.html(t).selectpicker("refresh");$("#ddTalentConnectionRegistrationSchool option").each(function(){var t=$.trim($(this).text()),n;if(a.length>0){if(t.toLowerCase()==a.toLowerCase())return e.selectpicker("val",$(this).val()).selectpicker("refresh"),!1}else return schoolFields.hide(),!1;n=$("#School-other").val();e.selectpicker("val",n).selectpicker("refresh");schoolFields.show();$("#school-textBox").val(a)})}})}y=$("#formID").val();$(y).bootstrapValidator({fields:{EditProfileOldPassword:{trigger:"blur",validators:{notEmpty:{message:$("#OldPasswordlRequired").val()},callback:{message:$("#InvalidPassword").val(),callback:function(n){return n==""?!0:IsOldPasswordValid(n)?!0:($("#EditProfileOldPassword").data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#OldPasswordIncorrect").val()),!1)}}}},EditProfileCreatePassword:{trigger:"blur",validators:{notEmpty:{message:$("#CreatePasswordlRequired").val()},callback:{message:$("#InvalidPassword").val(),callback:function(n,t){var i=$("#EditProfileRetypePassword").val();return n==""?(i!=""&&t.updateStatus("EditProfileRetypePassword",t.STATUS_INVALID,"identical"),!0):IsPasswordValid(n)||i==""?IsPasswordValid(n)?IsOldPasswordValid(n)?($("#EditProfileCreatePassword").data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#PasswordSameAsPrevious").val()),!1):(i!=""&&t.updateStatus("EditProfileRetypePassword",i==n?t.STATUS_VALID:t.STATUS_INVALID,"identical"),!0):($("#EditProfileCreatePassword").data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#InvalidPassword").val()),!1):(t.updateStatus("EditProfileRetypePassword",t.STATUS_INVALID,"identical"),!1)}}}},EditProfileRetypePassword:{trigger:"blur",validators:{notEmpty:{message:$("#RetypePasswordlRequired").val()},callback:{message:$("#InvalidPassword").val(),callback:function(n,t){var i=$("#EditProfileCreatePassword").val(),r=IsPasswordValid(n);if(i!=""&&n!=""&&!r){if(i===n)return $("#EditProfileRetypePassword").data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#InvalidPassword").val()),!1;if(i!==n)return t.updateStatus("EditProfileRetypePassword",t.STATUS_INVALID,"identical"),!0}return n==""&&t.updateStatus("EditProfileRetypePassword",t.STATUS_VALID,"identical"),!0}},identical:{field:"EditProfileCreatePassword",message:$("#PasswordIdentical").val()}}},EditProfileFirstName:{trigger:"blur",validators:{notEmpty:{message:$("#FirstNameRequired").val()},callback:{message:$("#FirstNameAlphaOnly").val(),callback:function(n){return n==""?!0:IsValidInput(n,!0,!1,["\\p{Pd}"])}}}},EditProfileLastName:{trigger:"blur",validators:{notEmpty:{message:$("#LastNameRequired").val()},callback:{message:$("#LastNameAlphaOnly").val(),callback:function(n){return n==""?!0:IsValidInput(n,!0,!1,["\\p{Pd}"])}}}},ddBoxEditProfileCountryRegion:{validators:{notEmpty:{message:$("#CountryRegion").val()}}},ddBoxEditProfilePrefCountryRegion:{validators:{notEmpty:{message:$("#CountryRegion").val()}}},captchaInput:{trigger:"blur",validators:{notEmpty:{message:$("#CaptchaRequired").val()},callback:{message:$("#IncorrectCaptcha").val(),callback:function(){return value==""?!0:isCaptchaCorrect()}}}},ddTalentConnectionRegistrationDegreeEarnedTC:{validators:{callback:{message:$("#HighestDegreeEarnedRequired").val(),callback:function(n){return n==""||n=="Select"?!1:!0}}}}}});rebindUndoableCity();rebindUndoableIndustry();rebindUndoableSkills(GetRegisteredSkillSpecializationList());rebindUndoablePrimaryJobEdit();ResizeHorizontal();storeSelectedValues();updateCityIndustryPrimaryJobModal();hasPrimaryJobEdit();p=$(".getStatusTC");$(".Status").each(function(){var n=$(this);w(n);$(n).on("click",function(){w($(this))})});var o=GetAllSkillSpecialization(),t=GetRegisteredSkillSpecializationList(),s=$("#ss-maximum-message"),h=$("#ss-duplicated-message"),u=$("#ss-not-available-message"),i=$("#specialization-warning-message"),n=$("#skillsSpecialization"),f=$("#selected-skills"),b=$("#ddSkillSpecializationList"),r=[];if(o){for(c=0;c<o.length;c++)r.push(o[c].skillName);if(r&&(searchDropdown(document.getElementById("skillsSpecialization"),r),s||h||u||u||i)){$(".cta-arrow").on("click",function(){var c=[],l,v;for(storeSelectedValues(),t=GetRegisteredSkillSpecializationList(),l=0;l<r.length;l++)c.push(r[l].toLowerCase());if(n&&c&&f){c.sort(function(n,t){return n.toLowerCase().localeCompare(t.toLowerCase())});var a=c.indexOf(n.val().toLowerCase()),e=r[a],y=f.children();n.val()!==""&&(a>-1?t.indexOf(n.val().toLowerCase())===-1?t.length<5?e&&(v=o.filter(function(n){return n.skillName===e})[0].skillId,f.append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+e+'<label hidden value="'+e+'" id="'+v+'" /><\/span>'),y.children().closest(".undoable.target.comment").remove(),t.indexOf(n.val().toLowerCase())===-1&&t.push(e.toLowerCase())):(i.show(),s.show()):(i.show(),h.show()):(i.show(),u.show()));n.val("");rebindUndoableSkills(t);b.hide()}});n.on("keydown",function(e){var c,a,y;if((s||h||u||u||i)&&(s.hide(),h.hide(),u.hide(),i.hide(),e.which===13)){for(e.preventDefault(),c=[],storeSelectedValues(),t=GetRegisteredSkillSpecializationList(),a=0;a<r.length;a++)c.push(r[a].toLowerCase());if(n&&c&&f){c.sort(function(n,t){return n.toLowerCase().localeCompare(t.toLowerCase())});var v=c.indexOf(n.val().toLowerCase()),l=r[v],p=f.children();n.val()!==""&&(v>-1?t.indexOf(n.val().toLowerCase())===-1?t.length<5?l&&(y=o.filter(function(n){return n.skillName===l})[0].skillId,f.append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+l+'<label hidden value="'+l+'" id="'+y+'" /><\/span>'),p.children().closest(".undoable.target.comment").remove(),t.indexOf(n.val().toLowerCase())===-1&&t.push(l.toLowerCase())):(i.show(),s.show()):(i.show(),h.show()):(i.show(),u.show()));n.val("");rebindUndoableSkills(t);b.hide()}}})}}});function storeSelectedValues(){var n=[],t=[],i=[],r=[],u;primaryJobSelected.items=[];primaryCityListEdit.items=[];$("#selectedCities .target.comment").each(function(){$(this).css("display")!="none"&&(n.push($(this).children("label").attr("guid")),primaryCityListEdit.items.push({name:$(this).clone().find("a").remove().end().text(),value:$(this).children("label").attr("guid")}))});$("#selectedIndustries .target.comment").each(function(){$(this).css("display")!="none"&&t.push($(this).children("label").attr("guid"))});$("#selectedPrimaryJobEdit .target.comment").each(function(){$(this).css("display")!="none"&&(r.push($(this).children("label").attr("guid")),primaryJobSelected.items.push({name:$(this).children("label").attr("value"),value:$(this).children("label").attr("guid")}))});$("#selected-skills .target.comment").each(function(){$(this).css("display")=="none"||$(this).hasClass("undoable target comment")||i.push($(this).children("label").attr("value"))});u={cacheCities:n,cacheIndustries:t,cacheSkillSpecialization:i,cachePrimaryJobs:r};acncm.CacheManager.write("SelectedValues",JSON.stringify(u))}function updateCityIndustryPrimaryJobModal(){var i=acncm.CacheManager.read("SelectedValues"),t,n;if(typeof i!="undefined"){for(t=JSON.parse(i),cacheCities=t.cacheCities,cacheIndustries=t.cacheIndustries,cachePrimaryJobs=t.cachePrimaryJobs,n=0;n<=cacheCities.length-1;n++)$("#selectCity .checkbox label input:checkbox[value='"+cacheCities[n].toLowerCase()+"']").prop("checked",!0),checkMaxEdit(citySelector);for(n=0;n<=cacheIndustries.length-1;n++)$("#selectIndustry .checkbox label input:checkbox[value='"+cacheIndustries[n].toLowerCase()+"']").prop("checked",!0);for(checkedPrimaryJobEditCount=0,n=0;n<=cachePrimaryJobs.length-1;n++)$("#selectPrimaryJobEdit .checkbox label input:checkbox[value='"+cachePrimaryJobs[n].toLowerCase()+"']").prop("checked",!0),$("#selectedPrimaryJobEdit .target.comment").css("display","block"),checkMaxEdit(jobSelector)}}function GetRegisteredSkillSpecializationList(){var t=acncm.CacheManager.read("SelectedValues"),i=[],r,n;if(typeof t!="undefined"&&(r=JSON.parse(t),cacheSkillSpecialization=r.cacheSkillSpecialization,cacheSkillSpecialization))for(n=0;n<cacheSkillSpecialization.length;n++)i.push(cacheSkillSpecialization[n].toLowerCase());return i}$("#btnUploadResumeEdit").on("click",function(){var n=$("#EditProfileEmailAddress").val();$.ajax({url:"/api/sitecore/EditProfileModule/GetUploadLink",async:!1,type:"POST",data:JSON.stringify({email:n}),contentType:"application/json",success:function(n){uploadResume(n)},error:function(){alert("EMAIL VALIDATION ERROR")}})});function uploadResume(n){n==undefined||n==""?alert("Email address is required"):window.open(n,"_blank","toolbar=yes,scrollbars=yes,resizable=yes,top=200,left=300,width=700,height=500")}$("#EditProfileUpdateBtn").on("click",function(n){var f,e,o,c;if(hasPrimaryJobEdit()&&hasPrimaryJobEdit()!==undefined){var t={},l=$(this).closest("form"),i=$(l).data("bootstrapValidator");if(i.$submitButton=this,i.validate(),i.isValid()){t.UserProfileId=$("#ProfileID").val();t.SalutationItemId=$("#ddBoxEditProfileSalutation").val();t.FirstName=$("#EditProfileFirstName").val();t.LastName=$("#EditProfileLastName").val();t.Address1=$("#EditProfileAddress1").val();t.Address2=$("#EditProfileAddress2").val();t.CountryRegionItemId=$("#ddBoxEditProfileCountryRegion").val();t.StateProvinceItemId=$("#ddBoxEditProfileStateProvince").val();t.City=removeTags($("#EditProfileCity").val());t.UniversityItemId=$("#ddBoxEditProfileUniversity").val();t.JobPreferenceCountryRegionItemId=$("#ddBoxEditProfilePrefCountryRegion").val();t.JobPreferenceCityItemIds=GetPreferredSelectedCities();t.JobPreferenceIndustryItemIds=GetPreferredSelectedIndustries();t.JobPreferenceYearsOfExperienceItemId=$("#EditProfileExperienceDd").val();EditProfilePassword=$("#EditProfileCreatePassword").val();EditProfileOldPassword=$("#EditProfileOldPassword").val();var s=GetPreferredPrimaryJobs(),h=GetPreferredSkillSpecialization(),r={},u=$("#ddPreferredTravel").val();r.SkillValue=u?u.match(/\d+/)[0]:u;f=$("#UserEmailAddress").val();document.getElementById("divTalentConnection")?(c=GetProfileTalentConnectionValues(),e=JSON.stringify({Profile:t,ProfileTalentConnection:c,emailAddress:f,oldPassword:EditProfileOldPassword,newPassword:EditProfilePassword,profileSkillSpecializationList:h,profilePrimaryJobList:s,travelPercentage:r.SkillValue}),o="/api/sitecore/EditProfileModule/UpdateProfileWithTalentConnection"):(e=JSON.stringify({Profile:t,emailAddress:f,oldPassword:EditProfileOldPassword,newPassword:EditProfilePassword,profileSkillSpecializationList:h,profilePrimaryJobList:s,travelPercentage:r.SkillValue}),o="/api/sitecore/EditProfileModule/UpdateProfile");$.ajax({url:o,async:!1,type:"POST",data:e,dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error");typeof acncm!="undefined"&&acncm.Forms.detectedRegistrationFormError()},success:function(n){typeof acncm!="undefined"&&(jQuery("body").trigger("analytics-form-success"),acncm.Forms.detectedRegistrationFormComplete(),jQuery("#EditProfileChangePassword").data("clicked")&&(window.location.href="/Authentication/SignOut/SignOut"));n==!1&&($("#ProfileUpdatesConfirmation").hide(),jQuery("body").trigger("analytics-form-error"),alert("ERROR SAVING"))}});n.preventDefault()}else jQuery("body").trigger("analytics-form-error")}else jQuery("body").trigger("analytics-form-error");n.preventDefault()});$("#EditProfileChangeEmail").on("click",function(){window.location=$("#ChangeEmailLink").val();event.preventDefault()});function IsPasswordValid(n){var t=!1;return $.ajax({url:"/api/sitecore/EditProfileModule/IsPasswordValid",type:"POST",data:JSON.stringify({Password:n}),contentType:"application/json",async:!1,error:function(){alert("PASSWORD VALIDATION ERROR")},success:function(n){t=n.ValidatedPassword}}),t}function IsOldPasswordValid(n){var t=!1;return $.ajax({url:"/api/sitecore/EditProfileModule/IsOldPasswordCorrect",type:"POST",data:JSON.stringify({oldPassword:n,emailAddress:$("#EditProfileEmailAddress").val()}),contentType:"application/json",async:!1,error:function(){alert("OLD PASSWORD VALIDATION ERROR")},success:function(n){t=n.isOldPasswordValidated}}),t}function AlphaOnly(n){var t=!1;return $.ajax({url:"/api/sitecore/EditProfileModule/IsAlphaCharacters",type:"POST",data:JSON.stringify({AlphaCharacters:n}),contentType:"application/json",async:!1,error:function(){alert("ALPHA VALIDATION ERROR")},success:function(n){t=n.AlphaOnly}}),t}function IsValidInput(n,t,i,r){var u=!1;return $.ajax({url:"/api/sitecore/EditProfileModule/IsValidDataInput",type:"POST",data:JSON.stringify({data:n,includeLetters:t,includeNumbers:i,selectedSpecialCharacters:r}),contentType:"application/json",async:!1,error:function(){alert("ALPHA VALIDATION ERROR")},success:function(n){u=n.IsValidInput}}),u}$("#EditProfileChangePassword").on("click",function(){var i=$(".col-xs-12.col-sm-6"),t,n;i.each(function(){$(this).attr({style:"z-index:1;"})});t=$(".col-sm-5.validatorMessage");t.each(function(){$(this).attr({style:"outline-style:none;"})});n=document.getElementById("EditProfilePasswordContainer");n.style.display=n.style.display=="block"?"none":"block";$(this).hide();$(this).data("clicked",!0)});$("#btnCityUpdate").on("click",function(){var t,n;for($("#selectedCities").empty(),t=0,n=0;n<primaryCityListEdit.items.length;n++)primaryCityListEdit.items[n].isPending===!0?(primaryCityListEdit.items.splice(n,1),n--):($("#selectedCities").append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+primaryCityListEdit.items[n].name+'<label hidden guid="'+primaryCityListEdit.items[n].value+'" value="'+primaryCityListEdit.items[n].name+'">'+primaryCityListEdit.items[n].name+"<\/label><\/span>"),t=t+1);rebindUndoableCity();t>0?$("#modalCities").text($("#RefineResultsByCityLabel").val()):$("#modalCities").text($("#SelectCitiesLinkLabel").val())});$("#ModalRegCities .modal-footer .selection-reseter").on("click",function(){$("#ModalRegCities input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$("#ModalRegCities input[type=checkbox]").prop("disabled",!1);for(var n=0;n<primaryCityListEdit.items.length;n++)primaryCityListEdit.items[n].isPending=!0});$("#btnIndustryUpdate").on("click",function(){$("#selectedIndustries").empty();$("#selectIndustry .checkbox input[type=checkbox]:checked").each(function(){$("#selectedIndustries").append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+$(this).attr("name")+'<label hidden guid="'+$(this).attr("value")+'" value="'+$(this).attr("name")+'">'+$(this).attr("name")+"<\/label><\/span>")});rebindUndoableIndustry()});$("#ModalRegIndustries .modal-footer .selection-reseter").on("click",function(){$("#ModalRegIndustries input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)})});$("#btnPrimaryJobUpdate").on("click",function(){$("#selectedPrimaryJobEdit").empty();for(var n=0;n<primaryJobSelected.items.length;n++)primaryJobSelected.items[n].isPending===!0?(primaryJobSelected.items.splice(n,1),n--):$("#selectedPrimaryJobEdit").append('<span class="target comment"><a href="#" class="remove-selected-filter">X<\/a>'+primaryJobSelected.items[n].name+'<label hidden guid="'+primaryJobSelected.items[n].value+'" value="'+primaryJobSelected.items[n].name+'">'+primaryJobSelected.items[n].name+"<\/label><\/span>");hasPrimaryJobEdit();rebindUndoablePrimaryJobEdit();setTimeout(function(){$("#primaryJobEditErrorMessage").trigger("focus")},0)});$("#ModalRegPrimaryJobs .modal-footer .selection-reseter").on("click",function(){$("#ModalRegPrimaryJobs input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$("#ModalRegPrimaryJobs input[type=checkbox]").prop("disabled",!1);for(var n=0;n<primaryJobSelected.items.length;n++)primaryJobSelected.items[n].isPending=!0});checkboxPrimaryJobEdit.on("click",function(){OrderSelection($(this),primaryJobSelected.items,jobSelector)});checkboxPrimaryCityEdit.on("click",function(){OrderSelection($(this),primaryCityListEdit.items,citySelector)});$("#ModalRegCities .modal-header .close").on("click",function(){var r=$("#selectedCities .target.comment"),t=$("#ModalRegCities input[type=checkbox]"),n;for($("#ModalRegCities input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)}),$(r).each(function(){var n=$(this).children("label").attr("guid");if($(this).css("display")!=="none")for(i=0;i<t.length;i++)if(n===$(t[i]).attr("value")){$(t[i]).prop("checked",!0);break}}),n=0;n<primaryCityListEdit.items.length;n++)$("#ModalRegCities input[type=checkbox][value='"+primaryCityListEdit.items[n].value+"']").prop("checked")?primaryCityListEdit.items[n].isPending=!1:(primaryCityListEdit.items.splice(n,1),n--);checkMaxEdit(citySelector)});$("#ModalRegPrimaryJobs .modal-header .close").on("click",function(){checkMaxEdit(jobSelector);$("#ModalRegPrimaryJobs input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)});$("#ModalRegPrimaryJobs input[type=checkbox]").each(function(){var n=$("#selectedPrimaryJobEdit [class='target comment']"),r=$(this).attr("name"),t="";for(i=0;i<n.length;i++)if($(n[i]).css("display")!=="none")if(t=$(n[i]).children("label").attr("value"),r==t){$(this).prop("checked",!0);checkMaxEdit(jobSelector);break}else $(this).prop("checked",!1);setTimeout(function(){checkMaxEdit(jobSelector)},50)});for(var n=0;n<primaryJobSelected.items.length;n++)$("#ModalRegPrimaryJobs input[type=checkbox][value='"+primaryJobSelected.items[n].value+"']").prop("checked")?primaryJobSelected.items[n].isPending=!1:(primaryJobSelected.items.splice(n,1),n--)});$("button.filter-option").attr("role","combobox");function hasPrimaryJobEdit(){var t=$("#primaryJobEditErrorMessage"),r=$("#selectedPrimaryJobEdit .target.comment"),n,i;return r!=undefined?(n=!1,$(r).each(function(){if(i=$(this).attr("style"),i==undefined)return n=!0,!1;i.indexOf("display: block")>=0&&$(this).hasClass("undoable")==!1&&(n=!0)}),n?($("#primaryJobId").removeClass("has-feedback").removeClass("has-error"),t.hide(),!0):($("#primaryJobId").addClass("has-feedback").addClass("has-error"),t.show(),setTimeout(function(){$("#RegPrimaryJobEdit").trigger("focus")},0),!1)):(t.show(),!1)}function EditCountryRegionOnChange(n){var i=n.value,t=$("#ddBoxEditProfileStateProvince"),r=$("#ddBoxEditProfileUniversity");i!=""?$.ajax({url:"/api/sitecore/EditProfileModule/GetStateProvinceByCountry",async:!1,type:"POST",data:JSON.stringify({CountryRegion:i}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){var i;typeof n=="undefined"||n[0].Id==""?(i=' <option value="NotApplicable">'+$("#NotApplicable").val()+"<\/option>",t.prop("disabled",!0)):(i=' <option value="">Select<\/option>',t.prop("disabled",!1),$.each(n,function(n,t){i=i+"<option value="+t.Id+">"+t.Name+"<\/option>"}));t.html(i).selectpicker("refresh")}}):(t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh"),r.prop("disabled",!0).selectpicker("val","").selectpicker("refresh"))}function EditStateOnChange(n){var i=n.value,t=$("#ddBoxEditProfileUniversity");i!=""?$.ajax({url:"/api/sitecore/EditProfileModule/GetUniversities",async:!1,type:"POST",data:JSON.stringify({StateProvince:i}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){t.prop("disabled",!1);var i='<option value="">Select<\/option>';t.empty();$.each(n,function(n,t){i=i+"<option value="+t.Id+">"+t.Name+"<\/option>"});t.html(i).selectpicker("refresh")}}):t.prop("disabled",!0).selectpicker("val","").selectpicker("refresh")}function checkboxIsCheckedReg(n,t){n.checked?counter++:counter--;setTimeout(function(){checkMaxEdit(t)},100)}function OrderSelection(n,t,i){var r=n,u;if(checkboxIsCheckedReg(r[0],i,r.parents().eq(3).attr("id")),r.prop("checked"))if(t.length>0)if(t.filter(function(n){return n.value===r[0].value}).length===0)t.push({name:r[0].name,value:r[0].value,isPending:!1});else for(u=0;u<t.length;u++)t[u].value===r[0].value&&(t.splice(u,1),t.push({name:r[0].name,value:r[0].value,isPending:!1}));else t.push({name:r[0].name,value:r[0].value,isPending:!1});else for(u=0;u<t.length;u++)t[u].value===r[0].value&&(t[u].isPending=!0)}function GetEditProfileCitiesByCountry(n){var i="",t="",u=$("#selectCity"),r;u.empty();$("#selectedCities").empty();$("#modalCities").text($("#SelectCitiesLinkLabel").val());r=n.value;r!=""&&$.ajax({url:"/api/sitecore/EditProfileModule/GetCitiesByCountry",async:!1,type:"POST",data:JSON.stringify({CountryRegion:r}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){n==0?t==0&&($("#modalCities").addClass("disable-pointers"),IsIE()&&$("#modalCities").replaceWith("<span class='col-sm-12 disable-pointers' id='modalCities'>"+$("#modalCities").text()+"<\/span>")):IsIE()?$("#modalCities").replaceWith("<a href='#' id='modalCities' class='cta col-sm-12' data-target='#cities' data-toggle='modal'>"+$("#modalCities").text()+"<\/a>"):$("#modalCities").removeClass("disable-pointers");last=$(n).length;rows=18;$.each(n,function(n,r){i="<div class='checkbox'><label><input type='checkbox' name='"+r.Name+"' value='"+r.Id+"' />"+r.Name+"<\/label><\/div>";t+=(n+1)%rows==1?'<div class="col-sm-4">'+i:n+1==last||(n+1)%rows==0?i+"<\/div>":i})}});primaryCityListEdit.items=[];u.append(t);checkboxPrimaryCityEdit=$("#selectCity .checkbox label input[type=checkbox]");checkboxPrimaryCityEdit.on("click",function(){OrderSelection($(this),primaryCityListEdit.items,citySelector)})}function GetPreferredSelectedCities(){var n=[],t;return $("#selectedCities .target.comment").each(function(){$(this).css("display")!="none"&&n.push($(this).children("label").attr("guid"))}),t="",n.length>0&&(t=n.join("|")),t}function GetPreferredSelectedIndustries(){var n=[],t;return $("#selectedIndustries .target.comment").each(function(){var i=$(this),t;i.css("display")!=="none"&&(t=i.children("label").attr("guid"),t&&t!==""&&n.push(t))}),t="",n.length>0&&(t=n.join("|")),t}function GetPreferredPrimaryJobs(){var n=[],t="";return $("#selectedPrimaryJobEdit .target.comment").each(function(){var i=$(this),t;i.css("display")!=="none"&&(t=i.children("label").attr("guid"),t&&t!==""&&n.push(t))}),n.length>0&&(t=n.join("|")),t}function rebindUndoableCity(){$("#selectedCities a.remove-selected-filter").off();$("#selectedCities a.remove-selected-filter").undoable();$("#selectedCities .remove-selected-filter").on("click",function(){$(".undoable.target.comment").css("display","inline-block");$(".undo").css("padding-right","10px");var n=$(this).parent().find("label").attr("guid");$("#ModalRegCities input[value="+n+"]:checked").each(function(){$(this).prop("checked",!1);for(var n=0;n<primaryCityListEdit.items.length;n++)primaryCityListEdit.items[n].name===$(this)[0].name&&(primaryCityListEdit.items.splice(n,1),n--);checkMaxEdit(citySelector)});$("#selectedCities .undo a").on("click",function(){var n=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+n+'"]').attr("guid");$("#ModalRegCities input[value="+t+"]:not(:checked)").each(function(){$(this).prop("checked",!0);primaryJobSelected.items.push({name:$(this)[0].name,value:$(this)[0].value,isPending:!1});checkMaxEdit(citySelector)})})})}function rebindUndoableIndustry(){$("#selectedIndustries a.remove-selected-filter").off();$("#selectedIndustries a.remove-selected-filter").undoable();$("#selectedIndustries .remove-selected-filter").on("click",function(){$(".undoable.target.comment").css("display","inline-block");$(".undo").css("padding-right","10px");var n=$(this).parent().find("label").attr("guid");$("#ModalRegIndustries input[value="+n+"]:checked").each(function(){$(this).prop("checked",!1)});$("#selectedIndustries .undo a").on("click",function(){var n=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+n+'"]').attr("guid");$("#ModalRegIndustries input[value="+t+"]:not(:checked)").each(function(){$(this).prop("checked",!0)})})})}function rebindUndoablePrimaryJobEdit(){var n=$("#selectedPrimaryJobEdit a.remove-selected-filter");n.off();n.undoable();n.on("click",function(){$(".undoable.target.comment").css("display","inline-block");$(".undo").css("padding-right","10px");var n=$(this).parent().find("label").attr("guid");$("#ModalRegPrimaryJobs input[value="+n+"]:checked").each(function(){$(this).prop("checked",!1);for(var n=0;n<primaryJobSelected.items.length;n++)primaryJobSelected.items[n].name===$(this)[0].name&&(primaryJobSelected.items.splice(n,1),n--);checkMaxEdit(jobSelector)});hasPrimaryJobEdit();$("#selectedPrimaryJobEdit .undo a").on("click",function(){var n=$(this).closest(".undo-changes").find("i").text().trim(),t=$(".selected-filter-container").children("span").find('label[value*="'+n+'"]').attr("guid");$("#ModalRegPrimaryJobs input[value="+t+"]:not(:checked)").each(function(){$(this).prop("checked",!0);primaryJobSelected.items.push({name:$(this)[0].name,value:$(this)[0].value,isPending:!1});checkMaxEdit(jobSelector)});hasPrimaryJobEdit()})})}function GetAllSkillSpecialization(){var t=[],r=[],i=[],n=acncm.CacheManager.readSession("SkillsSpecialization");if(typeof n!="undefined")n=JSON.parse(n);else return $.ajax({url:"/api/sitecore/EditProfileModule/GetAllSkillSpecialization",type:"POST",async:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(u){var e,f,o;if(u){for(e=Object.keys(u),t=Object.keys(u).map(function(n){return u[n]}),f=0;f<e.length;f++)e&&t&&(o={skillId:e[f],skillName:t[f]},o&&i.push(o));i&&(i.sort(function(n,t){return n.skillName.toLowerCase().localeCompare(t.skillName.toLowerCase())}),acncm.CacheManager.writeSession("SkillsSpecialization",JSON.stringify(i)),r=acncm.CacheManager.readSession("SkillsSpecialization"),typeof r!="undefined"&&(n=JSON.parse(r)))}else return t=null},error:function(){i=null}}),n;return n}function searchDropdown(n,t){function u(n){n&&(f(n),i>=n.length&&(i=0),i<0&&(i=n.length-1),n[i]&&n[i].classList.add("search-dropdown-active"))}function f(n){if(n)for(var t=0;t<n.length;t++)n[t]&&n[t].classList.remove("search-dropdown-active")}function r(t){var u=$(".search-dropdown-items"),r,i;if(u)for(r=0;r<u.length;r++)i=u[r],t!=i&&t!=n&&i&&($(i).children().remove(),$(i).hide())}var i;n&&(n.addEventListener("input",function(){$this=$(this);var u,f,e,o=$this.val();if(r(),!o)return!1;if(i=-1,u=$("#ddSkillSpecializationList"),u&&(u.addClass("search-dropdown-items"),u.show()),t){for(e=0;e<t.length;e++)if(t[e].substr(0,o.length).toUpperCase()===o.toUpperCase()&&(f=document.createElement("DIV"),f.innerHTML="<strong>"+t[e].substr(0,o.length)+"<\/strong>",f.innerHTML+=t[e].substr(o.length),f.innerHTML+="<input type='hidden' value='"+t[e]+"'>",f.addEventListener("click",function(){n.value=this.innerText;$("#skillsSpecialization").trigger("focus");r()}),u.append(f),u.children().length===5))break;f||$(u).hide()}}),n.addEventListener("keydown",function(n){var t=$("#ddSkillSpecializationList");t&&(t=t.children(),n.keyCode==40?(n.preventDefault(),i++,u(t)):n.keyCode==38?(n.preventDefault(),i--,u(t)):n.keyCode==13&&(n.preventDefault(),i>-1&&t[i]&&t[i].click()))}));document.addEventListener("click",function(n){r(n.target)})}}$(".module-body.selection-reseter.cta").on("keyup",function(n){n.keyCode==13&&$(this).trigger("click")});$("#link-modal-industries").on("keydown",function(n){n.which==9&&$(".modal.fade.row").hasClass("in")&&(n.preventDefault(),$(this).is(":focus")&&$("#industries").trigger("focus"))});$("#RegPrimaryJobEdit").on("keydown",function(n){n.which==9&&$(".modal.fade.row").hasClass("in")&&(n.preventDefault(),$(this).is(":focus")&&$("#primary-jobedit").trigger("focus"))});ComponentRegistry.SignIn&&(SocialEmail=$("#SignInEmailAdd").val(),SocialEmail!=""?($("#CareersRegistration_EmailAddress").val(SocialEmail),$("#CareersRegistration_EmailAddress").attr("readonly","readonly")):$("#CareersRegistration_EmailAddress").prop("readonly",!1));$(window).on("resize",function(){ResizeHorizontal()});if(ComponentRegistry.CareersNav){$(function(){$(window).scrollTop(0);var n=window.location.hash;updateTopNavBar(n);$(document).on("click",".profile-edit h2 a[data-toggle='tab']",function(t){var i=$(".profile-edit h2 span[data-toggle='tab']"),r=i.data("href");i.replaceWith("<a data-toggle='tab' analytics-no-content-click='true' data-analytics-link-name='"+i.text()+"' data-analytics-content-type='cta' href='"+r+"' id='"+i.attr("id")+"'>"+i.text()+"<\/a>");$(this).replaceWith("<span data-toggle='tab' data-href='"+$(this).attr("href")+"' id='"+$(this).attr("id")+"'>"+$(this).text()+"<\/span>");n=t.target.hash;n!=null&&n!=""&&window.location.replace(n);$(window).scrollTop(0);updateTopNavBar(n)});SelectTab(n)});function SelectTab(n){n!=null&&n!=""?(n=n.replace("#",""),n="#Nav"+n):n="#NavJobs";$(n).length<=0&&(n="#NavJobs");var t=$(n)[0].outerHTML;t=t.replace(/<a/g,"<span");t=t.replace(/\/a>/g,"/span>");$(n)[0].outerHTML=t;$(n).trigger("click")}function updateTopNavBar(n){var u=$("#loginPopoverContainer #loginPopoverContent .authenticated ul li:nth-child(1) a, #LoginPopoverTriggerContainer .popover .popover-content .authenticated ul li:nth-child(1) a"),f=$("#loginPopoverContainer #loginPopoverContent .authenticated ul li:nth-child(2) a, #LoginPopoverTriggerContainer .popover .popover-content .authenticated ul li:nth-child(2) a"),e=$("#loginPopoverContainer #loginPopoverContent .authenticated ul li:nth-child(3) a, #LoginPopoverTriggerContainer .popover .popover-content .authenticated ul li:nth-child(3) a"),t=$("#loginPopoverContainer #loginPopoverContent .authenticated ul li:nth-child(1) span, #LoginPopoverTriggerContainer .popover .popover-content .authenticated ul li:nth-child(1) span"),i=$("#loginPopoverContainer #loginPopoverContent .authenticated ul li:nth-child(2) span, #LoginPopoverTriggerContainer .popover .popover-content .authenticated ul li:nth-child(2) span"),r=$("#loginPopoverContainer #loginPopoverContent .authenticated ul li:nth-child(3) span, #LoginPopoverTriggerContainer .popover .popover-content .authenticated ul li:nth-child(3) span");n=="#Jobs"?(u=u.replaceWith("<span data-href='"+u.attr("href")+"'>"+u.html()+"<\/span>"),i=i.replaceWith("<a class='user-link' href="+i.data("href")+">"+i.html()+"<\/a>"),r=r.replaceWith("<a class='user-link' href="+r.data("href")+">"+r.html()+"<\/a>")):n=="#EditProfile"?(f=f.replaceWith("<span data-href='"+f.attr("href")+"'>"+f.html()+"<\/span>"),r=r.replaceWith("<a class='user-link' href="+r.data("href")+">"+r.html()+"<\/a>"),t=t.replaceWith("<a class='user-link' href="+t.data("href")+">"+t.html()+"<\/a>")):n=="#Subscription"&&(e=e.replaceWith("<span data-href='"+e.attr("href")+"'>"+e.html()+"<\/span>"),i=i.replaceWith("<a class='user-link' href="+i.data("href")+">"+i.html()+"<\/a>"),t=t.replaceWith("<a class='user-link' href="+t.data("href")+">"+t.html()+"<\/a>"))}}if(ComponentRegistry.changeEmailModule){$(function(){var n=$("#changeEmailForm");$(n).bootstrapValidator({fields:{newEmail:{trigger:"blur",validators:{emailAddress:{message:$("#invalidNewEmailFormat").val()},notEmpty:{message:$("#requiredNewEmail").val()},different:{field:"oldEmail",message:$("#identicalNewOldEmail").val()},callback:{message:$("#checkNewEmailExist").val(),callback:function(n){return n==""||n!=""&&n==$("#oldEmail").val()?!0:!ChangeEmailEmailExists()}}}},captchaInput:{trigger:"blur",validators:{notEmpty:{message:$("#requiredCaptcha").val()},callback:{message:$("#invalidCaptcha").val(),callback:function(n){return n==""?!0:ChangeEmailCaptVal=isCaptchaValid()}}}}}})});$("#ChangeEmailButton").on("click",function(){var n=$("#changeEmailForm").data("bootstrapValidator"),t=$('input[name="captchaInput"]').val();return n.$submitButton=this,n.validate(),n.isValid()&&ChangeEmailCaptVal?($("#changeEmailForm input, #changeEmailForm select").each(function(){var n=$(this);n.attr("name")=="oldEmail"&&(oEmail=n.val());n.attr("name")=="newEmail"&&(nEmail=n.val())}),$.ajax({url:"/api/sitecore/ChangeEmailModule/ChangeEmailPost",type:"POST",data:JSON.stringify({oldEmail:oEmail,newEmail:nEmail,_captchaInput:t,_captchaInstanceId:InstanceCaptId}),contentType:"application/json",async:!1,error:function(n){alert(n);jQuery("body").trigger("analytics-form-error")},success:function(n){!isNaN(parseFloat(n))&&isFinite(n)?(jQuery("body").trigger("analytics-form-success"),window.location.assign("/Authentication/SignOut/SignOut?returnUrl="+$("#changeEmailForm").attr("data-by-success-change"))):alert(n)}})):jQuery("body").trigger("analytics-form-error"),"no data"});$("#CancelButton").on("click",function(){window.history.go(-1)});function isCaptchaValid(){var t=$('input[name="captchaInput"]').val(),r=$("#CaptchaID").val(),u=$("#CaptInstance").val(),i=$("#oldEmail").val(),n=!1;return $.ajax({url:"/api/sitecore/ChangeEmailModule/isCaptchaValid",type:"POST",data:JSON.stringify({oldEmail:i,_captchaInput:t,_captchaInstanceId:InstanceCaptId}),contentType:"application/json",async:!1,error:function(){alert("Captcha Error")},success:function(t){n=t.CorrectCaptcha;n||CEmailCID.ReloadImage()}}),n}function ChangeEmailEmailExists(){var t=$("#newEmail").val(),i=$("#oldEmail").val(),n=!1;return $.ajax({url:"/api/sitecore/ChangeEmailModule/IsEmailExists",type:"POST",data:JSON.stringify({oldEmail:i,emailAddress:t}),contentType:"application/json",async:!1,error:function(){alert("Error in IsEmailExists.")},success:function(t){n=t.blnExists}}),n}}if(ComponentRegistry.ClientAccount){function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}$(function(){var n=$("#createPassword");$(n).bootstrapValidator({fields:{emailAddress:{trigger:"blur",validators:{emailAddress:{message:$("#invalidEmailAdd").val()},notEmpty:{message:$("#emailRequired").val()},callback:{message:$("#ClientAccountSetupEmailAlreadyRegistered").val(),callback:function(n){return n==""?!0:!ClientAccountSetupIsEmailRegistered()}}}},inputPassword:{trigger:"blur",validators:{notEmpty:{message:$("#passwordRequired").val()},callback:{message:$("#passwordMessage").val(),callback:function(n){return n==""?!0:n!=""&&n.length>=8?IsInputPasswordValid():void 0}}}},confirmPassword:{trigger:"blur",validators:{notEmpty:{message:$("#retypeRequired").val()},identical:{field:"inputPassword",message:$("#notSamePassword").val()},callback:{message:$("#retypeMessage").val(),callback:function(n){return n==""?!0:n.length>=8&&n!=""?IsRetypePasswordValid():void 0}}}}}})});$("#btnclientcreatePassword").on("click",function(n){var t=$("#createPassword").data("bootstrapValidator"),u,i,r,f;return t.$submitButton=this,t.validate(),t.isValid()?($("#createPassword input, #createPassword select").each(function(){var n=$(this);n.attr("name")=="inputPassword"&&(InputPwd=n.val());n.attr("name")=="emailAddress"&&(emailAdd=n.val())}),u=getParameterByName("invite"),i=$('input[name="invitationID"]').val(),u.length>0?$.ajax({url:"/api/sitecore/ClientAccountSetup/ClientAccountPost",type:"POST",data:JSON.stringify({inputPassword:InputPwd,emailAddress:emailAdd,invitationId:i}),contentType:"application/json",async:!1,dataType:"json",success:function(t){var i=t.returnPasswordCreated;i?(window.location=ClientIndexRedirect,jQuery("body").trigger("analytics-form-success"),n.preventDefault()):(alert("Failed to create password"),i="no data")},error:function(){jQuery("body").trigger("analytics-form-error");window.location.assign("https://www.accenture.com/");n.preventDefault()}}):(r="no data",f=$("input[name=inputPassword]").val(),$.ajax({url:"/api/sitecore/ClientAccountSetup/UpdatePassword",type:"POST",data:JSON.stringify({emailAddress:emailAdd,newPassword:f,invitationId:i}),dataType:"json",type:"POST",contentType:"application/json; charset=utf-8",async:!1,success:function(n){n?window.location.href=ClientIndexRedirect:r="No data"},error:function(n,t,i){r=i;jQuery("body").trigger("analytics-form-error")}}))):jQuery("body").trigger("analytics-form-error"),"Error"});function IsInputPasswordValid(){var t=$('input[name="inputPassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ClientAccountSetup/IsPasswordValid",type:"POST",data:JSON.stringify({newPassword:t}),contentType:"application/json",async:!1,success:function(t){return n=t.returnInputPassword},error:function(){alert("Input Password Error Validation")}}),n}function IsRetypePasswordValid(){var t=$('input[name="confirmPassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ClientAccountSetup/IsPasswordValid",type:"POST",data:JSON.stringify({newPassword:t}),contentType:"application/json",async:!1,success:function(t){return n=t.returnInputPassword},error:function(){alert("Retype Password Error Validation")}}),n}function ClientAccountSetupIsEmailRegistered(){var i=$('input[name="emailAddress"]').val(),n=!0,t="request";return getParameterByName("invite").length>0&&(t="invite"),$.ajax({url:"/api/sitecore/ClientAccountSetup/IsEmailRegistered",type:"POST",data:JSON.stringify({emailAddress:i,requestType:t,InvitationId:$('input[name="invitationID"]').val()}),contentType:"application/json",async:!1,success:function(t){return n=t.blnIsRegistered},error:function(){alert("Email Input Error Validation")}}),n}}if(ComponentRegistry.ClientEditProfile){function editProfile_visibility(n,t){var i=document.getElementById(n);i.style.display=t=="hide"?"none":"block"}editProfile_visibility("clientProfileLeftNav","hide");editProfile_visibility("head_editprofilepage","hide");editProfile_visibility("head_subscriptionpage","hide");$(window).on("load resize",function(){isMobile()?(editProfile_visibility("head_editprofilepage","show"),editProfile_visibility("head_subscriptionpage","show")):editProfile_visibility("clientProfileLeftNav","show")});function editProfile_updateNavUser(){profileFirstName=document.getElementById("EditProfileFirstName").value;profileLastName=document.getElementById("EditProfileLastName").value;varUserDisplayName=profileFirstName&&profileFirstName.length!==0?profileFirstName+" "+profileLastName:"";varUserDisplayName&&varUserDisplayName.length!==0&&(document.getElementById("navUserDisplayUserName")==undefined?document.getElementById("navsignInLink")==undefined||(document.getElementById("navsignInLink").innerHTML=varUserDisplayName):document.getElementById("navUserDisplayUserName").innerHTML=document.getElementById("block-header-new")?"":varUserDisplayName)}$(function(){var r=$("#defaultForm"),n,u,t,i;$(window).scrollTop(0);n=window.location.hash;u="";$(document).on("click",".client h2 a[data-toggle='tab']",function(t){var i=$(".client h2 span[data-toggle='tab']"),r=i.data("href");i.replaceWith("<a data-toggle='tab' href='"+r+"' id='"+i.attr("id")+"'>"+i.text()+"<\/a>");$(this).replaceWith("<span data-toggle='tab' data-href='"+$(this).attr("href")+"' id='"+$(this).attr("id")+"'>"+$(this).text()+"<\/span>");n=t.target.hash;n!=null&&n!=""&&window.location.replace(n);$(window).scrollTop(0)});SelectNav(n);$(r).bootstrapValidator({fields:{EditProfileOldPassword:{trigger:"blur",validators:{callback:{message:$("#ClientEditOldPasswordIncorrectValidation").val(),callback:function(n){return n==""?!0:n!=""&&n.length>=8?ClientEditProfileIsInputOldPasswordValid(!1):void 0}}}},EditProfileCreatePassword:{trigger:"blur",validators:{callback:{message:$("#ClientEditPasswordRequirementValidation").val(),callback:function(n){return n==""?!0:n!=""&&n.length>=8?ClientEditProfileIsInputOldPasswordValid(!0)?($("#EditProfileCreatePassword").data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#ClientEditPasswordSameAsPrevious").val()),!1):ClientEditProfileIsInputNewPasswordValid():($("#EditProfileCreatePassword").data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#ClientEditPasswordRequirementValidation").val()),!1)}}}},EditProfileRetypePassword:{trigger:"blur",validators:{callback:{message:$("#ClientEditPasswordRequirementValidation").val(),callback:function(n){return n==""?!0:n!=""&&n.length>=8?ClientEditProfileIsInputNewRetypePasswordValid():void 0}}}}}});editProfile_updateNavUser();t=$("#change-email-link");i=$("#change-email-link-container");t.find("a").text()!=""&&(i.html(t.html()),i.find("a").addClass("cta visible-xs hover-underline"))});$("#EditProfileUpdateBtn").on("click",function(n){var t={},r=$(this).closest("form"),i=$(r).data("bootstrapValidator");i.$submitButton=this;i.validate();$(".validatorMessage .outer-message").removeAttr("style");i.isValid()?(t.FirstName=$("#EditProfileFirstName").val(),t.LastName=$("#EditProfileLastName").val(),EditProfilePassword=$("#EditProfileCreatePassword").val(),EditProfileOldPassword=$("#EditProfileOldPassword").val(),EditEmailAddress=$("#EditProfileEmailAddress").val(),$("#message-container").empty(),$.ajax({url:"/api/sitecore/ClientEditProfileModule/UpdateProfile",async:!1,type:"POST",data:JSON.stringify({Profile:t,emailAddress:EditEmailAddress,oldPassword:EditProfileOldPassword,newPassword:EditProfilePassword}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i);jQuery("body").trigger("analytics-form-error")},success:function(n){var t="<div><b>";$(n).each(function(){t+=this.message});t+="<\/b><\/div>";$("#message-container").append(t);jQuery("body").trigger("analytics-form-success")}})):jQuery("body").trigger("analytics-form-error");n.preventDefault()});$("#updatePasswordBtn").on("click",function(){EditProfilePassword=$("#EditProfileCreatePassword").val();EditProfileOldPassword=$("#EditProfileOldPassword").val();$.ajax({url:"/api/sitecore/ClientEditProfileModule/ChangePassword",async:!1,type:"POST",data:JSON.stringify({oldPassword:EditProfileOldPassword,newPassword:EditProfilePassword}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){n==!0?(alert("Successfully changed password"),$(".modal").modal("hide")):alert("Invalid password")}})});$("#EditProfileChangePassword").on("click",function(){var t=$(".col-xs-12.col-sm-6"),n;t.each(function(){$(this).attr({style:"z-index:1;"})});n=$(".col-sm-5.validatorMessage");n.each(function(){$(this).attr({style:"outline-style:none;"})});$.getJSON("/api/sitecore/ClientEditProfileModule/LinkedInHasProfile",function(n){if(n){var t=document.getElementById("EditProfilePasswordContainer");t.style.display=t.style.display=="block"?"none":"block";$("#EditProfileChangePasswordDiv").hide()}else $("#clientEditChangePasswordModal").detach().appendTo("#ui-wrapper").modal("show")})});$("#btnCreatePassword").on("click",function(){$.ajax({url:"/api/sitecore/ClientEditProfileModule/CreateUserProfile",async:!1,type:"POST",data:JSON.stringify({password:$("#CreatePassword").val()}),dataType:"json",contentType:"application/json",error:function(n,t,i){alert(i)},success:function(n){$("#message-container-create-password").append(n.message)}})});$("div.client.profile-edit .form-section .nav a").removeAttr("style class").css("text-decoration","none");function ClientEditProfileIsInputOldPasswordValid(n){var i=n?$('input[name="EditProfileCreatePassword"]').val():$('input[name="EditProfileOldPassword"]').val(),r=$('input[name="EditProfileEmailAddress"]').val(),t=!1;return $.ajax({url:"/api/sitecore/ClientEditProfileModule/ValidateOldPassword",type:"POST",data:JSON.stringify({oldPassword:i,emailAddress:r}),contentType:"application/json",async:!1,success:function(n){return t=n.isOldPasswordValidated},error:function(){alert("Old Password Error Validation")}}),t}function ClientEditProfileIsInputNewPasswordValid(){var t=$('input[name="EditProfileCreatePassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ClientEditProfileModule/ValidatePassword",type:"POST",data:JSON.stringify({newPassword:t}),contentType:"application/json",async:!1,success:function(t){return n=t.isPasswordValidated},error:function(){alert("New Password Error Validation")}}),n}function ClientEditProfileIsInputNewRetypePasswordValid(){var t=$('input[name="EditProfileRetypePassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ClientEditProfileModule/ValidatePassword",type:"POST",data:JSON.stringify({newPassword:t}),contentType:"application/json",async:!1,success:function(t){return n=t.isPasswordValidated},error:function(){alert("New Retype Password Error Validation")}}),n}}if(ComponentRegistry.ResetPassword&&$(function(){function u(){var u=$('input[name="emailAdd"]').val(),c=$('input[name="createPasswordPage"]').val(),f=t.data("country-site"),e=t.data("captcha-id");n=$("#"+e);var o=n.data("captcha-instance"),s=n.data("captcha-id"),h=n.val(),r=!0;return $.ajax({url:"/api/sitecore/ResetPassword/SendResetEmail",data:JSON.stringify({emailAddress:u,pagePath:pageContext,currentLanguage:f,captchaId:s,captInput:h,captInstance:o}),dataType:"json",context:this,type:"POST",contentType:"application/json; charset=utf-8",async:!1,success:function(t){t=="InvalidCaptcha"?($(".error-summary").hide(),$(n).get(0).Captcha.ReloadImage(),$("#resetPasswordForm").data("bootstrapValidator").updateStatus("CaptchaInput","INVALID","callback"),i=!1,r=!1,jQuery("body").trigger("analytics-form-error")):t?(i=!0,r=!0):r=!1},error:function(){r=!1;jQuery("body").trigger("analytics-form-error")}}),r}function r(n,t){var i=!0;return $.ajax({url:"/api/sitecore/ResetPassword/"+t,data:JSON.stringify({emailAddress:n}),dataType:"json",context:this,type:"POST",contentType:"application/json; charset=utf-8",async:!1,success:function(n){i=n},error:function(){i=!1}}),i}var t=$("#reset-password-module-content-data"),n,i=!0;$("#resetPasswordForm").bootstrapValidator({fields:{CaptchaInput:{trigger:"submit",validators:{notEmpty:{message:t.data("required-captcha")},callback:{message:t.data("incorrect-captcha")}}}}});$("#btnResetPassword").on("click",function(){var c=t.data("captcha-id"),h,f,o,e,s;n=$("#"+c);h=n.val();h!==""?(f=$("#resetPasswordForm").data("bootstrapValidator"),f.enableFieldValidators("CaptchaInput",!1)):(f=$("#resetPasswordForm").data("bootstrapValidator"),f.enableFieldValidators("CaptchaInput",!0));e=$('input[name="emailAdd"]').val();f.validate();f.isValid()?(o=!0,$(".error-summary").hide(),r(e,"ValidateEmailAddressInMembership")?isAccountLockout(e)?($(".account-lockout-error").removeClass("hidden"),$(".email-not-found-error").addClass("hidden"),o=!1,$(n).get(0).Captcha.ReloadImage(),f.resetForm()):r(e,"ValidateIfLinkedInUser")?($(".account-lockout-error").addClass("hidden"),$(".email-not-found-error").addClass("hidden"),$(".unregistered-account-error").removeClass("hidden"),o=!1):o=u():($(".account-lockout-error").addClass("hidden"),$(".email-not-found-error").removeClass("hidden"),$(".unregistered-account-error").addClass("hidden"),o=!1),o?(e=$('input[name="emailAdd"]').val(),$("#resetPasswordForm").hide(),s=$("#sectionSuccess").find("#success-message"),s.html(s.html().replace("<email_address>",e).replace("<EMAIL_ADDRESS>",e)),$("#sectionSuccess").show(),jQuery("body").trigger("analytics-form-success",!0)):i?(i=!0,$(".error-summary").show()):$(".error-summary").hide()):jQuery("body").trigger("analytics-form-error")})}),ComponentRegistry.CreatePassword){$(function(){var n=$("#createPasswordForm");$(n).bootstrapValidator({fields:{UserPassword:{trigger:"blur",validators:{callback:{message:$("#passwordMessage").val(),callback:function(n){return($("input[name='RetypePassword']").val().length>0&&ArePasswordsIdentical(),n=="")?!0:n!=""&&n.length>8?IsSameAsPreviousPassword()?($('input[name="UserPassword"]').data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#PasswordSameAsPrevious").val()),!1):CreatePasswordIsInputPasswordValid():($('input[name="UserPassword"]').data("bv.messages").find('.help-block[data-bv-validator="callback"]').html($("#passwordMessage").val()),!1)}}}},RetypePassword:{trigger:"blur",validators:{callback:{message:$("#passwordMessage").val(),callback:function(n){return n==""?!0:n.length>8&&n!=""?CreatePasswordIsRetypePasswordValid():void 0}}}}}})});function ArePasswordsIdentical(){var n=$("#reTypePasswordTxtbox"),t=n.find($("i[data-bv-field='RetypePassword']")),i=$("#reTypePasswordTxtbox .validatorMessage").find("span[data-bv-validator='identical']");$("input[name='RetypePassword']").val()!==$('input[name="UserPassword"]').val()&&(n.hasClass("has-error")||(n.removeClass("has-success"),n.addClass("has-error")),t.hasClass("glyphicon-ok")&&(t.removeClass("glyphicon-ok"),t.addClass("glyphicon-remove")),i.css("display","inline-block"),i.attr("data-bv-visible","true"),i.parent().css("display","inline-block"))}function IsSameAsPreviousPassword(){var t=$('input[name="emailAddress"]').val(),i=$('input[name="UserPassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ResetPassword/ValidatePreviousPassword",type:"POST",data:JSON.stringify({emailAddress:t,newPassword:i}),contentType:"application/json",async:!1,success:function(t){return n=t.isPasswordValidated},error:function(){alert("Input Password Error Validation")}}),n}function CreatePasswordIsInputPasswordValid(){var t=$('input[name="UserPassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ResetPassword/ValidatePassword",type:"POST",data:JSON.stringify({newPassword:t}),contentType:"application/json",async:!1,success:function(t){return n=t.isPasswordValidated},error:function(){alert("Input Password Error Validation")}}),n}function CreatePasswordIsRetypePasswordValid(){var t=$('input[name="RetypePassword"]').val(),n=!1;return $.ajax({url:"/api/sitecore/ResetPassword/ValidatePassword",type:"POST",data:JSON.stringify({newPassword:t}),contentType:"application/json",async:!1,success:function(t){return n=t.isPasswordValidated},error:function(){alert("Retype Password Error Validation")}}),n}function updatePassword(n){var i=$('input[name="UserPassword"]').val(),r=$('input[name="resetPasswordID"]').val(),t=!0;return $.ajax({url:"/api/sitecore/ResetPassword/UpdatePassword",data:JSON.stringify({emailAddress:n,newPassword:i,resetPasswordID:r}),dataType:"json",type:"POST",contentType:"application/json; charset=utf-8",async:!1,success:function(n){$result=n?!0:!1},error:function(){t=!1}}),t}$("#btnCreatePassword").on("click",function(n){var i=$("#createPasswordForm").data("bootstrapValidator"),r=$('input[name="emailAddress"]').val(),t;i.validate();i.isValid()&&(t=!0,$(".error-summary").hide(),isAccountLockout(r)?($(".account-lockout-error").removeClass("hidden"),t=!1):($(".account-lockout-error").addClass("hidden"),t=updatePassword(r),t||$(".network-error").removeClass("hidden")),t?(jQuery("body").trigger("analytics-form-success",!0),$("#divCreate").hide(),$("#sectSuccess").show()):$(".error-summary").show(),n.preventDefault())})}if(ComponentRegistry.RemoveProfile){$(function(){var n=$("#formID").val();$(n).bootstrapValidator({fields:{removeProfileCaptchaInput:{trigger:"blur",validators:{notEmpty:{message:"Required Captcha"},callback:{message:"Incorrect Captcha!",callback:function(n){return n==""?!0:RemoveProfCaptVal=isRemoveProfileCaptchaCorrect()}}}}}});$("#btnRemoveProfileSubmit").on("click",function(n){var r=$(this).closest("form"),i=$(r).data("bootstrapValidator"),t;i.validate();i.isValid()&&RemoveProfCaptVal?($(this).attr("disabled","disabled"),t={},t.EmailAddress=removeProfileEmailAddress,t.FirstName=FirstName,t.Comments=removeTags($("#removeprofile_comments").val()),t.CountrySite=removeProfileCountrySite,$.ajax({url:"/api/sitecore/RemoveProfileModule/RemoveProfile",async:!1,type:"POST",data:JSON.stringify({usersDeletedDomain:t,countrySite:removeProfileCountrySite,siteLanguage:removeProfileSiteLanguage,userProfileIdGuid:removeProfileUserProfileId}),contentType:"application/json",error:function(n,t,i){console.log(n);console.log(t);console.log(i);jQuery("body").trigger("analytics-form-error")},success:function(t){if(t.RequestSuccess==!0&&t.DeletionSuccess==!0){var i=$("#RemoveProfileConfirmation").val();n.preventDefault();window.location="/Authentication/SignOut/SignOut?returnUrl="+encodeURI(window.location.hostname+i);jQuery("body").trigger("analytics-form-success")}else console.log("Remove profile request failed")}})):jQuery("body").trigger("analytics-form-error")});$("#btnRemoveProfileCancel").on("click",function(){window.location=$("#RemoveProfileCancel").val()})});function isRemoveProfileCaptchaCorrect(){var t=$('input[name="removeProfileCaptchaInput"]').val(),n=!1;return $.ajax({url:"/api/sitecore/RemoveProfileModule/IsWordCorrect",type:"POST",data:JSON.stringify({input:t,instance:InstanceCaptId}),contentType:"application/json",async:!1,error:function(){console.log("isCaptchaCorrect() encountered error")},success:function(t){t=="True"?n=!0:RegCID.ReloadImage()}}),n}}if(ComponentRegistry.SavedJobsModule){viewJobsLink=$("#storedViewJobsLink").val();nosavedJobsContainer="#no-saved-jobs";$(nosavedJobsContainer).hide();$(window).on("load",function(){savedJobsModuleHelper.GetSavedJobs()});$(document).ajaxComplete(function(){var n=$(".saved-job"),t;totalSavedJobs!=undefined&&n.length==totalSavedJobs&&(t=n.sort(function(n,t){var i=$(n).attr("id").replace("job-","").trim(),r=$(t).attr("id").replace("job-","").trim();return parseInt(i)>parseInt(r)?-1:parseInt(i)<parseInt(r)?1:0}),$(".form-section .saved-jobs").first().html(t),$(".form-section .saved-jobs").first().prepend("<h2 class='corporate-black' id='saved-jobs-header'>Saved Job Postings<\/h2>"))});$.ajax({async:!1});$.getJSON("/api/sitecore/savedjobsmodule/getcurrentdate",{},function(n){currentdate=new Date(parseInt(n.substr(6)))});$.ajax({async:!0});currentdate=undefined;savedJobsModuleHelper={DeleteJob:function(n,t){$.ajax({url:"/api/sitecore/savedjobsmodule/deletejob",data:{SavedJobInformationId:n},traditional:!0,cache:!1,method:"post",success:function(){$("#job-"+n).remove();var i=$(".saved-jobs > div.saved-job");savedJobsModuleHelper.CheckSavedRecommendedJobs(t);i.length<=0&&($(nosavedJobsContainer).show(),$("#horizontalline").addClass("hr-no-jobs"))}})},CheckSavedRecommendedJobs:function(n){var i=$(".saved-jobs > div.recommended-job"),t,r,u;if(i.length>0)for(t=0;t<i.length;t++)if(r=i[t],u=r.getElementsByClassName("cta")[1].dataset.jobId,u.indexOf(n)>=0){$("#save-job-"+n).text("Save Job");$("#save-job-"+n).removeClass("saved");$("#save-job-"+n).addClass("save-job");$("#save-job-"+n).on(this);console.log("#save-job-"+n)}},GetDetails:function(n,t){var r="#saved-jobs-header",i=$("#RemoveJob").val(),u=i!==null&&i!==undefined?i.toLowerCase():"";(i==""||i==undefined)&&(i="Remove Job");$.ajax({url:"/api/sitecore/savedjobsmodule/getjobdetails",data:{jobId:n},traditional:!0,cache:!1,method:"post",error:function(){remove='<a class="cta" href="#" onClick="savedJobsModuleHelper.DeleteJob('+t+",'"+n+'\')"data-analytics-content-type="cta" data-analytics-link-name="'+u+'">'+i+"<\/a>";$('<div class="sections" id="job-'+t+'"><p>There is an error with job id: '+t+".<\/p>"+remove+"<\/div>").insertAfter($(r))},success:function(f){var o;if(f=JSON.parse(f),f.jobDetails=="null")$("#saved-jobs-error-message").removeClass("hidden");else if($("#saved-jobs-error-message").addClass("hidden"),o=f.postedDate,o!=undefined){var h=new Date(o),c=savedJobsModuleHelper.ParseTime(h,currentdate),s=viewJobsLink+"?id="+f.id,l=f.title!==null&&f.title!==undefined?f.title.toLowerCase():"",a='<h2 class="module-headline"><a href="'+s+'" data-analytics-content-type="cta" data-analytics-link-name="'+l+'">'+f.title+"<\/a><\/h2>",e=f.location;(e==""||e.length==0||typeof e=="undefined")&&(e=$("#LocationNegotiable").val());var v='<h3 class="corporate-black">'+e+"<\/h3>",y='<p class="module-body">'+f.jobDescription.substr(0,250)+"... <\/p>",p='<p class="job-number">Job #'+f.requisitionId+"<\/p>",w='<p class="job-type">'+f.talentSegment+"<\/p>",b='<p class="posting-date">Posted - '+c+"<\/p>",k='<a class="cta" href="'+s+'"data-analytics-content-type="cta" data-analytics-link-name="view job">VIEW JOB<\/a>',d='<a class="cta" href="#" onClick="savedJobsModuleHelper.DeleteJob('+t+",'"+n+'\')"data-analytics-content-type="cta" data-analytics-link-name="'+u+'">'+i+"<\/a>";$('<div class="saved-job sections" id="job-'+t+'">'+a+v+y+p+w+b+k+d+"<\/div>").insertAfter($(r))}}})},ParseTime:function(n,t){var r=Math.floor((t-n)/1e3),i=Math.floor(r/31536e3);return i>1?i+" years ago":(i=Math.floor(r/2592e3),i>1)?i+" months ago":(i=Math.floor(r/86400),i>1)?i+" days ago":(i=Math.floor(r/3600),i>1)?i+" hours ago":(i=Math.floor(r/60),i>1)?i+" minutes ago":Math.floor(r)+" seconds ago"},GetSavedJobs:function(){$.ajax({url:"/api/sitecore/savedjobsmodule/getsavedjobs",traditional:!0,cache:!1,method:"post",error:function(){$(nosavedJobsContainer).show();$("#horizontalline").addClass("hr-no-jobs")},success:function(n){n.length>0&&(totalSavedJobs=n.length,$(nosavedJobsContainer).hide(),$("#horizontalline").removeClass("hr-no-jobs"),$(n).each(function(){savedJobsModuleHelper.GetDetails(this.JobId,this.SavedJobInformationId)}))}})},GetSavedJob:function(n){var t={jobId:n};$.ajax({url:"/api/sitecore/savedjobsmodule/GetSavedJob",data:t,traditional:!0,cache:!1,method:"post",error:function(){$(nosavedJobsContainer).show()},success:function(n){n.length>0&&($(nosavedJobsContainer).hide(),$(n).each(function(){savedJobsModuleHelper.GetDetails(this.JobId,this.SavedJobInformationId)}))}})}}}if(ComponentRegistry.BlockAnnouncement){function closeAnnouncement(){$("#announcement-carousel").parent().parent().remove();$("#ui-wrapper").removeClass("has-announcement-module")}function ClampAnnouncement(){var t=8,i=$(".carousel-inner").hasClass("single-announcement"),n,r;t=isTablet()?i==!0?3:2:i==!0?8:7;n=$(".announcement-content p");r=$(".announcement-header");n.css("display","block");$(".announcement-content p").each(function(i){var u=$(this),f=u.closest(".item").find(".announcement-header").height(),o=u.closest(".item").css("display");o=="none"&&(u.closest(".item").css({position:"absolute",visibility:"hidden",display:"block"}),f=u.closest(".item").find(".announcement-header").height(),u.closest(".item").css({position:"",visibility:"",display:""}));var s=u.closest(".item").find(".announcement-header").css("line-height").replace("px",""),e=Math.round(f/parseInt(s)),h=t-e,c=r[i],l=n[i];e>2&&$clamp(c,{clamp:2});$clamp(l,{clamp:h})})}setDataPlayPauseButton=function(){var n=$(".announcement-block .acn-icon");if(n&&n.length)n.on("click",function(){$(n).hasClass("icon-play")?n.attr("data-analytics-link-name","icon-pause"):n.attr("data-analytics-link-name","icon-play")})};$(function(){ClampAnnouncement();setDataPlayPauseButton();var n=1;$("#content-wrapper > div.ui-container > div.block-title").each(function(){n==1?$(this).removeClass("first"):n==2&&$(this).addClass("first");n++});$("#announcement-carousel").on("slid",function(){ClampAnnouncement()});$(window).on("resize",function(){var n=$(".announcement-header"),t=$(".announcement-content p");n.removeAttr("style").removeClass("clamp");t.removeAttr("style").removeClass("clamp");ClampAnnouncement()})})}if(ComponentRegistry.CommentsModule){readMoreText=$(".comment-display-section").data("read-more-text");$(function(){jQuery.support.cors=!0;typeof acncm!="undefined"&&acncm.Forms.detectedFormStart();$(".without-account-button").on("click",function(){$("#without-account-form").css("display","block");$("#comment-social").css("display","block");$("#with-account").css("display","none");$("#sign-in-social").css("display","none")});$(".sign-in-label").on("click",function(){$("#with-account").css("display","block");$("#sign-in-social").css("display","block");$("#without-account-form").css("display","none");$("#comment-social").css("display","none")});$("form#submitCommentsForm, form#submitUnauthenticated").on("submit",function(n){var i=$("#commentContent").val(),r=$("#userNameInput").val(),u=$("#emailAddInput").val(),f=$("#userNameInput").attr("id"),e=$("#emailAddInput").attr("id"),o=$("#commentContent").attr("id"),s=$(".captchaVal").attr("id"),t={commentContent:i,contextPage:"ctpage",contextItemId:vItemContextID,commentsModuleItemPath:vmodelPath,captchaId:commentsModuleCaptchaId,captchaInput:$("#commentsModuleCaptcha input[name=captchaInput]").val(),captchaInstance:commentsModuleCaptchaInstance,userName:r,emailAddress:u,userNameId:f,emailId:e,commentId:o,language:acnPage.Language};$.ajax({type:"POST",dataType:"json",contentType:"application/json",async:!0,url:"/api/sitecore/ProcessCommentsModule/PostComment",data:JSON.stringify(t),success:function(n){var r,i;if(typeof n!=undefined&&n!=null)if(n.Success)$("#comment-modal").modal("show"),$(".form-section").remove();else{if(n.Result!=null||n.Result!=undefined){for($(".comments .form-section").remove(),i="<div class='form-section'><ul class = 'Val has-error'>",r=0;r<Object.keys(n.Result).length;r++)i=i+"<li class='ErrorList glyphicon' data-bv-field="+Object.keys(n.Result)[r]+">"+n.Result[Object.keys(n.Result)[r]]+"<\/li>";i=i+"<\/ul><\/div>";$("#commentContent").after(i)}if(n.Errors!=null||n.Errors!=undefined){for($(".form-section").remove(),i="<div class='form-section'><ul class = 'Val has-error'>",r=0;r<Object.keys(n.Errors).length;r++)i=i+"<li class='ErrorList glyphicon' data-bv-field="+Object.keys(n.Errors)[r]+">"+n.Errors[Object.keys(n.Errors)[r]]+"<\/li>";i=i+"<\/ul><\/div>";$("#emailAddInput").after(i)}(n.CaptchaError!=null||n.CaptchaError!=undefined)&&($(".form-section").remove(),n.CaptchaStatus==!1&&(i="<div class='col-xs-6 form-section'><ul class = 'Val has-error'><li class='validatorMessage glyphicon' data-bv-field="+s+">"+n.CaptchaError+"<\/li><\/ul><\/div>",$("#without-account-form .postcomment-box").before(i)));RefreshCaptcha(t.captchaId)}typeof acncm!="undefined"&&acncm.Forms.detectedFormComplete()},error:function(){typeof acncm!="undefined"&&acncm.Forms.detectedFormError()}});n.preventDefault()});Comments={ContextItem:vmodelPath,DefaultNumberOfComments:vDefaultNumOfCommentsToDisp+0,TotalNumberOfComments:vTotalNumOfComments+0,LimitNumberOfComments:vLimitNumOfComments+0,MaxDays:vMaxDays+0,NextCommentIndex:vNextCommentIndex,RenderHtmlAjax:function(n,t){$.ajax({url:n.data("url"),type:"POST",data:{path:Comments.ContextItem,pageCount:this.NextCommentIndex+Comments.DefaultNumberOfComments,defaultNumberOfComments:Comments.TotalNumberOfComments,limitNumberOfComments:Comments.LimitNumberOfComments,maxDays:Comments.MaxDays},cache:!1,context:t,success:function(n){this.append(n);var t=$(".comment-description"),i=parseInt(t.css("line-height"),10);t.each(function(n){if(n>2){$(window).width()<767?$(this).dotdotdot({watch:"window",height:i*5,wrap:"letter"}):$(this).dotdotdot({watch:"window",height:i*2,wrap:"letter"});var t=$(this).triggerHandler("isTruncated");t&&$(this).after('<div class="read-more"><a class="content-txt-cta themeColor cta" href="javascript:void(0)" data-analytics-link-name="'+readMoreText.toLowerCase()+'" data-analytics-content-type="cta">'+readMoreText+"<\/a><\/div>")}});$(".read-more").on("click",function(){if(!$(this).prev().hasClass("firstLoad")){var n=$(this).prev().triggerHandler("originalContent");$(this).prev().trigger("destroy");$(this).prev().text("");$(this).prev().append(n);$(this).attr("style","display: none !important")}});Comments.NextCommentIndex+=Comments.TotalNumberOfComments;(Comments.DefaultNumberOfComments>=Comments.TotalNumberOfComments-Comments.NextCommentIndex||Comments.TotalNumberOfComments>=Comments.LimitNumberOfComments-Comments.NextCommentIndex)&&($("#displayMoreComments").attr("style","display: none !important"),$("#displayLoadMore").attr("style","display: none !important"))}})},OnAjaxClick:function(){var n=$("#displayMoreComments"),t=$("#commentSection");this.RenderHtmlAjax(n,t);$(".comment-div").eq(2).css("margin-bottom","10px")}};$("#submitCommentsForm").length>0&&$("#submitCommentsForm")[0].reset();reloadPageOnModalHide()});$(window).on("load",function(){var t=$(".comment-dots"),n=parseInt(t.css("line-height"),10);$(".comment-description").each(function(){$(window).width()<767?$(this).dotdotdot({watch:"window",height:n*5,wrap:"letter"}):$(this).dotdotdot({watch:"window",height:n*2,wrap:"letter"})});$(".comment-description").each(function(){var n=$(this).triggerHandler("isTruncated");$(this).addClass("firstLoad");n&&$(this).after('<div class="read-more"><a class="content-txt-cta themeColor cta" href="javascript:void(0)" data-analytics-link-name="'+readMoreText.toLowerCase()+'" data-analytics-content-type="cta">'+readMoreText+"<\/a><\/div>")});$(".read-more").on("click",function(){var n=$(this).prev().triggerHandler("originalContent");$(this).prev().trigger("destroy");$(this).prev().text("");$(this).prev().append(n);$(this).attr("style","display: none !important")})});$commentSection=$(".comment-display-section");$commentSection.on("click",".comment-delete-yes",function(n){$this=$(this);var t=$this.data("comment-id"),i={contextPage:"ctpage",contextItemId:t,commentsModuleItemPath:vmodelPath,language:acnPage.Language};$.ajax({type:"POST",dataType:"json",contentType:"application/json",async:!1,url:"/api/sitecore/ProcessCommentsModule/DeleteComment",data:JSON.stringify(i),success:function(n){typeof n!=undefined&&n!=null&&(n.Success?history.go(0):alert(n.Result))},error:function(){typeof acncm!="undefined"&&acncm.Forms.detectedFormError()}});$parentDiv.remove();n.preventDefault()});$commentSection.on("click",".comment-delete",function(n){$this=$(this);$parentDiv=$this.closest(".comment-div");$commentDesc=$parentDiv.find(".comment-description");$commentDesc.css("opacity","0.1");$parentDiv.find(".comment-id").css("opacity","0.1");$parentDiv.find(".dropdown.pull-right").css("opacity","0.1");$parentDiv.find(".read-more").css("display","none");$deleteQuestion=$parentDiv.find(".comment-delete-question");$deleteQuestion.css("display","block");$(window).width()<=767?$commentDesc.height()>60&&($deletePosition="-"+($commentDesc.height()/2+$deleteQuestion.height()/2)+"px",$deleteQuestion.css("top",$deletePosition)):($deletePosition="-"+($commentDesc.height()/2+$deleteQuestion.height()/2)+"px",$deleteQuestion.css("top",$deletePosition),$parentDivHeight=$parentDiv.height()-$deleteQuestion.height()+"px",$parentDiv.css("height",$parentDivHeight));n.preventDefault()});$commentSection.on("click",".comment-delete-no",function(n){$this=$(this);$parentDiv=$this.closest(".comment-div");$commentDesc=$parentDiv.find(".comment-description");$parentDiv.find(".comment-delete-question").css("display","none");$commentDesc.css("display","block");$readMore=$parentDiv.find(".read-more");$commentDesc.height()<50&&$(window).width()>767?$readMore.css("display","block"):$commentDesc.height()<90&&$(window).width()<767?$readMore.css("display","block"):$readMore.css("display","none");$commentDesc.css("opacity","1");$parentDiv.find(".comment-id").css("opacity","1");$parentDiv.find(".dropdown.pull-right").css("opacity","1");$parentDiv.css("height","");n.preventDefault()});$commentSection.on("click",".comment-edit",function(n){$this=$(this);$parentDiv=$this.closest(".comment-div");$parentDiv.find(".comment-description").css("display","none");$parentDiv.find(".read-more").css("visibility","hidden");$parentDiv.find(".comment-update").css("display","block");$textarea=$parentDiv.find("textarea");$textareaHeight=$textarea[0].scrollHeight;$textareaHeight<=100?$textarea.css("height",$textareaHeight):$textarea.css("height","100px");n.preventDefault()});$("#editcommentOk,#btnEditModalClose").on("click",function(){$("#edit-comment-modal").modal("hide")});$commentSection.on("click",".cancel-comment-update",function(n){$this=$(this);$parentDiv=$this.closest(".comment-div");$parentDiv.find("textarea").val($.trim($parentDiv.find(".comment-description").text()));$parentDiv.find(".comment-update").css("display","none");$parentDiv.find(".comment-description").css("display","block");$parentDiv.find(".read-more").css("visibility","visible");$parentDiv.find(".form-section").remove();n.preventDefault()});$commentSection.on("click",".comment-save",function(n){$this=$(this);$parentDiv=$this.closest(".comment-div");var t=$parentDiv.find("textarea").val(),i=$this.data("comment-id"),r=$parentDiv.find("textarea").attr("id"),u={commentContent:t,contextPage:"ctpage",contextItemId:i,commentsModuleItemPath:vmodelPath,commentId:r,language:acnPage.Language};$.ajax({type:"POST",dataType:"json",contentType:"application/json",async:!0,url:"/api/sitecore/ProcessCommentsModule/UpdateComment",data:JSON.stringify(u),success:function(n){var t,i;if(typeof n!=undefined&&n!=null)if(n.Success)$(".form-section").remove(),$("#edit-comment-modal").modal("show"),$parentDiv.find("textarea").val($.trim($parentDiv.find(".comment-description").text())),$parentDiv.find(".comment-update").css("display","none"),$parentDiv.find(".comment-description").css("display","block"),$parentDiv.find(".read-more").css("visibility","visible");else if($parentDiv.find(".form-section").remove(),n.Result!=null){for(t="<div class='form-section'><ul class = 'Val has-error'>",i=0;i<Object.keys(n.Result).length;i++)t=t+"<li class='ErrorList glyphicon' data-bv-field="+Object.keys(n.Result)[i]+">"+n.Result[Object.keys(n.Result)[i]]+"<\/li>";t=t+"<\/ul><\/div>";$parentDiv.find(".comment-update textarea").after(t)}},error:function(){typeof acncm!="undefined"&&acncm.Forms.detectedFormError()}});n.preventDefault()});$(document).on("input",".comments-module textarea",function(){this.scrollHeight<=100&&(this.style.height="42px",this.style.height=this.scrollHeight+"px")});function RefreshCaptcha(n){$("#"+n+"_ReloadLink").trigger("click")}reloadPageOnModalHide=function(){$("#comment-modal").on("hidden.bs.modal",function(){history.go(0)})}}if(ComponentRegistry.BlogPostViewSubscribe){function LoadButtonLink(n){var t=n.getAttribute("href");window.open(t,"_self",!1)}}if($(function(){typeof digitalData!="undefined"&&(digitalData.page.pageInfo.destinationUrl=document.location,digitalData.page.pageInfo.referringUrl=document.referrer)}),this.AddProductAssetsToDigitalData=function(n,t){digitalData.product===null&&(digitalData.product=[]);var i='{"category":{"primaryCategory":"'+n+'"}"productInfo":{"productID":"'+t+'"}}',r=JSON.parse(i);digitalData.product.push(r)},this.SetDefaultProfileIfAnonymousUser=function(){digitalData.user[0].profile[0].profileInfo.profileID==="anonymous"&&(digitalData.user[0].profile[0].profileInfo.profileID="VisitoryID will be placed here...",digitalData.user[0].profile[0].profileInfo.jobLevel="")},this.SiteAnalyticsEventTracking=function(){if(typeof digitalData!="undefined")$("a").on("click",function(){AddTriggeredEventToDigitalData("click","MouseEvent")})},this.AddTriggeredEventToDigitalData=function(n,t){digitalData.events===null&&(digitalData.events=[]);var i='{"type":"'+n+'","eventName":"'+t+'"}',r=JSON.parse('{"eventInfo":'+i+"}");digitalData.events.push(r)},this.UpdateComponentsAnalyticsID=function(){$.ajax({url:"/api/sitecore/SiteAnalytics/UpdateComponentsAnalyticsId",type:"POST",datatype:"json",contentType:"application/json",success:function(n){return n}})},this.UpdateMetadataAnalyticsID=function(){$.ajax({url:"/api/sitecore/SiteAnalytics/UpdateMetadataAnalyticsId",type:"POST",datatype:"json",contentType:"application/json",success:function(n){return n}})},ComponentRegistry.RecommendedJobModule){userID=$("#storedUserId").val();$(function(){$(".save-job").on("click",function(){var n=$(this).data("job-id");$.get("/api/sitecore/savedjobsmodule/savejob",{UserId:userID,JobId:n,CreateUserId:userID},function(){unbindSaveLink(n);savedJobsModuleHelper.GetSavedJob(n)})});$("#edit-profile-tab").on("click",function(){$("#NavEditProfile").trigger("click")})});function unbindSaveLink(n){$("#save-job-"+n).text("Saved");$("#save-job-"+n).removeClass("save-job");$("#save-job-"+n).addClass("saved");$("#save-job-"+n).off()}}if(ComponentRegistry.ClientIndex&&$(function(){var n,t,i;window.setTimeout(function(){$(window).on("resize",function(){window.innerWidth<="768"?($("#overflow-docking").find(".inner").addClass("parallax"),$("#overflow-controller").find(".inner").addClass("parallax")):($("#overflow-docking").find(".inner").removeClass("parallax"),$("#overflow-controller").find(".inner").removeClass("parallax"))})},200);$("#recommended-for-you-module").length>0?(n=$("#recommended-for-you-module").attr("data-total-count"),(n===""||n==="0")&&$("#recommended-for-you-module").closest(".colored-container").remove()):$("#related-content-module").length>0&&(n=$("#related-content-module").attr("data-total-count"),(n===""||n==="0")&&$("#related-content-module").closest(".colored-container").remove());$("#overflow-docking").remove();$("#overflow-controller").empty();window.setTimeout(function(){CreateLayout();AdjustLayout();$(".ui-container").each(function(){var n=$(this).find(".hidden").attr("data-background-image"),t=$(this).attr("id");$("div[data-content-id="+t+"]").find(".inner").css({"background-image":"url('"+n+"')","background-size":"cover"})});isMobile()?($("#overflow-docking").find(".inner").addClass("parallax"),$("#overflow-controller").find(".inner").addClass("parallax")):($("#overflow-docking").find(".inner").removeClass("parallax"),$("#overflow-controller").find(".inner").removeClass("parallax"))},0);$("#block-jumplink").hide();t=$("#jumplink-dropdown li").length-1;$("#total-navigation").html(t);i=[];$(".ui-container .block-title h2").each(function(){var n=$(this).text();i.push(n)});$("#jumplink-dropdown li a").each(function(n){if(n>0){var t=$(this).attr("href"),i=$(t+" .block-title h2").text();$(this).children("span").text(i)}});$(".article-title a h2").each(function(){$clamp(this,{clamp:2})})}),ComponentRegistry.SocialSignIn&&$(function(){$("#btnContinueProfile").on("click",function(){window.location.hash==""?(ComponentRegistry.EditProfile?window.location.href+="#EditProfile":ComponentRegistry.ClientEditProfile&&(window.location.href+="#editprofilepane"),window.location.reload()):$("#SocialMediaModal").modal("hide")});$("#SocialMediaModal button.close").on("click",function(){window.location.hash==""?(ComponentRegistry.EditProfile?window.location.href+="#EditProfile":ComponentRegistry.ClientEditProfile&&(window.location.href+="#editprofilepane"),window.location.reload()):$("#SocialMediaModal").modal("hide")});$("#btnContinueRegistration").on("click",function(){var n=$("#loginPopoverContainer").find("#DefaultRegistrationLink").val();(n!=undefined||n!="")&&window.location.assign(n)});$("#ClientEditButton").on("click",function(){var r=$("#modal_password").val(),n=$("#URL").val(),i,t;n=n+"?Create_Password="+r;i=$(this).closest("form");t=$(i).data("bootstrapValidator");t.validate();t.isValid()&&window.location.assign(n)});$("#SocialEmailModal button.close").on("click",function(){$("#SocialEmailModal").modal("hide")});$("#showClientEditModal").on("click",function(n){var t=$("#PageItemGuid").val();$.ajax({url:"/api/sitecore/SocialSignInModule/SignOutProfile",async:!1,type:"POST",data:JSON.stringify({ItemGuid:t}),dataType:"json",contentType:"application/json",error:function(n,t,i){console.log(n);console.log(t);console.log(i)},success:function(n){n[0].ShowCreatePassword==!0?($("#disconnectSocialSite").modal("hide"),$("#client-edit-modal").modal("show")):(IsIE()?window.location.reload(!0):window.location.assign(n[0].RedirectPath),$("#client-edit-modal").modal("hide"))}});n.preventDefault});var n=$(".social-general-suggested .suggested-link"),t=$(".social-general-suggested").data("socialurl");n.attr("href",t);n.length>0&&n.attr("href")&&(t.indexOf("LinkedIn")>-1?n.attr({"data-linkaction":"Connect LinkedIn","data-linktype":"LinkedIn"}):t.indexOf("Xing")>-1&&n.attr({"data-linkaction":"Connect Xing","data-linktype":"Xing"}));$(".social-general-suggested .social-suggested-text").attr("title",n.text());$(".empty-tag").each(function(){$.trim($(this).text()).length==0&&$(this).append("<p style= visibility: hidden>WA Content<\/p>")})}),ComponentRegistry.CareersJobFeedsXmlModule&&($(function(){function e(n){$this=$(n);$this.closest(f).css("overflow","visible");var i=$this.closest(f).parent().attr("id"),t="#"+i;$(t).addClass("do-not-rotate");$(t).carousel("pause");$(".social-likes_opened").show();$(".social-likes.social-likes_single.socialSharePopover").removeClass("hidden")}var n=$("a.view-more-link"),o=$("ul.jobfeed-list"),t,i,r,u;n.each(CareersJobFeedsXmlModule.AddIndexAndIdsForListView);o.each(CareersJobFeedsXmlModule.ToggleViewMoreLinkVisibility);n.on("click",CareersJobFeedsXmlModule.ViewMoreClick);CareersJobFeedsXmlModule.RemoveHorizontalLine();t=$(".jobfeed-stat-bar span.align-right a");t.addClass("color-primary");CareersJobFeedsXmlModule.CarouselSlide();i=$("div.carousel-inner div.item:first-child");r=$(".jobfeeds .carousel-indicators li:first-child");i.addClass("active");r.addClass("active");$(".carousel ol.carousel-indicators li").on("click",CareersJobFeedsXmlModule.JobFeedModuleEllipsis);setTimeout(function(){CareersJobFeedsXmlModule.JobFeedModuleEllipsis()},100);CareersJobFeedsXmlModule.JobFeedModuleEllipsis();u=$("a.job-url");u.each(CareersJobFeedsXmlModule.AddDomainToJobUrl);var s=$(".social-likes__button"),h=$(".social-likes.social-likes_single.socialSharePopover"),f=$(".carousel-inner"),c=$(document);s.on("click tap touchstart",function(){e(this)});h.on("click touchstart tap",function(){e(this)});c.on("click tap swipe",function(){$(".jobfeeds .carousel-inner").css("overflow","hidden");$(".social-likes.social-likes_single.socialSharePopover").addClass("hidden");$(".jobfeeds .carousel").removeClass("do-not-rotate");$(".jobfeeds .carousel").carousel("cycle")})}),CareersJobFeedsXmlModule=function(){CurrentDomain=function(){return window.location.protocol+"//"+window.location.hostname};var n={AddIndexAndIdsForListView:function(n){$this=$(this);$this.attr("id","view-more-id-"+n);$this.attr("indx",n);$this.parent().siblings(".jobfeed-list-container").children("ul").attr("indx",n);$this.parent().siblings(".jobfeed-list-container").children("ul").addClass("jobfeed-ul-"+n)},RemoveHorizontalLine:function(){var n=$("ul.jobfeed-list");n.each(function(n){$this=$(this);$this.attr("id","jobfeed-list-id-"+n);var t=$("ul#jobfeed-list-id-"+n+' li:not(".hidden")').length,i=$("ul#jobfeed-list-id-"+n+" > li").length;$("ul#jobfeed-list-id-"+n+" > li)").not(":nth-child("+i-1+")").find("div hr").show();$("ul#jobfeed-list-id-"+n+" > li:nth-child("+t+") div hr").hide()})},ViewMoreClick:function(){var t,o,f,e;$this=$(this);var i=$this.attr("indx"),r=jQuery("a#view-more-id-"+i),u=$(".jobfeed-ul-"+i+" li.hidden");u.length==0?r.addClass("hidden"):(t=u.first(),o=t,t.removeClass("hidden"),t.nextAll().slice(0,4).removeClass("hidden"),n.RemoveHorizontalLine(),f=$("li[class='jobfeed-li'] .module-headline"),e=$("ul.jobfeed-list li .module-body.dot-ellipsis"),EllipsisConfigFunction(f),EllipsisConfigFunction(e),$(".jobfeed-ul-"+i+" li.hidden").length==0&&r.addClass("hidden"))},ToggleViewMoreLinkVisibility:function(){var t=5,n=1;$this=$(this);var i=$this.attr("indx"),u=$(".jobfeed-ul-"+i+" li"),r=$("a#view-more-id-"+i);u.each(function(){$(this).attr("id","jobfeed-li-"+n);n<=t?r.addClass("hidden"):r.removeClass("hidden");n>t&&$(this).addClass("hidden");n++})},CarouselSlide:function(){$this=$(".jobfeeds .carousel");$this.on("slid",function(){var n=$(this).closest(".jobfeeds .carousel"),r=n.find(".module-body.dot-ellipsis"),u=n.find(".module-headline.dot-ellipsis"),f=n.find("ul.jobfeed-list li .module-body.dot-ellipsis"),t,i;EllipsisConfigFunction(r);EllipsisConfigFunction(u);EllipsisConfigFunction(f);t=$this.closest($(".jobfeeds .carousel-inner")).parent().attr("id");i="#"+t;$(i).hasClass("do-not-rotate")||$(".jobfeeds .carousel-inner").css("overflow","hidden")})},JobFeedModuleEllipsis:function(){$this=$(this).closest(".jobfeeds");var n=$this.find(".module-body.dot-ellipsis"),t=$this.find(".module-headline"),i=$("li[class='jobfeed-li'] .module-headline"),r=$("ul.jobfeed-list li .module-body.dot-ellipsis");EllipsisConfigFunction(n);EllipsisConfigFunction(t);EllipsisConfigFunction(i);EllipsisConfigFunction(r)},AddDomainToJobUrl:function(){$this=$(this);var n=$this.attr("href"),t=CurrentDomain();n&&n.indexOf(t)===-1&&$this.attr("href",t+n)}};return n}()),ComponentRegistry.FeaturedLeadershipModule){$(".icon-jump-links-arrow-up").on("click",function(){leadersNavigate("+=100")});$(".icon-jump-links-arrow-down").on("click",function(){leadersNavigate("-=100")});$(".js-animate-leaders li").length>6&&$(".icon-jump-links-arrow-down").removeClass("hidden");list=$(".leadership-tab li");list.on("click",function(){$this=$(this);list.removeClass("bg-color-"+$this.parents(".leadership-tab").data("highlight"));$this.addClass("bg-color-"+$this.parents(".leadership-tab").data("highlight"))});$("#leadership_accordion div.accordion_icon").on("click",function(){var r=jQuery(this).parent(),n=jQuery(this),u=r.hasClass("collapsed"),i,t;i=u?"close":"open";t=n.data("linkprefix")+i;n.attr("data-linkaction",t);n.attr("data-linktype",t);n.attr("data-analytics-link-name",t.toLowerCase());n.attr("data-analytics-content-type",t.toLowerCase())});function leadersNavigate(n){var t=$(".js-animate-leaders").css("top");t=t?t.replace(/[^-\d\.]/g,""):0;var i=n.replace(/[^0-9-]/g,""),u="-"+i.replace(/[^0-9]/g,""),r=$(".js-animate-leaders li").length-6;(i<0&&t>i*r||i>0&&t<0)&&$(".js-animate-leaders").filter(":not(:animated)").animate({top:n},"fast",function(){var t=$(".interactive-leadership-tab .icon-jump-links-arrow-up"),i=$(".interactive-leadership-tab .icon-jump-links-arrow-down"),n=$(".js-animate-leaders").css("top");n=n?n.replace(/[^-\d\.]/g,""):0;n>=0?$(t).addClass("hidden"):$(t).removeClass("hidden");n<=u*r?$(i).addClass("hidden"):$(i).removeClass("hidden")})}}if(ComponentRegistry.TabSectionModule){$(function(){var n=$(tabControl.tabPageElmSelector),t=$(n.closest("li.active")),i=$("span.active-arrow-up"),r=$("ul.dropdown-menu"),u=$("div#InclusionAndDiversityTab.tab-pane"),f=$("div#CorporateCitizenshipTab.tab-pane"),e=$(".tab-open-dropdown-wrapper ul.nav-tabs li > a");tabControl.init(n,t,i,r,u,f,e)});$(window).on("orientationchange",function(){tabControl.handleOrientationChangeAndResize()});$(window).on("resize",function(){tabControl.handleOrientationChangeAndResize()})}if(tabControl=function(){var w=function(n){n.each(function(){var n=$(this),t="";t=v(n);n.find("a").attr("class",t)})},b=function(){var n=$(this),t="",i;k(n);t=v(n);n.attr("class",t);i=$(".tab-control ul.nav-tabs li a.active").text();$(r).text(i);$tabBackgroundImg=n.data("bg");$tabBackgroundColor=n.data("bg-color");ut(n,$tabBackgroundImg,$tabBackgroundColor)},k=function(n){var t=n.closest(".tab-control");t.find('.nav.nav-tabs.row li[role="presentation"] > a').each(function(){$(this).attr("class","")})},v=function(n){return n.closest(".color-container, .image-container").length>0?"active":"active color-primary"},d=function(n){n.css("cssText","border-bottom: solid "+c(e,.85)+" 15px")},g=function(n){n.css("background-color",c(e,.85))},nt=function(n){var t=n.closest(".ui-container").attr("id");return e=$('div[data-content-id="'+t+'"] > div').css("background-color")},c=function(n,t){if($(l).length>0){var i=n.replace(/[^\d,.]/g,"").split(",");return n!="rgb(255, 255, 255)"?(i[0]*=.785,i[1]*=.415,i[2]*=.475,"rgba("+parseInt(i[0])+", "+parseInt(i[1])+", "+parseInt(i[2])+", "+t+")"):"rgba("+parseInt(i[0])+", "+parseInt(i[1])+", "+parseInt(i[2])+", "+t+")"}},tt=function(){$(r+","+i).on("click",function(r){r.preventDefault();$(n+" "+t).toggleClass("sub-menu-active");$(n+o+" "+i).toggleClass("dropdown-arrow-down dropdown-arrow-up")})},it=function(){var n=Math.max(document.documentElement.clientWidth,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);return{width:n,height:t}},y=function(){var t=it(),n=t.width;return n>=1024?!1:n>=768?!0:n>=360?!0:!0},p=function(){$(r).css("background-color",c(e,1));$(n).addClass("open-dropdown");$(n+" "+r).removeClass("hide");$(n+" "+i).removeClass("hide");$(n+" "+t+" "+a).addClass("hide");$(n+" "+t+" "+h).addClass("hide");$(n+" "+t+" "+u).addClass("hide");$(n+" "+t+" "+f).removeClass("hide");$(n+" "+s).hasClass("sub-menu-active")?($(n+" "+i).removeClass("dropdown-arrow-down").addClass("dropdown-arrow-up"),$(n+" "+t).addClass("sub-menu-active"),$(n+" "+f).removeClass("ui-icon-plus").addClass("ui-icon-minus")):$(n+" "+f).addClass("ui-icon-plus").removeClass("ui-icon-minus")},rt=function(){tabControl.checkDeviceIfMobileTabletPortrait()?tabControl.handleMobileAndTabletPortrait():($(tabControl.blockHowWeLead).removeClass("open-dropdown"),$(tabControl.blockHowWeLead+" "+tabControl.mobileDropdownMenu).addClass("hide"),$(tabControl.blockHowWeLead+" "+tabControl.dropdownArrow).addClass("hide"),$(tabControl.blockHowWeLead+" "+tabControl.navTabsElmSelector+" "+tabControl.pipelineElmSelector).removeClass("hide"),$(tabControl.blockHowWeLead+" "+tabControl.navTabsElmSelector+" "+tabControl.dropdownMenuCloseBtn).removeClass("hide"),$(tabControl.blockHowWeLead+" "+tabControl.navTabsElmSelector+" "+tabControl.dropdownToggle).removeClass("hide"),$(tabControl.blockHowWeLead+" "+tabControl.navTabsElmSelector+" "+tabControl.dropdownToggleMobile).addClass("hide"),$(tabControl.blockHowWeLead+" "+tabControl.navTabsElmSelector).hasClass("sub-menu-active")&&($(tabControl.blockHowWeLead+" "+tabControl.navTabsElmSelector).removeClass("sub-menu-active"),$(tabControl.blockHowWeLead+" "+tabControl.dropdownArrow).toggleClass("dropdown-arrow-down dropdown-arrow-up")),$(tabControl.blockHowWeLead+" "+tabControl.dropdownMenuOverlay).hasClass("sub-menu-active")?($(tabControl.blockHowWeLead+" "+tabControl.dropdownToggle).addClass("open-dropdown-menu"),$(tabControl.blockHowWeLead+" "+tabControl.dropdownMenuOverlay).addClass("sub-menu-active")):$(tabControl.blockHowWeLead+" "+tabControl.dropdownToggle).removeClass("open-dropdown-menu"))},ut=function(n,t,i){if(t!=undefined||i!=undefined){$(n.attr("href")).css("cssText","background-color: transparent");var r=n.closest(".tab-control").find(".tab-content"),u=$(n.attr("href")+".bg-color-"+i).css("background-color");$(r).css({"margin-bottom":"-1px","background-color":u,"background-size":"cover","background-image":"url('"+t+"')",width:"100%",display:"inline-block"});$(n.attr("href")).css("cssText","background-color: transparent !important")}},ft=function(n,t){n.find(".row").removeClass("row").addClass("tab-wrapper");t.find(".row").removeClass("row").addClass("tab-wrapper")},l='.tab-control .nav.nav-tabs.row li[role="presentation"] > a',n="#block-how-we-lead .tab-control",o=".open-dropdown",r=".tab-open-dropdown-wrapper .tab-control-dropdown",i=".tab-open-dropdown-wrapper span.icon-arrow-dropdown-jobs",t=".tab-open-dropdown-wrapper .nav-tabs",a="li.pipeline",u=".dropdown .dropdown-toggle",f=".dropdown .dropdown-toggle-mobile",s=".dropdown .dropdown-menu",h=".dropdown .dropdown-menu-close",e="",et=function(c,v,k,it,rt,ut,et){e=nt(c);y()?p():($(n).removeClass("open-dropdown"),$(n+" "+r).addClass("hide"),$(n+" "+i).addClass("hide"),$(n+" "+t+" "+a).removeClass("hide"),$(n+" "+t+" "+h).removeClass("hide"),$(n+" "+t+" "+u).removeClass("hide"),$(n+" "+t+" "+f).addClass("hide"));$(n).closest(".ui-content-box").css("cssText","padding: 0 !important");g(it);d(k);w(v);c.on("click",b);tt();$(u+","+h).on("click",function(){$(s).toggleClass("sub-menu-active");$(u).toggleClass("open-dropdown-menu")});$(f).on("click",function(){$(this).toggleClass("ui-icon-plus ui-icon-minus");$(s).toggleClass("sub-menu-active");$(this).toggleClass("open-dropdown-menu")});$(l).on("click",function(){$(n+o+" "+t).toggleClass("sub-menu-active");$(n+o+" "+i).toggleClass("dropdown-arrow-down dropdown-arrow-up")});et&&et.length<this.maximumNumberOfTabsDisplayed&&$(u).addClass("hide");ft(rt,ut)};return{init:et,tabPageElmSelector:l,checkDeviceIfMobileTabletPortrait:y,handleMobileAndTabletPortrait:p,handleOrientationChangeAndResize:rt,blockHowWeLead:n,dropDownMobileEnabled:o,mobileDropdownMenu:r,dropdownArrow:i,navTabsElmSelector:t,pipelineElmSelector:a,dropdownToggle:u,dropdownToggleMobile:f,dropdownMenuOverlay:s,dropdownMenuCloseBtn:h,blockInnerColor:e,maximumNumberOfTabsDisplayed:5}}(),ComponentRegistry.CardCarouselModule){var $tileContainer=$(".tile-container"),$tiles=$(".by-the-numbers .tile-container .tile"),$tabPane=$(".by-the-numbers").closest(".col-sm-12");$(".by-the-numbers").closest(".tab-control").length>0&&($tabPane=$(".tab-control .tab-pane .row"));$(function(){var n=$(".by-the-numbers .arrow-right .icon-arrowright2arrow-right2"),t=$(".by-the-numbers .arrow-left .icon-arrowright2arrow-right2"),r=$(".by-the-numbers .tile").length,i=!0;$(".by-the-numbers").closest(".tab-control").length>0&&(n=$(".tab-control .tab-pane .arrow-right .icon-arrowright2arrow-right2"),t=$(".tab-control .tab-pane .arrow-left .icon-arrowright2arrow-right2"),i=!1);cardCarouselModule.init($tileContainer,$tiles,$tabPane,n,t,i,r)});$(window).on("orientationchange",function(){cardCarouselModule.handleOrientationChange($tileContainer,$tabPane,$tiles)});$(window).on("resize",function(){cardCarouselModule.handleOrientationChange($tileContainer,$tabPane,$tiles)})}if(cardCarouselModule=function(){var n=function(){var t=cardCarouselModule.currentScreen.width,n;cardCarouselModule.lastTileIndex=t>1024?4:t>=1e3?4:t>=768?2:1;n=$(".by-the-numbers .tile");n.length>0&&(n.css("border-right","1px solid #949494"),$(n[cardCarouselModule.lastTileIndex]).css("border-right","none"))},u=function(){var i,n,r,t;cardCarouselModule.slideCount++;cardCarouselModule.lastTileIndex++;i=cardCarouselModule.currentScreen.width;n=0;n=i>=1e3?4:i>=768?2:1;cardCarouselModule.slideCount>=cardCarouselModule.cardsLength-n&&(cardCarouselModule.slideCount=cardCarouselModule.cardsLength-n,cardCarouselModule.$arrowRight.closest(".arrow-right").addClass("hidden"));cardCarouselModule.lastTileIndex>cardCarouselModule.cardsLength-1&&(cardCarouselModule.lastTileIndex=cardCarouselModule.cardsLength-1);cardCarouselModule.$arrowLeft.closest(".arrow-left").removeClass("hidden");r=cardCarouselModule.dimensions.cardWidth*(cardCarouselModule.slideCount-1);cardCarouselModule.$tileContainer.css("transform","translate(-"+r+"px, 0px)");t=$(".by-the-numbers .tile");t.length>0&&(t.css("border-right","1px solid #949494"),$(t[cardCarouselModule.lastTileIndex]).css("border-right","none"))},f=function(){var t,n;cardCarouselModule.slideCount--;cardCarouselModule.lastTileIndex--;cardCarouselModule.slideCount<=1&&(cardCarouselModule.slideCount=1,cardCarouselModule.$arrowLeft.closest(".arrow-left").addClass("hidden"));cardCarouselModule.lastTileIndex<0&&(cardCarouselModule.lastTileIndex=0);cardCarouselModule.$arrowRight.closest(".arrow-right").removeClass("hidden");t=cardCarouselModule.dimensions.cardWidth*(cardCarouselModule.slideCount-1);cardCarouselModule.$tileContainer.css("transform","translate(-"+t+"px, 0px)");n=$(".by-the-numbers .tile");n.length>0&&(n.css("border-right","1px solid #949494"),$(n[cardCarouselModule.lastTileIndex]).css("border-right","none"))},t=function(){var n=$(this),t=n.data("bgcolor");n.addClass("bg-color-"+t).addClass("card-hover")},i=function(){var n=$(this),t=n.data("bgcolor");n.removeClass("bg-color-"+t).removeClass("card-hover")},e=function(e,o,s,h,c,l,a){var v=this.getViewPort();this.currentScreen.width=v.width;this.currentScreen.height=v.height;this.setModuleDimensions();this.cardsLength=a;this.$arrowRight=h;this.$arrowLeft=c;this.$tileContainer=e;this.$arrowRight.on("click",u);this.$arrowLeft.on("click",f);if(n(),cardCarouselModule.currentScreen.width<=800&&cardCarouselModule.currentScreen.height<=1024||cardCarouselModule.currentScreen.height<=800&&cardCarouselModule.currentScreen.width<=1024){o.on("touchstart",t);o.on("touchend",i)}else o.on("mouseenter",t).on("mouseleave",i);e.css("width",this.dimensions.cardWidth*this.cardsLength);s.css("width",this.dimensions.tileContainerCardWidth);e.css("height","100%");o.css("width",this.dimensions.cardWidth);r();cardCarouselModule.currentScreen.width>=1e3&&cardCarouselModule.cardsLength<=5&&h.addClass("hidden");(l||cardCarouselModule.currentScreen.width<768)&&s.addClass("tab-pane-custom")},o=function(t,i,r){var u=cardCarouselModule.getViewPort(),f;cardCarouselModule.currentScreen.width=u.width;cardCarouselModule.currentScreen.height=u.height;cardCarouselModule.setModuleDimensions();cardCarouselModule.slideCount=1;cardCarouselModule.lastTileIndex=0;t.css("width",cardCarouselModule.dimensions.cardWidth*cardCarouselModule.cardsLength);i.css("width",cardCarouselModule.dimensions.tileContainerCardWidth);t.css("height","100%");r.css("width",cardCarouselModule.dimensions.cardWidth);t.css("transform","translate( 0px, 0px)");n();f=$(".tab-control .tab-pane .arrow-right .icon-arrowright2arrow-right2");cardCarouselModule.$arrowLeft.closest(".arrow-left").addClass("hidden");cardCarouselModule.currentScreen.width>=1e3&&cardCarouselModule.cardsLength<=5?cardCarouselModule.$arrowRight.closest(".arrow-right").addClass("hidden"):cardCarouselModule.$arrowRight.closest(".arrow-right").removeClass("hidden");cardCarouselModule.currentScreen.width<768&&i.addClass("tab-pane-custom")},s=function(){var n=Math.max(document.documentElement.clientWidth,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);return{width:n,height:t}},h=function(){var i=this.currentScreen.width,n=0,t=0;i>1150?(n=this.settings.laptop.cardWidth,t=this.settings.laptop.tileContainerCardWidth):i>=1024?(n=this.settings.tablet.iPadMiniLandscape.cardWidth,t=this.settings.tablet.iPadMiniLandscape.tileContainerCardWidth):i>=768?(n=this.settings.tablet.portrait.cardWidth,t=this.settings.tablet.portrait.tileContainerCardWidth):i>=360?(n=this.settings.mobile.portrait.cardWidth,t=this.settings.mobile.portrait.tileContainerCardWidth):(n=this.settings.mobile.iPhonePortrait.cardWidth,t=this.settings.mobile.iPhonePortrait.tileContainerCardWidth);this.dimensions.tileContainerCardWidth=t;this.dimensions.cardWidth=n},r=function(){for(var t,n,f,r,u=jQuery(".overflow-container .tile-container a.tile"),i=0;i<u.length;i++)t=jQuery(u[i]),n=t.prop("innerText"),(t.has("style")!==null||typeof t.has("style")!="undefined")&&(f=t.prop("innerHTML"),r=jQuery("<div>"+f+"<\/div>"),r.find("style").remove(),n=r.prop("innerText")),n=n!==null&&typeof n!="undefined"?n.trim().replace(/\s+/g," ").toLowerCase():"",n&&t.attr("data-analytics-link-name",n)};return{currentScreen:{width:"",heigh:""},dimensions:{cardWidth:0,tileContainerCardWidth:0},settings:{laptop:{cardWidth:200,tileContainerCardWidth:999},tablet:{portrait:{cardWidth:225,tileContainerCardWidth:675},iPadMiniLandscape:{cardWidth:180,tileContainerCardWidth:900}},mobile:{portrait:{cardWidth:154,tileContainerCardWidth:308},iPhonePortrait:{cardWidth:137,tileContainerCardWidth:274}}},cardsLength:0,slideCount:1,$arrowRight:null,$arrowLeft:null,$tileContainer:null,lastTileIndex:0,init:e,handleOrientationChange:o,getViewPort:s,setModuleDimensions:h,cardCarouselHeadlineLinkName:r}}(),ComponentRegistry.AdjacentTilesModule&&$(function(){window.performance&&performance.navigation.type==1&&sessionStorage.removeItem("loadedRowsCache");$(window).on("load resize orientationchange",function(){adjacentTileControl.init()});$(".adjacent-tiles-container").each(function(){var r=$(this).data("enable-view-more"),n,t=sessionStorage.getItem("loadedRowsCache"),i,u;t!==null?(n=t,$(this).find(".view-more-button").attr("data-incremental-variable",t)):n=$(this).data("loaded-rows-count")!==""?$(this).data("loaded-rows-count"):0;i=$(this).children(".col-sm-12");u=i.length;$("#webedit").length===0&&(i.hide(),n!==0&&($(this).children(".col-sm-12").slice(0,n).show(),n<u&&typeof r!="undefined"&&r&&$(this).find(".view-more-button").show()))});$(".view-more-button").on("click",function(){var t=$(this).closest(".adjacent-tiles-container"),i=t.children(".col-sm-12"),u=t.data("loaded-rows-count")!==""?t.data("loaded-rows-count"):0,n,r;typeof i!="undefined"&&i.length&&(n=Number($(this).attr("data-incremental-variable")),r=n+u<i.length,n=r?n+u:i.length,$(this).attr("data-incremental-variable",n),t.children(".col-sm-12").slice(0,n).show(),sessionStorage.setItem("loadedRowsCache",n),r||$(this).hide())});adjacentContainerDistance=$(".adjacent-tiles-container");isTablet()?adjacentContainerDistance.closest(".ui-content-box").attr("style","margin-top : 8px !important; margin-bottom : 6px !important; padding-bottom : 0 !important"):isMobile()?adjacentContainerDistance.closest(".ui-content-box").attr("style","margin-top : 8px !important; margin-bottom : -2px !important; padding-bottom : 0 !important"):adjacentContainerDistance.closest(".ui-content-box").attr("style","margin-top : 10px !important; margin-bottom : 8px !important; padding-bottom : 0 !important")}),adjacentTileControl=function(){var n=function(){function c(n){var t=$(".ytPlayer");t.attr("src",n)}var t,i,r,u,h,f,e,o;$("*").on("touchstart",function(){$(this).trigger("hover")}).on("touchend",function(){$(this).trigger("hover")});t=$(".adjacent-tiles");(isMobile()||window.matchMedia("(max-width: 767px)").matches)&&t.removeClass("zoom-onhover");i=$(".adjacent-tiles").parent("div");i.css("overflow","hidden");i.each(function(n){var t=$(this).find(".adjacent-tiles");t.attr("data-position",n);t.attr("data-analytics-module-name","tile "+ ++n)});r=$(".adjacent-tiles .articles");setTimeout(function(){r.each(function(){var n=$(this),u=n.data("tile-height"),r,o,s;u!=""&&n.css("height",u);var f=n.find(".image-box"),e=n.find(".card"),h=n.find(".banner-background"),t=e.height(),c=f.height(),l=f.data("card-type"),i=h.data("card-type");isMobile()?(e.hasClass("full-width")||(t>=260?n.css("height",t+40):(n.css("height","260px"),r=260-t,r<40&&(o=40-r,s=260+o,n.css("height",s)))),i=="Banner"&&(n.css("height","375px"),n.find(".banner-container").append(n.find(".cta-container")))):isTablet()&&window.matchMedia("(orientation: portrait)").matches||window.matchMedia("(max-width: 999px)").matches?i=="Banner"&&(n.css("height","375px"),n.find(".banner-container").append(n.find(".cta-container"))):i=="Banner"&&n.find(".banner-text").append(n.find(".cta-container"))})},500);u=$(".adjacent-tiles .image-box");h=$(".adjacent-tiles .image-box video");u.each(function(){var n=$(this),r=n.data("color-bg"),t=n.data("laptop-bg"),i=n.data("bgmobiles"),u=n.data("card-type");typeof t=="undefined"&&(t="");typeof i=="undefined"&&(i="");u=="Profile"&&n.attr("style","background-image: linear-gradient(#dfdfdf 0%, #dfdfdf 100%)");r!=""&&n.attr("style","background-image: linear-gradient("+r+")");t!=""&&n.attr("style","background-image: url("+t+")");isMobile()&&i!=""?(n.attr("style","background-image: url("+i+")"),n.children("video").addClass("hidden").prop("muted",!0)):n.children("video").removeClass("hidden").prop("muted",!1)});f=$(".adjacent-tiles .card");f.each(function(){var n=$(this),i=n.parent().find(".image-box").data("card-type"),s=n.find(".card-wrapper"),h=n.find(".profile-content"),c=n.data("card-width"),r=n.find(".profile-image"),u=n.hasClass("cardv-top"),f=n.hasClass("cardv-bottom"),e=$(".card.cardv-top"),o=$(".card.cardv-bottom"),t=n.data("cardcolor");u==!0&&e.addClass("hover-top");f==!0&&o.addClass("hover-bottom");t!=""&&n.attr("style","background-image: linear-gradient("+t+")");i=="Profile"&&r.length==0&&$(".profile-content").css("top","0")});e=$(".ytPlayer");e.each(function(){var n=$(this),t=n.data("url-orig");n.attr("src",t)});o=$("span.icon-play-2");o.on("click",function(){var n=$(this),i=$(".video-container"),r=$(".card"),u=$(".no-card"),t=n.closest(".articles").find(".ytPlayer").data("url"),f=n.closest(".articles").find(".ytPlayer").data("url-orig");i.addClass("hidden");r.removeClass("hidden");u.removeClass("hidden");n.closest(".articles").find(".video-container").removeClass("hidden");n.closest(".card").addClass("hidden");n.closest(".no-card").addClass("hidden");c(f);t&&n.closest(".articles").find("iframe").attr("src",t)});var t=$(".adjacent-tiles"),n=t.find(".banner-background"),s=t.find(".banner-text"),l=t.find(".banner-container .cta-container");setTimeout(function(){if(isDesktop()){t.each(function(){var t=$(this),o=t.find(".banner-background:hover").length,u,f;n.addClass("initial");n.removeClass("hover unhover");var e=t.find(".banner-container"),i=e.children().eq(0),r=e.children().eq(1),h=e.children().eq(2);h.addClass("hidden");o==0?(u=t.find(".banner-background").data("bg-color-orig"),f=t.find(".banner-background").data("image-orig"),f&&(i.removeClass("hidden"),r.addClass("hidden")),t.find(".banner-container .banner-text p").css({animation:"","animation-delay":""}),t.find(".banner-container .cta-container").css({animation:"","animation-delay":""})):(u=t.find(".banner-background").data("bg-color-hover"),f=t.find(".banner-background").data("image-hover"),f&&(i.addClass("hidden"),r.removeClass("hidden")),t.find(".banner-container .banner-text p").css({animation:"fadeInText .4s forwards","animation-delay":"50ms"}),t.find(".banner-container .cta-container").css({animation:"fadeInText .4s forwards","animation-delay":"50ms"}));u&&t.find(".banner-background").css("background-image","linear-gradient("+u+")");s.hasClass("align-right")?(i.attr("style","top: "),r.attr("style","top: ")):s.hasClass("align-left")&&(i.attr("style","top: "),r.attr("style","top: "));t.on("mouseenter",function(){var e=$(this).find(".banner-background").data("enablehover"),t,u,f;e&&(t=$(this),n.removeClass("initial unhover"),n.addClass("hover"),u=t.find(".banner-background").data("bg-color-hover"),f=t.find(".banner-background").data("image-hover"),u&&t.find(".banner-background").css("background-image","linear-gradient("+u+")"),f&&(i.addClass("hidden"),r.removeClass("hidden")),t.find(".banner-container .banner-text p").css({animation:"fadeInText .4s forwards","animation-delay":"50ms"}),t.find(".banner-container .cta-container").css({animation:"fadeInText .4s forwards","animation-delay":"50ms"}))}).on("mouseleave",function(){var t=$(this),u,f;n.removeClass("initial hover");n.addClass("unhover");u=t.find(".banner-background").data("bg-color-orig");f=t.find(".banner-background").data("image-orig");u&&t.find(".banner-background").css("background-image","linear-gradient("+u+")");f&&(i.removeClass("hidden"),r.addClass("hidden"));t.find(".banner-container .banner-text p").css({animation:"","animation-delay":""});t.find(".banner-container .cta-container").css({animation:"","animation-delay":""})})});var i=$("#block-footer.ui-container.color-container.row.c-right.c-ui-square");i.on("mouseenter",function(){var t=$(this),r=t.find(".banner-container"),f=r.children().eq(0),e=r.children().eq(1),i,u;n.removeClass("initial hover");n.addClass("unhover");i=t.find(".banner-background").data("bg-color-orig");u=t.find(".banner-background").data("image-orig");i&&t.find(".banner-background").css("background-image","linear-gradient("+i+")");u&&(f.removeClass("hidden"),e.addClass("hidden"))})}else t.each(function(){var n=$(this),t=n.find(".banner-background"),i=n.find(".banner-container"),e=i.children().eq(0),o=i.children().eq(1),r=i.children().eq(2),u=n.find(".banner-text"),f=t.data("bg-color-hover"),s=t.data("bg-color-orig");f!=""?t.css("background-image","linear-gradient("+f+")"):t.css("background-image","linear-gradient("+s+")");e.addClass("hidden");o.addClass("hidden");r.removeClass("hidden");u.hasClass("align-right")?r.attr("style","top: 35%"):u.hasClass("align-left")&&r.attr("style","top: 55%");n.off("mouseenter mouseleave")})},500);$(window).on("keyup",function(n){var u=$(".banner-background"),f=$(".banner-container").children().eq(0),e=$(".banner-container").children().eq(1),t=$(".banner-container .banner-text > p"),i=$(".banner-container .banner-text > .cta-container"),h=n.keyCode?n.keyCode:n.which,r=$(".banner-text > .cta-container > a:focus"),o=r.closest(".banner-background").data("bg-color-hover"),c=r.closest(".banner-background").data("image-hover"),s=$(".banner-background").data("bg-color-orig"),l=$(".banner-background").data("image-orig");h==9&&r.length?o&&(u.css("background-image","linear-gradient("+o+")"),c&&(f.addClass("hidden"),e.removeClass("hidden")),t.addClass("hovered-banner-text"),i.addClass("hovered-cta-link")):s&&(u.css("background-image","linear-gradient("+s+")"),l&&(f.removeClass("hidden"),e.addClass("hidden")),t.hasClass("hovered-banner-text")&&t.removeClass("hovered-banner-text"),i.hasClass("hovered-cta-link")&&i.removeClass("hovered-cta-link"))})};return{init:n}}(),ComponentRegistry.BioModule){function BioModuleFunc(){var t=$(window),e=$(".bio-persons"),i=$(".bio-persons-tile"),h=t.width()*.6+"px",l=t.width()*.56*2+"px",a=t.width()*.868*2+"px",v=t.width()*.595*2+"px",y=t.width()*.64*2+"px",p=t.width()*.4*2+"px",o=$(".bio-persons-anchor"),n=$(".bio-persons-details"),s=$(".bio-persons-details-content"),f=$(".bio-persons-details-text"),u=$(".bio-tile-caption"),w=$(".back-to-bio-tiles"),c=$(".bio-persons-view-more"),b=function(n,t){return this.$color=n.replace("rgb","rgba"),t?this.$color.replace(")",","+t+")"):n},r={init:function(){this.windowResize();this.tileControl();this.tileHover();this.backToTileView();this.tileCaptionDetect();this.viewMore();this.detailsScrollBarOnWindowResize()},updateTileHeight:function(){var n=i.width();if(this.isMobile()||this.isTabletPortrait()||this.isTabletLandscape()&&n<=100){switch(n){case 25:n=t.outerWidth(!0)/4;break;case 50:n=t.outerWidth(!0)/2}Math.floor(n)==33&&(n=t.outerWidth(!0)/3)}else n==25&&(n=t.outerWidth(!0)/4);o.css("height",n+"px");i.css("height",n+"px")},updateDetailsHeight:function(){$(window).width()>999?(n.css({height:h}),s.css({height:h})):$(window).width()>767?(n.css({height:l}),s.css({height:h})):$(window).height()>$(window).width()?(n.css({height:a}),s.css({height:v})):(n.css({height:y}),s.css({height:p}))},windowResize:function(){i.length>0&&(this.updateTileHeight(),this.updateDetailsHeight())},tileHover:function(){if(r.isTabletPortrait()||r.isMobile()){i.on("touchstart",function(){var n=$(this).find(u).data("bg-color"),t=$(this).find(".bio-tile-caption > span");$(this).find(u).toggleClass("bg-color-white");$(this).find(t).toggleClass("color-"+n)});i.on("touchend",function(){var n=$(this).find(u).data("bg-color"),t=$(this).find(".bio-tile-caption > span");$(this).find(u).toggleClass("bg-color-white");$(this).find(t).toggleClass("color-"+n)})}else i.on("hover",function(){var n=$(this).find(u).data("bg-color"),t=$(this).find(".bio-tile-caption > span");$(this).find(u).toggleClass("bg-color-white");$(this).find(t).toggleClass("color-"+n)})},backToTileView:function(){e.each(function(){var t=$(this);t.find(w).on("click",function(i){i.preventDefault();var u=t.offset().top,f=$("#header-topnav").outerHeight();$(this).closest(n).addClass("hidden");t.find(c).removeClass("hidden-twice");t.find(o).removeClass("hidden");r.isMobile()||r.isTabletPortrait()||r.isTabletLandscape()||setTimeout(function(){$("html, body").animate({scrollTop:u-f},100)},100)})})},tileCaptionDetect:function(){e.each(function(){$(this).find(i).each(function(){var n=$(".bio-tile-caption > span:first-child"),t=$(".bio-tile-caption > span:last-child");$(this).find(t).text()==""&&$(this).find(n).css("padding-top","8px")})})},tileControl:function(){e.each(function(){var t=$(this),e=t.css("background-color"),s=t.closest(".ui-content-box.inline"),l=t.closest(".ui-container.row-wide.clear-float").next("#block-footer"),h=$(".tab-control");t.closest(h).length<1&&s.css("cssText","margin-top: 0 !important; padding-bottom: 0px !important");t.find(u).css("background-color",b(e,.7));t.find(i).each(function(){var i=$(this).attr("data-image-src");typeof i!=typeof undefined&&i!==!1&&($(this).css("background","url("+i+")"),$(this).parent(this.$bioPersonsAnchor).next(n).css("background","url("+i+")"));$(this).parent(o).on("click",function(i){i.preventDefault();var u=t.offset().top,e=$("#header-topnav").outerHeight();t.find(o).addClass("hidden");t.find(c).addClass("hidden-twice");$(this).next(n).removeClass("hidden");r.isMobile()||r.isTabletLandscape()||r.isTabletPortrait()||$("html, body").animate({scrollTop:u-e},500);$(this).next(n).find(f).find("p").parent().is(".overview")&&$(this).next(n).find(f).find("p").unwrap();$(this).next(n).find(".scroll-bar.vertical").remove();$(this).next(n).find(f).customScrollbar({hScroll:!1,vScroll:!0,animationSpeed:5e3,wheelSpeed:25})})})})},detailsScrollBarOnWindowResize:function(){e.each(function(){$(this).find(n).each(function(){$(this).hasClass("hidden")||($(this).find(f).find("p").unwrap(),$(this).find(f).find(".scroll-bar.vertical").remove(),$(this).find(f).customScrollbar({hScroll:!1,vScroll:!0,animationSpeed:5e3,wheelSpeed:25}))})})},isMobile:function(){var n=!1,t=$(window).width();return t<=767&&(n=!0),n},isTabletLandscape:function(){var t=!1,n=$(window).width(),i=$(window).height();return n>767&&n<1367&&n>i&&(t=!0),t},isTabletPortrait:function(){var t=!1,n=$(window).width(),i=$(window).height();return n>767&&n<1025&&i>n&&(t=!0),t},viewMore:function(){e.each(function(){var n=$(this);n.find(c).on("click",function(){n.find(i).removeClass("hidden");n.css("overflow","auto");$(this).addClass("hidden")})})}};r.init()}function HideModulesFuncInMobile(){var i=$(".bio-persons"),n=$(".bio-persons-tile"),t=$(".bio-persons-view-more"),r={isMobile:function(){var n=!1,t=$(window).width();return t<=767&&(n=!0),n},hideBioModules:function(){isMobile()?i.each(function(){var i=$(this),r;$(this).find(n).slice(4).first().hasClass("hidden")||(r=i.find(n),i.find(n).slice(4).addClass("hidden"),r.length>4?(i.css("overflow","hidden"),i.find(t).removeClass("hidden")):i.css("overflow","auto"))}):t.addClass("hidden")}};r.hideBioModules()}$(function(){BioModuleFunc();HideModulesFuncInMobile()});$(window).on("resize",function(){BioModuleFunc()});$(window).on("orientationchange",function(){BioModuleFunc()})}(function(n,t){typeof define=="function"&&define.amd?(define.jquery,function(i){return n.WhyAccentureModule=t(i)}):(n.WhyAccentureModule=t(n.jQuery,n.jsUtility),ComponentRegistry.WhyAccentureModule&&$(function(){WhyAccentureModule.AddAnalyticsLinkTrackingAttribute()}))})(typeof self!="undefined"?self:this,function(n){var t=function(){var i=n("#why-accenture-carousel").find("a"),u=n.trim(n("#why-accenture-carousel").parents(".ui-container").children(".block-title").text()),r=n("#why-accenture-carousel").find("button"),t;for(r.attr({"data-analytics-link-name":r.text().toLowerCase(),"data-analytics-content-type":"cta"}),t=0;t<i.length;t++)n(i[t]).attr({"data-analytics-link-name":n(i[t]).text(),"data-analytics-content-type":"cta"})};return{AddAnalyticsLinkTrackingAttribute:t}}),function(n,t){typeof define=="function"&&define.amd?(define.jquery,function(i){return n.PullQuote=t(i)}):(n.PullQuote=t(n.jQuery,n.jsUtility),ComponentRegistry.PullQuote&&$(function(){PullQuote.setPullQuote()}))}(typeof self!="undefined"?self:this,function(n){var t=function(){var r=n("div.component.pull-quote-margin"),t=r.find("a");for(i=0;i<t.length;i++)n(t[i]).children("span").hasClass("DownloadItemTitle")?n(t[i]).attr({"data-linktype":"engagement","data-analytics-link-name":n(t[i]).text().toLowerCase(),"data-analytics-content-type":"engagement"}):n(t[i]).children("span").hasClass("social-likes__icon")||n(t[i]).attr({"data-analytics-link-name":n(t[i]).text().toLowerCase(),"data-analytics-content-type":"cta"})};return{setPullQuote:t}}),function(n,t){typeof define=="function"&&define.amd?(define.jquery,function(i){return n.OptInModule=t(i)}):(n.OptInModule=t(n.jQuery,n.jsUtility),ComponentRegistry.OptInModule&&$(function(){OptInModule.setOptIn()}))}(typeof self!="undefined"?self:this,function(n){var t=function(){var t=n("#module-email-alerts-optin").find("a").text().trim().toLowerCase();n("#module-email-alerts-optin").find("a").attr({"data-analytics-link-name":t,"data-analytics-content-type":"cta"})};return{setOptIn:t}}),function(n,t){typeof define=="function"&&define.amd?(define.jquery,function(i){return n.SelfSelectionModule=t(i)}):(n.SelfSelectionModule=t(n.jQuery,n.jsUtility),ComponentRegistry.SelfSelection&&$(function(){SelfSelectionModule.setSelfSelection()}))}(typeof self!="undefined"?self:this,function(n){var t=function(){for(var f,i,r,u=n("#careers_packery").find(".packery-component .module-article"),t=1;t<u.length;t++)n(u[t])[0].getElementsByClassName("self-selection").length&&(f=t+1);i=n("#careers_packery").find(".packery-component .module-article .self-selection");r=i.find("p").text().toLowerCase()+"~"+f;i.find("button").attr("data-analytics-content-type",r);i.find("li > a").attr("data-analytics-content-type",r)};return{setSelfSelection:t}}),function(n,t){typeof define=="function"&&define.amd?(define.jquery,function(i){return n.CareersSignUpModule=t(i)}):(n.CareersSignUpModule=t(n.jQuery,n.jsUtility),ComponentRegistry.CareersSignUpModule&&$(function(){CareersSignUpModule.setCareersSignUpModule()}))}(typeof self!="undefined"?self:this,function(n){var t=function(){var r=n("#block-block"),t,i;for(r.length>0&&r.attr("data-analytics-template-zone",r.attr("id").toLowerCase()),t=n(".sign-in-register-module a"),i=0;i<t.length;i++)t.length>0&&(t.eq(i).attr({"data-analytics-link-name":t.eq(i).text().trim().toLowerCase(),"data-analytics-content-type":"call to action","analytics-no-content-click":"true"}),t.eq(i).text().toLowerCase().replace(/[^a-zA-Z0-9+]/g,"").indexOf("signin")>=0&&t.eq(i).attr("data-analytics-content-type","sign in/out"))};return{setCareersSignUpModule:t}}),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(i){return n.ReinventLocation=t(i)}):n.ReinventLocation=t(n.jQuery,n.jsUtility)}(typeof self!="undefined"?self:this,function(n,t){function vi(n){var t=1;return n[0]==="-"&&(t=-1,n=n.substr(1)),function(i,r){if(i[n]!=null&&r[n]!=null)return t==-1?r[n].localeCompare(i[n]):i[n].localeCompare(r[n])}}var ut=n(".reinvent-locations-hero-module"),bi=n(".reinvent-location-hero-content-container"),r=n(".reinvent-locations-hero-module .reinvent-location-keywords"),v=n(".reinvent-locations-hero-module .reinvent-location-button"),e=n(".reinvent-location-result-area"),o=e.find(".no-result-block"),i=e.find(".country-header"),l=e.find(".location-result-text"),pt=i.find(".region-tag-link"),ft=n(".office-location-results-area"),lt="",s="",p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,ni="",k="",f="",y=!0,wt="",at=n(".reinvent-location-result-area .reinvent-location-search-for-keyword"),nt=!1,et=!1,tt=!1,w=!1,ti={region:[],country:[],results:[]},ki="Internal office image for",di="External office image for",it="map",h=[],rt,gi=150,vt=!1,ii=0,ot=0,ri=0,ui={Office:0,Geo:1},bt=0,fi="https://www.bing.com/maps?cp=@lat~@lon&amp;lvl=18&amp;style=r&amp;sp=point.@lat_@lon_@locationName",ei="https://www.bing.com/maps?rtp=~pos.@lat_@lon_@locationName&amp;cp=@lat~@lon&amp;lvl=18&amp;style=r&amp;sp=point.@lat_@lon",kt="https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/@query?ms=335,190&amp;zl=3&amp;&amp;c=en-US&amp;he=1&amp;key=Av8n4HG3gyMUjosR2nE-4lvj9nhmbb5Ntw6AzCKWIaTwLHJwPsDXN1Ny4crU6IFT",oi="/{0}/about/locations/office-location-map?lat=@lat&lon=@lon",si="/{0}/about/locations/office-location-map?lat=@lat&lon=@lon&da=@da",u={},yt;bi.on("submit",function(){event.preventDefault();yt(r.typeahead("val"))});r.on("keyup",function(t){var i=n(".reinvent-locations-hero-module .tt-dataset-keywordSuggestions .tt-suggestions");e.is(":visible")||(v.attr("href",ut.attr("data-attribute-hero-home-link").replace("{0}",siteName)),v.attr("href",v.attr("href")));t.keyCode===27&&i.hide();(t.keyCode===38||t.keyCode===40)&&i.show()});n(window).on("scroll",function(){if(vt===!0){var t,i,r,u;t=n(".office-location-details-container").offset().top;i=n(window).scrollTop();bt=n(".office-location-details-container").height();r=i-t;u=document.documentElement.clientHeight;u+r>=bt&&(vt=!1,rt===!0&&ai())}});n(window).on("resize",function(){var f=n(".reinvent-location-result-area .office-locations-details"),o=n(".reinvent-location-result-area .office-group-list .office-locations-details"),c=n(".reinvent-location-result-area .visit-website-header-container"),s=i.find(".region-tag-link"),h=n(".reinvent-location-result-area .office-locations-details-card"),r=0;e.length!==0&&(wi(),s&&s.each(function(){t.isMobile()?n(this).css("padding-bottom","0"):n(this).removeAttr("style")}),h&&o.length===0&&(h.each(function(){var i=n(this).find(".maps-container"),f=n(this).find(".office-locations-details"),e=fi.replace(/@lat/g,u[r].latitude).replace(/@lon/g,u[r].longitude).replace("@locationName",u[r].locationname),o=oi.replace("{0}",st()).replace(/@lat/g,u[r].latitude).replace(/@lon/g,u[r].longitude);t.isMobile()?(u[r].latitude&&u[r].longitude&&i.find("a").attr("href",o),i.after(f)):(u[r].latitude&&u[r].longitude&&i.find("a").attr("href",e),i.before(f));r+=1}),r=0),f&&o.length==0&&(f.each(function(){var o=n(this).find(".address-container"),s=n(this).find(".contact-container"),f=n(this).find(".office-details-link"),i=n(this).find(".get-directions-container"),e=n(this).find(".website-link-container"),h=ei.replace(/@lat/g,u[r].latitude).replace(/@lon/g,u[r].longitude).replace("@locationName",u[r].locationname),c=u[r].locationname!==""?u[r].locationname.replace(/^Accenture\s/i,""):"",l=si.replace("{0}",st()).replace(/@lat/g,u[r].latitude).replace(/@lon/g,u[r].longitude).replace(/@da/g,c);u[r].latitude&&u[r].longitude&&i.find("a").attr("href",h);t.isTablet()||t.isMobile()?(t.isMobile()&&u[r].latitude&&u[r].longitude&&i.find("a").attr("href",l),i.appendTo(o),e.appendTo(s)):(i.appendTo(f),e.appendTo(f));r+=1}),r=0),t.isMobile()||t.isTablet()?n(".reinvent-location-result-area .website-link-container").each(function(){var t=n(this),i=t.siblings(".phone-container"),r=t.siblings(".fax-container");i.css("display")=="none"&&r.css("display")=="none"&&t.css("padding-top","0")}):n(".reinvent-location-result-area .website-link-container").each(function(){var t=n(this);$attr=t.attr("style");typeof attr!=typeof undefined&&attr!==!1&&$attr.removeAttr("style")}))});r.on("typeahead:selected",function(n,t){var i=event.keyCode;i===9?v.trigger("focus"):yt(t.value)});v.on("click",function(){e.length===0&&(window.location.href=v.attr("href"))});yt=function(n){wt=n.trim()!==""?ci(wt,"loc",t.ReplaceEncodedKeyword(b(n))):"";e.length!==0?a():window.location.href=ut.attr("data-attribute-hero-home-link").replace("{0}",siteName)+wt;r.trigger("blur")};n(document).on("click",".reinvent-location-result-area .region-tag-link",function(){pt.text().indexOf("Location Home")>=0||(r.typeahead("val",n(this).text()),a())});n(document).on("keyup",".reinvent-location-result-area .region-tag-link",function(t){pt.text().indexOf("Location Home")>=0||t.keyCode===13&&(r.typeahead("val",n(this).text()),a())});var st=function(){var n=window.location.pathname,t;return n?(t=n.split("/"),n=t[1]):n="",n},a=function(){var n=b(r.val());at.html("Search for "+n+" is completed.");k!==r.typeahead("val")&&e.length!==0&&(nr(),li())},nr=function(){r.typeahead("val").trim()!==""?hi("loc",t.ReplaceEncodedKeyword(r.typeahead("val"))):hi("","")},tr=function(n,t){var u=t.split("?")[0],f,i=[],e=t.indexOf("?")!==-1?t.split("?")[1]:"",r;if(e!==""){for(i=e.split("&"),r=i.length-1;r>=0;r-=1)f=i[r].split("=")[0],f===n&&i.splice(r,1);u=u+"?"+i.join("&")}return u},hi=function(n,t){t=b(t);n===""&&t===""?(p=window.location.protocol+"//"+window.location.host+window.location.pathname+tr("loc",window.location.search),p.substr(-1)==="?"&&(p=p.replace("?",""))):p=ci(p,n,t);window.history.pushState({path:p},"",p)},ci=function(n,t,i){t=b(t);var r=new RegExp("(\\?|\\&)"+t+"=.*?(?=(&|$))");return r.test(n)?n.replace(r,"$1"+t+"="+i):/\?.+$/.test(n)?n+"&"+t+"="+i:n+"?"+t+"="+i},ir=function(){(function(n){n.URLSearchParams=n.URLSearchParams||function(n){var t=this;t.searchString=n;t.get=function(n){var i=new RegExp("[?&]"+n+"=([^&#]*)").exec(t.searchString);return i===null?null:decodeURIComponent(i[1])||0}}})(window)},dt=function(t){IsIE()&&(n(".office-details-link-"+t+" .get-directions-container a").removeClass("cta"),n(".office-details-link-"+t+" .website-link-container a").removeClass("cta"))},li=function(){var u=n('meta[property="og:title"]').attr("content");if(k=r.typeahead("val"),s=k==="<"?k:t.removeTags(r.typeahead("val")),ot=0,s.length>=2)lt=s,rt=!1,ti={region:[],country:[],results:[]},ai(),at.removeAttr("aria-live");else if(s.length===1)g(),pi(),ft.empty(),o.removeClass("hide");else if(window.document.title=u,ft.empty(),g(),at.attr("aria-live","off"),i.find(".country-name-text").html("Country Name"),o.addClass("hide"),l.removeClass("hide"),l.is(":visible")){if(l.attr("tabindex","0"),IsIE()||t.isFirefox())l.on("focus",function(){l.css("outline","none")});l.trigger("focus");l.removeAttr("tabindex")}},ai=function(){t.removeTags(r.typeahead("val"))===lt&&n.ajax({url:"/api/sitecore/LocationsHeroModule/GetLocation",data:{query:b(lt),from:ot,size:gi,language:language},contentType:"application/json; charset=utf-8",type:"GET",dataType:"json",cache:!1,error:function(){},success:function(t){var i=ti.results;rt===!0?i[0].documents=i[0].documents.concat(t.documents):i.push(t);er(i[0].documents);rr();rt===!0&&n(window).scrollTop(bt);t&&t.documents.length>0&&ur(t.documents.length,t.total,ui.Office)}})},rr=function(){var n=ft.find(".office-details-0");if(o.is(":visible")){if(o.attr("tabindex","0"),IsIE()||t.isFirefox())o.on("focus",function(){o.css("outline","none")});o.trigger("focus");o.removeAttr("tabindex")}else if(i.is(":visible")){if(i.attr("tabindex","0"),IsIE()||t.isFirefox())i.on("focus",function(){i.css("outline","none")});i.trigger("focus");i.removeAttr("tabindex")}else if(n.is(":visible")){if(n.attr("tabindex","0"),IsIE()||t.isFirefox())n.on("focus",function(){n.css("outline","none")});n.trigger("focus");n.removeAttr("tabindex")}},ur=function(n,t,i){rt=!1;ii=t;ri=n;ot+=ri;ot>0&&ot<ii?(vt=!0,i===ui.Office&&(rt=!0)):vt=!1},fr=function(t){var r,u,i;for(t=b(n(".reinvent-location-keywords").val()).toLowerCase(),r=t.split(" "),u=[],i=0;i<r.length;i++)u.push(r[i].charAt(0).toUpperCase()+r[i].slice(1)),newKeyword=u.join(" ");return newKeyword};var er=function(t){var c=!1,l=n('meta[property="og:title"]').attr("content"),e=fr(lt),r,u,o,s;if(t&&(t=t.filter(function(n){return n.ReinventRegion!==null&&n.ReinventRegion!==""})),t&&t.length>0){if(window.document.title=e+" "+l,g(),ft.empty(),t.length===1&&(c=sr(t[0])),w=lr(t),nt=yi(t),et=hr(t),tt=cr(t),c===!0||w===!1&&nt===!1&&tt===!1&&et===!1?(y=!1,i.find(".country-name-text").html("Country Name"),(w===!0||nt===!0||tt===!0||et===!0)&&(y=!0)):y=!0,w||pt.removeAttr("href"),w===!0)for(f=document.createElement("div"),n(f).addClass("office-group-list col-xs-12"),n(".office-location-results-area").append(f),t.sort(vi("Country")),r=0;r<t.length;r++)u=t[r].ReinventRegion,u!==null&&u!==""&&u==e&&n.inArray(t[r].Country,h)==-1&&(y===!0&&(ct(),ht(t[r],t[r].Country,t[r].ReinventRegion,t[r].CountryURL,t[r].ContactUsURL)),h.push(t[r].Country),pr(t[r],r));else if(nt===!0)for(f=document.createElement("div"),n(f).addClass("office-group-list col-xs-12"),n(".office-location-results-area").append(f),t.sort(vi("StateProvince")),r=0;r<t.length;r++)u=t[r].Country,u!==null&&u!==""&&e&&n.inArray(t[r].StateProvince,h)==-1&&(y===!0&&(ct(),ht(t[r],t[r].Country,t[r].ReinventRegion,t[r].CountryURL,t[r].ContactUsURL)),wr(t[r],r),h.push(t[r].StateProvince));else if(et===!0)for(f=document.createElement("div"),n(f).addClass("office-location-details-container col-xs-12"),n(".office-location-results-area").append(f),r=0;r<t.length;r++)u=t[r].Country,u!==null&&u!==""&&e&&u.toLowerCase()==e.toLowerCase()&&n.inArray(t[r].StateProvince,h)==-1&&(y===!0&&(ct(),ht(t[r],t[r].Country,t[r].ReinventRegion,t[r].CountryURL,t[r].ContactUsURL)),gt(t[r],r),h.push(o+"-"+s+"-"+t[r].LocationName+"-"+t[r].Address));else if(tt===!0)for(f=document.createElement("div"),n(f).addClass("office-location-details-container col-xs-12"),n(".office-location-results-area").append(f),r=0;r<t.length;r++)u=t[r].StateProvince,u!==null&&u!==""&&e&&u.toLowerCase()==e.toLowerCase()&&n.inArray(t[r].StateProvince,h)==-1&&(y===!0&&(ct(),ht(t[r],t[r].Country,t[r].ReinventRegion,t[r].CountryURL,t[r].ContactUsURL)),gt(t[r],r),h.push(o+"-"+s+"-"+t[r].LocationName+"-"+t[r].Address));else for(f=document.createElement("div"),n(f).addClass("office-location-details-container col-xs-12"),n(".office-location-results-area").append(f),r=0;r<t.length;r++)u=t[r].ReinventRegion,o=t[r].StateProvince!=null?t[r].StateProvince.replace(/\s+/g,""):"nostate",s=t[r].CityName?t[r].CityName.replace(/\s+/g,""):"",u!==null&&u!==""&&n.inArray(o+"-"+s+"-"+t[r].LocationName+"-"+t[r].Address,h)==-1&&(y===!0&&(ct(),ht(t[r],t[r].Country,t[r].ReinventRegion,t[r].CountryURL,t[r].ContactUsURL)),gt(t[r],r),h.push(o+"-"+s+"-"+t[r].LocationName+"-"+t[r].Address));y===!0?or():n(".reinvent-location-result-area .office-location-results-block-container-0").css("margin-top","0")}else window.document.title=l,g(),ft.empty(),pi();h=[]},or=function(){n(".office-location-results-area .office-name").each(function(){var t=this.attributes[0].value;n(this).replaceWith("<h3 class='"+t+"'>"+n(this).html()+"<\/h3>")})},sr=function(n){var t=n.Address+n.CityName+n.LocationName+n.ContactFax+n.ContactTel,i=t.replace(/ +/g,"").toLowerCase().indexOf(s.replace(/ +/g,"").toLowerCase()),r=n.Country;return r.toLowerCase()!==s.toLowerCase()&&(tt===!1&&yi===!1&&w===!1||i>=0)?(g(),!0):!1},yi=function(t){for(var u,f,i={country:[],state:[]},r=0;r<t.length;r++)u=t[r].Country,f=t[r].StateProvince,n.inArray(u,i.country)===-1&&i.country.push(u),f&&n.inArray(f,i.state)===-1&&i.state.push(u);return i.country.length===1&&i.state.length>0&&s.toLowerCase()===i.country[0].toLowerCase()?!0:!1},hr=function(t){for(var r,f,i={country:[],state:[]},u=0;u<t.length;u++)r=t[u].Country,f=t[u].StateProvince,(k===r||k.toLowerCase()===r.toLowerCase())&&(n.inArray(r,i.country)===-1&&i.country.push(r),f&&n.inArray(f,i.state)===-1&&i.state.push(f));return i.country.length===1&&i.state.length===0&&s.toLowerCase()===i.country[0].toLowerCase()?!0:!1},cr=function(t){for(var f,r,i={country:[],state:[]},u=0;u<t.length;u++)f=t[u].Country,r=t[u].StateProvince,r&&k.toLowerCase()===r.toLowerCase()&&(f&&n.inArray(f,i.country)===-1&&i.country.push(f),r&&n.inArray(r,i.state)===-1&&i.state.push(r));return i.state.length===1&&i.country.length===1&&s.toLowerCase()===i.state[0].toLowerCase()?!0:!1},lr=function(n){for(var u,i,r=!1,f=[],t=0;t<n.length;t++)u=n[t].ReinventRegion,u&&s.toLowerCase()&&(s.toLowerCase()===u.toLowerCase()?r=!0:f.push(t));if(r===!0)for(i=0;i<f.length;i++)n[i].ReinventRegion="";return r},ht=function(r,u,f,e,o){var a=u,h=f,g=r.StateProvince,it=e,rt=o,d="",v=i.find(".country-name-text"),s=i.find(".region-tag-link"),y=i.find(".visit-website-header-container"),p=i.find(".contact-us-header-container"),b=n(".office-location-results-translations").attr("data-attribute-location-home"),l=document.createElement("a"),k=document.createElement("span");d=i.attr("data-attribute-home-link").replace("{0}",st());ar(a,rt);vr(a,it);v.html(a);s.html(h);s.attr("tabindex",0);s.attr("data-analytics-content-type","engagement");s.attr("data-linktype","engagement");s.attr("data-analytics-link-name",h);s.attr("role","button");s.attr("aria-label",c.replace("{0}",a));n(".region-tag-divider").remove();n(".region-tag2").remove();i.find("#visitWebsite").css("display","none");w===!0?(v.text(h),s.empty().text(b),s.attr("data-analytics-link-name",b.toLowerCase()),s.attr("href",d),s.attr("aria-label",c.replace("{0}",b)),p.hide(),y.hide()):tt===!0?(n(k).attr("class","region-tag-divider"),n(l).attr("class","corporate-semibold topic-link region-tag-link region-tag2"),n(l).attr("tabindex",0),n(l).attr("data-analytics-content-type","engagement"),n(l).attr("data-linktype","engagement"),n(l).attr("data-analytics-link-name",h),n(l).attr("role","button"),n(l).attr("aria-label",c.replace("{0}",h)),s.removeAttr("href"),v.text(g),s.text(a),s.attr("data-analytics-link-name",a),n(l).text(h),n(k).append("&nbsp;•&nbsp;"),n(k).insertAfter(".region-tag-link"),n(l).insertAfter(".region-tag-divider"),p.show(),y.show(),t.isMobile()&&i.find(".region-tag-link").each(function(){n(this).css("padding-bottom","0")})):nt===!0||et===!0?(s.attr("aria-label",c.replace("{0}",h)),s.removeAttr("href"),v.text(a),s.text(h),s.attr("data-analytics-link-name",h),p.show(),y.show()):(p.hide(),y.hide())},ar=function(n,t){var r=i.attr("data-attribute-contact-us").replace("{0}",n);i.find(".contact-us").html(r);i.find(".contact-us-link").attr("href",t);i.find(".contact-us-link").attr("data-analytics-content-type","engagement");i.find(".contact-us-link").attr("data-linktype","engagement");i.find(".contact-us-link").attr("data-analytics-link-name",r.toLowerCase())},vr=function(n,t){var r=i.attr("data-attribute-visit-website").replace("{0}",n);i.find(".visit-website").html(r);i.find(".visit-website-link").attr("href",t);i.find(".visit-website-link").attr("data-analytics-content-type","engagement");i.find(".visit-website-link").attr("data-linktype","engagement");i.find(".visit-website-link").attr("data-analytics-link-name",r.toLowerCase())},d=n(".office-location-results-translations"),c=d.attr("data-attribute-location-office-group-list-aria-label"),yr=d.attr("data-attribute-location-office-image-group-list-aria-label"),gt=function(e,o){function yi(){var u=e.ExternalImageURL!==""?"Internal":e.InternalImageURL!==""?"External":"Map",f=e.ExternalImageURL!==""?e.ExternalImageAltTxt:e.InternalImageURL!==""?e.InternalImageAltTxt:k+" "+it,t,i,r;u!=="Map"?(t=e.ExternalImageURL!==""?e.ExternalImageURL:e.InternalImageURL!==""?e.InternalImageURL:g,i=e.ExternalImageURL!==""?"office-locations-external-img-only":e.InternalImageURL!==""?"office-locations-internal-img-only":"",n(v).append(ct+lt+"'><div role='group' aria-label='"+ut+"' class='image-group-list-"+o+"'><img src='"+g+"' class='office-locations-map-internal-external-image'><\/img> <\/div> <\/a>"),n(".image-group-list-"+o+" .office-locations-map-internal-external-image").attr("alt",k+" "+it),r=n(v).find(".image-group-list-"+o),n(".office-location-results-block-container-"+o+" .maps-container").css("height",tt+"px"),n(".office-location-results-block-container-"+o+" .image-group-list-"+o).css("height",tt+"px"),r.append("<img src='"+t+"' role='presentation' class='"+i+"' alt ='"+f+"' ><\/img>")):n(v).append(ct+lt+"'><img src='"+g+"' class='office-locations-map-image' alt ='"+e.LocationName+", "+k+" "+it+"'><\/img><\/a>")}var or=i.attr("data-attribute-visit-website-link"),l=e.Country,y=e.StateProvince,vt=e.StateCode,ot=e.PostalZipCode,at=e.ReinventRegion,p=e.ContactTel,b=e.ContactFax,bi=e.LocationURL,rt="",tt,et,pi,wi,ni;vt!==null?l==="United States"?rt=", "+vt+" ":l==="Canada"||l==="Australia"?rt=", "+l+", "+vt+", ":ot===null?(ot=" ",rt=", "+l):(rt=", "+l,ot=", "+ot):rt=" "+l;y=y===null?"":y;e.Address===null&&(e.Address="");p===null&&(p="",lblPhone="");b===null&&(b="",lblFax="");e.LocationName===null&&(e.LocationName="");e.Latitude===null&&(e.Latitude="");e.Longitude===null&&(e.Longitude="");e.CityName===null&&(e.CityName="");e.InternalImageURL===null&&(e.InternalImageURL="");e.ExternalImageURL===null&&(e.ExternalImageURL="");e.ExternalImageAltTxt===null&&(e.ExternalImageAltTxt="");e.InternallImageAltTxt===null&&(e.InternallImageAltTxt="");u[o]={longitude:e.Longitude,latitude:e.Latitude,locationname:e.LocationName};var yt=d.attr("data-attribute-location-address"),ti=d.attr("data-attribute-location-contact"),pt=d.attr("data-attribute-location-get-direction"),wt=d.attr("data-attribute-location-visit-website"),ii=d.attr("data-attribute-location-visit-website-aria"),ri="",v=".office-location-results-block-container-"+o,bt=".office-location-tags-container-"+o,gi=".office-name-content-"+o,kt=".office-location-address-content-"+o,ui=".office-location-contact-tel-content-"+o,hi=".office-location-contact-fax-content-"+o,s=".office-country-content-"+o,h=".office-region-content-"+o,ht=".office-location-contact-container-"+o,ci="<span class='address-header-text corporate-semibold'>",nr="data-analytics-link-name='"+pt.toLowerCase()+"' data-analytics-content-type='engagement' data-linktype='engagement'",tr="data-analytics-link-name='"+wt.toLowerCase()+"' data-analytics-content-type='engagement' data-linktype='engagement'",ir="data-analytics-link-name='"+e.LocationName.toLowerCase()+" map' data-analytics-content-type='engagement' data-linktype='engagement'",li="<div class='get-directions-container col-md-6 col-lg-6'><a "+nr+" aria-describedby ='instructionsForGetDirection-"+o+"' class='cta get-directions-cta'target='_blank'><i class='ion-ios-location'><\/i><span class='address-link-text corporate-regular'>";ii.length!==0&&(ri=ii.replace("{0}",l));var ai="<div class='website-link-container visit-website-link col-md-6 col-lg-6'><a aria-label = '"+ri+"' class='cta visit-website-cta'"+tr+" href="+bi+"><i class='ion-android-desktop'><\/i><span class='website-link-text visit-website corporate-regular'>",rr=".office-location-map-content-"+o,k=yt+": "+e.Address,ut=yr.replace("{0}",e.LocationName),ct="<a "+ir+"aria-describedby='imageForMaps-"+o+"'target='_blank' class='maps-container col-xs-12 col-sm-6 office-location-map-content-"+o+" office-location-map-content' href='",ft=".office-details-"+o,gt=ft+" .get-directions-container a";jQuery("<div/>",{"class":"office-locations-details-card col-xs-12 office-location-results-block-container-"+o}).appendTo(f);t.isMobile()?jQuery("<div/>",{"class":"office-locations-details col-xs-12 col-sm-6 office-details-"+o}).appendTo(v):jQuery("<div/>",{"class":"office-locations-details col-xs-12 col-sm-6 office-details-"+o}).appendTo(v);jQuery("<h2/>",{"class":"office-name corporate-semibold office-name-content-"+o}).appendTo(ft);jQuery("<div/>",{"class":"region-tag-container office-location-tags-container-"+o}).appendTo(ft);jQuery("<a/>",{"class":"region-tag corporate-semibold topic-link office-country-content-"+o}).appendTo(bt);n(bt).append("<span class='office-region-tag-divider region-divider-"+o+"'> • <\/span>");jQuery("<a/>",{"class":"region-tag corporate-semibold topic-link office-region-content-"+o}).appendTo(bt);n(document).on("click",".office-location-results-area .office-location-tags-container-"+o+" a",function(){r.typeahead("val",n(this).text());a()});n(document).on("keyup",".office-location-results-area .office-location-tags-container-"+o+" a",function(t){t.keyCode===13&&(r.typeahead("val",n(this).text()),a())});n(document).on("keyup",".office-location-results-area .office-location-tags-container-"+o+" a",function(t){t.keyCode===13&&(r.typeahead("val",n(this).text()),a())});n(s).attr("data-analytics-content-type","engagement");n(s).attr("data-linktype","engagement");n(h).attr("data-analytics-content-type","engagement");n(h).attr("data-linktype","engagement");c.length!==0&&(countryNameAriaLabel=c.replace("{0}",l),countryRegionAriaLabel=c.replace("{0}",at));nt?(n(".region-divider-"+o).empty(),n(s).text(y),n(s).attr("data-analytics-link-name",y),n(h).empty()):w?(y&&l||n(".region-divider-"+o).empty(),n(s).text(y),n(s).attr("data-analytics-link-name",y),n(h).text(l),n(h).attr("data-analytics-link-name",l)):(at&&l||n(".region-divider-"+o).empty(),n(s).text(l),n(s).attr("data-analytics-link-name",l),n(h).text(at),n(h).attr("data-analytics-link-name",at));n(s).attr("aria-label",countryNameAriaLabel);n(h).attr("aria-label",countryRegionAriaLabel);n(s).text().length!==0&&n(h).text().length!==0?(n(s).attr("tabindex","0"),n(s).attr("role","button"),n(h).attr("tabindex","0"),n(h).attr("role","button")):n(s).text().length!==0&&n(h).text().length===0?(n(s).attr("tabindex","0"),n(s).attr("role","button"),n(h).removeAttr("tabindex"),n(h).removeAttr("role","button")):n(h).text().length!==0&&n(s).text().length===0&&(n(h).attr("tabindex","0"),n(h).attr("role","button"),n(s).removeAttr("tabindex"),n(s).removeAttr("role","button"));jQuery("<div/>",{"class":"address-container col-sm-12 col-xs-12 col-md-6 col-lg-6 office-location-address-content-"+o}).appendTo(ft);n(kt).append(ci+yt+"<\/span>");n(kt).append("<div class='address'>"+e.Address+", "+e.CityName+rt+ot+"<\/div>");n(".office-location-results-block-container").append(ci+ti+"<\/div>");jQuery("<div/>",{"class":"contact-container col-sm-12 col-xs-12 col-md-6 col-lg-6 office-location-contact-container-"+o}).appendTo(ft);jQuery("<div/>",{"class":"office-details-link col-md-12 col-lg-12 office-details-link-"+o}).appendTo(ft);p||b?n(ht).append("<span class='contact-header-text corporate-semibold'>"+ti+"<\/span>"):(t.isMobile()||t.isTablet())&&n(ht).find(".website-link-container").css("padding-top","0");jQuery("<div/>",{"class":"phone-container contact-us-link office-location-contact-tel-content-"+o,"data-analytics-link-name":p,"data-analytics-content-type":"engagement","data-linktype":"engagement"}).appendTo(ht);p?n(ui).append("<a class='office-location-phone'><i class='ion-android-call'><\/i><span class='phone-basic-text contact-us corporate-regular'>"+p+"<\/span><\/a>"):n(ui).hide();jQuery("<div/>",{"class":"fax-container office-location-contact-fax-content-"+o,"data-analytics-link-name":b,"data-analytics-content-type":"engagement","data-linktype":"engagement"}).appendTo(ht);b?n(hi).append("<a class='office-location-fax'><i class='ion-ios-paper'><\/i><span class='fax-basic-text corporate-regular'>"+b+"<\/span><\/a>"):n(hi).hide();t.isTablet()||t.isMobile()?(n(kt).append(li+pt+"<\/span><\/a><\/div>"),e.Country&&n(ht).append(ai+wt+"<\/span><\/a><\/div>")):(n(".office-details-link-"+o).append(li+pt+"<\/span><\/a><\/div>"),n(".office-details-link-"+o).append(ai+wt+"<\/span><\/a><\/div>"));dt(o);n(gi).text(e.LocationName);var g="https://dev.virtualearth.net/REST/V1/Imagery/Map/Road/@lat%2C@long/15?mapSize=520,220&amp;format=png&amp;pushpin=@lat,@long;37;&amp;key=Av8n4HG3gyMUjosR2nE-4lvj9nhmbb5Ntw6AzCKWIaTwLHJwPsDXN1Ny4crU6IFT".replace(/@lat/g,e.Latitude).replace(/@long/g,e.Longitude),lt=fi.replace(/@lat/g,e.Latitude).replace(/@lon/g,e.Longitude).replace("@locationName",e.LocationName),vi=ei.replace(/@lat/g,e.Latitude).replace(/@lon/g,e.Longitude).replace("@locationName",e.LocationName),ur=oi.replace("{0}",st()).replace(/@lat/g,e.Latitude).replace(/@lon/g,e.Longitude),fr=e.LocationName.replace(/^Accenture\s/i,""),er=si.replace("{0}",st()).replace(/@lat/g,e.Latitude).replace(/@lon/g,e.Longitude).replace(/@da/g,fr);jQuery("<span/>",{"class":"sr-only",id:"instructionsForGetDirection-"+o,html:"this will open the map to "+e.LocationName+", "+yt+": "+e.Address+" in a new window",style:"display: none"}).appendTo(n(gt));tt=n(".office-location-results-block-container-"+o).height();(g||vi)&&(e.Latitude&&e.Longitude&&(t.isMobile()?(pi=e.ExternalImageURL!==""?e.ExternalImageURL:e.InternalImageURL!==""?e.InternalImageURL:g,wi=e.ExternalImageURL!==""?di+" "+ut+" "+k:e.InternalImageURL!==""?ki+" "+ut+" "+k:ut+" "+k+" "+it,n(v).prepend(ct+lt+"'><img src='"+pi+"' class='office-locations-map-image'><\/img><\/a>"),n(".office-location-results-block-container-"+o+" .office-locations-map-image").attr("alt",wi)):t.isTablet()?e.ExternalImageURL!==""&&e.InternalImageURL!==""?(n(v).append(ct+lt+"'><div role='group'  aria-label='"+ut+"' class='image-group-list-"+o+"'><img src='"+g+"' class='office-locations-map-internal-external-image'><\/img> <\/div> <\/a>"),n(".image-group-list-"+o+" .office-locations-map-internal-external-image").attr("alt",k+" "+it),et=n(v).find(".image-group-list-"+o),et.append("<img src='"+e.InternalImageURL+"' class='office-locations-internal-image' role='presentation' alt ='"+e.InternalImageAltTxt+"' > <\/img>"),et.append("<img src='"+e.ExternalImageURL+"' class='office-locations-external-image' role='presentation' alt ='"+e.ExternalImageAltTxt+"' > <\/img>"),n(".office-location-results-block-container-"+o+" .maps-container").css("height",tt+"px"),n(".office-location-results-block-container-"+o+" .image-group-list-"+o).css("height",tt+"px")):(e.ExternalImageURL==""||e.InternalImageURL=="")&&yi():e.ExternalImageURL!==""&&e.InternalImageURL!==""?(n(v).append(ct+lt+"'><div role='group'  aria-label='"+ut+"' class='image-group-list-"+o+"'><img src='"+g+"' class='office-locations-map-internal-external-image'><\/img> <\/div> <\/a>"),n(".image-group-list-"+o+" .office-locations-map-internal-external-image").attr("alt",k+" "+it),et=n(v).find(".image-group-list-"+o),et.append("<img src='"+e.ExternalImageURL+"' class='office-locations-external-image' role='presentation' alt ='"+e.ExternalImageAltTxt+"' > <\/img>"),et.append("<img src='"+e.InternalImageURL+"' class='office-locations-internal-image' role='presentation' alt ='"+e.InternalImageAltTxt+"' > <\/img>"),n(".office-location-results-block-container-"+o+" .maps-container").css("height",tt+"px"),n(".office-location-results-block-container-"+o+" .image-group-list-"+o).css("height",tt+"px")):(e.ExternalImageURL==""||e.InternalImageURL=="")&&yi(),jQuery("<span/>",{"class":"sr-only",id:"imageForMaps-"+o,html:"this will open the map in a new window"}).appendTo(n(".office-location-results-area .office-location-results-block-container-"+o)),t.isMobile()?n(gt).attr("href",er):n(gt).attr("href",vi)),t.isMobile()&&(ni=n(".office-location-results-area .office-location-map-content"),ni&&n(rr).find(ni).attr("href",ur)));p!==null&&br(p,o);b!==null&&kr(b,o)},pr=function(i,u){var e=i.Country,l=".office-location-results-block-container-"+u,p=".office-location-tags-container-"+u,s=".office-country-content-"+u,h=".office-location-map-content-"+u,v=kt.replace(/@query/g,encodeURIComponent(e)),o=".country-tag-container-"+u,y;if(e=="Argentina"&&(v=kt.replace(/@query/g,"Argentina,Brazil")),e!==null){jQuery("<div/>",{"class":"office-locations-details-card col-xs-12 col-sm-6 col-md-4 office-location-results-block-container-"+u}).appendTo(f);t.isMobile()?jQuery("<a/>",{"class":"office-group-list-link country-tag-container-"+u}).appendTo(l):(jQuery("<a/>",{"class":"office-group-list-link country-tag-container-"+u,href:"javascript:void(0)"}).appendTo(l),jQuery("<span/>",{"class":"maps-container  hidden-xs office-location-map-content-"+u}).appendTo(o),n(h).append("<img src='"+v+"'><\/img>"),y=n(h).find("img"),y.attr("alt",e+" Map"));jQuery("<div/>",{"class":"region-tag-container office-location-tags-container-"+u}).appendTo(o);n("html").hasClass("ie")||jQuery("<span/>",{"class":"sr-only hidden",id:"country"+u}).appendTo(o);jQuery("<h3/>",{"class":"region-tag corporate-semibold office-country-content-"+u}).appendTo(p);n(document).on("click",".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u,function(){var t=n(".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u).find(".office-location-tags-container-"+u);r.typeahead("val",n(t).text());a()});n(document).on("keyup",".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u,function(t){if(t.keyCode===13){var i=n(".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u).find(".office-location-tags-container-"+u);r.typeahead("val",n(i).text());a()}});n(h).attr("data-analytics-content-type","engagement");n(h).attr("data-linktype","engagement");n(s).attr("data-analytics-content-type","engagement");n(s).attr("data-linktype","engagement");n("html").hasClass("ie")?n(".office-group-list-link.country-tag-container-"+u).attr("aria-label",c.replace("{0}",e)):($OfficeCountryViewLocation=n("#country"+u),n(s).attr("aria-labelledby","country"+u),$OfficeCountryViewLocation.text(c.replace("{0}",e)));n(s).text(e);n(s).attr("data-analytics-link-name",e);n(o).attr("data-analytics-content-type","engagement");n(o).attr("data-linktype","engagement");n(o).attr("data-analytics-link-name",e);dt(u)}},wr=function(i,u){var e=i.StateProvince,l=".office-location-results-block-container-"+u,y=".office-location-tags-container-"+u,s=".office-country-content-"+u,h=".office-location-map-content-"+u,p=kt.replace(/@query/g,encodeURIComponent(e)),o=".country-tag-container-"+u,v;if(e!==null){jQuery("<div/>",{"class":"office-locations-details-card col-xs-12 col-sm-6 col-md-4 office-location-results-block-container-"+u}).appendTo(f);t.isMobile()?jQuery("<a/>",{"class":"office-group-list-link country-tag-container-"+u}).appendTo(l):(jQuery("<a/>",{"class":"office-group-list-link country-tag-container-"+u,href:"javascript:void(0)"}).appendTo(l),jQuery("<span/>",{"class":"maps-container  hidden-xs office-location-map-content-"+u}).appendTo(o),n(h).append("<img src='"+p+"'><\/img>"),v=n(h).find("img"),v.attr("alt",e+" Map"));jQuery("<div/>",{"class":"region-tag-container office-location-tags-container-"+u}).appendTo(o);n("html").hasClass("ie")||jQuery("<span/>",{"class":"sr-only hidden",id:"state"+u}).appendTo(o);jQuery("<h3/>",{"class":"region-tag corporate-semibold office-country-content-"+u}).appendTo(y);n(document).on("click",".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u,function(){var t=n(".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u).find(".office-location-tags-container-"+u);r.typeahead("val",n(t).text());a()});n(document).on("keyup",".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u,function(t){if(t.keyCode===13){var i=n(".office-location-results-area .office-group-list .office-locations-details-card .country-tag-container-"+u).find(".office-location-tags-container-"+u);r.typeahead("val",n(i).text());a()}});n(h).attr("data-analytics-content-type","engagement");n(h).attr("data-linktype","engagement");n(s).attr("data-analytics-content-type","engagement");n(s).attr("data-linktype","engagement");n(s).text(e);n(s).attr("data-analytics-link-name",e);n("html").hasClass("ie")?n(".office-group-list-link.country-tag-container-"+u).attr("aria-label",c.replace("{0}",e)):($OfficeCountryViewLocation=n("#state"+u),n(s).attr("aria-labelledby","state"+u),$OfficeCountryViewLocation.text(c.replace("{0}",e)));n(o).attr("data-analytics-content-type","engagement");n(o).attr("data-linktype","engagement");n(o).attr("data-analytics-link-name",e);dt(u)}},g=function(){i.find(".country-name-text").html("");i.find(".region-tag-link").html("");i.find(".contact-us").html("");i.find(".visit-website").html("");i.addClass("hide");l.addClass("hide");o.addClass("hide");i.find(".contact-us-link").removeAttr("href");i.find(".visit-website-link").removeAttr("href")},ct=function(){i.removeClass("hide")},pi=function(){var n=o.attr("data-attribute-no-results-label"),t=o.attr("data-attribute-no-results-text");at.attr("aria-live","off");l.addClass("hide");i.find(".country-name-text").html("Country Name");o.find(".no-result-label").html(n);o.find(".no-result-text").html(t);o.removeClass("hide")},br=function(i,r){var u=n(".office-location-contact-tel-content-"+r).find(".office-location-phone");t.isMobileBrowser()&&(u.empty(),u.prepend('<a class="mobileContactTel-'+r+'" href="tel:'+i+"\"><i class='ion-android-call'><\/i><span class='phone-basic-text contact-us corporate-regular' style='color: #004DFF;'>"+i+"<\/a>"))},kr=function(i,r){var u=n(".office-location-contact-fax-content-"+r).find(".office-location-fax");t.isMobileBrowser()&&(u.empty(),u.prepend('<a class="mobileContactFax-'+r+'" href="tel:'+i+"\"><i class='ion-ios-paper'><\/i><span class='fax-basic-text corporate-regular' style='color: #004DFF;'>"+i+"<\/a>"))},wi=function(){var t=parseFloat(e.parents(".block-content").css("padding-left")),n=parseInt(e.parents(".row").css("margin-left"));window.innerWidth>=1200+t?!IsIE()&&window.innerWidth===1280&&n<15?e.css({padding:"0 "+(15-n+"px")}):e.css({padding:"0"}):e.removeAttr("style")},b=function(n){var t="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",u=new RegExp("\\s*<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+t+">[\\s\\S]*?<\/script\\s*|style\\b"+t+">[\\s\\S]*?<\/style\\s*|/?[a-z]"+t+")>","gi"),i,r;if(n){do if(r=n,n=n.replace(u,"").trim(),i=/[`%$^*()_+\=\[\]{}\\|<>\/~]/.test(n),i)return n.replace(/[`%$^*()_+\=\[\]{}\\|<>\/~]/g,"");while(n!==r);return n.replace(/&nbsp;|'&nbsp;'|'&nbsp'|"&nbsp;"|"&nbsp"|&nbsp|/g,"").trim()}return""};r.typeahead({hint:!1,highlight:!0,minLength:2},{name:"keywordSuggestions",displayKey:"value",source:function(t,i){return n.getJSON("/api/sitecore/LocationsHeroModule/GetLocationSuggestion",{query:b(t),language:language,size:maxAutocompleteItems},function(t){for(var u,r=0;r<t.length;r++)t[r]=t[r].replace(/ *\[^]*\) */g,"");u=n.map(t,function(n){return{value:n}});i(u.slice(0,5))})}});n(function(){var t,i;wi();r.length!==0&&(ir(),ni=new URLSearchParams(window.location.search),window.location.search!==""&&window.location.search.indexOf("loc=")!==-1?(t=b(ni.get("loc")),r.typeahead("val",t),yt(t),g(),li()):l.removeClass("hide"),e.length===0&&ut.attr("data-attribute-hero-home-link")!==""?(v.attr("href",ut.attr("data-attribute-hero-home-link").replace("{0}",siteName)),ut!==0&&v.attr("aria-describedby","instructions-index")):v.removeAttr("aria-describedby"),i=n(".reinvent-location-hero-content-container .tt-dropdown-menu"),i.addClass("col-xs-12 col-lg-11"))})});ComponentRegistry.CTABlogPostModule&&$(function(){var n=$(".carousel-indicators li"),t=$(".carousel-inner .item");typeof acncCTABlogPost=="undefined"&&(acncCTABlogPost=new CTABlogPostObject,acncCTABlogPost.CTABlogPost.Init());$(".blogPostCallToActionLink").on("keypress",function(n){var t,i;n.which==13&&($(this).trigger("click"),t=$(this).attr("data-toggle"),typeof t!=typeof undefined&&t!==!1&&t=="modal"&&(i=$(this).attr("data-target"),setTimeout(function(){$(i).focus()},400)))});$(".blogPostCallToActionLink").on("click",function(){var n=$(this).attr("data-toggle"),t;typeof n!=typeof undefined&&n!==!1&&n=="modal"&&(t=$(this).attr("data-target"),setTimeout(function(){$(t).focus()},400))});$(".carousel-indicators li").on("keypress",function(n){n.which==13&&$(this).trigger("click")});$(".carousel-indicators li:last-child").focusout(function(){$(".btnModalClose").focus()});$(".content-area p:nth-child(2) span").wrap("<h3><\/h3>");n.each(function(){$(this).hasClass("active")?$(this).attr("aria-selected","true"):$(this).attr("aria-selected","false");$(this).on("keypress",function(i){var r=i.which||i.keycode;r==13&&(n.each(function(){$(this).attr("aria-selected","false")}),$(this).attr("aria-selected","true"),setTimeout(function(){t.each(function(){$(this).hasClass("next left")||$(this).hasClass("prev right")?$(this).attr("aria-hidden","false"):$(this).attr("aria-hidden","true")})},4))});$(this).on("keyup",function(n){var t=n.which||n.keycode;t==9&&($(this).hasClass("active")?$(this).attr("aria-selected","true"):$(this).attr("aria-selected","false"))});$(this).on("click",function(){n.each(function(){$(this).attr("aria-selected","false")});$(this).attr("aria-selected","true");setTimeout(function(){t.each(function(){$(this).hasClass("next left")||$(this).hasClass("prev right")?$(this).attr("aria-hidden","false"):$(this).attr("aria-hidden","true")})},4)})})});CTAMobileAlert=function(n,t){function u(){i.goBackBtn.on("click",function(){var i=t(this).attr("data-targetUrl");n.location=i})}function f(){t("#sectionMobileAlertSignUp").length>0&&t("#sectionMobileAlertThankYou").length>0&&i.pageHeaderBody.length>0&&t(".hero-article .header-body").addClass("hidden-xs")}function e(){t(document).ready(function(){o()})}function o(){t("#mobileAlertsForm").bootstrapValidator({feedbackIcons:{valid:"glyphicon glyphicon-ok",invalid:"glyphicon glyphicon-remove",validating:"glyphicon glyphicon-refresh"},fields:{phone_number:{validators:{callback:{message:"",callback:function(n,i){var r=s(n,i),u;return r.valid?(t(u).text(""),i.updateStatus("phone_number",i.STATUS_VALID,"identical")):(u=t('.validatorMessage [data-bv-validator-for="phone_number"]'),i.updateStatus("phone_number",i.STATUS_INVALID,"identical"),t(u).text(r.message)),r.valid}}}}},submitHandler:function(){t.ajax({url:"/api/sitecore/CTAMobileAlertModule/SaveOptInSubscription",async:!1,type:"POST",data:JSON.stringify({mobileNumber:t("#countryCode").val()+t("#mobileNumber").val()}),contentType:"application/json",error:function(){console.log("error encountered")},success:function(n){n[0].OptInResult==!0&&t("#sectionMobileAlertSignUp").length>0&&t("#sectionMobileAlertThankYou").length>0&&(t("#sectionMobileAlertSignUp").hide(),t("#sectionMobileAlertThankYou").show())}})}}).on("success.form.fv",function(){})}function s(n){var i={valid:!1,message:""},r=new RegExp("^[0-9]*$");return n==""?(i.message=t("#validationTranslations").attr("data-blank"),i):r.test(n)?n.length>10?(i.message=t("#validationTranslations").attr("data-length"),i):(t.ajax({url:"/api/sitecore/CTAMobileAlertModule/IsMobileNumberValid",async:!1,type:"POST",data:JSON.stringify({mobileNumber:t("#countryCode").val()+n}),contentType:"application/json",error:function(){console.log("error encountered")},success:function(n){n[0].ValidationSuccess==!1?(i.valid=!1,i.message="Validation Failed"):(i.valid=n[0].IsNumberValid,i.message=n[0].ErrorMessage)}}),i):(i.message=t("#validationTranslations").attr("data-format"),i)}var i={signUpBtn:t("#btnMobileAlertSignUp"),goBackBtn:t("#btnMobileAlertGoBack"),signUpSection:t("#sectionMobileAlertSignUp"),thankYouSection:t("#sectionMobileAlertThankYou"),pageHeaderBody:t(".hero-article .header-body")},r={};return r.init=function(){u();f();e()},r}(window,jQuery);ComponentRegistry.CTAMobileAlertModule&&CTAMobileAlert.init(),function(n,t){function v(n,t,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;u<s;u++)if(f=e.eq(u),n.append(f),r&&n.append(r),i(n,t)){f.remove();o=!0;break}else r&&r.detach();return o}function e(t,r,u,f,o){var s=!1,h="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script, .dotdotdot-keep";return t.contents().detach().each(function(){var a=this,l=n(a);if(typeof a=="undefined")return!0;if(l.is(c))t.append(l);else{if(s)return!0;t.append(l);!o||l.is(f.after)||l.find(f.after).length||t[t.is(h)?"after":"append"](o);i(u,f)&&(s=a.nodeType==3?y(l,r,u,f,o):e(l,r,u,f,o));s||o&&o.detach()}}),r.addClass("is-truncated"),s}function y(t,f,e,s,c){var l=t[0],nt,k,d;if(!l)return!1;var y=h(l),tt=y.indexOf(" ")!==-1?" ":"　",p=s.wrap=="letter"?"":tt,a=y.split(p),g=-1,w=-1,b=0,v=a.length-1;for(s.fallbackToLetter&&b==0&&v==0&&(p="",a=y.split(p),v=a.length-1);b<=v&&!(b==0&&v==0);){if(nt=Math.floor((b+v)/2),nt==w)break;w=nt;u(l,a.slice(0,w+1).join(p)+s.ellipsis);e.children().each(function(){n(this).toggle().toggle()});i(e,s)?(v=w,s.fallbackToLetter&&b==0&&v==0&&(p="",a=a[0].split(p),g=-1,w=-1,b=0,v=a.length-1)):(g=w,b=w)}return g==-1||a.length==1&&a[0].length==0?(k=t.parent(),t.detach(),d=c&&c.closest(k).length?c.length:0,k.contents().length>d?l=r(k.contents().eq(-1-d),f):(l=r(k,f,!0),d||k.detach()),l&&(y=o(h(l),s),u(l,y),d&&c&&n(l).parent().append(c))):(y=o(a.slice(0,g+1).join(p),s),u(l,y)),!0}function i(n,t){return n.innerHeight()>t.maxHeight}function o(t,i){while(n.inArray(t.slice(-1),i.lastCharacter.remove)>-1)t=t.slice(0,-1);return n.inArray(t.slice(-1),i.lastCharacter.noEllipsis)<0&&(t+=i.ellipsis),t}function s(n){return{width:n.innerWidth(),height:n.innerHeight()}}function u(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function h(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function c(n){do n=n.previousSibling;while(n&&n.nodeType!==1&&n.nodeType!==3);return n}function r(t,i,u){var e=t&&t[0],f;if(e){if(!u){if(e.nodeType===3)return e;if(n.trim(t.text()))return r(t.contents().last(),i)}for(f=c(e);!f;){if(t=t.parent(),t.is(i)||!t.length)return!1;f=c(t[0])}if(f)return r(n(f),i)}return!1}function p(t,i){return t?typeof t=="string"?(t=n(t,i),t.length?t:!1):t.jquery?t:!1:!1}function w(n){for(var t,r=n.innerHeight(),u=["paddingTop","paddingBottom"],i=0,f=u.length;i<f;i++)t=parseInt(n.css(u[i]),10),isNaN(t)&&(t=0),r-=t;return r}var f,l,a;n.fn.dotdotdot||(n.fn.dotdotdot=function(t){var r,c;if(this.length==0)return n.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(t)});r=this;c=r.contents();r.data("dotdotdot")&&r.trigger("destroy.dot");r.data("dotdotdot-style",r.attr("style")||"");r.css("word-wrap","break-word");r.css("white-space")==="nowrap"&&r.css("white-space","normal");r.bind_events=function(){r.on("update.dot",function(t,f){r.removeClass("is-truncated");t.preventDefault();t.stopPropagation();switch(typeof u.height){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(r[0]);break;default:u.maxHeight=w(r)}u.maxHeight+=u.tolerance;typeof f!="undefined"&&((typeof f=="string"||"nodeType"in f&&f.nodeType===1)&&(f=n("<div />").append(f).contents()),f instanceof n&&(c=f));h=r.wrapInner('<div class="dotdotdot" />').children();h.contents().detach().end().append(c.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var s=!1,l=!1;return o.afterElement&&(s=o.afterElement.clone(!0),s.show(),o.afterElement.detach()),i(h,u)&&(l=u.wrap=="children"?v(h,u,s):e(h,r,h,u,s)),h.replaceWith(h.contents()),h=null,typeof u.callback=="function"&&u.callback.call(r[0],l,c),o.isTruncated=l,l}).on("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],o.isTruncated),o.isTruncated}).on("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),typeof t=="function"&&t.call(r[0],c),c}).on("destroy.dot",function(n){n.preventDefault();n.stopPropagation();r.unwatch().unbind_events().contents().detach().end().append(c).attr("style",r.data("dotdotdot-style")||"").data("dotdotdot",!1)});return r};r.unbind_events=function(){return r.off(".dot"),r};r.watch=function(){if(r.unwatch(),u.watch=="window"){var t=n(window),i=t.width(),f=t.height();t.on("resize.dot"+o.dotId,function(){i==t.width()&&f==t.height()&&u.windowResizeFix||(i=t.width(),f=t.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},100))})}else a=s(r),l=setInterval(function(){if(r.is(":visible")){var n=s(r);(a.width!=n.width||a.height!=n.height)&&(r.trigger("update.dot"),a=n)}},500);return r};r.unwatch=function(){return n(window).off("resize.dot"+o.dotId),l&&clearInterval(l),r};var u=n.extend(!0,{},n.fn.dotdotdot.defaults,t),o={},a={},l=null,h=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=n.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=n.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),o.afterElement=p(u.after,r),o.isTruncated=!1,o.dotId=f++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&r.watch(),r},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},n.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},n.fn.dotdotdot.debug=function(){},f=1,l=n.fn.html,n.fn.html=function(n){return n!=t&&typeof n!="function"&&this.data("dotdotdot")?this.trigger("update",[n]):l.apply(this,arguments)},a=n.fn.text,n.fn.text=function(i){return i!=t&&typeof i!="function"&&this.data("dotdotdot")?(i=n("<div />").text(i).html(),this.trigger("update",[i])):a.apply(this,arguments)})}(jQuery);jQuery(function(n){n(".dot-ellipsis").each(function(){var r=n(this).hasClass("dot-resize-update"),u=n(this).hasClass("dot-timer-update"),i=0,f=n(this).attr("class").split(/\s+/),t;n.each(f,function(n,t){t.match("/^dot-height-d+$/")||(i=Number(t.substr(t.indexOf("-",-1)+1)))});t={};u&&(t.watch=!0);r&&(t.watch="window");i>0&&(t.height=i);n(this).dotdotdot(t)})});jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")});$(function(){jsUtility.init();jsUtility.isMobileBrowser()==!1&&dataOriginalTitle.tooltip()});$(window).on("load",function(){jsUtility.updateThirdPartyLinks()});$(window).on("resize",resize);$(window).on("beforeunload",function(){jsUtility.setLocationResult()});dataOriginalTitle=$("[data-original-title]");dataOriginalTitle.on("keydown",function(n){n.keyCode==27&&(dataOriginalTitle.tooltip("hide"),dataOriginalTitle.trigger("blur"))});OnEnterTrigger=$(".coe");OnEnterTrigger.on("keypress",function(n){n.which==13&&this.trigger("click")});aspectRatio=.5625;jsUtility=function(){var ct=function(){k();ut();rt();ft();et();v();a();ti();ii();u();o();fi();t();n();c();l();b();ai();vi();accessBarAdjustment();y();p();w();bt();vt();wt();skipLinksFocus();st();ot();ht();yt();pt()},f=768,lt=999,at=1200,t=function(){return $(window).width()<f?!0:!1},n=function(n){return n=n==undefined||n==""?!1:n,$(window).width()>=f&&$(window).width()<=lt&&!n?!0:$(window).width()>=f&&$(window).width()<at&&n?!0:!1},e=$(".tab-title-container div li"),h=$(".tab-container");(t()||n())&&(e=$("div.tabs-mobile li"));var vt=function(){var u=$(".tab-content-container .video-player-module"),r=document.querySelectorAll(".tab-content-container .video-player-youtube"),i;if(h&&u)e.on("mousedown",function(){if(t()||n())for(r=document.querySelectorAll(".tabs-mobile .video-player-youtube"),i,i=0;i<r.length;i++)r[i].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");if($(this).hasClass("inactive"))for(i=0;i<r.length;i++)r[i].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})},yt=function(){var n=$(".multipage-navigation-bar").length;n>=1&&$("#redesign-main").addClass("multipage-margin")},pt=function(){var n=$("#ai-animation-toggle"),t;((localStorage.getItem("isAnimation")==="true"||localStorage.getItem("isAnimation")===null)&&!n.is(":checked")||localStorage.getItem("isAnimation")==="false"&&n.is(":checked"))&&$(".ai-animation-switch-toggle").trigger("click");$(".ai-animation-switch-toggle").on("click",function(){t=n.is(":checked")?"true":"false";localStorage.setItem("isAnimation",t);$(".ai-animation-slider").addClass("transition")})},wt=function(){var r=$("audio-module"),i=$(".tab-content-container .playPause");if(h&&r)e.on("mousedown",function(){(t()||n())&&(i=$(".tabs-mobile .playPause"),i.hasClass("ion-ios-pause")&&i.trigger("click"));$(this).hasClass("inactive")&&i.hasClass("ion-ios-pause")&&i.trigger("click")})},bt=function(){var i=$(".table-display table"),t=$(".table-display"),n;if(i.hasClass("table")){t.parent().css("display","grid");t.closest(".block-content").css("padding-top","1.25em");t.closest(".ui-container").find(".pagezone-description").css("margin-top","0.63em");t.closest(".block-content").siblings().find("h2").addClass("module-title");jsUtility.isMobile()&&t.closest(".block-content").css("padding-top","0.63em");n=$("td").first();$("td").on("keydown",function(){n=$(this)});$(".table tbody tr td").on("keydown",function(t){var i="",r=t.which||t.keyCode,u,f;r===39?(i=n.next(),n.next().attr("tabindex","0"),n.attr("tabindex","-1"),u=$(this).siblings().length,$(this).index()+1>u&&n.attr("tabindex","0"),t.preventDefault()):r===37?(i=n.prev(),n.attr("tabindex","-1"),n.prev().attr("tabindex","0"),$(this).index()-1<0&&n.attr("tabindex","0"),t.preventDefault()):r===38?(i=n.closest("tr").prev().find("td").eq(n).index(),n.closest("tr").prev().find("td").eq(n).index().attr("tabindex","0"),n.attr("tabindex","-1"),$(this).parent("tr").index()-1<0&&n.attr("tabindex","0"),t.preventDefault()):r===40&&(i=n.closest("tr").next().find("td").eq(n).index(),n.attr("tabindex","-1"),n.closest("tr").next().find("td").eq(n).index().attr("tabindex","0"),f=$(this).parent("tr").siblings().length,$(this).parent("tr").index()+1>f&&n.attr("tabindex","0"),t.preventDefault());i.length>0&&(n=i,n.trigger("focus"))})}},c=function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){var n=$("html");return n.addClass("isTouch"),!0}return!1},kt=function(n){var t="(?:[^\"'>]|\"[^\"]*\"|'[^']*')*",r=new RegExp("<(?:!--(?:(?:-*[^->])*--+|-?)|script\\b"+t+">[\\s\\S]*?<\/script\\s*|style\\b"+t+">[\\s\\S]*?<\/style\\s*|/?[a-z]"+t+")>","gi"),i;if(n){do i=n,n=n.replace(r,"").trim();while(n!==i);return n.replace(/&nbsp;|</g,"").trim()}return""},dt=$("#scCrossPiece"),o=function(){var n=$("#scFieldValues");dt.length>0&&n.length<=0?setTimeout(o):setTimeout(o,200);gt()},gt=function(){window.location.search.substring(1).indexOf("sc_mode=preview")>=0&&($("#scWebEditRibbon").addClass("hidden"),$("#scCrossPiece").addClass("hidden"),$("#header-topnav").css("top","0px"))},ni=function(){navigator.permissions.query({name:"geolocation"}).then(function(n){var t=n.state;acncm.CacheManager.writeFlagCookie("locationEnabled",t)})},ti=function(){var t=$("html"),n=navigator.userAgent.toLowerCase(),i=navigator.appName.toLowerCase();n.indexOf("firefox")>-1&&t.addClass("firefox");n.indexOf("edge")>-1&&t.addClass("ie-edge");n.indexOf("trident/7.0")!=-1&&i=="netscape"&&t.addClass("ie");n.indexOf("chrome")<0&&n.indexOf("safari")>-1&&t.addClass("safari")},l=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1?!0:!1},ii=function(){var n=$("#hero-carousel .item, .ui-container");n.each(function(){var t=$(this),n=t.data("src");n!=undefined&&n!=""&&t.css("background-image","url("+n+")")})},u=function(){var i=$(".dot-ellipsis"),n=$("html").attr("lang"),r=n.match("ja"),u=n.match("zh"),t="word";ui();(r!==null||u!==null)&&(t="letter");i.dotdotdot({ellipsis:"... ",watch:window,truncate:t,height:"100%"})},ri=function(n,t){var r=$("html").attr("lang"),u=r.match("ja"),f=r.match("zh"),i="word";(u!==null||f!==null)&&(i="letter");t!==undefined&&(t=t.toLowerCase(),(t!==null||t!=="")&&(i="word"),(t==="ja"||t==="zh-cn")&&(i="letter"));n.dotdotdot({watch:"window",height:"auto",truncate:i})},ui=function(){var n=$(".dynamic-card-link");n.each(function(){if($(this).has(".module-title.dot-ellipsis").length>0){var n=$(this).find(".module-title.dot-ellipsis");titleFontsize=parseFloat($(n).css("font-size"));titleFontsize>=24?$(n).css("max-height","5rem"):$(n).css("max-height","3rem")}})},fi=function(){var n=$(".lazy");n.lazy({effect:"fadeIn",effectTime:270,threshold:200})},ei=function(n){var t=$(n).find(".lazy");t.lazy()},a=function(){var i=window.location.hash,t=$(i),n;if(t.hasClass("feature-profile-block-container")){window.location.hash="";n=20;$(window).on("load",function(){var r=$("#header-topnav").height(),i;n+=r;i=$("#multipage-nav").length>0;i&&(($(".ie").length>0||$(".firefox").length>0)&&$("#block-multipagenavigationsection").height($("#multipage-nav").height()),n+=$("#multipage-nav").height());$("html, body").animate({scrollTop:t.offset().top-n},1e3)})}},v=function(){var t=$(".adaptive-img"),i=window.location.hash,n=$(".jumplink").length>0||$(i).hasClass("feature-profile-block-container");t.each(function(){var t=$(this),i=t.data("imagexs"),r=t.is(".fixed-parallax-standard, .fixed-parallax-partial"),u=t.closest(".hero-module").length>0;typeof t!="undefined"&&t!==""&&(jsUtility.isMobile()||jsUtility.isTablet()?jsUtility.isTablet()?(i=t.data("imagesm"),(!n||u&&t.is("div"))&&t.hasClass("lazy")?t.attr("data-src",i):r?t.css("background-image","url("+i+")"):t.attr("src",i)):(!n||u&&t.is("div"))&&t.hasClass("lazy")?t.attr("data-src",i):r?t.css("background-image","url("+i+")"):t.attr("src",i):(i=t.data("imagelg"),(!n||u&&t.is("div"))&&t.hasClass("lazy")?t.attr("data-src",i):r?t.css("background-image","url("+i+")"):t.attr("src",i)))})},y=function(){var n=$(".append-hero-block .append-image-container"),t="",i;n&&(t=jsUtility.isMobile()?n.data("imagexs"):jsUtility.isTablet()?n.data("imagesm"):n.data("imagelg"),i=$(".append-hero-block .marquee-image"),i&&i.remove(),t&&n.append("<img src='"+t+"' class='marquee-image' alt=' '>"))},p=function(){var n=$(".append-hero-block .marquee-image"),t=$(".append-hero-block .item").height();jsUtility.isMobile()?n.css("height","auto"):n.css("height",t)},w=function(){var r=$("#redesign-main"),t=$(".base-width"),i;if(t){var u=r.width(),f=t.width(),e=u-f,o=e/6,n=$(".maximize-content");n&&(n.removeAttr("style"),jsUtility.isMobile()||jsUtility.isTablet()||(i=n.outerWidth(),n.css("width","calc("+i+"px + "+o+"px)")))}},b=function(){var n=$(".dynamic-bg");n.each(function(){var n=$(this);image=oi(n);image&&n.css("background-image","url("+image+")")})},oi=function(n){return typeof n=="undefined"&&n==""?"":jsUtility.isMobile()?n.data("imagexs"):jsUtility.isTablet()?n.data("imagesm"):n.data("imagelg")},k=function(n){var t=n===undefined?!1:n,i=$(".progressive");i.each(function(){var n=t?$(this).find(".progressive-card.filtered"):$(this).find(".progressive-card"),i=n.length;$(this).attr("data-card-count",i)});si(t)},si=function(i){var f=i?$(".progressive.enable-filter"):$(".progressive"),e=f.length,o=$(".view-less-cards"),l=$(".view-all-cards"),h=$(".view-more-cards"),c=$(".view-incless-cards"),r=0,u=0;i&&(o.attr("tabindex","0").removeClass("screenReaderOnly").removeClass("adjustive-margin-left").removeClass("adjustive-margin-right"),h.attr("tabindex","0").removeClass("screenReaderOnly").removeClass("adjustive-margin-left").removeClass("adjustive-margin-right"),c.attr("tabindex","0").removeClass("screenReaderOnly").removeClass("adjustive-margin-left").removeClass("adjustive-margin-right"));f.each(function(){var f,h,c,o;($(this).hasClass("first-load")===!1||i)&&($(this).addClass("first-load"),f=i?$(this).find(".progressive-card.filtered"):$(this).find(".progressive-card"),h=$(this).attr("data-card-count"),u<e&&(c=$("code").attr("type"),c==="text/sitecore"?(f.show(),s($(this))):(o=t()?$(this).data("cards-xs"):n()?$(this).data("cards-sm"):$(this).data("cards-lm"),o=="undefined"||o==0?s($(this)):h<=o?s($(this)):(f.hide(),f.each(function(){r<o&&f.eq(r).show();r=r+1}),ci($(this)),hi($(this))))),r=0,u=u+1)})},hi=function(t){var r=t.find(".view-all-cards"),u=t.find(".view-less-cards"),i=t.find(".view-more-cards"),f=t.find(".view-incless-cards");$(window).on("load resize",function(){(i.css("display")!="none"||u.css("display")!="none")&&n()&&t.children(".link-cards").css("padding-bottom","0")});t.hasClass("view-more")?(r.hide(),i.show()):(i.hide(),r.show());u.hide();f.hide()},ci=function(n){var t=n.find(".view-less-cards"),i=n.find(".view-more-cards"),u=n.find(".view-incless-cards"),r=n.find(".view-all-cards");t.attr("tabindex","-1").addClass("screenReaderOnly");t.children("span:nth-last-child(1)").attr("aria-hidden","true");n.hasClass("view-more")?(r.hide(),i.show()):(r.show(),i.hide());u.hide()},s=function(n){var t=n.find(".view-all-cards"),i=n.find(".view-less-cards"),r=n.find(".view-more-cards"),u=n.find(".view-incless-cards");t.attr("aria-hidden","true");i.attr("aria-hidden","true");r.attr("aria-hidden","true");u.attr("aria-hidden","true");t.hide();i.hide();r.hide();u.hide()},li=function(i){var r=0,u,f;t()?(r=i.attr("data-cards-xs"),scrollValue=550):n()?(r=i.attr("data-cards-sm"),scrollValue=350):(r=i.attr("data-cards-lm"),scrollValue=480);u=i.find(".progressive-card:visible").eq(r);f=u.find(":tabbable").first();f.each(function(n,t){if(t.tabIndex==0)return t.focus(),!1})},d=function(n){var t=n.find(".progressive-card:visible").first(),i=t.find(":tabbable").first();i.each(function(n,t){if(t.tabIndex==0)return t.focus(),!1})},r=function(n){var t=n.find(".progressive-card:visible").last(),i=t.find(":tabbable").last();i.each(function(n,t){if(t.tabIndex==0)return t.focus(),!1})},g=$(".view-less-cards"),nt=$(".view-all-cards"),tt=$(".view-more-cards"),it=$(".view-incless-cards"),rt=function(){nt.on("click",function(){var f=$(this).closest(".progressive"),r=0,o,e,i;u();o=t()?$(this).closest(".progressive").attr("data-cards-xs"):n()?$(this).closest(".progressive").attr("data-cards-sm"):$(this).closest(".progressive").attr("data-cards-lm");e=f.find(".view-all-cards");i=f.find(".view-less-cards");f.each(function(){var n=$(this).hasClass("enable-filter")?$(this).find(".progressive-card.filtered"):$(this).find(".progressive-card");n.each(function(){r>=o&&n.eq(r).hide().slideDown();r=r+1})});e.attr("tabindex","-1").addClass("screenReaderOnly");e.attr("aria-hidden","true");i.attr("tabindex","0").removeClass("screenReaderOnly").removeClass("adjustive-margin-left").removeClass("adjustive-margin-right");i.attr("aria-hidden","false");i.show();i.trigger("focus")});nt.on("keydown",function(n){$this=$(this);var t=n.which,i=$(this).closest(".progressive"),u=i.find(".view-less-cards"),f=i.find(".progressive-card:visible").first(),e=f.find(":focusable").first();$this&&$this.trigger("focus")&&(t==13||t==32?($this.addClass("keyed"),$this.trigger("click"),u.addClass("keyed")):t==27&&($this.tooltip("hide"),$this.trigger("blur")),t==9&&$this.hasClass("keyed")&&e.length!==0&&(n.preventDefault(),$this.removeClass("keyed"),n.shiftKey?n.shiftKey&&r(i):d(i)))})},ut=function(){g.on("click",function(){var i=$(this).closest(".progressive"),f=0,h;u();h=t()?$(this).closest(".progressive").attr("data-cards-xs"):n()?$(this).closest(".progressive").attr("data-cards-sm"):$(this).closest(".progressive").attr("data-cards-lm");var e=i.find(".view-all-cards"),o=i.find(".view-less-cards"),r=i.find(".view-more-cards"),s=i.find(".view-incless-cards");i.each(function(){var n=$(this).hasClass("enable-filter")?$(this).find(".progressive-card.filtered"):$(this).find(".progressive-card");n.each(function(){f>=h&&n.eq(f).show().slideUp("slow");f=f+1})});r.attr("tabindex","0").removeClass("screenReaderOnly");r.attr("aria-hidden","false");e.attr("tabindex","0").removeClass("screenReaderOnly");e.attr("aria-hidden","false");o.attr("tabindex","-1").addClass("screenReaderOnly");o.attr("aria-hidden","true");s.attr("tabindex","0").removeClass("screenReaderOnly");s.attr("aria-hidden","false");i.hasClass("view-more")?(r.attr("tabindex","0").removeClass("adjustive-margin-right"),r.show(),s.hide(),r.addClass("LessKeyed"),r.trigger("focus")):(e.show(),o.hide(),e.trigger("focus"))});g.on("keydown",function(n){var i;$this=$(this);var t=n.which,i=$(this).closest(".progressive"),f=i.find(".progressive-card:visible").first(),u=f.find(":focusable").first();$this&&$this.trigger("focus")&&(t==13||t==32?($this.trigger("click"),$this.addClass("keyed")):t==27&&($this.tooltip("hide"),$this.trigger("blur")));i=$this.closest(".progressive");t!=9||n.shiftKey?t==9&&n.shiftKey&&$this.hasClass("keyed")&&u.length!==0&&(n.preventDefault(),$this.removeClass("keyed"),r(i)):$this.hasClass("keyed")&&u.length!==0&&(n.preventDefault(),$this.removeClass("keyed"),li(i))})},ft=function(){var i=0,f=0,e=0,o;tt.on("click",function(){var s=$(this).closest(".progressive"),h=0,c=0,v;u();var l=s.find(".view-more-cards"),a=s.find(".view-less-cards"),r=s.find(".view-incless-cards");return t()?(i=$(".related-leadership").attr("incr-cards-xs"),e=550):n()?(i=$(".related-leadership ").attr("incr-cards-sm"),e=350):(i=$(".related-leadership ").attr("incr-cards-lm"),e=480),f=$(".progressive-card.filtered:visible").length,i=parseInt(i),s.each(function(){var n=$(this).hasClass("enable-filter")?$(this).find(".progressive-card.filtered"):$(this).find(".progressive-card");n.each(function(){h>=f&&c<i&&(n.eq(h).hide().slideDown(),c++);h++})}),v=$(".progressive-card.filtered:visible"),f=v.length,h==f?(l.attr("tabindex","-1").addClass("screenReaderOnly"),l.attr("aria-hidden","true"),a.attr("tabindex","0").removeClass("screenReaderOnly").addClass("adjustive-margin-left"),a.attr("aria-hidden","false"),r.attr("tabindex","0").removeClass("adjustive-margin-left").addClass("adjustive-margin-right"),a.show(),r.trigger("focus"),r.addClass("hkeyed"),l.hide(),r.is(":visible")||a.attr("tabindex","0").removeClass("adjustive-margin-right").removeClass("adjustive-margin-left")):(l.attr("tabindex","0").addClass("adjustive-margin-right"),r.attr("tabindex","0").addClass("adjustive-margin-left").removeClass("screenReaderOnly").removeClass("adjustive-margin-right"),r.attr("aria-hidden","false"),r.show()),o=v.eq(f-c).find(":focusable"),window.scroll(0,v.eq(f-c).position().top+e),o});tt.on("keydown",function(n){var t;$this=$(this);t=n.which;$this&&$this.trigger("focus")&&(t==13||t==32?($this.trigger("click"),$this.addClass("keyed")):t==27&&($this.tooltip("hide"),$this.trigger("blur")));var i=$(this).closest(".progressive"),f=i.find(".progressive-card:visible").first(),u=f.find(":focusable").first();t!=9||n.shiftKey?t==9&&n.shiftKey&&($this.hasClass("LessKeyed")&&u.length!==0&&(n.preventDefault(),$this.removeClass("LessKeyed"),r(i)),$this.hasClass("keyed")&&u.length!==0&&(n.preventDefault(),$this.removeClass("keyed"),r(i))):($this.hasClass("keyed")&&(n.preventDefault(),o.trigger("focus"),$this.removeClass("keyed")),$this.hasClass("LessKeyed")&&u.length!==0&&(n.preventDefault(),$this.removeClass("LessKeyed"),d(i)))})},et=function(){var e=0,i=0,s=0,f,o=0,h,c;it.on("click",function(){var v=0,c=$(this).closest(".progressive");u();var r=c.find(".view-more-cards"),l=c.find(".view-incless-cards"),a=c.find(".view-less-cards");return t()?(i=$(".related-leadership").attr("incr-cards-xs"),e=$(".related-leadership ").attr("data-cards-xs"),o=550):n()?(i=$(".related-leadership ").attr("incr-cards-sm"),e=$(".related-leadership ").attr("data-cards-sm"),o=350):(i=$(".related-leadership ").attr("incr-cards-lm"),e=$(".related-leadership ").attr("data-cards-lm"),o=480),i=parseInt(i),e=parseInt(e),c.each(function(){f=$(".progressive-card.filtered:visible");var n=f.length-1;f.each(function(){n>=e&&v<i&&(f.eq(n).hide().slideUp(),v++);n--})}),f=$(".progressive-card.filtered:visible"),s=f.length,e===s?(r.attr("tabindex","0").removeClass("screenReaderOnly").removeClass("adjustive-margin-left").removeClass("adjustive-margin-right"),r.attr("aria-hidden","false"),l.attr("tabindex","1").addClass("screenReaderOnly"),l.attr("aria-hidden","true"),l.hide(),r.show(),r.addClass("LessKeyed"),r.trigger("focus")):(r.attr("tabindex","0").removeClass("screenReaderOnly"),r.attr("aria-hidden","false"),a.attr("tabindex","-1").addClass("screenReaderOnly"),a.attr("aria-hidden","true"),l.attr("tabindex","0").removeClass("adjustive-margin-right").addClass("adjustive-margin-left"),r.show(),r.trigger("focus"),a.hide()),h=f.eq(s-i).find(":focusable"),window.scroll(0,f.eq(s-i).position().top+o),h});c=function(i){var r=0,u=0,f=0,e,s;t()?(r=$(".related-leadership").attr("incr-cards-xs"),o=550):n()?(r=$(".related-leadership ").attr("incr-cards-sm"),o=350):(r=$(".related-leadership ").attr("incr-cards-lm"),o=480);u=$(".progressive-card.filtered:visible");f=u.length;e=i.find(".progressive-card:visible").eq(f-r);s=e.find(":focusable").first();s.each(function(n,t){if(t.tabIndex==0)return t.focus(),!1})};it.on("keydown",function(n){var t;$this=$(this);t=n.which;$this&&$this.trigger("focus")&&(t==13||t==32?($this.addClass("keyed"),$this.trigger("click"),$this.trigger("focus")):t==27&&($this.tooltip("hide"),$this.trigger("blur")));var i=$this.closest(".progressive"),u=i.find(".progressive-card:visible").first(),f=u.find(":focusable").first();$this.hasClass("keyed")&&(t!=9||n.shiftKey?t==9&&n.shiftKey&&(n.preventDefault(),$this.removeClass("keyed"),r(i)):(n.preventDefault(),$this.removeClass("keyed"),h.trigger("focus")));$this.hasClass("hkeyed")&&f.length!==0&&(t!=9||n.shiftKey||(n.preventDefault(),c(i),$this.removeClass("hkeyed")),t==9&&n.shiftKey&&(n.preventDefault(),$this.removeClass("hkeyed"),r(i)))})},ai=function(){var n=$("#redesign-main .richtext a, #redesign-main .content-module a, #interactive-main .richtext a, #interactive-main .content-module a");n.attr("data-linkcomponentname","inline link");n.attr("data-linktype","engagement")},vi=function(){var n=$(".speaker-bio a");n.attr("data-analytics-link-name","profiles");n.attr("data-analytics-content-type","engagement");n.attr("data-linkcomponentname","profiles");n.attr("data-linktype","engagement")},yi=function(n){return n.indexOf("/")>-1&&(n=i(n,"/","%2F")),n.indexOf("?")>-1&&(n=i(n,"\\?","%3F")),n.indexOf(":")>-1&&(n=i(n,":","%3A")),n.indexOf("@")>-1&&(n=i(n,"@","%40")),n.indexOf("=")>-1&&(n=i(n,"=","%3D")),n.indexOf("&")>-1&&(n=i(n,"&","%26")),n.indexOf("#")>-1&&(n=i(n,"#","%23")),n},i=function(n,t,i){return n.replace(new RegExp(t,"g"),i)},ot=function(){var n=window.location.href,t=new RegExp("[?|&][a-zA-Z0-9+._-]+=[a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+[a-z0-9](?:[a-z0-9-]*[a-z0-9])&?");if(n.match(t)){for(n.match(t).indexOf("?")&&(n=n.replace(t,"?"));n.match(t);)n=n.replace(t,"&");n=n.match("[&|?]$")?n.substring(0,n.length-1):n;history.pushState({},"",n)}},st=function(){var f=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,i=f?document.documentElement.clientHeight:window.innerHeight,r=parseInt($("body").css("height"),10),n=$("#footer-block").prev().children().last(),t=i-r,u=n.css("padding-bottom");n.hasClass("block-ribbon")&&(n=n.prev().last());t<0&&(n.css("padding-bottom",0),t=i-r,n.css("padding-bottom",parseInt(u,10)+t));i>r&&(u!==undefined?n.css("padding-bottom",parseInt(u,10)+t):n.css("padding-bottom",t))},ht=function(){var t=$("a, button, div[role='tab'], div[role='button'], div[role*='link'], div[class='ion'], div[class*='gh-item'], li[role='tab'], div[role='listitem'], input[class*='progressbar']"),i=$(".modal"),n=$(".content-wrapper"),r=$(".skip-link");if(n.hasClass("focus-indicator")){i.addClass("focus-indicator");n.addClass("focus-indicator");r.addClass("focus-indicator");t.on("mousedown",function(){var n=$(this);n.hasClass("nav-submenu-label")||setTimeout(function(){n.trigger("blur")},0)})}if(n.hasClass("focus-indicator-interactive")){i.addClass("focus-indicator");n.addClass("focus-indicator");r.addClass("focus-indicator");t.on("mousedown",function(){var n=$(this);n.hasClass("nav-submenu-label")||setTimeout(function(){n.trigger("blur")},0)})}},pi=function(){$('a[target$="_blank"]').each(function(){var n=$(this).attr("rel");(typeof n==typeof undefined||n===!1)&&$(this)[0].setAttribute("rel","noopener")})};return{init:ct,isTablet:n,isMobile:t,isFirefox:l,lazyLoadModule:ei,redirectBlockProfileOnLoad:a,setFeaturedImage:v,isMobileBrowser:c,viewLessCards:ut,viewAllCards:rt,viewMoreCards:ft,viewIncLessCards:et,progressiveSetup:k,setDynamicBackground:b,setHeroImage:y,resizeHeroImage:p,setGapWidth:w,ellipsisFunction:ri,removeTags:kt,ReplaceEncodedKeyword:yi,updatePaddingBottom:st,removeEmailInURL:ot,removeFocusIndicatorOnClick:ht,setLocationResult:ni,updateThirdPartyLinks:pi}}();smallMin=768;smallMax=999;skipLinksFocus=function(){if(IsIE()){var n=$("#redesign-main"),t=$("#footer-block");n.attr("tabindex","-1");t.attr("tabindex","-1")}},function(n,t){if(typeof define=="function"&&define.amd)define(["utility"],function(i){n.GlobalHeader=t(i)});else if(n.GlobalHeader=t(n.jQuery,n.jsUtility),ComponentRegistry.GlobalHeaderSettings){function i(){$("#scCrossPiece").length>0&&$("#scFieldValues").length<=0?$(".navbar-fixed-top").css("top",$("#scCrossPiece").height()):setTimeout(i,2500)}$(window).on("load",function(){var t,r;if(n.GlobalHeader.addBodyId(),n.GlobalHeader.elements.$tertiaryNav.css("display","none"),t=$("#scWebEditRibbon"),t.length>0&&$("#scFieldValues").length<=0){i();r=$("a[data-sc-id='QuickRibbon']",t.contents());r.on("click dblclick",function(){setTimeout(i,50)})}});$(function(){var t,i,r,u,f;$("html").hasClass("ie")&&(n.GlobalHeader.elements.$navMenu.attr("role","tablist"),n.GlobalHeader.elements.$navLabel.attr("role","tab"));n.GlobalHeader.elements.$viewPortWidth=$(document).width();n.GlobalHeader.elements.$deviceHeight=$(window).height();n.GlobalHeader.init();$(document).on("touchmove",function(t){var i=n.GlobalHeader.elements.$navContent;!i.has($(t.target)).length||!jsUtility.isMobile()||i.outerHeight()<i.get(0).scrollHeight||t.preventDefault()});$(function(){var n=$("#second-contact-link div.signin-links ul").find("li").last(),t=$("#menuFooter div.signin-links ul").find("li").last(),i=$("div.popover-content div.signin-links ul").find("li").last(),o=$("#navUserDisplayUserName").parents(".gh-item.signin-container"),r=t.prop("parentElement"),u=n.prop("parentElement"),s=i.prop("parentElement"),f=t.prop("previousSibling"),e=n.prop("previousSibling"),h=i.prop("previousSibling");if($("a#signout").attr("data-analytics-link-name","sign out"),$(".popover").length>0){n.detach();t.detach();$(".nav-icon-container").on("click",function(){f!==undefined&&t.appendTo(r);f=r=undefined});$("li.col-sm-12.secondary-item").on("click",function(){e!==undefined&&n.appendTo(u);e=u=undefined})}o.on("click",function(){var t=$(this),n=$("div.popover-content div.signin-links ul li a#signout").length>0;n===0&&h!==undefined&&i.appendTo(s)})});t=document.getElementsByClassName("gh-item acn-logo");i=new MutationObserver(function(){var r=parseInt($(".nav-submenu-label-text").css("font-size")),u=$(".layout-column"),e=$(".secondary-navs.panel-collapse"),i=$(".country-form"),l=$("#location-recommendation ul > li"),o=$("body"),a=$(".secondary-nav-menu"),f=$(".signin-container"),t=$(".signin.ucase"),v=parseInt(t.css("font-size")),s=$(".utility-nav"),h=$(".popover.show"),c=$(document).width()-($(".acn-logo.gh-item").width()+parseInt($(".primary-nav").css("padding-left"))+$(".utility-nav").width());$("#wave_sidebar_container").length!=0||jsUtility.isMobileBrowser()||jsUtility.isMobile()||jsUtility.isTablet()||(n.GlobalHeader.elements.$baseFontsize!=0&&n.GlobalHeader.elements.$baseFontsize<r&&(n.GlobalHeader.elements.$tertiaryItem.css({"min-width":" auto"}),n.GlobalHeader.elements.$secondaryItem.css({"word-break":" break-word"}),n.GlobalHeader.elements.$primaryNav.css({width:c}),i.css({"z-index":"3",height:"auto","margin-top":"3.13em"}),l.css({height:"auto"}),h.css({"word-break":" break-word"})),t.outerHeight()>f.height()?(t.removeAttr("style"),f.removeAttr("style")):v==n.GlobalHeader.elements.$baseFontsize&&t.css({"line-height":"4.38em"}),r>=n.GlobalHeader.elements.$baseFontsize*1.5?(n.GlobalHeader.elements.$primaryNav.css({width:c}),u.find(".multiple-l3").children().last().css({"word-break":" break-word"}),o.css("padding-top","0"),s.css({"z-index":"999"}),e.css({"padding-top":"3.13em",height:"auto"}),n.GlobalHeader.elements.$divContainer.css({"margin-top":"4.38em;"}),i.css({"z-index":"3",height:"auto","margin-top":"3.13em"})):r>=n.GlobalHeader.elements.$baseFontsize*1.4?(u.find(".multiple-l3").children().last().css({"word-break":" break-word"}),n.GlobalHeader.elements.$tertiaryItem.css({"min-width":" auto"}),n.GlobalHeader.elements.$secondaryItem.css({"word-break":" break-word"}),s.css({"z-index":"999"}),i.css({"z-index":"3"})):(n.GlobalHeader.elements.$primaryNav.css({width:"auto"}),u.find(".multiple-l3").children().last().css({"word-break":""}),o.css("padding-top",""),t.css({"line-height":""}),f.css({"line-height":""}),e.css({"padding-top":"0",height:"",top:""}),n.GlobalHeader.elements.$divContainer.css({"margin-top":"0"}),i.css({"z-index":"1"}),a.css({height:"auto"}),h.css({"word-break":""})))});t!=null&&t.length>0&&i.observe(t[0],{attributes:!0});$(".acn-logo.gh-item").css("z-index","auto");$("div .signin-links").length>0&&$("div .signin-links a").attr("data-linkcomponentname","top nav");r=function(){return Math.round(window.devicePixelRatio*100)};(r()>100||jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet())&&(u=$("#nav-icon").parents(".primary-nav").length>0,f=$(".nav-icon-container"),u&&f.attr({tabindex:0,"aria-label":"menu"}))});window.addEventListener("orientationchange",function(){n.GlobalHeader.elements.$divContainer.css({top:"",opacity:""});setTimeout(function(){if(n.GlobalHeader.elements.$viewPortWidth=$(document).width(),n.GlobalHeader.elements.$deviceHeight=$(window).height(),jsUtility.isTablet()||jsUtility.isMobile())n.GlobalHeader.elements.$primaryNav.css("width","");else{var t=parseInt($(".utility-nav").width()),i=parseInt(n.GlobalHeader.elements.$primaryNav.css("padding-left")),r=n.GlobalHeader.elements.$viewPortWidth-(i+t)-1;n.GlobalHeader.menuControl.closeTabletMenu();n.GlobalHeader.menuControl.closeTertiaryMenu();n.GlobalHeader.elements.$primaryNav.css("width",r);n.GlobalHeader.elements.$navMenu.parent().removeClass("hidden")}},300);n.GlobalHeader.menuControl.initializeMenu();n.GlobalHeader.menuControl.initializeAnalytics()},!1);$(window).on("resize",function(){var i=function(){return Math.round(window.devicePixelRatio*100)},r=navigator.appName=="Microsoft Internet Explorer"||!!(navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/rv:11/)),t=navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1;if(jsUtility.isMobile()&&!jsUtility.isTablet()&&(r||t)&&(i()>=200&&(n.GlobalHeader.menuControl.initializeAccessibleHamburgerIcon(),n.GlobalHeader.menuControl.initializeAccessibleNavSubMenu()),n.GlobalHeader.menuControl.initializeAccessibleHamburgerIcon(),n.GlobalHeader.menuControl.initializeAccessibleNavSubMenu()),!jsUtility.isMobile()&&jsUtility.isTablet()&&(n.GlobalHeader.menuControl.closeTabletMenu(),n.GlobalHeader.elements.$countrySelectorCont.hasClass(n.GlobalHeader.elements.$toggleCountryList)&&n.GlobalHeader.elements.$countrySelectorCont.removeClass(n.GlobalHeader.elements.$toggleCountryList),$("html").hasClass("safari")&&n.GlobalHeader.elements.$primaryNav.css("width",""),n.GlobalHeader.elements.$acnLogoContainer.removeClass("hidden"),n.GlobalHeader.menuControl.initializeAccessibleHamburgerIcon(),n.GlobalHeader.menuControl.initializeAccessibleNavSubMenu()),!jsUtility.isMobile()&&!jsUtility.isTablet()){if($grid=$(".layout-column .multiple-l3").packery({itemSelector:".secondary-item",percentPosition:!0}),n.GlobalHeader.menuControl.closeTabletMenu(),n.GlobalHeader.menuControl.closeMobileMenu(),n.GlobalHeader.menuControl.closeTertiaryMenu(),n.GlobalHeader.showHideSecondaryNav.hideSubNav(),$("html").hasClass("safari")&&$(".nav-icon-container").css("display")=="none"){var u=parseInt($(".utility-nav").width()),f=parseInt(n.GlobalHeader.elements.$primaryNav.css("padding-left")),e=$(window).width()-(f+u);n.GlobalHeader.menuControl.closeTabletMenu();n.GlobalHeader.menuControl.closeTertiaryMenu();n.GlobalHeader.elements.$primaryNav.css("width",e);n.GlobalHeader.elements.$navMenu.parent().removeClass("hidden")}t&&(n.GlobalHeader.menuControl.removeAccessibleHamburgerIcon(),n.GlobalHeader.menuControl.removeAccessibleNavSubMenu());n.GlobalHeader.elements.$navContent.removeClass("hidden");n.GlobalHeader.NavMenuScrollOnZoom();n.GlobalHeader.menuControl.removeAccessibleNavSubMenu()}n.GlobalHeader.menuControl.initializeMenu();n.GlobalHeader.menuControl.initializeAnalytics();n.GlobalHeader.destroyPackery(".layout-column .multiple-l3")})}}(typeof self!="undefined"?self:this,function(){function wi(){$("body").attr("id","body-id")}function fi(){var i=tr(),o=document.location.href.toLowerCase(),n=[],r,t,u,f,e;if(i!="null"&&i!=null&&typeof i!="undefined"&&i.length>0){for(r=JSON.parse(i),t=0;t<r.GeoGroup.length;t++)for(u=0;u<r.GeoGroup[t].CountryGroup.length;u++)for(f=0;f<r.GeoGroup[t].CountryGroup[u].CountryList.length;f++)n.push(r.GeoGroup[t].CountryGroup[u].CountryList[f]);n.sort(function(n,t){var i=n.CountryName,r=t.CountryName,u,f;return i==r?(u=n.Sites,f=t.Sites,u>f?-1:1):i>r?1:-1});ci(n)}else e="/api/sitecore/CountrySelectorModule/GetCountrySelectorData",$.ajax({type:"GET",url:e,contentType:"application/json; charset=utf-8",data:{pageContext:pageContext},dataType:"json",async:!0,cache:!0,error:function(){console.error("Error while trying to get Geo Group List.")},success:function(t){var f,i,r,u;if(t.GeoGroup!=null&&t.GeoGroup!=""){if(t.GeoGroup.length>0){for(typeof Storage!="undefined"&&(f={GeoGroup:t.GeoGroup,DateCreated:(new Date).getTime()},o.indexOf("/careers")>=0?localStorage.setItem(ri,JSON.stringify(f)):localStorage.setItem(ui,JSON.stringify(f))),i=0;i<t.GeoGroup.length;i++)for(r=0;r<t.GeoGroup[i].CountryGroup.length;r++)for(u=0;u<t.GeoGroup[i].CountryGroup[r].CountryList.length;u++)n.push(t.GeoGroup[i].CountryGroup[r].CountryList[u]);n.sort(function(n,t){var i=n.CountryName,r=t.CountryName,u,f;return i==r?(u=n.Sites,f=t.Sites,u>f?-1:1):i>r?1:-1});ci(n)}}else console.error("Page Context is not set.")}})}function tr(){var n=document.location.href.toLowerCase();return typeof Storage!="undefined"&&(at=n.indexOf("/careers")>=0?localStorage.getItem(ri):localStorage.getItem(ui),at!=null&&Date.now()-JSON.parse(at).DateCreated>864e5)?(n.indexOf("/careers")>=0?localStorage.removeItem(ri):localStorage.removeItem(ui),null):at}function ci(n){for(var o,i,l,u,r="",s="/"+window.location.pathname.split("/")[1],e="",v=document.location.href.toLowerCase(),h=document.location.host.split("."),c=$("p#current-country"),t=0;t<n.length;t++)if(o=n[t].CountryDotcomUrl,i=n[t].LanguageTitle,s==o){e='<li class="default">Default ('+i+") <\/li > ";break}else e='<li class="default">Default (English) <\/li > ';for(c.text().indexOf(i)===-1&&c.append("("+i+")"),l='<li class="dropdown-header ucase">All COUNTRIES &amp; LANGUAGES<\/li>',r='<ul role="menu" aria-labelledby="country-language-selector">',r+=e,r+=l,u=v.indexOf("/careers")>=0?"/careers":"",t=0;t<n.length;t++){var f=n[t].CountryName,b=n[t].CountryDotcomUrl+u,o=n[t].CountryDotcomUrl+u,k=s+u,a=h[0],y=h[1],p=document.location.protocol+"//"+a+"."+y+".cn/cn-zh"+u,w=document.location.protocol+"//Accenture-cn.cdnsvc.com/cn-zh"+u,i=n[t].LanguageTitle;r+=i=="Chinese"?a==="www"?'<li role="none"><a href="'+p+'" data-linktype="language" data-analytics-content-type="language" data-linkcomponentname="top nav" data-analytics-link-name=" '+f+'" role="menuitem">'+f+" ("+i+")<\/a><\/li>":'<li role="none"><a href="'+w+'" data-linktype="language" data-analytics-content-type="language" data-linkcomponentname="top nav" data-analytics-link-name=" '+f+'" role="menuitem">'+f+" ("+i+")<\/a><\/li>":'<li role="none"><a href="'+o+'" data-linktype="language" data-analytics-content-type="language" data-linkcomponentname="top nav" data-analytics-link-name=" '+f+'" role="menuitem">'+f+" ("+i+")<\/a><\/li>"}r+="<\/ul>";$("#location-recommendation").html(r)}function ct(n,t){var i=n.attr("class");return i&&(i=i.split(" ")),$.inArray(t,i)>0?!0:!1}function ei(){return $(window).width()>$(window).height()?!0:!1}function ut(){r.hasClass(u)?c.attr("aria-expanded","true"):c.attr("aria-expanded","false")}function oi(){a.hasClass("open")?(i.attr("role","button"),i.attr({"aria-expanded":"false","aria-label":"menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menuclose","data-analytics-link-name":"menu",tabindex:0})):(i.attr("role","button"),i.attr({"aria-expanded":"true","aria-label":"close menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menu","data-analytics-link-name":"menuclose",tabindex:0}));(!jsUtility.isTablet()&&jsUtility.isMobile()||jsUtility.isFirefox())&&(a.hasClass("open")?(i.attr("role","button"),i.attr({"aria-expanded":"true","aria-label":"close menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menu","data-analytics-link-name":"menuclose",tabindex:0})):(i.attr("role","button"),i.attr({"aria-expanded":"false","aria-label":"menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menuclose","data-analytics-link-name":"menu",tabindex:0})))}var v=16,ai,vi,k=$(".back-drop-tablet"),r=$(".utility-nav .country-form"),h="show-sub-menu",lt=$(".nav-content .nav-submenu"),p=$(".nav-content"),a=$("#nav-icon"),i=$("div.nav-icon-container.hidden-lg"),t=$('div.nav-submenu-label[data-parent= "#navigation-menu"]'),yi=$("div.nav-submenu-label"),u="show-country-list",dt=$("#search-body .search-body-wrapper"),o=$(".secondary-navs"),e=$(".acn-logo-container"),si=$(document),gt=$("#navigation-menu"),ni=$("#menuFooter"),ti=$(".secondary-item[data-tertiary]"),d=$("li.col-sm-12.secondary-item"),ii=$(".nav-submenu-label-L3"),tt=$("#tertiaryNav"),pi=$(".primary-nav"),hi=$("#second-contact-link"),ft=$("#tertiaryListContainer"),g=$(".nav-submenu-label"),it=!1,w=$(".signin-container"),nt=!1,f=!1,yt=!1,pt=!1,b=$("#nav-content-menu"),wt=$(".gh-item"),s=!1,c=$(".country-select-cont"),et=$(".secondary-item"),y=$("#header-topnav"),ot=$(".tertiary-item"),st=$(".navbar.navbar-default"),at="",ri="CountryLanguageSelectorData_Careers",ui="CountryLanguageSelectorData_Dotcom",rt,bi=function(){return ki(),di(),$(".search-icon-container.search-trigger").length==0&&gi(),nr(),ir(),"init done - all functions invoked"},ki=function(){var et=null,u=$(".ie .nav-content .secondary-navs"),c=$(".ie #block-header-new .primary-nav"),v=$(".ie #block-header-new .utility-nav"),d=$(".ie #block-header-new .navbar-background"),ot=$(".ie .nav-content .nav-submenu.panel"),st=$(".ie .cookie-nav .disclaimer-close-btn.close"),e=!1,r=!1,ut;w.on("keydown",function(n){var t=n.which;(t==40||t==38)&&(e=!0)});hi.html(ni.children().clone());n.initializeMenu();n.initializeAnalytics();si.on("click touchstart",function(n){jsUtility.isMobile()||jsUtility.isTablet()||$(n.target).closest(gt).length||t.is(n.target)||a.hasClass("open")||nt||l.hideSubNav()});jsUtility.isTablet()&&!jsUtility.isMobile()&&(o.removeClass("hidden"),p.addClass("hidden"));jsUtility.isTablet()||jsUtility.isMobile()||(o.addClass("hidden"),p.removeClass("hidden"));jsUtility.isMobile()&&p.removeClass("hidden");$(document).on("click",function(n){$(".popover").hasClass("show")&&$(n.target).closest("#block-header").length===0&&$(".popover").removeClass("show")});ot.on("click",function(){var n=$(".cookie-nav");u.length>0&&n.length>0&&(u.css("padding-top",n.height()+"px"),c.css("border-bottom","1px solid #e3e3e3"),v.css("border-bottom","1px solid #e3e3e3"),d.css({"border-bottom":"1px solid #e3e3e3",height:"70px"}))});st.on("click",function(){u.length>0&&(u.css("padding-top",""),c.css("border-bottom",""),v.css("border-bottom",""),d.css({"border-bottom":"",height:""}))});w.on("click",function(n){var r=$(this),f=$(".ion-ios-contact-outline"),i,u,t;if(!e)if(f.length>0){i=$(".popover");i.is(":visible")?i.removeClass("show"):i.addClass("show");$(document.body).on("click.signin-container",function(){var n=$(this);i.hide();n.off("click.signin-container")})}else n.preventDefault(),u=r.find("a").attr("href"),t=r.find("a").attr("target"),t=t===undefined||t===""?"_self":t,window.open(u,t);e=!1});w.on("keydown",function(n){var t=$(this),i=n.which;(i===13||i===32)&&($("div.popover").hasClass("show")?t.attr("aria-expanded","false"):t.attr("aria-expanded","true"),n.preventDefault())});i.off("click").on("click",function(t){var u,f,r,e;if(n.closeTertiaryMenu(),$("body").toggleClass("o-hidden"),(jsUtility.isTablet(!0)||jsUtility.isTablet()||jsUtility.isMobile())&&(tt.attr("display","none")||n.closeTertiaryMenu(),a.hasClass("open")?(i.attr("role","button"),i.attr({"aria-expanded":"false","aria-label":"menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menuclose","data-analytics-link-name":"menu",tabindex:0}),jsUtility.isMobile()?n.closeMobileMenu():n.closeTabletMenu(),jsUtility.isFirefox()&&(i.attr("role","button"),i.attr({"aria-expanded":"true","aria-label":"close menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menu","data-analytics-link-name":"menuclose",tabindex:0}),n.closeTabletMenu(),n.closeMobileMenu())):(i.attr("role","button"),i.attr({"aria-expanded":"true","aria-label":"close menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menu","data-analytics-link-name":"menuclose",tabindex:0}),jsUtility.isMobile()?n.openMobileMenu():n.openTabletMenu(),jsUtility.isFirefox()&&(i.attr("role","button"),i.attr({"aria-expanded":"true","aria-label":"close menu","data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-linkaction":"menu","data-analytics-link-name":"menuclose",tabindex:0}),n.openTabletMenu(),n.openMobileMenu()))),lt.removeClass(h),o.removeClass("in").addClass("collapse"),rr.closeCountrySelector(),et=null,u=$(".signin-links ul li"),u.length>0)for(f=0;f<u.length;f++)r=u[f],e=$(r).find("a")[0].innerText,e!==""&&(r.setAttribute("data-analytics-link-name",e.toLowerCase()),r.setAttribute("data-analytics-content-type","engagement"),r.querySelector("a#signout")&&r.setAttribute("data-analytics-content-type","sign out"));t.preventDefault()});t.on("click",function(){var t=$(this),n=t.closest(".nav-submenu"),c=$(this).next(),a=t.siblings(".secondary-navs"),v=$(".layout-column .multiple-l3 .secondary-item").eq(4),i=$(".layout-column .multiple-l3"),u=$(".layout-column .secondary-nav-menu"),e;s==!0?s=!1:document.activeElement.blur();jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet()?(o.removeClass("hidden"),n.hasClass(h)?setTimeout(function(){n.removeClass(h)},10):(n.attr("id")!="tertiary-block"&&lt.delay(1400).removeClass(h),setTimeout(function(){n.delay(2800).addClass(h)},10),ei()&&it&&(e=$(".tertiary-title").text(),c=$("div").find("[data-id='"+e+"']"))),$(".layout-column .multiple-l3 .secondary-item").removeAttr("style"),t.siblings().find(".secondary-nav-menu").removeAttr("style"),vt(".layout-column .multiple-l3")):ct(a,"hidden")?(o.addClass("hidden"),y.addClass("navbar-fixed-top"),IsIE()&&$(".secondary-navs").removeClass("secondary-navs-zoom"),f||(f=!0,setTimeout(function(){var o,e,s;l.showNav(n);f=!1;i.css("padding","0");o=window.outerWidth<=1024?"24.8%":window.innerWidth<1366?window.innerWidth<=1138&&window.innerWidth!=1051&&window.innerWidth!=1047?"24.6%":"24.8%":"24%";i.find(".secondary-item").css("width",o);i.find(".secondary-item").css("padding-left","1.225em");e=Packery.data($(".multiple-l3")[0]);(e!=undefined||jsUtility.isMobile()||jsUtility.isTablet())&&(e==undefined||e.maxY!=0&&e.maxX!=0)?(r!=!1||jsUtility.isMobile()||jsUtility.isTablet()||(rt=i.packery({itemSelector:".secondary-item",percentPosition:!0,transitionDuration:0}),r=!0,ht(t)),e.maxY!=0&&(s=e.maxY+50,u.css("height",(s/16).toFixed(2)+"em"),u.css("padding-bottom",3.13+"em"))):(rt=i.packery({itemSelector:".secondary-item",percentPosition:!0,transitionDuration:0}),r=!0,ht(t));kt()},100))):l.clickHideNav(n)});yi.on("keydown",function(n){var e=n.which,i=$(this),t=i.closest(".nav-submenu"),v=$(this).next(),p=i.siblings(".secondary-navs"),w=$(".layout-column .multiple-l3 .secondary-item").eq(4),u=$(".layout-column .multiple-l3"),c=$(".layout-column .secondary-nav-menu"),a;e===13||e===32||e===40?(s==!0&&(s=!1),jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet()?(o.removeClass("hidden"),t.hasClass(h)?(setTimeout(function(){t.removeClass(h)},10),i.attr("aria-expanded","false")):(t.attr("id")!="tertiary-block"&&lt.delay(1400).removeClass(h),setTimeout(function(){t.delay(2800).addClass(h)},10),ei()&&it&&(a=$(".tertiary-title").text(),v=$("div").find("[data-id='"+a+"']")),i.attr("aria-expanded","true")),$(".layout-column .multiple-l3 .secondary-item").removeAttr("style"),i.siblings().find(".secondary-nav-menu").removeAttr("style"),vt(".layout-column .multiple-l3")):ct(p,"hidden")?(o.addClass("hidden"),y.addClass("navbar-fixed-top"),IsIE()&&$(".secondary-navs").removeClass("secondary-navs-zoom"),f||(f=!0,setTimeout(function(){var e,n,o;l.showNavKeyPressedFirstItem(t);f=!1;u.css("padding","0");e=window.outerWidth<=1024?"24.8%":window.innerWidth<1366?window.innerWidth<=1138&&window.innerWidth!=1051&&window.innerWidth!=1047?"24.6%":"24.8%":"24%";u.find(".secondary-item").css("width",e);u.find(".secondary-item").css("padding-left","1.225em");n=Packery.data($(".multiple-l3")[0]);(n!=undefined||jsUtility.isMobile()||jsUtility.isTablet())&&(n==undefined||n.maxY!=0&&n.maxX!=0)?(r!=!1||jsUtility.isMobile()||jsUtility.isTablet()||(rt=u.packery({itemSelector:".secondary-item",percentPosition:!0,transitionDuration:0}),r=!0,ht(i)),n.maxY!=0&&(o=n.maxY+50,c.css("height",(o/16).toFixed(2)+"em"),c.css("padding-bottom",3.13+"em"))):(rt=u.packery({itemSelector:".secondary-item",percentPosition:!0,transitionDuration:0}),r=!0,ht(i));kt()},100))):l.clickHideNav(t)):e===38&&(s==!0&&(s=!1),jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet()?(o.removeClass("hidden"),t.hasClass(h)?setTimeout(function(){t.removeClass(h)},10):(t.attr("id")!="tertiary-block"&&lt.delay(1400).removeClass(h),setTimeout(function(){t.delay(2800).addClass(h)},10),ei()&&it&&(a=$(".tertiary-title").text(),v=$("div").find("[data-id='"+a+"']"))),$(".layout-column .multiple-l3 .secondary-item").removeAttr("style"),i.siblings().find(".secondary-nav-menu").removeAttr("style"),vt(".layout-column .multiple-l3")):ct(p,"hidden")?(o.addClass("hidden"),y.addClass("navbar-fixed-top"),IsIE()&&$(".secondary-navs").removeClass("secondary-navs-zoom"),f||(f=!0,setTimeout(function(){var e,n,o;l.showNavKeyPressedLastItem(t);f=!1;u.css("padding","0");e=window.outerWidth<=1024?"24.8%":window.innerWidth<1366?window.innerWidth<=1138&&window.innerWidth!=1051&&window.innerWidth!=1047?"24.6%":"24.8%":"24%";u.find(".secondary-item").css("width",e);u.find(".secondary-item").css("padding-left","1.225em");n=Packery.data($(".multiple-l3")[0]);(n!=undefined||jsUtility.isMobile()||jsUtility.isTablet())&&(n==undefined||n.maxY!=0&&n.maxX!=0)?(r!=!1||jsUtility.isMobile()||jsUtility.isTablet()||(rt=u.packery({itemSelector:".secondary-item",percentPosition:!0,transitionDuration:0}),r=!0,ht(i)),n.maxY!=0&&(o=n.maxY+50,c.css("height",(o/16).toFixed(2)+"em"),c.css("padding-bottom",3.13+"em"))):(rt=u.packery({itemSelector:".secondary-item",percentPosition:!0,transitionDuration:0}),r=!0,ht(i));kt()},100))):l.clickHideNav(t))});if(ut=$(".content-wrapper"),ut.hasClass("focus-indicator")){t.on("focus",function(){var n=$(this);n.parent(".nav-submenu").addClass("focus-indicator-enh");n.parent(".nav-submenu").siblings().removeClass("focus-indicator-enh");setTimeout(function(){var t=$("#nav-icon").hasClass("open");n.parent(".nav-submenu").siblings(".focus-indicator-enh").length==0&&t===!1&&l.hideSubNav()},100)});t.on("focusout",function(){var n=$(this);n.parent(".nav-submenu").removeClass("focus-indicator-enh")})}else t.on("focus",function(){var n=$(this);setTimeout(function(){var t=$("#nav-icon").hasClass("open");n.parent(".nav-submenu").siblings().children(":focus").length==0&&t===!1&&l.hideSubNav()},100)});$(".gh-item.search-icon-container").length==0?$(".utility-nav").addClass("show-country-select"):$(".utility-nav").removeClass("show-country-select");ti.on("click",function(){if((jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet())&&a.hasClass("open")&&(b.children().attr("style","display:none !important;"),it=!1,$(this).parent().attr("id")!="no-l3")){var n=$(this).data("tertiary");tt.css({opacity:"0",left:"-530px"});tt.css("display","flex").animate({opacity:"1",left:"0px"},100);$(".tertiary-title").html($(this).parents(".nav-submenu").find(".nav-submenu-label-text").text().trim());g.addClass("tertiaryLevel3");ft.html($(this).children("ul").clone());ft.children("ul").removeClass("hidden-xs hidden-sm hidden-md");$("div.nav-content.panel-group.tertiary-nav-container.hidden.crawl-down").removeClass("hidden")}});ti.on("keypress",function(n){var t=n.which,i;(t===13||t===32)&&(jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet())&&(a.hasClass("open")&&(b.children().attr("style","display:none !important;"),it=!1,$(this).parent().attr("id")!="no-l3"&&(i=$(this).data("tertiary"),tt.css({opacity:"0",left:"-530px"}),tt.css("display","flex").animate({opacity:"1",left:"0px"},100),$(".tertiary-title").html($(this).parents(".nav-submenu").find(".nav-submenu-label-text").text().trim()),g.addClass("tertiaryLevel3"),ft.html($(this).children("ul").clone()),ft.children("ul").removeClass("hidden-xs hidden-sm hidden-md"),$("div.nav-content.panel-group.tertiary-nav-container.hidden.crawl-down").removeClass("hidden"))),t!==9||n.shiftKey||($("#menuFooter").find("a").first().trigger("focus"),n.preventDefault()))});ii.on("click",function(){(jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet())&&(n.closeTertiaryMenu(),b.children().css("display",""))});ii.on("keypress",function(t){var i=t.which;(jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet())&&(i===13||i===32)&&(n.closeTertiaryMenu(),b.children().css("display",""))});k.on("click",function(){(jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet())&&n.closeTabletMenu()})},di=function(){var n=$(".secondary-nav-menu .first-secondary-item").find(".search-jobslink"),t=$(".secondary-nav-menu .first-secondary-item .secondary-hyperlink"),i=$(".ui-content-wrapper").length;n.length>0&&i>0?n.parent().css("height",5.43+"em"):n.parent().css("height",6.43+"em");pageContext.split("/")[3]=="cn-zh"&&t.css("margin-right","0em")},gi=function(){var i="#header-topnav",s=$("#search-body"),h=$(i+" .search-icon-container"),r=$(i+" .search-textbox"),n=$(i+" .ion-ios-close"),u=$(".utility-nav .country-select-cont"),f="show-search",o=$(".utility-nav .signin-container"),c=$(i+" .ion-ios-search");h.off("click").on("click",function(){$(c).hasClass("serp")||($(this).toggleClass(f),dt.css("height",deviceHeight+"px"),$("body").toggleClass("modal-open"),e.toggleClass("hidden"),a.toggleClass("hidden-xs hidden-sm"),u.css("visibility","hidden"),s.toggleClass("slide-down"),o.css("visibility","hidden"),t.css("visibility","hidden"),r.val(""),n.addClass("hidden"),ct($(this),f)||(dt.css("height",0),u.removeAttr("style"),o.removeAttr("style"),t.removeAttr("style")))});r.on("keyup",function(){viewPortWidth<=999&&($(this).val()!=""?n.removeClass("hidden"):n.addClass("hidden"))});n.on("click",function(t){t.preventDefault();r.val("");n.addClass("hidden");$("#search-recommendation").removeClass("in").addClass("collapse")})},nr=function(){var i=$(".country-select-cont"),n=!1,t=!1;i.on("keydown",function(i){var f=i.which;(f==13||f==32||f==40||f==38)&&(t||(n=!0,t=!0,fi()),n=!0,r.toggleClass(u),ut())});i.off("click").on("click",function(){n||(t||(t=!0,fi()),r.toggleClass(u),ut());n=!1});$(document).on("mouseup touchend",function(n){n||(n=window.event);var t=n.target||n.srcElement;!$(".show-country-list").length||$(t).attr("class")==="country-select-cont"||$(t).attr("class")==="show-country-list"||$(t).closest(".country-select-cont").length||$(t).closest(".show-country-list").length||(r.toggleClass(u),ut())})},vt=function(n){var t=Packery.data($(n)[0]);t!=undefined&&($(n).packery("destroy"),isPackery=!1)},ir=function(){function u(){for(var n=0;n<wt.length;n++)$(wt[n]).attr("data-cell","GH"+n)}function f(n,t){for(var o,u=-1,e=0,r="@",s=$(t[n]).find(".secondary-navs").attr("id"),h=$("#"+s+"> div .nav-item-links > ul").children("li"),f=0;f<h.length;f++){for(e=0,r="A",tertiaryLinks=$(h[f]).find("ul").children(),f==2&&(r=="A"&&(u=0),r=="B"&&(u=0)),o=0;o<tertiaryLinks.length;o++)f==2&&(r=="A"&&(r="C"),r=="B"&&(r="D")),$(tertiaryLinks[o]).find("a").attr("data-cell",r+u),u=u++,r=i(r),e==1?(r="A",u++,e=0):e++;u++}$("#"+s+"> div .nav-item-links > ul").attr("data-lastrow",u-1)}function e(n,t){for(var e,r=0,f=0,u="@",s=$(t[n]).find(".secondary-navs").attr("id"),h=$("#"+s+"> div .nav-item-links > ul").children("li"),o=0;o<h.length;o++){for(f=0,u="A",tertiaryLinks=$(h[o]).find("ul").children(),e=0;e<tertiaryLinks.length;e++)$(tertiaryLinks[e]).find("a").attr("data-cell",u+r),r=r++,u=i(u),f==3?(u="A",r++,f=0):f++;r++}$("#"+s+"> div .nav-item-links > ul").attr("data-lastrow",r-1)}function o(n,t){for(var f=-1,r="@",o=$(t[n]).find(".secondary-navs").attr("id"),e=$("#"+o+"> div .nav-item-links > ul").children("li"),u=0;u<e.length;u++)$(e[u]).find("a").hasClass("overview-link")||(r=="@"&&f++,r=i(r),$(e[u]).find("a").attr("data-cell",r+f),r=r=="D"?"@":r);$("#"+o+"> div .nav-item-links > ul").attr("data-lastrow",f)}function i(n){return String.fromCharCode(n.charCodeAt(0)+1)}var t,r,n;for(u(),t=$(".nav-submenu"),r=$(".layout-vertical"),n=0;n<t.length;n++)$(t[n]).hasClass("layout-vertical")&&$(t[n]).find("ul").hasClass("multiple-l3")?f(n,t):$(t[n]).find("ul").hasClass("multiple-l3")||$(t[n]).find("ul").hasClass("single-l2")?e(n,t):$(t[n]).find("ul").hasClass("no-l3")&&o(n,t)},ht=function(){var c=$("div#Businesses .multiple-l3").children("li"),t=Packery.data($(".multiple-l3")[0]),f,h,n,o,i,s;if(t!==undefined){var e=0,r=0,u=0;for(i=1;i<4;i++)for(n=0;n<t.items.length;n++)t.items[n].position.x>u&&i==1?u=t.items[n].position.x:t.items[n].position.x>r&&t.items[n].position.x<u&&i==2?r=t.items[n].position.x:t.items[n].position.x>e&&t.items[n].position.x<r&&i==3&&(e=t.items[n].position.x);for(n=0;n<t.items.length;n++)t.items[n].position.x==0?$(t.items[n].element).children().find("a").attr("data-cell","A"):t.items[n].position.x==e?$(t.items[n].element).children().find("a").attr("data-cell","B"):t.items[n].position.x==r?$(t.items[n].element).children().find("a").attr("data-cell","C"):t.items[n].position.x==u&&$(t.items[n].element).children().find("a").attr("data-cell","D");for(f=["A","B","C","D"],h=0,n=0;n<f.length;n++)for(o=$("a[data-cell= "+f[n]+"]"),i=0;i<o.length;i++)$(o[i]).attr("data-cell",f[n]+i);s=t.maxY+50;$(".layout-column .secondary-nav-menu").css("height",(s/16).toFixed(2)+"em");$(".layout-column .secondary-nav-menu").css("padding-bottom",3.13+"em")}},li=function(){return Math.round(window.devicePixelRatio*100)},bt=function(){document.body.scrollTop=0;document.documentElement.scrollTop=0},kt=function(){var n=Packery.data($(".multiple-l3")[0]);setTimeout(function(){li()>100&&$(".secondary-navs").not(".hidden").height()+$(".navbar-background").height()>$(window).height()&&($("body").css("padding-top","0"),$("#header-topnav").removeClass("navbar-fixed-top"),st.not(".interactive-navigation-bar").css({"z-index":"1031"}),bt(),IsIE()&&$(".secondary-navs").addClass("secondary-navs-zoom"))},500)},l={showNav:function(n){var r,i;f=!0;r=n;i=$("#"+r.data("id"));t.removeClass("active").closest(".nav-submenu").removeClass("border-bottom");t.attr("aria-expanded","false");i.siblings(".nav-submenu-label").addClass("active");i.siblings(".nav-submenu-label").attr("aria-expanded","true");i.parent(".nav-submenu").addClass("border-bottom");i.css({opacity:"0",top:"-530px"});i.removeClass("hidden").animate({opacity:"1",top:"70px"},400);var u=parseInt($(".nav-submenu-label-text").css("font-size")),e=$("body"),o=$(".layout-column");jsUtility.isMobileBrowser()||jsUtility.isMobile()||jsUtility.isTablet()||v!=0&&v<u&&($(".secondary-navs").not(".hidden").height()+$(".navbar-background").height()>$(window).height()&&(o.find(".multiple-l3").children().last().css({"font-size":""}),y.removeClass("navbar-fixed-top"),st.css({"z-index":"1031"}),e.css("padding-top","0"),bt()),$(".gh-item").not(".signin-container, .acn-logo").css({position:"relative","z-index":"11"}),ot.css({"min-width":" auto"}),et.css({"word-break":" break-word"}));f=!1},hideSubNav:function(){if(!nt&&!f){nt=!0;var i=parseInt($(".nav-submenu-label-text").css("font-size")),n=$("div.secondary-navs:not(.hidden)"),r=$("body");n.removeClass("active").closest(".nav-submenu").removeClass("border-bottom");t.removeClass("active");t.attr("aria-expanded","false");n.css({top:"0",opacity:"1"});n.animate({top:jsUtility.isTablet()?0:"-530px",opacity:"1"},400);setTimeout(function(){n.addClass("hidden");jsUtility.isMobileBrowser()||jsUtility.isMobile()||jsUtility.isTablet()||(v!=0&&v<i&&($(".gh-item").css({"z-index":"auto"}),$(".gh-item").not(".search-icon-container").css({position:"static"})),$(".gh-item").not(".signin-container, .acn-logo").css({position:"","z-index":""}),ot.css({"min-width":""}),et.css({"word-break":""}),y.addClass("navbar-fixed-top"),y.css({"margin-top":""}),o.css({"z-index":""}),st.css({"z-index":""}),r.css("padding-top",""));nt=!1},400)}},clickHideNav:function(n){var r=n,i=$("#"+r.data("id")),e=$("div.secondary-navs:not(.hidden)"),u=parseInt($(".nav-submenu-label-text").css("font-size")),f=$("body");nt||($("div.nav-submenu-label.active").removeClass("active"),$("div.nav-submenu").removeClass("border-bottom"),t.attr("aria-expanded","false"),nt=!0,i.css({top:"0",opacity:"1"}),i.animate({top:"-530px",opacity:"0"},300),setTimeout(function(){i.addClass("hidden");jsUtility.isMobileBrowser()||jsUtility.isMobile()||jsUtility.isTablet()||(v!=0&&v<u&&($(".gh-item").css({"z-index":"auto"}),$(".gh-item").not(".search-icon-container").css({position:"static"})),$(".gh-item").not(".signin-container, .acn-logo").css({position:"","z-index":""}),ot.css({"min-width":""}),et.css({"word-break":""}),y.addClass("navbar-fixed-top"),y.css({"margin-top":""}),o.css({"z-index":""}),st.css({"z-index":""}),f.css("padding-top",""));nt=!1},300));vt(".layout-column .multiple-l3")},showBackDrop:function(){if(!yt){yt=!0;$("html").css({overflow:"hidden"});$(".back-drop-tablet").css("position","fixed");b=$("#nav-content-menu");b.css({"margin-top":" 50px"});k.css({opacity:"0","z-index":"11",top:"0"});k.removeClass("hidden").animate({opacity:"0.6",zIndex:"11"},100);yt=!1;$(document).on("touchmove",function(n){var t=$(".nav-submenu-label").has($(n.target)).length,i=$(".primary-link-container").has($(n.target)).length,r=k.hasClass("hidden"),u=$("#nav-content-menu").height()<$(".primary-link-container").height()+ni.height()+50,f=$("#location-recommendation").has($(n.target)).length,e=$("#myModal").has($(n.target)).length,o=$("#tertiaryNav").has($(n.target)).length,s=$("#tertiaryNav").height()<$("#second-contact-link").height()+$("#tertiaryListContainer .tertiary-nav-container").height()+$(".primary-nav").height()+$("#tertiary-block > .tertiaryLevel3").height();t&&!i&&!o||r||u||f||e||s||n.preventDefault();$(event.target).hasClass("back-drop-tablet")&&n.preventDefault()})}},hideBackDrop:function(){pt||(pt=!0,$("html").css({overflow:""}),k.css({opacity:"0.6","z-index":"11"}),k.animate({opacity:"0",zIndex:"11"},10),setTimeout(function(){k.addClass("hidden");pt=!1},100))},showNavKeyPressedFirstItem:function(n){var u,i,r,e;f=!0;u=n;i=$("#"+u.data("id"));t.removeClass("active").closest(".nav-submenu").removeClass("border-bottom");t.attr("aria-expanded","false");i.siblings(".nav-submenu-label").addClass("active");i.siblings(".nav-submenu-label").attr("aria-expanded","true");i.parent(".nav-submenu").addClass("border-bottom");i.css({opacity:"0",top:"-530px"});i.removeClass("hidden").animate({opacity:"1",top:"70px"},400);r=i.find("a").first();e=i.find("a").last();setTimeout(function(){r.trigger("focus")},600);document.addEventListener("keydown",function(n){var t=n.which;t===36?r.trigger("focus"):t===35&&e.trigger("focus")});var o=parseInt($(".nav-submenu-label-text").css("font-size")),s=$("body"),h=$(".layout-column");jsUtility.isMobileBrowser()||jsUtility.isMobile()||jsUtility.isTablet()||v!=0&&v<o&&($(".secondary-navs").not(".hidden").height()+$(".navbar-background").height()>$(window).height()&&(h.find(".multiple-l3").children().last().css({"font-size":""}),y.removeClass("navbar-fixed-top"),st.css({"z-index":"1031"}),s.css("padding-top","0"),bt()),$(".gh-item").not(".signin-container, .acn-logo").css({position:"relative","z-index":"11"}),ot.css({"min-width":" auto"}),et.css({"word-break":" break-word"}));f=!1},showNavKeyPressedLastItem:function(n){var u,i,e,r;f=!0;u=n;i=$("#"+u.data("id"));t.removeClass("active").closest(".nav-submenu").removeClass("border-bottom");t.attr("aria-expanded","false");i.siblings(".nav-submenu-label").addClass("active");i.siblings(".nav-submenu-label").attr("aria-expanded","true");i.parent(".nav-submenu").addClass("border-bottom");i.css({opacity:"0",top:"-530px"});i.removeClass("hidden").animate({opacity:"1",top:"70px"},400);e=i.find("a").first();r=i.find("a").last();setTimeout(function(){r.trigger("focus")},600);document.addEventListener("keydown",function(n){var t=n.which;t===36?e.trigger("focus"):t===35&&r.trigger("focus")});var o=parseInt($(".nav-submenu-label-text").css("font-size")),s=$("body"),h=$(".layout-column");jsUtility.isMobileBrowser()||jsUtility.isMobile()||jsUtility.isTablet()||v!=0&&v<o&&($(".secondary-navs").not(".hidden").height()+$(".navbar-background").height()>$(window).height()&&(h.find(".multiple-l3").children().last().css({"font-size":""}),y.removeClass("navbar-fixed-top"),st.css({"z-index":"1031"}),s.css("padding-top","0"),bt()),$(".gh-item").not(".signin-container, .acn-logo").css({position:"relative","z-index":"11"}),ot.css({"min-width":" auto"}),et.css({"word-break":" break-word"}));f=!1}},rr={closeCountrySelector:function(){ct(r,u)&&(r.removeClass(u),c.attr("aria-expanded","false"))}},n={closeTabletMenu:function(){l.hideBackDrop();p.removeClass("crawl-right");setTimeout(function(){a.removeClass("open");jsUtility.isTablet()&&p.addClass("hidden")},210);b.children().css("display","");var n=$("div.secondary-navs");n.removeClass("active").closest(".nav-submenu").removeClass("border-bottom");t.removeClass("active")},openTabletMenu:function(){l.showBackDrop();p.removeClass("hidden");setTimeout(function(){a.addClass("open");p.addClass("crawl-right")},100)},closeTertiaryMenu:function(){it=!0;gt.parent().removeClass("hidden");tt.css("display","none");ft.html("");g.removeClass("tertiaryLevel3")},openMobileMenu:function(){$("html").css({overflow:"hidden"});a.addClass("open");p.addClass("crawl-down");e.addClass("hidden");c.addClass("absolute-fade")},closeMobileMenu:function(){$("html").css({overflow:""});b.children().css("display","");a.removeClass("open");p.removeClass("crawl-down");e.removeClass("hidden");c.removeClass("absolute-fade")},initializeMenu:function(){jsUtility.isTablet(!0)||jsUtility.isMobile()||jsUtility.isTablet()?ct(o,"collapse")||(o.addClass("collapse"),t.attr("data-toggle","collapse")):(o.removeClass("collapse"),t.removeAttr("data-toggle"))},initializeAnalytics:function(){var n,t;if(jsUtility.isMobile()||jsUtility.isTablet()){if(d&&d.length){for(n=0;n<d.length;n++)t=$(d[n]).children("span").text(),t&&$(d[n]).attr("data-analytics-link-name",t.toLowerCase());d.attr({"data-linktype":"nav/paginate","data-analytics-content-type":"nav/paginate","data-analytics-module-name":"top nav","data-linkaction":t.toLowerCase(),"data-linkcomponentname":"top/nav"})}}else d.removeAttr("data-linktype data-analytics-link-name data-analytics-module-name data-analytics-content-type data-linkaction data-componentname")},initializeAccessibleNavSubMenu:function(){var t=$("li.col-sm-12.secondary-item"),i=$(".back-menu-container-gh "),r=$("li.col-sm-12.secondary-item").length>0,u=$(".back-menu-container-gh ").length>0,n=$("li.col-sm-12.secondary-item span.secondary-item-text"),f=n.length>0;r&&t.attr({tabindex:0});u&&i.attr({tabindex:0});f&&n.removeAttr("tabindex")},initializeAccessibleHamburgerIcon:function(){var n=$("#nav-icon").parents(".primary-nav").length>0,t=$(".nav-icon-container");n&&(t.attr({tabindex:0,"aria-label":"menu"}),oi())},removeAccessibleHamburgerIcon:function(){var n=$("#nav-icon").parents(".primary-nav").length>0,t=$(".nav-icon-container");n&&t.removeAttr("tabindex")},removeAccessibleNavSubMenu:function(){var t=$("#nav-icon").hasClass("open"),i=$("li.col-sm-12.secondary-item"),r=$(".back-menu-container-gh "),u=$("li.col-sm-12.secondary-item").length>0,f=$(".back-menu-container-gh ").length>0,n=$("li.col-sm-12.secondary-item span.secondary-item-text"),e=n.length>0;t==!1&&(u&&i.removeAttr("tabindex"),f&&r.removeAttr("tabindex"),e&&n.attr({tabindex:0}))},closeHamburgerIcon:function(){var n=$("#nav-icon").hasClass("open"),t=$("li.col-sm-12.secondary-item"),i=$(".back-menu-container-gh "),r=$("li.col-sm-12.secondary-item").length>0,u=$(".back-menu-container-gh ").length>0,f=$("li.col-sm-12.secondary-item.escClass");n&&(r&&t.attr({tabindex:0}),u&&i.attr({tabindex:0}));n==!1&&(r&&(t.removeAttr("tabindex"),f.removeClass("escClass")),u&&(i.removeAttr("tabindex"),f.removeClass("escClass")))}};return document.onkeydown=function(i){function or(){var n=$(document.activeElement).data("cell");newLocator="[data-cell=GH"+dt(n[2],wt.length)+"]";$(newLocator).trigger("focus")}function sr(){var n=$(document.activeElement).data("cell");newLocator="[data-cell=GH"+gt(n[2])+"]";$(newLocator).trigger("focus")}function hr(){var t=String($(document.activeElement).attr("data-cell")[0])+""+String(dt($(document.activeElement).attr("data-cell")[1])),n="#"+y+" [data-cell="+t+"]";$(n).length==0&&(n=ni(y,t,f));$(n).trigger("focus")}function cr(){var n=String($(document.activeElement).attr("data-cell")[0])+""+String(gt($(document.activeElement).attr("data-cell")[1])),t="#"+y+" [data-cell="+n+"]";$(t).trigger("focus")}function lr(){var t=kt($(document.activeElement).attr("data-cell")[0])+""+String($(document.activeElement).attr("data-cell")[1]),n="#"+y+" [data-cell="+t+"]";$(n).length==0&&(n=ni(y,t,f));$(n).trigger("focus")}function ar(){var t=vi($(document.activeElement).attr("data-cell")[0])+""+String($(document.activeElement).attr("data-cell")[1]),n="#"+y+" [data-cell="+t+"]";$(n).length==0&&(n=ni(y,t,f));$(n).trigger("focus")}function kt(n){return nt&&d>0?n.charCodeAt(0)+1>68?"E":String.fromCharCode(n.charCodeAt(0)+1):n.charCodeAt(0)+1>67?"D":String.fromCharCode(n.charCodeAt(0)+1)}function vi(n){return n.charCodeAt(0)-1<65?"A":String.fromCharCode(n.charCodeAt(0)-1)}function dt(n,t){return parseInt(n)+1>t?t+1:parseInt(n)+1}function gt(n){return parseInt(n)-1<0?0:parseInt(n)-1}function ni(n,t,i){var u="",f,e,r;if(i==40)for(f=$("#"+n+"> div .nav-item-links > ul").data("lastrow"),r=parseInt(t[1]);r<=f&&$(u).length==0;r=dt(r,f))u="#"+n+" [data-cell="+t[0]+String(r)+"]";else if(i==38)for(r=parseInt(t[1]);r!=0&&$(u).length==0;r=gt(r))u="#"+n+" [data-cell="+t[0]+String(r)+"]";else if(i==37)if(e=$(".nav-submenu"),nt&&d>0)$(document.activeElement).parents(".secondary-item").prev().children("ul").find("a")[0].trigger("focus");else for(r=t[0];$(u).length==0;r=vi(r))u="#"+n+" [data-cell="+r+t[1]+"]";else if(i==39)if(nt&&d>0)for(r=t[0];r!="E"&&$(u).length==0;r=kt(r))u="#"+n+" [data-cell="+r+"0]";else for(r=t[0];r!="D"&&$(u).length==0;r=kt(r))u="#"+n+" [data-cell="+r+t[1]+"]";return u}var f=i.which,vr=$(g).parent().find(".active"),k=$(document.activeElement).hasClass("country-select-cont"),lt=$(document.activeElement).parents("div .signin-links").length>0,d=$(document.activeElement).parents(".multiple-l3").length,nt=$(document.activeElement).parents().hasClass("layout-column"),at=$(".popover"),o=$(document.activeElement).data("cell"),vt=$(document.activeElement).hasClass("overview-link"),y=$(document.activeElement).parents(".secondary-navs").attr("id"),yt=$(document.activeElement).hasClass("signin-container"),ot=$(document.activeElement).hasClass("nav-submenu-label"),yi=$(document.activeElement).hasClass("search-icon-container"),tt=$(document.activeElement).parents("#location-recommendation").length>0,pi=$(document.activeElement).parent().hasClass("tertiary-item"),wi=$(document.activeElement).parent().hasClass("secondary-item"),bi=$(document.activeElement).parent().hasClass("first-secondary-item"),ti=$(document.activeElement).hasClass("gh-item acn-logo"),ii=$(document.activeElement).hasClass("gh-item"),ki=$(document.activeElement).parents("#multipage-nav").length>0,p=$("#location-recommendation").find("a").last(),v=$("#location-recommendation").find("ul li:nth-child(3) a"),it=$(document.activeElement).hasClass("nav-icon-container hidden-lg"),ri=$(document.activeElement).hasClass("col-sm-12 secondary-item"),pt=$(document.activeElement).hasClass("back-menu-container-gh"),st=$("div#nav-content-menu.nav-content.panel-group.crawl-right").length>0||$("div#nav-content-menu.nav-content.panel-group.crawl-down").length>0,h=$("#nav-icon").hasClass("open"),b=$("li.col-sm-12.secondary-item.escClass"),a=$("div.nav-icon-container.hidden-lg"),rt=$("div.back-menu-container-gh "),ft=$("a.gh-item.acn-logo"),di=$("#menuFooter").find("a").last(),gi=$("#second-contact-link").find("a").last(),et=$("#navigation-menu").find("div.gh-item.nav-submenu-label").first(),nr=et.is(":focus"),tr=$("ul.tertiary-nav-container.col-sm-12.hidden-xs.hidden-sm.hidden-md").find("a").last(),ht=$("a.acn-logo"),ir=$("div.popover-content div.signin-links ul li a#signout"),rr=ir.is(":focus"),ur=$("div.popover-content div.signin-links ul li").find("a").first(),bt=$("div.hero-homepage-full-width-video-enabled"),fr=$(document.activeElement).hasClass("register-container"),hi,ai;if(document.activeElement===p[0]){if(f===9&&r.hasClass(u)&&(r.toggleClass(u),ut(),$("#redesign-main").hasClass(".body-content")&&$("#redesign-main.body-content").next().find(":focusable").first().trigger("focus"),(bt!==null||typeof bt!="undefined")&&bt.length>0)){var ui=$(".hero-btn-wrapper"),ei=$(".quick-access-tab").find("a").first(),si=$(".about-hero-parent-bcrumb a");ei.length>0?(i.preventDefault(),ei.trigger("focus")):si.length>0?(i.preventDefault(),si.first().trigger("focus")):ui.length>0?(i.preventDefault(),ui.trigger("focus")):$("#redesign-main.body-content").find(":focusable").first().trigger("focus")}i.shiftKey&&f===9&&(r.toggleClass(u),$(document.activeElement).parent().prev().children().trigger("focus"),i.preventDefault())}if(document.activeElement===v[0]&&i.shiftKey&&f===9&&r.hasClass(u)&&(r.toggleClass(u),ut(),c.trigger("focus"),i.preventDefault()),k&&(f===13&&($(document.activeElement).trigger("click"),setTimeout(function(){v.trigger("focus")},700),i.preventDefault()),f===32&&(jsUtility.isFirefox()&&($(document.activeElement).trigger("click"),v.trigger("focus"),i.preventDefault()),$(document.activeElement).trigger("click"),setTimeout(function(){v.trigger("focus")},2e3),i.preventDefault())),it&&f===32&&jsUtility.isFirefox()&&(oi(),h?$(document.activeElement).attr("aria-expanded","true"):$(document.activeElement).attr("aria-expanded","false")),f!==9||i.shiftKey||($(document.activeElement).text()=="Skip to footer"?(fi(),ft.trigger("focus"),i.preventDefault(),(jsUtility.isTablet()||jsUtility.isMobile())&&(a.trigger("focus"),i.preventDefault()),li()>=150&&(a.trigger("focus"),i.preventDefault())):it&&h==!1?((e.hasClass("hidden-sm")||e.hasClass("hidden-xs"))&&(ft.trigger("focus"),n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),n.closeTabletMenu(),n.closeMobileMenu(),i.preventDefault()),(e.hasClass("hidden-lg")||e.hasClass("hidden-md"))&&(ht.trigger("focus"),n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),n.closeTabletMenu(),n.closeMobileMenu(),i.preventDefault())):document.activeElement===di[0]||document.activeElement===gi[0]?((e.hasClass("hidden-sm")||e.hasClass("hidden-xs"))&&(n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),n.closeTabletMenu(),n.closeMobileMenu(),a.attr({"aria-expanded":"false","aria-label":"menu"}),ft.trigger("focus"),i.preventDefault()),(e.hasClass("hidden-lg")||e.hasClass("hidden-md"))&&(n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),n.closeTabletMenu(),n.closeMobileMenu(),a.attr({"aria-expanded":"false","aria-label":"menu"}),setTimeout(function(){ht.trigger("focus")},500),i.preventDefault())):it&&h?(et.trigger("focus"),i.preventDefault(),!jsUtility.isTablet()&&jsUtility.isMobile()&&(c.trigger("focus"),i.preventDefault()),t.hasClass("tertiaryLevel3")&&!jsUtility.isMobile()&&(rt.trigger("focus"),i.preventDefault())):k&&h?(et.trigger("focus"),i.preventDefault(),!jsUtility.isTablet()&&jsUtility.isMobile()&&(et.trigger("focus"),i.preventDefault()),$(".nav-submenu-label").hasClass("tertiaryLevel3")&&(rt.trigger("focus"),i.preventDefault())):document.activeElement===p[0]&&h?(!jsUtility.isTablet()&&jsUtility.isMobile()&&(et.trigger("focus"),i.preventDefault()),$(".nav-submenu-label").hasClass("tertiaryLevel3")&&(rt.trigger("focus"),i.preventDefault())):ti&&h==!1?(jsUtility.isTablet(!0)||jsUtility.isTablet()||jsUtility.isMobile())&&($(".ion-ios-search.serp").trigger("focus"),i.preventDefault()):tr.is(":focus")?h==!1?(l.hideSubNav(),$(".ion-ios-search.serp").trigger("focus"),i.preventDefault()):($("#menuFooter").find("a").first().trigger("focus"),i.preventDefault()):$(document.activeElement).hasClass("serp")&&h==!1?!jsUtility.isTablet()&&jsUtility.isMobile()?c.attr("tabindex",-1):c.removeAttr("tabindex"):rr&&($(".popover").removeClass("show"),w.attr("aria-expanded","false"),$("#country-language-selector").trigger("focus"),i.preventDefault())),i.shiftKey&&f===9&&(it?($("a.skip-link.skip-link-focusable.focus-indicator").trigger("focus"),n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),n.closeTabletMenu(),n.closeMobileMenu(),a.attr({"aria-expanded":"false","aria-label":"menu"}),i.preventDefault(),$(".ui-wrapper").hasClass("focus-indicator")||($("a.skip-link.skip-link-focusable").trigger("focus"),n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),n.closeTabletMenu(),n.closeMobileMenu(),a.attr({"aria-expanded":"false","aria-label":"menu"}),i.preventDefault())):nr||pt?(ft.trigger("focus"),i.preventDefault(),!jsUtility.isTablet()&&jsUtility.isMobile()?(c.trigger("focus"),i.preventDefault()):(a.trigger("focus"),i.preventDefault())):k&&h?(a.trigger("focus"),i.preventDefault()):$(document.activeElement).hasClass("serp")?(jsUtility.isTablet(!0)||jsUtility.isMobile())&&((e.hasClass("hidden-sm")||e.hasClass("hidden-xs"))&&(ft.trigger("focus"),i.preventDefault()),(e.hasClass("hidden-lg")||e.hasClass("hidden-md"))&&(ht.trigger("focus"),i.preventDefault())):!jsUtility.isTablet()&&jsUtility.isMobile()?ht.is(":focus")&&(a.trigger("focus"),i.preventDefault()):v.is(":focus")?r.hasClass(u)&&(r.toggleClass(u),ut(),c.trigger("focus"),i.preventDefault()):p.is(":focus")?(r.toggleClass(u),$(document.activeElement).parent().prev().children().trigger("focus"),i.preventDefault()):ur.is(":focus")&&($(".popover").removeClass("show"),w.attr("aria-expanded","false"),w.trigger("focus"),i.preventDefault())),f===27)r.hasClass(u)&&(r.toggleClass(u),ut(),c.trigger("focus"),(jsUtility.isTablet(!0)||jsUtility.isMobile())&&setTimeout(function(){c.trigger("focus")},10),i.preventDefault()),g.hasClass("active")&&(hi=g.parent().find(".active"),g.parent().find(".active").trigger("click"),setTimeout(function(){hi.trigger("focus")},400),i.preventDefault()),(yt||lt)&&(linkPopOver.removeClass("show"),w.trigger("focus"),w.attr("aria-expanded","false"),i.preventDefault()),h&&($(document.activeElement).parents().find("div.nav-icon-container.hidden-md.hidden-lg").trigger("click"),n.closeHamburgerIcon(),n.removeAccessibleNavSubMenu(),a.trigger("focus"),b.removeClass("escClass"),i.preventDefault());else if(f===13||f===32)yt?at.length>0?at.trigger("click"):$(document.activeElement).trigger("click"):tt?($(document.activeElement)[0].click(),i.preventDefault()):ti?$(document.activeElement).children("img").trigger("click"):ot?(s=!0,$(document.activeElement).trigger("click"),i.preventDefault()):yi?($(".search-icon-container").trigger("click"),i.preventDefault()):pi||wi||bi?(i.preventDefault(),$(document.activeElement)[0].click()):ki?$(document.activeElement)[0].click():it?(s=!0,$(document.activeElement).trigger("click"),n.initializeAccessibleHamburgerIcon(),n.initializeAccessibleNavSubMenu(),b.removeClass("escClass"),$(document.activeElement).trigger("focus"),oi(),i.preventDefault()):ri?(s=!0,$(document.activeElement).addClass("escClass"),$(document.activeElement).trigger("click"),rt.trigger("focus"),i.preventDefault()):pt?(s=!0,$(document.activeElement).trigger("click"),b.trigger("focus"),b.removeClass("escClass"),$(document.activeElement).trigger("focus"),i.preventDefault()):fr&&f===32&&i.preventDefault();else if(f===39)ot&&(s=!0,st&&($(document.activeElement).trigger("click"),$(document.activeElement).trigger("focus"),i.preventDefault())),ri&&(s=!0,$(document.activeElement).addClass("escClass"),$(document.activeElement).trigger("click"),rt.trigger("focus"),i.preventDefault()),ii?(i.preventDefault(),st==!1&&or()):o&&o.length==2&&(nt&&d>0?$(document.activeElement).parents(".secondary-item").children("ul").find("a").attr("data-cell")[0]=="D"||$(document.activeElement).parents(".secondary-item").next().children("ul").find("a")[0].trigger("focus"):(i.preventDefault(),lr()));else if(f===37)pt&&(s=!0,$(document.activeElement).trigger("click"),b.trigger("focus"),b.removeClass("escClass"),$(document.activeElement).trigger("focus"),i.preventDefault()),ot&&(s=!0,st&&($(document.activeElement).trigger("click"),ot.siblings().removeClass("hidden"),$(document.activeElement).trigger("focus"),i.preventDefault())),ii&&st==!1&&sr(),o&&o.length==2&&(nt&&d>0?$(document.activeElement).parents(".secondary-item").prev().children("ul").find("a").attr("data-cell")[0]=="D"||$(document.activeElement).parents(".secondary-item").prev().children("ul").find("a")[0].trigger("focus"):(i.preventDefault(),ar()));else if(f===40){var er=$(document.activeElement).parent().children(".active").length,ci=$(document.activeElement).parent().children(".secondary-navs").find(".overview-link"),ct=$(document.activeElement).parent().siblings("li").find("a").first();yt&&(at.children(".popover-content").find("a").first().trigger("focus"),i.preventDefault());lt&&($(document.activeElement).parent().next().children().trigger("focus"),i.preventDefault());er>0?ci.length>0?(ci.trigger("focus"),i.preventDefault()):(ct=$(document.activeElement).parent().children().find("a").first(),ct.trigger("focus"),i.preventDefault()):vt?(ct=$(document.activeElement).parent().siblings("li").find("a").first(),ct.trigger("focus"),i.preventDefault()):o&&o.length==2?(hr(),i.preventDefault()):k&&($(document.activeElement).trigger("click"),setTimeout(function(){v.trigger("focus")},700),i.preventDefault());tt&&(document.activeElement===p[0]?(v.trigger("focus"),i.preventDefault()):($(document.activeElement).parent().next().children().trigger("focus"),i.preventDefault()))}else f===38?(ai=$(document.activeElement).parents(".nav-submenu").find(".overview-link"),lt&&($(document.activeElement).parent().prev().length==0?(w.trigger("focus"),i.preventDefault()):($(document.activeElement).parent().prev().children().trigger("focus"),i.preventDefault())),o?o.length==2&&o[1]==0?ai.length>0?($(document.activeElement).parents().siblings("li").children("a.overview-link").trigger("focus"),i.preventDefault()):($(document.activeElement).parents(".nav-submenu").find(".gh-item").trigger("focus"),i.preventDefault()):o.length==2&&o[1]>0?(cr(),i.preventDefault()):vt&&($(document.activeElement).parents(".nav-submenu.panel").find(".gh-item").trigger("focus"),i.preventDefault()):vt&&($(document.activeElement).parents(".nav-submenu.panel").find(".gh-item").trigger("focus"),i.preventDefault()),tt&&(document.activeElement===v[0]?(p.trigger("focus"),i.preventDefault()):($(document.activeElement).parent().prev().children().trigger("focus"),i.preventDefault())),k&&($(document.activeElement).trigger("click"),setTimeout(function(){p.trigger("focus")},700),i.preventDefault())):f===36?tt&&(v.trigger("focus"),i.preventDefault()):f===35&&tt&&(p.trigger("focus"),i.preventDefault())},{init:bi,addBodyId:wi,menuControl:n,showHideSecondaryNav:l,destroyPackery:vt,NavMenuScrollOnZoom:kt,elements:{$viewPortWidth:ai,$deviceHeight:vi,$backDropTablet:k,$countrySelectorCont:r,$mobileShowToggle:h,$nav:lt,$navContainer:p,$navIcon:a,$navIconContainer:i,$navLabel:t,$toggleCountryList:u,$varSearchBody:dt,$divContainer:o,$acnLogoContainer:e,$documentClick:si,$navMenu:gt,$menuFooter:ni,$tertiaryContainer:ti,$groupTitle:d,$tertiaryClose:ii,$tertiaryNav:tt,$primaryNav:pi,$secondContactLink:hi,$tertiaryListContainer:ft,$subMenuLabel:g,$isTertiaryMenuClosed:it,$userLinks:w,$isHidingSubMenu:nt,$isShowingSubMenu:f,$isShowingBackdrop:yt,$isHidingBackdrop:pt,$navContent:b,$tabElements:wt,$isKeyboard:s,$countrySelect:c,$headerTopNav:y,$secondaryItem:et,$tertiaryItem:ot,$baseFontsize:v,$grid:rt}}});$(window).on("load",function(){if(typeof inos!="undefined"){var n=inos;console.log("s variable overriden by inos")}});(function(n,t){if(typeof define=="function"&&define.amd)define.jquery,function(i){return n.HeroBlock=t(i)};else if(n.HeroBlock=t(n.jQuery,n.jsUtility),ComponentRegistry.HeroBlock){$(function(){HeroBlock.setHeroImage();HeroBlock.setFeatureBackgroundImage()});n.jQuery(window).on("resize",function(){HeroBlock.setHeroImage();HeroBlock.setFeatureBackgroundImage()})}})(typeof self!="undefined"?self:this,function(n,t){var i=function(){var i=n("#hero-carousel .hero-image-container"),f,r,u,e;i&&(f=i.data("alignment"),r=alt="",t.isMobile()?(r=i.data("imagexs"),alt=i.data("imagexsalt")):t.isTablet()?(r=i.data("imagesm"),alt=i.data("imagesmalt")):(r=i.data("imagelg"),alt=i.data("imagelgalt")),u=n("#hero-carousel .hero-item-image .dynamic-bg"),u&&u.remove(),r&&(e=alt?alt:" ",i.append("<img src='"+r+"' alt='"+e+"' class='col-xs-12 col-sm-4 dynamic-bg "+f+"'>")))},r=function(){var r=n("#hero-carousel .hero-item-featureoverview"),i,u,f;r&&(i="",u=n("#hero-carousel .hero-item-featureoverview .hero-wrapper > img"),u&&u.remove(),r.css("background-image",""),t.isMobile()?(f=n("#hero-carousel .hero-item-featureoverview .hero-wrapper"),i=r.data("imagexs"),i&&f&&f.append("<img src='"+i+"' alt=' ' class='col-xs-12'>")):(i=t.isTablet()?r.data("imagesm"):r.data("imagelg"),i&&r.css("background-image","url("+i+")")))};return{setHeroImage:i,setFeatureBackgroundImage:r}}),function(n,t){if(typeof define=="function"&&define.amd)define(["jquery"],function(i){return n.AnalyticsLinkTrackingAttributes=t(i)});else{n.AnalyticsLinkTrackingAttributes=t(n.jQuery);n.jQuery(window).on("load",function(){typeof _satellite!="undefined"&&_satellite.getVar("TrackingPlatform")==="adobelaunch"&&AnalyticsLinkTrackingAttributes.init()})}}(typeof self!="undefined"?self:this,function(n){var t={linkName:"data-analytics-link-name",linkType:"data-linktype",contentType:"data-analytics-content-type",templateZone:"data-analytics-template-zone",moduleName:"data-analytics-module-name"},o=[{elmSelector:"#block-footer a.phone-LocalPhoneNumber, #block-footer a.phone-TollFreeHotLine",parentSelector:"#block-footer",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"button:contains('SUBSCRIBE'), button:contains('Subscribe')",parentSelector:"",linkType:"cta",dataName:"subscribe",dataRel:"",isInternal:""},{elmSelector:"#multipage-nav .nav-articles li.nav-item a",parentSelector:"#multipage-nav",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".feature-profile-block-container.module .featured-profile-session-link, .feature-profile-block-container.module .featured-profile-link-arrow",parentSelector:".feature-profile-block-container.module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".calendar-details.module .calendar-buttons .btn.calendar-register, .calendar-details.module .calendar-buttons a.add-to-calendar-link, .calendar-details.module .get-direction-container a",parentSelector:".calendar-details.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".job-listing-right-rail.module .view-more-jobs a",parentSelector:".job-listing-right-rail.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".event-agenda.multi-day-event.module .session-details a.session-calendar",parentSelector:".event-agenda.multi-day-event.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".event-agenda.single-day-event.for-single-event.module .session-details a.session-calendar",parentSelector:".single-day-event.for-single-event.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".video-player-module .video-playlist .playlist-item",parentSelector:".video-player-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".hero-carousel-wrapper .expertise-hero-content .case-study-block .expertise-hero-related-tag-container a.topic-link",parentSelector:".hero-carousel-wrapper .expertise-hero-content .case-study-block",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".social-feed-module.social-feed-ig.module .view-on-link a",parentSelector:".social-feed-module.social-feed-ig.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".social-feed-module.module .retweet .btn.twitter-btn.corporate-regular",parentSelector:".social-feed-module.module",linkType:"share intent",dataName:"",dataRel:"",isInternal:""},{elmSelector:".social-feed-module.module a.cta",parentSelector:".social-feed-module.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".share-tools.module .share-icons-container .social-likes div[role^='link']",parentSelector:".share-tools.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".vertical.share-tools .share-icons-container .social-likes div[role^='link'] ",parentSelector:".vertical.share-tools",linkType:"share intent",dataName:"",dataRel:"",isInternal:""},{elmSelector:".width.share-tools .share-icons-container .social-likes div[role^='link'] ",parentSelector:".width.share-tools",linkType:"share intent",dataName:"",dataRel:"",isInternal:""},{elmSelector:".share-tools.module .share-icons-container div[role^='link'].print",parentSelector:".share-tools.module",linkType:"engagement",dataName:"print",dataRel:"",isInternal:""},{elmSelector:".social-feed-module.social-feed-twitter .view-on-link a",parentSelector:".social-feed-module.social-feed-twitter",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".icon-bar-section .social-icon .social-icon-trigger",parentSelector:".icon-bar-section",linkType:"share intent",dataName:"",dataRel:"",isInternal:""},{elmSelector:".tv-share .tv-share__icons .tv-social a",parentSelector:".richtext",linkType:"share intent",dataName:"",dataRel:"",isInternal:""},{elmSelector:".jumplink .anchor-link",parentSelector:".jumplink",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".icon-pause, .icon-play",parentSelector:"li",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:".menu-btn",parentSelector:"li",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"a#sign-in-link",parentSelector:"li",linkType:"sign in",dataName:"asset",dataRel:"productGuid",isInternal:""},{elmSelector:"a.color-primary.ui-link[data-rel][data-name]",parentSelector:"div#Tab-LatestJobs.tab-pane",linkType:"latest jobs",dataName:"",dataRel:"",isInternal:""},{elmSelector:".footer-textlink a, #disclaimer-cookiestatement a",parentSelector:"#block-footer",linkType:"footer",dataName:"",dataRel:"",isInternal:""},{elmSelector:".track-careers-register-link",parentSelector:".sign-in-register-module",linkType:"careers registration",dataName:"",dataRel:"",isInternal:""},{elmSelector:"span.acn-icon-for-login.icon-linkedin",parentSelector:"div.input-group.linkedin-signin ",linkType:"sign in",dataName:"asset",dataRel:"",isInternal:""},{elmSelector:"#refine-filter-by-city",parentSelector:"#filter-container",linkType:"careers job search",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#refine-filter-by-skill",parentSelector:"#filter-container",linkType:"careers job search",dataName:"",dataRel:"",isInternal:""},{elmSelector:"a.cta",parentSelector:"div.people-gallery.packery div[class*='mop']",linkType:"employee profile",dataName:"asset",dataRel:"",isInternal:""},{elmSelector:"span.acn-icon.acn-icon-for-login",parentSelector:"span.social-media-signin-section",linkType:"exit",dataName:"asset",dataRel:"",isInternal:""},{elmSelector:"a.disclaimer-close-btn.close",parentSelector:"div.cookie-nav",linkType:"call to action",dataName:"asset",dataRel:"",isInternal:""},{elmSelector:"input#update-subscription",parentSelector:"div.manage-alert.profile-subscriptions",linkType:"engagement",dataName:"update",dataRel:"",isInternal:"true"},{elmSelector:"a#btnMainMenu.menu-btn span",parentSelector:"nav#header-topnav.navbar ul#rightTopSection li",linkType:"nav/paginate",dataName:"asset",dataRel:"",isInternal:""},{elmSelector:"#DownloadModule a",parentSelector:"#DownloadModule",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".list-group-item[href]",parentSelector:"#main-menu",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#scroll-button",parentSelector:"",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:"false"},{elmSelector:"div.btn.convertible.btn-cta",parentSelector:"",linkType:"",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:"#find-jobs-form button",parentSelector:".component.find-job-module",linkType:"careers job search",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:"#ADFSLoginPage input[type='submit']",parentSelector:"",linkType:"sign in/out",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:"button[onclick*='findAJob']",parentSelector:"form",linkType:"careers job search",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:".IN-widget a",parentSelector:"#paddingbox",linkType:"linkedin match",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#smartbyte-linkedinmatch",parentSelector:"",linkType:"linkedin match",dataName:"",dataRel:"",isInternal:"false"},{elmSelector:".jobfeeds.tile .view-all-link",parentSelector:"",linkType:"view all",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:"div.footer-textlink span.country-language-trigger",parentSelector:"div.footer-textlink span.country-language-trigger",linkType:"footer",dataName:"",dataRel:"",isInternal:"false"},{elmSelector:"div.btnviewgallery.bg-color-primary.ucase",parentSelector:"div.btnviewgallery.bg-color-primary.ucase",linkType:"image gallery",dataName:"",dataRel:"",isInternal:"false"},{elmSelector:"a.btnclose-gallery",parentSelector:"a.btnclose-gallery",linkType:"x|image gallery",dataName:"",dataRel:"",isInternal:"false"},{elmSelector:"div#subs-main-modal",parentSelector:"div#subs-main-modal",linkType:"unsubscribe email",dataName:"",dataRel:"",isInternal:"false"},{elmSelector:"button.btn.btn-primary.recommended-jobs",parentSelector:"div.job-container-footer",linkType:"",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:"div.job-arrow a.no-underline.icon-arrowright2arrow-right2.color-full-black",parentSelector:"div.component.career-recommended-jobs",linkType:"",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:"h2.subheader1.color-full-black span a",parentSelector:"div.component.career-recommended-jobs",linkType:"",dataName:"",dataRel:"",isInternal:"true"},{elmSelector:".icon-chevron_thin",parentSelector:"#video-accordion .container-claster",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".close-video-accordion",parentSelector:"#video-accordion .container-claster",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.component.richtext div.card-carousel-bottom-richtext",parentSelector:"#block-by-the-numbers",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".icon-chevronthin.icon-chevron_thin.color-white",parentSelector:"#block-how-we-lead",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div#navigation-menu div.nav-submenu-label",parentSelector:"#block-header",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.nav-item-links li.first-secondary-item a",parentSelector:"#block-header",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"ul.no-l3 li.secondary-item a",parentSelector:"#block-header",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.nav-item-links li.tertiary-item a",parentSelector:"#block-header",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.nav-content div.nav-submenu-label-L3",parentSelector:"#block-header",linkType:"nav/paginate",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.calendar-details div.description-container a",parentSelector:"div.calendar-details div.description-container",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.link-cards div.dynamic-card-link a",parentSelector:"div.link-cards",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.icon-card-text a.icon-info-cta",parentSelector:"div.icon-card-text",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.video-player-module div.modal-play",parentSelector:"div.video-player-module",linkType:"engagement",dataName:"Video Play",dataRel:"",isInternal:""},{elmSelector:"div.video-player-module div.playlist-transcript a",parentSelector:"div.video-player-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".featured-insight.module .module-title-wrapper a",parentSelector:".featured-insight.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".featured-insight.module .description-container .cta-container a",parentSelector:".featured-insight.module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".related-leadership .cta-button-container a",parentSelector:".related-leadership.flex-container",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".topic-module .topic-container .topic-color-bar .cta-container a",parentSelector:".topic-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".theme-narrative-utility-container.module .theme-narrative-download-container .theme-narative-download a",parentSelector:".theme-narrative-utility-container.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".split-content-block-container.module .split-content-container .split-content-bar .split-image-text .content .split-link-arrow a",parentSelector:".split-content-block-container.module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".split-content-block-container.module .split-content-container .split-content-bar .split-image-text-link .content .split-link-arrow a",parentSelector:".split-content-block-container.module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".image-module.module .full-16x9 a",parentSelector:".image-module.module",linkType:"image",dataName:"",dataRel:"",isInternal:""},{elmSelector:".image-module.module .full-3x1 a",parentSelector:".image-module.module",linkType:"image",dataName:"",dataRel:"",isInternal:""},{elmSelector:".section-pagezone-cta a",parentSelector:".section-pagezone-cta",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".ui-container.hero-module .carousel-inner .hero-breadcrumblink a",parentSelector:".ui-container.hero-module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".ui-container.hero-module .carousel-inner a.topic-link",parentSelector:".ui-container.hero-module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".ui-container.hero-module .about-hero-wrapper .about-hero-parent-bcrumb a",parentSelector:".ui-container.hero-module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".progressive-display.view-all-cards",parentSelector:".progressive-display.view-all-cards",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".progressive-display.view-less-cards",parentSelector:".progressive-display.view-less-cards",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".video-player-module .video-modal .thumbnail-container .modal-play",parentSelector:".video-player-module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".audio-module .audio-player-container .audioplayer .playPause",parentSelector:".audio-module",linkType:"engagement",dataName:"audio play",dataRel:"",isInternal:""},{elmSelector:".audio-module .audio-player-container.audio-sticky-player .sticky-audioplayer .sticky-playPause",parentSelector:".audio-module",linkType:"engagement",dataName:"audio play",dataRel:"",isInternal:""},{elmSelector:"nav#header-topnav div.primary-nav div.acn-logo-container a.acn-logo",parentSelector:"nav#header-topnav div.primary-nav",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"nav#header-topnav div.utility-nav div.search-trigger",parentSelector:"nav#header-topnav div.utility-nav",linkType:"search activity",dataName:"initiated search - click/tap",dataRel:"",isInternal:""},{elmSelector:"nav#header-topnav div.utility-nav div.signin-container",parentSelector:"nav#header-topnav div.utility-nav",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"nav#header-topnav div.utility-nav div.country-form div#location-recommendation a",parentSelector:"div.country-form div#location-recommendation",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.signin-container div.signin-links a#signout",parentSelector:"div.signin-container div.signin-links",linkType:"sign out",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.signin-container div.signin-links a:not(#signout)",parentSelector:"div.signin-container div.signin-links",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.footer-links a,  div.legal-links a",parentSelector:"footer#footer-block div.footer-links",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"footer#footer-block div.legal-statements a",parentSelector:"footer#footer-block div.legal-statements",linkType:"footer",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div#block-footer div.social a.acn-spr",parentSelector:"div#block-footer div.social",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.downloads-base-container > a, div.downloads-info a",parentSelector:"div.downloads-base-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.reinvent-accordion-parent div.reinvent-accordion-module a.reinvent-accordion-link",parentSelector:"div.reinvent-accordion-parent div.reinvent-accordion-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.themes-ribbon a, div.event-ribbon a, div.join-ribbon a, div.article-ribbon div.container-left a ",parentSelector:"div.block-ribbon",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"article.mixed-media-block div.full-image-container a.cta-button",parentSelector:"article.mixed-media-block div.full-image-container",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.video-player-module div.video-content.align-right a",parentSelector:"div.video-player-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.media-items-block div.media-item div.modal-play.video-item",parentSelector:"div.media-items-block div.media-item",linkType:"engagement",dataName:"video modal",dataRel:"",isInternal:""},{elmSelector:"div.event-hero-bcrumb-wrapper div.event-hero-bcrumb a, div.hero-details-wrapper a.event-hashtag",parentSelector:"div.event-hero-wrapper",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.homepage-a a.cta-button div.btn-primary, div.homepage-b a.cta-button, div.about-landing-page a.cta-button div.btn-primary ",parentSelector:"div#landing-page-hero",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:"div.insight-card-block div.cta-serp-container a",parentSelector:"div.insight-card-block",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".module.newsletter-intruder-module .newsletter-intruder-cta a ",parentSelector:".module.newsletter-intruder-module",linkType:"",dataName:"",dataRel:"",isInternal:""},{elmSelector:".tab-container li",parentSelector:".tab-container",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".module.author-profile .author-information .module-title a",parentSelector:".module.author-profile",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".module.many-author-profile .many-author-container .eyebrow-title a",parentSelector:".module.many-author-profile",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".sign-in-module .input-group.social-single #linkedinButton",parentSelector:".sign-in-module",linkType:"linkedin",dataName:"",dataRel:"",isInternal:""},{elmSelector:".stay-connected-module .privacy-policy .form-group #captchaimg .BDC_CaptchaIconsDiv a",parentSelector:".stay-connected-module",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".stay-connected-module .privacy-policy .form-group #captchaimg .BDC_CaptchaImageDiv a",parentSelector:".stay-connected-module",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:" #captchaimg .BDC_CaptchaImageDiv a",parentSelector:".registration-thankyou-confirmation-module",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:" #captchaimg .BDC_CaptchaIconsDiv a",parentSelector:".registration-thankyou-confirmation-module",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".comments-module .post-a-comment-form .privacy-policy .BDC_CaptchaDiv .BDC_CaptchaImageDiv a",parentSelector:".comments-module",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".comments-module .post-a-comment-form .privacy-policy .BDC_CaptchaDiv .BDC_CaptchaIconsDiv a.BDC_ReloadLink",parentSelector:".comments-module",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".comments-module .post-a-comment-form .privacy-policy .BDC_CaptchaDiv .BDC_CaptchaIconsDiv a.BDC_SoundLink",parentSelector:".comments-module",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".featured-section-module-carousel ol.carousel-indicators li",parentSelector:".featured-section-module-carousel",linkType:"nav/paginate",dataName:"nav/paginate",dataRel:"",isInternal:""},{elmSelector:".module-article.featured-article-item a",parentSelector:".module-article.featured-article-item",linkType:"featuredarticlemodule",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#jSeekCaptcha #captchaimg .BDC_CaptchaImageDiv a",parentSelector:"#jSeekCaptcha",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#jSeekCaptcha #captchaimg .BDC_CaptchaIconsDiv .BDC_ReloadLink",parentSelector:"#jSeekCaptcha",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#jSeekCaptcha #captchaimg .BDC_CaptchaIconsDiv .BDC_SoundLink",parentSelector:"#jSeekCaptcha",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".featured-section-module-carousel .featured-section-module a.articleCategoryLink",parentSelector:".featured-section-module-carousel",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".featured-section-module-carousel .featured-section-module a.article-title",parentSelector:".featured-section-module-carousel",linkType:"headline",dataName:"",dataRel:"",isInternal:""},{elmSelector:".packery-container.clamp .packery-item .module-article .articlecategory a.articleCategory",parentSelector:".packery-container.clamp",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".packery-container.clamp .packery-item .module-article a.articleHeadline",parentSelector:".packery-container.clamp",linkType:"headline",dataName:"",dataRel:"",isInternal:""},{elmSelector:".profile-remove .BDC_CaptchaDiv .BDC_CaptchaImageDiv a",parentSelector:".profile-remove",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".profile-remove .BDC_CaptchaDiv .BDC_CaptchaIconsDiv a",parentSelector:".profile-remove",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#ChangeEmailBodyModule #captchaimg .BDC_CaptchaDiv .BDC_CaptchaImageDiv a",parentSelector:"#ChangeEmailBodyModule",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#ChangeEmailBodyModule #captchaimg .BDC_CaptchaDiv .BDC_CaptchaIconsDiv a",parentSelector:"#ChangeEmailBodyModule",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".panel-body .form-horizontal.acn-form .form-group #captchaimg .BDC_CaptchaDiv a",parentSelector:".panel-body",linkType:"cta",dataName:"",dataRel:"",isInternal:""},{elmSelector:".customform ~ #sectionSuccess a",parentSelector:"#sectionSuccess",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".customform .BDC_CaptchaDiv .BDC_CaptchaIconsDiv a",parentSelector:".customform",linkType:"form",dataName:"",dataRel:"",isInternal:""},{elmSelector:".forgotpassword .BDC_CaptchaDiv .BDC_CaptchaIconsDiv a",parentSelector:".forgotpassword",linkType:"form",dataName:"",dataRel:"",isInternal:""},{elmSelector:".resetpassword ~ #sectionSuccess a",parentSelector:"#sectionSuccess",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#networkError a",parentSelector:"#networkError",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:"#expired-disabled-link a",parentSelector:"#expired-disabled-link",linkType:"engagement",dataName:"",dataRel:"",isInternal:""},{elmSelector:".forgotpassword ~ #sectionSuccess a",parentSelector:"#sectionSuccess",linkType:"engagement",dataName:"",dataRel:"",isInternal:""}],s=[{LocationSelector:"nav#header-topnav",Name:"navigation header",Location:"global header",LocationMobile:""},{LocationSelector:"div.hero-header h2.page-identifier",Name:"hero header strategy links",Location:"top nav",LocationMobile:""},{LocationSelector:"div#myModal.modal.search-page",Name:"search modal",Location:"global header",LocationMobile:""},{LocationSelector:"div#countryLanguageSelectorModal.modal.location-selector",Name:"country language selector modal",Location:"global header",LocationMobile:"side nav"},{LocationSelector:"div#ui-wrapper div.custom-banner",Name:"landing page custom banner",Location:"top nav",LocationMobile:""},{LocationSelector:"div#block-hero",Name:"top page locator",Location:"marquee",LocationMobile:""},{LocationSelector:"div#block-footer.ui-container",Name:"footer block",Location:"footer",LocationMobile:"footer"},{LocationSelector:"footer#footer-block.ui-container",Name:"reinvent footer block",Location:"footer",LocationMobile:"footer"},{LocationSelector:"div#main-menu.sidr",Name:"side menu navigation",Location:"side nav",LocationMobile:""},{LocationSelector:"span#scroll-button.icon-circle",Name:"scroll swipe",Location:"page nav",LocationMobile:""},{LocationSelector:"div.component.career-recommended-jobs h2 span a",Name:"jobs",Location:"jobs",LocationMobile:""},{LocationSelector:"div#block-latest-jobs",Name:"recommended jobs",Location:"recommended jobs",LocationMobile:""},{LocationSelector:"div.secondary-nav-item",Name:"primary menu sublinks",Location:"secondary nav",LocationMobile:""},{LocationSelector:"div#hero-carousel, div#about-hero, div#bio-hero, div.event-hero-wrapper,div#landing-page-hero",Name:"base heroes",Location:"hero",LocationMobile:""},{LocationSelector:"div.block-ribbon.ui-container",Name:"block ribbon",Location:"block-ribbon",LocationMobile:""},{LocationSelector:"div.quick-access-tab",Name:"quick access tab",Location:"quick access tab",LocationMobile:""},{LocationSelector:".jumplink",Name:"jumplink",Location:"anchor links",LocationMobile:""},{LocationSelector:"div.optanon-alert-box-button-middle",Name:"Onetrust Link Analysis - Cookie Settings button",Location:"consent manager",LocationMobile:""},{LocationSelector:"div.optanon-alert-box-corner-close",Name:"Onetrust Link Analysis - Close Cookie Settings",Location:"consent manager",LocationMobile:""},{LocationSelector:"div.optanon-white-button-middle",Name:"Onetrust Link Analysis - Save and Allow Cookie Settings",Location:"consent manager",LocationMobile:""},{LocationSelector:"div#optanon-popup-top",Name:"Onetrust Link Analysis - Close Pop-Up Cookie Setting",Location:"consent manager",LocationMobile:""},{LocationSelector:"div[id^='block-'].ui-container",Name:"page blocks",Location:"customblock",LocationMobile:""},{LocationSelector:"div.sticky-access-bar",Name:"careers sticky access",Location:"careers sticky access",LocationMobile:""},{LocationSelector:".module.author-profile, .module.many-author-profile",Name:"Author Profile",Location:"right rail",LocationMobile:""},{LocationSelector:"div.block-ribbon",Name:"ribbon block module",Location:"ribbon",LocationMobile:""},{LocationSelector:"div#eventSmartByte",Name:"event calendar smart byte",Location:"event calendar smart byte",LocationMobile:""},{LocationSelector:"div#EventsLinkModule",Name:"event link",Location:"event link",LocationMobile:""}],h=[{Name:"Country Selector",ParentSelector:"div#block-footer",OverlaySelector:"div#countryLanguageSelectorModal",OverrideSelector:""},{Name:"City Modal",ParentSelector:"div.job-preference .form-group.has-feedback",OverlaySelector:"div#cities.modal.fade.row",OverrideSelector:""},{Name:"Industry Modal",ParentSelector:"div.job-preference .form-group",OverlaySelector:"div#industries.modal.fade.row",OverrideSelector:""},{Name:"Author Bio",ParentSelector:"div.item.blogpost.active",OverlaySelector:"div.modal.fade#main-modal",OverrideSelector:""},{Name:"Job Search:Refined by City",ParentSelector:"div.panel-body #refine-filter-by-city",OverlaySelector:"div#cities.modal.fade.row",OverrideSelector:""},{Name:"Job Search:Refined by Skill",ParentSelector:"div.panel-body #refine-filter-by-skill",OverlaySelector:"div#industries.modal.fade.row",OverrideSelector:""},{Name:"Job Search:Refined by Area of Business",ParentSelector:"div.panel-body #refine-filter-by-area-of-business",OverlaySelector:"div#area-of-business.modal.fade.row",OverrideSelector:""},{Name:"Job Search:Refined by Area of Expertise",ParentSelector:"div.panel-body #refine-filter-by-area-of-expertise",OverlaySelector:"div#area-of-expertise.modal.fade.row",OverrideSelector:""},{Name:"Email Subscription",ParentSelector:"input#update-subscription",OverlaySelector:"div#subs-main-modal",OverrideSelector:""},{Name:"Video Overlay\t",ParentSelector:"div[id^=hero-slide].item.video-back",OverlaySelector:"div[id^=hero-slide].item.video-back p.popupvid-x-button-container",OverrideSelector:".popupvid-x-button-container"},{Name:"Image Gallery",ParentSelector:"div.btnviewgallery.bg-color-primary.ucase",OverlaySelector:"div.modal.galleryModal",OverrideSelector:""},{Name:"Image Gallery - Mobile",ParentSelector:"div.image-gallery-folder",OverlaySelector:"div.modal.galleryModal",OverrideSelector:""},{Name:"Download Overlay",ParentSelector:"div#DownloadModule",OverlaySelector:"div#download-module-modal",OverrideSelector:""},{Name:"Unsubscribe Email",ParentSelector:"div.block-title",OverlaySelector:"div#subs-main-modal",OverrideSelector:""},{Name:"Accenture in your Day",ParentSelector:"div.module-blog-authors.single.component .carousel.slide .item.active",OverlaySelector:"div.modal.fade#main-modal",OverrideSelector:""},{Name:"Careers-Email",ParentSelector:"div#SectionModule_Investor div.panel-body section.contact-info.contact-card div.contact-info-item div.contact-info-item-envelope",OverlaySelector:"div.modal#contact-main-modal",OverrideSelector:""},{Name:"Type to Search Block",ParentSelector:"div.featured-section-module-carousel div.featured-section-viewall",OverlaySelector:"div#myModal.modal.search-page",OverrideSelector:""},{Name:"Not Found",ParentSelector:"div.page-not-found .search-trigger",OverlaySelector:"div#myModal.modal.search-page",OverrideSelector:""},{Name:"Authors - View All",ParentSelector:"a.ctaViewAll",OverlaySelector:"div.modal-content",OverrideSelector:""},{Name:"Post Comment Deletion",ParentSelector:"div#postacomment",OverlaySelector:"div.comment-div",OverrideSelector:""},{Name:"Youtube Video Overlay",ParentSelector:"span.employeename a table.connect",OverlaySelector:"div#cboxWrapper div#cboxContent",OverrideSelector:""},{Name:"Share Popover",ParentSelector:"div.popover.fade.bottom.in",OverlaySelector:".popover-content .social-likes.social-likes_vertical",OverrideSelector:""},{Name:"Reinvent - BioModal Module",ParentSelector:"a.bio-modal-trigger",OverlaySelector:"div.bio-modal",OverrideSelector:""},{Name:"Reinvent - Text Modal",ParentSelector:"a.text-modal-link",OverlaySelector:"div#text-modal",OverrideSelector:""},{Name:"Reinvent - Audio Modal",ParentSelector:"a.audio-modal-trigger, div.audio-modal-trigger",OverlaySelector:"div.modal.media-modal",OverrideSelector:""},{Name:"Reinvent - Video Modal",ParentSelector:"div.modal-play",OverlaySelector:"div.modal.media-modal",OverrideSelector:""},{Name:"Reinvent - Slideshare Modal",ParentSelector:"a.slideshare-modal-trigger, div.slideshare-modal-trigger",OverlaySelector:"div.modal.media-modal",OverrideSelector:""}],f=[{LinkComponentName:"Case Study Hero Block",ParentComponentSelector:".hero-carousel-wrapper .expertise-hero-content .case-study-block",ComponentTitleSelector:"",ComponentTitleOverride:"case-study-hero",NonDescendantOf:""},{LinkComponentName:"Marquee Component",ParentComponentSelector:"div[id^='hero-slide']",ComponentTitleSelector:"div.page-title",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"Marquee Component - Find Button",ParentComponentSelector:"div[id^='hero-slide']",ComponentTitleSelector:"button#btn-find",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"Dynamic Featured Section Component",ParentComponentSelector:"div.component.packery-item .module-article",ComponentTitleSelector:"h3.articlecategory",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"Featured Section Component",ParentComponentSelector:"div.featured-section-module.module-article.component",ComponentTitleSelector:"h3",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"Navigation arrow",ParentComponentSelector:"div.job-arrow",ComponentTitleSelector:"a",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"Carousel Components",ParentComponentSelector:"div.component .carousel-inner div.module-article.item.active",ComponentTitleSelector:"h3",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"About Accenture - How We Lead Components",ParentComponentSelector:".hwl-persons-item__card-closed",ComponentTitleSelector:".hwl-caption span:first-of-type",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"About Accenture - How We Lead Components - Expanded",ParentComponentSelector:".col-xs-12.hwl-persons-item__card-expanded",ComponentTitleSelector:".bio-header p span.name",ComponentTitleOverride:"",NonDescendantOf:""},{LinkComponentName:"Reinvent - Author Profile Module",ParentComponentSelector:".module.author-profile",ComponentTitleSelector:"",ComponentTitleOverride:"author",NonDescendantOf:""},{LinkComponentName:"Reinvent - Author Profile Module - Many",ParentComponentSelector:"article.module.many-author-profile",ComponentTitleSelector:"",ComponentTitleOverride:"author",NonDescendantOf:""},{LinkComponentName:"Reinvent - Quick Summary Module",ParentComponentSelector:"article.quick-summary-container",ComponentTitleSelector:"a.text-underline",ComponentTitleOverride:"quick summary",NonDescendantOf:""},{LinkComponentName:"Reinvent - Follow Us Module",ParentComponentSelector:"div.block-content div.follow-us-module",ComponentTitleSelector:"",ComponentTitleOverride:"connect/social",NonDescendantOf:""},{LinkComponentName:"Reinvent - Follow Us Module Ribbon",ParentComponentSelector:"div.follow-us-ribbon div.follow-us-module",ComponentTitleSelector:"",ComponentTitleOverride:"ribbon",NonDescendantOf:""},{LinkComponentName:"Reinvent - Dynamic Content Cards Image Block",ParentComponentSelector:"div.dynamic-content-card-image-block div.related-content-block",ComponentTitleSelector:"",ComponentTitleOverride:"related content",NonDescendantOf:""},{LinkComponentName:"Reinvent - Calendar Details Link on Description",ParentComponentSelector:"div.calendar-details div.description-container a",ComponentTitleSelector:"",ComponentTitleOverride:"calendar-description",NonDescendantOf:""},{LinkComponentName:"GDPR  Onetrust Link Analysis - Cookie Settings button",ParentComponentSelector:"div.optanon-alert-box-button-middle",ComponentTitleSelector:"",ComponentTitleOverride:"consent manager",NonDescendantOf:""},{LinkComponentName:"GDPR  Onetrust Link Analysis - Close Cookie Settings",ParentComponentSelector:"div.optanon-alert-box-corner-close",ComponentTitleSelector:"",ComponentTitleOverride:"consent manager",NonDescendantOf:""},{LinkComponentName:"GDPR  Onetrust Link Analysis - Save and Allow Cookie Settings",ParentComponentSelector:"div.optanon-white-button-middle",ComponentTitleSelector:"",ComponentTitleOverride:"consent manager",NonDescendantOf:""},{LinkComponentName:"GDPR  Onetrust Link Analysis - Close Pop-Up Cookie Settings",ParentComponentSelector:"div#optanon-popup-top",ComponentTitleSelector:"",ComponentTitleOverride:"consent manager",NonDescendantOf:""},{LinkComponentName:"Footer Legal Statements",ParentComponentSelector:"footer#footer-block div.legal-statements a",ComponentTitleSelector:"",ComponentTitleOverride:"footer",NonDescendantOf:""},{LinkComponentName:"Interactive Progressive Display Card Text Module",ParentComponentSelector:".card-text-module-block .progressive-display.view-all-cards, .card-text-module-block .view-less-cards",ComponentTitleSelector:"",ComponentTitleOverride:"card text module",NonDescendantOf:""},{LinkComponentName:"Interactive Progressive Display Module",ParentComponentSelector:".matrix-module-block .progressive-display.view-all-cards, .matrix-module-block .progressive-display.view-less-cards",ComponentTitleSelector:"",ComponentTitleOverride:"matrix module",NonDescendantOf:""},{LinkComponentName:"Interactive Progressive Display Card Image Module ",ParentComponentSelector:".card-image-module-block .progressive-display.view-all-cards, .card-image-module-block .view-less-cards",ComponentTitleSelector:"",ComponentTitleOverride:"card image module",NonDescendantOf:""},{LinkComponentName:"Progressive Display Module",ParentComponentSelector:".progressive-display.view-all-cards, .view-less-cards",ComponentTitleSelector:"",ComponentTitleOverride:"related services",NonDescendantOf:""},{LinkComponentName:"Filter Results Button - Meet Our People Block",ParentComponentSelector:".rlb-filter-btn",ComponentTitleSelector:"button.drop-down-btn",ComponentTitleOverride:"filter",NonDescendantOf:""}],r=function(){var f=n(".ui-container .block-content .col-lg-8 .content-module").first(),s=f.prevAll().children(),h=f.parent().parent().siblings(),e=n(".row .block-content .col-lg-8.col-md-8.col-sm-12.col-xs-12").closest(".ui-container").nextAll(),u=n(".ui-container .block-content .col-lg-8").siblings(".col-lg-4"),r=[],t,c,o,i;if(f.length>0&&r.push({Name:"body-"+f[0].classList[0],LocationSelector:f.parent().parent(),Location:"body"}),s.length>0)for(t=0;t<s.length;t++)i={Name:"summary-"+n(s[t])[0].classList[0],LocationSelector:n(s[t]),Location:"summary"},r.push(i);if(h.length>0)for(t=0;t<h.length;t++)i={Name:"body-"+n(h[t])[0].classList[0],LocationSelector:n(h[t]),Location:"body"},r.push(i);if(e.length>0)for(t=0;t<e.length;t++)n(e[t]).hasClass("block-ribbon")||(i={Name:"bottom-"+n(e[t])[0].classList[0],LocationSelector:n(e[t]),Location:"article bottom"},r.push(i));if(u.length>0)for(t=0;t<u.length;t++)if(!n(u[t]).hasClass("block-ribbon"))for(i={Name:"right-"+n(u[t])[0].classList[0],LocationSelector:n(u[t]),Location:"right rail"},r.push(i),c=n(u[t]).find("[data-analytics-template-zone]"),o=0;o<c.length;o++)i={Name:"right-"+n(c[o])[0].classList[0],LocationSelector:n(c[o]),Location:"right rail"},r.push(i);return r},e=function(){var r=jQuery(".ui-container.hero-module").nextAll(),s=r.last(),u=n(".ui-container .card-text-module-block"),f=[],e,c,h,o,t,i;if(r.length>0)for(t=0;t<r.length;t++)i={Name:"body-"+jQuery(r[t])[0].classList[0],LocationSelector:jQuery(r[t]),Location:"body"},f.push(i);if(s.length>0)for(e=0;e<s.length;e++)c={Name:"bottom-"+jQuery(s[e])[0].classList[0],LocationSelector:jQuery(s[e]),Location:"article bottom"},f.push(c);if(u.length>0)for(t=0;t<u.length;t++)h="article bottom",n(u[t]).closest(".ui-container").find(".author-module").length>0&&(h="body"),i={Name:"body-article-bottom-"+n(u[t])[0].classList[0],LocationSelector:n(u[t]),Location:h},f.push(i);if(o=n(".author-module .author-article"),o.length>0)for(t=0;t<o.length;t++)i={Name:"body-"+jQuery(o[t])[0].classList[0],LocationSelector:jQuery(o[t]),Location:"body"},f.push(i);return f},c=function(){var o=n(".row .block-content .capability-block").closest(".ui-container"),r=n(".ui-container.hero-module").nextAll(),u=n(".ui-container .block-content .col-lg-8").siblings(".col-lg-4"),f=[],e,t,h,s,i;if(o.length>0&&f.push({Name:"summary-"+o[0].classList[0],LocationSelector:o,Location:"article bottom"}),e=o.nextAll(),r.length>0)for(t=0;t<r.length;t++){if(n(r[t])[0]==o[0])break;n(r[t]).hasClass("block-ribbon")||(i={Name:"summary-"+n(r[t])[0].classList[0],LocationSelector:n(r[t]),Location:"body"},f.push(i))}if(e.length>0)for(t=0;t<e.length;t++)n(e[t]).hasClass("block-ribbon")||(i={Name:"summary-"+n(e[t])[0].classList[0],LocationSelector:n(e[t]),Location:"article bottom"},f.push(i));if(u.length>0)for(t=0;t<u.length;t++)if(!n(u[t]).hasClass("block-ribbon"))for(i={Name:"right-"+n(u[t])[0].classList[0],LocationSelector:n(u[t]),Location:"right rail"},f.push(i),h=n(u[t]).find("[data-analytics-template-zone]"),s=0;s<h.length;s++)i={Name:"right-"+n(h[s])[0].classList[0],LocationSelector:n(h[s]),Location:"right rail"},f.push(i);return f},l=function(){var u=n(".ui-container .block-content .col-lg-8 .blog-content-module").first(),f=u.parent().parent().find(".quick-summary-container"),h=u.parent().parent().parent().siblings(),o=n(".row .block-content .col-lg-8.col-md-8.col-sm-12.col-xs-12").closest(".ui-container").nextAll(),e=n(".ui-container .block-content .col-lg-8").siblings(".col-lg-4"),r=[],t,c,s,i;if(u.length>0&&r.push({Name:"body-"+u[0].classList[0],LocationSelector:u.parent().parent().parent(),Location:"body"}),f.length==0&&(f=u.parent().parent().find(".share-tools.module")),f.length>0)for(t=0;t<f.length;t++)i={Name:"summary-"+n(f[t])[0].classList[0],LocationSelector:n(f[t]),Location:"summary"},r.push(i);if(h.length>0)for(t=0;t<h.length;t++)i={Name:"body-"+n(h[t])[0].classList[0],LocationSelector:n(h[t]),Location:"body"},r.push(i);if(o.length>0)for(t=0;t<o.length;t++)n(o[t]).hasClass("block-ribbon")||(i={Name:"bottom-"+n(o[t])[0].classList[0],LocationSelector:n(o[t]),Location:"article bottom"},r.push(i));if(e.length>0)for(t=0;t<e.length;t++)if(!n(e[t]).hasClass("block-ribbon"))for(i={Name:"right-"+n(e[t])[0].classList[0],LocationSelector:n(e[t]),Location:"right rail"},r.push(i),c=n(e[t]).find("[data-analytics-template-zone]"),s=0;s<c.length;s++)i={Name:"right-"+n(c[s])[0].classList[0],LocationSelector:n(c[s]),Location:"right rail"},r.push(i);return r},u=[{BranchTemplate:"{20401DC1-4890-404F-AB10-895A5731FE3E}",TemplateZone:r()},{BranchTemplate:"{2323DED5-44D9-4D00-9460-19762A3A6DCA}",TemplateZone:r()},{BranchTemplate:"{6F20947A-9657-484C-8151-9D1C2B447FA4}",TemplateZone:r()},{BranchTemplate:"{ED78BFDD-16FC-4D31-8CD8-4EEEBBB2C414}",TemplateZone:e()},{BranchTemplate:"{04EFC50A-C891-46FF-A79F-E187649A3D00}",TemplateZone:e()},{BranchTemplate:"{E913586E-1024-4333-8B59-7456038F7BD8}",TemplateZone:c()},{BranchTemplate:"{AC2C368C-9364-4145-BA5B-BDAB581BD783}",TemplateZone:l()}],a=[{elmSelector:".richtext a"},{elmSelector:"#DownloadModule a"},{elmSelector:".pull-quote-margin a:not(.social-likes__button.social-likes__button_single)"},{elmSelector:".carousel.slide.social-media a"},{elmSelector:".videoWrapper iframe"},{elmSelector:".btn-stock-container button.btn-stock-widget"},{elmSelector:"#stock-widget a"},{elmSelector:".form-group p a"},{elmSelector:".module-body #textContent a"},{elmSelector:"#block-blogpost .component p a"},{elmSelector:".richtext button"},{elmSelector:"#blogpost-module .blogpost-content a"},{elmSelector:"div.page-not-found .navigation-links a"},{elmSelector:".accordionModule a"},{elmSelector:"#collapse-accordionmodule-accordioncontentmodule a"},{elmSelector:".adjacent-tiles a"},{elmSelector:".privacy-policy a"},{elmSelector:".sign-in-register-module a"},{elmSelector:".profile-remove a"},{elmSelector:".form-section a"},{elmSelector:".module-article .article-content a"},{elmSelector:".cardShare li"},{elmSelector:".quick-access-tab a"},{elmSelector:".partner-logo-card a"},{elmSelector:".rte-inline a"},{elmSelector:".icon-card-container .icon-card-text .card-content-details a"},{elmSelector:"a[href*='.pdf'],a[href*='.tekpdf'],a[href*='.PDF'],a[href*='.TEKPDF']"},{elmSelector:".blog-content-module a"},{elmSelector:".author-module .author-article a"}],v=function(){y();p();nt();it();rt();ut()},y=function(){var i=[];n.each(o,function(r,u){var h=!1,e=n(u.elmSelector),c=u.parentSelector,l,s,f,o;if(c?(l=n(c),l.length>0&&e.length>0&&e.closest(c).length>0&&(h=!0)):e.length>0&&(h=!0),h){var y=e.attr("data-name"),a=e.attr("data-linkaction"),p=e.attr("data-linktype"),v=e.attr("data-analytics-link-name"),w=e.attr("data-analytics-content-type");if(u.dataName.length>0)y||a||v||e.attr(t.linkName,u.dataName);else if(!a&&!v)for(s=0;s<e.length;s++)f=n(e[s]),o="",f.text()&&f.text().trim().length>0?o=f.text():f.prop("text")&&f.prop("text").trim().length>0?o=f.prop("text"):f.prop("innerText")&&f.prop("innerText").trim().length>0?o=f.prop("innerText"):f.attr("title")&&f.attr("title").trim().length>0?o=f.attr("title"):f.find("img").attr("alt")&&f.find("img").attr("alt").trim().length>0?o=f.find("img").attr("alt"):f.attr("value")?o=f.attr("value"):f.attr("data-network")&&f.attr("data-network").trim().length>0?o=f.attr("data-network"):f.attr("aria-label")&&f.attr("aria-label").trim().length>0?o=f.attr("aria-label"):f.hasClass("social-likes__widget_email")&&(o="email"),o&&f.attr(t.linkName,o.trim().toLowerCase());u.linkType.length>0&&(p||w||e.attr(t.contentType,u.linkType));i.push(e)}})},p=function(){n.each(s,b)},w=function(t){t!=undefined&&t.length>0&&n.each(t,k)},b=function(i,r){var u,f,e;if(r.Location==="customblock"){d(r);return}if(u=n(r.LocationSelector),u&&u.length){if(f=u.attr(t.templateZone),e=u.attr("data-linkpagesection"),f||e)return;u.attr(t.templateZone,r.Location)}},k=function(n,t){g(t);return},d=function(i){var e=n(i.LocationSelector),u;if(e)for(u=0;u<e.length;u++){var o="",f=n(e[u]),r=f.find("h2.section-title");typeof r=="undefined"&&(r=f.find("div.block-title h2"));o=r&&r.length?"block-"+r.text().trim().toLowerCase().replace(/\s+/g,"-"):f.attr("id");f.attr(t.templateZone,o)}},g=function(t){var i,r,f,u;if(i=typeof t.LocationSelector=="string"?n(t.LocationSelector):t.LocationSelector,i)for(r=0;r<i.length;r++)f="",u=n(i[r]),n(u).attr("data-analytics-template-zone",t.Location)},nt=function(){n("["+t.linkType+"], ["+t.contentType+"]").on("click",tt)},tt=function(){var i=n(this);n.each(h,function(r,u){var e=i.closest(u.ParentSelector),o,f;(e||e.length!==0)&&(o=i.closest("["+t.templateZone+"]"),f=o.attr(t.templateZone),f&&f.length&&n(u.OverlaySelector).attr(t.templateZone,f))})},it=function(){for(var o,e,s,u=0;u<f.length;u++){var r=f[u],i=n(r.ParentComponentSelector),h=i.attr("data-analytics-module-name"),c=i.attr("data-linkcomponentname");h||c||(o=i.closest(r.NonDescendantOf),o&&o.length)||i&&i.length&&(e="",r.ComponentTitleOverride.length?e=r.ComponentTitleOverride.toLowerCase():r.ComponentTitleSelector.length&&(s=n(r.ParentComponentSelector+" "+r.ComponentTitleSelector),s.each(function(n,r){var u="";u=i.eq(n).attr("id")?i.eq(n).attr("id"):r.textContent.trim().toLowerCase();jQuery(i[n]).attr(t.moduleName,u)})),e.length&&i.attr(t.moduleName,e))}},rt=function(){var t=dataModel.page.pageInfo.branchTemplate.toUpperCase(),i={},n,r;if(t&&t!=="default"){for(n=0;n<u.length;n++)if(r=u[n],r.BranchTemplate.indexOf(t)>-1){i=r;break}}else i=u[0];w(i.TemplateZone)},ut=function(){var r=function(r,u){var o=n(u.elmSelector),e;if(o.length>0)for(i=0;i<o.length;i++){var f=n(o[i]),s=f.attr("data-name"),h=f.attr("data-linkaction"),c=f.attr("data-linktype"),a=f.attr("data-analytics-link-name"),l=f.attr("data-analytics-content-type"),v=f.find("> span#icon-downloadID");if(a==undefined||l==undefined)if(s!=undefined?f.attr(t.linkName,s):h!=undefined?f.attr(t.linkName,h):(e="",f.text()&&f.text().trim().length>0?(e=f.text(),f["0"].innerText.indexOf("\n")>-1&&(e=f["0"].innerText.split("\n")[0])):f.prop("text")&&f.prop("text").trim().length>0?e=f.prop("text"):f.prop("innerText")&&f.prop("innerText").trim().length>0?e=f.prop("innerText"):f.attr("title")&&f.attr("title").trim().length>0?e=f.attr("title"):f.find("img").attr("alt")&&f.find("img").attr("alt").trim().length>0?e=f.find("img").attr("alt"):f.attr("value")?e=f.attr("value"):f.attr("aria-label")&&f.attr("aria-label").trim().length>0&&(e=f.attr("aria-label")),e&&f.attr(t.linkName,e.trim().toLowerCase())),c!=undefined)f.attr(t.contentType,c);else if(l!=undefined)continue;else v.length>0?f.attr(t.contentType,"engagement"):f.closest("[class='author-module']").length>0?(f.attr(t.contentType,"engagement"),f.attr("data-analytics-link-type","engagement")):f.attr(t.contentType,"cta")}},u=function(){n.each(a,r)};u()};return{init:v}});var minimizeBanner=getCookie("OptanonAlertBoxClosed"),localStorageName=$("#configLocalStorageName").attr("value"),isNewBanner=$("#isNewBanner").attr("value"),isIE=$("html").hasClass("ie");if(isNewBanner=="True"){localStorageName="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js";$(document).on("click",".optanon-toggle-display",function(){Optanon.ToggleInfoDisplay()})}if(substringStart=localStorageName.lastIndexOf("/")+1,substringEnd=localStorageName.lastIndexOf("."),localStorageName=localStorageName.substr(substringStart,substringEnd),localStorageName=localStorageName.replace(/-/g,""),minimizeButtonKey=localStorageName,minimizeBanner===undefined)$(document).one("click","button[onclick*=\"Optanon.TriggerGoogleAnalyticsEvent('OneTrust Cookie Consent'\"], button[class*='save-preference'], button[id*='accept'], [class*='banner-close']",function(){var n=isNewBanner=="True"?$("button#onetrust-pc-btn-handler").text():$("button.optanon-toggle-display.cookie-settings-button").text();localStorage.setItem(minimizeButtonKey,n);$("body").append('<div id="optanon-minimize-wrapper" data-analytics-template-zone="consent manager" data-analytics-module-name="consent manager" class="optanon-toggle-display"><button id="optanon-minimize-button" title="'+n+'" data-analytics-link-name="'+n.toLowerCase()+'" data-analytics-content-type="cta" aria-label="'+n+'" >'+n+"<\/button><\/div>")});else oldBannerKey=isNewBanner!="True"?minimizeButtonKey:"otSDKStub.js",replacedKey=localStorage.getItem("otSDKStub.js")==null?"otSDKStub.js":oldBannerKey,isIE&&($.cookie("OptanonAlertBoxClosed","",{expires:-1,path:clientGeoLocation}),$.cookie("OptanonAlertBoxClosed","",{expires:-1,path:"/"})),typeof $.cookie("OptanonAlertBoxClosed")!="undefined"&&(localStorage.getItem(replacedKey)==null||localStorage.getItem(replacedKey)=="")&&typeof localStorage.getItem(replacedKey)!="undefined"&&localStorage.setItem(replacedKey,"Cookie Settings"),$(function(){var n=localStorage.getItem(minimizeButtonKey)!=null?localStorage.getItem(minimizeButtonKey):"";$("body").append('<div id="optanon-minimize-wrapper" data-analytics-template-zone="consent manager" data-analytics-module-name="consent manager" class="optanon-toggle-display"><button id="optanon-minimize-button" title="'+n+'" data-analytics-link-name="'+n.toLowerCase()+'" data-analytics-content-type="cta" aria-label="'+n+'" >'+n+"<\/button><\/div>")});
//# sourceMappingURL=postbodyjs.map
