var timeDelay = 5; // change delay time in seconds
var Pix = new Array
("/images/home_home_trends_ex.jpg" 
,"/images/home_home_trends_ex_2.jpg"
,"/images/home_home_trends_ex_3.jpg"
,"/images/home_home_trends_ex_4.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;
}

function openWin(URL,x,y) {
	var newWindow = window.open(URL, 'popupnav', 'width=' + x + ',height='+ y+',resizable=1,scrollbars=1');
	newWindow.focus()
}

window.onload = function() {
	startPix();
}
