(function(){var d=window,e=document,f="documentElement",g="scrollTop",h="prototype",i="body",j="",k="load",l="number",m="on",n="pagespeed_lazy_position",p="pagespeed_lazy_src",q="position",r="relative",s="scroll";d.pagespeed=d.pagespeed||{};var t=d.pagespeed,u=function(a){this.b=[];this.d=0;this.a=!1;this.h=a};u[h].l=function(){var a=0;typeof d.pageYOffset==l?a=d.pageYOffset:e[i]&&e[i][g]?a=e[i][g]:e[f]&&e[f][g]&&(a=e[f][g]);var b=d.innerHeight||e[f].clientHeight||e[i].clientHeight;return{top:a,bottom:a+b,height:b}};
u[h].g=function(a){var b=a.getAttribute(n);if(b)return parseInt(b,0);var b=a.offsetTop,c=a.offsetParent;c&&(b+=this.g(c));b=Math.max(b,0);a.setAttribute(n,b);return b};u[h].k=function(a){var b=this.g(a);return{top:b,bottom:b+a.offsetHeight}};u[h].j=function(a,b){if(a.currentStyle)return a.currentStyle[b];if(e.defaultView&&e.defaultView.getComputedStyle){var c=e.defaultView.getComputedStyle(a,null);if(c)return c.getPropertyValue(b)}return a.style&&a.style[b]?a.style[b]:j};
u[h].i=function(a){if(this.j(a,q)==r)return!0;var b=this.l(),c=a.getBoundingClientRect();c?(a=c.top-b.height,b=c.bottom):(c=this.k(a),a=c.top-b.bottom,b=c.bottom-b.top);return a<=this.d&&0<=b+this.d};u[h].f=function(a){var b=this;d.setTimeout(function(){var c=a.getAttribute(p);null!=c&&((b.a||b.i(a))&&a.src==b.h?(a.src=c,a.removeAttribute(p)):b.b.push(a))},100)};u[h].loadIfVisible=u[h].f;u[h].m=function(){this.a=!0;this.c()};u[h].loadAllImages=u[h].m;
u[h].c=function(){var a=this.b,b=a.length;this.b=[];for(var c=0;c<b;++c)this.f(a[c])};t.e=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(m+b,c);else{var o=a[m+b];a[m+b]=function(){c.call(this);o&&o.call(this)}}};t.n=function(a,b){var c=new u(b);t.lazyLoadImages=c;t.e(d,k,function(){d.setTimeout(function(){c.a=a;c.c()},200)});a||t.e(d,s,function(){c.c()})};t.lazyLoadInit=t.n;})();
