var pics = new Array(10);

  /********************************************
  * loadPics - this function will preload
  *     the pictures needed for the sidebar
  ********************************************/

  function loadPics()
  {
    for (i = 0; i < 11; i++)
    {
      pics[i] = new Array(2);
      for (j = 0; j < 2; j++)
        pics[i][j] = new Image();
    }

    pics[0][0].src = "pics/pic-general.gif";
    pics[0][0].alt = "General Information";
    pics[0][1].src = "pics/text-General.gif";
    pics[0][1].alt = "General Information";

    pics[1][0].src = "pics/pic-woodland.jpg";
    pics[1][0].alt = "Woodland";
    pics[1][1].src = "pics/text-woodland.gif";
    pics[1][1].alt = "Woodland";

    pics[2][0].src = "pics/pic-galesburg.jpg";
    pics[2][0].alt = "Galesburg";
    pics[2][1].src = "pics/text-Galesburg.gif";
    pics[2][1].alt = "Galesburg";

    pics[3][0].src = "pics/pic-gilson.jpg";
    pics[3][0].alt = "Gilson School";
    pics[3][1].src = "pics/text-Gilson.gif";
    pics[3][1].alt = "Gilson School"; 

    pics[4][0].src = "pics/pic-Glisson.jpg";
    pics[4][0].alt = "Glisson School";
    pics[4][1].src = "pics/text-Glisson.gif";
    pics[4][1].alt = "Glisson School";

    pics[5][0].src = "pics/pic-knoxville.jpg";
    pics[5][0].alt = "Knoxville";
    pics[5][1].src = "pics/text-Knoxville.gif";
    pics[5][1].alt = "Knoxville";

    pics[6][0].src = "pics/pic-wolf.jpg";
    pics[6][0].alt = "Wolf Covered Bridge";
    pics[6][1].src = "pics/text-wolf.gif";
    pics[6][1].alt = "Wolf Covered Bridge";

    pics[7][0].src = "pics/pic-orange.jpg";
    pics[7][0].alt = "Orange Chapel";
    pics[7][1].src = "pics/text-Orange.gif";
    pics[7][1].alt = "Orange Chapel";

    pics[8][0].src = "pics/pic-walnut.jpg";
    pics[8][0].alt = "Walnut Grove Farm";
    pics[8][1].src = "pics/text-Walnut.gif";
    pics[8][1].alt = "Walnut Grove Farm";

    pics[9][0].src = "pics/pic-fair.jpg";
    pics[9][0].alt = "Knox County Fairgrounds";
    pics[9][1].src = "pics/text-Fair.gif";
    pics[9][1].alt = "Knox County Fairgrounds";

    pics[10][0].src = "pics/pic-maquon.jpg";
    pics[10][0].alt = "Maquon";
    pics[10][1].src = "pics/text-Maquon.gif";
    pics[10][1].alt = "Maquon";
  }

  /*****************************************
  * update(int) - displays the two pictures
  *     in the sidebar when map location
  *     is highlighted
  *****************************************/

  function update(num)
  {
    document.notepic.src = pics[num][0].src;
    document.notepic.alt = pics[num][0].alt;
    document.notetext.src = pics[num][1].src;
    document.notetext.alt = pics[num][1].alt;
  }


  loadPics();