var menuImage = new Array();
menuImage[0] = new Array();
menuImage[0] [0] = "images/menu_1_off.gif";
menuImage[0] [1] = "images/menu_1_on.gif";

menuImage[1] = new Array();
menuImage[1] [0] = "images/menu_2_off.gif";
menuImage[1] [1] = "images/menu_2_on.gif";

menuImage[2] = new Array();
menuImage[2] [0] = "images/menu_3_off.gif";
menuImage[2] [1] = "images/menu_3_on.gif";

menuImage[3] = new Array();
menuImage[3] [0] = "images/menu_4_off.gif";
menuImage[3] [1] = "images/menu_4_on.gif";

menuImage[4] = new Array();
menuImage[4] [0] = "images/menu_5_off.gif";
menuImage[4] [1] = "images/menu_5_on.gif";

function swapMenu(imageNumber, menuItem, onOff)
  {
    /* imageNumber refers to the image sequence on the page, starting at 0 at the top, this is the image affected
       menuItem refers to the menu array to choose the rollover image from
       onOff refers to the image being swapped for an "on-1" or "off-0" condition
     */
        
    document.images[imageNumber].src = menuImage [menuItem] [onOff]
    }