// cache.js /* * Cache the specified image. This loads the image as the page * loads, so that when it is used later (such as for a rollover effect), * the image has already been loaded. */ function cacheImage(imageName) { var image = new Image(); image.src = imageName; }