
// ==============================================
// 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] = 'stamp1.jpg'
theImages[1] = 'stamp2.jpg'
theImages[3] = 'stamp4.jpg'
theImages[4] = 'stamp5.jpg'
theImages[5] = 'stamp6.jpg'
theImages[6] = 'stamp7.jpg'
theImages[7] = 'stamp8.jpg'
theImages[8] = 'stamp9.jpg'
theImages[9] = 'stamp10.jpg'
theImages[10] = 'stamp12.jpg'
theImages[11] = 'stamp13.jpg'
theImages[12] = 'stamp14.jpg'
theImages[13] = 'stamp15.jpg'
theImages[14] = 'stamp16.jpg'
theImages[15] = 'stamp17.jpg'
theImages[16] = 'stamp18.jpg'
theImages[17] = 'stamp19.jpg'
theImages[18] = 'stamp20.jpg'
theImages[19] = 'stamp21.jpg'
theImages[20] = 'stamp22.jpg'
theImages[21] = 'stamp23.jpg'
theImages[23] = 'stamp24.jpg'
theImages[24] = 'stamp25.jpg'
theImages[25] = 'stamp26.jpg'
theImages[26] = 'stamp27.jpg'
theImages[27] = 'stamp28.jpg'
theImages[28] = 'stamp29.jpg'
theImages[29] = 'stamp30.jpg'
theImages[30] = 'stamp31.jpg'
theImages[31] = 'stamp32.jpg'
theImages[32] = 'stamp33.jpg'
theImages[33] = 'stamp34.jpg'
theImages[34] = 'stamp36.jpg'
theImages[35] = 'stamp37.jpg'
theImages[36] = 'stamp38.jpg'
theImages[37] = 'stamp39.jpg'
theImages[38] = 'stamp11.jpg'
theImages[39] = 'stamp35.jpg'
theImages[40] = 'stamp40.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="http://www.amadeusaviation.com/stamps/'+theImages[whichImage]+'">');
}


