if (document.images)
  {
  // preload and cache "on" graphics
  logoOn = new Image();
  logoOn.src = "images/logo-on.gif";
  eventsOn = new Image();
  eventsOn.src = "banner/events-on.gif";
  motorsportOn = new Image();
  motorsportOn.src = "banner/motorsport-on.gif";
  galleryOn = new Image();
  galleryOn.src = "banner/gallery-on.gif";
  infoOn = new Image();
  infoOn.src = "banner/info-on.gif";
  newsletterOn = new Image();
  newsletterOn.src = "banner/newsletter-on.gif";
  technicalOn = new Image();
  technicalOn.src = "banner/technical-on.gif";
  merchandiseOn = new Image();
  merchandiseOn.src = "banner/merchandise-on.gif";
  joinOn = new Image();
  joinOn.src = "banner/join-on.gif";
  mx5infoOn = new Image();
  mx5infoOn.src = "banner/mx5info-on.gif";
  homeOn = new Image();
  homeOn.src = "banner/home-on.gif";
  
  //  preload and cache "off" graphics
  logoOff = new Image();
  logoOff.src = "images/logo-off.gif";
  eventsOff = new Image();
  eventsOff.src = "banner/events-off.gif";
  motorsportOff = new Image();
  motorsportOff.src = "banner/motorsport-off.gif";
  galleryOff = new Image();
  galleryOff.src = "banner/gallery-off.gif";
  infoOff = new Image();
  infoOff.src = "banner/info-off.gif";
  newsletterOff = new Image();
  newsletterOff.src = "banner/newsletter-off.gif";
  technicalOff = new Image();
  technicalOff.src = "banner/technical-off.gif";
  merchandiseOff = new Image();
  merchandiseOff.src = "banner/merchandise-off.gif";
  joinOff = new Image();
  joinOff.src = "banner/join-off.gif";
  mx5infoOff = new Image();
  mx5infoOff.src = "banner/mx5info-off.gif";
  homeOff = new Image();
  homeOff.src = "banner/home-off.gif";
}

// mouse rollovers script
function imgOn(imgName)
{
  if (document.images)
  {
    document[imgName].src = eval(imgName + "On.src");
  } // end images if
}  // end imgOn function

function imgOff(imgName)
{
  if (document.images)
  {
    document[imgName].src = eval(imgName + "Off.src");
  } // end images if
}  // end imgOff function
