// JavaScript Document
masterArray = new Array(
randomImage01 = new Array('headbg.jpg','header01'),
randomImage02 = new Array('headbg2.jpg','header02'),
randomImage03 = new Array('headbg3.jpg','header03'),
randomImage04 = new Array('headbg4.jpg','header04'),
randomImage05 = new Array('headbg5.jpg','header05'),
randomImage06 = new Array('headbg6.jpg','header06'),
randomImage07 = new Array('headbg7.jpg','header07'),
randomImage08 = new Array('headbg8.jpg','header08')
);
// the math for selecting and image from the above Array
var choice = masterArray [Math.floor(Math.random()*masterArray.length)]
// the attributes of the image
var img = choice[0]
var t = choice[1]
//var w = choice[2]
//var h = choice[3]
// the line of html to be placed into the webpage
document.write('<img src = "i/' + img + '" alt = "' + t + '" title ="' + t + '" />');
