// JavaScript Document

function toggleLayer(whichLayer)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}

function toggleAll(numlayers)
{
	for (i=1;i<=numlayers;i++)
	{
		hideLayer('block'+i)
	}
}
function hideLayer(whichLayer)
{
	if (document.getElementById)
	{
				// this is the way the standards work
				var style2 = document.getElementById(whichLayer).style;
				style2.display = "";
	}
	else if (document.all)
	{
				// this is the way old msie versions work
				var style2 = document.all[whichLayer].style;
				style2.display = "";
	}
	else if (document.layers)
	{
				// this is the way nn4 works
				var style2 = document.layers[whichLayer].style;
				style2.display = "";
	}
}
function hideToggle(numlayers,whichLayer){
	if (document.getElementById)
	{
		var style2 = document.getElementById(whichLayer).style;
		if (style2.display == "block"){
			toggleLayer(whichLayer);
		}else{
			toggleAll(numlayers);
			toggleLayer(whichLayer);		
		}			
	}
	else if (document.all)
	{
		var style2 = document.all[whichLayer].style;
		if (style2.display == "block"){
			toggleLayer(whichLayer);
		}else{
			toggleAll(numlayers);
			toggleLayer(whichLayer);		
		}		
	}
	else if (document.layers)
	{
		var style2 = document.layers[whichLayer].style;
		if (style2.display == "block"){
			toggleLayer(whichLayer);
		}else{
			toggleAll(numlayers);
			toggleLayer(whichLayer);		
		}		
	}
}
