// Random image function and display scripts

function Randum(N) { return  (N*(Math.random()%1))|0 }
				
function displayImage(im)
{
	var oldnum = im;
	if (oldnum != 0) {
		if (oldnum == 12) {
			var num = 1;
		} else {
			var num = oldnum + 1;
		}
	 } else {
		var num = Randum(12);
		num++;
	 }
	 
	 num2 = num;
	 if (num == 1) {
	  altim1="CONNECT in a community committed to student success.";
	  altim2="CONNECT: MSU students can work closely with faculty to enhance their learning experience.";
	  altim3="CONNECT: Students thrive in a responsive, friendly environment complete with academic and peer mentoring, caring staff, approachable administration, and an extensive network of student clubs and activities.`";
	 }
	 else if (num == 2) {
	  altim1="CREATE and innovate with hands-on, active learning.";
	  altim2="CREATE: MSU students study filmmaking in Yellowstone National Park.";
	  altim3="CREATE: Students are encouraged to pursue their specific interests by immersing themselves in creative and/or research experiences. Talented faculty work closely with students to help them focus their work and develop their ideas.";
	 }
	 else if (num == 3) {
	  altim1="DISCOVER solutions to today's and tomorrow's challenges.";
	  altim2="DISCOVER: Dr. Kris Merkel, MSU Spectrum Lab Research Scientist";
	  altim3="DISCOVER: Accomplished faculty researchers interact with students to combine scientific principles, theory, ethics, and techniques with the opportunity to explore new concepts and ideas that address significant global issues.";
	 }
	 else if (num == 4) {
	  altim1="EXCEL in a dynamic learning environment.";
	  altim2="EXCEL: Dr. Jack Horner, Paleontologist, Museum of the Rockies";
	  altim3="EXCEL: Students at Montana State University have the opportunity to explore their interests and follow their passions with the mentoring and guidance of some of the best teachers and researchers in the world.";
	 }
	 else if (num == 5) {
	  altim1="EXPLORE breathtaking opportunities to study or recreate.";
	  altim2="EXPLORE: The MSU campus is surrounded by scenic mountains.";
	  altim3="EXPLORE: Nestled in the beautiful Gallatin Valley, Montana State University is a safe, supportive community offering significant opportunity to integrate your educational experience with the great outdoors.";
	 }
	 else if (num == 6) {
	  altim1="SERVE by creating strong community relationships.";
	  altim2="SERVE: MSU students gain public service experience by working with groups such as Eagle Mount.";
	  altim3="SERVE: As Montana's land grant university, MSU continues to provide extensive service to citizens, businesses, and organizations in the communities around the state and across the country.";
	 }
	 else if (num == 7) {
	  altim1="CONNECT in a community committed to student success.";
	  altim2="CONNECT: Students can find personal growth through outdoor experiences.";
	  altim3="CONNECT: Students thrive in a responsive, friendly environment complete with academic and peer mentoring, caring staff, approachable administration, and an extensive network of student clubs and activities.`";
	  num2 = 1;
	 }
	 else if (num == 8) {
	  altim1="CREATE and innovate with hands-on, active learning.";
	  altim2="CREATE: MSU students build experiments for NASA orbital payloads.";
	  altim3="CREATE: Students are encouraged to pursue their specific interests by immersing themselves in creative and/or research experiences. Talented faculty work closely with students to help them focus their work and develop their ideas.";
	  num2 = 2;
	 }
	 else if (num == 9) {
	  altim1="DISCOVER solutions to today's and tomorrow's challenges.";
	  altim2="DISCOVER: Students get hands-on experience working with world class faculty researchers.";
	  altim3="DISCOVER: Accomplished faculty researchers interact with students to combine scientific principles, theory, ethics, and techniques with the opportunity to explore new concepts and ideas that address significant global issues.";
	  num2 = 3;
	 }
	 else if (num == 10) {
	  altim1="EXCEL in a dynamic learning environment.";
	  altim2="EXCEL: MSU students get hands-on experience with cutting edge research opportunities.";
	  altim3="EXCEL: Students at Montana State University have the opportunity to explore their interests and follow their passions with the mentoring and guidance of some of the best teachers and researchers in the world.";
	  num2 = 4;
	 }
	 else if (num == 11) {
	  altim1="EXPLORE breathtaking opportunities to study or recreate.";
	  altim2="EXPLORE: The MSU campus is near the scenic Bridger Mountains.";
	  altim3="EXPLORE: Nestled in the beautiful Gallatin Valley, Montana State University is a safe, supportive community offering significant opportunity to integrate your educational experience with the great outdoors.";
	  num2 = 5;
	 }
	 else if (num == 12) {
	  altim1="CREATE and innovate with hands-on, active learning.";
	  altim2="CREATE: Musical performance is a part of the creative experience in our arts curriculum.";
	  altim3="CREATE: Students are encouraged to pursue their specific interests by immersing themselves in creative and/or research experiences. Talented faculty work closely with students to help them focus their work and develop their ideas.";
	  num2 = 2;
	 }
	 
	document.write("<!-- Begin Random Image --><tr><td colspan=\"2\"><img src=\"level2/images/homepage/cm-" + num + "-top.jpg\" alt=\""+altim1+"\" width=\"590\" height=\"46\" /></td></tr><tr><td><img src=\"level2/images/homepage/cm-"+ num +"-left.jpg\" alt=\""+altim2+"\" width=\"420\" height=\"243\" /></td><td><img src=\"level2/images/homepage/cm-"+ num2 +"-right.jpg\" alt=\""+altim3+"\" width=\"170\" height=\"243\" border=\"0\" usemap=\"#photo\" /></td></tr><!-- End Random Image -->");
	return num;
}