// JavaScript Document
var timer = null
var	 counter = -1


//This sets up the link/picture array.  Enter the link first, then "^^" then the picture URL.
emupics = new Array();

emupics.push("http://www.emich.edu/emuamp^^images/rotation/112009canart.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111709vball1.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111709vball2.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111609falconaires1.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111609falconaires2.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109mcgee.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109mcgee2.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109sva.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109flagraising.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109veteran-ribbon.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109tgiving1.jpg");
emupics.push("http://www.emich.edu^^images/rotation/111109assael.jpg");
emupics.push("http://www.emich.edu/focus_emu/111009/fallfeastfeaturephoto.html^^images/rotation/111009nativeamerican2.jpg");
emupics.push("http://www.emich.edu^^images/rotation/110909glovermovie1.jpg");







function displayArray() {
	timer=setTimeout("displayArray()", 6000);//6000 is the number of milliseconds that each picture will display.  6000 = 6 seconds
	counter++;
	if (counter >= emupics.length){counter = 0};
	var a = emupics[counter];
	var b = a.split("^^");//Splits the string on the ^^ symbol.
	document.getElementById('imageplace').innerHTML='<div class="nobox"><a href="'+b[0]+'"><IMG SRC="'+b[1]+'"alt="EMU Images"  name="emuimages" width="625" height="221"></a></div>';
}