// JavaScript Document


// the number in the brackets below is the number of images to be used

var images = new Array(15)

// this is the list of images that will be used in the random selection
// use this form: images[x] = 'pathtoimage.gif';
// note the first element must have the number 0

images[0] = 'img/quote_v1.gif';
images[1] = 'img/quote_v2.gif';
images[2] = 'img/quote_v3.gif';
images[3] = 'img/quote_v4.gif';
images[4] = 'img/quote_v5.gif';
images[5] = 'img/quote_l1.gif';
images[6] = 'img/quote_l2.gif';
images[7] = 'img/quote_l3.gif';
images[8] = 'img/quote_l4.gif';
images[9] = 'img/quote_l5.gif';
images[10] = 'img/quote_d1.gif';
images[11] = 'img/quote_d2.gif';
images[12] = 'img/quote_d3.gif';
images[13] = 'img/quote_d4.gif';
images[14] = 'img/quote_d5.gif';

// get a random number between 0 and 3 (get used to counting from 0 when programming)

var rand = Math.floor(Math.random() * images.length);

// get the image URL corresponding to the random number

var image = images[rand];

// "write" the HTML code for the image to the document

document.write('<img src="' + image + '" alt="Random Quote" />');

//-->

