// JavaScript Document
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// 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. Rememeber
// to increment the theImages[x] index!
theImages[0] = 'images/rotator/uncrut-sculptures-fine-art-gallery.jpg'
theImages[1] = 'images/rotator/Trojan-Knight.jpg'
theImages[2] = 'images/rotator/Venus-from-Poellau.jpg'
theImages[3] = 'images/rotator/Unknown-Hero-Relic.jpg'
theImages[4] = 'images/rotator/The-bet-with-the-legend.jpg'
theImages[5] = 'images/rotator/Christian-I.jpg'
theImages[6] = 'images/rotator/Madame-Recamier.jpg'
theImages[7] = 'images/rotator/Portrait-study-of-man.jpg'
theImages[8] = 'images/rotator/Dialogue-between-two-generations.jpg'
theImages[9] = 'images/rotator/Dissident-Head.jpg'
theImages[10] = 'images/rotator/Mother-s-Head.jpg'
theImages[11] = 'images/rotator/Heroes-Torso-II.jpg'
theImages[12] = 'images/rotator/Heroes-Torso-III.jpg'
theImages[13] = 'images/rotator/Heroes-Torso-IV.jpg'
theImages[14] = 'images/rotator/Heroes-Torso-I.jpg'
theImages[15] = 'images/rotator/Vehicle-III.jpg'
theImages[16] = 'images/rotator/Vehicle-II.jpg'
theImages[17] = 'images/rotator/Vehicle-V.jpg'
theImages[18] = 'images/rotator/Vehicle-IV.jpg'
theImages[19] = 'images/rotator/Vehicle-VI.jpg'
theImages[20] = 'images/rotator/Vehicle-VII.jpg'
theImages[21] = 'images/rotator/Vehicle-I.jpg'

// ======================================
// do not change 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]+'">');
}
