/* ImagePreloader.js - schedules images to be preloaded
 *
 * The author of this program, Safalra (Stephen Morley), irrevocably releases
 * all rights to this program, with the intention of it becoming part of the
 * public domain. Because this program is released into the public domain, it
 * comes with no warranty either expressed or implied, to the extent permitted
 * by law.
 *
 * For more public domain JavaScript code by the same author, visit:
 * http://www.safalra.com/web-design/javascript/
 */

var ImagePreloader=new function(){var _1=[];this.schedule=function(_2,_3,_4,_5){OnloadScheduler.schedule(createPreloadClosure(_2,_4,_5),_3);};function createPreloadClosure(_6,_7,_8){return function(){var _9=new Image();if(_7 instanceof Function){_9.onload=_7();}if(_8 instanceof Function){_9.onerror=_8();}_9.src=_6;_1.push(_9);};}}();

