 var photolist = new Array (
'ce/home/homea.jpg',
'ce/home/homeb.jpg',
'ce/home/homec.jpg',
'ce/home/homed.jpg',
'ce/home/homee.jpg',
'ce/home/homef.jpg',
'ce/home/homeg.jpg',
'ce/home/homeh.jpg'
 //NO COMMA ON THE LAST ONE PLEASE
)

var numofphotos=(photolist.length);
var currentphoto=0;
var i=0;
var howfast=4*1000; //interval in milliseconds (however many seconds * 1000)

function swapthephoto()
{
//Code by Ray Villalobos.
if (document.images)
{
if (currentphoto<numofphotos-1) currentphoto++;
else currentphoto=0;
document.thephoto.src=photolist[currentphoto];

setTimeout('swapthephoto()',howfast);
}
}

setTimeout('swapthephoto()',howfast)
