var slideshow_width='600px' //SET IMAGE WIDTH
var slideshow_height='300px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages=new Array()
//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:

fadeimages[0]=["Images/gifimages/Porsche 003.jpg",400,225,0 ]; //plain image syntax
fadeimages[1]=["Images/gifimages/shop3-cropped.JPG",400,225,0 ]; //image with link syntax
fadeimages[2]=["Images/gifimages/MaxLife2-cropped.jpg", 400,225,0 ]; //image with link and target syntax
fadeimages[3]=["Images/gifimages/scissorliftslide.jpg", 400,225,0 ]; //image with link and target syntax
fadeimages[4]=["Images/gifimages/V8toranaslide.JPG", 400,225,0 ]; //image with link and target syntax
fadeimages[5]=["Images/gifimages/solarbattslide-cropped.jpg", 400,225,0 ]; //image with link and target syntax
////NO need to edit beyond here/////////////

var preloadedimages=new Array();
var nextimageindex=1;
var d;

function initShow(){
	for (p=0;p<fadeimages.length;p++){
		preloadedimages[p]=new Image();
		preloadedimages[p].src=fadeimages[p][0];
		preloadedimages[p].width = 	fadeimages[p][1];
		preloadedimages[p].height = fadeimages[p][2];
		preloadedimages[p].hspace = fadeimages[p][3];
	}	

	d=document.getElementById("slideshow");
	d.appendChild(preloadedimages[0]);
	setInterval("startShow()",pause);
}
	
function startShow() {
	while (d.hasChildNodes()) {
		d.removeChild(d.firstChild);
	}
	
	d.appendChild(preloadedimages[nextimageindex]);
	nextimageindex = (nextimageindex+1)%6;
}

