// 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 = 52
var fact = new Array(howMany+1)
fact[0]="Marine Science research at the world-class Moss Landing Marine Laboratories, a multi-campus CSU facility administered by SJSU, receives significant support from federal agencies and private foundations."
fact[1]="San Jos&eacute; State is the largest educational institution in Silicon Valley."
fact[2]="San Jos&eacute; State is the 5th largest public employer in Silicon Valley."
fact[3]="SJSU and the city of San Jos&eacute;, in the first collaboration of its kind, co-developed and co-manage a $177.5 million joint library for students and community members."
fact[4]="SJSU is working with NASA Ames to plan future research and development, technology commercialization and education partnerships."
fact[5]="Over 200 SJSU faculty members have active research programs across multiple disciplines."
fact[6]="The Ira F. Brilliant center for Beethoven Studies contains the largest collection of materials on Beethoven outside of Europe."
fact[7]="The Martha H. Cox Center for Steinbeck Studies has the world's preeminent archive and museum, with a collection of more than 40,000 Steinbeck items, one of the largest in the country."
fact[8]="SJSU received its largest private, individual gift in March 2007 &#8212; a $15 million donation to the College of Engineering from Charles W. Davidson, a 1957 SJSU graduate in civil engineering and prominent real estate developer."
fact[9]= "Through its seven colleges, the university offers 69 bachelor's degrees with 81 concentrations and 65 master's degrees with 29 concentrations, specialized and certificate programs."
fact[10]="San Jos&eacute; State's mission is to meet the changing needs of the region it serves &#8212; the people and industry of Silicon Valley and beyond."
fact[11]="San Jos&eacute; is a newly revitalized city which hosts major sports, the arts, museums, and restaurants serving a wide variety of cuisines."
fact[12]="From the SJSU campus, the Santa Cruz coastline and San Francisco are both about an hour away."
fact[13]="Silicon Valley firms employ more graduates from SJSU than from any other university in the nation."
fact[14]="Located on 154 acres in downtown San Jos&eacute;, the university offers the excitement of studying at a large metropolitan campus where many cultures meet."
fact[15]="SJSU is one of only five state universities in California with an LGBT center."
fact[16]="The SJSU Research Foundation manages approximately $60 million a year in externally funded and sponsored research."
fact[17]="Aggie Cheung, a 2009 graduate of SJSU's Animation/Illustration program, attended the Icograda World Design Congress in Beijing as one of four finalists for the 2009 Adobe Design Achievement Award in Illustration."
fact[18]="San Jos&eacute; State University ranks in the top 200 schools nationwide for total research and development expenditures."
fact[19]="SJSU graduate student Evan Low, 26, was sworn in as mayor of Campbell in December 2009, becoming both the youngest Asian-American mayor and the youngest openly gay mayor in U.S. history."
fact[20]="SJSU ranked 12th among public master's universities in the West, according to U.S. News & World Report's 2010 rankings."
fact[21]="The School of Art and Design is home to one of the largest and most highly regarded design programs in the United States, and was ranked among the top 60 design schools in the world by Business Week in 2007."
fact[22]="Founded in 1857, San Jos&eacute; State was the first public institution of higher education in the state of California."
fact[23]="SJSU is the only campus of the CSU system that has an extended undergraduate and graduate program in nuclear science"
fact[24]="SJSU is the only California State University campus offering a meteorology degree and the only university offering the program in the Bay Area."
fact[25]="According to the Institute of International Education, SJSU is home to over 2,500 international students &#8212; more than any other master's institution in the United States."
fact[26]="SJSU's Graduate School of Library and Information Science Distance Learning Program is part of the permanent research collection at the Smithsonian's National Museum of American History."
fact[27]="SJSU offers study abroad opportunties at 150 universities in 40 countries."
fact[28]="More than 200 SJSU graduates have founded, co-founded, served, or serve as senior executives or officers of companies reporting annual sales between $40 million and $26 billion."
fact[29]="San Jos&eacute; State participates at the NCAA Division I-A level in six men's sports and 10 women's sports, and is a member of the Western Athletic Conference."
fact[30]="SJSU Judo coach Yosh Uchida was the coach of the first U.S. Olympic judo team in 1964."
fact[31]="Over the years SJSU alumni have won 18 Olympic medals."
fact[32]="Top students from the Department of Hospitality Management and the Department of Recreation and Leisure Studies work with Pebble Beach Resorts at the annual AT&T Pro-Am golf tournament."
fact[33]="SJSU basketball player Adrian Oliver was named the Western Athletic Conference Player of the Week in January 2010, becoming the second player in the program's history to receive this honor twice in one season."
fact[34]="In February 2010, members of the SJSU student chapter of the Earthquake Engineering Research Institute earned the Egor Popov Award for Structural Innovation for their design of an earthquake-resistant model high-rise building."
fact[35]="SJSU's undergraduate computer engineering program ranks 5th nationwide among schools whose highest degree is a bachelor's or master's."
fact[36]="The SJSU Animation/Illustration team won both the People's Choice Award and First Place in the 2009 Kalamazoo Animation Festival's International Cartoon Challenge."
fact[37]="In 2009, SJSU ranked 12th in the nation among state universities ranked by salary potential, surpassing several UC campuses."
fact[38]="Christopher Darden, attorney and member of the prosecution team in the O.J. Simpson trial, is an SJSU alumnus."
fact[39]="Fashion designer, Jessica McClintock, is an SJSU alumna."
fact[40]="Gordon Moore, founder of Intel Corporation and global philanthropist, is an SJSU alumnus."
fact[41]="Tom and Dick Smothers, the popular comedy duo the Smothers Brothers, are SJSU alumni."
fact[42]="Bill Walsh, former head coach of the San Francisco 49ers, was an SJSU alumnus."
fact[43]="Amy Tan, author of The Joy Luck Club, is an SJSU alumna."
fact[44]="SJSU alumnus and pro football coach Dick Vermeil led two teams to Super Bowl victories."
fact[45]="SJSU is one of only three universities in California to offer a master's degree in Chicano Studies."
fact[46]="Disney, Dreamworks, and Warner Bros. have partnered with SJSU to deliver a multi-campus course in animation."
fact[47]="SJSU housing offers co-ed apartments as well as single-gender floors for students who prefer these alternative living arrangements."
fact[48]="Over 20 percent of grants received by the SJSU Foundation provide release time to faculty to enable their continued research."
fact[49]="Each year over $1 million in grant funds help faculty, project staff, and students attend research conferences and professional meetings."
fact[50]="King Library has more than 250 online databases filled with scholarly articles, music, photos, pictures of artworks, business company information and statistics."
fact[51]="SJSU's undergraduate industrial/manufacturing engineering program ranks 3rd nationwide among schools whose highest degree is a bachelor's or master's (US News & World Report, 2010)."

var rand=Math.floor(fact.length*Math.random());
var randfact = fact[rand];
tempD.innerHTML=randfact;
 }
}


