jQuery(window).on("load",function(){jQuery(".fusion-recent-posts-infinite .fusion-columns").each(function(){var i,n=jQuery(this),e=n.parent(),o="."+e.attr("class").replace(/\ /g,".")+" ",t=jQuery(this).find(".fusion-column");jQuery(n).infinitescroll({navSelector:o+".fusion-infinite-scroll-trigger",nextSelector:o+"a.pagination-next",itemSelector:o+"div.pagination .current, "+o+"article.post",loading:{finishedMsg:fusionRecentPostsVars.infinite_finished_msg,msg:jQuery('<div class="fusion-loading-container fusion-clearfix"><div class="fusion-loading-spinner"><div class="fusion-spinner-1"></div><div class="fusion-spinner-2"></div><div class="fusion-spinner-3"></div></div><div class="fusion-loading-msg">'+fusionRecentPostsVars.infinite_loading_text+"</div>")},maxPage:e.data("pages")?e.data("pages"):void 0,errorCallback:function(){}},function(o){jQuery(o).hide(),imagesLoaded(o,function(){jQuery(o).fadeIn()}),fusionInitPostFlexSlider(),jQuery(o).each(function(){jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),i=e.find(".current").html(),e.find(".current").remove(),e.data("pages")==i&&(e.find(".fusion-loading-container").hide(),e.find(".fusion-load-more-button").hide()),"individual"!==fusionRecentPostsVars.lightbox_behavior&&t.find(".fusion-post-slideshow").length||(window.avadaLightBox.activate_lightbox(jQuery(o)),t=n.find(".post")),window.avadaLightBox.refresh_lightbox(),setTimeout(function(){jQuery(window).trigger("resize",[!1])},500),jQuery.isFunction(jQuery.fn.initWaypoint)&&jQuery(window).initWaypoint(),"undefined"!=typeof niceScrollReInit&&niceScrollReInit()}),jQuery(e).hasClass("fusion-recent-posts-load-more")&&(jQuery(n).infinitescroll("unbind"),jQuery(e).find(".fusion-load-more-button").on("click",function(i){i.preventDefault(),jQuery(n).infinitescroll("retrieve")})),1===parseInt(e.data("pages"),10)&&(e.find(".fusion-loading-container").hide(),e.find(".fusion-load-more-button").hide())})});