var ImagesPath = "images/";
var ButtonsPath = "buttons/";

imgFileName = new Array()
imgWidth = new Array()
imgHeight = new Array()

function StartUp()
{
var imgCount = 1;

var CurrentImage =  1;
imgFileName[CurrentImage] = "carolynredswtr.jpg";
imgWidth[CurrentImage] = "340";
imgHeight[CurrentImage] = "470";

CurrentImage =  2;
imgFileName[CurrentImage] = "L144PurpTNeck.jpg";
imgWidth[CurrentImage] = "340";
imgHeight[CurrentImage] = "470";

CurrentImage =  3;
imgFileName[CurrentImage] = "C164RedVNotch.jpg";
imgWidth[CurrentImage] = "340";
imgHeight[CurrentImage] = "470";

var RandomNumber = Math.round(100*Math.random());	// Random number from 0 to 100
var SectionSize = 100 / imgCount;					// Portion of 100 for each image
CurrentImage = Math.ceil(RandomNumber / SectionSize);		// Which portion the rand # is in

LoadImage(CurrentImage);
}

function LoadImage(CurrentImage)
{
document.imgModel.width = imgWidth[CurrentImage];
document.imgModel.height = imgHeight[CurrentImage];
document.imgModel.src = ImagesPath + imgFileName[CurrentImage];
}
