function switchMenu(newSelection) {
   var currentSelection = document.getElementById("selected");
   if (currentSelection) {
      currentSelection.className = "";
      currentSelection.id = "";
   }
   newSelection.className = "selected";
   newSelection.id = "selected";
}