// Run on load

if (window.addEventListener) // Firefox
 {
    window.addEventListener('load', init, false);;
 } 
 else if (window.attachEvent) // IE
 {   
    window['onload'] = init;
 } 

function init() {	
        SJSUHome_Images();
        FS_Images();
        DS_Images();
	DidYouKnow();
}

function SJSUHome_Images() {
 var temp=document.getElementById("sjsuhomeimages");
 if (temp) {
 var iArray=new Array(
  "pics/home/home_3images_01.jpg\" alt=\"tiles, student, marching band",
  "pics/home/home_3images_02.jpg\" alt=\"fountain, student, campus lawn",
  "pics/home/home_3images_03.jpg\" alt=\"tiles, student, springtime",
  "pics/home/home_3images_04.jpg\" alt=\"Washington Square Hall, graduate, trees",
  "pics/home/home_3images_05.jpg\" alt=\"students, campus, Engineering building",
  "pics/home/home_3images_06.jpg\" alt=\"Spartan fans, students, great football catch",
  "pics/home/home_3images_07.jpg\" alt=\"Sparty, football player, cheering fans",
  "pics/home/home_3images_08.jpg\" alt=\"tile, student, poppies",
  "pics/home/home_3images_09.jpg\" alt=\"pool, student, banners",
  "pics/home/home_3images_10.jpg\" alt=\"Campus Village, student, tiles",
  "pics/home/home_3images_11.jpg\" alt=\"students on campus, student, poppies",
  "pics/home/home_3images_12.jpg\" alt=\"plant on wall,student,Campus Village");

   var ri=Math.floor(iArray.length*Math.random());
   ri='<img src="./'+ iArray[ri]+ '" border=0>';
   temp.innerHTML=ri;
  }
}

function FS_Images (){
  var tempb=document.getElementById("facultystaffimagesrand");
  if (tempb) {
  var iArray=new Array(
  "/pics/faculty/annelawrence.jpg\" alt=\"Anne Lawrence - 2005 Outstanding Professor",
  "/pics/faculty/annettenellen.jpg\" alt=\"Annette Nellen - 2005 Distinguished Service Award",
  "/pics/faculty/bethanyshifflett.jpg\" alt=\"Bethany Shifflett - 2004 Distinguished Service Award",
  "/pics/faculty/gunaselvaduray.jpg\" alt=\"Guna Selvaduray - 2004 President's Scholar",
  "/pics/faculty/singmaster.jpg\" alt=\"Karen Singmaster - 2007-08 Outstanding Professor",
  "/pics/faculty/janenglishlueck.jpg\" alt=\"Jan English-Lueck - 2004 Outstanding Professor");

   var rx=Math.floor(iArray.length*Math.random());
   rx='<img src="'+ iArray[rx]+ '" border=0>';  
   tempb.innerHTML=rx;
  }
}

function DS_Images (){
  var tempb=document.getElementById("collegesdepartmentsrand");
  if (tempb) {
  var iArray=new Array(
  "/resources/pics/138_students_01.jpg\" alt=\"group of 4 students",
  "/resources/pics/138_students_02.jpg\" alt=\"students talking",
  "/resources/pics/138_students_04.jpg\" alt=\"group of 4 students",
  "/resources/pics/138_students_05.jpg\" alt=\"group of 3 students",
  "/resources/pics/138_students_06.jpg\" alt=\"2 students studying",
  "/resources/pics/138_students_07.jpg\" alt=\"4 students studying",
  "/resources/pics/138_students_07.jpg\" alt=\"students in action");

   var rx=Math.floor(iArray.length*Math.random());
   rx='<img src="'+ iArray[rx]+ '" border=0>';  
   tempb.innerHTML=rx;
  }
}

function DS_Images (){
  var tempb=document.getElementById("azindexrand");
  if (tempb) {
  var iArray=new Array(
  "/resources/pics/138_tower_earlymorning.jpg\" alt=\"Tower in the morning",
  "/resources/pics/138_king_library.jpg\" alt=\"Marin Luther King Junior library",
  "/resources/pics/138_ceasar_chavez_paseo.jpg\" alt=\"Paseo de Ceasar Chavez",
  "/resources/pics/138_signage.jpg\" alt=\"SJSU Logo Signage",
  "/resources/pics/138_walkway.jpg\" alt=\"students on a walkway",
  "/resources/pics/138_gates_02.jpg\" alt=\"S J S U gateway",
  "/resources/pics/138_central_building.jpg\" alt=\"Central Classroom Building",
  "/resources/pics/138_koret_atrium.jpg\" alt=\"Koret Atrium",
  "/resources/pics/138_spartan_stadium.jpg\" alt=\"Spartan Stadium");

   var rx=Math.floor(iArray.length*Math.random());
   rx='<img src="'+ iArray[rx]+ '" border=0>';  
   tempb.innerHTML=rx;
  }
}



function DidYouKnow() {
var tempD=document.getElementById("didyouknowrand");
 if (tempD) 
{
var howMany = 26
var fact = new Array(howMany+1)
fact[0]="San Jos&eacute; State is ranked in the top 15 master’s level public universities in the West by U.S. News & World Report’s annual survey of “America’s Best Colleges.”"
fact[1]="San Jos&eacute; State is the number one supplier of education, engineering, computer science and business graduates to Silicon Valley, the world’s high tech capital."
fact[2]="SJSU is the oldest public institution of higher education on the West Coast and celebrated its 150th anniversary in 2007."
fact[3]="Nearly 13 million people have visited the Dr. Martin Luther King, Jr. Library since its opening in 2003 and more than 11 million books, videos and other materials have been circulated since."
fact[4]="For more than a decade, San Jos&eacute; State has been a national leader in graduating the greatest numbers of Asian Americans, Latino students and minority students overall."
fact[5]="The Ira F. Brilliant Center for Beethoven Studies at SJSU has the largest collection of Beethoven material outside of Germany, including a lock of the great composer’s hair and fragments of his skull."
fact[6]="The Martha H. Cox Center for Steinbeck Studies is home to 40,000 items related to Nobel Prize-winning American author John Steinbeck."
fact[7]="San Jos&eacute; State is the only campus of the CSU system that has undergraduate and graduate programs in nuclear science."
fact[8]="SJSU is a wirelessly connected 154-acre campus offering 552 access points."
fact[9]="SJSU’s Charles W. Davidson College of Engineering provides more engineers to Silicon Valley firms than any other college or university in the nation."
fact[10]="SJSU’s College of Business is one of the first business schools in the country to offer a master’s degree in transportation management."
fact[11]="San Jos&eacute; State students have won a record 351 awards at the International Housewares Manufacturers’ Association Student Design Competition in the last 15 years."
fact[12]="Sixty percent of San Jos&eacute; State's 188, 800 alumni live in the Bay Area."
fact[13]="More than 200 SJSU graduates have founded, co-founded, served or serve as senior executives or officers of public and private companies reporting annual sales between $40 million and $26 billion."
fact[14]="SJSU is the only California State University campus to receive the 2008 CASE-WealthEngine Award for Educational Fundraising, having raised over $100 million cumulatively over the past three years."
fact[15]="Generous donations from two SJSU alumni named two colleges in 2006-2007: the Charles W. Davidson College of Engineering and the Connie L. Lurie College of Education."
fact[16]="San Jos&eacute; State University is one of the largest public-sector employers in Silicon Valley, with about 5,700 employees and an annual budget of $520 million."
fact[17]="SJSU students won the Best Comedy award at the 2008 Campus Moviefest National Grand Finale, held at Times Square in New York City, for their video “Bobby’s House.” Over 50,000 students competed in Campus MovieFest."
fact[18]="An agreement between Mississippi State University and San Jos&eacute; State University has established the MSU/SJSU Ph.D. Engineering Gateway Program, enabling SJSU students to pursue a Ph.D. from MSU."
fact[19]="San Jos&eacute; State was one of 12 institutions honored by the NCAA in 2008 for overall excellence in diversity."
fact[20]="Forty-two San Jos&eacute; State University student-athletes received Academic All-Western Athletic Conference honors for the 2007-08 school year."
fact[21]="In the last 10 years, SJSU teams have been nationally ranked in the top 25 for men’s soccer, women’s volleyball, baseball, women’s golf and women’s water polo."
fact[22]="SJSU alumnus and professional golfer Arron Oberholser won the AT&T Golf Tournament at Pebble Beach in 2006, and is currently ranked among the top 50 golfers in the world."
fact[23]="Golfers and SJSU alumnae Dina Ammaccapane, Tracy Hanson, Pat Hurst, Juli Inkster, Janice Moodie, and Patty Sheehan are all members of the LPGA."
fact[24]="SJSU alumni have won a total of 18 Olympic medals since 1952."
fact[25]="Eighty-six percent of San Jos&eacute; State’s faculty members hold doctorates or the highest degrees in their academic disciplines."
fact[26]="At San Jos&eacute; State University, more than 4,700 students participated in courses with service-learning in the past year."
var rand=Math.floor(fact.length*Math.random());
var randfact = fact[rand];
tempD.innerHTML=randfact;
 }
}

