function onloadFunctions(feature){ 
	
if (feature=='PDF-both' || feature=='PDF-footnote') {		
	/* ****************************************
		Below: Adapted from http://www.brucelawson.co.uk/index.php/2005/opening-links-in-new-windows-in-xhtml-strict/#comment-376
	**************************************** */
		if (!document.getElementsByTagName) return; 
			var anchors = document.getElementsByTagName("A");
			for (var i=0; i<anchors.length; i++) {
					var docLink = anchors[i];
					var urlString = docLink.getAttribute("href");
					
					// if href has .pdf in it, do the following
					if (urlString!=null && urlString.indexOf('.pdf')!=-1) {
						if (feature=='PDF-both') {
							docLink.target = "_blank";
							docLink.innerHTML = docLink.innerHTML + "&nbsp;PDF*&nbsp;(opens in new window)";
							}
						if (feature=='PDF-footnote') {
							docLink.target = "_blank";
						}				
					}
				}	
				
	/* ****************************************
	 Above: Adapted from http://www.brucelawson.co.uk/index.php/2005/opening-links-in-new-windows-in-xhtml-strict/#comment-376
	**************************************** */		
	}

/****************************************************
Rotation Script
*******************************************************/


	
if(document.getElementById('banner-graphic')){

	var num=Math.round(20*Math.random())+1;
	var alt='';


	switch (num) {
	case 1: alt='Student walking past a fountain'; break;
	case 2: alt='Commencement'; break;
	case 3: alt='MSU President Lou Anna K. Simon sits in as a student in Dr. Carl Liedholm\'s economics class in Kedzie Hall'; break;
	case 4: alt='Students enjoy a sunny day'; break;
	case 5: alt='MSU Department of Theatre production of Carousel'; break;
	case 6: alt='Art Professor Jim Lawton helps an art student repair a plaster cast in a sculpture class at Kresge'; break;
	case 7: alt='Graduate student teaches an undergraduate group in Professor George Peter\'s German classroom'; break;
	case 8: alt='Recent graduates poses for pictures near the Sparty Statue after commencment'; break;
	case 9: alt='An MSU farm tree near Jolly and College roads shows its true colors (painted with a Spartan block S) during an early October morning sunrise'; break;
	case 10: alt='Students mingle around Berkey Hall'; break;
	case 11: alt='Students walks past Old Horticulture Hall'; break;
	case 12: alt='A string ensemble'; break;
	case 13: alt='AOP tour on the MSU campus'; break;
	case 14: alt='Honors students talk near Campbell Hall'; break;
	case 15: alt='MSU Horticulture professor Arthur Cameron lectures to his class about one of his specialties, grasses, in the MSU demonstration gardens'; break;
	case 16: alt='Honors students talk near Campbell Hall'; break;
	case 17: alt='MSU Professor N. Edward Robinson, Matilda Wilson Chair in Large Animal Clinical Sciences,  works with an asthma-like disease called Heaves'; break;
	case 18: alt='Biochemistry professor Rawle Hollingsworth gives direction to two students working in his lab'; break;
	case 19: alt='MSU Plant Biology Professor Michael Thomashow with students'; break;
	case 20: alt='Commencement'; break;
	case 21: alt='Thomas Lovik, MSU professor of German with undergraduate and graduate students'; break;
	
	default: alt='Photos of people and campus';;
	}
	
	document.getElementById("banner-graphic").innerHTML= "<img alt='Beaumont Tower' src='/_files/images/beaumont.jpg'/><img alt='"+alt+"' src='/_files/images/rotation/banner_"+num+".jpg'/>";


}



/* END function */
}
