/*
   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://www.lib.auburn.edu";
var imgPath = urlPath+"/gallery/";

var imgCount = 0;
var aulImages = new Array();
aulImages[imgCount++] = new Array("cc.jpg", "Caribou Coffee Coming Soon", "http://www.lib.auburn.edu/whatsnew/2009/10/caribou-coffee-cafe-open-oct-26/");
aulImages[imgCount++] = new Array("iphone.jpg", "Auburn University Libraries Mobile Site", "http://m.lib.auburn.edu");
aulImages[imgCount++] = new Array("rbd.jpg", "Ralph Brown Draughon Library", "http://www.lib.auburn.edu");
aulImages[imgCount++] = new Array("ss.jpg", "Subject Specialists Are Help To Help", "http://www.lib.auburn.edu/subjectguides");
aulImages[imgCount++] = new Array("twitter.jpg", "Follow Us On Twitter", "http://www.twitter.com/aulibraries");






var imgID = Math.floor(Math.random() * imgCount);


function showRandomImage() {
	document.write('<a style="border-bottom:none;" href="'+ aulImages[imgID][2] +'"><img src="'+ imgPath +'/mainpage288/'+ aulImages[imgID][0] +'" width="288" height="288" alt="'+ aulImages[imgID][1] +'" title="'+ aulImages[imgID][1] +' " border="0"></a>');
}
