// 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(10);
	num++;

	if (num == 1) {
	  url ="http://www.montana.edu/cpa/news/nwview.php?article=3706";
	  image="http://www.montana.edu/lettersandscience/Images/cornish.jpg";
	  content="Physics professor <strong>Neil Cornish</strong>, who has been recognized for investigating the great questions of the universe, has now been appointed to a committee that serves the National Aeronautics and Space Administration. Cornish will serve on the astrophysics committee of NASA's Advisory Council. Cornish's appointment is the latest in a string of opportunities and honors for the Australian-born scientist. He was part of the group that determined that the universe is 78 billion light years across, a finding that Discover magazine listed as one of the top 100 discoveries of 2004. Cornish also was part of an online American Museum of Natural History exhibit where he explained gravitational waves and two ways to measure them.";
	 }
	 else if (num == 2) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/kollin.jpg";
	  content="English professor <strong>Susan Kollin</strong> received a Fulbright Fellowship to teach at American University in Cairo. Kollin, who writes about the film and literature of the American West, has also worked to develop curriculum for a group of Middle Eastern students who study each summer at MSU. Her time in Cairo allowed her to learn more about how Americans in the world are perceived as well as how the literature of the American West is perceived elsewhere.";
	 }	
	 else if (num == 3) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=3584";
	  image="http://www.montana.edu/lettersandscience/Images/ada.jpg";
	  content="<strong>Ada Giusti</strong>, professor of French, recently published <em>Why Don't They Just Go Home?</em> which has brought her national attention in the French media. Written in French, the book allows immigrants to tell their own stories. People from Algeria, Armenia, and ten other countries explain why they decided to leave their countries, how they escaped, how they've been received in France, and how they see their futures. The French explain their wide-ranging convictions about immigration.";
	 }	
	 else if (num == 4) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/wilmer.jpg";
	  content="Governor Brian Schweitzer recently appointed political science professor <strong>Franke Wilmer</strong> as the chair of the Montana Human Rights Commission. The commission, which has four other members and meets every other month, reviews appeals of reports by human rights investigators and decisions made by hearing examiners in Montana. Wilmer, an international authority on indigenous people and international human rights, travels throughout the world to speak on the rights of the world's indigenous peoples.";
	 }	
	 else if (num == 5) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/douglas.jpg";
	  content="Professor <strong>Trevor Douglas</strong>, co-director of the Center for Bio-Inspired Nanomaterials, is among a group of scientists who are using viruses or nanoscopic protein cages to carry a variety of materials. The possibilities range from enhancing computer memory and catalyzing hydrogen production to delivering drugs to specific parts of the body. Douglas was featured in the 2007 pilot episode of <em>Wired Science</em>, a joint production of PBS and Wired magazine.";
	 }	
	 else if (num == 6) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/varricchio.jpg";
	  content="The summer paleontology fieldwork of Professor <strong>David Varricchio</strong>, Earth Sciences, yielded evidence of two new species of small, herbivorous dinosaurs. The skeletons were collected among the mid-Cretaceous rocks of southwest Montana. These strata represent rare terrestrial environments during a time of unusually high sea level. Once reassembled, the dinosaur skeletons should provide important clues into past biogeographic and evolutionary events during a time when rising seas shrank available habitat space for terrestrial animals.";
	 }	
	 else if (num == 7) {
	  url="http://www.montana.edu/cpa/news/nwview.php?article=164";
	  image="http://www.montana.edu/lettersandscience/Images/cohen.jpg";
	  content="Professor <strong>Susan Cohen</strong> completed archaeological investigations at her Gesher site in Israel and is developing a new excavation project at Tel Zahara located in the central Jordan Valley region. Cohen, who has excavated at various sites in Israel since 1987, focuses her work on understanding the forces of urban development in Canaan in ca. 1950-1750 BCE. At her Gesher site, Cohen drew on the talents of several MSU students and is laying the groundwork for building a team of students and professionals for the upcoming summer.";
	 }	
	 else if (num == 8) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/link.jpg";
	  content="Physics professor <strong>Bennett Link's</strong> cutting-edge research on neutron stars and neutrinos may reveal new clues about the universe. In a recently published paper, Link suggests that hot neutron stars could be a source for neutrinos, tiny particles that normally elude detection. Neutron stars, which can have surface temperatures of more than one million degrees, act like super generators, creating an enormous voltage that strips charges from the surface. Particles then fly off the star and produce detectable radiation, usually as radio beams. Link has shown that high-energy neutrinos might also be produced with detectable intensities. Looking for these emissions from young neutron stars will provide a valuable probe of the flow of energy from a neutron star. ";
	 }	
	 else if (num == 9) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/murphy.jpg";
	  content="<strong>Mary Murphy</strong> was named the second Michael P. Malone Professor in History. Murphy received the Montana Book Award for her most recent book, <em>Hope in Hard Times: New Deal Photographs of Montana, 1936-1942</em>, published in 2003. She has lectured across the country on western mining history, women in the West, and history of the Great Depression, and has served as an historical advisor on a number of films and museum exhibits.";
	 }
	 else if (num == 10) {
	  url="#";
	  image="http://www.montana.edu/lettersandscience/Images/grieco.jpg";
	  content="<strong>Paul Grieco</strong>, professor of chemistry and biochemistry, was named a Regents' Professor by the Montana Board of Regents. The honorary lifetime title recognizes Grieco's service to MSU and his unique contributions to the science of organic chemistry. Grieco has raised more than $6 million in research funds in his ten years at MSU and is internationally recognized for his research in materials synthesis.";
	 }	
	 /* 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 -->');
	
}