jquery.fn.fusioncalculateblogequalheights=function(){var a=math.round(1/(jquery(this).children(":visible").first()[0].getboundingclientrect().width/jquery(this).width())),b=jquery(this).find(".fusion-post-grid:visible").not(".invisible-after-ajax").length;jquery(this).find(".invisible-after-ajax").hide().removeclass("invisible-after-ajax"),1
'+fusionblogvars.infinite_blog_text+"
")},maxpage:g.data("pages")?g.data("pages"):void 0,errorcallback:function(){g.find(".fusion-post-grid").css("height",""),jquery(g).hasclass("isotope")&&jquery(g).isotope()}},function(c){var f;jquery(g).hasclass("fusion-blog-layout-timeline")&&(jquery(c).first(".fusion-timeline-date").text()==a&&jquery(c).first(".fusion-timeline-date").remove(),a=jquery(g).find(".fusion-timeline-date").last().text(),jquery(g).find(".fusion-timeline-date").each(function(){jquery(this).next(".fusion-collapse-month").append(jquery(this).nextuntil(".fusion-timeline-date",".fusion-post-timeline"))}),b||settimeout(function(){jquery(g).find(".fusion-collapse-month").hide()},200),settimeout(function(){jquery(g).find(".fusion-collapse-month").each(function(){jquery(this).children().length||jquery(this).remove()})},10),jquery(g).find(".fusion-timeline-date").unbind("click"),jquery(g).find(".fusion-timeline-date").click(function(){jquery(this).next(".fusion-collapse-month").slidetoggle()})),f="false"!==fusionblogvars.flex_smoothheight,jquery(g).hasclass("fusion-blog-layout-grid")&&jquery().isotope&&(jquery(c).hide(),imagesloaded(c,function(){jquery(c).fadein(),jquery(g).hasclass("isotope")&&(g.hasclass("fusion-portfolio-equal-heights")&&g.find(".fusion-post-grid").css("height",""),jquery(g).isotope("appended",jquery(c)),jquery(g).isotope()),jquery('[data-spy="scroll"]').each(function(){jquery(this).scrollspy("refresh")})}),f=!1),jquery(g).find(".flexslider").flexslider({slideshow:boolean(number(fusionblogvars.slideshow_autoplay)),slideshowspeed:fusionblogvars.slideshow_speed,video:!0,smoothheight:f,pauseonhover:!1,usecss:!1,prevtext:"",nexttext:"",start:function(a){a.removeclass("fusion-flexslider-loading"),void 0!==a.slides&&0!==a.slides.eq(a.currentslide).find("iframe").length?(number(fusionblogvars.pagination_video_slide)?jquery(a).find(".flex-control-nav").css("bottom","-20px"):jquery(a).find(".flex-control-nav").hide(),number(fusionblogvars.status_yt)&&!0===window.yt_vid_exists&&window.ytready(function(){new yt.player(a.slides.eq(a.currentslide).find("iframe").attr("id"),{events:{onstatechange:onplayerstatechange(a.slides.eq(a.currentslide).find("iframe").attr("id"),a)}})})):number(fusionblogvars.pagination_video_slide)?jquery(a).find(".flex-control-nav").css("bottom","0px"):jquery(a).find(".flex-control-nav").show(),jquery.waypoints("viewportheight"),jquery.waypoints("refresh")},before:function(a){0!==a.slides.eq(a.currentslide).find("iframe").length&&(number(fusionblogvars.status_vimeo)&&-1!==a.slides.eq(a.currentslide).find("iframe")[0].src.indexof("vimeo")&&new vimeo.player(a.slides.eq(a.currentslide).find("iframe")[0]).pause(),number(fusionblogvars.status_yt)&&!0===window.yt_vid_exists&&window.ytready(function(){new yt.player(a.slides.eq(a.currentslide).find("iframe").attr("id"),{events:{onstatechange:onplayerstatechange(a.slides.eq(a.currentslide).find("iframe").attr("id"),a)}})}))},after:function(a){0!==a.slides.eq(a.currentslide).find("iframe").length?(number(fusionblogvars.pagination_video_slide)?jquery(a).find(".flex-control-nav").css("bottom","-20px"):jquery(a).find(".flex-control-nav").hide(),number(fusionblogvars.status_yt)&&!0===window.yt_vid_exists&&window.ytready(function(){new yt.player(a.slides.eq(a.currentslide).find("iframe").attr("id"),{events:{onstatechange:onplayerstatechange(a.slides.eq(a.currentslide).find("iframe").attr("id"),a)}})})):number(fusionblogvars.pagination_video_slide)?jquery(a).find(".flex-control-nav").css("bottom","0px"):jquery(a).find(".flex-control-nav").show(),jquery('[data-spy="scroll"]').each(function(){jquery(this).scrollspy("refresh")})}}),jquery(c).each(function(){jquery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitvids()}),d=g,jquery(g).hasclass("fusion-blog-layout-timeline")&&(d=jquery(g).parents(".fusion-posts-container-infinite")),e=d.find(".current").html(),d.find(".current").remove(),d.data("pages")==e&&(d.parent().find(".fusion-loading-container").hide(),d.parent().find(".fusion-load-more-button").hide()),"individual"!==fusionblogvars.lightbox_behavior&&h.find(".fusion-post-slideshow").length||(window.avadalightbox.activate_lightbox(jquery(c)),h=g.find(".post")),window.avadalightbox.refresh_lightbox(),jquery(window).trigger("resize",[!1]),settimeout(function(){jquery(window).trigger("resize",[!1])},500),jquery.isfunction(jquery.fn.initwaypoint)&&jquery(window).initwaypoint(),"undefined"!=typeof nicescrollreinit&&nicescrollreinit()}),(jquery(g).hasclass("fusion-blog-archive")&&"load_more_button"===fusionblogvars.blog_pagination_type||jquery(g).hasclass("fusion-posts-container-load-more")||jquery(g).hasclass("fusion-blog-layout-timeline")&&jquery(g).parent().hasclass("fusion-posts-container-load-more"))&&(jquery(g).infinitescroll("unbind"),f=jquery(g).hasclass("fusion-blog-archive")?jquery(g).parent().find(".fusion-load-more-button"):jquery(g).parents(".fusion-blog-archive").find(".fusion-load-more-button"),f.on("click",function(a){a.preventdefault(),jquery(g).infinitescroll("retrieve"),jquery(g).hasclass("fusion-blog-layout-grid")})),d=g,jquery(g).hasclass("fusion-blog-layout-timeline")&&jquery(g).parents(".fusion-blog-layout-timeline-wrapper").length&&(d=jquery(g).parents(".fusion-posts-container-infinite")),1===parseint(d.data("pages"),10)&&(d.parent().find(".fusion-loading-container").hide(),d.parent().find(".fusion-load-more-button").hide())})});