/****************************************************************************************
* By: Peter C. Y. Leung                                                                 *
* For: San Francisco State University, School of Engineering                            *
* Date: November 11, 2005                                                               *
* Updated: December 11, 2005                                                            *
* Version: 0.92                                                                         *
* Site: http://engineering.sfsu.edu                                                     *
* Description: Javascript to rollover images                                            *
* Copyright 2004-2005 San Francisco State University, School of Engineering,            *
* San Francisco, California, U.S.A.                                                     *
****************************************************************************************/
function image_roller(grp_img) {
	img_num = Math.round(Math.random()*(grp_img.length-1));
	document.write(grp_img[img_num]);
}

function home_roller(grp_img) {
	img_num = grp_img.length;
	img_num = Math.round(Math.random()*img_num);
	if (img_num > 0) {
		document.write("<img src=\"images/rolls/" + img_num + ".jpg\" border=\"0\" alt=\"\">");
	} else {
		document.write("<img src=\"images/rolls\" width=\"320\" height=\"240\" border alt=\"Science Building\">");
	}
}
function poster_roller() {
	img_num = 2;
	img_num = Math.round(Math.random()*img_num);
	if (img_num > 1) {
		document.write("<img src=\"images/posters/poster.jpg\" width=\"225\" height=\"300\" align=\"center\" border=\"0\" alt=\"School of Enginereing Poster\">");
	} else {
		document.write("<a href=\"pdfs/booth.pdf\"><img src=\"images/posters/booth.jpg\" width=\"300\" height=\"210\" align=\"center\" border=\"0\" alt=\"School of Enginereing Booth Poster\"></a><br><small>Click the image to view full size. <img align=\"top\" src=\"images/pdf_icon.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"PDF File\"> [111KB]</small>");
	}
}

highlight_ref = new Array(
	"<a href=\"current_students/achievements/index.html\"><img align=\"top\" src=\"images/2007_SHPE_national_conference_winner.jpg\" width=\"280\" height=\"210\" border=\"0\" alt=\"2007 SHPE National Conference Winner\"></a><br>SFSU engineering students won the third place in the annual SHPE national conference.",
	"<a href=\"current_students/project_showcase/2007_steel_bridge/index.html\"><img align=\"top\" src=\"images/2007_steel_bridge_team.jpg\" width=\"280\" height=\"210\" border=\"0\" alt=\"2007 Steel Bridge Team\"></a><br>Our Steel bridge won the second place in the Mid-Pacific Region and is going to the National Steel Bridge Compeition on May 25-26, 2007.",
	"<a href=\"current_students/achievements/index.html\"><img align=\"top\" src=\"images/digital_signal_processing_applications_contest.jpg\" width=\"280\" height=\"210\" border=\"0\" alt=\"Digital Signal Processing Applications Contest Winners\"></a>",
	"<a href=\"alumni/class_notes/index.html\"><img align=\"left\" src=\"alumni/class_notes/images/mathew_lee.jpg\" width=\"150\" height=\"200\" border=\"0\" alt=\"Mathew Lee\"></a> Mathew Lee, a graduate student in Structural /Earthquake, was named a New Face of Civil Engineering by the American Society of Civil Engineers (ASCE). <a href=\"http://www.asce.org/pressroom/news/display_press.cfm?uid=3155\" target=\"_blank\">Please click here for more information.</a>",
	"<a href=\"news/events/sfsu_robotic_competition/index.html\"><img align=\"left\" src=\"images/2007_robotic_lessions.jpg\" width=\"280\" height=\"210\" border=\"0\" alt=\"SFSU Robotic Lessions\"></a>",
	"<a href=\"centers_of_excellence/sponsored_events/sumo_robot_competition/2008/index.html\"><img align=\"top\" src=\"images/2008_sumo_robot.jpg\" width=\"280\" height=\"210\" border=\"0\" alt=\"2008 Sumo Robot Wrestling Competition\"></a>",
	"<a href=\"current_students/achievements/index.html\"><img align=\"top\" src=\"images/2009_arched_wood_bridge_team.jpg\" width=\"280\" height=\"210\" border=\"0\" alt=\"2009 Arched Wood Bridge Team\"></a><br>SFSU engineering students won places in the National Timber Bridge Design Competition."
);

poster_ref = new Array(
	"<img src=\"images/posters/poster.jpg\" width=\"225\" height=\"300\" align=\"center\" border=\"0\" alt=\"School of Enginereing Poster\">",
	"<a href=\"pdfs/booth.pdf\"><img src=\"images/posters/booth.jpg\" width=\"280\" height=\"200\" align=\"center\" border=\"0\" alt=\"School of Enginereing Booth Poster\"></a><br><small>Click the image to view full size. <img align=\"top\" src=\"images/pdf_icon.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"PDF File\"> [111KB]</small>"
);
