// JavaScript Document
//internal image rotator
<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this

theImages[0] = '/images/octemplate/sidepic_1.jpg'
theImages[1] = '/images/octemplate/sidepic_2.jpg'
theImages[2] = '/images/octemplate/sidepic_3.jpg'
theImages[3] = '/images/octemplate/sidepic_4.jpg'
theImages[4] = '/images/octemplate/sidepic_5.jpg'
theImages[5] = '/images/octemplate/sidepic_6.jpg'



// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="'+theImages[whichImage]+'" alt="Random Images" width="256" height="250" border="0" />');
}

//Second function
//Internal page rotator

var theImages2 = new Array() // do not change this

theImages2[0] = '/images/octemplate/footerpic_1.jpg'
theImages2[1] = '/images/octemplate/footerpic_2.jpg'
theImages2[2] = '/images/octemplate/footerpic_3.jpg'
theImages2[3] = '/images/octemplate/footerpic_4.jpg'
theImages2[4] = '/images/octemplate/footerpic_5.jpg'
theImages2[5] = '/images/octemplate/footerpic_6.jpg'

// do not edit anything below this line

var j2 = 0
var p2 = theImages2.length;
var preBuffer2 = new Array()
for (i2 = 0; i2 < p2; i2++){
   preBuffer2[i2] = new Image()
   preBuffer2[i2].src = theImages2[i2]
}
var whichImage2 = Math.round(Math.random()*(p2-1));

function showImage2(){
document.write('<img src="'+theImages2[whichImage2]+'" alt="Random Images" width="154" border="0" />');
}
//  End -->

//Third function
//Homepage rotator

var theImages3 = new Array() // do not change this

theImages3[0] = '/images/octemplate/footerpic_1.gif'
theImages3[1] = '/images/octemplate/footerpic_2.gif'
theImages3[2] = '/images/octemplate/footerpic_3.gif'
theImages3[3] = '/images/octemplate/footerpic_4.gif'
theImages3[4] = '/images/octemplate/footerpic_5.gif'
theImages3[5] = '/images/octemplate/footerpic_6.gif'

// do not edit anything below this line

var j3 = 0
var p3 = theImages3.length;
var preBuffer3 = new Array()
for (i3 = 0; i3 < p3; i3++){
   preBuffer3[i3] = new Image()
   preBuffer3[i3].src = theImages3[i3]
}
var whichImage3 = Math.round(Math.random()*(p3-1));

function showImage3(){
document.write('<img src="'+theImages3[whichImage3]+'" alt="Random Images" width="154" border="0" />');
}
//  End -->

