/*
 * button animations
 * Copyright (C) Alec Panovici
 */


var lastbutton='top';

/*
 *
 * No can be:
 *    "U" - normal face
 *    "F" - focused (move to focus behaviour if toggle is on onMouseOver)
 *    "D" - pushed
 */
function toggle(button, newState) {
  if (document.images && (loaded == 1) && (document[button])) {
    document[button].src = eval("b" + button + newState + ".src");
  }
	if (newState == "F") {
	  lastbutton = button;
	}
}




