// 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 Letters and Science

function Randum(N) { return  (N*(Math.random()%1))|0 }
				
function displayContent()
{
	// input to Randum is number of images - returns 0-N, so num must be incremented 
	var num = Randum(4);
	num++;

	if (num == 1) {
	  url ="#";
	  image="http://www.montana.edu/lettersandscience/Images/Vowell.jpg";
	  content="<strong>Sarah Vowell </strong> (Modern Languages, '93) has earned rave reviews for her new book, <em> Assassination Vacation</em>, published in April 2005 by Simon & Schuster. The book takes readers on a thought-provoking journey to sites of American political violence and Presidential assassination.";
	 }
	 else if (num == 2) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/albin.jpg";
	  content="A friendship that began 15 years ago at Montana State University has resulted in a multi-cultural relief effort for victims of the Pacific Rim tsunami disaster. <strong>Brock Albin</strong> (English, '92), a Bozeman attorney now living and teaching in South Korea, and <strong>Dr. Robert Lame Bull McDonald</strong> (Biomedical Science, '95), an emergency room physician in Browning, organized an emergency medical relief mission that sprung into action following the tsunami last winter.";
	 }	
	 else if (num == 3) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/hilleman.jpg";
	  content="The man credited with saving more lives than any other scientist in the past century, microbiologist <strong>Maurice R. Hilleman</strong>, died April 11, 2005 at the age of 85. Hilleman, a 1941 graduate of what was then Montana State College, and his team at Merck & Company developed about three dozen experimental and licensed animal and human vaccines, including 8 of the 14 routinely given to young children in the U.S. today.";
	 }	
	 else if (num == 4) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/weissman.jpg";
	  content="<strong>Irving Weissman</strong> (&rsquo;61, Pre-medicine; &rsquo;92, Honorary Doctorate), the director of the Institute for Cancer and Stem Cell Biology and Medicine at Stanford University, is known for his ground-breaking research in biology. He pioneered the science of isolating blood-forming stem cells from mice, and in collaboration with others discovered human stem cells that produce blood cell progenitors and nervous tissue.";
	 }	
	 
	 /* REMEMBER TO INCREMENT the line "var num = Randum(x)" where x is the number of possible options
	 else if (num == 3) {
	  image="";
	  url="http://www.montana.edu/";
	  headline="Test of the Random Content";
	  content="Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test";
	 }	
	 */
	document.write('<!-- Begin Random Content --><table width="250" border="0" align="right" cellpadding="0" cellspacing="15" bordercolor="#FFFFFF" class="borderLeft"><tr><td valign="top"><a href="' + url + '"><img src="' + image + '" border="0"></a></td></tr><tr><td class="blue11"><div align="justify"><p align="center"><p>' + content + '</p></div></td></tr></table><!-- End Random Content -->');
	
}