// JavaScript Document

// Drummy's Random Image Script
// (C) 2006 Paul Voth, Drummy.org
// Please leave this copyright notice
// In the script if you're gonna use it :)

function get_random()
{

// Make sure that random()*X) has the correct
// number. The number of images defined below.
var ranNum= Math.floor(Math.random()*19);
return ranNum;
}
var whichImg=get_random();

function show_image() {

// Add your images here.
// Make sure that Array(X) has the number
// of images that you want to include
var img=new Array(19)
img[0]="/random_images/photo1.jpg";
img[1]="/random_images/photo2.jpg";
img[2]="/random_images/photo3.jpg";
img[3]="/random_images/photo4.jpg";
img[4]="/random_images/photo5.jpg";
img[5]="/random_images/photo6.jpg";
img[6]="/random_images/photo7.jpg";
img[7]="/random_images/photo8.jpg";
img[8]="/random_images/photo9.jpg";
img[9]="/random_images/photo10.jpg";
img[10]="/random_images/photo11.jpg";
img[11]="/random_images/photo12.jpg";
img[12]="/random_images/photo13.jpg";
img[13]="/random_images/photo14.jpg";
img[14]="/random_images/photo15.jpg";
img[15]="/random_images/photo16.jpg";
img[16]="/random_images/photo17.jpg";
img[17]="/random_images/photo18.jpg";
img[18]="/random_images/photo19.jpg";
 // Here the actual displaying of the image is taking place.
document.write("<img src='");
document.write(img[whichImg]);
document.write("' border='0' />");
}
