function getRandomPhoto()
{
	var randomId = 0;
	var photos = new Array(4);
	var randomPhoto = document.getElementById("randomPhoto");
	
	// create array of available photos
	photos[0] = "220x173_baby.jpg";
	photos[1] = "220x173_generations.jpg";
	photos[2] = "220x173_motherWithBaby.jpg";
	photos[3] = "220x173_motherWithDaughter.jpg";
	
	// generate a random number based on the length of the array
	randomId = Math.floor(Math.random() * photos.length);
	
	// reset the 'src' attribute of the image tag below
	randomPhoto.src = "/assets/img/photos/" + photos[randomId];
}