
var bingowords = new Array (
	'gallery/sails/sails.jpg',
	'gallery/split/tapertri.jpg',
	'gallery/split/n2n.jpg',
	'gallery/split/d2f.jpg',
	'gallery/split/channel.jpg'
);


function Random_Home_Photo() {

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

//	alert(PhotoSrcOne);
//	alert(PhotoSrcTwo);
	
	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];
	}
	
	document.getElementById('photo1').src = NewPhotoSrcOne;
	document.getElementById('photo2').src = NewPhotoSrcTwo;

	
	
/*
	smallWidthPlusBit = smallWidth + 10;
	
	if ( document.getElementById(photoID).width < smallWidthPlusBit )
	{
		document.getElementById(photoID).src=imageDir + imageName + "-big.jpg";
		document.getElementById(photoID).width=largeWidth;
		document.getElementById(photoID).height=largeHeight;
	}
	else
	{
		document.getElementById(photoID).src=imageDir + imageName + ".jpg";
		document.getElementById(photoID).width=smallWidth;
		document.getElementById(photoID).height=smallHeight;
	}
*/

}




/*
for (var i = 0; i < bingowords.length; i++) {
   temp = bingowords[i];
   j = Math.round(Math.random() * bingowords.length);
   bingowords[i] = bingowords[j];
   bingowords[j] = temp;
}

bingowords[Math.floor(Math.random() * 25)] = "<FONT COLOR=#FF0000>BINGO</FONT>";

for (var i = 0; i < 5; i++) {
   document.writeln ("<TR VALIGN=TOP ALIGN=CENTER>");
   for (var j = 0;  j < 5;  j++) {
     document.writeln ("<TD>",
          bingowords[i*5 + j],
          "</TD>");
   }
   document.writeln ("</TR>");
}
*/




