var imgname = new Array()
var intRandomInteger

function randimage()
{
var intLowerBound
var intUpperBound
var intRangeSize
var sngRandomValue
var numimages

numimages = 5;

imgname[0]="rig1.jpg";
imgname[1]="rig2.jpg";
imgname[2]="rig3.jpg";
imgname[3]="rig4.jpg";
imgname[4]="rig5.jpg";



intLowerBound = 0;
intUpperBound = numimages-2;  //this should be one less then the max array number
intRangeSize = intUpperBound - intLowerBound + 1;




// Get a random number from 0 to the size of the range
sngRandomValue = intRangeSize * Math.random();

// Center the range of possible random numbers over the desired result set
sngRandomValue = sngRandomValue + intLowerBound;

// Convert our value to an integer
intRandomInteger = Math.round(sngRandomValue);




document.write ("<img height=116 src='./images/revolving/" + imgname[intRandomInteger] + "' width=239 border=0 name=section_banner>");




}