// pre-load a random image - the number is one less than the number of images because the start at zero
// When changing galleries you will need to update the directory and file prefix
// Also watch whether the file type is jpg or JPG or something else!

var irandom=Math.floor(Math.random()*10)
var image=new Image()
var file = "/images/FrontPage/img"+irandom+".jpg"
image.src=file
// document.write("Loading "+file)

// function that will show the random image.

function showit(){
//if browser does not support the image object, exit.
//if (!document.images) return
document.getElementById('showimage').src=image.src
}
