function showAccordionsAndHeaders(){$("#GuestAppointmentHeader, #GuestClassHeader").show();$("#GuestContentContainer").removeClass("hiddenAccordions")}function hideAccordionsAndHeaders(){$("#GuestAppointmentHeader, #GuestClassHeader").hide();$("#GuestContentContainer").addClass("hiddenAccordions")}function LogOn_init(){var t,n;if(navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1)if(t=document.cookie,top.location!=document.location){if(!t)try{parent.document.getElementById("nothing")}catch(i){href=document.location.href;href=href.indexOf("?")==-1?href+"?":href+"&";top.location.href=href+"reref="+encodeURIComponent(document.referrer)}}else ts=(new Date).getTime(),document.cookie="ts="+ts,rerefidx=document.location.href.indexOf("reref="),rerefidx!=-1&&(href=decodeURIComponent(document.location.href.substr(rerefidx+6)),window.location.replace(href));setInterval(function(){var t=window.innerHeight,i=165,r=365,u=470,n;LogOn_Model_GuestBookings&&LogOn_Model_GuestClassBookings||(i-=50,r-=60,u-=50);n="";n+=".mobile #GuestAppointmentInline.openedAccordion, .mobile #GuestClassInline.openedAccordion {";n+="max-height: "+(t-i)+"px;";n+="height: "+(t-i)+"px;";n+="}";n+=".mobile .openedLogin #GuestAppointmentInline.openedAccordion, .mobile .openedLogin #GuestClassInline.openedAccordion {";n+="max-height: "+(t-r)+"px;";n+="height: "+(t-r)+"px;";n+="}";n+=".mobile.guestFailedLogin .openedLogin #GuestAppointmentInline.openedAccordion, .mobile.guestFailedLogin .openedLogin #GuestClassInline.openedAccordion {";n+="max-height: "+(t-u)+"px;";n+="height: "+(t-u)+"px;";n+="}";$("#replaceWithGuestAccordionCSS").html(n)},1e3);$("#GuestClassHeader").click(function(){$("#GuestAppointmentInline").removeClass("openedAccordion");$("#GuestClassInline").addClass("openedAccordion");hideLoginContainer()});$("#GuestAppointmentHeader").click(function(){$("#GuestClassInline").removeClass("openedAccordion");$("#GuestAppointmentInline").addClass("openedAccordion");hideLoginContainer()});$("#HomeButton").hide().after($("#GuestLoginActivateButton").show());$("#GuestLoginContainer").find("#GuestRegisterBenefitsSummary").after($("#GuestRegister").addClass("RemovedFromBottom"));$("#ReturnToStart, #GuestAccountReturnToStart").click(function(){resetToFirstPage()});$("#GuestLoginContainer").find(".validation-summary-errors").length>0&&$("body").addClass("guestFailedLogin");LogOn_Model_DisplayLoginContainerOnStart&&showLoginContainer();LogOn_Model_IsMobile?$("#GuestAppointmentInline .AccordionSection table, #GuestClassInline #NextButton, #GuestClassInline .RadioTableContainer, #GuestClassInline #SelectClassTypeHolder button").click(function(){hideLoginContainer()}):($("#LoginAndNameDisplay").before($("#GuestLoginContainer")),$("#ReturnToStart").hide(),showLoginContainer(),FindInNewGuestContext(null,".ContentPage").not("#Content1").addClass("EnableJScrollPane"));LogOn_Model_GuestBookings||LogOn_Model_GuestClassBookings||($("#BackToMyAppointments, #BackToLogin").remove(),LogOn_Model_IsMobile||$("#GuestContentContainer").find("#GuestLoginContainer").remove());n=0;$(".NewAppBtn").parent().click(function(){if($("body").hasClass("embedded_mobile"))n=setInterval(function(){typeof FindInNewGuestContext==typeof Function?FindInNewGuestContext(null,"#Content2").is(":visible")?(clearInterval(n),hideAccordionsAndHeaders()):typeof FindInNewGuestClassContext==typeof Function&&FindInNewGuestClassContext(null,"#AccordionClassResults").is(":visible")&&(clearInterval(n),hideAccordionsAndHeaders()):(clearInterval(n),hideAccordionsAndHeaders())},500);else{var t=$(this).find(".NewAppBtn");(!t.is("[disabled]")||t.hasClass("AjaxLoading"))&&hideAccordionsAndHeaders()}});$('input[value="Back"], #AccordionClassType').click(function(n){if(!n.isTrigger){var i=$(this).closest("#GuestClassInline, #GuestAppointmentInline"),t=i.find(".NewAppBtn");t.hasClass("g-m-next-1")||t.hasClass("g-m-next-2")||t.hasClass("g-m-c-next-1")||t.hasClass("g-next-1")||t.hasClass("g-next-2")||t.hasClass("g-c-next-1")?showAccordionsAndHeaders():hideAccordionsAndHeaders()}});setInterval(function(){var t=0,i=0,n;LogOn_Model_IsMobile?(t=$("#GuestAppointmentInline").scrollTop(),i=$("#GuestClassInline").scrollTop()):(n=$("#GuestAppointmentInline").data("jsp"),n&&(t=n.getContentPositionY()),n=$("#GuestClassInline").data("jsp"),n&&(i=n.getContentPositionY()));t<20?$("#GuestAppointmentHeader").addClass("fixed-section-toohigh"):$("#GuestAppointmentHeader").removeClass("fixed-section-toohigh");i<20?$("#GuestClassHeader").addClass("fixed-section-toohigh"):$("#GuestClassHeader").removeClass("fixed-section-toohigh")},1e3);showAccordionsAndHeaders();typeof UpdateHeading==typeof Function&&UpdateHeading(0);LogOn_Model_IsMobile&&(LogOn_Model_GuestClassBookings?$("#GuestClassInline").append($("#PBGFooter")):LogOn_Model_GuestBookings&&$("#GuestAppointmentInline").append($("#PBGFooter")))}var LogOn_Model_IsMobile,LogOn_Model_GuestBookings,LogOn_Model_GuestClassBookings,LogOn_Model_DisplayLoginContainerOnStart,LogOn_URL_