//Random image
img01 = new Array('perthme_300')
imgcount = img01.length

function selectimg(){
if (document.images){
randomNum = Math.floor ((Math.random() * imgcount))
document.theImage.src = 'gallery/images/'+img01[randomNum]+'.jpg'
}
}

//Preload
function preload(){
img1 = new Image();
img1.src = "gallery/images/backgrey.gif";
img2 = new Image();
img2.src = "gallery/images/nextgrey.gif";
}