//Append new images to the below array
var newImgArray = new Array("law-students.jpg");
//Counts the total number of images contained in the Array
var arrayCount = newImgArray.length;
//Appends an incremental index number to each image
var chosenImage = new Array();
	for (i = 0; i < arrayCount; i++){
		chosenImage[i] = new Image();
		chosenImage[i].src = newImgArray[i];
	}
//Sets a random number between 0 and the arrays total
var randomIndex = Math.round(Math.random()*(arrayCount-1));
//Outputs string to within html head tag
//alert(newImgArray[randomIndex]);
document.write("<style type=\'text/css\' media=\'all\'>#header{background:#eee url(control/random-image/images/"+newImgArray[randomIndex]+") no-repeat top left;}</style>");