<!-- Copyright 2002 Bontrager Connection, LLC
// Modified to allow passing of parameters
// NumImages = total number to rotate through.  If not passed, nothing returned
// PicDirectory = directory containing images.  If not passed, assume current.
// High = heigth of picture .  If not passed, use image as is.
// Wide = width of picture


function printImage(NumImages,PicDirectory,wide,high,ImageName) {
// Assumption is that all files are jpeg
LastPart = '.jpg" >';
if (NumImages > 0)
{
	FirstPart = '<img src="image';
// if user passes directory name, use it
	if (PicDirectory > ' ')
	{
            FirstPart = '<img src="' + PicDirectory + '/image';
	}
	var r = Math.ceil(Math.random() * NumImages);
// if user passes a size, use it, else default to image
	if (high > 0 )
	{
		if (wide > 0)
			{
			 LastPart = '.jpg" height="' + high + '" width="' + wide + '">'; 
			}
	}
	document.write(FirstPart + r + LastPart);

//	document.write(" high=" + high);
//	document.write(" wide=" + wide);
//	document.write(" directory=" + PicDirectory);
//	document.write(" num files=" + NumImages);
        if (ImageName > ' ')
	{
	 document.write('<font size="small">' + " Image Source: " + PicDirectory + '/image' + r);
	}
	}


}
//-->