function doPreload()
{
var the_images = new Array('image2.gif','image1.gif');
preloadImages(the_images);
}
function preloadImages(the_images_array) {
for(loop = 0; loop < the_images_array.length; loop++)
{
var an_image = new Image();
an_image.src = the_images_array[loop];
}
}

function changeIt(ImageToChange, ImageToShow) {
if (document.images) { document[ImageToChange].src = ImageToShow; } }
function bar(message) {
if (document.images) { window.status = message; return true } }
if (document.images) {
i1 = new Image;
i1.src = "image2.gif";
}

