XA.component.accessibility=function(n){var t={},e=function(){return n("body").find("[tabindex]")},o=function(){t.indexedElements.eq(0).attr("tabindex","0")},s=function(){var i=n(document.activeElement),t=i.closest(".initialized");return t.length?t.attr("class").split(" ")[1]:""},r=function(t){var i=n(document.activeElement);return i.closest(t)},u=function(n,t){var i=t;n=="left"&&t.prev()?(t.attr("tabindex","-1"),i=t.prev()):n=="right"&&t.next()&&(t.attr("tabindex","-1"),i=t.next());i.attr("tabindex","0").trigger("click").focus()},i=function(n,t,i){var u=t.closest("li.item"),r=t,f=u.next(),e=u.prev();n=="down"&&f.length?(i.preventDefault(),t.attr("tabindex","-1"),r=f):n=="up"&&e.length&&(i.preventDefault(),t.attr("tabindex","-1"),r=e);r.find(".toggle-header").attr("tabindex","0").focus()},h=function(n){var t=n.next().length?n.next():n.prev();n.attr("tabindex","-1");t.trigger("click").attr("tabindex","0").focus()},f={tabs:function(n){var i=r("li.active");i&&(n==t.keys.right?u("right",i):n==t.keys.left&&u("left",i))},accordion:function(n,u,f){var e=r("div.toggle-header");e&&(n==t.keys.down?i("down",e,f):n==t.keys.up?i("up",e,f):u||n!=t.keys.tab?u&&n==t.keys.tab&&i("up",e,f):i("down",e,f))},flip:function(n){var i=r("[class*='Side']");i&&(n==t.keys.right||n==t.keys.left)&&h(i)}},c=function(n,t,i){var r=s();f[r]&&f[r](n,t,i)};return t.keys={end:35,home:36,left:37,up:38,right:39,down:40,"delete":46,enter:13,space:32,tab:9},t.indexedElements=e(),t.watchEvents=function(){n(document).on("keydown",function(n){var t=n.keyCode,i=n.shiftKey;c(t,i,n)})},t.initInstance=function(){t.watchEvents();o()},t.init=function(){t.initInstance()},t}(jQuery,document);XA.register("accessibility",XA.component.accessibility);XA.component.accordions=function(n){function r(t){var i=n(t),r=n(t).find("img"),u=r.attr("src");u&&(i.parents(".accordion").addClass("accordion-image"),i.css({background:"url("+u+")","background-repeat":"no-repeat","background-size":"cover","background-position":"50% 100%"}),r.hide())}function u(t){var u=n(t).width(),i=n(t).find(".item"),r=0;_.each(i,function(f){var s=n(f).find(".toggle-content"),e=n(f).find(".toggle-header"),o=u-i.length*e.outerWidth();n(f).hasClass("active")&&n(f).css({width:o});s.css({width:n(t).hasClass("accordion-image")?o+e.outerWidth():o-e.outerWidth()-parseInt(e.css("padding"))});n(f).find(".toggle-content").height()>r&&(r=n(f).find(".toggle-content").height())})}function f(n){var t=n[0].id;return n.length>0&&t!=""?t.toLocaleLowerCase():null}function e(f,e){var s="click",o=f.find(".toggle-header").filter(function(t,i){return n(i).closest(".accordion").is(f)});e.expandOnHover&&(s+=" mouseenter");o.on("mouseover",i.focus);o.on("mouseleave",i.blur);o.on("focus",i.focus);o.on("blur",i.blur);o.on("keyup",function(t){(t.keyCode==13||t.keyCode==32)&&n(this).click()});f.hasClass("accordion-horizontal")&&(n(document).ready(function(){u(f)}),_.each(o,function(n){r(n)}));o.on(s,function(){var r=n(this),i=r.closest(".item"),o=r.parents(".accordion"),u=i.find(".toggle-content:first"),f=i.siblings(),s=f.find(".toggle-content");o.hasClass("accordion-horizontal")?t.animateHorizontal.call(this,e):(e.canOpenMultiple||(f.removeClass("active"),s.stop().slideUp({duration:e.speed,easing:e.easing})),i.toggleClass("active"),e.canToggle?u.slideToggle({duration:e.speed,easing:e.easing}):u.slideDown({duration:e.speed,easing:e.easing}))})}var t={},i={focus:function(){n(this).addClass("show")},blur:function(){n(this).removeClass("show")}};return t.animateHorizontal=function(t){var r=n(this).parents(".accordion"),i=n(this).closest(".item"),s=i.find(".toggle-header"),f=i.find(".toggle-content"),h=r.find(".item"),e=i.siblings(),c=e.find(".toggle-content"),u,o;i.toggleClass("active");e.removeClass("active");e.stop(!0).animate({width:0},t.speed,t.easing,function(){c.css({display:"none"})});i.hasClass("active")?(u=r.hasClass("accordion-image")?f.outerWidth():r.width()-((h.length-1)*i.outerWidth()+2),o=r.hasClass("accordion-image")?u:u-s.outerWidth(),i.stop(!0).animate({width:u},t.speed,t.easing,function(){}),f.css({width:o,display:"block"})):i.stop(!0).animate({width:0},t.speed,t.easing,function(){f.css({display:"none"})})},t.initInstance=function(t,i){var u,h,o,r,s;if(t.find(".toggle-header").eq(0).attr("tabindex","0"),t.hasClass("toggle")&&n.extend(i,{canToggle:!0}),t.find(".toggle-content").hide(),u=XA.queryString.getQueryParam(f(t)),u!=null)for(h=u.split(","),o=t.find("ul").first().children(),r=0;r-1&&(n(s).addClass("active"),n(s).find(".toggle-content").show());else i.expandedByDefault&&(t.find("li:first-child").addClass("active"),t.find("li:first-child").find(".toggle-content").show());e(t,i)},t.init=function(){var i=n(".accordion:not(.initialized)");i.each(function(){var r=n(this).data("properties"),i=n(this);t.initInstance(i,r);i.addClass("initialized")})},t}(jQuery);XA.register("accordions",XA.component.accordions);XA.component.archive=function(n){var t={},i=function(t){var i=n(t.target);i.siblings("ul").toggle();i.toggleClass("opened")};return t.initInstance=function(n){var t=n.find(".group-header");t.on("click",i)},t.init=function(){for(var u=n(".sxa-archive:not(.initialized)"),i,r=0,f=u.length;rli").each(function(){i+=n(this).width()}),i},t.prototype.calculateWidth=function(){var t=this,r=n(t.breadcrumb).find("nav>ol"),o=r.width(),f=this.calculateListElementsWidth(r),i=this.getElements(r),e,u=0,h=t.hideHistory.widths[t.hideHistory.widths.length-1],s;for(o>f+h&&(s=t.hideHistory.elems.pop(),t.hideHistory.widths.pop(),n(s).removeClass("item-hide"));o2;)u=Math.round(i.length/2)-1,e=n(i[u]),t.hideHistory.elems.push(i[u]),t.hideHistory.widths.push(e.width()),e.addClass("item-hide"),f=t.calculateListElementsWidth(r),i.splice(u,1)},t.prototype.init=function(){var t=this;t.calculateWidth();n(window).resize(function(){t.calculateWidth()})},t.prototype.makeNavigation=function(){var t=n(this.breadcrumb),i=t.find("li > ol");i.length>0&&t.addClass("breadcrumb-navigation")},i.initInstance=function(i){var r=new t(i),u=n(i);u.hasClass("breadcrumb-hide")?r.init():r.makeNavigation()},i.init=function(){var t=n(".breadcrumb:not(.initialized)");t.each(function(){i.initInstance(n(this));n(this).addClass("initialized")})},i}(jQuery,document);XA.register("breadcrumb",XA.component.breadcrumb);XA.component.carousels=function(n){function t(){this.elapsed=0;this.stamp=null}function r(n,t,i){this.view=t;this.view.init(i)}function e(n,t,i){var r=n.extend(!0,{},{isEnabled:!0,hasPrevNextItems:!0,item:{label:"#{index}",selector:null},prevItem:{label:"<",selector:null,isContainer:!1},nextItem:{label:">",selector:null,isContainer:!1},slidesCount:0},i),u;this.$=n;this.$items=n();this.$nextItem=n();this.$prevItem=n();this.$selectedItem=null;r.isEnabled&&(u=this,setTimeout(function(){u.prepareItems(r.item,r.slidesCount,t);u.selectItem(0)},1e3),t.find(".nav").trigger("navigation-created",this))}function h(){this.canChangeSlide=!0;this.defaults=null;this.navigation=null;this.owner=null;this.preventScheduling=!1;this.settings=null;this.slideTimer=new t;this.timeIndicator=null;this.timers=[];this.timeoutId=null;this.transition=null;this.transitionSettings=new XA.component.carousels.Transitions.TransitionSettings;this.$slides=null;this.$wrapper=null;this.changeCurrentSlide=null;this.getCurrentSlide=null;this.timers.push(this.slideTimer)}function i(n,t,i){var r={navigation:{},timeout:1e4,transition:"BasicTransition",isPauseEnabled:!0,timeIndicator:{isEnabled:!1,selector:null,view:"View",options:{}}};this.context=t;t.owner=this;t.defaults=r;t.settings=n.extend(!0,{},r,i);t.transitionSettings.$slides=t.$slides}function u(){var n=this;this.slider=null;this.$currentSlide=null;this.$slides=null;this.changeCurrentSlide=function(t){n.$currentSlide=t;n.slider.selectNavigationItem(t.index())};this.getCurrentSlide=function(){return n.$currentSlide};this.data={}}var o={},f=null,s=null;return t.prototype.update=function(){this.stamp!==null&&(this.elapsed+=this.newStamp()-this.stamp)},t.prototype.set=function(){this.stamp=this.newStamp()},t.prototype.newStamp=function(){return(new Date).valueOf()},t.prototype.reset=function(){this.elapsed=0},r.prototype=new t,r.constructor=t,r.prototype.play=function(){this.view.play()},r.prototype.pause=function(){this.view.pause()},r.prototype.reset=function(){t.prototype.reset.call(this);this.view.reset()},r.prototype.update=function(){t.prototype.update.call(this);this.view.update(this.elapsed)},f=function(n){function t(t){var r=t.text,i=null;return t.text="",t.href="#",i=n("",t),n("",{text:r}).appendTo(i),i}return{getElement:function(t){var i=n(t);return i.length===0&&(i=null),i},createItems:function(n,i,r){for(var e=/#\{index\}/g,f,u=0;u",{"class":"nav"}),u.appendTo(r)),u!==null&&(u.children().length===0&&f.createItems(u,t.label,i),this.$items=u.children().slice(0,i)),u},e.prototype.preparePrevNextItems=function(n,t){var i;n.prevItem.method="prepend";i=f.createPrevNextItem(n.prevItem,{"class":"prev"},t);this.$prevItem=i===null?this.$prevItem:i;n.nextItem.method="append";i=f.createPrevNextItem(n.nextItem,{"class":"next"},t);this.$nextItem=i===null?this.$nextItem:i},i.prototype.executeOnTimers=function(n,t){for(var i=null,r=null,u=t.timers,i=0;i1&&(t.executeOnTimers("set",n),n.canChangeSlide?(n.timeIndicator!==null&&n.timeIndicator.play(),n.timeoutId=setTimeout(function(){t.changeCurrentSlideBy(1,n)},n.settings.timeout-n.slideTimer.elapsed)):setTimeout(function(){t.scheduleSlide(n)},100))},i.prototype.changeCurrentSlideBy=function(t,i){var r=i.transitionSettings,f=i.getCurrentSlide(),u=i.$slides,e;t%u.length!=0&&(i.canChangeSlide=!1,r.offset=t,r.$currentSlide=f,r.$nextSlide=u.eq((f.index()+t)%u.length),i.changeCurrentSlide(r.$nextSlide),i.transition.perform(i.transitionSettings,t),i.owner.executeOnTimers("reset",i));e=n(i.$wrapper).parents(".carousel");e.trigger("slide-changed")},i.prototype.run=function(){this.executeOnTimers("reset",this.context);this.scheduleSlide(this.context)},i.prototype.onChangeCurrentSlide=function(n,t,i){var r=i.owner;n.preventDefault();i.canChangeSlide&&(r.descheduleSlide(i),r.changeCurrentSlideBy(t,i))},i.prototype.selectNavigationItem=function(n){this.context.navigation.selectItem(n)},s=function(n){function u(r){var e=r.owner,u=r.$wrapper.find(".nav-items"),o=r.$wrapper.find(".prev-text"),s=r.$wrapper.find(".next-text"),h=r.$wrapper.parents(".carousel");r.navigation.$items.each(function(t){var i=r.$slides.eq(t);n(this).click(function(n){e.onChangeCurrentSlide(n,i.index()-r.getCurrentSlide().index(),r)})});o.click(function(n){i(n,r,t.PREV)});s.click(function(n){i(n,r,t.NEXT)});r.navigation.$prevItem.click(function(n){i(n,r,t.PREV)});r.navigation.$nextItem.click(function(n){i(n,r,t.NEXT)});u.on("keydown",function(n){switch(n.keyCode){case 37:i(n,r,t.PREV);break;case 39:i(n,r,t.NEXT);break;case 13:f(e.context.getCurrentSlide())}});h.on("slide-changed",function(){var n=u.find(".active");n.attr("tabindex","0");u.find(document.activeElement).length;u.find(">div").not(".active").attr("tabindex","-1")})}function i(n,t,i){var u=t.owner,r=t.$wrapper.find(".nav-items");r.find(".active").attr("tabindex","-1");u.onChangeCurrentSlide(n,i,t);r.find(".active").attr("tabindex","0")}function f(n){var t=n.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]'),i;t.length!==0&&(i=t[0],i.focus())}function o(n){var t=n.owner,i=n.$wrapper,u=i.find(".nav a"),f=function(){n.preventScheduling=!0;t.descheduleSlide(n);t.executeOnTimers("update",n);n.timeIndicator!==null&&n.timeIndicator.pause()},r;i.mouseenter(f);u.on("focus",f);r=function(){n.preventScheduling=!1;t.scheduleSlide(n)};i.mouseleave(r);u.on("blur",r)}function s(t){var i=t.settings,u=null,f=XA.component.carousels.IndicatorViews[i.timeIndicator.view],e=null;f!==null&&(e=new f(i.timeIndicator.selector,i.timeIndicator.options),u=new r(n,e,i.timeout),t.timeIndicator=u,t.timers.push(u))}function h(t){t.settings.navigation.slidesCount=t.$slides.length;t.navigation=new e(n,t.$wrapper,t.settings.navigation);setTimeout(function(){u(t)},1e3);t.settings.isPauseEnabled&&o(t)}function c(n){var t=null,i=n.owner;n.transitionSettings.callback=function(){n.canChangeSlide=!0;n.preventScheduling?i.executeOnTimers("reset",n):i.scheduleSlide(n)};t=XA.component.carousels.Transitions[n.settings.transition];(t===null||t===undefined)&&(t=XA.component.carousels.Transitions[n.defaults.transition]);n.transition=new t;n.transition.init(n.transitionSettings)}var t={PREV:-1,NEXT:1};return{initialize:function(n){h(n);c(n);n.settings.timeIndicator.isEnabled&&s(n)}}}(n),u.prototype.reset=function(){this.$slides.each(function(){n(this).hide()});this.changeCurrentSlide(this.$slides.first());this.$currentSlide.show()},u.prototype.init=function(t,r){var f=n("
",{"class":"wrapper"}),u=null;f.append(t.children().detach());t.append(f);this.$slides=t.find(".slides li.slide");u=new h;u.changeCurrentSlide=this.changeCurrentSlide;u.getCurrentSlide=this.getCurrentSlide;u.$slides=this.$slides;u.$wrapper=f;this.slider=new i(n,u,r);s.initialize(u);this.reset();this.slider.run()},u.prototype.swipeSlide=function(){var n=this,i=this.slider.context.$wrapper,t=new Hammer(i[0]);t.get("pan").set({direction:Hammer.DIRECTION_HORIZONTAL});t.on("swipeleft",function(t){n.slider.context.owner.onChangeCurrentSlide(t,1,n.slider.context)});t.on("swiperight",function(t){n.slider.context.owner.onChangeCurrentSlide(t,-1,n.slider.context)})},u.prototype.maxSlideInfoHeight=function(){var t=0,n=this.$slides[0]&&this.$slides[0].querySelector(".slide-info"),i,r;for(n&&(t=n.offsetHeight),i=1;i0?1:-1},n.prototype.perform=function(n){n.callback()},t.Transition=n,e.prototype=new n,e.constructor=e,e.prototype.perform=function(n){n.$currentSlide.hide();n.$nextSlide.show();n.callback()},t.BasicTransition=e,r.prototype=new n,r.constructor=r,r.prototype.init=function(){},r.prototype.perform=function(n){var t="z-index",r=n.$slides.parent(),i=n.$nextSlide;r.css(t,0);i.css(t,1);n.$slides.css({position:"relative"});n.$nextSlide.css({position:"absolute",top:"0",bottom:"0",left:"0",right:"0"});i.fadeIn(function(){n.$currentSlide.hide();n.$nextSlide.css({position:"relative",left:"0",transform:"none"});i.css(t,"");r.css(t,"");n.callback()})},t.FadeInTransition=r,u.prototype=new n,u.constructor=u,u.prototype.onAnimationComplete=function(n,t){n.$currentSlide.hide();n.$nextSlide.css({top:"",bottom:"",left:"",position:"",width:""});t.css({left:""});t.css("margin-left","");n.callback()},u.prototype.perform=function(n,t){var r=this.factor(n),u=this.onAnimationComplete,f=n.$currentSlide.width(),i=n.$slides.parent();n.$nextSlide.css({top:"0",bottom:"0",left:"100%",position:"absolute",width:"100%"});t>0?n.$nextSlide.css({left:"100%"}):n.$nextSlide.css({left:"-100%"});n.$nextSlide.show();i.animate({left:-r*f+"px"},function(){u(n,i)})},t.SlideHorizontallyTransition=u,f.prototype=new n,f.constructor=f,f.prototype.onAnimationComplete=function(n,t){n.$currentSlide.hide();n.$nextSlide.css({top:"",bottom:"",left:"",right:"",position:"",width:""});t.css("top","");t.css("margin-top","");n.callback()},f.prototype.perform=function(n,t){var r=this.factor(n),u=this.onAnimationComplete,f=n.$currentSlide.height(),i=n.$slides.parent();n.$nextSlide.css({left:"0",right:"0",position:"absolute",width:"100%"});t>0?n.$nextSlide.css({top:"-100%",bottom:"100%"}):n.$nextSlide.css({top:"100%",bottom:"-100%"});n.$nextSlide.show();i.animate({top:r*f},function(){u(n,i)})},t.SlideVerticallyTransition=f,t}(jQuery);XA.component.carousels.IndicatorViews=function(n){function e(n){var t,i=!1;for(f===null&&(f=document.createElement("supportElement").style),t=0;t=this.timeout/2&&(n=this.playPhaseTwo);n.call(this)},u.RotatorView=r,u}(jQuery);XA.component.parallax=function(n,t){function r(){return n(window).width()<768}function u(i){function o(){if(e)return!1;var t=n(window).scrollTop();f<=t+s&&f+h>=t&&u.css("background-position","50% "+Math.round((f-t)*3/8)+"px")}var u=i.children(".component-content"),s=n(window).height(),f=u[0].offsetTop,h=u[0].offsetHeight,e=r();o();n(document).on("scroll",t.throttle(o,10));n(window).on("resize",t.throttle(function(){e=r();e?u.css("background-position","50% 0"):o()},150))}var i={};return i.initInstance=function(n){u(n)},i.init=function(){n(".parallax-background:not(.initialized)").each(function(){i.initInstance(n(this));n(this).addClass("initialized")})},i}(jQuery,_);XA.register("parallax-background",XA.component.parallax);XA.component.disqus=function(n,t){function r(n){var i=t.createElement("script");i.type="text/javascript";i.async=!0;i.src="//"+n.disqus_shortname+".disqus.com/embed.js";(t.getElementsByTagName("head")[0]||t.getElementsByTagName("body")[0]).appendChild(i)}var i={};return i.initInstance=function(n,t){window.disqus_config=function(){this.page.url=t.disqus_url;this.page.identifier=t.disqus_identifier;this.page.title=t.disqus_title;this.page.category_id=t.disqus_category_id};n.find("#disqus_thread").length>0&&r(t)},i.init=function(){var t=n(".disqus:not(.initialized)");t.each(function(){var t=n(this).data("properties");i.initInstance(n(this),t);n(this).addClass("initialized")})},i}(jQuery,document);XA.register("disqus",XA.component.disqus);XA.component.facebook=function(n,t){var i={};return i.initInstance=function(){(function(n,t,i){var r,u=n.getElementsByTagName(t)[0];n.getElementById(i)||(r=n.createElement(t),r.id=i,r.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7",u.insertBefore(r,u.firstChild))})(t,"script","facebook-jssdk")},i.init=function(){var t=n(".fb-comments:not(.initialized)");t.each(function(){i.initInstance();n(this).addClass("initialized")})},i}(jQuery,document);XA.register("facebook",XA.component.facebook);XA.component.flash=function(n){function i(n){var t=n.attr("height"),i=n.attr("width"),r=n.width(),u=t*r/i;n.height(u)}function r(n,t){var i=n.find(".component-content > div");i.flash(t)}function u(t){n(document).ready(function(){var r=t.find("embed");r.css("width","100%");i(r);n(window).resize(function(){i(r)})})}var t={};return t.initInstance=function(n,t){r(n,t);u(n)},t.init=function(){var i=n(".flash:not(.initialized)");i.length>0&&i.each(function(){var i=n(this).data("properties");t.initInstance(n(this),i);n(this).addClass("initialized")})},t}(jQuery,document);XA.register("flash",XA.component.flash);XA.component.flip=function(n){function r(){return"ontouchstart"in window}function u(){var i=n(".flip.initialized");i.each(function(){t.equalSideHeight(n(this))})}var i=!1,t={equalSideHeight:function(n){var t=n.find(".Side0"),i=n.find(".Side1"),r=this.calcSlideSizeInToggle(t),u=this.calcSlideSizeInToggle(i),f=Math.max(r,u);n.find(".flipsides").css({"min-height":f+"px"});t.add(i).css({bottom:0})},calcSlideSizeInToggle:function(t){var r=t.find(">div"),i=0;return r.each(function(t,r){i+=n(r).outerHeight(!0)}),i+=parseInt(t.css("padding-top")),i+=parseInt(t.css("padding-bottom"))},equalSideHeightInToggle:function(n){var t=n.find(".Side0"),i=n.find(".Side1"),r=this.calcSlideSizeInToggle(t),u=this.calcSlideSizeInToggle(i),f=Math.max(r,u);n.find(".flipsides").css({"min-height":f+"px"});t.add(i).css({bottom:0})}};return t.initInstance=function(n){if(n.find('[class*="Side0"]').attr("tabindex","0"),n.hasClass("flip-hover")&&!r())n.hover(function(){n.addClass("active")},function(){n.removeClass("active")});else n.on("click",function(){n.toggleClass("active")})},t.initFlips=function(){var i=n(".flip:not(.initialized)");i.each(function(){var i=n(this).find(".flipsides");i.find(".Side0").attr("tabindex","0");t.initInstance(n(this));n(this).addClass("initialized");t.equalSideHeight(n(this))})},t.init=function(){n(window).on("resize",function(){u()});i?t.initFlips():n(document).ready(function(){t.initFlips();i=!0})},t}(jQuery,document);XA.register("flip",XA.component.flip);XA.component.calendar=function(n){function r(n,t){this.data=t.data;this.selector=n;this.options=t;this.events=[];this.checkSource()}function t(t,i,r){var f=this,e="",o="",s="",u;i.dataType==="gcalendar"?(googleCalendarApiKey=i.calendarApiKey,r=i.calendarId):googleCalendarApiKey=null;i.showPrevNext?e="prev, next":"";i.showMonthCaptions?o="title":"";for(u in i.calendarTypes)i.calendarTypes[u]==="day"?i.calendarTypes[u]="basicDay":i.calendarTypes[u]==="week"&&(i.calendarTypes[u]="basicWeek");i.calendarTypes.length>1&&(s=i.calendarTypes.join());n(t).fullCalendar({monthNames:i.localization.monthNames,monthNamesShort:i.localization.monthNamesShort,dayNames:i.localization.dayNames,dayNamesShort:i.localization.dayNamesShort,nextDayThreshold:"00:00",buttonText:{agendaDay:"agenda day",agendaWeek:"agenda week"},header:{left:e,center:o,right:s},googleCalendarApiKey:googleCalendarApiKey,events:r,renderEvent:!1,eventRender:function(t,r){i.compactView&&i.dataType==="json"?n(r).css("display","none"):i.dataType==="json"&&f.attachTooltip(t,r,!1);r.addClass(t.eventClass)},eventAfterAllRender:function(){i.compactView&&i.dataType==="json"&&f.renderCompactCalendarEvents(t,r)}})}function u(t){n(t).fullCalendar("render")}r.prototype.checkSource=function(){var n=this;switch(n.options.dataType){case"json":n.getJson();new t(n.selector,n.options,n.events);break;case"gcalendar":new t(n.selector,n.options,n.events)}};r.prototype.getJson=function(){var r=this,t,i,f=!1,u=[];n.each(r.data,function(){t=new Date(this.eventStart);i=new Date(this.eventEnd);t===i&&(f=!0);u={title:this.eventName,start:t,end:i,eventDescription:this.eventDescription,eventLink:this.eventLink,eventClass:this.eventClass};r.events.push(u)})};t.prototype.attachTooltip=function(t,i,r){var u,f;n(i).on("mouseenter",function(){f="";n(".calendar-tooltip").fadeOut();n(".calendar-tooltip").remove();r?(f="",n.each(t,function(){f+="
"+this.title+"<\/span>"+this.eventDescription+"<\/span>Link<\/a><\/span><\/div>"})):f=""+t.eventDescription+"<\/span>"+t.eventLink+"<\/span>";u=n("
<\/div>
"+f+"<\/div><\/div>");u.css({left:n(this).offset().left});u.css({top:n(this).offset().top-n(this).height()});n("body").append(u);var i;n(this).unbind("mouseleave");n(this).on("mouseleave",function(){i=setTimeout(function(){u.fadeOut(function(){n(this).remove()})},300);u.unbind("mouseenter");u.on("mouseenter",function(){clearTimeout(i)})});u.unbind("mouseleave");u.on("mouseleave",function(){n(this).fadeOut(function(){n(this).remove()})})})};t.prototype.renderCompactCalendarEvents=function(t,i){var d=this,c,u,y,f,e,o,p,w,b,l,a,v,k,s,r,h=[];n(t).find(".fc-day").each(function(){c=this;u=new Date(n(this).data("date"));f=u.getDate();e=u.getMonth();o=u.getFullYear();h=[];n.each(i,function(){y=this;s=new Date(this.start);p=s.getDate();w=s.getMonth();b=s.getFullYear();this.end&&(r=new Date(this.end),l=r.getDate(),a=r.getMonth(),v=r.getFullYear(),k=r.getHours());o>=b&&o<=v&&e>=w&&e<=a&&f>=p&&f<=l&&(o==v&&e==a&&f==l&&k<9||(n(c).addClass("selected-day"),h.push(y)))});h.length&&d.attachTooltip(h,c,!0)})};var i={};return i.initInstance=function(t,i){var f="#"+t.find(".event-calendar-inner").attr("id");i.compactView&&i.dataType==="json"&&n(this).addClass("compact-mode");new r(f,i);n(window).resize(function(){u(f)})},i.init=function(){n(".event-calendar:not(.initialized)").each(function(){var t=n(this).data("properties");i.initInstance(n(this),t);n(this).addClass("initialized")})},i}(jQuery,document);XA.register("calendar",XA.component.calendar);XA.component.galleria=function(n){var t={};return t.initInstance=function(t,i){var r=t.find(".gallery-inner").attr("id"),u=n('script[src="'+i.theme+'"]');u&&u.remove();n(document).ready(function(){var t=i.height?i.height:"250px",n=Object.assign({},i);delete n.theme;jQuery("#"+r).css("height",t);Galleria.loadTheme(i.theme);Galleria.run("#"+r,n);Galleria.ready(function(){this.bind("image",function(n){n.imageTarget.alt=n.galleriaData.title})})})},t.init=function(){var i=n(".gallery:not(.initialized)");i.each(function(){var i=n(this).data("properties");t.initInstance(n(this),i);n(this).addClass("initialized")})},t}(jQuery,document);XA.register("galleria",XA.component.galleria);XA.component.languageSelector=function(n){function i(n){var t=n.data("country-code");return"flags-"+t}function r(t){var e=n(t),r=e.find(".language-selector-select-item"),u=e.find(".language-selector-item-container"),o=u.find(".language-selector-item"),f=i(r);r.find(">a").addClass(f);u.find(".language-selector-item").each(function(){f=i(n(this));n(this).find(">a").addClass(f)});r.on("click",function(){u.slideToggle()});o.on("click",function(){var t=n(this).find("a").attr("href");window.location.href=t})}var t={};return t.initInstance=function(n){r(n)},t.init=function(){var i=n(".language-selector:not(.initialized)");i.each(function(){t.initInstance(this);n(this).addClass("initialized")})},t}(jQuery,document);XA.register("language-selector",XA.component.languageSelector);XA.component.navigation=function(n){function o(i){i.on("mouseover",".rel-level1 > a, .rel-level1 >.navigation-title>a, .rel-level2 >.navigation-title>a",function(){n(this).closest("li").siblings().removeClass("show");n(this).closest("li.rel-level1").siblings().removeClass("show");n(this).closest("li.rel-level1").siblings().find(".show").removeClass("show");var i=n(this).closest("li").find(">ul");t.show(i)});i.on("mouseleave",".rel-level1 > a, .rel-level1 >.navigation-title",t.queueHide);i.on("mouseover",".rel-level1 > ul",t.debounce);i.on("mouseleave",".rel-level1 > ul",t.queueHide);i.on("focus",".rel-level1 > a, .rel-level1 >.navigation-title, .rel-level1 >.navigation-title",t.focus);i.on("blur",".rel-level2 > a",t.blur);i.on("mouseleave",function(){n(this).find(".show").removeClass("show")});i.find(".rel-level1").each(function(){n(this).find("ul").length&&n(this).addClass("submenu")});i.find(".rel-level2").each(function(){n(this).parents("#header")>0&&n(this).find("ul").length&&(n(this).addClass("submenu"),n(this).parents(".rel-level1").addClass("wide-nav"));n(this).find("> img").length&&n(this).addClass("submenu navigation-image")});i.on("click",".sxaToogleNavBtn",function(){var n=jQuery(this);n.find(".sxaWrappedList").toggleClass("hidden")})}function f(t){function i(t){t.find(".rel-level1").each(function(){n(this).find("ul").length||n(this).addClass("no-child")})}function r(t){t.find(".navigation-title").on("click",function(t){var i=n(this).closest("li"),r=i.parents(".navigation");r.hasClass("navigation-mobile")&&(n(t.target).is("a")||(i.hasClass("active")?i.find(">ul").slideToggle(function(){i.removeClass("active")}):i.find(">ul").slideToggle(function(){i.addClass("active")})))});t.find(".rel-level1").on("focus",function(){n(this).siblings("ul").slideDown();n(this).closest("li").siblings().find("ul").slideUp()})}i(t);r(t)}function s(t){n(t).on("click",function(){n(this).parents(".navigation").toggleClass("active");n(this).toggleClass("active")})}var e=200,i=0,r,t={show:function(n){this.debounce();r=n;r.closest("li").addClass("show")},debounce:function(){i&&(clearTimeout(i),i=null)},hide:function(){r&&r.closest("li").removeClass("show")},queueHide:function(){i=setTimeout(function(){t.hide()},e)},focus:function(){n(this).closest("li").siblings().removeClass("show");n(this).closest("li").addClass("show")},blur:function(){n(this).closest("li").is(".last")&&n(this).parents(".rel-level1").removeClass("show")}},u={};return u.initInstance=function(n){n.hasClass("navigation-main")?(o(n),f(n)):n.hasClass("navigation-mobile")&&f(n)},u.init=function(){var i=n(".navigation:not(.initialized)"),t;i.each(function(){u.initInstance(n(this));n(this).addClass("initialized")});t=n(".mobile-nav:not(.initialized)");t.each(function(){s(this);n(this).addClass("initialized")})},u}(jQuery,document);XA.register("navigation",XA.component.navigation);XA.component.overlay=function(n){function o(){if(s.indexOf("sc_mode=preview")>-1)return!0;var t=n("#hdPageMode");return t.length>0&&t.attr("value")=="preview"}function y(){if(s.indexOf("sc_mode=edit")>-1)return!0;var t=n("#hdPageMode");return t.length>0&&t.attr("value")=="edit"}function p(){return n("#wrapper").hasClass("overlay-page")}function w(){return n(".overlay-source").length}function b(n){var t=n.split("?")[1],u=[],i,r;if(t!=undefined)for(t=t.split("&"),r=0;r-1?!0:!1}function l(t){var i=t.split("?")[0].split(".").pop();return n.inArray(i,["gif","png","jpg","jpeg"])>-1?!0:!1}function g(i,u){var f=u.find(".overlay-inner"),e=u.find(".component-content"),c=b(i),a=d(i),s=k(c),h;e.addClass("overlayFullWidth");f.removeAttr("style");a?l(i)?(f.empty().append(n("",{src:i})),f.css(s),e.removeClass("overlayFullWidth"),r(u)):i.indexOf("overlaytype=iframe")>-1?(f.empty().append(n("