/////////////////////////////////////////////////////////
//
// Nav Menu Image Rollovers
//
// pre-cache link and rollover images...
var imgsLo = new Object();      // resting buttons
var imgsHi = new Object();      // mouse over button

if (document.images)
  {
  imgsLo["navHome"] = new Image(150, 55);   // nav images - normal
  imgsLo["navHome"].src = "imgs/btn_home_0.jpg";
  imgsLo["navPrices"] = new Image(150, 55);
  imgsLo["navPrices"].src = "imgs/btn_prices_0.jpg";
  imgsLo["navGallery"] = new Image(150, 55);
  imgsLo["navGallery"].src = "imgs/btn_gallery_0.jpg";
  imgsLo["navAbout"] = new Image(150, 55);
  imgsLo["navAbout"].src = "imgs/btn_about_0.jpg";
  
  imgsHi["navHome"] = new Image(150, 55);   // nav images - highlight
  imgsHi["navHome"].src = "imgs/btn_home_1.jpg";
  imgsHi["navPrices"] = new Image(150, 55);
  imgsHi["navPrices"].src = "imgs/btn_prices_1.jpg";
  imgsHi["navGallery"] = new Image(150, 55);
  imgsHi["navGallery"].src = "imgs/btn_gallery_1.jpg";
  imgsHi["navAbout"] = new Image(150, 55);
  imgsHi["navAbout"].src = "imgs/btn_about_1.jpg";
  }

function setImage(name, state)
  {
  if (document.images)
    {
    if (state == 'hi')
      {
      document.images[name].src = imgsHi[name].src;
      return true;
      }
    else if (state == 'lo')
      {
      document.images[name].src = imgsLo[name].src;
      return true;
      }
    }
  return false;
  }
//
///// End of File ///////////////////////////////////////
