
function setStyle(id, color) {

	if(document.all) {
		document.all[id].style.backgroundColor = color;
	}
	else {
		document.getElementById(id).style.backgroundColor = color;
	}
}

NS4 = (document.layers) ? 1 : 0;
NS5 = (document.getElementById) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;

if(IE4 == 1) {
	NS5 = 0;
}

function hideLayer(Layer) {
		if (NS4) {
			document.layers[Layer].visibility = "hide";
		} // endif

		if (NS5) {
			document.getElementById(Layer).style.visibility = "hidden";
		} // endelse

		if (IE4) {
			document.all[Layer].style.visibility = "hidden";
		} // endelse

} // end of hideLayer()

function showLayer(Layer) {

		if (NS4) {
			document.layers[Layer].visibility = "visible";
		} // endif


		if (NS5) {
			document.getElementById(Layer).style.visibility = "visible";
		} // endelse


		if (IE4) {
			document.all[Layer].style.visibility = "visible";
		} // endelse
		
} // end of showLayer()


