currentIndx=0;
maxIndx=12;

MyImages=new Array();

MyImages[0]='_images/tech_sld.gif';
MyImages[1]='_images/dell.jpg';
MyImages[2]='_images/CL_brig.jpg';
MyImages[3]='_images/CL_carrier.jpg';
MyImages[4]='_images/CL_bazaar.jpg';
MyImages[5]='_images/CL_crinno.jpg';
MyImages[6]='_images/CL_discover.jpg';
MyImages[7]='_images/CL_itpl.jpg';
MyImages[8]='_images/RL_railings-01.jpg';
MyImages[9]='_images/GT_gate01.jpg';
MyImages[10]='_images/RL_stairs-01.jpg';
MyImages[11]='_images/RL_railings-09.jpg';
MyImages[12]='_images/CL_john.jpg';

imagesPreloaded = new Array(4)

for (var i = 0; i < MyImages.length ; i++)
{
imagesPreloaded[i] = new Image(255,160)
imagesPreloaded[i].src=MyImages[i]
}

function automaticly() {
if (currentIndx<maxIndx)
{
currentIndx=currentIndx+1;
}
else {
currentIndx=0
}

/* I have put this code at the end, so it follows on naturally after the value of currentIndx is determined */

document.theImage.src=imagesPreloaded[currentIndx].src

/* The only special bit of script is this line, which sets the timer value to 5 seconds, or 5000 milliseconds. */

var delay = setTimeout("automaticly()",3000)
}