var mainSlider={sel:$(".slider-sl"),sliderOpts:{fade:!0,infinite:!0,autoplay:!0,autoplaySpeed:4e3,dots:!1,arrows:!0,appendArrows:$(".slider").find(".sl-inner-arrows"),prevArrow:"<button class='crsl-ctrl prev'><span></span></button>",nextArrow:"<button class='crsl-ctrl next'><span></span></button>"},fixHeight:function(){onResizeMethods((function(){$(".hero-area").height(cdnGeneralHelpers.getWindowHeight())}))},sliderInit:function(t){$(t).slick(this.sliderOpts)},init:function(t,n){var s=t.find(".sl-inner");$("body").hasClass("noHeader")||$("body").hasClass("media-template")||(this.sliderInit(s),s.find(".sl-img").on("lazyloaded",(function(){t.addClass("loaded")})))}},styleSecondLevel={secondLevelBase:function(){$(".secondLvlCss iframe").each((function(){var t=$(this).parent();-1!==$(this).attr("src").indexOf("youtu")&&t.addClass("embed-container")})),$(".content-area .content-container > .secondLvlCss:first p:first").addClass("featured-paragraph"),$("body").hasClass("sharedTemplates")&&$(".content-area .content-container .secondLvlCss p:first").addClass("featured-paragraph"),$(".secondLvlCss img").each((function(){var t=$(this);void 0!==$(this).parent().attr("id")&&-1===$(this).parent().attr("id").indexOf("gallery_")&&(t.hasClass("alignLeft")||t.hasClass("alignRight")||t.wrap("<div class='hasImage'></div>")),t.hasClass("alignLeft")&&t.parent().addClass("has-image alignLeft"),t.hasClass("alignRight")&&t.parent().addClass("has-image alignRight")})),$(".media-template .mtLoadMoreBtn").wrapInner("<span></span>"),$(".admissions-functionality-wrapper .adm-submit").on("click",(function(){setTimeout((function(){$(".adm-results-slide-out .secondLvlCss .downloadBtn").each((function(){$(this).wrapInner("<span></span>"),$(this).wrapInner("<span class='downloadBtn-inner'></span>")}))}),300)}))},init:function(){this.secondLevelBase()}},treemenu={openChild:function(t,n,s){t.hasClass("active")?(t.removeClass("active"),$(n).find(".tm-item").removeClass("checked anim"),n.slideUp(150)):(t.addClass("active"),n.slideDown(250,(function(){var t=0;n.find(".tm-item").each((function(){var n=$(this);setTimeout((function(){n.addClass("anim")}),t),t+=50}))})))},checkDropdown:function(t,n){t.find(n).length&&(t.addClass("with-dropdown"),t.find("> .tm-link-container").append('<div class="tm-open-level"><span></span></div>'),t.find("> .tm-link-container").addClass("tm-open-level-js"))},checkActive:function(){$(".tm-dropdown .current").parents(".tm-item").addClass("active"),$(".tm-dropdown .current").parents(".tm-dropdown").show(),$(".tm-dropdown .current").parents(".tm-dropdown").find(".tm-item").addClass("anim checked")},init:function(){var t=this;t.checkActive(),$(".tree-menu .tm-item").each((function(){var n=$(this);t.checkDropdown(n,".tm-dropdown")})),$(".tree-menu .tm-item").on("click",".tm-open-level-js",(function(n){return t.openChild($(this).parent(),$(this).parent().find(".tm-dropdown")),n.preventDefault(),n.stopPropagation(),!1}))}},blockquoteFader={opts:{dots:!0,fade:!0,infinite:!1,adaptiveHeight:!0,appendDots:$(".blockquote-fader .bf__dots"),arrows:!1,customPaging:function(t,n){return $("<button type='button' class='dots-button'><span class='active-dot'></span><span class='default-dot'></span></button>")}},init:function(){var t=$(".blockquote-fader .bf__inner");t.length&&t.slick(this.opts)}},staffItems={manageDescription:function(){$(".staff-card-sl").each((function(){$(this).find(".sc__bio").dotdotdot({height:80})}))},init:function(){this.manageDescription()}},accordion={init:function(){$(".accordion-link").on("click",(function(){var t=$(this);$(this).parent().hasClass("active")?$(this).parent().find(".accordion-dropdown .accd-inner").slideUp(150,(function(){t.parent().removeClass("active")})):($(this).parent().addClass("active"),$(this).parent().find(".accordion-dropdown .accd-inner").slideDown(200))}))}},storiesCarousel={opts:{adaptiveHeight:!0,autoSlidesToShow:!0,variableWidth:!0,prevArrow:"<button class='crsl-ctrl prev'><span></span></button>",nextArrow:"<button class='crsl-ctrl next'><span></span></button>",appendArrows:".stories-carousel .crsl-controller"},init:function(){var t=$(".stories-carousel").find(".media-container");t.length&&t.slick(this.opts)}},eventsCarousel={opts:{adaptiveHeight:!0,autoSlidesToShow:!0,variableWidth:!0,prevArrow:"<button class='crsl-ctrl prev'><span></span></button>",nextArrow:"<button class='crsl-ctrl next'><span></span></button>",appendArrows:".events-carousel .crsl-controller",infinite:!1},init:function(){var t=$(".events-carousel").find(".media-container");t.length&&t.slick(this.opts)}},staffCarousel={opts:{adaptiveHeight:!0,autoSlidesToShow:!0,variableWidth:!0,prevArrow:"<button class='crsl-ctrl prev'><span></span></button>",nextArrow:"<button class='crsl-ctrl next'><span></span></button>",appendArrows:".staff-carousel .crsl-controller",infinite:!1},init:function(){var t=$(".staff-carousel").find(".staff-container");t.length&&t.slick(this.opts)}},promosCarousel={opts:{adaptiveHeight:!0,autoSlidesToShow:!0,variableWidth:!0,prevArrow:"<button class='crsl-ctrl prev'><span></span></button>",nextArrow:"<button class='crsl-ctrl next'><span></span></button>",appendArrows:".sl-promos-carousel .crsl-controller",infinite:!1},init:function(){var t=$(".sl-promos-carousel").find(".promos-container");t.length&&(t.on("init",(function(n,s,a,e){t.find(".slick-slide").each((function(){var t=$(this).attr("data-slick-index");parseInt(t)%2>0&&$(this).find(".promo-item-sl").addClass("pushed")}))})),t.slick(this.opts))}},statsCarousel={opts:{adaptiveHeight:!0,autoSlidesToShow:!0,variableWidth:!0,prevArrow:"<button class='crsl-ctrl prev'><span></span></button>",nextArrow:"<button class='crsl-ctrl next'><span></span></button>",appendArrows:".stats-carousel .crsl-controller"},init:function(){var t=$(".stats-carousel").find(".stats-container");t.length&&(t.on("init",(function(n,s,a,e){t.find(".slick-slide").each((function(){var t=$(this).attr("data-slick-index");parseInt(t)%2>0&&$(this).find(".stats-item").addClass("pushed")}))})),t.slick(this.opts))}},generateStaff=function(){var t=$(".staff-grid"),n=$(".staff-carousel"),s=$("#PageStaffJson").length?JSON.parse($("#PageStaffJson").val()):[];return{init:function(){s.length>0&&(t.length>0||n.length>0)&&function(){var a=s.length;if(a>0){for(var e=0;e<a;e++)e<10&&t.find(".staff-grid-inner").append(sharedGenerateStaff(s[e])),n.length>0&&n.find(".staff-container").append(sharedGenerateStaff(s[e]));t.fadeIn(),n.fadeIn(),n.length>0&&staffCarousel.init()}else t.remove(),n.remove()}()}}}(); !function(e){var a="<div class='event-sidebar-item'><a href='{MEDIA_URL}' class='full-link'></a><div class='event-sidebar-item-inner'>{DATE}<span class='event-content'><div class='event-title'>{MEDIA_TITLE}</div><div class='event-time'>{TIME_RANGE}</div></span></div></div>",n="<div class='event-card'><div class='event-card-inner'><a href='{MEDIA_URL}' class='full-link'></a><div class='event-card-image'>{MEDIA_IMAGE}<div class='plus-icon'><span></span></div>{DATE}</div><div class='event-card-content'><div class='ecc-inner'><div class='ecc-title'>{MEDIA_TITLE}</div><div class='ecc-time'><span class='txt'>{TIME_RANGE}</span><span class='arrow'></span></div></div></div></div></div>";e.SecondLevelAsync=function(){},e.SecondLevelAsync.AddMediaItems=function(t,d,i,r,l){function sidebarEventsItemTemplate(e){return a.replace(/{DATE}/g,cdnMediaHelpers.eventDate(e,{fullFormatMultiDay:"<div class='calendar-date {HAS_MULTI_DAY}'><div class='calendar-date-inner'>{START_DATE}{END_DATE}</div></div>"})).replace(/{MEDIA_TITLE}/g,mediaCustomHelpers.getMediaTitle(e).title).replace(/{MEDIA_URL}/g,cdnMediaHelpers.getFeedUrl(e)).replace(/{TIME_RANGE}/g,cdnMediaHelpers.getTimeRange(e,{startDateFormat:"HH:mm",endDateFormat:"HH:mm"}))}function cardEventsItemTemplate(e){return n.replace(/{MEDIA_IMAGE}/g,cdnMediaHelpers.getImage(e,{size:500})).replace(/{DATE}/g,cdnMediaHelpers.eventDate(e,{fullFormatMultiDay:"<div class='calendar-date {HAS_MULTI_DAY}'><div class='calendar-date-inner'>{START_DATE}{END_DATE}</div></div>"})).replace(/{MEDIA_TITLE}/g,mediaCustomHelpers.getMediaTitle(e).title).replace(/{MEDIA_URL}/g,cdnMediaHelpers.getFeedUrl(e)).replace(/{TIME_RANGE}/g,cdnMediaHelpers.getTimeRange(e,{startDateFormat:"HH:mm",endDateFormat:"HH:mm"}))}MediaServiceHelper=new e.MediaServiceHelper({ServiceUrl:e("#MediaPlusUrl").val(),FeedsJson:MediaPlusFeedsArray,FeedGroups:sharedFeedGroups,InitCallBack:function(a){for(var n,s,c=[],v=[],o=0;o<a.FeedGroups.length;o++)for(var p=0;p<a.FeedGroups[o].FeedIds.length;p++){"events"!==a.FeedGroups[o].GroupName?v.push(a.FeedGroups[o].FeedIds[p]):c.push(a.FeedGroups[o].FeedIds[p])}t.length&&v.length>0?(s=t,(n=v).length>0?e.MediaServiceHelper.GetMediaItemsAdvanced({FeedIds:n,TakeCount:4,callback:function(a){if(a.length>0){"undefined"!=typeof mpHelper&&mpHelper.storeInfoForMediaPopup(a);for(var n=0;n<a.length;n++)s.find(".media-container").append(sharedGenerateMediaItemHtml(a[n],"",!0))}else s.remove();truncate.init(e(".story-card .truncate")),s.fadeIn()}}):s.remove()):t.remove(),d.length&&v.length>0?function(a,n){a.length>0?e.MediaServiceHelper.GetMediaItemsAdvanced({FeedIds:a,TakeCount:10,callback:function(e){if(e.length>0){"undefined"!=typeof mpHelper&&mpHelper.storeInfoForMediaPopup(e);for(var a=0;a<e.length;a++)n.find(".media-container").append(sharedGenerateMediaItemHtml(e[a],"",!0));n.fadeIn(),storiesCarousel.init()}else n.remove()}}):n.remove()}(v,d):d.remove(),i.length&&c.length>0?function(a,n){a.length>0?e.MediaServiceHelper.GetMediaItemsAdvanced({FeedIds:a,TakeCount:3,callback:function(e){if(e.length>0){for(var a=0;a<e.length;a++)n.find(".upcoming-events-inner").append(sidebarEventsItemTemplate(e[a]));n.fadeIn(),truncate.init(n.find(".truncate"))}else n.remove()}}):n.remove()}(c,i):i.remove(),r.length&&c.length>0?function(a,n){a.length>0?e.MediaServiceHelper.GetMediaItemsAdvanced({FeedIds:a,TakeCount:4,callback:function(e){if(e.length>0){for(var a=0;a<e.length;a++)n.find(".events-container").append(cardEventsItemTemplate(e[a]));n.fadeIn(),truncate.init(n.find(".truncate"))}else n.remove()}}):n.remove()}(c,r):r.remove(),l.length&&c.length>0?function(a,n){a.length>0?e.MediaServiceHelper.GetMediaItemsAdvanced({FeedIds:a,TakeCount:10,callback:function(e){if(e.length>0){for(var a=0;a<e.length;a++)n.find(".media-container").append(cardEventsItemTemplate(e[a]));n.fadeIn(),eventsCarousel.init()}else n.remove()}}):n.remove()}(c,l):l.remove()}})}}(jQuery); !function(e){e(document).ready((function(){customMenu.init(),goTo.init(),customObjects.init(),contactOverlay.init();var i=e(".slider-sl");mainSlider.init(i),styleSecondLevel.init(),cdnGeneralHelpers.inlineImage(e(".image-inline-js")),treemenu.init(),blockquoteFader.init(),promosCarousel.init(),accordion.init(),generateStaff.init(),statsCarousel.init(),wrapTable.init(),"undefined"!=typeof admissionsFunctionality&&admissionsFunctionality.init(),e.each(e(".downloadBtn"),(function(){let i=e(this);i.outerHeight()>75||i.text().length>35?i.addClass("downloadBtn-large"):i.removeClass("downloadBtn-large")}))})),e(window).load((function(){"undefined"!=typeof MediaPlusFeedsArray&&MediaPlusFeedsArray.length>0&&e.SecondLevelAsync.AddMediaItems(e(".stories-grid"),e(".stories-carousel"),e(".sidebox-events"),e(".events-grid"),e(".events-carousel")),e(window).scroll((function(){e(window).scrollTop()>300?e(".go-top").addClass("active"):e(".go-top").removeClass("active")}))}))}(jQuery);