jQuery(document).ready(function(){jQuery(".tribe-ticket-quantity").addClass("qty").wrap('<div class="quantity"></div>'),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 a=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",a)}),jQuery(window).on("resize",function(){var a;jQuery(".fusion-tribe-has-featured-image").each(function(){jQuery(this).find(".tribe-events-event-image").css("height","auto"),a=jQuery(this).parent().height(),jQuery(this).find(".tribe-events-event-image").css("height",a)})})}),jQuery(document).ajaxComplete(function(a,b,c){var d,e;jQuery(".fusion-tribe-has-featured-image").each(function(){var a=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",a)}),jQuery(this).find(".post").each(function(){jQuery(this).find(".fusion-post-slideshow").flexslider(),jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),d=jQuery("#tribe-events .fusion-blog-layout-grid"),e=d.find(".post"),d.css("height",d.height()),e.hide(),imagesLoaded(e,function(){d.css("height",""),e.fadeIn(),d.isotope(),jQuery(window).trigger("resize"),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}),jQuery(".fusion-page-title-bar h1").length&&jQuery(".tribe-events-page-title").length&&jQuery(".fusion-page-title-bar h1").text(jQuery(".tribe-events-page-title").text())}),jQuery(window).load(function(){jQuery(".tribe_events_filters_close_filters, .tribe_events_filters_show_filters").on("click",function(){var a=jQuery(this);setTimeout(function(){jQuery(a).parents("#tribe-events-content-wrapper").find(".fusion-blog-layout-grid").isotope()})})});