/* randomImage - image rotation code for Larry's website
 * 
 * GLOBAL VARIABLES
 * 
 * var is a random number that will determine pictures, captions, and credits for
 * the rotating image.  Chosen through function makeRandom().
 * 
 *
 */

var ran;

function makeRandom()
{
 //imageNumber is total images in the images/rotation folder.  Make sure all
 //images in the folder are consecutively numbered, from 0 to imageNumber-1.
 //imageNumber is the total number of images.

 var imageNumber = 5;
 ran=Math.floor(Math.random()*imageNumber);
}

function randomImage()
{

 document.write('<img src=\"rotation/' + ran + '.png\">');

}