/*
	*************************************************
	*	Randomizer script for header thumbnails		*
	*	Based on code from www.javascriptworld.com	*
	*	Created on 2/28/2006 by Dan Rouw			*
	*************************************************
*/

function choosePix() {
	if (document.images) {
		randomNum1 = Math.floor((Math.random() * image.length))
		//document.thumb1.src = image[randomNum1]
		document.write('<a href="gallery.html?pic=' + randomNum1 + '"><img src="images/thumbs/'+image[randomNum1]+'.jpg" alt="view this piece" width="100" height="100"></a>');
		
		randomNum2 = Math.floor((Math.random() * image.length))
		while (randomNum2 == randomNum1) {
			randomNum2 = Math.floor((Math.random() * image.length))
		}
		//document.thumb2.src = image[randomNum2]
		document.write('<a href="gallery.html?pic=' + randomNum2 + '"><img src="images/thumbs/'+image[randomNum2]+'.jpg" alt="view this piece" width="100" height="100"></a>');
		
		randomNum3 = Math.floor((Math.random() * image.length))
		while (randomNum3 == randomNum1 || randomNum3 == randomNum2) {
			randomNum3 = Math.floor((Math.random() * image.length))
		}
		//document.thumb3.src = image[randomNum3]
		document.write('<a href="gallery.html?pic=' + randomNum3 + '"><img src="images/thumbs/'+image[randomNum3]+'.jpg" alt="view this piece" width="100" height="100"></a>');
	}
}

