/* v1.2 */ /* https://github.com/farinspace/jquery.imgpreload */
if("undefined"!=typeof jQuery){(function(a){a.imgpreload=function(b,c){c=a.extend({},a.fn.imgpreload.defaults,c instanceof Function?{all:c}:c);if("string"==typeof b){b=[b]}var d=[];var e=b.length;for(var f=0;f<e;f++){var g=new Image;a(g).bind("load error",function(b){d.push(this);a.data(this,"loaded","error"==b.type?false:true);if(c.each instanceof Function){c.each.call(this)}if(d.length>=e&&c.all instanceof Function){c.all.call(d)}});g.src=b[f]}};a.fn.imgpreload=function(b){var c=[];this.each(function(){c.push(a(this).attr("src"))});a.imgpreload(c,b);return this};a.fn.imgpreload.defaults={each:null,all:null}})(jQuery)}
