!function(c){function n(e){if(void 0===e)throw"Must specify a css attribute name";var t=this.getElementsByTagName("*"),r=[];if(c("body")[0].currentStyle)for(var a,o=function(e){e=function(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}(e.replace(/-/g," ")).replace(/ /g,"");return e.substr(0,1).toLowerCase()+e.substr(1)}(e),n=0,i=t.length;n<i;n++)(a=t[n]).currentStyle&&("none"==a.currentStyle[o]||r.push(a));else if(window.getComputedStyle)for(n=0,i=t.length;n<i;n++)a=t[n],"none"==document.defaultView.getComputedStyle(a,null).getPropertyValue(e)||r.push(a);return r}c.fn.imageready||(c.fn.imageready=function(r,t){void 0===(t=t||{}).allowTimeout&&(t.allowTimeout=c.fn.imageready.allowTimeout,t.timeoutDuration=c.fn.imageready.timeoutDuration);var a,u=function(e){var r=e.find("img").add(e.filter("img"));if(e.each(function(){c(n.call(this,"background-image")).each(function(){var e=c(new Image),t=c(this).css("background-image"),t=/url\(([^)]*)\)/g.exec(t);null!==t&&(t=t[1].replace(/[\"\']/g,""),e.attr("loading","eager"),e.attr("src",t),r=r.add(e))})}),(r.loaded=0)!==r.length)return r}(this);return u?(u.each(function(){var e,t,r,a,o,n,i=c(this);if(t=(e=i)[0],r=!e.attr("src"),a="lazy"===e.attr("loading"),o=t.complete,n=4===t.readyState,e=0<e.height(),t=void 0===t.naturalHeight||0<t.naturalHeight,r||a||o||n||e&&t)return u.loaded++;i.one("load",l),i.one("error",l),i.attr("src",i.attr("src"))}),u.length<=u.loaded?l():void(t.allowTimeout&&(a=setTimeout(o,t.timeoutDuration)))):r();function o(){clearTimeout(a);var t=[];return u.each(function(){var e;this._isImageReadyComplete||(t.push(this),e=c(this),console.error("image not loaded in time",e.attr("src")))}),r(c(t))}function l(e){if(clearTimeout(a),e&&e.target&&(u.loaded++,e.currentTarget._isImageReadyComplete=!0),u.length<=u.loaded)return r();t.allowTimeout&&(a=setTimeout(o,t.timeoutDuration))}},c.fn.imageready.timeoutDuration=1,c.fn.imageready.allowTimeout=!1)}(jQuery);