I would like to add a link my pictures. This is my code. As it is right now the slide show is broken when I put "document.images.SlideShow.src = preLoad[j].src;" in the code. When it's not in there it works great.

Code:
var imgArray = new Array(3); //this needs to be 15 in the end

imgArray[0] = new Image;
imgArray[0].src ="images/pic1.jpg";

imgArray[1] = new Image;
imgArray[1].src ="images/pic2.jpg";

imgArray[2] = new Image;
imgArray[2].src ="images/pic3.jpg";

var linkArray = new Array();
linkArray[0] = "contact.php";
linkArray[1] = "elder.php";
linkArray[2] = "about.php";

var index = 0;

function cycle()
{
	document.banner.src = imgArray[index].src;
	 
	index++;
	if(index == 3)
	{
		index=0;
	}
	setTimeout("cycle()", 2000);
	return;
}
Code:
<body onLoad="cycle()">
Code:
<a href="citizenandcop.php"><img src="images/pic1.jpg" name="banner" alt="cycling pictures" width:100% height="80%"/></a>