// 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 :)

//To add more images 
//Change numImages to total number of images
//Add to the img array

var numImages = 4;

function get_random()
{

    // Make sure that random()*X) has the correct
    // number. The number of images defined below.
    var ranNum= Math.floor(Math.random()*numImages);
    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(numImages)
    img[0]="/images/logo1.png";
    img[1]="/images/logo2.png";
    img[2]="/images/logo3.png";
    img[3]="/images/logo4.png";
    
    // Here the actual displaying of the image is taking place.
    document.write("<img id='header' src='");
    document.write(img[whichImg]);
    document.write("' alt='Travel Encounters' />");
}


