
// Set up the image files to be used.
var topImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the topImages[x] index!

topImages[0] = '/msecamp/img/rotate/h_rot1.jpg'
topImages[1] = '/msecamp/img/rotate/h_rot2.jpg'
topImages[2] = '/msecamp/img/rotate/h_rot3.jpg'
topImages[3] = '/msecamp/img/rotate/h_rot4.jpg'
topImages[4] = '/msecamp/img/rotate/h_rot5.jpg'
topImages[5] = '/msecamp/img/rotate/h_rot6.jpg'
topImages[6] = '/msecamp/img/rotate/h_rot7.jpg'
topImages[7] = '/msecamp/img/rotate/h_rot8.jpg'
topImages[8] = '/msecamp/img/rotate/h_rot9.jpg'
topImages[9] = '/msecamp/img/rotate/h_rot10.jpg'
topImages[10] = '/msecamp/img/rotate/h_rot11.jpg'
topImages[11] = '/msecamp/img/rotate/h_rot12.jpg'
topImages[12] = '/msecamp/img/rotate/h_rot13.jpg'
topImages[13] = '/msecamp/img/rotate/h_rot14.jpg'
topImages[14] = '/msecamp/img/rotate/h_rot15.jpg'
topImages[15] = '/msecamp/img/rotate/h_rot.jpg'

var leftImages = new Array()
leftImages[0] = '/msecamp/img/rotate/sn_rot1.jpg'
leftImages[1] = '/msecamp/img/rotate/sn_rot2.jpg'
leftImages[2] = '/msecamp/img/rotate/sn_rot3.jpg'
leftImages[3] = '/msecamp/img/rotate/sn_rot4.jpg'
leftImages[4] = '/msecamp/img/rotate/sn_rot5.jpg'
leftImages[5] = '/msecamp/img/rotate/sn_rot6.jpg'
leftImages[6] = '/msecamp/img/rotate/sn_rot7.jpg'
leftImages[7] = '/msecamp/img/rotate/sn_rot8.jpg'


// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = topImages.length;
var leftLength = leftImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = topImages[i]
}

var leftPreBuffer = new Array()
for (i = 0; i < leftLength; i++){
   leftPreBuffer[i] = new Image()
   leftPreBuffer[i].src = leftImages[i]
}


var whichImage = Math.round(Math.random()*(p-1));
function showTopImage(){
    document.write('<img src="'+topImages[whichImage]+'" width="489" height="125" border="0" id="msec_tnrot" alt="Going The Distance" />');
}

var whichLeftImage = Math.round(Math.random() * (leftLength-1));
function showLeftImage(){
    document.write('<img src="'+leftImages[whichLeftImage]+'" width="250" height="260" border="0" />');
}



