// JavaScript Document



// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================



var theImages = new Array() 

theImages[0] = '/images/random960/random0.jpg'
theImages[1] = '/images/random960/random1.jpg'
theImages[2] = '/images/random960/random2.jpg'
theImages[3] = '/images/random960/random3.jpg'
theImages[4] = '/images/random960/random4.jpg'
theImages[5] = '/images/random960/random5.jpg'
theImages[6] = '/images/random960/random6.jpg'
theImages[7] = '/images/random960/random7.jpg'
theImages[8] = '/images/random960/random8.jpg'
theImages[9] = '/images/random960/random9.jpg'
theImages[10] = '/images/random960/random10.jpg'
theImages[11] = '/images/random960/random11.jpg'
theImages[12] = '/images/random960/random12.jpg'
theImages[13] = '/images/random960/random13.jpg'
theImages[14] = '/images/random960/random14.jpg'
theImages[15] = '/images/random960/random15.jpg'
theImages[16] = '/images/random960/random16.jpg'
theImages[17] = '/images/random960/random17.jpg'
theImages[18] = '/images/random960/random18.jpg'
theImages[19] = '/images/random960/random19.jpg'
theImages[20] = '/images/random960/random20.jpg'
theImages[21] = '/images/random960/random21.jpg'


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]+'" alt="randomly generated image of happy children and loving families" />');
}



