var timeDelay = 5; // change delay time in seconds
var Pix = new Array
("images/PTEC_PhotoGallery/01_PTEC.jpg"
,"images/PTEC_PhotoGallery/02_PTEC.jpg"
,"images/PTEC_PhotoGallery/03_PTEC.jpg"
,"images/PTEC_PhotoGallery/04_PTEC.jpg"
,"images/PTEC_PhotoGallery/05_PTEC.jpg"
,"images/PTEC_PhotoGallery/06_PTEC.jpg"
,"images/PTEC_PhotoGallery/07_PTEC.jpg"
,"images/PTEC_PhotoGallery/08_PTEC.jpg"
,"images/PTEC_PhotoGallery/09_PTEC.jpg"
,"images/PTEC_PhotoGallery/10_PTEC.jpg"
,"images/PTEC_PhotoGallery/11_PTEC.jpg"
,"images/PTEC_PhotoGallery/12_PTEC.jpg"
,"images/PTEC_PhotoGallery/13_PTEC.jpg"
,"images/PTEC_PhotoGallery/14_PTEC.jpg"
,"images/PTEC_PhotoGallery/15_PTEC.jpg"
,"images/PTEC_PhotoGallery/16_PTEC.jpg"
,"images/PTEC_PhotoGallery/17_PTEC.jpg"
,"images/PTEC_PhotoGallery/18_PTEC.jpg"
,"images/PTEC_PhotoGallery/19_PTEC.jpg"
,"images/PTEC_PhotoGallery/20_PTEC.jpg"
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];

function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navSelected");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav1");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav2");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav3");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav4");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

