http://www.javascriptkit.com/javatutors/preloadimagesplus.shtml

http://fragged.org/preloading-images-using-javascript-the-right-way-and-without-frameworks_744.html