var photos = new Array()

//Enter photo paths below, using:  photos[#] = 'path/to/picture.jpg'  (Start with photos[0])
photos[0] = 'files/images/home-main-pics1.jpg'
photos[1] = 'files/images/home-main-pics2.jpg'
photos[2] = 'files/images/home-main-pics3.jpg'
photos[3] = 'files/images/home-main-pics4.jpg'
photos[4] = 'files/images/home-main-pics5.jpg'
photos[5] = 'files/images/home-main-pics6.jpg'

//DO NOT EDIT PAST THIS POINT!
//*****************************
function preloadImages() {
	if (document.images) {
	i=0;
	while (i<photos.length) {
		var img = 'img'+i
		var path = photos[i];
		img = new Image();
		img.src = path
		i++
		}}}
function showImage(x,time) {
	if(time!=null){time='stop';}
document.getElementById("Images").innerHTML = '<image border=\"0\" src=\"'+photos[x]+'">';
  var Links = '';
  var i;
  for (i = 0; i < photos.length; i++) {
  	if (i>0) {Links += '&nbsp;'}
    if (i == x) { Links += (i+1); }
    else { Links += '<a href=\"javascript:clearTimeout(t);showImage('+i+',stop);\">' + (i+1) + '</a>'; }
  }
document.getElementById("ImageLinks").innerHTML = Links;
 if (time != 'stop') {
 	if ((x+1)<photos.length) {i=x+1;}
 	else {i=0;}
 	t=setTimeout("showImage("+i+")",5000);
 }
}