// Generic Button Toggle
// Michael McKennedy
// McKennedy.Org 2009


  function buttonToggle(whichLayer)
{
	var buttonIdOff = "menu" + whichLayer + "off"; // sets the div id to work on i.e -> <div id="menu1off"
	var buttonIdOn = "menu" + whichLayer + "on"; // sets the div id to work on i.e -> <div id="menu1on"
	
  	if (document.getElementById(buttonIdOn).style.display == "") { // if the ON button is displaying
		document.getElementById(buttonIdOn).style.display = "none"; // hide the ON button
		document.getElementById(buttonIdOff).style.display = "";  // show the OFF button
	}

	else {
		document.getElementById(buttonIdOn).style.display = ""; // show the ON button
		document.getElementById(buttonIdOff).style.display = "none"; // hide the OFF button
	}
}

