

function ShowHideLayer(boxID,cssClass) {
	/* Obtain reference for the selected boxID layer and its button */
	var box = document.getElementById("box"+boxID);
	var boxbtn = document.getElementById("btn"+boxID);
	
	/* If the selected box is currently invisible, show it */
	if(box.style.display == "none" || box.style.display=="") {
		box.style.display = "block";
 		boxbtn.className = cssClass+"Open"; // set new Css class
	}
	/* otherwise hide it */
	else {
		box.style.display = "none";
		boxbtn.className = cssClass;
	}
}



