function preloadImages(arrayOfImages) {
    jQuery(arrayOfImages).each(function () {
        jQuery('<img/>')[0].src = this;
        // Alternatively you could use:
        // (new Image()).src = this;
    });
}
