﻿// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// Edited by: Jonathan G. Jose
// ==============================================

var theImages = new Array(); // Do not change this.

// Set up the image files to be used.
// To add more image files, continue with the
// pattern below, adding to the array.
// Remember to increment the theImages[x] index!
// Try to uses images that are 600 x 165 in dimension.

theImages[0] = 'images/tfl1.jpg';
theImages[1] = 'images/tfl2.jpg';
theImages[2] = 'images/tfl3.jpg';
theImages[3] = 'images/tfl4.jpg';
theImages[4] = 'images/tfl5.jpg';
theImages[5] = 'images/tfl6.jpg';
theImages[6] = 'images/tfl7.jpg';
theImages[7] = 'images/tfl8.jpg';
theImages[8] = 'images/tfl9.jpg';
theImages[9] = 'images/tfl10.jpg';
theImages[10] = 'images/tfl11.jpg';
theImages[11] = 'images/tfl12.jpg';
theImages[12] = 'images/tfl13.jpg';
theImages[13] = 'images/tfl14.jpg';
theImages[14] = 'images/tfl15.jpg';
theImages[15] = 'images/tfl16.jpg';
theImages[16] = 'images/tfl17.jpg';
theImages[17] = 'images/tfl18.jpg';
theImages[18] = 'images/tfl19.jpg';
theImages[19] = 'images/tfl20.jpg';
theImages[20] = 'images/tfl21.jpg';
theImages[21] = 'images/tfl22.jpg';
theImages[22] = 'images/tfl23.jpg';
theImages[23] = 'images/tfl24.jpg';
theImages[24] = 'images/tfl25.jpg';
theImages[25] = 'images/tfl26.jpg';
theImages[26] = 'images/tfl27.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]+'">');
};