// JavaScript Document
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/rotate/11.jpg'
theImages[1] = 'images/rotate/12.jpg'
theImages[2] = 'images/rotate/13.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]+'">');
}


//second image swap

var theImages2 = new Array()

theImages2[0] = 'images/rotate/21.jpg'
theImages2[1] = 'images/rotate/22.jpg'
theImages2[2] = 'images/rotate/23.jpg'
theImages2[3] = 'images/rotate/24.jpg'


// do not edit anything below this line

var j = 0
var p = theImages2.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages2[i]
}
var whichImage2 = Math.round(Math.random()*(p-1));
function showImage2(){
document.write('<img src="'+theImages2[whichImage2]+'">');
}

//third image swap

var theImages3 = new Array()

theImages3[0] = 'images/rotate/31.jpg'
theImages3[1] = 'images/rotate/32.jpg'
theImages3[2] = 'images/rotate/33.jpg'


// do not edit anything below this line

var j = 0
var p = theImages3.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages3[i]
}
var whichImage3 = Math.round(Math.random()*(p-1));
function showImage3(){
document.write('<img src="'+theImages3[whichImage3]+'">');
}

//fourth image swap

var theImages4 = new Array()

theImages4[0] = 'images/rotate/41.jpg'
theImages4[1] = 'images/rotate/42.jpg'
theImages4[2] = 'images/rotate/43.jpg'


// do not edit anything below this line

var j = 0
var p = theImages4.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages4[i]
}
var whichImage4 = Math.round(Math.random()*(p-1));
function showImage4(){
document.write('<img src="'+theImages4[whichImage4]+'">');
}