// JavaScript Document


function setRandom(imageId){

            // random image function, by Simon Watt simon@ingenuity.co.nz

            var ImagePath;   

            var imageArray = new Array("images/topimage1.jpg","images/topimage2.jpg","images/topimage3.jpg","images/topimage4.jpg","images/topimage5.jpg","images/topimage6.jpg","images/topimage7.jpg","images/topimage8.jpg");

            var ranNo = Math.floor(Math.random() * (imageArray.length));    

            var imagePath = imageArray[ranNo];

            document.getElementById(imageId).src = imagePath;       

}
