function RandomImage()  {
	this.imageArray	= new Array();
	this.widthArray	= new Array();
	this.heightArray	= new Array();
	
	this.addImage	= addImage;
	this.show		= show;
}

function addImage(imageLocation, width, height)  {
	this.imageArray[this.imageArray.length] 	= imageLocation;
	this.widthArray[this.widthArray.length] 	= width;
	this.heightArray[this.heightArray.length]	= height;
}

function show()  {
	index = Math.floor(Math.random() * this.imageArray.length);
	
	imageLocation 	= this.imageArray[index];
	width			= this.widthArray[index];
	height			= this.heightArray[index];
	
	document.open();
	document.write("<img src='../new/" + imageLocation + "' border='0' width='" + width + "' height='" + height + "'>");
	document.close();
}

function getImage()  {
	index = Math.floor(Math.random() * this.imageArray.length);
	
	imageLocation 	= this.imageArray[index];
	width			= this.widthArray[index];
	height			= this.heightArray[index];
	
	document.open();
	document.write(imageLocation);
	document.close();
}
