var rand1 = 0;
var useRand = 0;

images = new Array;
images[1] = new Image();
images[1].src = "../images/main_pict.jpg";
images[2] = new Image();
images[2].src = "../images/main_pict1.jpg";
images[3] = new Image();
images[3].src = "../images/main_pict2.jpg";
images[4] = new Image();
images[4].src = "../images/main_pict3.jpg";
images[5] = new Image();
images[5].src = "../images/main_pict4.jpg";
images[6] = new Image();
images[6].src = "../images/main_pict5.jpg";

function swapPic() {
var imgnum = images.length - 1;
do {
var randnum = Math.random();
rand1 = Math.round((imgnum - 1) * randnum) + 1;
} while (rand1 == useRand);
useRand = rand1;
document.randimg.src = images[useRand].src;
}// JavaScript Document


		function flipAnswer(answerId) {
			thisAnswer = document.getElementById(answerId);
			if (thisAnswer.style.display == "none") {
				thisAnswer.style.display = "block";
			} else {
				thisAnswer.style.display = "none";
			}
			return false;
		}
		