// page		:	show hide layer script
// 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'
}