
var bingowords = new Array (
	'photos/performances/2009-07-19-littleborough-rushcart-thumb.jpg',
	'photos/performances/2009-07-19-littleborough-rushcart-thumb.jpg',
	'photos/performances/2009-06-27-hebden-bridge-arts-week-thumb.jpg',
	'photos/performances/2009-06-29-whittaker-moss-thumb.jpg',
	'photos/performances/2009-08-30-littleborough-arts-week-thumb.jpg',
	'photos/performances/2009-09-05-littleborough-arts-week-2.jpg',
	'photos/performances/2009-09-10-todmorden-japan-day-thumb.jpg',
	'photos/performances/2009-10-10-blackpool-world-ju-jitsu-grading-thumb.jpg',
	'photos/performances/2008-05-17-clitheroe-music-festival.jpg',
	'photos/performances/2008-06-14-norden-carnival.jpg',
	'photos/performances/2008-06-29-dr-kershaws-hospice.jpg',
	'photos/performances/2008-07-12-st-matthews.jpg',
	'photos/performances/2008-07-26-rochdale-feelgood-festival',
	'photos/performances/2008-08-31-littleborough-arts-week.jpg',
	'photos/performances/2008-09-Keri-Ann-Payne-thumb.jpg',
	'photos/2010-07-new-happi-coats.jpg',
	'photos/2010-07-new-odaiko.jpg',
	'photos/performances/2009-06-20-norden-carnival-thumb.jpg',
	'photos/performances/2011-07-31-littleborough-rushcart-festival.jpg',
	'photos/performances/2009-07-18-middleton-popstars.jpg',
	'photos/performances/2010-10-17-japan-day.jpg',
	'photos/performances/2011-07-17-dr-kershaws-hospice.jpg'
);

function Random_Home_Photo() {

	PhotoSrcOne = document.getElementById('photo1').src.replace(/^.*photos/,"photos");
	PhotoSrcTwo = document.getElementById('photo2').src.replace(/^.*photos/,"photos");
	PhotoSrcThree = document.getElementById('photo3').src.replace(/^.*photos/,"photos");

	
	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)
	{
		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;
}





