/*  JavaScript Document
	Rotatting Images
	This code is based on the work of Dori Smith of Lynda.com in the video lecture: Essential Javascript
	Student: Betsy Manning
	Basic Web scripting
*/

window.onload = choosePic;('hover_01.jpg','hover_02.jpg','hover_03.jpg','hover_04.jpg','hover_05.jpg','hover_06.jpg','hover_07.jpg','hover_08.jpg','hover_09.jpg','pitchpipe.jpg','hover_10.jpg');

var myPics = new Array("rhc1.jpg","rhc2.jpg","rhc3.jpg","rhc4.jpg","rhc5.jpg","rhc6.jpg","rhc7.jpg","rhc9.jpg","rhc10.jpg");

function choosePic() {
    randomNum = Math.floor((Math.random() * myPics.length));
    document.getElementById("rhcpics").src = myPics[randomNum];
}
/* 
This is placed in the Header:
<script src="rhc.js" type="text/javascript" ></script>
<!-- This html uses the id="rhcpics" to link it to the js program -->
<img  alt="random rotating images" id="rhcpics" src="spacer.gif" width="100" height="100" />
*/