

// Create variables to hold which menu is showing and
	// the id of the setTimeOut that will hide the menu
    menuShowing = null;
    id = -1;

    function showMenu(menuID, topOffset, leftOffset) {
        if (menuShowing != null) {
            hideMenu();
            clearTimeout(id);
        }

        if (document.getElementById) {
            document.getElementById(menuID).style.top = topOffset+'px';
            document.getElementById(menuID).style.left = leftOffset+'px';
            document.getElementById(menuID).style.visibility = 'visible';
        } else if (document.layers) {
            document[menuID].top = topOffset;
            document[menuID].left = leftOffset;
            document[menuID].visibility = 'visible';
        }
        menuShowing = menuID;
        id = setTimeout("hideMenu();", 5000);
    }

    function hideMenu() {
        if (menuShowing != null) {
	        if (document.getElementById) {
                document.getElementById(menuShowing).style.visibility = 'hidden';
	        } else if (document.layers) {
                document[menuShowing].visibility = 'hidden';
            }
            menuShowing = null;
            clearTimeout(id);
        }

    }
  
//rollovers  
  imageArray = new Array();
  current = "";
  function load_img(name_src)
  {
    if(document.images) {
      var temp = imageArray[name_src];
      if(! temp) {
        temp = new Image();
        temp.src = name_src;
        imageArray[name_src] = temp;
      }

      return temp;
    }
  }
  function replace_img(name, name_src)
  {
    if(document.images) {
      if(name != current) {
        document[name].src = load_img(name_src).src;
      }
    }
  }

    load_img("images/training_over.gif");
