/*
   randomimage.js
   Copyright (C) 2007 Tony Oravet <tony.oravet@auburn.edu>
 
   Random Image Script for the Sesquicentennial Lecture Series Website.

   You may freely use and modify the script here, but you 
   may not reproduce the Auburn University Sesquicentennial 
   Lecture Series website look exactly.
*/


urlPath = "http://diglib.auburn.edu/150th";
var imgPath = urlPath+"/images/";

var imgCount = 0;
var sesquiImages = new Array();
sesquiImages[imgCount++] = new Array("woodroot_brothers.gif", "Woodroot Brothers", "woodroot.html");
sesquiImages[imgCount++] = new Array("api1925_content_winners.gif", "API Student Activities", "api1925contestwinners.htm");
sesquiImages[imgCount++] = new Array("api_vocational_students.gif", "Vocation Students", "apivoc.htm");
sesquiImages[imgCount++] = new Array("white_leghorns.gif", "White Leghorns", "white_leghorns.htm");
sesquiImages[imgCount++] = new Array("dowdell.gif", "Dowdell's Mob and Family", "dowdell.htm");
sesquiImages[imgCount++] = new Array("andrew_jones.gif", "Andrew Jones Family", "andrew-jones.htm");
sesquiImages[imgCount++] = new Array("africanamericanextension.gif", "African American Extension", "african-american-extension.htm");
sesquiImages[imgCount++] = new Array("drlnduncan.gif", "Dr. L. N. Duncan", "duncan.htm");
sesquiImages[imgCount++] = new Array("vet_coop_grocerystore.gif", "Veteran's Cooperative Grocery Store", "vetgrocery.htm");
sesquiImages[imgCount++] = new Array("vcg2.gif", "Veteran's Cooperative Grocery Store", "vetgrocery2.htm");
sesquiImages[imgCount++] = new Array("hfranklin.gif", "Harold A Franklin", "hfranklin.htm");
sesquiImages[imgCount++] = new Array("hfranklin2.gif", "Harold A Franklin", "hfranklin2.htm");
sesquiImages[imgCount++] = new Array("rdbj.gif", "Dr. Ralph Brown Draughon", "rbdj.htm");

var imgID = Math.floor(Math.random() * imgCount);


function showRandomImage() {
	document.write('<a href="'+ urlPath +'/about-the-image/'+ sesquiImages[imgID][2] +'"><img src="'+ imgPath +'/sesqui-images/'+ sesquiImages[imgID][0] +'" width="638" height="260" alt="'+ sesquiImages[imgID][1] +'" border="0"></a>');
}
