// JavaScript Document
var prevSelect;

function EditPick (selected)
{
	/*checks to see if a user has previously hit a button*/
	if (!prevSelect)
	{
		prevSelect = "EditPick-gen";
	}
	
	/*de-selects previous button*/
	document.getElementById(prevSelect).style.display = "none";
	var prevMenuName = prevSelect + "-menu";
	document.getElementById(prevMenuName).style.backgroundImage = "none";
	document.getElementById(prevMenuName).style.color = "#777777";
	
	/*triggers new button*/
	document.getElementById(selected).style.display = "block";
	var menuName = selected + "-menu";
	document.getElementById(menuName).style.backgroundImage = "url(/images/hatched.gif)";
	document.getElementById(menuName).style.color = "#000000";
	
	/*set prev selection*/
	prevSelect = selected;
	
	return false;
}
