<!-- 

// Slide show

NewImg = new Array (
"images/slideshow/1.jpg",
"images/slideshow/2.jpg",
"images/slideshow/3.jpg",
"images/slideshow/4.jpg",
"images/slideshow/5.jpg",
"images/slideshow/6.jpg",
"images/slideshow/7.jpg",
"images/slideshow/21.jpg",
"images/slideshow/22.jpg",
"images/slideshow/23.jpg",
"images/slideshow/24.jpg",
"images/slideshow/25.jpg",
"images/slideshow/26.jpg",
"images/slideshow/27.jpg",
"images/slideshow/31.jpg",
"images/slideshow/32.jpg",
"images/slideshow/33.jpg",
"images/slideshow/34.jpg",
"images/slideshow/35.jpg",
"images/slideshow/36.jpg",
"images/slideshow/37.jpg",
"images/slideshow/41.jpg",
"images/slideshow/42.jpg",
"images/slideshow/43.jpg",
"images/slideshow/44.jpg",
"images/slideshow/45.jpg",
"images/slideshow/46.jpg",
"images/slideshow/47.jpg",
"images/slideshow/48.jpg",
"images/slideshow/49.jpg"
);

//Time delay between Slides in milliseconds
var delay = 2500;

var ImgNum = 0;
var ImgLength = NewImg.length - 1;

var lock = false;
var run;

var randomnumber;


function chgImg(direction) {

	if (document.images) {

		// image display sequence
		//ImgNum = ImgNum + direction;    // Sequential image display -> uncomment to display sequentially
		ImgNum = Math.floor(Math.random()* ImgLength)   // Random image display -> uncomment to dispay random

		if (ImgNum > ImgLength) {
			ImgNum = 0;
		}
		if (ImgNum < 0) {
			ImgNum = ImgLength;
		}
		document.slideshow.src = NewImg[ImgNum];
   }
}

function auto() {

	if (lock == true) {
		lock = false;
		window.clearInterval(run);
	}

	else if (lock == false) {
		lock = true;
		run = setInterval("chgImg(1)", delay);
   }
}


//--> 