

//Build image cache      
var imageLibrary = new Array();
imageLibrary[0] = new Image(396,594);
imageLibrary[0].src = "gallery/vogue2med.jpg";
imageLibrary[1] = new Image(409,600);
imageLibrary[1].src = "gallery/gallery1/globes2011med.jpg";
imageLibrary[2] = new Image(331,670);
imageLibrary[2].src = "gallery/gallery2/hollywoodStar.jpg";
imageLibrary[3] = new Image(479,670);
imageLibrary[3].src = "gallery/premr-0oo05.jpe";
imageLibrary[4] = new Image(432,594);
imageLibrary[4].src = "gallery/event-00yyyy9.jpe";
imageLibrary[5] = new Image(300,389);
imageLibrary[5].src = "gallery/2007.jpg";
imageLibrary[6] = new Image(450,600);
imageLibrary[6].src = "gallery/anotr-002.jpe";
imageLibrary[7] = new Image(450,600);
imageLibrary[7].src = "gallery/anotr-003.jpe";
imageLibrary[8] = new Image(450,600);
imageLibrary[8].src = "gallery/gallery1/bigNonimed2.jpg";
imageLibrary[9] = new Image(407,800);
imageLibrary[9].src = "gallery/gallery1/blackSwanlaunch.jpg";
imageLibrary[10] = new Image(407,800);
imageLibrary[10].src = "gallery/gallery2/noniBlack.jpg ";
imageLibrary[11] = new Image(407,800);
imageLibrary[11].src = "gallery/vogue1med.jpg";


var counter = 1;
var intervalID;

//Run slideshow

intervalID = setInterval("changeImage()", 5000);



function changeImage() {
			
			document.first.src = imageLibrary[counter].src;
			counter++;

//Test to stop running off end of image array
			if (counter > 11) {
				counter = 0;
			}

}


