jQuery(window).load(function(){jQuery(".fusion-gallery-layout-grid, .fusion-gallery-layout-masonry").each(function(){var a,b=jQuery(this);a=b.find(".fusion-gallery-column"),b.css("height",b.height()),a.hide(),imagesLoaded(a,function(){b.css("height",""),a.fadeIn(),b.isotope({layoutMode:"packery",itemSelector:".fusion-gallery-column",isOriginLeft:!jQuery("body.rtl").length,resizable:!0}),jQuery(window).trigger("resize"),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})})});