// JavaScript Document
// note additions or modifications must happen to all three elements
<!--
function randomImage() {

//init array and define images
imgArray = new Array(

	"images/homeimg/1.jpg",
	"images/homeimg/2.jpg",
	"images/homeimg/3.jpg",
	"images/homeimg/4.jpg",
	"images/homeimg/5.jpg",
	"images/homeimg/6.jpg",
	"images/homeimg/7.jpg",
	"images/homeimg/8.jpg",
	"images/homeimg/9.jpg",
	"images/homeimg/10.jpg",
	"images/homeimg/11.jpg",
	"images/homeimg/12.jpg",
	"images/homeimg/13.jpg",
	"images/homeimg/14.jpg",
	"images/homeimg/15.jpg",
	"images/homeimg/16.jpg",
	"images/homeimg/17.jpg",
	"images/homeimg/18.jpg",
	"images/homeimg/19.jpg",
	"images/homeimg/20.jpg",
	"images/homeimg/21.jpg",
	"images/homeimg/22.jpg"

	
	


);







//generate random
index = Math.floor(Math.random() * imgArray.length);
//write out image

// this was the original line.
// document.write("<img alt='MARC/MBRS' src=" + imgArray[index] + " width='310' height='160' border='0'>");
// as an attempt at improving the engine, I'm removing the height parameter

document.write("<img alt='MARC/MBRS' src=" + imgArray[index] + " width='310' border='0'>");

}
//-->
