!function(t,e,o,i){var r=t(e);t.fn.lazyload=function(i){function n(){var e=0;l.each(function(){var o=t(this);if(!a.skip_invisible||o.is(":visible"))if(t.abovethetop(this,a)||t.leftofbegin(this,a));else if(t.belowthefold(this,a)||t.rightoffold(this,a)){if(++e>a.failure_limit)return!1}else o.trigger("appear"),e=0})}var f,l=this,a={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:e,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsBAMAAACLU5NGAAAAHlBMVEX////m5ub6+vrs7Ozq6ury8vL39/fv7+/09PTu7u6Wca/2AAADkUlEQVR42u2cP2/TYBDGnf/JltdxSrslVYU6JurEZoPEXA/sLoI9WZjbfoJWiO9LVRO5ti4R+HLHQ3l+Y3M6/xTbb95zfRcRQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEPKqubzKwhFJru6PYfUlHJ2PequLYMB7rdU4mHCr1NoGE97orAbBiGuV1k0w4kSlFcyAPIe6s7gMZsQKrbtghO7iegxmnEFe8Zprvhsq/hetBbWoVUItalHrN/hxfv41Q9NKiucsOZbWk1VJDqWV7vIMkbReFF1LIK3Vi0Q4WkmtsIPRqtUQIxitVS0TjFb9sFsQraRRcYJozeupOiBajap5hKk1ANGa/hNaXUytMYgW6LUFeic21q0+iBboKt84bI6i9YC5gwDdbyW1SwtGKzxA7uVfVj4XQFrV19VFqhNDsoCsqsNsUVVjjlqzT1k4zLfz7uVjcNYqhPVIwFRL/jXO8LSmv9ZJMK3bp5AJnFbyHAKnFZdrEprWqtx2ommVeYdgWrvN+hpLa1cILrG0bncVIJRWcuj/7PO3W0cteat+Jx1y6Kglb4n7onL+d7QWB6KuS1k3LbmWf9z3q+SvNT1QbcWVrLdWceAh0XX1ENdZK6nFZdJnY0ct+enVjfjZ2l9rU4vricv/0l9rsT9uVl1y3lrzRuBWvEczb620EdgR79Glt1bRCByLD0RGzlqzqEkmfpHOWnHUZCke7cZXaxM1mYg3Q89Xa7E/MhX+6qQ1F0Jz+bG3p1YqhPZF476nViGEDquSVkjgoTUTY9fisbZ+WvH+l8VPowYdP62NGDsq644GQz+tSEb+aO2lNd/ftnEinFsvrTSSGYu36MBLq9gb/TkSyHy0Zop2DkOtWNH8YqbVohHGR0vRWGWodfrHSXoeWqkiiYGWIllurzVrkaVvrxUrsphpteyTy821WqXp2Gq1bZMbWmul7fKsLbT0qZa2WmeKXlUzLUVjaGagpVgefLoLFB3HZlqqLtrMUGul6GY31Fq015pYaelajrt2WnGkIDfTmmq0OphaE0ytgZnWiUarZ6aVKKwsX7XeKLQyO62kUMzosdwGfrhqRwb13mkJYKcwtahFLWpRi1rUohaIFuj8LVQt0CFqoCPnQAf0gY4zBB3+iDoqE3SwKOgYVtShtaAjflEHIkfR5ffjjo9+dx8RQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEPKa+Qm2vSsN/O0YCwAAAABJRU5ErkJggg=="};return i&&(void 0!==i.failurelimit&&(i.failure_limit=i.failurelimit,delete i.failurelimit),void 0!==i.effectspeed&&(i.effect_speed=i.effectspeed,delete i.effectspeed),t.extend(a,i)),f=void 0===a.container||a.container===e?r:t(a.container),0===a.event.indexOf("scroll")&&f.on(a.event,function(){return n()}),this.each(function(){var e=this,o=t(e);e.loaded=!1,void 0!==o.attr("src")&&o.attr("src")!==!1||o.is("img")&&o.attr("src",a.placeholder),o.one("appear",function(){if(!this.loaded){if(a.appear){var i=l.length;a.appear.call(e,i,a)}t("<img />").one("load",function(){var i=o.attr("data-"+a.data_attribute);if(o.hide(),o.is("img")?o.attr("src",i):o.css("background-image","url('"+i+"')"),o[a.effect](a.effect_speed),e.loaded=!0,l=t(t.grep(l,function(t){return!t.loaded})),a.load){var r=l.length;a.load.call(e,r,a)}}).attr("src",o.attr("data-"+a.data_attribute))}}),0!==a.event.indexOf("scroll")&&o.on(a.event,function(){e.loaded||o.trigger("appear")})}),r.on("resize",function(){n()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&r.on("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&l.each(function(){t(this).trigger("appear")})}),t(o).ready(function(){n()}),this},t.belowthefold=function(o,i){return(void 0===i.container||i.container===e?(e.innerHeight?e.innerHeight:r.height())+r.scrollTop():t(i.container).offset().top+t(i.container).height())<=t(o).offset().top-i.threshold},t.rightoffold=function(o,i){return(void 0===i.container||i.container===e?r.width()+r.scrollLeft():t(i.container).offset().left+t(i.container).width())<=t(o).offset().left-i.threshold},t.abovethetop=function(o,i){return(void 0===i.container||i.container===e?r.scrollTop():t(i.container).offset().top)>=t(o).offset().top+i.threshold+t(o).height()},t.leftofbegin=function(o,i){return(void 0===i.container||i.container===e?r.scrollLeft():t(i.container).offset().left)>=t(o).offset().left+i.threshold+t(o).width()},t.inviewport=function(e,o){return!(t.rightoffold(e,o)||t.leftofbegin(e,o)||t.belowthefold(e,o)||t.abovethetop(e,o))},t.extend(t.expr[":"],{"below-the-fold":function(e){return t.belowthefold(e,{threshold:0})},"above-the-top":function(e){return!t.belowthefold(e,{threshold:0})},"right-of-screen":function(e){return t.rightoffold(e,{threshold:0})},"left-of-screen":function(e){return!t.rightoffold(e,{threshold:0})},"in-viewport":function(e){return t.inviewport(e,{threshold:0})},"above-the-fold":function(e){return!t.belowthefold(e,{threshold:0})},"right-of-fold":function(e){return t.rightoffold(e,{threshold:0})},"left-of-fold":function(e){return!t.rightoffold(e,{threshold:0})}})}(jQuery,window,document);