// JavaScript Document

// although there are 6 photos total, we wan't the random photos to only include 1-4

// <img src="images/photo.jpg" alt="Radovich Mediation Group">
function randomPhoto(x) {
	if (x) { numPhotos = x } else { numPhotos = 4 };
	var randomNum = Math.ceil(Math.random() * (numPhotos)); // notice ceiling is used here!
	document.write("<img src='images/photo" + randomNum + ".jpg' border=0 alt='Radovich Mediation Group'>");
}

function XrandomPhoto(x,y,z) { // assumes only 3 options!
	// declare the 'random graphic' array
	var Photo = new Array(x,y,z);
	// get a random value from the array
	var numPhoto = Math.floor(Math.random() * (Photo.length));
	document.write("<img src=images/" + Photo[numPhoto] + " border=0 width='504' height='184'>");
}
