function menu(nazwa, stan)
{
	document.getElementById(nazwa).style.display=(stan=="on") ? "block" : "none";
	document.getElementById("mm"+nazwa.substr(7)).className=(stan=="on") ? "active" : "";
	
}
