function redirectSafari(){if(!(window.location.pathname.indexOf("Safari")>-1)){var i=window.navigator.platform,n=window.navigator.userAgent,t=!1,r=!1;/MSIE/.test(n)?t=!1:/Chrome/.test(n)?t=!1:/Opera/.test(n)?t=!1:/Android/.test(n)?t=!1:/Firefox/.test(n)?t=!1:/Safari/.test(n)&&(t=!0);(i==="Win32"||i==="Win64"||/Windows/.test(n))&&(r=!0);t===!0&&r===!0&&window.location!=="/Home/Safari"&&(window.location.href="/Home/Safari")}}function sentenceCase(n){var t="";return n!==undefined&&n!==null&&n!==""&&(t=n.replace(/\w\S*/g,function(n){return n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()})),t}function countNews(){g_numarticles===5?$(".news-container").addClass("fiveart"):g_numarticles===4?$(".news-container").addClass("fourart"):g_numarticles===3?$(".news-container").addClass("threeart"):g_numarticles===2?$(".news-container").addClass("twoart"):g_numarticles===1&&$(".news-container").addClass("oneart")}function countCamps(){g_numcamps===3||g_numcamps===6||g_numcamps===9?$(".camptemplate").addClass("threeevents"):g_numcamps===2?$(".camptemplate").addClass("twoevents"):(g_numcamps===4||g_numcamps===5||g_numcamps===7||g_numcamps===8||g_numcamps===10||g_numcamps===11||g_numcamps===12)&&$(".camptemplate").addClass("fourevents")}function countEvents(){g_numevents===3||g_numevents===6||g_numevents===9?$(".camptemplate").addClass("threeevents"):g_numevents===2?$(".camptemplate").addClass("twoevents"):(g_numevents===4||g_numevents===5||g_numevents===7||g_numevents===8||g_numevents===10||g_numevents===11||g_numevents===12)&&$(".camptemplate").addClass("fourevents")}function countPartyPackages(){g_partypackages===5?$(".party-package2").addClass("fivepart"):g_partypackages===4&&$(".party-package2").addClass("fourpart")}function countClassCardPackages(){g_classcardpackages===5?$(".party-package2").addClass("fivepart"):g_classcardpackages===4&&$(".party-package2").addClass("fourpart")}function loadUrl(n){spinnerInit();window.location.href=n}function shrinkLogoMenu(){window.onscroll=function(){shrinkLogoMenuEx()}}function shrinkLogoMenuEx(){document.body.scrollTop>20||document.documentElement.scrollTop>20?($("#logo").css("width","50px"),$("#primary-menu").css("padding","0 0 0 70px")):($("#logo").css("width","100px"),$("#primary-menu").css("padding","0 0 0 140px"))}function setContainerPadding(){var n=$("#container");n.removeClass("container-promo");n.removeClass("container-image");n.removeClass("container-both");n.removeClass("container-none");$("#footer").removeClass("footer-promo");$("#partners").removeClass("partners-promo");$("#main-image").length===0&&$("#promo").length==0?(n.addClass("container-none"),$("#header").css("border-bottom","1px solid #fff")):$("#main-image").length>0&&$("#promo").length>0?(n.addClass("container-both"),$("#footer").addClass("footer-promo"),$("#partners").addClass("partners-promo"),$("#header").css("border-bottom","0px")):$("#main-image").length>0&&$("#promo").length==0?(n.addClass("container-image-only"),$("#header").css("border-bottom","1px solid #fff")):$("#main-image").length===0&&$("#promo").length>0?(n.addClass("container-promo-only"),$("#footer").addClass("footer-promo"),$("#partners").addClass("partners-promo"),$("#header").css("border-bottom","0px")):$("#promo").length===0?(n.addClass("container-promo"),$("#footer").addClass("footer-promo"),$("#partners").addClass("partners-promo"),$("#header").css("border-bottom","1px solid #fff")):$("#main-image").length===0&&(n.addClass("container-image"),$("#header").css("border-bottom","1px solid #fff"))}function setPartnersPadding(){$("#partners").removeClass("partners-call-to");$(".call-to-action").length>0?$("#partners").addClass("partners-call-to"):$("#partners").removeClass("partners-call-to")}function openAlertDialog(n,t){n===""&&(n="ALERT");$("#alertDialog").kendoWindow({width:"95%",height:"95%",maxWidth:"620px",maxHeight:"600px",modal:"true",title:n,actions:["Close"]});$("#alertmessage").html(t);$("#alertDialog").data("kendoWindow").center();$("#alertDialog").data("kendoWindow").open()}function closeAlertDialog(){$("#alertDialog").data("kendoWindow").close()}function openSuccessDialog(n,t){n===""&&(n="SUCCESS");$("#successDialog").kendoWindow({width:"93%",height:"93%",modal:"true",maxWidth:"620px",maxHeight:"480px",title:n,actions:["Close"]});$("#successmessage").html(t);$("#successDialog").data("kendoWindow").center();$("#successDialog").data("kendoWindow").open()}function closeSuccessDialog(){$("#successDialog").data("kendoWindow").close()}function openConfirmDialog(n,t){g_confirm=!1;$("#confirmDialog").kendoWindow({width:"93%",height:"93%",maxWidth:"620px",maxHeight:"480px",modal:"true",title:n,actions:["Close"]});$("#confirmmessage").html(t);$("#confirmDialog").data("kendoWindow").center();$("#confirmDialog").data("kendoWindow").open()}function closeConfirmDialog(n){g_confirm=n;$("#confirmDialog").data("kendoWindow").close();n===!0&&confirmOverride()}function contactUs(){loadUrl(g_contactGym)}function validateEmail(n){return/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(n)}function validateTimes(n,t){var f=!0,i=n.split(":"),u=parseInt(i[0]),e,o,r,s,h;return i=i[1].split(" "),e=parseInt(i[0]),o=i[1],o=="PM"&&u!=12&&(u+=12),i=t.split(":"),r=parseInt(i[0]),i=i[1].split(" "),s=parseInt(i[0]),h=i[1],h==="PM"&&r!==12&&(r+=12),(u>r||u==r&&e>=s)&&(f=!1),f}function agreeTermsLayout(){$("#agreeTermsLayout").kendoWindow({width:"660px",height:"600px",modal:"true",title:gr_stayintheloopandgetdealstoo,actions:["Close"]});$("#agreeTermsLayout").data("kendoWindow").open();$("#agreeTermsLayout").data("kendoWindow").center()}function closeAgreeTerms(){$("#agreeTermsLayout").data("kendoWindow").close()}function openPopup(n,t){$("#"+n).kendoWindow({title:t,width:"95%",height:"95%",maxWidth:"620px",maxHeight:"620px",modal:"true",actions:["Close"]});$("#"+n).data("kendoWindow").open();$("#"+n).data("kendoWindow").center()}function closePopup(n){$("#"+n).data("kendoWindow").close()}function selectSchedule(){loadUrl(g_homeurl+"/schedules")}function scrollToInfo(){$("#infoscroll").click(function(){$("html, body").animate({scrollTop:$("#info").offset().top-100},700)})}function animated(){$(".animated").each(function(){var n=$(this);n.css("opacity","0");n.waypoint(function(){var t=n.data("animation");n.addClass(t)},{offset:"80%"})})}function clearEmail(){var n=$("#EmailShared").val();n===gr_enteryouremail&&($("#EmailShared").val(""),$("#EmailShared").css("color","#333"))}function emailCollect(){var n=$("#EmailShared").val(),t=g_emailCollectionGym+"?emailoerptptptoee="+n;$.ajax({type:"GET",dataType:"html",url:t}).success(function(n){$("#EmailShared").val(gr_enteryouremail);$("#EmailShared").css("color","#999");n.indexOf("already subscribed")>0?openAlertDialog(gr_subscribetonewsandupdates,n):openSuccessDialog(gr_subscribedtonewsandupdates,n)})}function mainVideo(){$(".main-video").click(function(n){n.preventDefault();$("#main-video-container").css("display","flex");$(".video").html("<iframe src='https://www.youtube.com/embed/"+g_videonumber+"?mode=opaque&rel=0&autoplay=1&autohide=1&showinfo=0&wmode=transparent' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>")});$(".main-video-vimeo").click(function(n){n.preventDefault();$("#main-video-container").css("display","flex");$(".video").html("<iframe src='https://player.vimeo.com/video/"+g_videonumber+"' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>")});$("#closelightbox").click(function(n){n.preventDefault();$("#main-video-container").css("display","none");$(".video").html("")})}function closePromo(){$("#closepromo").click(function(n){n.preventDefault();$("#promo").css("display","none")})}function showFinePrint(){$(".show-package-ul").click(function(){var t=$(this).parent(".party-package"),n=t.data("id");$("#party-package-"+n).children(".party-package-ul").show("slow");$("#party-package-"+n).children(".birthdaycaption").show("slow");$("#show-package-ul-"+n).hide();$("#hide-package-ul-"+n).show()});$(".hide-package-ul").click(function(){var t=$(this).parent(".party-package"),n=t.data("id");$("#party-package-"+n).children(".party-package-ul.hide").hide("slow");$("#party-package-"+n).children(".birthdaycaption.hide").hide("slow");$("#show-package-ul-"+n).show();$("#hide-package-ul-"+n).hide()})}function closeBulletin(){var n=g_closeBulletinGym;$.ajax({type:"GET",dataType:"html",url:n})}function showFormField(n){if($(n).hasClass("entryformnolabel")!==!0){var t=n.prop("id"),i=n.val(),r=n.parent().hasClass("k-dropdown")||n.parent().hasClass("k-dropdown-wrap");r===!0&&i.indexOf("*")===0&&(i="");i===""?($("label[for='"+t+"']").addClass("labelhide"),$("label[for='"+t+"']").removeClass("labelshow"),n.css("padding-top","0px"),n.prev().find(".k-input").css("color","#aaa"),n.prev().find(".k-select").css("color","#aaa")):($("label[for='"+t+"']").removeClass("labelhide"),$("label[for='"+t+"']").addClass("labelshow"),n.css("padding-top","10px"),r===!0&&(n.parent().css("padding-top","0px"),n.siblings().find(".k-dropdown-wrap").find(".k-input").css("margin-top","4px")),n.prev().find(".k-input").css("color","#333"),n.prev().find(".k-select").css("color","#333"));g_initializeForms===!1&&(n.css("border-color","#ddd"),n.parent("span").css("border-color","#ddd"),r===!0&&n.prev("span").css("border-color","#ddd"))}}function initializeForms(){g_initializeForms=!0;$(".entryformdetails input").each(function(){showFormField($(this))});g_initializeForms=!1}function onKeyupForm(n){g_initializeForms=!1;showFormField($(n))}function onChangeForm(n){g_initializeForms=!1;showFormField($(n))}function clockIn(n){g_clockinmode=n;$("#clockInDialog").kendoWindow({width:"380px",height:"160px",modal:"true",title:"STAFF FUNCTIONS",actions:["Close"]});$("#StaffCode").val("");n===0?($("#ClockInOutButton").css("display",""),$("#ClockInOutReviewButton").css("display","none"),$("#StaffInfoButton").css("display","none")):n===1?($("#ClockInOutButton").css("display","none"),$("#ClockInOutReviewButton").css("display",""),$("#StaffInfoButton").css("display","none")):n===2&&($("#ClockInOutButton").css("display","none"),$("#ClockInOutReviewButton").css("display","none"),$("#StaffInfoButton").css("display",""));$("#clockInDialog").data("kendoWindow").center();$("#clockInDialog").data("kendoWindow").open()}function clockInCode(){var n=$("#StaffCode").val(),t=g_clockInOutTimesheet+"/?staffCode="+n+"&mode="+g_clockinmode;$.ajax({type:"GET",dataType:"html",url:t}).success(function(n){n==="A"?($("#clockingrid").data("kendoGrid").dataSource.read(),$("#clockingrid").data("kendoGrid").refresh(),closeClockInDialog()):n==="B"?(closeClockInDialog(),window.location.href=g_indexTimesheet):n!==""?(closeClockInDialog(),window.location.href=g_editStaffStaff+"?staffId="+n):$("#invalidStaffCode").css("display","")})}function closeClockInDialog(){$("#clockInDialog").data("kendoWindow").close()}function videoPage(){var t,n=$(window).width(),i;n>1292?t=1:n<=1292&&n>962?t=2:n<=962&&n>550?t=3:n<=550&&(t=4);i=g_homeurl+"/ondemand?currentResolution="+t;loadUrl(i)}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function eraseCookie(n){createCookie(n,"",-1)}function getUrlVar(n){var t=new RegExp(n+"=([^&]*)","i").exec(window.location.search);return t&&unescape(t[1])||""}function lastVisitedGymIndex(){if(getUrlVar("home")!="1"){var n;n=readCookie("homeurl");n!=null&&(window.location.href="/"+n)}}function getScroll(){if(window.pageYOffset!=undefined)return pageYOffset;var r,n=document,t=n.documentElement,i=n.body;return r=t.scrollLeft||i.scrollLeft||0,t.scrollTop||i.scrollTop||0}function spinnerInit(){var n=document.getElementById("spinnerContainer");$(n).css("top",getScroll()+"px");n.style.display="block";new Spinner({lines:13,length:7,width:4,radius:10,corners:1,rotate:0,color:"#ffffff",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"50%",left:"50%",visibility:!0}).spin(n)}function spinnerStop(){$("#spinnerContainer").hide().empty()}var g_confirm,g_initializeForms,g_clockinmode;!function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.6";n.fn.cycle=function(i){var r;return 0!==this.length||n.isReady?this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}}):(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this)};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var i,t=this.opts(),r=t.container;t.API.calcFirstSlide();"static"==t.container.css("position")&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=void 0)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),0===t.slides.filter(":animated").length&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var u,r=this.opts(),e=r.slideCount,f=!1;"string"==n.type(t)&&(t=n.trim(t));n(t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);f=r._preInitialized&&2>e&&r.slideCount>=1;f&&(r._initialized?r.timeout&&(u=r.slides.length,r.nextSlide=r.reverse?u-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var t,n=this.opts();t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||0>t)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var t,n=this.opts();n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var u,r=t;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var o,f,e,r,u,i=this.opts();return i.slideCount<2?void(i.timeoutId=0):(!n||i.busy&&!i.manualTrump||(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),void(i.busy||(0!==i.timeoutId||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&void 0!==r.manualSpeed&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){i.busy=!1;i.container.data("cycle.opts")&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=void 0!==i?i:t.timeout;return 0===r.nextSlide&&0==--r.loop?(r.API.log("terminating; loop=0"),r.timeout=0,u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]),void(r.nextSlide=r.currSlide)):void 0!==r.continueAuto&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)?(r.API.log("terminating automatic transitions"),r.timeout=0,void(r.timeoutId&&clearTimeout(r.timeoutId))):void(u&&(r._lastQueue=n.now(),void 0===i&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)},u))))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var u,o,f=this.opts(),r=i.data()||{};for(var e in r)r.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(u=r[e],o=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),f.API.log("["+(f.slideCount-1)+"]",o+":",u,"("+typeof u+")"),r[o]=u);r=n.extend({},n.fn.cycle.defaults,f,r);r.slideNum=f.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return void 0===t&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&(r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0)||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),0===i.updateView&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),0!==i.updateView&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return"string"==typeof i?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;o>f;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if("container"==r)o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if("calc"===r||"number"==n.type(r)&&r>=0){if(e="calc"===r?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function h(){t(u,f)}var e,o=f.autoHeight,s=n.type(o),c=null;("string"===s||"number"===s)&&(f.container.on("cycle-slide-added cycle-slide-removed",t),f.container.on("cycle-destroyed",r),"container"==o?f.container.on("cycle-before",i):"string"===s&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e),"number"!==s&&(f._autoHeightOnResize=function(){clearTimeout(c);c=setTimeout(h,50)},n(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(h,30))})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on("cycle-update-view",function(t,i,r,u){"caption"===i.captionModule&&n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return"number"==n.type(i)?this.cycle("goto",i):"string"==n.type(i)?this.each(function(){var o;return r=i,u=n(this).data("cycle.opts"),void 0===u?void t.log('slideshow must be initialized before sending commands; "'+r+'" ignored'):(r="goto"==r?"jump":r,f=u.API[r],n.isFunction(f)?(o=n.makeArray(e),o.shift(),f.apply(u.API,o)):void t.log("unknown command: ",r))}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){var r=n(this);r.removeData();r.removeClass(t.slideClass);i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||0>r||r>=i.slides.length)return void i.API.log("goto: invalid slide index: "+r);if(r==i.currSlide)return void i.API.log("goto: skipping, already on slide",r);i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var r,u,i=this.opts(),e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;return t._hashFence?void(t._hashFence=!1):(r=window.location.hash.substring(1),void t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}}))}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;"wait"==i.loader?(e.push(t),0===f&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if("string"==n.type(t))t=n.trim(t);else if("array"===n.type(t))for(o=0;o<t.length;o++)t[o]=n(t[o])[0];t=n(t);f=t.length;f&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){0==--c&&(--f,s(o))}var c=0,o=n(this),h=o.is("img")?o:o.find("img");return o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),h.length?(c=h.length,void h.each(function(){this.complete?l():n(this).load(function(){l()}).on("error",function(){0==--c&&(i.API.log("slide skipped; img not loaded:",this.src),0==--f&&"wait"==i.loader&&r.apply(i.API,[e,u]))})})):(--f,void e.push(o))}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){if(t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent("next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var r,f,u=i.API,e=u.next,s=u.prev,o=u.prepareTx,h=n.type(i.progressive);if("array"==h)r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if("string"==h){if(f=n(i.progressive),r=n.trim(f.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){return void u.log("error parsing progressive slides",c)}else r=r.split(new RegExp(f.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}o&&(u.prepareTx=function(n,t){var f,u;return n||0===r.length?void o.apply(i.API,[n,t]):void(t&&i.currSlide==i.slideCount-1?(u=r[0],r=r.slice(1),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(u)):t||0!==i.currSlide?o.apply(i.API,[n,t]):(f=r.length-1,u=r[f],r=r.slice(0,f),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)}),i.API.add(u,!0)))});e&&(u.next=function(){var n=this.opts(),t;r.length&&n.currSlide==n.slideCount-1?(t=r[0],r=r.slice(1),n.container.one("cycle-slide-added",function(n,t){e.apply(t.API);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(t)):e.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;r.length&&0===n.currSlide?(t=r.length-1,i=r[t],r=r.slice(0,t),n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(i,!0)):s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e]){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(void 0!==u&&null!==u&&u!=i)return u}return i})}})}(jQuery);!function(){"use strict";function n(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i;this.options=n.Adapter.extend({},n.defaults,r);this.element=this.options.element;this.adapter=new n.Adapter(this.element);this.callback=r.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=n.Context.findOrCreateByElement(this.options.context);n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]);this.group.add(this);this.context.add(this);t[this.key]=this;i+=1}var i=0,t={};n.prototype.queueTrigger=function(n){this.group.queueTrigger(this,n)};n.prototype.trigger=function(n){this.enabled&&this.callback&&this.callback.apply(this,n)};n.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete t[this.key]};n.prototype.disable=function(){return this.enabled=!1,this};n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};n.prototype.next=function(){return this.group.next(this)};n.prototype.previous=function(){return this.group.previous(this)};n.invokeAll=function(n){var r=[],u,i,f;for(u in t)r.push(t[u]);for(i=0,f=r.length;f>i;i++)r[i][n]()};n.destroyAll=function(){n.invokeAll("destroy")};n.disableAll=function(){n.invokeAll("disable")};n.enableAll=function(){n.Context.refreshAll();for(var i in t)t[i].enabled=!0;return this};n.refreshAll=function(){n.Context.refreshAll()};n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};n.viewportWidth=function(){return document.documentElement.clientWidth};n.adapters=[];n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};window.Waypoint=n}(),function(){"use strict";function f(n){window.setTimeout(n,1e3/60)}function n(u){this.element=u;this.Adapter=t.Adapter;this.adapter=new this.Adapter(u);this.key="waypoint-context-"+r;this.didScroll=!1;this.didResize=!1;this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()};this.waypoints={vertical:{},horizontal:{}};u.waypointContextKey=this.key;i[u.waypointContextKey]=this;r+=1;t.windowContext||(t.windowContext=!0,t.windowContext=new n(window));this.createThrottledScrollHandler();this.createThrottledResizeHandler()}var r=0,i={},t=window.Waypoint,u=window.onload;n.prototype.add=function(n){var t=n.options.horizontal?"horizontal":"vertical";this.waypoints[t][n.key]=n;this.refresh()};n.prototype.checkEmpty=function(){var n=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),r=this.element==this.element.window;n&&t&&!r&&(this.adapter.off(".waypoints"),delete i[this.key])};n.prototype.createThrottledResizeHandler=function(){function i(){n.handleResize();n.didResize=!1}var n=this;this.adapter.on("resize.waypoints",function(){n.didResize||(n.didResize=!0,t.requestAnimationFrame(i))})};n.prototype.createThrottledScrollHandler=function(){function i(){n.handleScroll();n.didScroll=!1}var n=this;this.adapter.on("scroll.waypoints",function(){(!n.didScroll||t.isTouch)&&(n.didScroll=!0,t.requestAnimationFrame(i))})};n.prototype.handleResize=function(){t.Context.refreshAll()};n.prototype.handleScroll=function(){var u={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},r,f,n,s;for(r in i){var t=i[r],h=t.newScroll>t.oldScroll,c=h?t.forward:t.backward;for(f in this.waypoints[r])if(n=this.waypoints[r][f],null!==n.triggerPoint){var e=t.oldScroll<n.triggerPoint,o=t.newScroll>=n.triggerPoint,l=e&&o,a=!e&&!o;(l||a)&&(n.queueTrigger(c),u[n.group.id]=n.group)}}for(s in u)u[s].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}};n.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()};n.prototype.remove=function(n){delete this.waypoints[n.axis][n.key];this.checkEmpty()};n.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()};n.prototype.destroy=function(){var t=[],i,r,n,u;for(i in this.waypoints)for(r in this.waypoints[i])t.push(this.waypoints[i][r]);for(n=0,u=t.length;u>n;n++)t[n].destroy()};n.prototype.refresh=function(){var o,u=this.element==this.element.window,l=u?void 0:this.adapter.offset(),f={},e,i,a;this.handleScroll();o={horizontal:{contextOffset:u?0:l.left,contextScroll:u?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:u?0:l.top,contextScroll:u?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(e in o){i=o[e];for(a in this.waypoints[e]){var v,s,h,y,p,n=this.waypoints[e][a],r=n.options.offset,w=n.triggerPoint,b=0,c=null==w;n.element!==n.element.window&&(b=n.adapter.offset()[i.offsetProp]);"function"==typeof r?r=r.apply(n):"string"==typeof r&&(r=parseFloat(r),n.options.offset.indexOf("%")>-1&&(r=Math.ceil(i.contextDimension*r/100)));v=i.contextScroll-i.contextOffset;n.triggerPoint=Math.floor(b+v-r);s=w<i.oldScroll;h=n.triggerPoint>=i.oldScroll;y=s&&h;p=!s&&!h;!c&&y?(n.queueTrigger(i.backward),f[n.group.id]=n.group):!c&&p?(n.queueTrigger(i.forward),f[n.group.id]=n.group):c&&i.oldScroll>=n.triggerPoint&&(n.queueTrigger(i.forward),f[n.group.id]=n.group)}}return t.requestAnimationFrame(function(){for(var n in f)f[n].flushTriggers()}),this};n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)};n.refreshAll=function(){for(var n in i)i[n].refresh()};n.findByElement=function(n){return i[n.waypointContextKey]};window.onload=function(){u&&u();n.refreshAll()};t.requestAnimationFrame=function(n){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||f;t.call(window,n)};t.Context=n}(),function(){"use strict";function i(n,t){return n.triggerPoint-t.triggerPoint}function u(n,t){return t.triggerPoint-n.triggerPoint}function n(n){this.name=n.name;this.axis=n.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},t=window.Waypoint;n.prototype.add=function(n){this.waypoints.push(n)};n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};n.prototype.flushTriggers=function(){var n,t,e,r,o,f;for(n in this.triggerQueues)for(t=this.triggerQueues[n],e="up"===n||"left"===n,t.sort(e?u:i),r=0,o=t.length;o>r;r+=1)f=t[r],(f.options.continuous||r===t.length-1)&&f.trigger([n]);this.clearTriggerQueues()};n.prototype.next=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints),u=r===this.waypoints.length-1;return u?null:this.waypoints[r+1]};n.prototype.previous=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints);return r?this.waypoints[r-1]:null};n.prototype.queueTrigger=function(n,t){this.triggerQueues[t].push(n)};n.prototype.remove=function(n){var i=t.Adapter.inArray(n,this.waypoints);i>-1&&this.waypoints.splice(i,1)};n.prototype.first=function(){return this.waypoints[0]};n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)};t.Group=n}(),function(){"use strict";function n(n){this.$element=t(n)}var t=window.jQuery,i=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,i){n.prototype[i]=function(){var n=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,n)}});t.each(["extend","inArray","isEmptyObject"],function(i,r){n[r]=t[r]});i.adapters.push({name:"jquery",Adapter:n});i.Adapter=n}(),function(){"use strict";function n(n){return function(){var r=[],i=arguments[0];return n.isFunction(arguments[0])&&(i=n.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var u=n.extend({},i,{element:this});"string"==typeof u.context&&(u.context=n(this).closest(u.context)[0]);r.push(new t(u))}),r}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=n(window.jQuery));window.Zepto&&(window.Zepto.fn.waypoint=n(window.Zepto))}();var g_accountid=0,g_childid=0,g_enrollid=0,g_enrollamount=0,g_classid=0,g_paymentdialogsource="",g_saveaccountaction=0,g_heightbuffer=185,g_dirty=!1,g_birthdaycreated=!1,g_confirmsource="",g_notesource="",g_culture="",g_accountbirthdayid=0,g_accounttabindex=0,g_reachEdgeUrl="",g_safariBrowserUtils=!1;$(document).ready(function(){var n,t;kendo.culture(g_culture);kendo.culture().calendar.firstDay=1;kendo.ui.validator.rules.mvcdate=function(n){return!n.is("[data-val-date]")||n.val()===""||kendo.parseDate(n.val(),g_shortDatePattern)!==null};n=window.navigator.userAgent;/Safari/.test(n)&&(g_safariBrowserUtils=!0);g_safariBrowserUtils===!1&&window.performance.mark("mark_util1");setContainerPadding();g_safariBrowserUtils===!1&&window.performance.mark("mark_util2");setPartnersPadding();g_safariBrowserUtils===!1&&window.performance.mark("mark_util3");scrollToInfo();g_safariBrowserUtils===!1&&window.performance.mark("mark_util4");mainVideo();g_safariBrowserUtils===!1&&window.performance.mark("mark_util5");closePromo();g_safariBrowserUtils===!1&&window.performance.mark("mark_util6");showFinePrint();g_safariBrowserUtils===!1&&window.performance.mark("mark_util7");countNews();g_safariBrowserUtils===!1&&window.performance.mark("mark_util8");countCamps();g_safariBrowserUtils===!1&&window.performance.mark("mark_util9");countEvents();g_safariBrowserUtils===!1&&window.performance.mark("mark_util10");g_safariBrowserUtils===!1&&window.performance.mark("mark_util11");$(".entryform .k-textbox").not(".entryformnosentence").change(function(){var n=$(this).val();$(this).val(sentenceCase(n))});g_safariBrowserUtils===!1&&window.performance.mark("mark_util12");$(".entryformlowercase").change(function(){var n=$(this).val();$(this).val(n.toLowerCase())});$(".entryformuppercase").change(function(){var n=$(this).val();$(this).val(n.toUpperCase())});g_safariBrowserUtils===!1&&window.performance.mark("mark_util13");$(window).width()>980&&(shrinkLogoMenu(),animated(),t=$("body").kendoTooltip({filter:".tooltip, .actionicon, .actioniconlg",position:"top"}).data("kendoTooltip"));g_safariBrowserUtils===!1&&window.performance.mark("mark_util14");$(".spinnertarget,.spinnteritem").click(function(){spinnerInit()});g_safariBrowserUtils===!1&&window.performance.mark("mark_util15");$(".laydown-slider").cycle();$("#main-image-slider").css("display","")});$(document).ajaxError(function(n,t,i,r){spinnerStop();openAlertDialog(gr_applicationerror,gr_anapplicationerrorhasoccurred+r)});g_confirm=!1;g_initializeForms=!1;g_clockinmode=0;!function(n,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Spinner=t()}(this,function(){"use strict";function i(n,t){var i,r=document.createElement(n||"div");for(i in t)r[i]=t[i];return r}function t(n){for(var t=1,i=arguments.length;i>t;t++)n.appendChild(arguments[t]);return n}function a(n,t,i,r){var f=["opacity",t,~~(100*n),i,r].join("-"),e=.01+i/r*100,s=Math.max(1-(1-n)/t*(100-e),n),h=u.substring(0,u.indexOf("Animation")).toLowerCase(),c=h&&"-"+h+"-"||"";return l[f]||(o.insertRule("@"+c+"keyframes "+f+"{0%{opacity:"+s+"}"+e+"%{opacity:"+n+"}"+(e+.01)+"%{opacity:1}"+(e+t)%100+"%{opacity:"+n+"}100%{opacity:"+s+"}}",o.cssRules.length),l[f]=1),f}function e(n,t){var r,i,u=n.style;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<c.length;i++)if(r=c[i]+t,void 0!==u[r])return r;if(void 0!==u[t])return t}function n(n,t){for(var i in t)n.style[e(n,i)||i]=t[i];return n}function s(n){for(var r,i,t=1;t<arguments.length;t++){r=arguments[t];for(i in r)void 0===n[i]&&(n[i]=r[i])}return n}function h(n,t){return"string"==typeof n?n:n[t%n.length]}function r(n){this.opts=s(n||{},r.defaults,y)}function v(){function u(n,t){return i("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',t)}o.addRule(".spin-vml","behavior:url(#default#VML)");r.prototype.lines=function(i,r){function s(){return n(u("group",{coordsize:o+" "+o,coordorigin:-e+" "+-e}),{width:o,height:o})}function c(i,f,o){t(a,t(n(s(),{rotation:360/r.lines*i+"deg",left:~~f}),t(n(u("roundrect",{arcsize:r.corners}),{width:e,height:r.width,left:r.radius,top:-r.width>>1,filter:o}),u("fill",{color:h(r.color,i),opacity:r.opacity}),u("stroke",{opacity:0}))))}var f,e=r.length+r.width,o=2*e,l=2*-(r.width+r.length)+"px",a=n(s(),{position:"absolute",top:l,left:l});if(r.shadow)for(f=1;f<=r.lines;f++)c(f,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(f=1;f<=r.lines;f++)c(f);return t(i,a)};r.prototype.opacity=function(n,t,i,r){var u=n.firstChild;r=r.shadow&&r.lines||0;u&&t+r<u.childNodes.length&&(u=u.childNodes[t+r],u=u&&u.firstChild,u=u&&u.firstChild,u&&(u.opacity=i))}}var u,c=["webkit","Moz","ms","O"],l={},o=function(){var n=i("style",{type:"text/css"});return t(document.getElementsByTagName("head")[0],n),n.sheet||n.styleSheet}(),y={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"},f;return r.defaults={},s(r.prototype,{spin:function(t){this.stop();var f=this,r=f.opts,e=f.el=n(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex});if(r.radius+r.length+r.width,t&&(t.insertBefore(e,t.firstChild||null),n(e,{left:r.left,top:r.top})),e.setAttribute("role","progressbar"),f.lines(e,f.opts),!u){var s,h=0,l=(r.lines-1)*(1-r.direction)/2,c=r.fps,o=c/r.speed,a=(1-r.opacity)/(o*r.trail/100),v=o/r.lines;!function y(){h++;for(var n=0;n<r.lines;n++)s=Math.max(1-(h+(r.lines-n)*v)%o*a,r.opacity),f.opacity(e,n*r.direction+l,s,r);f.timeout=f.el&&setTimeout(y,~~(1e3/c))}()}return f},stop:function(){var n=this.el;return n&&(clearTimeout(this.timeout),n.parentNode&&n.parentNode.removeChild(n),this.el=void 0),this},lines:function(r,f){function s(t,r){return n(i(),{position:"absolute",width:f.length+f.width+"px",height:f.width+"px",background:t,boxShadow:r,transformOrigin:"left",transform:"rotate("+~~(360/f.lines*e+f.rotate)+"deg) translate("+f.radius+"px,0)",borderRadius:(f.corners*f.width>>1)+"px"})}for(var o,e=0,c=(f.lines-1)*(1-f.direction)/2;e<f.lines;e++)o=n(i(),{position:"absolute",top:1+~(f.width/2)+"px",transform:f.hwaccel?"translate3d(0,0,0)":"",opacity:f.opacity,animation:u&&a(f.opacity,f.trail,c+e*f.direction,f.lines)+" "+1/f.speed+"s linear infinite"}),f.shadow&&t(o,n(s("#000","0 0 4px #000"),{top:"2px"})),t(r,t(o,s(h(f.color,e),"0 0 1px rgba(0,0,0,.1)")));return r},opacity:function(n,t,i){t<n.childNodes.length&&(n.childNodes[t].style.opacity=i)}}),f=n(i("group"),{behavior:"url(#default#VML)"}),!e(f,"transform")&&f.adj?v():u=e(f,"animation"),r})