var timeDelay = 1200; // change delay time in seconds
var Pix = new Array
("images/banner/th/pic1-th.jpg"
,"images/banner/th/pic2-th.jpg"
,"images/banner/th/pic3-th.jpg"
,"images/banner/th/pic4-th.jpg"
,"images/banner/th/pic5-th.jpg"
,"images/banner/th/pic6-th.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;
}
