(function(n){n.belowthefold=function(t,i){var r=n(window).outerHeight()+n(window).scrollTop();return r<=n(t).offset().top-i.threshold};n.abovethetop=function(t,i){var r=n(window).scrollTop();return r>=n(t).offset().top+n(t).outerHeight()-i.threshold};n.rightofscreen=function(t,i){var r=n(window).width()+n(window).scrollLeft();return r<=n(t).offset().left-i.threshold};n.leftofscreen=function(t,i){var r=n(window).scrollLeft();return r>=n(t).offset().left+n(t).width()-i.threshold};n.inviewport=function(t,i){return!n.rightofscreen(t,i)&&!n.leftofscreen(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return n.abovethetop(t,{threshold:0})},"left-of-screen":function(t){return n.leftofscreen(t,{threshold:0})},"right-of-screen":function(t){return n.rightofscreen(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})}})})(jQuery);$(document).ready(function(){var n=$("#navLeft"),t=$("#left-nav-container"),i={Init:function(){t.length>0&&n.length>0&&(this.AdjustNav(),this.BindEvent())},BindEvent:function(){n.find("li a").on("click",this.ItemClick);$(window).on("scroll",this.AdjustNav);$(window).on("resize",this.AdjustNav)},ItemClick:function(t){t.stopPropagation();n.find("li").removeClass("active");$(this).parent().addClass("active")},AdjustNav:function(){var c=t.width(),s,f,i,r,u,e,h,o;n.css("width",c+"px");$("div.title:in-viewport").length>0||$("div.banner:in-viewport").length>0||$("#bannerSection:in-viewport").length>0?(s=t.offset().top,f=s,f=f-$(window).scrollTop(),n.css("top",f+"px")):$("footer:in-viewport").length>0?(i=$(window),r={top:i.scrollTop(),left:i.scrollLeft()},r.right=r.left+i.width(),r.bottom=r.top+i.height(),u=$("footer").offset(),u.right=u.left+$("footer").outerWidth(),u.bottom=u.top+$("footer").outerHeight(),e=r.bottom-u.top,e>0&&n.height()+e>i.height()&&(h=i.height()-(n.height()+e),n.css("top",h+"px"))):n.css("top","0");n.find("li").removeClass("active");$("#learn-more div.learn-more-section:in-viewport").first().length>0&&(o=$.trim($("#learn-more div.learn-more-section:in-viewport").first().attr("id")),o.length>0?n.find("li a[href='#"+o+"']").parent().addClass("active"):n.find("li").first().addClass("active"))}};i.Init()});$(document).ready(function(){var n=$("#affix-scroll-nav"),t={Init:function(){n.length>0&&(this.AdjustNav(),this.BindEvent())},BindEvent:function(){$(window).on("scroll",this.AdjustNav);$(window).on("resize",this.AdjustNav);$("#affix-scroll-nav li.dropdown").on("click",this.HandleDropDown)},AdjustNav:function(){if($("div.title:in-viewport").length>0||$("div.banner:in-viewport").length>0||$("#bannerSection:in-viewport").length>0||$("#manageYourAccountPhone:in-viewport").length>0||$("#learn-more div.learn-more-section:in-viewport").first().length<=0&&$("footer:in-viewport").length<=0)n.hide();else if($("#learn-more div.learn-more-section:in-viewport").first().length>0){var t=$.trim($("#learn-more div.learn-more-section:in-viewport").first().attr("id"));t.length>0&&$("a[data-scroll-to='"+t+"'").length>0?(n.show(),$("ul.dropdown-menu li").css("display","block"),$("a[data-scroll-to='"+t+"'").parent().css("display","none"),$("#affix-scroll-nav li.dropdown a.dropdown-toggle span#section-title").html($.trim($("a[data-scroll-to='"+t+"'").attr("data-title")))):$("footer:in-viewport").length>0&&n.show()}else $("footer:in-viewport").length>0?n.show():n.hide()},HandleDropDown:function(n){n.stopPropagation();$(this).hasClass("open")?$(this).removeClass("open"):$(this).addClass("open")}};t.Init()});$(document).ready(function(){var t=$("#anchor-nav-top"),n=$("#affix-scroll-nav-top"),i={Init:function(){t.length>0&&n.length>0&&(this.BindEvents(),this.AdjustNav())},BindEvents:function(){$(window).on("scroll",this.AdjustNav);$(window).on("resize",this.AdjustNav);var t=0;n.find("li").each(function(){t<$(this).height()&&(t=$(this).height())});n.find("li").css("height",t+"px")},AdjustNav:function(){if($("div.title:in-viewport").length>0||$("div.banner:in-viewport").length>0||$("#bannerSection:in-viewport").length>0?(n.css("position","relative"),n.data("pos","rel")):(n.css("position","fixed"),n.data("pos","fix")),n.width($("header div.title").width()+"px"),n.find("li").removeClass("active"),$("#learn-more div.learn-more-section:in-viewport").first().length>0){var t=$.trim($("#learn-more div.learn-more-section:in-viewport").first().attr("id"));t.length>0?n.find("li a[href='#"+t+"']").parent().addClass("active"):n.find("li").first().addClass("active")}}};i.Init()});$(document).ready(function(){$("a").each(function(){var n=$.trim($(this).attr("href")).toLowerCase().split("ispopup=1");if(n.length>1){$(this).data("popupurl",$.trim($(this).attr("href")));$(this).data("title",null);$(this).data("html",null);$(this).attr("href","#");$(this).on("click",function(){var n=$(this);$("#learn-more-popup-body").html($(this).data("html"));$("#learn-more-popup-title").html($(this).data("title"));($.trim($(this).data("title")).length==0||$.trim($(this).data("html")).length==0)&&$.ajax({url:$(this).data("popupurl"),type:"GET",dataType:"html",success:function(t){$("#learn-more-popup-body").html(t);try{$("#learn-more-popup-title").html(popupTitle);n.data("title",popupTitle)}catch(i){$("#learn-more-popup-title").html("");n.data("title","")}n.data("html",t);$("#myModal").modal("show");n.attr("data-toggle","modal");n.attr("data-target","#myModal")},error:function(){}})})}})});$(document).ready(function(){var n=$("#manageyouraccount"),t={init:function(){this.dpaManageYourAccountAdaptive()},dpaManageYourAccountAdaptive:function(){n.length>0&&(n.addClass("hidden-xs"),$("div.learn-more-section:first").before("
<\/div>"),$("#manageYourAccountPhone").html(n.html()))}};t.init()})