
// Run on load

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

var _gaq = _gaq || [];

function init() {
  DidYouKnow();
  GA();
}

function DidYouKnow() {
var tempD=document.getElementById("didyouknowrand");
 if (tempD) 
{
var howMany = 8
var fact = new Array(howMany+1)
fact[0] = "SJSU has one of the five largest enrollments in the California State University system."fact[1] = "San Jos&eacute; State is the 7th largest public employer in Silicon Valley."fact[2] = "SJSU and the City of San Jose, in the first collaboration of its kind, have built a $177.5 million joint library for students and community members."fact[3] = "More than $55 million in student aid, from federal, state, university and private funds, is awarded to aproximately 12,000 students annually."fact[4] = "The Ira F. Brilliant center for Beethoven Studies contains the largest collection of materials on Beethoven outside of Europe."fact[5] = "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[6] = "The President's Scholars program, for high-achieving students, provides scholarships for up to four years for students who qualify."fact[7] = "Through its eight colleges, the university offers 69 bachelor's degrees with 81 concentrations and 65 master's degrees with 29 concentrations, specialized and certificate programs."fact[8] = "As a metropolitan university, San Jos&eacute; State's mission is to meet the changing needs of the region it serves - the people and industry of Silicon Valley and beyond."

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

function GA() {
  _gaq.push(['_setAccount', 'UA-21659030-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
}


