
function imageload() {
	if (document.images) {
		box2a = new Image(101,41); 
		box2a.src = "./images/box_head2.jpg";
		box2_alt = new Image(101,41); 
		box2_alt.src = "./images/box_head2_blue.jpg";
		box3a = new Image(101,41); 
		box3a.src = "./images/box_head3.jpg";
		box3_alt = new Image(101,41); 
		box3_alt.src = "./images/box_head3_blue.jpg";
		box4a = new Image(101,41); 
		box4a.src = "./images/box_head4.jpg";
		box4_alt = new Image(101,41); 
		box4_alt.src = "./images/box_head4_blue.jpg";
		box5a = new Image(101,41); 
		box5a.src = "./images/box_head5.jpg";
		box5_alt = new Image(101,41); 
		box5_alt.src = "./images/box_head5_blue.jpg";
		box6a = new Image(101,41); 
		box6a.src = "./images/box_head6.jpg";
		box6_alt = new Image(101,41); 
		box6_alt.src = "./images/box_head6_blue.jpg"; 
		box1a = new Image(101,41); 
		box1a.src = "./images/box_head1.jpg";
		box1_alt = new Image(101,41); 
		box1_alt.src = "./images/box_head1_blue.jpg";
		document.images[activemenu].src = eval(activemenu + "_alt.src");
	}
}

function rollover(imgName,imgObjName,active) {

	if (document.images) {
		 /* if (document.images[imgName].src == eval(imgObjName + ".src")) {
			this.onMouseOut = '';
		}  */
		if(active.name != activemenu)  document.images[imgName].src = eval(imgObjName + ".src");
	}
}

function highlight(boxName) {
	if (document.images) {
		document.images[boxName].src = eval(boxName + "_alt.src");
	}
}

function rotateimage(imgName) {
	var imgSrc = "";
	var randomnumber=Math.floor(Math.random()*6); /*Random number between 1 and 5 (one lower than 6) */
	/* the urls must match locations of image files.  */
	switch(randomnumber)
	{
		case 1:
			imgSrc = "./images/img1.jpg";
			break;
		case 2:
			imgSrc = "./images/img2.jpg";
			break;
		case 3:
			imgSrc = "./images/img3.jpg";
			break;
		case 4:
			imgSrc = "./images/img4.jpg";
			break;
		case 5:
			imgSrc = "./images/img5.jpg";
			break;
	}
	document.images[imgName].src = newimg.src;
}
						
window.onload=imageload;