// JavaScript Document

function showHeaderImages() {
	// Change this number if you increase the number of random images to pull from
	var intTotalImages = 25;
	
	// Do not edit anything below this line unless you want to change how this function works
	var intImage1 = 0;
	var intImage2 = 0;
	var intImage3 = 0;
	var intRandom = 0;
	
	while (intImage1 == 0) {
		intRandom = Math.floor(Math.random()*(intTotalImages-1)) + 1;
		intImage1 = intRandom;
	}
	
	while ((intImage2 == 0) || (intRandom == intImage1)) {
		intRandom = Math.floor(Math.random()*(intTotalImages-1)) + 1;
		intImage2 = intRandom;
	}
	
	while ((intImage3 == 0) || (intRandom == intImage1) || (intRandom == intImage2)) {
		intRandom = Math.floor(Math.random()*(intTotalImages-1)) + 1;
		intImage3 = intRandom;
	}
	
	document.write('<img src="/dept/chemistry/images/head_img_' + intImage1 + '.jpg" alt="Image ' + intImage1 + '" width="94" height="98" class="headImages" />');
	document.write('<img src="/dept/chemistry/images/head_img_' + intImage2 + '.jpg" alt="Image ' + intImage2 + '" width="94" height="98" class="headImages" />');
	document.write('<img src="/dept/chemistry/images/head_img_' + intImage3 + '.jpg" alt="Image ' + intImage3 + '" width="94" height="98" class="headImages" />');
	
}

