window.onload = randPic;

var picArray = new Array("images/right_img1.jpg", "images/right_img2.jpg", "images/right_img3.jpg");

function randPic() {
	randomNum = Math.floor((Math.random() * picArray.length));
	document.getElementById("lessonPic").src = picArray[randomNum];
}