// Random image function and display scripts
// Modified from the Homepage script
// Built by Jacob Dolan, jake@montana.edu, Communications and Public Affairs
// For the College of Nursing

function Randum(N) { return  (N*(Math.random()%1))|0 }
				
function displayImage()
{
	// input to Randum is number of images - returns 0-N, so num must be incremented 
	var num = Randum(3);
	num++;	 
	
	if (num == 1) {
	  altim="College of Nursing";
	}
	else if (num == 2) {
	  altim="College of Nursing";
	}
	else if (num == 3) {
	  altim="College of Nursing";
	}

	document.write("<!-- Begin Random Image --><img src=\"http://www.montana.edu/nursing/images/nursingbanner" + num + ".jpg\" alt=\""+altim+"\" width=\"420\" border=\"0\" /><!-- End Random Image -->");
	return num;
}