if (document.images) {

  homeon = new Image();
  homeon.src = "/images/b_home_r.gif";

  homeoff = new Image();
  homeoff.src = "/images/b_home.gif";

  abouton = new Image();
  abouton.src = "/images/b_about_csi_r.gif";

  aboutoff = new Image();
  aboutoff.src = "/images/b_about_csi.gif";

  eventsoff = new Image();
  eventsoff.src = "/images/b_events_news.gif";

  eventson = new Image();
  eventson.src = "/images/b_events_news_r.gif";

  servicesoff = new Image();
  servicesoff.src = "/images/b_services_lifecycle.gif";

  serviceson = new Image();
  serviceson.src = "/images/b_services_lifecycle_r.gif";
  
  educationoff = new Image();
  educationoff.src = "/images/b_education.gif";

  educationon = new Image();
  educationon.src = "/images/b_education_r.gif";
  
  synagogueoff = new Image();
  synagogueoff.src = "/images/b_synagogue_groups.gif";

  synagogueon = new Image();
  synagogueon.src = "/images/b_synagogue_groups_r.gif";
  
  socialoff = new Image();
  socialoff.src = "/images/b_social_action.gif";

  socialon = new Image();
  socialon.src = "/images/b_social_action_r.gif";
  
  contactoff = new Image();
  contactoff.src = "/images/b_contact_csi.gif";

  contacton = new Image();
  contacton.src = "/images/b_contact_csi_r.gif";
  
}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}
