function toggleLayer(oLayer)
{
	var theLayer = document.getElementById(oLayer);
	
	if(theLayer)
	{
		if (theLayer.style.display == "none")
		{
			theLayer.style.display = "block";
		}
		else
		{
			theLayer.style.display = "none";
		}
	}	
}

function toggleAll(oLayerPrefix)
{
	// retrieve only the divs within the section denoted by the prefix
	var theDivCollection = document.getElementById(oLayerPrefix).getElementsByTagName("div");
	
	if(theDivCollection && theDivCollection.length > 0)
	{
		// loop through the collection and show them as block objects
		for (var i=0;i<theDivCollection.length;i++)
		if (theDivCollection[i].style.display == "none")
		{
			theDivCollection[i].style.display = "block";
		}
	}
}
