var timeDelay = 7; // change delay time in seconds
var Pix = new Array
("images/Alfa_GT_05-1.jpg" 
,"images/ford_fiesta_00-2.jpg" 
,"images/ford_focus_04-3.jpg" 
,"images/ford_focus_05.jpg" 
,"images/mercedes_270cdi_02.jpg" 
,"images/nissan_almera_06.jpg" 
,"images/saab_95_02.jpg" 
,"images/seat_leon_00.jpg" 
,"images/subaru_impreza_01.jpg" 
);
var howMany = Pix.length;
timeDelay *= 500;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];

function galleryLoad(gallery) {
	myRef = window.open(gallery,'mywin','width=670,height=610,toolbar=0,resizable=0');
	myRef.focus();
}

function loadDisplay(pImg) {
	var doc = document;
	var frm = doc.getElementById('display');
	frm.setAttribute('src', pImg);
}

function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
