// JavaScript Document

NumberOfImagesToRotate = 8;

// Specify the first and last part of the image tag. 

FirstPart = '<img src="../scrollingimage';
LastPart = '.jpg" height="256" width="603">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}

