
	var ns6=(document.getElementById && !document.all);
	var delay = 10000;
	var lock = false;
	var run;
	
	thisPic = 0;
	thisText = 0;
	imgCt = Pic.length - 1
	textCt = Text.length - 1
	
	function chgSlide(direction) {
		if (document.images) {
			thisPic = thisPic + direction
			thisText = thisText + direction
			if (thisPic > imgCt) {
				thisPic = 0
				thisText = 0
			}
			if (thisPic < 0) {
				thisPic = imgCt
				thisText = textCt
			}
			document.SlideShow.src=Pic[thisPic]
			if(ns6){
				setTimeout('changeText()',400);
			}
		}
	}
	
function HomePic(){
	document.SlideShow.src=Pic[0]
	document.getElementById("blah").innerHTML = Text[0]
	auto(); 
}

function changeText(){
	document.getElementById("blah").innerHTML = Text[thisText] 
}

function auto() {
	if (lock == true) {
	lock = false;
	window.clearInterval(run);
	document.getElementById("pausePlay").value = "Play";
	}
	else if (lock == false) {
	lock = true;
	run = setInterval("chgSlide(1)", delay);
	document.getElementById("pausePlay").value = "Pause";
	   }
}

