<!--
<!-- This is the standard Dreamweaver preloading script -->
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function randomimage(directory, arrayofimages)
{
		<!-- This will choose a random number between 0 and how many items there are in the array.  It uses 0 instead of 1 as the first item in an array is in position 0 -->
		var randomnumber = Math.floor(Math.random() * arrayofimages.length);
		
		<!-- This will preload the image that is choosen to be displayed -->
		MM_preloadImages("'/Images/headers/" + directory + "/"+ arrayofimages[randomnumber] + "'");
	
		<!-- This points to the images and tells the page which image to display on the page -->
		document.getElementById('RandomImage').src = eval("'/Images/headers/" + directory + "/"+ arrayofimages[randomnumber] + "'");

} <!-- Random Image function ends here -->

//-->
