// 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(6);
	num++;

	if (num == 1) {
	  url ="http://www.montana.edu/cpa/news/nwview.php?article=3885";
	  image="http://www.montana.edu/lettersandscience/Images/anderson.jpg";
	  content="<strong>Physics major Brandon Anderson</strong> impressed graduate schools with what he was allowed to do as an undergraduate student at Montana State University. Not only did his work fly on a NASA rocket, but he started building a plasma light source that will simulate the sun and shine into a vacuum chamber that used to belong to the NASA Goddard Space Flight Center. Anderson will attend the University of California, Santa Cruz this fall to start working on his doctorate in astrophysics. ";
	 }
	 else if (num == 2) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=3730";
	  image="http://www.montana.edu/lettersandscience/Images/steppler.jpg";
	  content="<strong>Senior David Steppler's</strong> innovative research into a treatment for groundwater contaminants was presented on Capitol Hill in Washington, D.C., in late April 2006. His project was one of only 75 chosen nationwide by the Council on Undergraduate Research. Steppler studied the complexities of using powdered iron to treat groundwater polluted with the explosive TNT among other pollutants. Steppler graduated in May 2006 with a degree in biochemistry.";
	 }	
	 else if (num == 3) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=3570";
	  image="http://www.montana.edu/lettersandscience/Images/goldwater_students.jpg";
	  content="Three L&S students are the most recent MSU students to receive the prestigious 2006 Goldwater Scholarship for undergraduate excellence in science and math. <strong>Christoffer Renner</strong>, a junior majoring in physics, <strong>Eric M. Morschhauser</strong>, and <strong>Brittney M. Pollard</strong>, both juniors majoring in earth sciences, were among the 320 students in the nation to receive the coveted scholarship that pays up to $7,500 a year for two years of undergraduate education.";
	 }	
	 else if (num == 4) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=3443";
	  image="http://www.montana.edu/lettersandscience/Images/owens.jpg";
	  content="<strong>Chris Owens</strong> teaches second graders at Morning Star Elementary School the Spanish word for pig. He volunteers as a Spanish instructor at the school once a week, and also serves as a CAP mentor for a Sacajawea Middle School student. Owens will finish a double major in Spanish and Liberal Studies with a global and multicultural option this spring.";
	 }	
	 else if (num == 5) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=3347";
	  image="http://www.montana.edu/lettersandscience/Images/brianna.jpg";
	  content="Microbiology major <strong>Brianna Arnold</strong> drilled deep through the Antarctic ice to collect water samples for John Priscu's Long-Term Ecological Research in the McMurdo Dry Valleys. She is one of the 150 to 200 students a year who receive support through MSU's Undergraduate Scholars Program.";
	 }	
	 else if (num == 6) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=4274";
	  image="http://www.montana.edu/lettersandscience/Images/johnsrud.jpg";
	  content="<strong>Brian Johnsrud</strong>, a 2006 English graduate, was selected as one of 32 recipients of the presitigous Rhodes Scholarship. Judges reviewed nearly 900 applicants from 340 colleges and universities around the country. Johnsrud, whose research interests include medieval literature and Middle Eastern history, will study for two years at the colleges that make up Oxford University in England.";
	 }	
	 /* 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 -->');
	
}