",jQuery(this).html(e)),t.hasClass("sent")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert success fusion-success"),jQuery(this).hasClass("alert-dismissable")&&(e='
'+jQuery(this).html()+"",jQuery(this).html(e))}),jQuery(".wpcf7-response-output.fusion-alert .close").click(function(e){e.preventDefault(),jQuery(this).parent().slideUp()})}),jQuery(document).ready(function(){jQuery('
').insertAfter(".wpcf7 .ajax-loader"),jQuery(".wpcf7 .ajax-loader").remove(),jQuery(".wpcf7-form .wpcf7-submit").on("click",function(){jQuery(this).parents(".wpcf7-form").find(".fusion-slider-loading").show()})})
;!function(e,t){var s,i,o=t.event;o.special.smartresize={setup:function(){t(this).bind("resize",o.special.smartresize.handler)},teardown:function(){t(this).unbind("resize",o.special.smartresize.handler)},handler:function(e,t){var n=this,o=arguments;e.type="smartresize",s&&clearTimeout(s),s=setTimeout(function(){jQuery.event.handle.apply(n,o)},"execAsap"===t?0:100)}},t.fn.smartresize=function(e){return e?this.bind("smartresize",e):this.trigger("smartresize",["execAsap"])},t.Slideshow=function(e,n){this.$el=t(n),this.$list=this.$el.find("ul.ei-slider-large"),this.$imgItems=this.$list.children("li"),this.itemsCount=this.$imgItems.length,this.$images=this.$imgItems.find("img:first"),this.$sliderthumbs=this.$el.find("ul.ei-slider-thumbs").hide(),this.$sliderElems=this.$sliderthumbs.children("li"),this.$sliderElem=this.$sliderthumbs.children("li.ei-slider-element"),this.$thumbs=this.$sliderElems.not(".ei-slider-element"),this._init(e)},t.Slideshow.defaults={animation:"sides",autoplay:!1,slideshow_interval:3e3,speed:800,easing:"",titlesFactor:.6,titlespeed:800,titleeasing:"",thumbMaxWidth:150},t.Slideshow.prototype={_init:function(e){this.options=t.extend(!0,{},t.Slideshow.defaults,e),this.$imgItems.css("opacity",0),this.$imgItems.find("div.ei-title > *").css("opacity",0),this.current=0;var n=this;this.$loading=t('
Loading
').prependTo(n.$el),t.when(this._preloadImages()).done(function(){n.$loading.hide(),n._setImagesSize(),n._initThumbs(),n.$imgItems.eq(n.current).css({opacity:1,"z-index":10}).show().find("div.ei-title > *").css("opacity",1),n.options.autoplay&&n._startSlideshow(),n._initEvents()})},_preloadImages:function(){var e=this,n=0;return t.Deferred(function(s){e.$images.each(function(){t("
![]()
").load(function(){++n===e.itemsCount&&s.resolve()}).attr("src",t(this).attr("src"))})}).promise()},_setImagesSize:function(){this.elWidth=this.$el.width();var e=this;this.$images.each(function(){var s=t(this);imgDim=e._getImageDim(s.attr("src")),s.css({width:imgDim.width,height:imgDim.height,marginLeft:imgDim.left,marginTop:imgDim.top})})},_getImageDim:function(e){t=new Image,t.src=e;var t,n,s,o=this.elWidth,i=this.$el.height(),r=i/o,c=t.width,a=t.height/c;return r>a?(s=i,n=i/a):(s=o*a,n=o),{width:n,height:s,left:(o-n)/2,top:(i-s)/2}},_initThumbs:function(){this.$sliderElems.css({"max-width":this.options.thumbMaxWidth+"px",width:100/this.itemsCount+"%"}),this.$sliderthumbs.css("max-width",this.options.thumbMaxWidth*this.itemsCount+"px").show()},_startSlideshow:function(){var e=this;this.slideshow=setTimeout(function(){var t=e.current===e.itemsCount-1?0:e.current+1;e._slideTo(t),e.options.autoplay&&e._startSlideshow()},this.options.slideshow_interval)},_slideTo:function(e){if(e===this.current||this.isAnimating)return!1;this.isAnimating=!0;var n=this.$imgItems.eq(this.current),s=this.$imgItems.eq(e),o=this,i={zIndex:10},a={opacity:1};"sides"===this.options.animation&&(i.left=e>this.current?-1*this.elWidth:this.elWidth,a.left=0),s.find("div.ei-title > h2").css("margin-right","50px").stop().delay(this.options.speed*this.options.titlesFactor).animate({marginRight:"0px",opacity:1},this.options.titlespeed,this.options.titleeasing).end().find("div.ei-title > h3").css("margin-right","-50px").stop().delay(this.options.speed*this.options.titlesFactor).animate({marginRight:"0px",opacity:1},this.options.titlespeed,this.options.titleeasing),t.when(n.css("z-index",1).find("div.ei-title > *").stop().fadeOut(this.options.speed/2,function(){t(this).show().css("opacity",0)}),s.css(i).stop().animate(a,this.options.speed,this.options.easing),this.$sliderElem.stop().animate({left:this.$thumbs.eq(e).position().left},this.options.speed)).done(function(){n.css("opacity",0).find("div.ei-title > *").css("opacity",0),o.current=e,o.isAnimating=!1})},_initEvents:function(){var n=this;t(e).on("smartresize.eislideshow",function(){n._setImagesSize(),n.$sliderElem.css("left",n.$thumbs.eq(n.current).position().left)}),this.$thumbs.on("click.eislideshow",function(){n.options.autoplay&&(clearTimeout(n.slideshow),n.options.autoplay=!1);var s=t(this).index()-1;return n._slideTo(s),!1})}},i=function(){this.console},t.fn.eislideshow=function(e){if("string"==typeof e){var n=Array.prototype.slice.call(arguments,1);this.each(function(){var s=t.data(this,"eislideshow");s&&t.isFunction(s[e])&&"_"!==e.charAt(0)?s[e].apply(s,n):i()})}else this.each(function(){t.data(this,"eislideshow")||t.data(this,"eislideshow",new t.Slideshow(e,this))});return this}}(window,jQuery)
;function toggleMobileClass(){768>=jQuery(window).width()?jQuery("body").addClass("tribe-mobile"):jQuery("body").removeClass("tribe-mobile")}jQuery(document).ready(function(){var e;jQuery(".tribe-ticket-quantity, .tribe-tickets-quantity").addClass("qty").wrap('
'),jQuery(".tribe-events-tickets-rsvp").find(".quantity input").on("change",function(){setTimeout(function(){calcSelectArrowDimensions()},100)}),jQuery.trim(jQuery(".tribe-events-nav-previous").html()).length||jQuery.trim(jQuery(".tribe-events-nav-next").html()).length||jQuery(".tribe-events-sub-nav").parent("#tribe-events-footer").hide(),jQuery(".fusion-tribe-has-featured-image").each(function(){var e=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",e)}),jQuery(window).on("resize",function(){var e;jQuery(".fusion-tribe-has-featured-image").each(function(){jQuery(this).find(".tribe-events-event-image").css("height","auto"),e=jQuery(this).parent().height(),jQuery(this).find(".tribe-events-event-image").css("height",e)})}),jQuery("body").hasClass("avada-ec-views-v2")&&jQuery(window).resize(function(){clearTimeout(e),e=setTimeout(toggleMobileClass,200)})}),jQuery(document).ajaxComplete(function(){var e,t;(jQuery("body").hasClass("events-archive")||jQuery("body").find(".tribe-events-shortcode .fusion-blog-layout-grid").length)&&(e=jQuery(jQuery(this).parents("#tribe-events").length?this:"#tribe-events .fusion-blog-layout-grid"),(t=e.find(".post")).each(function(){jQuery(this).find(".fusion-post-slideshow").flexslider(),jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),e.css("height",e.height()),t.hide(),imagesLoaded(t,function(){e.css("height",""),t.fadeIn(),e.isotope(),jQuery(window).trigger("resize",!1),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})),jQuery("body").hasClass("events-archive")&&(jQuery(".fusion-tribe-has-featured-image").each(function(){var e=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",e)}),jQuery(".fusion-page-title-bar h1").length&&(jQuery("#tribe-events-header").length?jQuery(".fusion-page-title-bar h1").html(jQuery("#tribe-events-header").data("viewtitle")):jQuery(".tribe-events-page-title").length&&jQuery(".fusion-page-title-bar h1").html(jQuery(".tribe-events-page-title").html())))}),jQuery(window).on("load",function(){jQuery(".tribe_events_filters_close_filters, .tribe_events_filters_show_filters").on("click",function(){var e=jQuery(this);setTimeout(function(){jQuery(e).parents("#tribe-events-content-wrapper").find(".fusion-blog-layout-grid").isotope()})})})