// 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/random/random1.png'
theImages[1] = 'images/random/random46.png'
theImages[2] = 'images/random/random47.png'
theImages[3] = 'images/random/random6.png'
theImages[4] = 'images/random/random7.png'
theImages[5] = 'images/random/random8.png'
theImages[6] = 'images/random/random10.png'
theImages[7] = 'images/random/random12.png'
theImages[8] = 'images/random/random13.png'
theImages[9] = 'images/random/random14.png'
theImages[10] = 'images/random/random16.png'
theImages[11] = 'images/random/random17.png'
theImages[12] = 'images/random/random18.png'
theImages[13] = 'images/random/random19.png'
theImages[14] = 'images/random/random20.png'
theImages[15] = 'images/random/random21.png'
theImages[16] = 'images/random/random22.png'
theImages[17] = 'images/random/random26.png'
theImages[18] = 'images/random/random27.png'
theImages[19] = 'images/random/random31.png'
theImages[20] = 'images/random/random32.png'
theImages[21] = 'images/random/random35.png'
theImages[22] = 'images/random/random36.png'
theImages[23] = 'images/random/random37.png'
theImages[24] = 'images/random/random43.png'
theImages[25] = 'images/random/random44.png'
theImages[26] = 'images/random/random45.png'

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" />');
}


