// pre-load a random image - the constant in the definition of irandom is the number of images - filenames start at img1.jpg and go up to imgNNN.jpg
// 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 - they must all be the same

var irandom=Math.floor(Math.random()*184)+1
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
}

