
onLoad.add("mouseOverControllerInit()");
var act;

function objControl(baseIdName)
{
	var i;
	this.baseIdName = baseIdName;
	this.id = new Array;

	this.mouseOver = function () {
		for (i = 0; i < this.id.length; i++) {
			this.id[i].obj.className = this.id[i].hover;
		}
	}
	this.mouseOut = function () {
		for (i = 0; i < this.id.length; i++) {
			this.id[i].obj.className = this.id[i].inactive;
		}
	}
	this.onClick = function () {
		for (i = 0; i < this.id.length; i++) {
			this.id[i].obj.className = this.id[i].active;
		}
	}
	this.newId = function (nameExt, inactive, active, hover) {
		ndx = this.id.length;
		this.id[ndx] = new function () {}
		this.id[ndx].obj = document.getElementById(this.baseIdName + nameExt);
		this.id[ndx].inactive = inactive;
		this.id[ndx].active = active;
		this.id[ndx].hover = hover;
	}
}

function mouseOverControllerInit()
{
	var i;
	act = new Array;
	for (i = 0; i < 10; i++) {
		act[i] = new objControl("act"+i);
		act[i].newId("A", "aInactive", "empty", "aHover");
		act[i].newId("B", "thumbnail", "empty", "thumbnailHover");
	}	
}
