// page		:	show hide layer script
// author	:	Rob Maurency robertm@domino.com
//				(with a bit of help from http://www.xs4all.nl/~ppk/js/index.html?/~ppk/js/layerwrite.html
// date		:	29/05/01

// See if the browser supports DHTML
var DHTML = (document.getElementById || document.all || document.layers);

// Access the correct HTML element, regardless of the browser it's in
function getObj(name)
{
	if (document.getElementById)
	{
		return document.getElementById(name).style;
	}
	else if (document.all)
	{
		return document.all[name].style;
	}
	else if (document.layers)
	{
		return MM_findObj(name);
	}
}

//Visibility and Invisibility. 0 = invisible, 1 = visible. Store it in flag:
function invis(id,flag)
{
	if (!DHTML) return;
	var x = getObj(id);
	//alert(x+' = '+id);
	x.visibility = (flag) ? 'hidden' : 'visible'
}