// JavaScript Document
PhotoArray = new Array (4); // This must match the total number of images to be rotated
PhotoArray[0] = "mdg/pic1.jpg"; // You must use the correct path to your images in this array
PhotoArray[1] = "mdg/pic2.jpg";
PhotoArray[2] = "mdg/pic3.jpg";
PhotoArray[3] = "mdg/pic4.jpg";

current_banner=0;
banner=PhotoArray.length;
function CycleImage() {
if (current_banner==banner) {
current_banner=0;
}
document.MyImage.src=PhotoArray[current_banner];
current_banner ++;
setTimeout("CycleImage()", 2*800);
}
// End -->