if (document.images) {
    // preload the alternate images offscreen
   homeon = new Image();
   homeon.src = "images/home-on.gif";
   worshipon = new Image();
   worshipon.src = "images/worship-on.gif";
   newson = new Image();
   newson.src = "images/news-on.gif";
   pastoron = new Image();
   pastoron.src = "images/pastor-on.gif";
   memberon = new Image();
   memberon.src = "images/member-on.gif";
   findon = new Image();
   findon.src = "images/find-on.gif";
   adulton = new Image();
   adulton.src = "images/adult-on.gif";
   schoolon = new Image();
   schoolon.src = "images/school-on.gif";
   vbson = new Image();
   vbson.src = "images/vbs-on.gif";
   committeeson = new Image();
   committeeson.src = "images/committees-on.gif";
   welcaon = new Image();
   welcaon.src = "images/welca-on.gif";
   historyon = new Image();
   historyon.src = "images/history-on.gif";
   elcaon = new Image();
   elcaon.src = "images/elca-on.gif";
   contacton = new Image();
   contacton.src = "images/contact-on.gif";
   homeoff = new Image();
   homeoff.src = "images/home-off.gif";
   worshipoff = new Image();
   worshipoff.src = "images/worship-off.gif";
   newsoff = new Image();
   newsoff.src = "images/news-off.gif";
   pastoroff = new Image();
   pastoroff.src = "images/pastor-off.gif";
   memberoff = new Image();
   memberoff.src = "images/member-off.gif";
   findoff = new Image();
   findoff.src = "images/find-off.gif";
   adultoff = new Image();
   adultoff.src = "images/adult-off.gif";
   schooloff = new Image();
   schooloff.src = "images/school-off.gif";
   vbsoff = new Image();
   vbsoff.src = "images/vbs-off.gif";
   committeesoff = new Image();
   committeesoff.src = "images/committees-off.gif";
   welcaoff = new Image();
   welcaoff.src = "images/welca-off.gif";
   historyoff = new Image();
   historyoff.src = "images/history-off.gif";
   elcaoff = new Image();
   elcaoff.src = "images/elca-off.gif";
   contactoff = new Image();
   contactoff.src = "images/contact-off.gif";
}

function imgAct(imgName) {
  if (document.images) {
     document[imgName].src = eval(imgName + "on.src");
 }
}

function imgInact(imgName) {
  if (document.images) {
     document[imgName].src = eval(imgName + "off.src");
 }
}