﻿var timeDelay = 8; // change delay time in secondsvar Pix = new Array("images/homePic.jpg" ,"images/homePic2.jpg" ,"images/homePic3.jpg" );var howMany = Pix.length;timeDelay *= 400;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;}