<!--
function findObj(objId) {
	var x;
	x = document.getElementById(objId);
	return x;
}

function showHideLayers(objId, visibility) {
	var v, obj = findObj(objId);
	if (obj.style) {
		obj = obj.style;
		if (visibility == 'show')
			v = 'visible';
		else if (visibility == 'hide')
			v = 'hidden';
	}
	obj.visibility = v;
}

// Sets to hidden each layer.
function hide() {
	var args = hide.arguments;
	for (i = 0; i < args.length; i++) {
		var obj = findObj(args[i]);
		if (obj.style) {
			obj = obj.style;
			if (obj.visibility == 'visible')
				obj.visibility = 'hidden';		
		}
	}
}

// Sets to visible the first layer and sets to hidden the remaining layer.
function showHide() {
	var args = showHide.arguments;
	for (i = 0; i < args.length; i++) {
		var obj = findObj(args[i]);
		if (obj.style) {
			obj = obj.style;
			if (i == 0)
				obj.visibility = 'visible';
			else
				obj.visibility = 'hidden';
				
		}
	}
}

//-->