// JavaScript Document
window.onload = choosePic;

var myPix = new
Array("images/home1.jpg","images/home2.jpg","images/home3.jpg");

function choosePic() {
	randomNum = Math.floor((Math.random() * myPix.length));
	document.getElementById("mainPicture").src = myPix[randomNum];
}
