// save this file as images.js or something with a .js extension
//incorporate this file into the <HEAD> section of your page, below
// the <META> and <TITLE> with the following tag:
// <SCRIPT Type="text/javascript" Language="Javascript" Src="images.js"></SCRIPT>
// Sample Javascript preloads
//image preloads

apple1 = new Image();
apple1.src = "images/grnbutton.gif";
apple2 = new Image();
apple2.src = "images/redbutton.gif";

// Sample swap image function

function swapImage(img1, imgname)
{
document.images[imgname].src = img1.src;
}

