/* JMFLayoutBuilder */
jQuery(document).ready(function(a){var t="default",i="normal",d={wide:1200,normal:980,xtablet:768,tablet:481,mobile:0},e=a('[class*="span"], .jm-responsive');e.each(function(){var t=a(this);t.data(),t.removeAttr("data-default data-wide data-normal data-xtablet data-tablet data-mobile"),t.removeClass("jm-responsive"),t.data("default")||t.data("default",t.attr("class"))});var o,n=function(){a("body").css("overflow","hidden");var o=a(window).innerWidth();a("body").css("overflow","");for(var n in d)if(o>=d[n]){i=n;break}i!=t&&(e.each(function(){var d=a(this);(d.data(i)||d.data(t))&&(d.data(t)?d.removeClass(d.data(t)):d.removeClass(d.data("default")),d.data(i)?d.addClass(d.data(i)):d.addClass(d.data("default")))}),t=i)};a(window).resize(function(){window.clearTimeout(o),o=window.setTimeout(n,100)}),n();var r=function(t){var i=a(window).scrollTop()+a(window).height();jQuery("img[data-original], iframe[data-original]").each(function(){var a=jQuery(this);if(a.offset().top<i||t&&a.is(":hidden")){a.data();var d=a.data("original");a.attr("data-lazy","loaded"),a.removeAttr("data-original"),a.attr("src",d)}}),jQuery("img[data-original], iframe[data-original]").length||(a(window).off("scroll",r),a(window).off("resize",r),a(document).off("click",r))};a(window).on("scroll",r.bind(this,!1)),a(window).on("resize",r.bind(this,!1)),a(document).on("click",r.bind(this,!0)),r(!1)});
