function objLayer(layName) {
	this.name = layName;
	this.active = false;
	this.obj = null;
	this.construct = function() {
		if (document.getElementById) {
			this.obj = document.getElementById(this.name);
			this.active = true;
			return this.obj;
		}
		else {
			if (document.all) {
					this.obj = eval('document.all.' + this.name);
					this.active = true;
					return this.obj;
			}
			else {
				if (document.layers) {
					this.obj = eval('document.layers[0].document.' + this.name);
					this.active = true;
					return this.obj;
				}
			}
		}
	}
	this.showLayer = function() {
		mObj = this.active?this.obj:this.construct();
		if (document.layers) mObj.visibility = 'show';
		else mObj.style.visibility = 'visible';
	}
	this.hideLayer = function() {
		mObj = this.active?this.obj:this.construct();
		if (document.layers) mObj.visibility = 'hide';
		else mObj.style.visibility = 'hidden';
	}
}

function showSpecLayer(obj) {
	if (mActiveLayer) mActiveLayer.hideLayer();
	if (obj) obj.showLayer();
	mActiveLayer = obj;
}
	