The function "show(N)" changes the source of the image. The images in the document form an array, images[i]. The function show() changes the src property of the image, which loads the image from cache.
<SCRIPT>
coaster= new Image()
coaster.src="gifs/coaster.gif"
blank= new Image()
blank.src="gifs/GreenBlank.gif"
function show(N){
document.images[0].src=N.src
}
</SCRIPT>