
var bingowords = new Array (
	'gallery/students-work/020320101353.jpg',
	'gallery/students-work/091020102109.jpg',
	'gallery/students-work/08072009443.jpg',
	'gallery/courses/diane.jpg',
	'gallery/courses/young-entrepreneur.jpg',
	'gallery/courses/paul-and-jenny.jpg',
	'gallery/courses/making-ring.jpg'
);


function Random_Home_Photo() {

	PhotoSrcOne = document.getElementById('photo1').src.replace(/^.*gallery/,"gallery");
//	PhotoSrcTwo = document.getElementById('photo2').src.replace(/^.*gallery/,"gallery");
	PhotoSrcThree = document.getElementById('photo3').src.replace(/^.*gallery/,"gallery");

	
	NewPhotoSrcOne = PhotoSrcOne;
	
	while (PhotoSrcOne == NewPhotoSrcOne)
	{
		j = Math.floor(Math.random() * bingowords.length);
		
		NewPhotoSrcOne = bingowords[j];
	}

/*
	NewPhotoSrcTwo = PhotoSrcTwo;
	
	while (PhotoSrcTwo == NewPhotoSrcTwo || NewPhotoSrcTwo == NewPhotoSrcOne)
	{
		j = Math.floor(Math.random() * bingowords.length);
		
		NewPhotoSrcTwo = bingowords[j];
	}
*/
	NewPhotoSrcThree = PhotoSrcThree;

//	while (PhotoSrcThree == NewPhotoSrcThree || NewPhotoSrcThree == NewPhotoSrcTwo || NewPhotoSrcThree == NewPhotoSrcOne)
	while (PhotoSrcThree == NewPhotoSrcThree || NewPhotoSrcThree == NewPhotoSrcOne)
	{
		j = Math.floor(Math.random() * bingowords.length);
		
		NewPhotoSrcThree = bingowords[j];
	}

	
	document.getElementById('photo1').src = NewPhotoSrcOne;
//	document.getElementById('photo2').src = NewPhotoSrcTwo;
	document.getElementById('photo3').src = NewPhotoSrcThree;


}





