function tagWebtrends(n,t){return tealiumEvent("/webtrends/forms/"+n,n,"button_click",t,"","","","","","","","","","","","",""),!0}function tagWebtrendsAdvanced(n,t,i,r,u,f){return tealiumEvent(n,t,"button_click",i,r,u,f,"","",window.location.protocol+"//"+window.location.hostname+window.location.pathname,"","","","","","",""),!0}function tagWebtrendsAdvancedWithCustomReferrer(n,t,i,r,u,f,e,o){return tealiumEvent(n,t,"button_click",i,r,u,f,"",e,o,"","","","","","",""),!0}function tagWebtrendsWithSVL(n,t,i,r){return tealiumEvent(n,t,"button_click",i,"","","",r,window.location.hostname+n,window.location.protocol+"//"+window.location.hostname+window.location.pathname,"","","","","","",""),!0}function tagWebtrendsWithMMOConv(n,t,i,r){return tealiumEvent(n,t,"button_click",i,"","",r,"","","","","","","","","",""),!0}function tealiumTaggingForFormSubmit(n,t,i,r,u){var f=document.createElement("a");return f.href=window.document.referrer,tealiumEvent(n,t,"button_click",i,"","",r,"",f.hostname+f.pathname,"",u,"","","","","",""),!0}function SelectErrorElement(){$(".validation-summary-errors").on("click","a",function(n){n.preventDefault();var r=$(this).attr("href"),t="[id='"+r.replace(".","_")+"']",i=$(t).closest(".sb-box"),u=i.length>0?i:$("html, body"),f=$(t).offset().top,e=i.length>0?$(t).closest("#modal-container").offset().top:0,o=f-e-40,s=$(".MedMutualMainHeader.upper").outerHeight()+$(".MedMutualMainHeader.lower").outerHeight();u.animate({scrollTop:i.length>0?o:$(t).parent().offset().top-s-40},1e3);/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?setTimeout(function(){$(t).click()},1e3):$(t).focus()})}function FocusOnErrorList(){var n=$(".validation-summary-errors");n&&n.find("a").first().focus()}function SelectAndScrollToElement(n,t,i){var r="[id='"+n+"']";$("html, body").animate({scrollTop:$(r).parent().offset().top+t},i);$(r).focus()}function printCollapsibleContent(n){var f=document.body.innerHTML,i="",e=document.getElementsByClassName("expandAll"),o=$(".CollapseHeadingBox").length,t,r,u;if(e!=null)for(t=0;t<=o;t++)$(".ContentCollapsed").css("display","block"),r=document.getElementById("HeadingBox"+t),r!=null&&(i=i+document.getElementById("HeadingBox"+t).outerHTML),u=document.getElementById("CollapsibleContent"+t),u!=null&&(i=i+document.getElementById("CollapsibleContent"+t).outerHTML);document.body.innerHTML="<html><head><title>"+n+"<\/title><\/head><body class='individuals'><form id=\"form1\"><h2>"+n+'<\/h2><section id="main" role="main"><section class="columns-2"><section><article>'+i+"<\/article><\/section><\/section><\/section><\/form><\/body>";setTimeout(function(){window.print();document.body.innerHTML=f;$("article button.print").focus()},300)}function SetControlFocus(n){$("html, body").animate({scrollTop:$("#"+n).offset().top-40},1e3);$("#"+n).focus()}function showModalPopup(n,t,i){var r=$("#modalSupPopup");$("#modalSupPopup").fadeIn(400);$("#lblmodalTitle").html(n);$("#lblmodalMessage").html(decodeURIComponent(t));i=="1"?r.css("text-align","right"):r.css("text-align","left");r.find("button").first().focus()}function showConfirmPopup(){$("#ConfirmPopup").fadeIn(400);tealiumTaggingForFormSubmit("/webtrends/forms/MutualAppreciationLearnMoreFormSubmit","Mutual Appreciation Learn More Form Submit","300","MutualAppreciationLearnMoreForm_submit","")}function tealiumEvent(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w){s==""&&(s=window.location.hostname+window.location.pathname);h==""&&(h=window.document.referrer);executeScriptIfUtagIsLoaded(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w)}function executeScriptIfUtagIsLoaded(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w){if(typeof utag=="undefined")setTimeout(function(){executeScriptIfUtagIsLoaded(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w)},250);else{var b="land";window.innerHeight>window.innerWidth&&(b="port");utag.link({language:"en-US",page_name:t,page_type:n,event_name:i,event_value:r,scenario_name:u==""?null:u,scenario_step:f==""?null:f,mmo_conv:e,smart_view:o,"WT.es":s,page_referrer:h,page_breakpoint:WURFL.form_factor,page_orientation:b,mmo_item_requested:c,mmo_requested_page:l,mmo_elig_plan:a,media_name:v,media_type:y,media_event:p,media_percentage:w})}}function closeSimpleNavMenus(){$(".simpleNavContainer").slideUp(200);$(".SimpleNavSwitch").removeClass("active").find(".caret").removeClass("rotated")}function ToggleMegaNavResponsive(n){var t=$(".megaNavResponsive:visible").attr("id"),f,e;$("#"+t).is(":visible")&&t!==n+"MegaNavResponsive"&&(f=t.replace("MegaNavResponsive","ResponsiveLink"),e=t.replace("MegaNavResponsive","ResponsiveCaret"),$("#"+t).hide(),$("#"+e).removeClass("rotated"),$("#"+f).removeClass("active"));var r=n+"ResponsiveLink",i=n+"MegaNavResponsive",o=n+"ResponsiveCaret",u=n+"Responsive",s=$(".PrimaryNavResponsive:not(#"+u+"), .UtilityNavResponsive").parent();$("#"+i).is(":visible")?($("#"+i).hide(),$("#"+o).removeClass("rotated"),$("#"+r).removeClass("active"),$("#"+r+" a").focus(),$("#"+u).parent().removeClass("FullHeight"),s.show()):($("#"+i).show(),$("#"+i+" a:first").focus(),$("#"+o).addClass("rotated"),$("#"+r).addClass("active"),$("#"+u).parent().addClass("FullHeight"),s.hide())}function ToggleMegaNav(n){var t,u,f,i,r;HideFindAPlanMenu();loginDropdown.hide();t=$(".megaNavBox:visible").attr("id");$("#"+t).is(":visible")&&t!==n+"MegaNav"&&(u=t.replace("MegaNav",""),f=t.replace("MegaNav","")+"caret",$("#"+t).hide(),$("#"+f).removeClass("rotated"),$("#"+u).removeClass("active"));i=n+"MegaNav";r=n+"caret";$("#"+i).is(":visible")?($(".HeaderBackground.fullNav").hide(),$("#"+i).hide(),$("#"+r).removeClass("rotated"),$("#"+n).removeClass("active"),$("#"+n+" a").focus()):($(".HeaderBackground.fullNav").show(),$("#"+i).show(),$("#"+i+" a:first").focus(),$("#"+r).addClass("rotated"),$("#"+n).addClass("active"))}function HideMegaNav(){var n=$(".megaNavBox:visible").attr("id"),i,t;$("#"+n).is(":visible")&&(i=n.replace("MegaNav","")+"caret",t=n.replace("MegaNav",""),$(".HeaderBackground.fullNav").hide(),$("#"+n).hide(),$("#"+i).removeClass("rotated"),$("#"+t).removeClass("active"),$("#"+t).focus())}function HideFindAPlanMenu(){$("#find-a-plan-links-wrapper").is(":visible")&&($("#find-a-plan-links-wrapper").hide(),$(".HeaderBackground.fullNav").hide(),$("#btn-find-a-plan").removeClass("active"),$("#btn-find-a-plan-caret").removeClass("rotated"),$("#btn-find-a-plan").focus(),$("#btn-find-a-plan-caret").attr("src","/Images/MedMutual/Global/arrow-down-white.svg"))}function ToggleFindAPlanLinks(){$("#find-a-plan-links-wrapper").is(":visible")?($("#find-a-plan-links-wrapper").hide(),$(".HeaderBackground.fullNav").hide(),$("#btn-find-a-plan").focus(),$("#btn-find-a-plan").removeClass("active"),$("#btn-find-a-plan-caret").removeClass("rotated"),$("#btn-find-a-plan-caret").attr("src","/Images/MedMutual/Global/arrow-down-white.svg")):(HideMegaNav(),loginDropdown.hide(),$("#find-a-plan-links-wrapper").show(),$(".HeaderBackground.fullNav").show(),$("#find-a-plan-links-box a:first").focus(),$("#btn-find-a-plan").addClass("active"),$("#btn-find-a-plan-caret").addClass("rotated"),$("#btn-find-a-plan-caret").attr("src","/Images/MedMutual/Global/arrow-down-white.svg"))}function ToggleResponsiveNav(){var n=$(".HamburgerMenu"),t=$("#NavHamburgerButton"),i=$("#NavHamburgerClose");n.attr("aria-hidden")==="false"?($("html").css({"overflow-y":"visible"}),t.focus().attr("aria-expanded","false"),n.attr("aria-hidden","true").addClass("CloseHamburger").removeClass("OpenHamburger"),HideContentHeaderContainerResponsive(),HideCategoryHeaderLinkContainerResponsive(),$(".HamburgerMenu").trigger("closing",[])):($("html").css({"overflow-y":"hidden"}),t.attr("aria-expanded","true"),i.focus(),n.attr("aria-hidden","false").removeClass("CloseHamburger").addClass("OpenHamburger"))}function ToggleMegaNavContainer(n){var t,i,u,f,r,e;HideFindAPlanMenu();loginDropdown.hide();t="MegaNav"+n+"Container";i=$(".MegaNavContainer:visible").attr("id");$("#"+i).is(":visible")&&i!==t&&(u=i.replace("MegaNav","").replace("Container",""),f=i.replace("MegaNav","").replace("Container","")+"caret",$("#"+i).removeClass("active"),$("#"+f).removeClass("rotated"),$("#"+u).removeClass("active"));r=n+"caret";$("#"+t).is(":visible")?($("#"+t).removeClass("active"),$(".MegaNavs").hide(),$("#"+r).removeClass("rotated"),$("#"+n).removeClass("active"),$("#"+n+" a").focus(),$("html").css("overflow-y","auto")):(e=$(".MedMutualMainHeader.upper").outerHeight(!0)+$(".LowerHeaderWrapper").outerHeight(!0),$(".MegaNavs").show(),$("#"+t).addClass("active"),$("#"+t+" a:first").focus(),$("#"+t+" a:first").click(),$("#"+r).addClass("rotated"),$("#"+n).addClass("active"),$("html").css("overflow-y","hidden"),$("#"+t).css("top",e))}function ShowCategoryLinkContainer(n){var t="ContentLink"+n+"Container",u="CategoryHeaderLink"+n+"Arrow",i=$(".CategoryContainer:visible").attr("id"),r,f;$("#"+i).is(":visible")&&i!==t?(r=i.replace("ContentLink","").replace("Container",""),f="CategoryHeaderLink"+r+"Arrow",$("#"+i).hide(),$("#"+f).hide(),$("#"+r).removeClass("active-underline"),$("#"+t).css("display","flex"),$("#"+u).show(),$("#"+t).scrollTop(0),$("#"+n).addClass("active-underline")):($("#"+t).css("display","flex"),$("#"+u).show(),$("#"+t).scrollTop(0),$("#"+n).addClass("active-underline"))}function HideMegaNavContainer(){var n=$(".MegaNavContainer:visible").attr("id"),t,i;$("#"+n).is(":visible")&&(t=n.replace("MegaNav","").replace("Container",""),i=n.replace("MegaNav","").replace("Container","")+"caret",$("#"+n).removeClass("active"),$("#"+i).removeClass("rotated"),$("#"+t).removeClass("active"),$("html").css("overflow-y","auto"))}function ToggleContentHeaderContainerResponsive(n){var u=n+"ResponsiveContainer",t="ContentHeader"+n+"ResponsiveContainer",i=$(".ContentHeaderContainerResponsive:visible").attr("id"),f,e,r;$("#"+i).is(":visible")&&i!==t&&(f=i.replace("ContentHeader",""),e=i.replace("ContentHeader","").replace("ResponsiveContainer","")+"Caret",$("#"+i).hide(),$("#"+e).removeClass("NavResponsiveUpCaret").addClass("NavResponsiveDownCaret"),$("#"+f).removeClass("OpenContentHeader"));r=n+"Caret";$("#"+t).is(":visible")?($("#"+t).hide(),$("#"+r).removeClass("NavResponsiveUpCaret").addClass("NavResponsiveDownCaret"),$("#"+u).removeClass("OpenContentHeader"),$("#"+n+"-R a:first").focus()):($("#"+t).show(),$("#"+t+" a:first").focus(),$("#"+r).removeClass("NavResponsiveDownCaret").addClass("NavResponsiveUpCaret"),$("#"+u).addClass("OpenContentHeader"))}function HideContentHeaderContainerResponsive(){var n=$(".ContentHeaderContainerResponsive:visible").attr("id"),t,i;$("#"+n).is(":visible")&&(t=n.replace("ContentHeader",""),i=n.replace("ContentHeader","").replace("ResponsiveContainer","")+"Caret",$("#"+n).hide(),$("#"+i).removeClass("NavResponsiveUpCaret").addClass("NavResponsiveDownCaret"),$("#"+t).removeClass("OpenContentHeader"))}function HideCategoryHeaderLinkContainerResponsive(){var n=$(".ContentLinkContainerResponsive:visible").attr("id");$("#"+n).hide()}function transformTableResponsiveCard(){$(".mmoTable.responsive-card").each(function(){if($(this).hasClass("transformed"))return!1;if($(this).find("[rowspan],[colspan]").length===0){var n=$(this).find("thead tr");$(this).find("tbody tr").each(function(){$(this).children().each(function(t){var i='<div class="cellHeading" aria-hidden="true">'+n.children().eq(t).html()+"<\/div>";$(this).wrapInner('<div class="cellData"><\/div>').prepend(i)})});$(this).addClass("transformed")}else $(this).removeClass("responsive-card"),console.error("rowspan or colspan not supported in responsive tables")})}function transformTableResponsiveAccordion(){$(".mmoTable.responsive-accordion").length>0&&$.getScript({cache:!0,url:"/Scripts/Plugins/DataTables/jquery.datatables.min.js"}).done(function(){$.getScript({cache:!0,url:"/Scripts/Plugins/DataTables/dataTables.responsive.min.js"}).done(function(){$(".mmoTable.responsive-accordion").each(function(){if($(this).hasClass("transformed"))return!1;$(this).find("[rowspan],[colspan]").length===0?($(this).children("table").css("width","100%").dataTable({select:"single",searching:!1,paging:!1,info:!1,ordering:!1,order:[],responsive:{details:{display:$.fn.dataTable.Responsive.display.childRowImmediate}}}),$(this).addClass("transformed")):($(this).removeClass("responsive-accordion"),console.error("rowspan or colspan not supported in responsive tables"))})})})}function attachMedAdvModalEvents(n){var t="for-medicare";$("#UseMedAdvPopupModal").val()==="True"&&$(n).find("a").each(function(){var i=$(this),n;if(!$(this).is("nav#global ul li.login a.loginlink")&&!$(this).is("nav#global ul li.login a.close")&&!$(this).is("#MA-MS-LM")&&!$(this).is("#notSearchEither .close, #notSearchEither .close a.btnCloseModal")&&!$(this).is("footer .columns-2 section + section div ul.connectivity li a")&&!$(this).is(".sb-sitefooter .medicareSupportProvider .sb-days a")&&!$(this).is(".validation-summary-errors ul li a")&&!$(this).is("#salesEventApp a")&&!$(this).is(".DoNotTriggerMAModal")&&(n=i.attr("href"),n&&!n.match("^#")&&!n.match("^tel:")&&!n.match("CH=MSHOP")&&n.toLowerCase().indexOf("?mc")<0&&n.toLowerCase().indexOf("&mc")<0&&n.toLowerCase().indexOf(t)<0))i.off("click.medadvmodal").on("click.medadvmodal",function(){return popupMedAdvModal(this),!1})})}function popupMedAdvModal(n){var u,f,i,t;let r=$(".popper-popup[show-popper]");if(r!=null&&r.length>0)for(u=0;f=r[u];u++)f.removeAttribute("show-popper");n=$(n);i=n.attr("href");t=n.attr("target");typeof t=="undefined"&&(t="");$("#MedAdvPopup").fadeIn(400).find("#btnMedAdvPopUpOK").focus();$("#btnMedAdvPopUpOK").off("click").on("click",function(){return $("#MedAdvPopup").fadeOut(400),t===""?(window.location.href=i,tealiumEvent("/leaving_MA_Modal_popup_continue_click","Leaving MA Modal Continue Submit","button_click",200,"","","","","","","","","","","","","")):(window.open(i,t),loginDropdown.hide()),!1});tealiumEvent("/leaving_MA_Modal_popup","Leaving MA Modal popup","page_load","0","","","","","","","",i,"","","","","")}function tagWebtrendsBF(n){if(n=="inssearch"){var t=$("#ddlInsType option:selected").text();(t=="Individual & Family Plans"||t=="")&&setWebtrendsBFTags()}else setWebtrendsBFTags()}function setWebtrendsBFTags(){var t=$("#hdnTargetUrl").val(),n=document.createElement("a");return n.href=t,tealiumEvent(n.pathname,n.hostname+n.pathname,"button_click",24,"","","Individual_App_Start","","","","","","","","","",""),!0}function AllowNumeric(n){var t;return window.event?t=n.keyCode:n.which&&(t=n.which),t>=48&&t<=57||t>=96&&t<=105||t>=35&&t<=40||t==8||t==9||t==46||t==13?!0:!1}function getArticles(n,t,i){jQuery.support.cors=!0;var r={phrase:n.replace("'","")};$.jmsajax({type:"POST",url:"/medmutual/medmutual/layouts/sublayouts/shared/service/shared.asmx",method:"getArticleList",data:r,contentType:"application/json; charset=utf-8",dataType:"json",success:function(data){var len=data.d.length;if(len){var reslt=eval("("+data.d+")"),i=0,items="";$.each(reslt,function(n,t){for(i=0;i<5;i++)items+='<li><a target="_blank" href="'+i+"?hwid="+t[i].HWID+'" class="decisionpoint medication">'+t[i].Title+"<\/a><\/li>"});$("#"+t).html(items);$("#hrcLoading").css("display","none")}},error:function(n){$("#"+t).html("<li>"+n.responseText+"<\/li>");$(".hrc-content").css("background-image","none");$("#hrcLoading").text("")}})}function checkHideQuotingDate(){var n=$("#ddlInsType option:selected").text();n=="Medicare Supplement"?$("#QuotingCoverageDateLabel").hide():$("#QuotingCoverageDateLabel").show()}function showQuoteModal(){$("#popup").show()}function showSubsidyEstimator(){var n=location.protocol+"//"+location.host+"/For-Individuals-and-Families/Health-Insurance-Education/Health-Insurance-Basics/Subsidy-estimator.aspx";window.open(n,"_self")}function showClickToChat(n){var t="http://medmutual.custhelp.com/app/chat/MMOWebChat/chattype/individual";document.URL.toLowerCase().indexOf("for-medicare")>=0&&(t="http://medmutual.custhelp.com/app/chat/MMOWebChat/chattype/medicare");tagWebtrendsWithSVL("/Webtrends/launch_chat","Launch Chat","24",n);window.parent.open(t,"chatLauncher","width=500, height=766, top=0, left=-20, directories=0, titlebar=0, toolbar=0, location=0, status=0,menubar=0, scrollbars=0, resizable=0")}function updateShopping(){if(checkHideQuotingDate(),brokerPurl==="false"){var n=$("#ddlInsType option:selected").text(),t=n==="Individual & Family Plans",i=$("#btnShopping").data("originalclick");$("#btnShopping").attr("onclick",t?"":i)}}function qualifyModalPost(){QualifyModalSubmit();WebtrendsTagging()}function closeModal(){$("html").css({"overflow-y":"visible"});$("html").css({position:"static"});$(".direct-enrollment-modal").hide();$("header").removeAttr("style");QualifyModalLoad()}function setQualifyModalAnswer(n){$("#"+n).prop("checked","true")}function trapFocus(n){var r='input[type = "radio"]:not([disabled]), button:not([disabled]), a:not([disabled])',t=n.querySelectorAll(r)[0],i=n.querySelectorAll(r),u=i[i.length-1];t.focus();t.scrollIntoView({block:"start"});document.addEventListener("keydown",function(f){var e=f.key==="Tab";e&&(t=n.querySelectorAll(r)[0],i=n.querySelectorAll(r),u=i[i.length-1],f.shiftKey?document.activeElement===t&&(u.focus(),f.preventDefault()):document.activeElement===u&&(t.focus(),f.preventDefault()))})}function setNavigation(n){document.addEventListener("keydown",function(t){(t.keyCode===13||t.keyCode===32)&&n.contains(t.target)&&t.target.click()});document.addEventListener("keyup",function(t){t.keyCode===27&&$(n).is(":visible")&&closeModal()})}function updateResultsLinks(){if($("#continueWithoutSubsidyLink").length>0){$("#continueWithoutSubsidyLink").attr("href",mmeUrl);$("#continueButton").on("click",function(){tagWebtrendsAdvancedWithCustomReferrer("/MME/SubsidyResultsWithSubsidyModal/Insx","Goto INSX","0",null,null,"",document.domain+"/MME/SubsidyResultsWithSubsidyModal/Insx",window.location.protocol+"//"+document.domain+"/SubsidyResultsWithSubsidyModal")});$("#continueWithoutSubsidyLink").on("click",function(){tagWebtrendsAdvancedWithCustomReferrer("/MME/SubsidyResultsWithSubsidyModal/Subsidy","Goto MME From Subsidy Results Modal with Subsidy","0",null,null,"",document.domain+"/MME/SubsidyResultsWithSubsidyModal/Subsidy",window.location.protocol+"//"+document.domain+"/SubsidyResultsWithSubsidyModal")})}if($("#continueButton").is(":visible")&&$("#continueWithoutSubsidyLink").length<=0)$("#continueButton").on("click",function(){tagWebtrendsAdvancedWithCustomReferrer("/MME/SubsidyResultsWithNoSubsidyModal/NoSubsidy","Goto MME From Subsidy Results Modal with No Subsidy","0",null,null,"",document.domain+"/MME/SubsidyResultsWithNoSubsidyModal/NoSubsidy",window.location.protocol+"//"+document.domain+"/SubsidyResultsWithNoSubsidyModal")})}function QualifyModalLoad(){$("#btnInfo").val("");$.get("/api/sitecore/QualifyModal/QualifyModalGet").done(function(n){$("#direct-enrollment-modal").replaceWith(n)})}function movePrevious(n){$.get(n+"?IsMovingPrevious=true").done(function(n){var t=n.indexOf("tax-subsidy-page")>-1?"#tax-subsidy-page-new":"#direct-enrollment-modal";$(t).replaceWith(n);$(".direct-enrollment-modal").show();$(".validation-summary-errors").hide();trapFocus($("#direct-enrollment-modal-main")[0]);setNavigation($("#direct-enrollment-modal-main")[0])})}function QualifyModalSubmit(){var n={};n.SelectedOption=$("input[name=SelectedOption]:checked","#direct-enrollment-modal-main").val();n.SitecoreContextId=$("#modal-container").data("itemid");$.post("/api/sitecore/QualifyModal/QualifyModalPost",{model:n}).done(function(n){n.action==="enroll"&&n.status==="success"?window.location=n.redirectUrl:n.status==="error"?$("#modal-container .validation-summary-errors").show():($("#qualifyingModal").replaceWith(n),trapFocus($("#direct-enrollment-modal-main")[0]),setNavigation($("#direct-enrollment-modal-main")[0]))})}function WebtrendsTagging(){$("#noQualifyForSubsidy").is(":checked")?tagWebtrendsAdvancedWithCustomReferrer("/MME/Splitter/NoSubsidy","Goto MME With No Subsidy","0",null,null,"","/MME/Splitter/NoSubsidy",window.location.protocol+"//"+document.domain+"/For-Individuals-and-Families/Plans-Products/get-a-quote.aspx"):$("#noAncillary").is(":checked")&&tagWebtrendsAdvancedWithCustomReferrer("/MME/Splitter/NoNonMedicalPlan","Goto MME For Non Medical Plan","0",null,null,"","/MME/Splitter/NoNonMedicalPlan",window.location.protocol+"//"+document.domain+"/For-Individuals-and-Families/Plans-Products/get-a-quote.aspx")}function adjustImageFluidResponse(){var n=window.innerWidth,t=$("#miniFeedListLayer").outerHeight()+"px",i=46+8e3/n+"%";$("#miniFeedImageLayer").css({height:t,width:i})}function initializediCalFxn(){$(".addToCalendar-link.ical-options").on("click",function(n){n.preventDefault();let i=n.target.id;i=i.replace("iCal-","");let e="#calendar-event-"+i,t=$(e),o=t[0].dataset.eventstart.trim(),s=t[0].dataset.eventend.trim(),h=t[0].dataset.eventdescription.trim(),c=t[0].dataset.eventaddress.trim(),r=t[0].dataset.eventname.trim(),l="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID://MMO-CORPWEB//CALENDAR\nBEGIN:VEVENT\nDTSTART:"+o+"\nDTEND:"+s+"\nSUMMARY:"+r+"\nLOCATION:"+c+"\nDESCRIPTION"+h+"\n";"END:VEVENT\nEND:VCALENDAR";const u=r+"_Calendar",f=new Blob([l],{type:"text/calendar;charset=utf-8"});if(navigator.msSaveBlob)navigator.msSaveBlob(f,u);else{const n=document.createElement("a");if(n.download!==undefined){const t=URL.createObjectURL(f);n.setAttribute("href",t);n.setAttribute("download",u);n.style.visibility="hidden";document.body.appendChild(n);n.click();document.body.removeChild(n);URL.revokeObjectURL(t)}}})}function initMap(){var t=$("#map"),i;t.css("top",$(".MedMutualMainHeader.upper").outerHeight()+$(".MedMutualMainHeader.lower").outerHeight());var n=JSON.parse($("#userLocation").val()),u=$("#mapPinUrl").val(),f=n!=null?n.Latitude:39.6443622,e=n!=null?n.Longitude:-84.1381486;const o={lat:f,lng:e};t=new google.maps.Map(document.getElementById("map"),{zoom:8,center:o,mapId:"Sales_Events_Map"});i=JSON.parse($("#salesEventLocations").val());let r=i.length,s=1;i.forEach(function(n){var f={lat:Number(n.Lat),lng:Number(n.Long)};const e={url:u,origin:new google.maps.Point(0,0),labelOrigin:new google.maps.Point(17,20)};$("#event-map-pin-"+n.EventId).prepend('<span class="map-pin">'+r+"<\/span>");const i=new google.maps.Marker({map:t,position:f,label:{text:(r--).toString(),color:"#ffffff",fontSize:"16px",className:"google-map-pin-label"},optimized:!1,icon:e});i.setZIndex(s++);i.addListener("click",function(){var r=$("#map").outerHeight(),t=$(".MedMutualMainHeader.upper").outerHeight()+$(".MedMutualMainHeader.lower").outerHeight(),i;const u=window.innerWidth;i=u<769?r+t:t;$("html,body").animate({scrollTop:$("#gm-"+n.EventId).offset().top-i},1e3)})})}var medicalmutual,modal,siteSearch,loginDropdown,alerts,SB,aria,brokerPurl,mmeUrl,searchFilters,searchFunction,searchOverlay,searchPage;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function kr(n,t,i){var r,e,u=(i=i||f).createElement("script");if(u.text=n,t)for(r in oe)(e=t[r]||t.getAttribute&&t.getAttribute(r))&&u.setAttribute(r,e);i.head.appendChild(u).parentNode.removeChild(u)}function ut(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ri[wr.call(n)]||"object":typeof n}function pi(n){var t=!!n&&"length"in n&&n.length,i=ut(n);return!u(n)&&!rt(n)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in n)}function c(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function bi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return-1<ii.call(t,n)!==r}):i.filter(t,n,r)}function fu(n,t){while((n=n[t])&&1!==n.nodeType);return n}function et(n){return n}function fi(n){throw n;}function eu(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function oi(){f.removeEventListener("DOMContentLoaded",oi);n.removeEventListener("load",oi);i.ready()}function ce(n,t){return t.toUpperCase()}function y(n){return n.replace(se,"ms-").replace(he,ce)}function bt(){this.expando=i.expando+bt.uid++}function su(n,t,i){var u,r;if(void 0===i&&1===n.nodeType)if(u="data-"+t.replace(ae,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(u))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:le.test(r)?JSON.parse(r):r)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function cu(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=n.nodeType&&(i.cssNumber[t]||"px"!==e&&+o)&&kt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function ht(n,t){for(var h,f,a,s,c,l,e,o=[],u=0,v=n.length;u<v;u++)(f=n[u]).style&&(h=f.style.display,t?("none"===h&&(o[u]=r.get(f,"display")||null,o[u]||(f.style.display="")),""===f.style.display&&dt(f)&&(o[u]=(e=c=s=void 0,c=(a=f).ownerDocument,l=a.nodeName,(e=ki[l])||(s=c.body.appendChild(c.createElement(l)),e=i.css(s,"display"),s.parentNode.removeChild(s),"none"===e&&(e="block"),ki[l]=e)))):"none"!==h&&(o[u]="none",r.set(f,"display",h)));for(u=0;u<v;u++)null!=o[u]&&(n[u].style.display=o[u]);return n}function s(n,t){var r;return r="undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(t||"*"):"undefined"!=typeof n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&c(n,t)?i.merge([n],r):r}function di(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function yu(n,t,r,u,f){for(var e,o,p,a,w,v,c=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===ut(e))i.merge(y,e.nodeType?[e]:e);else if(vu.test(e)){for(o=o||c.appendChild(t.createElement("div")),p=(lu.exec(e)||["",""])[1].toLowerCase(),a=h[p]||h._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=c.firstChild).textContent=""}else y.push(t.createTextNode(e));for(c.textContent="",l=0;e=y[l++];)if(u&&-1<i.inArray(e,u))f&&f.push(e);else if(w=st(e),o=s(c.appendChild(e),"script"),w&&di(o),r)for(v=0;e=o[v++];)au.test(e.type||"")&&r.push(e);return c}function ct(){return!0}function lt(){return!1}function ye(n,t){return n===function(){try{return f.activeElement}catch(n){}}()==("focus"===t)}function nr(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)nr(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=lt;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function hi(n,t,u){u?(r.set(n,t,!1),i.event.add(n,t,{namespace:!1,handler:function(n){var o,e,f=r.get(this,t);if(1&n.isTrigger&&this[t]){if(f.length)(i.event.special[t]||{}).delegateType&&n.stopPropagation();else if(f=k.call(arguments),r.set(this,t,f),o=u(this,t),this[t](),f!==(e=r.get(this,t))||o?r.set(this,t,!1):e={},f!==e)return n.stopImmediatePropagation(),n.preventDefault(),e&&e.value}else f.length&&(r.set(this,t,{value:i.event.trigger(i.extend(f[0],i.Event.prototype),f.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===r.get(n,t)&&i.event.add(n,t,ct)}function pu(n,t){return c(n,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function ke(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function de(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function wu(n,t){var u,s,f,h,c,e;if(1===t.nodeType){if(r.hasData(n)&&(e=r.get(n).events))for(f in r.remove(t,"handle events"),e)for(u=0,s=e[f].length;u<s;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(h=o.access(n),c=i.extend({},h),o.set(t,c))}}function at(n,t,f,o){t=pr(t);var a,b,l,v,h,y,c=0,p=n.length,d=p-1,w=t[0],k=u(w);if(k||1<p&&"string"==typeof w&&!e.checkClone&&we.test(w))return n.each(function(i){var r=n.eq(i);k&&(t[0]=w.call(this,i,r.html()));at(r,t,f,o)});if(p&&(b=(a=yu(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=b),b||o)){for(v=(l=i.map(s(a,"script"),ke)).length;c<p;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(y=l[l.length-1].ownerDocument,i.map(l,de),c=0;c<v;c++)h=l[c],au.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(y,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&!h.noModule&&i._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},y):kr(h.textContent.replace(be,""),h,y))}return n}function bu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&st(u)&&di(s(u,"script")),u.parentNode.removeChild(u));return n}function ni(n,t,r){var o,s,h,f,u=n.style;return(r=r||ci(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||st(n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&tr.test(f)&&ge.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function du(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function ir(n){var t=i.cssProps[n]||tf[n];return t||(n in nf?n:tf[n]=function(n){for(var i=n[0].toUpperCase()+n.slice(1),t=gu.length;t--;)if((n=gu[t]+i)in nf)return n}(n)||n)}function ff(n,t,i){var r=kt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function rr(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+b[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+b[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+b[o]+"Width",!0,f))):(s+=i.css(n,"padding"+b[o],!0,f),"padding"!==r?s+=i.css(n,"border"+b[o]+"Width",!0,f):h+=i.css(n,"border"+b[o]+"Width",!0,f));return!u&&0<=e&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))||0),s}function ef(n,t,r){var f=ci(n),o=(!e.boxSizingReliable()||r)&&"border-box"===i.css(n,"boxSizing",!1,f),s=o,u=ni(n,t,f),h="offset"+t[0].toUpperCase()+t.slice(1);if(tr.test(u)){if(!r)return u;u="auto"}return(!e.boxSizingReliable()&&o||!e.reliableTrDimensions()&&c(n,"tr")||"auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&n.getClientRects().length&&(o="border-box"===i.css(n,"boxSizing",!1,f),(s=h in n)&&(u=n[h])),(u=parseFloat(u)||0)+rr(n,t,r||(o?"border":"content"),s,f,u)+"px"}function a(n,t,i,r,u){return new a.prototype.init(n,t,i,r,u)}function ur(){li&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ur):n.setTimeout(ur,i.fx.interval),i.fx.tick())}function cf(){return n.setTimeout(function(){vt=void 0}),vt=Date.now()}function ai(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=b[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function lf(n,t,i){for(var u,f=(v.tweeners[t]||[]).concat(v.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function v(n,t,r){var o,s,h=0,a=v.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=vt||cf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:vt||cf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<a;h++)if(o=v.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,lf,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function tt(n){return(n.match(l)||[]).join(" ")}function it(n){return n.getAttribute&&n.getAttribute("class")||""}function fr(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function hr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||io.test(n)?u(n,i):hr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==ut(t))u(n,t);else for(f in t)hr(n+"["+f+"]",t[f],r,u)}function gf(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))while(r=e[f++])"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function ne(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===cr;return e(t.dataTypes[0])||!f["*"]&&e("*")}function ar(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var p=[],yr=Object.getPrototypeOf,k=p.slice,pr=p.flat?function(n){return p.flat.call(n)}:function(n){return p.concat.apply([],n)},yi=p.push,ii=p.indexOf,ri={},wr=ri.toString,ui=ri.hasOwnProperty,br=ui.toString,ee=br.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType&&"function"!=typeof n.item},rt=function(n){return null!=n&&n===n.window},f=n.document,oe={type:!0,src:!0,nonce:!0,noModule:!0},dr="3.6.0",i=function(n,t){return new i.fn.init(n,t)},d,wi,tu,iu,ru,uu,l,ou,ei,ot,dt,ki,h,vu,gi,vt,li,yt,of,sf,hf,af,pt,vf,yf,pf,er,or,te,wt,ie,vr,vi,re,ue,fe;i.fn=i.prototype={jquery:dr,constructor:i,length:0,toArray:function(){return k.call(this)},get:function(n){return null==n?k.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(k.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(i.grep(this,function(n,t){return(t+1)%2}))},odd:function(){return this.pushStack(i.grep(this,function(n,t){return t%2}))},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(0<=t&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:yi,sort:p.sort,splice:p.splice};i.extend=i.fn.extend=function(){var s,f,e,t,o,c,n=arguments[0]||{},r=1,l=arguments.length,h=!1;for("boolean"==typeof n&&(h=n,n=arguments[r]||{},r++),"object"==typeof n||u(n)||(n={}),r===l&&(n=this,r--);r<l;r++)if(null!=(s=arguments[r]))for(f in s)t=s[f],"__proto__"!==f&&n!==t&&(h&&t&&(i.isPlainObject(t)||(o=Array.isArray(t)))?(e=n[f],c=o&&!Array.isArray(e)?[]:o||i.isPlainObject(e)?e:{},o=!1,n[f]=i.extend(h,c,t)):void 0!==t&&(n[f]=t));return n};i.extend({expando:"jQuery"+(dr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==wr.call(n))&&(!(t=yr(n))||"function"==typeof(i=ui.call(t,"constructor")&&t.constructor)&&br.call(i)===ee)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},globalEval:function(n,t,i){kr(n,{nonce:t&&t.nonce},i)},each:function(n,t){var r,i=0;if(pi(n)){for(r=n.length;i<r;i++)if(!1===t.call(n[i],i,n[i]))break}else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},makeArray:function(n,t){var r=t||[];return null!=n&&(pi(Object(n))?i.merge(r,"string"==typeof n?[n]:n):yi.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:ii.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(pi(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return pr(f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=p[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){ri["[object "+t+"]"]=t.toLowerCase()});d=function(n){function u(n,t,r,u){var s,y,c,l,p,w,d,v=t&&t.ownerDocument,a=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==a&&9!==a&&11!==a)return r;if(!u&&(b(t),t=t||i,h)){if(11!==a&&(p=ar.exec(n)))if(s=p[1]){if(9===a){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&et(t,c)&&c.id===s)return r.push(c),r}else{if(p[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=p[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))&&(1!==a||"object"!==t.nodeName.toLowerCase())){if(d=n,v=t,1===a&&(er.test(n)||yi.test(n))){for((v=ti.test(n)&&ri(t.parentNode)||t)===t&&f.scope||((l=t.getAttribute("id"))?l=l.replace(pi,wi):t.setAttribute("id",l=e)),y=(w=ft(n)).length;y--;)w[y]=(l?"#"+l:":scope")+" "+pt(w[y]);d=w.join(",")}try{return k.apply(r,v.querySelectorAll(d)),r}catch(t){lt(n,!0)}finally{l===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function yt(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function ki(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function yr(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function pr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function di(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&vr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&"undefined"!=typeof n.getElementsByTagName&&n}function gi(){}function pt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function wt(n,t,i){var r=t.dir,u=t.next,f=u||r,o=i&&"parentNode"===f,s=nr++;return t.first?function(t,i,u){while(t=t[r])if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((1===t.nodeType||o)&&n(t,i,h))return!0}else while(t=t[r])if(1===t.nodeType||o)if(l=(a=t[e]||(t[e]={}))[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[f])&&c[0]===v&&c[1]===s)return y[2]=c[2];if((l[f]=y)[2]=n(t,i,h))return!0}return!1}}function ui(n){return 1<n.length?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,f,o){return r&&!r[e]&&(r=fi(r)),f&&!f[e]&&(f=fi(f,o)),l(function(e,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=e||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!e&&t?d:bt(d,w,n,s,h),c=i?f||(e?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=bt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(e){if(f||n){if(f){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);f(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&-1<(a=f?nt(e,v):w[l])&&(e[a]=!(o[a]=v))}}else c=bt(c===o?c.splice(b,c.length):c),f?f(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=wt(function(n){return n===o},c,!0),a=wt(function(n){return-1<nt(o,n)},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[wt(ui(f),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(1<i&&ui(f),1<i&&pt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&pt(n))}f.push(u)}return ui(f)}var rt,f,t,st,oi,ft,kt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,nr=0,hi=yt(),ci=yt(),li=yt(),lt=yt(),dt=function(n,t){return n===t&&(ut=!0),0},tr={}.hasOwnProperty,g=[],ir=g.pop,rr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",ni=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",ur=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),fr=new RegExp("^"+r+"*,"+r+"*"),yi=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),er=new RegExp(r+"|>"),or=new RegExp(ni),sr=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},hr=/HTML$/i,cr=/^(?:input|select|textarea|button)$/i,lr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,ar=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ti=/[+~]/,y=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),p=function(n,t){var i="0x"+n.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},pi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},bi=function(){b()},vr=wt(function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(rt){k={apply:g.length?function(n,t){rr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in f=u.support={},oi=u.isXML=function(n){var i=n&&n.namespaceURI,t=n&&(n.ownerDocument||n).documentElement;return!hr.test(i||t&&t.nodeName||"HTML")},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!=i&&9===l.nodeType&&l.documentElement&&(s=(i=l).documentElement,h=!oi(i),c!=i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",bi,!1):u.attachEvent&&u.attachEvent("onunload",bi)),f.scope=a(function(n){return s.appendChild(n).appendChild(i.createElement("div")),"undefined"!=typeof n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length}),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i="undefined"!=typeof n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if("undefined"!=typeof t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=f.getElementsByTagName?function(n,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if("undefined"!=typeof t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){var t;s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+gt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");(t=i.createElement("input")).setAttribute("name","");n.appendChild(t);n.querySelectorAll("[name='']").length||o.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]");n.querySelectorAll("\\\f");o.push("[\\r\\n\\f]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",ni)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(n)===r?n==i||n.ownerDocument==c&&et(c,n)?-1:t==i||t.ownerDocument==c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n==i?-1:t==i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return ki(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?ki(f[u],e[u]):f[u]==c?-1:e[u]==c?1:0}),i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if(b(n),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){lt(t,!0)}return 0<u(t,i,null,[n]).length},u.contains=function(n,t){return(n.ownerDocument||n)!=i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!=i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&tr.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):void 0;return void 0!==u?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(pi,wi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(dt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&or.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||"undefined"!=typeof n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&-1<f.indexOf(i):"$="===t?i&&f.slice(-i.length)===i:"~="===t?-1<(" "+f.replace(ur," ")+" ").indexOf(i):"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(k){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)while(c=++a&&c&&c[b]||(l=a=0)||w.pop())if((f?c.nodeName.toLowerCase()===nt:1===c.nodeType)&&++l&&(g&&((d=(y=c[e]||(c[e]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c===t))break;return(l-=u)===r||l%r==0&&0<=l/r}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):1<r.length?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=kt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return 0<u(n,t).length}}),contains:l(function(n){return n=n.replace(y,p),function(t){return-1<(t.textContent||st(t)).indexOf(n)}}),lang:l(function(n){return sr.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:di(!1),disabled:di(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return lr.test(n.nodeName)},input:function(n){return cr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:t<i?t:i;0<=--r;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=yr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=pr(rt);return gi.prototype=t.filters=t.pseudos,t.setFilters=new gi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=fr.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=yi.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},kt=u.compile=function(n,r){var s,c,a,o,y,p,w=[],d=[],f=li[n+" "];if(!f){for(r||(r=ft(n)),s=r.length;s--;)(f=ei(r[s]))[e]?w.push(f):d.push(f);(f=li(n,(c=d,o=0<(a=w).length,y=0<c.length,p=function(n,r,f,e,s){var l,nt,d,g=0,p="0",tt=n&&[],w=[],it=ht,rt=n||y&&t.find.TAG("*",s),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(s&&(ht=r==i||r||s);p!==ft&&null!=(l=rt[p]);p++){if(y&&l){for(nt=0,r||l.ownerDocument==i||(b(l),f=!h);d=c[nt++];)if(d(l,r||i,f)){e.push(l);break}s&&(v=ut)}o&&((l=!d&&l)&&g--,n&&tt.push(l))}if(g+=p,o&&p!==g){for(nt=0;d=a[nt++];)d(tt,w,r,f);if(n){if(0<g)while(p--)tt[p]||w[p]||(w[p]=ir.call(e));w=bt(w)}k.apply(e,w);s&&!n&&0<w.length&&1<g+a.length&&u.uniqueSort(e)}return s&&(v=ut,ht=it),tt},o?l(p):p))).selector=n}return f},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if(2<(f=s[0]=s[0].slice(0)).length&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ti.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&pt(f)))return k.apply(r,u),r;break}}}return(c||kt(n,s))(u,i,!h,r,!i||ti.test(n)&&ri(i.parentNode)||i),r},f.sortStable=e.split("").sort(dt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(gt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=d;i.expr=d.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=d.uniqueSort;i.text=d.getText;i.isXMLDoc=d.isXML;i.contains=d.contains;i.escapeSelector=d.escape;var ft=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},gr=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},nu=i.expr.match.needsContext;wi=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return 1<u?i.uniqueSort(r):r},filter:function(n){return this.pushStack(bi(this,n||[],!1))},not:function(n){return this.pushStack(bi(this,n||[],!0))},is:function(n){return!!bi(this,"string"==typeof n&&nu.test(n)?i(n):n||[],!1).length}});iu=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||tu,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:iu.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),wi.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;tu=i(f);ru=/^(?:parents|prev(?:Until|All))/;uu={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!nu.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?-1<e.index(r):1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(1<u.length?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?ii.call(i(n),this[0]):ii.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return ft(n,"parentNode")},parentsUntil:function(n,t,i){return ft(n,"parentNode",i)},next:function(n){return fu(n,"nextSibling")},prev:function(n){return fu(n,"previousSibling")},nextAll:function(n){return ft(n,"nextSibling")},prevAll:function(n){return ft(n,"previousSibling")},nextUntil:function(n,t,i){return ft(n,"nextSibling",i)},prevUntil:function(n,t,i){return ft(n,"previousSibling",i)},siblings:function(n){return gr((n.parentNode||{}).firstChild,n)},children:function(n){return gr(n.firstChild)},contents:function(n){return null!=n.contentDocument&&yr(n.contentDocument)?n.contentDocument:(c(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),1<this.length&&(uu[n]||i.uniqueSort(f),ru.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){var a,h;n="string"==typeof n?(a=n,h={},i.each(a.match(l)||[],function(n,t){h[t]=!0}),h):i.extend({},n);var o,r,v,f,t=[],s=[],e=-1,y=function(){for(f=f||n.once,v=o=!0;s.length;e=-1)for(r=s.shift();++e<t.length;)!1===t[e].apply(r[0],r[1])&&n.stopOnFalse&&(e=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},c={add:function(){return t&&(r&&!o&&(e=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&c.has(r)||t.push(r):r&&r.length&&"string"!==ut(r)&&f(r)})}(arguments),r&&!o&&y()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;-1<(u=i.inArray(r,t,u));)t.splice(u,1),u<=e&&e--}),this},has:function(n){return n?-1<i.inArray(n,t):0<t.length},empty:function(){return t&&(t=[]),this},disable:function(){return f=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=s=[],r||o||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),o||y()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!v}};return c};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,l=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,et,e),s(o,r,fi,e)):(o++,i.call(n,s(o,r,et,e),s(o,r,fi,e),s(o,r,et,r.notifyWith))):(f!==et&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},a=e?l:function(){try{l()}catch(l){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(l,a.stackTrace);o<=t+1&&(f!==fi&&(h=void 0,c=[l]),r.rejectWith(h,c))}};t?a():(i.Deferred.getStackHook&&(a.stackTrace=i.Deferred.getStackHook()),n.setTimeout(a))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:et,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:et));f[2][3].add(s(0,n,u(r)?r:fi))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=k.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=1<arguments.length?k.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(eu(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();while(t--)eu(f[t],s(t),r.reject);return r.promise()}});ou=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&ou.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ei=i.Deferred();i.fn.ready=function(n){return ei.then(n)["catch"](function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0)!==n&&0<--i.readyWait||ei.resolveWith(f,[i])}});i.ready.then=ei.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",oi),n.addEventListener("load",oi));var w=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===ut(r))for(h in e=!0,r)w(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},se=/^-ms-/,he=/-([a-z])/g;ot=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};bt.uid=1;bt.prototype={cache:function(n){var t=n[this.expando];return t||(t={},ot(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new bt,o=new bt,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),su(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):w(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=su(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,1<arguments.length,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var hu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=new RegExp("^(?:([+-])=|)("+hu+")([a-z%]*)$","i"),b=["Top","Right","Bottom","Left"],g=f.documentElement,st=function(n){return i.contains(n.ownerDocument,n)},ve={composed:!0};g.getRootNode&&(st=function(n){return i.contains(n.ownerDocument,n)||n.getRootNode(ve)===n.ownerDocument});dt=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&st(n)&&"none"===i.css(n,"display")};ki={};i.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){dt(this)?i(this).show():i(this).hide()})}});var nt,si,gt=/^(?:checkbox|radio)$/i,lu=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,au=/^$|^module$|\/(?:java|ecma)script/i;nt=f.createDocumentFragment().appendChild(f.createElement("div"));(si=f.createElement("input")).setAttribute("type","radio");si.setAttribute("checked","checked");si.setAttribute("name","t");nt.appendChild(si);e.checkClone=nt.cloneNode(!0).cloneNode(!0).lastChild.checked;nt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!nt.cloneNode(!0).lastChild.defaultValue;nt.innerHTML="<option><\/option>";e.option=!!nt.lastChild;h={thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};h.tbody=h.tfoot=h.colgroup=h.caption=h.thead;h.th=h.td;e.option||(h.optgroup=h.option=[1,"<select multiple='multiple'>","<\/select>"]);vu=/<|&#?\w+;/;gi=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,a,k,v,w,h,s,c,o,b,d,y=r.get(n);if(ot(n))for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(g,e),u.guid||(u.guid=i.guid++),(v=y.events)||(v=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(t){if("undefined"!=typeof i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=gi.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=v[o])||((c=v[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,a)||n.addEventListener&&n.addEventListener(o,a)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=gi.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,s=new Array(arguments.length),t=i.event.fix(n),a=(r.get(this,"events")||Object.create(null))[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!1!==f.namespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&1<=n.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?-1<i(u,this).index(r):i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click",ct),!1},trigger:function(n){var t=this||n;return gt.test(t.type)&&t.click&&c(t,"input")&&hi(t,"click"),!0},_default:function(n){var t=n.target;return gt.test(t.type)&&t.click&&c(t,"input")&&r.get(t,"click")||c(t,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?ct:lt,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:lt,isPropagationStopped:lt,isImmediatePropagationStopped:lt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=ct;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},i.event.addProp);i.each({focus:"focusin",blur:"focusout"},function(n,t){i.event.special[n]={setup:function(){return hi(this,n,ye),!1},trigger:function(){return hi(this,n),!0},_default:function(){return!0},delegateType:t}});i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return nr(this,n,t,i,r)},one:function(n,t,i,r){return nr(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=lt),this.each(function(){i.event.remove(this,n,r,t)})}});var pe=/<script|<style|<link/i,we=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=st(n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],void 0,"input"===(v=a.nodeName.toLowerCase())&&gt.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)wu(o[u],f[u]);else wu(n,h);return 0<(f=s(h,"script")).length&&di(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(ot(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return bu(this,n,!0)},remove:function(n){return bu(this,n)},text:function(n){return w(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return at(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pu(this,n).appendChild(n)})},prepend:function(){return at(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return at(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return w(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!pe.test(n)&&!h[(lu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return at(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),yi.apply(f,u.get());return this.pushStack(f)}});var tr=new RegExp("^("+hu+")(?!px)[a-z%]+$","i"),ci=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},ku=function(n,t,i){var u,r,f={};for(r in t)f[r]=n.style[r],n.style[r]=t[r];for(r in u=i.call(n),t)n.style[r]=f[r];return u},ge=new RegExp(b.join("|"),"i");!function(){function r(){if(t){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";g.appendChild(s).appendChild(t);var i=n.getComputedStyle(t);h="1%"!==i.top;v=12===u(i.marginLeft);t.style.right="60%";a=36===u(i.right);c=36===u(i.width);t.style.position="absolute";l=12===u(t.offsetWidth/3);g.removeChild(s);t=null}}function u(n){return Math.round(parseFloat(n))}var h,c,l,a,o,v,s=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),a},pixelPosition:function(){return r(),h},reliableMarginLeft:function(){return r(),v},scrollboxSize:function(){return r(),l},reliableTrDimensions:function(){var i,t,r,u;return null==o&&(i=f.createElement("table"),t=f.createElement("tr"),r=f.createElement("div"),i.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",g.appendChild(i).appendChild(t).appendChild(r),u=n.getComputedStyle(t),o=parseInt(u.height,10)+parseInt(u.borderTopWidth,10)+parseInt(u.borderBottomWidth,10)===t.offsetHeight,g.removeChild(i)),o}}))}();var gu=["Webkit","Moz","ms"],nf=f.createElement("div").style,tf={};var no=/^(none|table(?!-c[ea]).+)/,rf=/^--/,to={position:"absolute",visibility:"hidden",display:"block"},uf={letterSpacing:"0",fontWeight:"400"};i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=ni(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=rf.test(t),s=n.style;if(l||(t=ir(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=kt.exec(r))&&f[1]&&(r=cu(n,t,f),h="number");null!=r&&r==r&&("number"!==h||l||(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return rf.test(t)||(t=ir(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=ni(n,t,u)),"normal"===f&&t in uf&&(f=uf[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!no.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ef(n,t,u):ku(n,to,function(){return ef(n,t,u)})},set:function(n,r,u){var s,f=ci(n),h=!e.scrollboxSize()&&"absolute"===f.position,c=(h||u)&&"border-box"===i.css(n,"boxSizing",!1,f),o=u?rr(n,t,u,c,f):0;return c&&h&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-rr(n,t,"border",!1,f)-.5)),o&&(s=kt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),ff(0,r,o)}}});i.cssHooks.marginLeft=du(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(ni(n,"marginLeft"))||n.getBoundingClientRect().left-ku(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+b[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=ff)});i.fn.extend({css:function(n,t){return w(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ci(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,1<arguments.length)}});((i.Tween=a).prototype={constructor:a,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=a.propHooks[this.prop];return n&&n.get?n.get(this):a.propHooks._default.get(this)},run:function(n){var t,r=a.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):a.propHooks._default.set(this),this}}).init.prototype=a.prototype;(a.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||!i.cssHooks[n.prop]&&null==n.elem.style[ir(n.prop)]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=a.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=a.prototype.init;i.fx.step={};sf=/^(?:toggle|show|hide)$/;hf=/queueHooks$/;i.Animation=i.extend(v,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return cu(i.elem,n,kt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],v.tweeners[i]=v.tweeners[i]||[],v.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&dt(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],sf.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ht([n],!0),o=n.style.display||o,l=i.css(n,"display"),ht([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ht([n],!0),v.done(function(){for(f in a||ht([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=lf(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?v.prefilters.unshift(n):v.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(dt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=v(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&hf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(ai(t,!0),n,i,u)}});i.each({slideDown:ai("show"),slideUp:ai("hide"),slideToggle:ai("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(vt=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();vt=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){li||(li=!0,ur())};i.fx.stop=function(){li=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})};yt=f.createElement("input");of=f.createElement("select").appendChild(f.createElement("option"));yt.type="checkbox";e.checkOn=""!==yt.value;e.optSelected=of.selected;(yt=f.createElement("input")).value="t";yt.type="radio";e.radioValue="t"===yt.value;pt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return w(this,i.attr,n,t,1<arguments.length)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return"undefined"==typeof n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?af:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&c(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)while(i=r[u++])n.removeAttribute(i)}});af={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=pt[t]||i.find.attr;pt[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=pt[u],pt[u]=f,f=null!=r(n,t,i)?u:null,pt[u]=e),f}});vf=/^(?:input|select|textarea|button)$/i;yf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return w(this,i.prop,n,t,1<arguments.length)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):vf.test(n.nodeName)||yf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,it(this)))});if((o=fr(n)).length)while(t=this[c++])if(f=it(t),r=1===t.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=tt(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if((o=fr(n)).length)while(r=this[c++])if(f=it(r),t=1===r.nodeType&&" "+tt(f)+" "){for(s=0;e=o[s++];)while(-1<t.indexOf(" "+e+" "))t=t.replace(" "+e+" "," ");f!==(h=tt(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,it(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=fr(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=it(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+tt(it(t))+" ").indexOf(i))return!0;return!1}});pf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(pf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:tt(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!c(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=-1<i.inArray(i.valHooks.option.get(u),e))&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=-1<i.inArray(i(n).val(),t)}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;er=/^(?:focusinfocus|focusoutblur)$/;or=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,p,w=[o||f],h=ui.call(t,"type")?t.type:t,b=ui.call(t,"namespace")?t.namespace.split("."):[];if(c=p=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!er.test(h+i.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!rt(o)){for(d=a.delegateType||h,er.test(d+h)||(c=c.parentNode);c;c=c.parentNode)w.push(c),l=c;l===(o.ownerDocument||f)&&w.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=w[k++])&&!t.isPropagationStopped();)p=c,t.type=1<k?d:a.bindType||h,(y=(r.get(c,"events")||Object.create(null))[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&ot(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(w.pop(),e)||!ot(o)||v&&u(o[h])&&!rt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&p.addEventListener(h,or),o[h](),t.isPropagationStopped()&&p.removeEventListener(h,or),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ti=n.location,wf={guid:Date.now()},sr=/\?/;i.parseXML=function(t){var r,u;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return u=r&&r.getElementsByTagName("parsererror")[0],r&&!u||i.error("Invalid XML: "+(u?i.map(u.childNodes,function(n){return n.textContent}).join("\n"):t)),r};var io=/\[\]$/,bf=/\r?\n/g,ro=/^(?:submit|button|image|reset|file)$/i,uo=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)hr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&uo.test(this.nodeName)&&!ro.test(n)&&(this.checked||!gt.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(bf,"\r\n")}}):{name:t.name,value:r.replace(bf,"\r\n")}}).get()}});var fo=/%20/g,eo=/#.*$/,oo=/([?&])_=[^&]*/,so=/^(.*?):[ \t]*([^\r\n]*)$/gm,ho=/^(?:GET|HEAD)$/,co=/^\/\//,kf={},cr={},df="*/".concat("*"),lr=f.createElement("a");return lr.href=ti.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ti.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ti.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":df,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?ar(ar(n,i.ajaxSettings),t):ar(i.ajaxSettings,n)},ajaxPrefilter:gf(kf),ajaxTransport:gf(cr),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=0<t?4:0,v=200<=t&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),!v&&-1<i.inArray("script",u.dataTypes)&&i.inArray("json",u.dataTypes)<0&&(u.converters["text script"]=function(){}),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=so.exec(k);)v[t[1].toLowerCase()+" "]=(v[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=v[n.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||ti.href)+"").replace(co,ti.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=lr.protocol+"//"+lr.host!=c.protocol+"//"+c.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),ne(kf,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ho.test(u.type),o=u.url.replace(eo,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(fo,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(sr.test(o)?"&":"?")+u.data,delete u.data),!1===u.cache&&(o=o.replace(oo,"$1"),p=(sr.test(o)?"&":"?")+"_="+wf.guid+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+df+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=ne(cr,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&0<u.timeout&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(t){if(s)throw t;b(-1,t)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i.ajaxPrefilter(function(n){var t;for(t in n.headers)"content-type"===t.toLowerCase()&&(n.contentType=n.headers[t]||"")}),i._evalUrl=function(n,t,r){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){i.globalEval(n,t,r)}})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},te={0:200,1223:204},wt=i.ajaxSettings.xhr(),e.cors=!!wt&&"withCredentials"in wt,e.ajax=wt=!!wt,i.ajaxTransport(function(t){var i,r;if(e.cors||wt&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(te[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(u){if(i)throw u;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain||n.scriptAttrs)return{send:function(u,e){r=i("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),vr=[],vi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=vr.pop()||i.expando+"_"+wf.guid++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(vi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(vi,"$1"+e):!1!==t.jsonp&&(t.url+=(sr.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,vr.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((ie=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===ie.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=wi.exec(n))?[t.createElement(o[1])]:(o=yu([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return-1<o&&(f=tt(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<e.length&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&-1<(s+c).indexOf("auto")?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||g})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return w(this,function(n,i,u){var f;if(rt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=du(e.pixelPosition,function(n,r){if(r)return r=ni(n,t),tr.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return w(this,function(t,r,f){var e;return rt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)},hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return 0<arguments.length?this.on(t,null,n,i):this.trigger(t)}}),re=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=k.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(k.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=c,i.isFunction=u,i.isWindow=rt,i.camelCase=y,i.type=ut,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},i.trim=function(n){return null==n?"":(n+"").replace(re,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),ue=n.jQuery,fe=n.$,i.noConflict=function(t){return n.$===i&&(n.$=fe),t&&n.jQuery===i&&(n.jQuery=ue),i},"undefined"==typeof t&&(n.jQuery=n.$=i),i});window.Modernizr=function(n,t,i){function l(n){h.cssText=n}function at(n,t){return l(y.join(n+";")+(t||""))}function s(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function rt(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&h[r]!==i)return t=="pfx"?r:!0;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:s(u,"function")?u.bind(r||t):u;return!1}function e(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+st.join(r+" ")+r).split(" ");return s(t,"string")||s(t,"undefined")?rt(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;r<u;r++)w[i[r]]=i[r]in f;return w.list&&(w.list=!!t.createElement("datalist")&&!!n.HTMLDataListElement),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=function(n){for(var u=0,r,e,o,s=n.length;u<s;u++)f.setAttribute("type",e=n[u]),r=f.type!=="text",r&&(f.value=d,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&f.style.WebkitAppearance!==i?(c.appendChild(f),o=t.defaultView,r=o.getComputedStyle&&o.getComputedStyle(f,null).WebkitAppearance!=="textfield"&&f.offsetHeight!==0,c.removeChild(f)):/^(search|tel)$/.test(e)||(r=/^(url|email)$/.test(e)?f.checkValidity&&f.checkValidity()===!1:f.value!=d)),ct[n[u]]=!!r;return ct}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u={},ut=!0,c=t.documentElement,o="modernizr",ft=t.createElement(o),h=ft.style,f=t.createElement("input"),d=":)",et={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),ot="Webkit Moz O ms",st=ot.split(" "),ht=ot.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},r={},ct={},w={},g=[],nt=g.slice,b,a=function(n,i,r,u){var l,a,h,f=t.createElement("div"),s=t.body,e=s?s:t.createElement("body");if(parseInt(r,10))while(r--)h=t.createElement("div"),h.id=u?u[r]:o+(r+1),f.appendChild(h);return l=["&#173;",'<style id="s',o,'">',n,"<\/style>"].join(""),f.id=o,(s?f:e).innerHTML+=l,e.appendChild(f),s||(e.style.background="",c.appendChild(e)),a=i(f,n),s?f.parentNode.removeChild(f):e.parentNode.removeChild(e),!!a},pt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(a("@media "+t+" { #"+o+" { position: absolute; } }",function(t){r=(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position=="absolute"}),r)},lt=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=s(u[n],"function"),s(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),tt={}.hasOwnProperty,it,k;it=!s(tt,"undefined")&&!s(tt.call,"undefined")?function(n,t){return tt.call(n,t)}:function(n,t){return t in n&&s(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=nt.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(nt.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(nt.call(arguments)))},r});r.flexbox=function(){return e("flexWrap")};r.canvas=function(){var n=t.createElement("canvas");return!!n.getContext&&!!n.getContext("2d")};r.canvastext=function(){return!!u.canvas&&!!s(t.createElement("canvas").getContext("2d").fillText,"function")};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:a(["@media (",y.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!e("indexedDB",n)};r.hashchange=function(){return lt("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!n.history&&!!history.pushState};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),v(h.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),v(h.backgroundColor,"rgba")||v(h.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(h.background)};r.backgroundsize=function(){return e("backgroundSize")};r.borderimage=function(){return e("borderImage")};r.borderradius=function(){return e("borderRadius")};r.boxshadow=function(){return e("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(h.opacity)};r.cssanimations=function(){return e("animationName")};r.csscolumns=function(){return e("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+y.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(h.backgroundImage,"gradient")};r.cssreflections=function(){return e("boxReflect")};r.csstransforms=function(){return!!e("transform")};r.csstransforms3d=function(){var n=!!e("perspective");return n&&"webkitPerspective"in c.style&&a("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return e("transition")};r.fontface=function(){var n;return a('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.generatedcontent=function(){var n;return a(['#modernizr:after{content:"',d,'";visibility:hidden}'].join(""),function(t){n=t.offsetHeight>=1}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(p.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==p.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(et.call(t.createElementNS(p.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS(p.svg,"clipPath")))};for(k in r)it(r,k)&&(b=k.toLowerCase(),u[b]=r[k](),g.push((u[b]?"":"no-")+b));return u.input||yt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)it(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;ut&&(c.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),ft=f=null,u._version="2.6.1",u._prefixes=y,u._domPrefixes=ht,u._cssomPrefixes=st,u.mq=pt,u.hasEvent=lt,u.testProp=function(n){return rt([n])},u.testAllProps=e,u.testStyles=a,c.className=c.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(ut?" js "+g.join(" "):""),u}(this,this.document),function(n,t){function c(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function u(){var n=i.elements;return typeof n=="string"?n.split(" "):n}function f(n){var t=p[n[y]];return t||(t={},h++,n[y]=h,p[h]=t),t}function l(n,i,u){if(i||(i=t),r)return i.createElement(n);u||(u=f(i));var e;return e=u.cache[n]?u.cache[n].cloneNode():it.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),e.canHaveChildren&&!tt.test(n)?u.frag.appendChild(e):e}function w(n,i){if(n||(n=t),r)return n.createDocumentFragment();i=i||f(n);for(var o=i.frag.cloneNode(),e=0,s=u(),h=s.length;e<h;e++)o.createElement(s[e]);return o}function b(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(r){return i.shivMethods?l(r,n,t):t.createElem(r)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+u().join().replace(/\w+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(i,t.frag)}function a(n){n||(n=t);var u=f(n);return i.shivCSS&&!s&&!u.hasCSS&&(u.hasCSS=!!c(n,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),r||b(n,u),n}function k(n){for(var t,i=n.getElementsByTagName("*"),r=i.length,e=RegExp("^(?:"+u().join("|")+")$","i"),f=[];r--;)t=i[r],e.test(t.nodeName)&&f.push(t.applyElement(d(t)));return f}function d(n){for(var t,r=n.attributes,u=r.length,i=n.ownerDocument.createElement(e+":"+n.nodeName);u--;)t=r[u],t.specified&&i.setAttribute(t.nodeName,t.nodeValue);return i.style.cssText=n.style.cssText,i}function g(n){for(var t,i=n.split("{"),r=i.length,f=RegExp("(^|[\\s,>+~])("+u().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),o="$1"+e+"\\:$2";r--;)t=i[r]=i[r].split("}"),t[t.length-1]=t[t.length-1].replace(f,o),i[r]=t.join("}");return i.join("{")}function nt(n){for(var t=n.length;t--;)n[t].removeNode()}function v(n){function r(){clearTimeout(i._removeSheetTimer);t&&t.removeNode(!0);t=null}var t,u,i=f(n),o=n.namespaces,s=n.parentWindow;return!ut||n.printShived?n:(typeof o[e]=="undefined"&&o.add(e),s.attachEvent("onbeforeprint",function(){r();for(var o,s,f,l=n.styleSheets,e=[],i=l.length,h=Array(i);i--;)h[i]=l[i];while(f=h.pop())if(!f.disabled&&rt.test(f.media)){try{o=f.imports;s=o.length}catch(a){s=0}for(i=0;i<s;i++)h.push(o[i]);try{e.push(f.cssText)}catch(a){}}e=g(e.reverse().join(""));u=k(n);t=c(n,e)}),s.attachEvent("onafterprint",function(){nt(u);clearTimeout(i._removeSheetTimer);i._removeSheetTimer=setTimeout(r,500)}),n.printShived=!0,n)}var o=n.html5||{},tt=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,it=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,s,y="_html5shiv",h=0,p={},r,i;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";s="hidden"in n;r=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(i){s=!0;r=!0}})();i={elements:o.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:o.shivCSS!==!1,supportsUnknownElements:r,shivMethods:o.shivMethods!==!1,type:"default",shivDocument:a,createElement:l,createDocumentFragment:w};n.html5=i;a(t);var rt=/^$|\b(?:all|print)\b/,e="html5shiv",ut=!r&&function(){var i=t.documentElement;return typeof t.namespaces!="undefined"&&typeof t.parentWindow!="undefined"&&typeof i.applyElement!="undefined"&&typeof i.removeNode!="undefined"&&typeof n.attachEvent!="undefined"}();i.type+=" print";i.shivPrint=v;v(t)}(this,document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function e(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),e()):v=0}function ut(n,i,f,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&e(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:f,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:o),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&e()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var f=t.documentElement,s=n.setTimeout,o=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in f.style,d=k&&!!t.createRange().compareNode,g=d?f:o.parentNode,f=n.opera&&"[object Opera]"==y.call(n.opera),f=!!t.attachEvent&&!f,nt=k?"object":f?"script":"img",et=f?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,t=n.pop(),e=n.length,t={url:t,origUrl:t,prefixes:n},u,r,i=0;i<e;i++)r=n[i].split("="),(u=it[r.shift()])&&(t=u(t,r));for(i=0;i<f;i++)t=p[i](t);return t}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0,i;for(i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=e;n.yepnope.injectJs=function(n,i,r,f,h,c){var a=t.createElement("script"),v,y,f=f||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?e:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},f);h?a.onload():o.parentNode.insertBefore(a,o)};n.yepnope.injectCss=function(n,i,r,u,f,h){var u=t.createElement("link"),c,i=h?e:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);f||(o.parentNode.insertBefore(u,o),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};medicalmutual=function(n){function f(){var t=n("ul li:first-child"),i=n("ul li:last-child");t.each(function(){n(this).addClass("first")});i.each(function(){n(this).addClass("last")})}function e(){var t=n("label.toggle input");t.each(function(){n(this).on("click",function(){n(this).val()=="yes"?n(this).parent("label").next("label").next("section").removeClass("hidden"):n(this).parent("label").next("section").addClass("hidden")})})}function o(){var t=n("nav.secondary ul li");if(!t[0])return!1;t.children("ul").parent().addClass("parent")}function s(){Date.firstDayOfWeek=0;Date.format="mm/dd/yyyy";n(".date-pick").datePicker({clickInput:!0,startDate:"01/01/2000"})}function h(){Date.firstDayOfWeek=0;Date.format="mm/dd/yyyy";n(".date-pick-future").datePicker({clickInput:!0,startDate:t()})}function c(){Date.firstDayOfWeek=0;Date.format="mm/dd/yyyy";n(".date-pick-past").datePicker({clickInput:!0,startDate:"01/01/2000",endDate:t()})}function l(){Date.firstDayOfWeek=0;Date.format="mm/dd/yyyy"}function a(){Date.firstDayOfWeek=0;Date.format="mm/dd/yyyy";n(".date-pick-quoting").datePicker({clickInput:!0,startDate:v(),endDate:"12/31/2014"});n(".date-pick-quoting").attr("readonly","true")}function t(){var t=new Date,i="0"+(t.getMonth()+1),n,r;return i=i.substr(-2),n="0"+t.getDate(),n=n.substr(-2),r=t.getFullYear(),i+"/"+n+"/"+r}function i(){var t=new Date((new Date).getTime()+864e5),i="0"+(t.getMonth()+1),n,r;return i=i.substr(-2),n="0"+t.getDate(),n=n.substr(-2),r=t.getFullYear(),i+"/"+n+"/"+r}function v(){var n=new Date(i()),t=new Date("10/1/2013");return n<t?"10/01/2013":i()}function y(){var t=n("p.feedback a");n(t).on("click",function(n){oo_feedback.show();n.preventDefault()})}function p(){var f=document.getElementById("hidAlertId")!=null?document.getElementById("hidAlertId").value:"",t,i,e;if(f!==""){if(i=!1,n("#error").length>0)t=n("#error"),e=n('<div id="close"><a href="#" aria-label="Close" id="closeme">&nbsp;X&nbsp;<\/a><\/div>'),t.append(n(e));else if(n("#alert-box").length>0)t=n("#alert-box"),i=!0;else return;if(u("MedicalMutualAlert"+f))window.log("Alert Cookie has been set, not showing Cookie"),t.hide();else{i&&n("#rail").css("margin-top","0");t.fadeIn(1250);n("#closeme").on("keyup click",function(n){n.type=="keyup"?n.keyCode===13&&r(t,f,i):r(t,f,i)})}}}function r(t,i,r){w("MedicalMutualAlert"+i,"closed","7","/","","");t.fadeOut(750,function(){r&&n("#rail").css("margin-top","-90px")})}function u(n){var i=document.cookie.indexOf(n+"="),r=i+n.length+1,t;return!i&&n!=document.cookie.substring(0,n.length)?null:i==-1?null:(t=document.cookie.indexOf(";",r),t==-1&&(t=document.cookie.length),unescape(document.cookie.substring(r,t)))}function w(n,t,i,r,u,f){var e=new Date,o;e.setTime(e.getTime());i&&(i=i*864e5);o=new Date(e.getTime()+i);document.cookie=n+"="+escape(t)+(i?";expires="+o.toGMTString():"")+(r?";path="+r:"")+(u?";domain="+u:"")+(f?";secure":"")}return publicfunction=function(){},init=function(){o();e();s();h();c();l();a();f();y();n("#main ul.sitemap > li > ul > li:nth-child(4n+4)").addClass("fourth");p()},{publicfunction:publicfunction,init:init}}(window.jQuery);$(function(){$("footer #return-top .sb-return-top").on("click",function(){$("body, html").animate({scrollTop:0},"400")});SelectErrorElement();FocusOnErrorList()});$(function(){medicalmutual.init()});$(function(){var n=!1;$("body").on("click",".CollapseHeadingBox",function(){$(this).toggleClass("minus");$(this).next(".ContentCollapsed").slideToggle(10);var t=$(".plus").length,i=$(".minus").length;t==i?($(".expandAll").addClass("collapseAll"),n=!0):($(".expandAll").removeClass("collapseAll"),n=!1)});$("body").on("click",".expandAll",function(t){t.preventDefault();n?($(".expandAll").removeClass("collapseAll"),$(".ContentCollapsed").css("display","none"),$(".CollapseHeadingBox").removeClass("minus"),n=!1):($(".expandAll").addClass("collapseAll"),$(".ContentCollapsed").css("display","inline-block"),$(".CollapseHeadingBox").addClass("minus"),n=!0)})}),function(){String.prototype.regexIndexOf=function(n,t){var i=this.substring(t||0).search(n);return i>=0?i+(t||0):i}}(),function(){function n(n,t,i){return n.length<i[1]?n:n.length<i[2]?n.slice(i[0],i[1])+t+n.slice(i[1]):n.slice(i[0],i[1])+t+n.slice(i[1],i[2])+t+n.slice(i[2])}function i(n){n.input.on("keyup",function(t){t.keyCode===8||t.keyCode===46||t.keyCode>36&&t.keyCode<41||(this.value=n.mask(this.value))})}function r(n){var t=$(SB.Inputs.formElements).index(n);t>-1&&SB.Inputs.formElements.splice(t,1)}this.sbInput=function(){this.input=null;this.mask=null;this.removeItem=!0};var t={phone:function(t){t=t.replace(/\D/g,"");return n(t,"-",[0,3,6])},date:function(t){var r="/",u,i,f;return t.regexIndexOf(/\D/)>-1&&(u=t[t.regexIndexOf(/\D/)],i=t.split(u),i[0]<10&&i[0].length===1&&(i[0]=0+i[0]),t.length>4&&i[1]<10&&i[1].length===1&&(i[1]=0+i[1]),t=i.join(r)),i=t.split(r),i[0]>12&&(t=0+t),i[1]>31&&(f=i[1].slice(1),i[1]=(0+i[1]).slice(0,2),i[2]=f,t=i.join()),n(t.replace(/\D/g,""),r,[0,2,4])}};sbInput.prototype.init=function(n){this.input=n;this.input.data("mask")&&(this.removeItem=!1,this.mask=t[this.input.data("mask")],i(this));this.removeItem&&r(this)}}();SB=SB||{};SB.Inputs={formElements:Array(),init:function(){var u=$(document),t=$("input.sb-date"),i=t.length,n,r;if(i>0)for(n=0;n<i;n++)r=new sbInput,SB.Inputs.formElements.push(r),SB.Inputs.formElements[SB.Inputs.formElements.length-1].init($(t[n]))}};$(function(){SB.Inputs.init();$("body").on("focus",".parent",function(){$(".parent").removeClass("jqhover");$(this).addClass("jqhover")});$("body").on("focus","#endofSecondaryNav",function(){$(".parent").removeClass("jqhover")})});$("a").on("keyup",function(n){var t=navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode==!0,i=navigator.userAgent.indexOf("Firefox")!==-1;(t||i)&&n.keyCode===13&&(n.preventDefault(),n.target.click())});(function(n,t,i){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}var r=/\+/g;n.cookie=function(r,e,o){var v,h,c,l,s,a;if(e!==i&&!/Object/.test(Object.prototype.toString.call(e)))return o=n.extend({},n.cookie.defaults,o),e===null&&(o.expires=-1),typeof o.expires=="number"&&(v=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+v)),e=String(e),t.cookie=[encodeURIComponent(r),"=",o.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");for(o=e||n.cookie.defaults||{},c=o.raw?u:f,l=t.cookie.split("; "),s=0;a=l[s]&&l[s].split("=");s++)if(c(a.shift())===r)return c(a.join("="));return null};n.cookie.defaults={};n.removeCookie=function(t,i){return n.cookie(t,i)!==null?(n.cookie(t,null,i),!0):!1}})(jQuery,document);modal=function(){var t={},i,n,u,r;return t.center=function(){var t,i;t=Math.max($(window).height()-n.outerHeight(),0)/2;i=Math.max($(window).width()-n.outerWidth(),0)/2;n.css({top:t+$(window).scrollTop(),left:i+$(window).scrollLeft()})},t.open=function(f){r.html(f.content);r.show();n.css({width:f.width||"auto",height:f.height||"auto"});t.center();$(window).bind("resize.modal",t.center);n.show();u.show();i.show();setTimeout("document.images['BusyImage'].src=document.images['BusyImage'].src",10)},t.close=function(){u.hide();i.hide();n.hide();r.hide();$(window).unbind("resize.modal")},i=$('<div id="overall"><\/div>'),n=$('<div id="content"><\/div>'),u=$('<div id="modal"><img id="BusyImage" src="/MedMutual/MedMutual/Global/images/global/TealLoader.gif" alt="Page Loading" /><\/div>'),r=$('<div id="loading" role=”dialog”>Loading... Please wait<\/div>'),n.hide(),i.hide(),n.append(u,r),$(function(){$("body").append(i,n)}),t}();$(function(){$(":submit, button").bind("click",function(){$(this).is("div.col.four input[type=submit]")||$(this).is("div#MedAdvPopup div.container button")||$(this).is("div#MedAdvPopup button")||$(this).is("div#MSQ-step1 button")||$(this).is("div.coupon-booklet fieldset input[type=submit]")||$(this).is("#btnTestDateAdd")||$(this).is("#tax-subsidy-page input.sb-cta")||$(this).is(".js-non-modal-button")||$(this).is(".component-modal .sb-close")||$(this).is(".component-modal .cancel")||$(this).is(".component-modal .btn-secondary")||$(this).is("div#modalSupPopup .sb-close")||$(this).is("div#modalSupPopup .sb-cancel")||$(this).is("div#modalSupPopup .cancel")||$(this).is("div#ConfirmPopup .sb-close")||$(this).is("div#ConfirmPopup .sb-button")||$(this).is("div#popup button")||$(this).is("#main article button.print")||$(this).is(".sb-return-top")||$(this).is("div#MedPlanPopup .sb-close")||$(this).is("div#NeedHelpModal .sb-close, div#NeedHelpModal .sb-cancel")||$(this).is("div#providerPopup .sb-close")||$(this).is("#salesEventZipSearch")||$(this).is(".pagination-button")||$(this).is("#disclaimerSubmit")||$(this).is("div#medicaid-submit button")||$(this).is(".results-pagination button")||($(this).is("div.saint-e-aetna-leaving-site button")?(document.getElementById("accept-terms").checked=!1,document.getElementById("leave-site-button").disabled=!0,$(".saint-e-aetna-leaving-site").hide()):$(this).is(".ignore-loading-gif")||(modal.open({content:"Loading... Please wait",height:"120",width:"300"}),setTimeout("document.images['BusyImage'].src=document.images['BusyImage'].src",10)))})}),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],t):t(n.jQuery)}(this,function(n){function i(){var i=document.createElement("smartbanner"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}var t=function(t){var f,i,r,u;if((this.origHtmlMargin=parseFloat(n("html").css("margin-top")),this.options=n.extend({},n.smartbanner.defaults,t),f=navigator.standalone,i=navigator.userAgent,this.options.force?this.type=this.options.force:i.match(/Windows Phone/i)!==null&&i.match(/Edge|Touch/i)!==null?this.type="windows":i.match(/iPhone|iPod/i)!==null||i.match(/iPad/)&&this.options.iOSUniversalApp?i.match(/Safari/i)!==null&&(i.match(/CriOS/i)!==null||window.Number(i.substr(i.indexOf("OS ")+3,3).replace("_","."))<6)&&(this.type="ios"):i.match(/\bSilk\/(.*\bMobile Safari\b)?/)||i.match(/\bKF\w/)||i.match("Kindle Fire")?this.type="kindle":i.match(/Android/i)!==null&&(this.type="android"),this.type&&!f&&!this.getCookie("sb-closed")&&!this.getCookie("sb-installed"))&&(this.scale=this.options.scale=="auto"?n(window).width()/window.screen.width:this.options.scale,this.scale<1&&(this.scale=1),r=n(this.type=="android"?'meta[name="google-play-app"]':this.type=="ios"?'meta[name="apple-itunes-app"]':this.type=="kindle"?'meta[name="kindle-fire-app"]':'meta[name="msApplication-ID"]'),r.length!==0)){if(this.type=="windows")this.appId=n('meta[name="msApplication-PackageFamilyName"]').attr("content");else if(u=/app-id=([^\s,]+)/.exec(r.attr("content")),u)this.appId=u[1];else return;this.title=this.options.title?this.options.title:r.data("title")||n("title").text().replace(/\s*[|\-·].*$/,"");this.author=this.options.author?this.options.author:r.data("author")||(n('meta[name="author"]').length?n('meta[name="author"]').attr("content"):window.location.hostname);this.iconUrl=r.data("icon-url");this.price=r.data("price");this.options.onInstall=typeof this.options.onInstall=="function"?this.options.onInstall:function(){};this.options.onClose=typeof this.options.onClose=="function"?this.options.onClose:function(){};this.create();this.show();this.listen()}};(t.prototype={constructor:t,create:function(){var t,i=this.options.url?this.options.url:(this.type=="windows"?"ms-windows-store:navigate?appid=":this.type=="android"?"market://details?id=":this.type=="kindle"?"amzn://apps/android?asin=":"https://itunes.apple.com/"+this.options.appStoreLanguage+"/app/id")+this.appId,u=this.price||this.options.price,e=u?u+" - "+(this.type=="android"?this.options.inGooglePlay:this.type=="kindle"?this.options.inAmazonAppStore:this.type=="ios"?this.options.inAppStore:this.options.inWindowsStore):"",f=this.options.iconGloss===null?this.type=="ios":this.options.iconGloss,r;this.type=="android"&&this.options.GooglePlayParams&&(i=i+"&referrer="+this.options.GooglePlayParams);r='<div id="smartbanner" class="'+this.type+'"><div class="sb-container"><a href="#" class="sb-close">&times;<\/a><span class="sb-icon"><\/span><div class="sb-info"><strong>'+this.title+"<\/strong><span>"+this.author+"<\/span><span>"+e+'<\/span><\/div><a href="'+i+'" class="sb-button"><span>'+this.options.button+"<\/span><\/a><\/div><\/div>";this.options.layer?n(this.options.appendToSelector).append(r):n(this.options.appendToSelector).prepend(r);this.options.icon?t=this.options.icon:this.iconUrl?t=this.iconUrl:n('link[rel="apple-touch-icon-precomposed"]').length>0?(t=n('link[rel="apple-touch-icon-precomposed"]').attr("href"),this.options.iconGloss===null&&(f=!1)):n('link[rel="apple-touch-icon"]').length>0?t=n('link[rel="apple-touch-icon"]').attr("href"):n('meta[name="msApplication-TileImage"]').length>0?t=n('meta[name="msApplication-TileImage"]').attr("content"):n('meta[name="msapplication-TileImage"]').length>0&&(t=n('meta[name="msapplication-TileImage"]').attr("content"));t?(n("#smartbanner .sb-icon").css("background-image","url("+t+")"),f&&n("#smartbanner .sb-icon").addClass("gloss")):n("#smartbanner").addClass("no-icon");this.bannerHeight=n("#smartbanner").outerHeight()+2;this.scale>1&&(n("#smartbanner").css("top",parseFloat(n("#smartbanner").css("top"))*this.scale).css("height",parseFloat(n("#smartbanner").css("height"))*this.scale).hide(),n("#smartbanner .sb-container").css("-webkit-transform","scale("+this.scale+")").css("-msie-transform","scale("+this.scale+")").css("-moz-transform","scale("+this.scale+")").css("width",n(window).width()/this.scale));n("#smartbanner").css("position",this.options.layer?"absolute":"static")},listen:function(){n("#smartbanner .sb-close").on("click",n.proxy(this.close,this));n("#smartbanner .sb-button").on("click",n.proxy(this.install,this))},show:function(t){var i=n("#smartbanner"),r;i.stop();this.options.layer?(i.animate({top:0,display:"block"},this.options.speedIn).addClass("shown").show(),n(this.pushSelector).animate({paddingTop:this.origHtmlMargin+this.bannerHeight*this.scale},this.options.speedIn,"swing",t)):n.support.transition?(i.animate({top:0},this.options.speedIn).addClass("shown"),r=function(){n("html").removeClass("sb-animation");t&&t()},n(this.pushSelector).addClass("sb-animation").one(n.support.transition.end,r).emulateTransitionEnd(this.options.speedIn).css("margin-top",this.origHtmlMargin+this.bannerHeight*this.scale)):i.slideDown(this.options.speedIn).addClass("shown")},hide:function(t){var i=n("#smartbanner"),r;i.stop();this.options.layer?(i.animate({top:-1*this.bannerHeight*this.scale,display:"block"},this.options.speedIn).removeClass("shown"),n(this.pushSelector).animate({paddingTop:this.origHtmlMargin},this.options.speedIn,"swing",t)):n.support.transition?(this.type!=="android"?i.css("top",-1*this.bannerHeight*this.scale).removeClass("shown"):i.css({display:"none"}).removeClass("shown"),r=function(){n("html").removeClass("sb-animation");t&&t()},n(this.pushSelector).addClass("sb-animation").one(n.support.transition.end,r).emulateTransitionEnd(this.options.speedOut).css("margin-top",this.origHtmlMargin)):i.slideUp(this.options.speedOut).removeClass("shown")},close:function(n){n.preventDefault();this.hide();this.setCookie("sb-closed","true",this.options.daysHidden);this.options.onClose(n)},install:function(n){this.options.hideOnInstall&&this.hide();this.setCookie("sb-installed","true",this.options.daysReminder);this.options.onInstall(n)},setCookie:function(n,t,i){var r=new Date;r.setDate(r.getDate()+i);t=encodeURI(t)+(i===null?"":"; expires="+r.toUTCString());document.cookie=n+"="+t+"; path=/;"},getCookie:function(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 decodeURI(u);return null},switchType:function(){var t=this;this.hide(function(){t.type=t.type=="android"?"ios":"android";var i=n(t.type=="android"?'meta[name="google-play-app"]':'meta[name="apple-itunes-app"]').attr("content");t.appId=/app-id=([^\s,]+)/.exec(i)[1];n("#smartbanner").detach();t.create();t.show()})}},n.smartbanner=function(i){var u=n(window),r=u.data("smartbanner"),f=typeof i=="object"&&i;r||u.data("smartbanner",r=new t(f));typeof i=="string"&&r[i]()},n.smartbanner.defaults={title:"MedMutual",author:"Medical Mutual of Ohio",price:"FREE",appStoreLanguage:"us",inAppStore:"On the App Store",inGooglePlay:"In Google Play",inAmazonAppStore:"In the Amazon Appstore",inWindowsStore:"In the Windows Store",GooglePlayParams:null,icon:"/~/media/MedMutual/Images/SmartBannerApp/smartbannerMobileAppIcon.png",iconGloss:null,button:"VIEW",url:null,scale:"auto",speedIn:300,speedOut:400,daysHidden:15,daysReminder:90,force:null,hideOnInstall:!0,layer:!1,iOSUniversalApp:!0,appendToSelector:"body",pushSelector:"html"},n.smartbanner.Constructor=t,n.support.transition===undefined)&&(n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this},n(function(){n.support.transition=i()}))});$(function(){$.smartbanner()});$(document).on("scroll",function(){$(document).scrollTop()>0?($(".MedMutualMainHeader").addClass("sticky"),$(".MedMutualMainHeader.lower").css("top",$(".MedMutualMainHeader.upper").outerHeight())):($(".MedMutualMainHeader").removeClass("sticky"),$(".MedMutualMainHeader.lower").css("top","unset"))});$(function(){var n=$("#primary");$("#ClickToSearch").on("click",function(){OpenSearchOverlay()});$("#NavHamburgerButton, #NavHamburgerClose").on("click keypress",function(n){a11yClick(n)&&ToggleResponsiveNav()});$('#searchOverlay input[type="text"]').on("keypress",function(n){n.which==13&&(n.preventDefault(),$("#header_0_txtSearch").trigger("submit"))});$('#coupon-booklet input[type="text"]').on("keypress",function(n){n.which==13&&(n.preventDefault(),$("#related_2_btnDownload").submit())});$("#menu").on("click",function(){var t=$("header").outerHeight();n.css("top",t);n.css("display")==="none"?(n.slideDown(200),$("#primary ul li").hasClass("active")&&($("#primary ul li.active .secondary").show(),$("#primary ul li.active .arrow").addClass("rotated"))):(n.slideUp(200),$(".secondary").slideUp(200),$(".arrow").removeClass("rotated"))});$(".arrow").on("click",function(){var n=$(this);n.siblings(".secondary").css("display")==="none"?($(".secondary").slideUp(200),n.siblings(".secondary").slideDown(200),$(".arrow").removeClass("rotated"),n.addClass("rotated")):(n.siblings(".secondary").slideUp(200),$(".arrow").removeClass("rotated"))});$("#btn-find-a-plan").prop("onclick",null).off("click");$("#btn-find-a-plan").on("click",function(){ToggleFindAPlanLinks()});$("#btn-find-a-plan").on("keyup",function(n){n.keyCode===13&&(n.preventDefault(),n.target.click())})});$(function(){$(".background").on("click",function(){$(".overlay").fadeOut(400)});$(".cancel").on("click",function(){$(".overlay").fadeOut(400)});$("div#subsidy-calculator div.overlay").on("click",function(){$("div#subsidy-calculator").fadeOut(400)});$("#popup p a").on("click",function(){$("#popup").fadeOut(400)});$(".sb-modal").on("click",function(n){if(n.target.tagName.toLowerCase()==="a"||n.target.tagName.toLowerCase()==="input"||n.target.classList.contains("ignore-defaults"))return!0;n.preventDefault();$(n.target).parents(".sb-box").length<=0&&!$(n.target).hasClass("sb-box")&&($("html, body").css("overflow","visible"),$("html").hasClass("ltIE9")?$(".sb-modal").hide():$(".sb-modal").fadeOut(400))});$(".sb-close, .sb-cancel, .cancel").on("click",function(){$("html, body").css("overflow","visible");$("html").hasClass("ltIE9")?$(".sb-modal").hide():$(".sb-modal").fadeOut(400)})});$(function(){$(".close, p.cancel, .btnCloseModal").on("click",function(){$(this).attr("class")==="btnCloseMedAdvModal"?$(".overlay").fadeOut(400):($(".overlay").fadeOut(400),$("div#MedAdvPopup").hide())});$("body").on("click","#ConfirmPopup .sb-button",function(n){return n.preventDefault(),$("#ConfirmPopup").fadeOut(300),!1})});$(function(){$(".SimpleNavSwitch").on("click",function(n){n.stopPropagation();var t=$(this);t.siblings(".simpleNavContainer").length>0&&n.preventDefault();t.siblings(".simpleNavContainer").css("display")==="none"?(closeSimpleNavMenus(),t.siblings(".simpleNavContainer").slideDown(200),t.addClass("active").find(".caret").addClass("rotated")):closeSimpleNavMenus()});$(window).click(function(){closeSimpleNavMenus()})});$(function(){$(".PrimaryNavItem a").click(function(){var n=$(this).attr("id");if($(".megaNavBox#"+n+"MegaNav").length)return ToggleMegaNav($(this).attr("id")),!1});$(".HeaderBackground.fullNav").click(function(){return HideMegaNav(),HideFindAPlanMenu(),!1});$(".SpanFullWidth:visible").click(function(n){n.target.parentElement.className!=="find-a-plan-link"&&HideFindAPlanMenu()});$(".PrimaryNavResponsive a").click(function(){var n=$(this).attr("id");if($("#"+n.replace("ResponsiveLink","MegaNavResponsive")).length)return ToggleMegaNavResponsive($(this).attr("id").replace("ResponsiveLink","")),!1})});$(document).ready(function(){$(".simpleNavContainer").hide()});$(document).on("keyup",function(n){if(n.keyCode==27)return $("#subsidy-calculator, #MedAdvPopup, #modalSupPopup, #ConfirmPopup").fadeOut(400),closeSimpleNavMenus(),HideMegaNav(),HideFindAPlanMenu(),HideMegaNavContainer(),!1});siteSearch=function(){_this={};_this.overlayVisible=function(){return $("#searchOverlay:visible").length?!0:!1};_this.openSearchModal=function(){$("#searchOverlay").fadeIn(400);document.getElementById("txtSearch").value="";$("#txtSearch").trigger("focus")};_this.closeSearchModal=function(){$("#searchOverlay").fadeOut(400);$("#txtSearch").val("")};_this.runSearch=function(n){var t=$("#hidSearchUrl").val()+encodeURIComponent(n);window.location.href=t};$(document).ready(function(){$("#txtResponsiveSearch").on("keyup",function(n){n.keyCode==13&&siteSearch.runSearch($("#txtResponsiveSearch").val())});$("#searchOverlay .background").on("click",function(){siteSearch.closeSearchModal()});$(".HamburgerMenu").on("closing",function(){$("#txtResponsiveSearch").val("")});window.addEventListener("resize",function(){siteSearch.overlayVisible()&&siteSearch.closeSearchModal()})});$(document).on("keyup",function(n){n.keyCode==27&&siteSearch.overlayVisible()&&siteSearch.closeSearchModal()});return _this}();loginDropdown=function(){_this={};_this.visible=function(){return $("#login-dropdown-content:visible").length?!0:!1};_this.show=function(){$("#login-dropdown-content").fadeIn(400);$(".HeaderBackground.upperNav").fadeIn(400);$(".login-button > .down").hide();$(".login-button > .up").show();$("#login-dropdown-content").children("a:not(.login-as-a)").first().focus();HideFindAPlanMenu();HideMegaNav()};_this.hide=function(){$("#login-dropdown-content").fadeOut(400);$(".HeaderBackground.upperNav").fadeOut(400);$(".login-button > .up").hide();$(".login-button > .down").show()};_this.toggle=function(){_this.visible()?_this.hide():_this.show()};$(document).click(function(){var n=$(event.target);!n.closest("#login-dropdown").length&&loginDropdown.visible()?loginDropdown.hide():n.prop("target")=="_blank"&&loginDropdown.hide()});$(document).on("keyup",function(n){n.keyCode==27&&loginDropdown.visible()&&loginDropdown.hide()});return _this}();$(function(){$(".PrimaryNavItem a.MegaNavSwitch").click(function(n){var t=$(this).attr("id");$("#MegaNav"+t+"Container").length&&ToggleMegaNavContainer(t);n.preventDefault()});$(".CategoryHeaderContainer a").click(function(n){var t=$(this).attr("id");return $("#ContentLink"+t+"Container").length&&ShowCategoryLinkContainer(t),n.preventDefault(),!1})});$(function(){$(".ContentHeaderContainerResponsiveLink").click(function(n){if($(this).attr("href")=="#"){var t=$(this).attr("id").replace("-R","");return $("#ContentHeader"+t+"ResponsiveContainer").length&&ToggleContentHeaderContainerResponsive(t),n.preventDefault(),!1}});$(".CategoryHeaderLinkResponsiveOpen").click(function(n){var t=$(this).attr("id").replace("-R","");return $("#ContentLink"+t+"ResponsiveContainer").length&&($("#ContentLink"+t+"ResponsiveContainer").show(),$("#ContentLink"+t+"ResponsiveContainer a:first").focus()),n.preventDefault(),!1});$(".CategoryHeaderLinkResponsiveClose").click(function(n){var t=$(this).attr("id").replace("BackLink","ResponsiveContainer");return $("#"+t).hide(),$("#"+$(this).attr("id").replace("BackLink","ResponsiveContainer").replace("ContentLink","ContentHeader")).focus(),n.preventDefault(),!1})});loginDropdown=function(){_this={};_this.visible=function(){return $("#login-dropdown-content:visible").length?!0:!1};_this.show=function(){$("#login-dropdown-content").fadeIn(400);$(".HeaderBackground.upperNav").fadeIn(400);$(".login-button > .down").hide();$(".login-button > .up").show();$("#login-dropdown-content").children("a:not(.login-as-a)").first().focus();HideFindAPlanMenu();HideMegaNav()};_this.hide=function(){$("#login-dropdown-content").fadeOut(400);$(".HeaderBackground.upperNav").fadeOut(400);$(".login-button > .up").hide();$(".login-button > .down").show()};_this.toggle=function(){_this.visible()?_this.hide():_this.show()};$(document).click(function(){var n=$(event.target);!n.closest("#login-dropdown").length&&_this.visible()?loginDropdown.hide():n.prop("target")=="_blank"&&loginDropdown.hide()});$(document).on("keyup",function(n){n.keyCode==27&&_this.visible()&&loginDropdown.hide()});return _this}();$(document).ready(function(){$(".js-close-alert").click(function(n){var t=$(n.target).attr("data-alertId");alerts.closeAlert(t)})});alerts=function(){var n={};return n.closeAlert=function(n){console.log(n);$('div.alert_message[data-alertId="'+n+'"]').hide();var t=new Date;t.setTime(t.getTime()+6048e5);document.cookie="closeAlert_"+n+"=true; expires="+t.toUTCString()},n}();$(document).ready(function(){transformTableResponsiveCard();transformTableResponsiveAccordion()});$(function(){attachMedAdvModalEvents(document)});$(function(){var n=null,t=null,i=null,u=new Date,r;document.getElementById("btnShopping")!=null&&(n=document.getElementById("btnShopping"));document.getElementById("btnGetQuote")!=null&&(t=document.getElementById("btnGetQuote"));document.getElementById("btnContinue")!=null&&(i=document.getElementById("btnContinue"));r=$("#hdnIsOpenEnrollmentClosed").val();r=="true"?i!=null&&(i.onmousedown=function(){tagWebtrendsBF("inssearch")}):n!=null?n.onmousedown=function(){tagWebtrendsBF("inssearch")}:t!=null&&(t.onmousedown=function(){tagWebtrendsBF("checknet")})});$(window).on("load",function(){$("nav").hasClass("secondary")&&$("#rail").addClass("navOffSet")});$(document).on("keypress",function(n){var c=n.keyCode?n.keyCode:n.which,t,i,r,u,f,e,o,s,h;if(c=="13"){t=n.target.id;t.indexOf("zipcodeInsSearch")>-1&&(t="zipcodeInsSearch");switch(t){case"passwordHomepage":n.preventDefault();i=$("#btnHomepageLogin");i.trigger("click");break;case"usernameHomepage":return n.preventDefault(),r=$("#passwordHomepage"),r.trigger("focus"),!1;case"txtUsernameBroker":n.preventDefault();u=$("#txtPasswordBroker");u.trigger("focus");break;case"txtPasswordBroker":n.preventDefault();f=$("#btnBrokerLogin");f.trigger("click");break;case"txtUsernameEmployer":return n.preventDefault(),e=$("#txtPasswordEmployer"),e.trigger("focus"),!1;case"txtPasswordEmployer":n.preventDefault();o=$("#btnEmployerLogin");o.trigger("click");break;case"txtUsernameProvider":return n.preventDefault(),s=$("#txtPasswordProvider"),s.trigger("focus"),!1;case"txtPasswordProvider":n.preventDefault();h=$("#btnProviderLogin");h.trigger("click");break;default:return n.preventDefault()}}});$("#btnDownload").on("keypress",function(n){if(n.which==13)return n.preventDefault(),$("#txtCouponCode").trigger("submit"),!1});$(function(){if($.cookie("MedMutual_zip")!=null){var n=$.cookie("MedMutual_zip"),t=n.split("&"),i=t[0].split("=");$("#txtShoppingZipcode").val(i[1])}});$(function(){var n=window.innerHeight;$("head").append('<style type="text/css">.sb-modal .sb-content {max-height:'+parseInt(n-250)+"px; overflow-y: auto;}<\/style>")});$(function(){$("div.question a").bind("click",function(){var n=$("span.answer");$(this).parents("div.question").find(n).slideToggle("fast",function(){})})});SB=SB||{};SB.Cards={instances:Array(),numOfCards:0,currentHeight:0,currentRow:Array(),currentRowOffset:0,titleSelector:".sb-cardInfo",cardTitleHeight:0,copySelector:".sb-cardContent",cardCopyHeight:0,setHeightsForRow:function(){if(SB.Cards.currentRow.length>1)for(var n=0;n<SB.Cards.currentRow.length;n++)SB.Cards.currentRow[n].height(SB.Cards.currentHeight),SB.Cards.cardTitleHeight!==undefined&&SB.Cards.currentRow[n].find(SB.Cards.titleSelector).height(SB.Cards.cardTitleHeight),SB.Cards.cardCopyHeight!==undefined&&SB.Cards.currentRow[n].find(SB.Cards.copySelector).height(SB.Cards.cardCopyHeight);else SB.Cards.currentRow[0].height("auto"),SB.Cards.cardTitleHeight!==undefined&&SB.Cards.currentRow[0].find(SB.Cards.titleSelector).height("auto"),SB.Cards.cardCopyHeight!==undefined&&SB.Cards.currentRow[0].find(SB.Cards.copySelector).height("auto")},setupNewRow:function(n){SB.Cards.currentRow=[];SB.Cards.currentRow.push(n);SB.Cards.currentRowOffset=n.offset().top;SB.Cards.currentHeight=n.height();SB.Cards.cardTitleHeight=n.find(SB.Cards.titleSelector).height();SB.Cards.cardCopyHeight=n.find(SB.Cards.copySelector).height()},setCardHeights:function(){var u,t,n,i,r;for(SB.Cards.instances.height("auto"),SB.Cards.instances.find(SB.Cards.titleSelector).height("auto"),SB.Cards.instances.find(SB.Cards.copySelector).height("auto"),u=$(SB.Cards.instances[0]),SB.Cards.setupNewRow(u),t=1;t<SB.Cards.numOfCards;t++)n=$(SB.Cards.instances[t]),SB.Cards.currentRowOffset===n.offset().top?(SB.Cards.currentRow.push(n),SB.Cards.currentHeight<n.height()&&(SB.Cards.currentHeight=n.height()),i=n.find(SB.Cards.titleSelector),SB.Cards.cardTitleHeight<i.height()&&(SB.Cards.cardTitleHeight=i.height()),r=n.find(SB.Cards.copySelector),SB.Cards.cardCopyHeight<r.height()&&(SB.Cards.cardCopyHeight=r.height()),t===SB.Cards.numOfCards-1&&SB.Cards.setHeightsForRow()):(SB.Cards.setHeightsForRow(),SB.Cards.setupNewRow(n))},init:function(){if(SB.Cards.instances=$(".twoInfoBlock , .listing , .img-text-container , .generic-sb-card"),SB.Cards.numOfCards=SB.Cards.instances.length,SB.Cards.numOfCards>0){SB.Cards.setCardHeights();$(window).on("resize",function(){SB.Cards.setCardHeights()})}}};$(window).on("load",SB.Cards.init);aria=aria||{};aria.Utils=aria.Utils||{};aria.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};aria.Utils.remove=function(n){return n.remove&&typeof n.remove=="function"?n.remove():n.parentNode&&n.parentNode.removeChild&&typeof n.parentNode.removeChild=="function"?n.parentNode.removeChild(n):!1};aria.Utils.isFocusable=function(n){if(n.tabIndex>0||n.tabIndex===0&&n.getAttribute("tabIndex")!==null)return!0;if(n.disabled)return!1;switch(n.nodeName){case"A":return!!n.href&&n.rel!="ignore";case"INPUT":return n.type!="hidden"&&n.type!="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};window.a11yClick=function(n){if(n.type==="click")return!0;if(n.type==="keypress"){var t=n.key||n.code;if(t==="Enter"||t==="Space")return n.preventDefault(),!0}else return!1};$(document).ready(function(){aria.Utils.IgnoreUtilFocusChanges=!1;aria.Utils.dialogOpenClass="has-dialog";aria.Utils.focusFirstDescendant=function(n){for(var i,t=0;t<n.childNodes.length;t++)if(i=n.childNodes[t],aria.Utils.attemptFocus(i)||aria.Utils.focusFirstDescendant(i))return!0;return!1};aria.Utils.focusLastDescendant=function(n){for(var i,t=n.childNodes.length-1;t>=0;t--)if(i=n.childNodes[t],aria.Utils.attemptFocus(i)||aria.Utils.focusLastDescendant(i))return!0;return!1};aria.Utils.attemptFocus=function(n){if(!aria.Utils.isFocusable(n))return!1;aria.Utils.IgnoreUtilFocusChanges=!0;try{n.focus()}catch(t){}return aria.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===n};aria.OpenDialogList=aria.OpenDialogList||new Array(0);aria.getCurrentDialog=function(){if(aria.OpenDialogList&&aria.OpenDialogList.length)return aria.OpenDialogList[aria.OpenDialogList.length-1]};aria.closeCurrentDialog=function(){var n=aria.getCurrentDialog();return n?(n.close(),!0):!1};aria.handleEscape=function(n){var t=n.which||n.keyCode;t===aria.KeyCode.ESC&&aria.closeCurrentDialog()&&n.stopPropagation()};document.addEventListener("keyup",aria.handleEscape);aria.Dialog=function(n,t,i){var u,f,r,e,o;if(this.dialogNode=document.getElementById(n),this.dialogNode===null)throw new Error('No element found with id="'+n+'".');if(u=["dialog","alertdialog"],f=(this.dialogNode.getAttribute("role")||"").trim().split(/\s+/g).some(function(n){return u.some(function(t){return n===t})}),!f)throw new Error("Dialog() requires a DOM element with ARIA role of dialog or alertdialog.");if(r="dialog-backdrop",this.dialogNode.parentNode.classList.contains(r)?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className=r,this.dialogNode.parentNode.insertBefore(this.backdropNode,this.dialogNode),this.backdropNode.appendChild(this.dialogNode)),this.backdropNode.classList.add("active"),document.body.classList.add(aria.Utils.dialogOpenClass),typeof t=="string")this.focusAfterClosed=document.getElementById(t);else if(typeof t=="object")this.focusAfterClosed=t;else throw new Error("the focusAfterClosed parameter is required for the aria.Dialog constructor.");this.focusFirst=typeof i=="string"?document.getElementById(i):typeof i=="object"?i:null;e=document.createElement("div");this.preNode=this.dialogNode.parentNode.insertBefore(e,this.dialogNode);this.preNode.tabIndex=0;o=document.createElement("div");this.postNode=this.dialogNode.parentNode.insertBefore(o,this.dialogNode.nextSibling);this.postNode.tabIndex=0;aria.OpenDialogList.length>0&&aria.getCurrentDialog().removeListeners();this.addListeners();aria.OpenDialogList.push(this);this.dialogNode.classList.add("visible");this.focusFirst?this.focusFirst.focus():aria.Utils.focusFirstDescendant(this.dialogNode);this.lastFocus=document.activeElement};aria.Dialog.prototype.close=function(){aria.OpenDialogList.pop();this.removeListeners();aria.Utils.remove(this.preNode);aria.Utils.remove(this.postNode);this.dialogNode.classList.remove("visible");this.backdropNode.classList.remove("active");this.focusAfterClosed.focus();aria.OpenDialogList.length>0?aria.getCurrentDialog().addListeners():document.body.classList.remove(aria.Utils.dialogOpenClass)};aria.Dialog.prototype.replace=function(n,t,i){var f=aria.getCurrentDialog(),r,u;aria.OpenDialogList.pop();this.removeListeners();aria.Utils.remove(this.preNode);aria.Utils.remove(this.postNode);this.dialogNode.classList.remove("visible");this.backdropNode.classList.remove("active");r=t||this.focusAfterClosed;u=new aria.Dialog(n,r,i)};aria.Dialog.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0)};aria.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)};aria.Dialog.prototype.trapFocus=function(n){if(!aria.Utils.IgnoreUtilFocusChanges){var t=aria.getCurrentDialog();t.dialogNode.contains(n.target)?t.lastFocus=n.target:(aria.Utils.focusFirstDescendant(t.dialogNode),t.lastFocus==document.activeElement&&aria.Utils.focusLastDescendant(t.dialogNode),t.lastFocus=document.activeElement)}};window.openDialog=function(n,t,i){var r=new aria.Dialog(n,t,i)};window.closeDialog=function(n){var t=aria.getCurrentDialog();t.dialogNode.contains(n)&&t.close()};window.replaceDialog=function(n,t,i){var r=aria.getCurrentDialog();r.dialogNode.contains(document.activeElement)&&r.replace(n,t,i)}}());brokerPurl="";mmeUrl="";$(document).ready(function(){/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&$('meta[name="viewport"]').prop("content","width=device-width, initial-scale=1.0, maximum-scale=1.0")});$(function(){var t=$("#ddlInsType option:selected").text(),n;if(brokerPurl=$("#brokerPurlAvailable").val(),mmeUrl=$("#mmeUrl").val(),$("a.get-a-quote-mme").attr("href",mmeUrl),$(".add-modal-class").siblings(".sb-cardInfo").children("a").addClass("show-enrollment-modal ageout-title-text"),$(".direct-to-mme").siblings(".sb-cardInfo").children("a").addClass("ageout-title-text").attr("href",mmeUrl),brokerPurl==="false"){t!==""&&(n=$("#btnShopping").attr("onclick"),n!==""&&($("#btnShopping").attr("data-originalclick",n),updateShopping()),$("#btnShopping").addClass("show-enrollment-modal"),$("#ddlInsType").change(updateShopping));$(".find-a-plan-link[title='Individual and Family Plans Page']").attr("href","");$(".find-a-plan-link[title='Individual and Family Plans Page']").on("click",function(){return $(".validation-summary-errors").hide(),$(".direct-enrollment-modal").show(),$("html").css({"overflow-y":"hidden"}),$("html").css({position:"fixed"}),$("header").css({"z-index":"0"}),HideFindAPlanMenu(),trapFocus($("#direct-enrollment-modal-main")[0]),setNavigation($("#direct-enrollment-modal-main")[0]),!1});$(".show-enrollment-modal").on("click",function(n){var t=$("#ddlInsType option:selected").text();if(t==="Individual & Family Plans"||t===""||n.target.id!=="btnShopping")return $(".validation-summary-errors").hide(),$(".direct-enrollment-modal").show(),$("html").css({"overflow-y":"hidden"}),$("html").css({position:"fixed"}),$("header").css({"z-index":"0"}),trapFocus($("#direct-enrollment-modal-main")[0]),setNavigation($("#direct-enrollment-modal-main")[0]),!1})}else $("a.show-enrollment-modal").attr("href",mmeUrl);$("#DirectEnrollmentPopup").mousedown(function(n){$("#DirectEnrollmentPopup").is(":visible")&&!$(n.target).closest("#direct-enrollment-modal-main").length&&$(".dismiss-direct-enrollment-x").click()})});$(document).ready(function(){var t=document.getElementById("heroImg"),n;t!=null&&(n=document.getElementById("trafficManager"),n!=null&&n.classList.add("traffic-manager-hero"))});$(document).ready(function(){$("#feedTopicFilter").on("change",function(){var n=window.location.href.split("?")[0]+"?category="+$(this).val();window.location.href=n})});searchFilters=function(){var n={};return n.selectedFilters=function(){var n=[];return $(".js-search-filter").each(function(){var t=$(this).val();t!=""&&n.push(t)}),n},n.bindEvents=function(){$("#btnApplyFilter").on("click",function(){var n=$("#hidSearchTerm").val();searchPage.runSearch(n,1,searchFilters.selectedFilters())})},$(document).ready(function(){searchFilters.bindEvents()}),n}();searchFunction=function(n,t,i){searchPage.runSearch(n,t,i,function(){$([document.documentElement,document.body]).animate({scrollTop:$("#txtSearchPageText").offset().top},350);$("#searchResults dl:first dt a").focus()})};$(document).ready(function(){$("#txtSearch").keypress(function(n){keycode=n.keyCode||n.charCode||n.which;keycode===13&&searchOverlay.runSearch($("#txtSearch").val())});$("#searchResults").keypress(function(n){if(keycode=n.keyCode||n.charCode||n.which,keycode===13){var t=$("#txtRefineSearch").val();searchPage.runSearch(t)}});typeof searchPager!="undefined"&&searchPager.bindEvents(searchFunction)});var searchOverlay=function(){let n={};n.isVisible=function(){return $("#searchOverlay:visible").length?!0:!1};n.open=function(){$("#searchOverlay").fadeIn(400);document.getElementById("txtSearch").value="";$("#txtSearch").trigger("focus")};n.close=function(){$("#searchOverlay").fadeOut(400);$("#txtSearch").val("")};n.runSearch=function(n){var t=$("#hidSearchUrl").val()+encodeURIComponent(n);window.location.href=t};$(document).ready(function(){$("#txtResponsiveSearch").on("keyup",function(n){n.keyCode==13&&searchOverlay.runSearch($("#txtResponsiveSearch").val())});$("#searchOverlay .background").on("click",function(){searchOverlay.close()});$(".HamburgerMenu").on("closing",function(){$("#txtResponsiveSearch").val("")});window.addEventListener("resize",function(){searchOverlay.isVisible()&&searchOverlay.close()})});$(document).on("keyup",function(n){n.keyCode==27&&searchOverlay.isVisible()&&searchOverlay.close()});return n}(),searchPage=function(){let n={};return n.runSearch=function(n,t,i,r){t||(t=1);i||(i=[]);modal.open({content:"Loading... Please wait",height:"120",width:"300"});$.post(window.location.pathname,{scController:"Search",scAction:"RunSearch",criteria:{SearchTerm:n,Page:t,Facets:i}},function(n){$("#searchHeader").replaceWith(n.searchHeader);$("#searchResults").replaceWith(n.searchResults);$("#pagination").replaceWith(n.pager);typeof searchPager!="undefined"&&searchPager.bindEvents(searchFunction);searchPage.bindEvents();$("#searchFilters").is(".replaceMe")&&($("#searchFilters").replaceWith(n.filter),searchFilters.bindEvents());modal.close();r&&r()})},n.bindEvents=function(){if(!$("#btnRefineSearch").is(".search-bound"))$("#btnRefineSearch").addClass("search-bound").on("click",function(){$("#searchFilters").addClass("replaceMe");searchPage.runSearch($("#txtSearchPageText").val())});if(!$("#txtSearchPageText").is(".search-bound"))$("#txtSearchPageText").addClass("search-bound").on("keyup",function(n){n.keyCode==13&&searchOverlay&&($("#searchFilters").addClass("replaceMe"),searchPage.runSearch($("#txtSearchPageText").val()))})},$(document).ready(function(){searchPage.bindEvents()}),n}(),searchFunction=function(n,t,i){searchPage.runSearch(n,t,i,function(){$([document.documentElement,document.body]).animate({scrollTop:$("#txtMMPSearchPageText").offset().top},350);$("#searchResults dl:first dt a").focus()})};$(document).ready(function(){$("#txtSearch").keypress(function(n){keycode=n.keyCode||n.charCode||n.which;keycode===13&&searchOverlay.runSearch($("#txtSearch").val())});$("#searchResults").keypress(function(n){if(keycode=n.keyCode||n.charCode||n.which,keycode===13){var t=$("#txtRefineSearch").val();searchPage.runSearch(t)}});typeof searchPager!="undefined"&&searchPager.bindEvents(searchFunction)});searchOverlay=function(){let n={};n.isVisible=function(){return $("#searchOverlay:visible").length?!0:!1};n.open=function(){$("#searchOverlay").fadeIn(400);document.getElementById("txtSearch").value="";$("#txtSearch").trigger("focus")};n.close=function(){$("#searchOverlay").fadeOut(400);$("#txtSearch").val("")};n.runSearch=function(n){var t=$("#hidSearchUrl").val()+encodeURIComponent(n);window.location.href=t};$(document).ready(function(){$("#txtResponsiveSearch").on("keyup",function(n){n.keyCode==13&&searchOverlay.runSearch($("#txtResponsiveSearch").val())});$("#searchOverlay .background").on("click",function(){searchOverlay.close()});$(".HamburgerMenu").on("closing",function(){$("#txtResponsiveSearch").val("")});window.addEventListener("resize",function(){searchOverlay.isVisible()&&searchOverlay.close()})});$(document).on("keyup",function(n){n.keyCode==27&&searchOverlay.isVisible()&&searchOverlay.close()});return n}();searchPage=function(){let n={};return n.runSearch=function(n,t,i,r){t||(t=1);i||(i=[]);modal.open({content:"Loading... Please wait",height:"120",width:"300"});$.post(window.location.pathname,{scController:"MMPSearch",scAction:"RunSearch",criteria:{SearchTerm:n,Page:t,Facets:i}},function(n){$("#searchHeader").replaceWith(n.searchHeader);$("#searchResults").replaceWith(n.searchResults);$("#pagination").replaceWith(n.pager);typeof searchPager!="undefined"&&searchPager.bindEvents(searchFunction);searchPage.bindEvents();$("#searchFilters").is(".replaceMe")&&($("#searchFilters").replaceWith(n.filter),searchFilters.bindEvents());modal.close();r&&r()})},n.bindEvents=function(){if(!$("#btnMMPRefineSearch").is(".search-bound"))$("#btnMMPRefineSearch").addClass("search-bound").on("click",function(){$("#searchFilters").addClass("replaceMe");searchPage.runSearch($("#txtMMPSearchPageText").val())});if(!$("#txtMMPSearchPageText").is(".search-bound"))$("#txtMMPSearchPageText").addClass("search-bound").on("keyup",function(n){n.keyCode==13&&searchOverlay&&($("#searchFilters").addClass("replaceMe"),searchPage.runSearch($("#txtMMPSearchPageText").val()))})},$(document).ready(function(){searchPage.bindEvents()}),n}();$(document).ready(function(){$(".open-modal").click(function(n){var t=n.target.id+"ComponentModal";$("#"+t).fadeIn(400)})});$(document).on("keyup",function(n){if(n.keyCode==27){var t=n.target.id+"ComponentModal";return $("#"+t).fadeOut(400),!1}});$(document).ready(function(){var n=!1;$(".accordion-heading button, .expand-all button").keyup(function(n){n.key==="Enter"&&(n.preventDefault(),$(this).click())});$("body").on("click",".accordion-heading button",function(t){var u,f;t.preventDefault();var r=$(this),i=r.parent(),e=i.next(".accordion-content");i.toggleClass("open");e.slideToggle(10);r.attr("aria-expanded",i.hasClass("open"));u=$(".accordion-heading").length;f=$(".accordion-heading.open").length;f===u?($(".expand-all").addClass("collapse-all"),n=!0):($(".expand-all").removeClass("collapse-all"),n=!1)});$("body").on("click",".expand-all button",function(t){t.preventDefault();n?($(".expand-all").removeClass("collapse-all"),$(".accordion-content").css("display","none"),$(".accordion-heading").removeClass("open"),$(".accordion-heading button").attr("aria-expanded","false"),n=!1):($(".expand-all").addClass("collapse-all"),$(".accordion-content").css("display","block"),$(".accordion-heading").addClass("open"),$(".accordion-heading button").attr("aria-expanded","true"),n=!0)})});$(document).ready(function(){window.onresize=adjustImageFluidResponse;adjustImageFluidResponse()});$(document).ready(function(){$(".ImageCarouselContainer.carousel").each(function(){function l(){t=t==0?r-1:t-1;u=u==0?r-1:u-1;i=i==0?r-1:i-1}function a(){t=t==r-1?0:t+1;u=u==r-1?0:u+1;i=i==r-1?0:i+1}function s(){n.removeClass("Image1 Image2 Image3");n.each(function(r){r!=t&&r!=i&&r!=u?n.eq(r).hide():(n.eq(r).show(),r==t?(n.eq(r).addClass("Image1"),h=n.eq(r).children("img")[0]):r==i?(n.eq(r).addClass("Image3"),c=n.eq(r).children("img")[0]):n.eq(r).addClass("Image2"))});r>i?e.addClass("active").removeAttr("aria-disabled"):e.removeClass("active").attr("aria-disabled",!0);t>-1?f.addClass("active").removeAttr("aria-disabled"):f.removeClass("active").attr("aria-disabled",!0)}var o=$(this),f=o.find(".previous"),e=o.find(".next"),n=o.find(".ImageCarousel"),r=n.length,t=0,u=1,i=2,h,c;s();f.on("click",function(n){n.preventDefault();$(this).hasClass("active")&&(l(),s())});e.on("click",function(n){n.preventDefault();$(this).hasClass("active")&&(a(),s())});window.addEventListener("click",function(n){return n.target==h?(f.click(),!1):n.target==c?(e.click(),!1):void 0});window.addEventListener("keydown",function(n){return n.key=="ArrowLeft"?(f.click(),!1):n.key=="ArrowRight"?(e.click(),!1):void 0});o.find("button").keyup(function(n){n.key==="Enter"&&(n.preventDefault(),$(this).click())})})});$(document).ready(function(){function n(){return $("#ZipCode").val(""),$("#StartDate").datepicker("setDate",new Date),$("#EndDate").datepicker("setDate",t(new Date,6)),$("#salesEventSearch input[name='EventType']").prop("checked",!1),$("#salesEventSearch input[name='EventType']:first").prop("checked",!0),$("#salesEventSearch input[name='StartTime']").prop("checked",!1),$("#salesEventSearch input[name='StartTime']:first").prop("checked",!0),!1}function t(n,t){return n.setMonth(n.getMonth()+t),n}function i(){return{ZipCode:$("#salesEventSearch input[name='ZipCode']").val(),StartDate:$("#salesEventSearch input[name='StartDate']").val(),EndDate:$("#salesEventSearch input[name='EndDate']").val(),EventType:$("#salesEventSearch input[name='EventType']:checked").val(),StartTime:$("#salesEventSearch input[name='StartTime']:checked").val(),SalesEventSearchItemId:$("#salesEventSearch input[name='SalesEventSearchItemId']").val()}}$("#StartDate").datepicker({minDate:-0,maxDate:"+6M"});$("#EndDate").datepicker({minDate:-0,maxDate:"+6M"});$("#StartDate").prop("readonly",!0);$("#EndDate").prop("readonly",!0);n();$("#salesEventSearchReset").on("click",n);$("#salesEventSearchSubmit").on("click",function(){$("#SalesEventSearchForm").valid()&&$.ajax({dataType:"HTML",type:"POST",url:"/api/sitecore/SalesEventSearch/Search",data:i(),success:function(n){$("#SalesEventSearchResultsMessage").hide();$("#salesEventSearchResults").html(n);$("#salesEventSearchResults").show();attachMedAdvModalEvents(document);initializediCalFxn();$(".salesEventSearchResultsContainer.showMap").length>0&&initMap()},error:function(n,t,i){n.status===404&&($("#SalesEventSearchResultsMessage")[0].innerHTML=i,$("#SalesEventSearchResultsMessage").show(),$("#salesEventSearchResults").hide())}})})});$(window).on("resize",function(){$("#map").css("top",$(".MedMutualMainHeader.upper").outerHeight()+$(".MedMutualMainHeader.lower").outerHeight())});$(document).ready(function(){$("#acknowledgement").change(function(){$(this).is(":checked")?$("#disclaimerSubmit").removeAttr("disabled"):$("#disclaimerSubmit").attr("disabled",!0)})});$(document).ready(function(){$(".bio-tiles-container").each(function(){function u(n){i.removeClass("last");i.each(function(){var u=i.length,t=i.index($(this))+1,r=t/n;(Math.floor(r)==r||t==u)&&$(this).addClass("last")})}function r(n){return n.hasClass("last")?n:n.nextAll(".last:first")}function e(t){n.insertAfter(r(t));var i=t.find(".bio").html();t.addClass("active");t.find("button").attr("aria-expanded","true");n.html(i).addClass("active").slideToggle(250)}function o(){let i=t.find(".bio-tile-item.active");i.removeClass("active");i.find("button").attr("aria-expanded","false");n.slideToggle(250);s(n)}function s(n){setTimeout(function(){n.removeClass("active")},250)}function h(n){setTimeout(function(){e(n)},250)}function f(){window.matchMedia("(max-width: 576px)").matches?(u(1),n.insertAfter(r(t.find(".bio-tile-item.active")))):window.matchMedia("(min-width: 576px) and (max-width: 768px)").matches?(u(2),n.insertAfter(r(t.find(".bio-tile-item.active")))):window.matchMedia("(min-width: 768px) and (max-width: 992px)").matches?(u(3),n.insertAfter(r(t.find(".bio-tile-item.active")))):(u(4),n.insertAfter(r(t.find(".bio-tile-item.active"))))}var t=$(this),i=t.find(".bio-tile-item"),n=t.find(".bio-content");i.on("click",function(){$(this).hasClass("active")?o():n.hasClass("active")?(o(),h($(this))):e($(this))});f();matchMedia("(max-width: 992px)").addEventListener("change",function(){f()});matchMedia("(max-width: 768px)").addEventListener("change",function(){f()});matchMedia("(max-width: 576px)").addEventListener("change",function(){f()});t.find("button").keyup(function(n){n.key==="Enter"&&(n.preventDefault(),$(this).click())})})});$(document).ready(function(){function n(){return{AgentType:$("#findAnAgentSearch input[name='AgentType']:checked").val(),ZipCode:$("#findAnAgentSearch input[name='ZipCode']").val(),FindAnAgentItemId:$("#findAnAgentSearch input[name='FindAnAgentItemId']").val()}}function t(n){return{AgentType:$("#findAnAgentSearch input[name='AgentType']:checked").val(),ZipCode:$("#findAnAgentSearch input[name='ZipCode']").val(),FindAnAgentItemId:$("#findAnAgentSearch input[name='FindAnAgentItemId']").val(),SortOption:n}}$("#findAnAgentSearchSubmit").on("click",function(){$("#FindAnAgentForm").valid()&&(modal.open({content:"Loading... Please wait",height:"120",width:"300"}),$.ajax({dataType:"HTML",type:"POST",url:"/api/sitecore/FindAnAgent/Search",data:n(),success:function(n){modal.close();$("#FindAnAgentResultsMessage").hide();$("#findAnAgentSearchResults").html(n);$("#findAnAgentSearchResults").show()},error:function(n,t,i){modal.close();n.status===404&&($("#FindAnAgentResultsMessage")[0].innerHTML=i,$("#FindAnAgentResultsMessage").show(),$("#findAnAgentSearchResults").hide())}}))});$("#sortByOption").on("change",function(){var n=$(this).val();$.ajax({dataType:"HTML",type:"POST",url:"/api/sitecore/FindAnAgent/Search",data:t(n),success:function(t){$("#FindAnAgentResultsMessage").hide();$("#findAnAgentSearchResults").html(t);$("#findAnAgentSearchResults").show();$("#sortByOption").val(n)},error:function(n,t,i){n.status===404&&($("#FindAnAgentResultsMessage")[0].innerHTML=i,$("#FindAnAgentResultsMessage").show(),$("#findAnAgentSearchResults").hide())}})})})