// JavaScript Document


//list the array of images
var	myQuotes = new Array();
	myQuotes[0] = "../quotes/1.gif";
	myQuotes[1] = "../quotes/2.gif";
	myQuotes[2] = "../quotes/3.gif";
	myQuotes[3] = "../quotes/4.gif";
	myQuotes[4] = "../quotes/5.gif";

/*generate a random number between 0 and 1 and multiply it by the number of photos in my array (in this case, 5). 
Because it is Math.floor, it rounds down, so you'll get 0, 1, 2, 3, or 4, which will go in the square brackets
then find the image in the document with the id "myQuote" and replace it with the randomly picked image*/
function chooseQuote() {
	var randomNum = Math.floor((Math.random() * myQuotes.length));
	document.getElementById("newQuote").src = myQuotes[randomNum];
}

