// 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/studentcenter/sc-arts.html^^images/rotation/072210artgallery2.jpg");
emupics.push("http://www.emich.edu/studentcenter/sc-arts.html^^images/rotation/072210artgallery1.jpg");
emupics.push("http://www.emich.edu/studentcenter/sc-arts.html^^images/rotation/072210artgallery3.jpg");
emupics.push("http://www.emich.edu/studentcenter/sc-arts.html^^images/rotation/072210artgallery4.jpg");
emupics.push("http://www.emich.edu/housing^^images/rotation/072010windows.jpg");
emupics.push("http://www.emich.edu/^^images/rotation/071910haggard.jpg");
emupics.push("http://www.emich.edu/^^images/rotation/071510planetarium2.jpg");
emupics.push("http://www.emich.edu/^^images/rotation/071610observatory.jpg");
emupics.push("http://www.emich.edu/^^images/rotation/071310hawaii1.jpg");
emupics.push("http://www.emich.edu/univcomm/releases/052510usatoday.html^^images/rotation/052510bigfatzero.jpg");
emupics.push("http://www.emich.edu/zero^^images/rotation/042010zero.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>';
}
