var visibleVar = "null";
var layerRef = "null";
var styleSwitch = "null";
visibleVar = "null";

function init()
{
	if (navigator.appName == "Netscape")
	{
		layerRef="document.layers";
		styleSwitch="";
		visibleVar="show";
	}
	else
	{
		layerRef="document.all";
		styleSwitch=".style";
		visibleVar="visible";
	}
}

function showHideLayerSwitch(layerName)
{
	if (eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility == visibleVar'))
		hideLayer(layerName);
	else
		showLayer(layerName);
}

function showLayer(layerName)
{
	document.getElementById(layerName).style.display = "";
}

function hideLayer(layerName)
{
	document.getElementById(layerName).style.display = "none";
}

function bg(elem)
{
	document.getElementById(elem).style.backgroundColor = "FFFFCC";
}

function retbg(elem)
{
	document.getElementById(elem).style.backgroundColor="#EEEEEE" ;
}

