//set the absolute path to the photos
var linkPath = "/images/photos/"
//will store the actual image to display
var randomImage
//will store/preload the actual image objects
var imageArray = new Array()
//get the list of images
var imageList = new Array("1", "2")

//create an array of image paths
for (i in imageList){
  imageArray[i] = linkPath + "disclaimer" + imageList[i] + ".jpg"
}
scrambleImages()

function scrambleImages() {
	randomImage = parseInt(Math.random() * 10)
	while((randomImage > 1) || (isNaN(randomImage))) {
		randomImage = parseInt(Math.random() * 10)
		randomImage = (isNaN(randomImage) ? 0 : randomImage)
	}
	document.getElementById('photo-space').style.background = "#666666 url(" + imageArray[randomImage] + ") top left no-repeat"
}

