<!--

// create function for user defined image objs
// _name: image url
// _width: image width
//	_width == 0 ==> image width undefined
// _height: image height
//	_height == 0 ==> image height undefined
function image(_name, _width, _height) {
	this.name = _name;
	this.width = _width;
	this.height = _height;
}

// create array of image objs
acresfront = new Array();
acresfront[0] = new image("images/front/00.jpg", 0, 0);
acresfront[1] = new image("images/front/01.jpg", 0, 0);
acresfront[2] = new image("images/front/02.jpg", 0, 0);
acresfront[3] = new image("images/front/03.jpg", 0, 0);
acresfront[4] = new image("images/front/04.jpg", 0, 0);
acresfront[5] = new image("images/front/05.jpg", 0, 0);
acresfront[6] = new image("images/front/06.jpg", 0, 0);
acresfront[7] = new image("images/front/07.jpg", 0, 0);
acresfront[8] = new image("images/front/08.jpg", 0, 0);
acresfront[9] = new image("images/front/09.jpg", 0, 0);
acresfront[10] = new image("images/front/10.jpg", 0, 0);
acresfront[11] = new image("images/front/11.jpg", 0, 0);
acresfront[12] = new image("images/front/12.jpg", 0, 0);

// Return an image tag for html doc
function randomImageTag(imgs) {
	//index to selected image
	var idx = Math.floor(Math.random() * imgs.length);

	var tag = "<img id=\"front_image\" src=\"" +imgs[idx].name +"\"";

	// if image width is defined
	if (imgs[idx].width !=0)
	tag += "height=" + imgs[idx].height;

	tag += ">";

	return tag;
}
//-->