if (document.images) {
  image1on = new Image();
  image1on.src = "common_images/navigation/home_on.gif";

  image1off = new Image();
  image1off.src = "common_images/navigation/home_off.gif";

  image2on = new Image();
  image2on.src = "common_images/navigation/welcome_on.gif";

  image2off = new Image();
  image2off.src = "common_images/navigation/welcome_off.gif";

  image3on = new Image();
  image3on.src = "common_images/navigation/menu_on.gif";

  image3off = new Image();
  image3off.src = "common_images/navigation/menu_off.gif";

  image4on = new Image();
  image4on.src = "common_images/navigation/food_on.gif";

  image4off = new Image();
  image4off.src = "common_images/navigation/food_off.gif";

  image5on = new Image();
  image5on.src = "common_images/navigation/info_on.gif";

  image5off = new Image();
  image5off.src = "common_images/navigation/info_off.gif";

  image6on = new Image();
  image6on.src = "common_images/navigation/catering_on.gif";

  image6off = new Image();
  image6off.src = "common_images/navigation/catering_off.gif";

  image7on = new Image();
  image7on.src = "common_images/navigation/directions_on.gif";

  image7off = new Image();
  image7off.src = "common_images/navigation/directions_off.gif";

  image8on = new Image();
  image8on.src="splash/read_menu_on.gif";

  image8off = new Image();
  image8off.src="splash/read_menu_off.gif";

  image9on = new Image();
  image9on.src="splash/look_inside_on.gif";

  image9off = new Image();
  image9off.src="splash/look_inside_off.gif";

  image10on = new Image();
  image10on.src="splash/dine_in_on.gif";

  image10off = new Image();
  image10off.src="splash/dine_in_off.gif";

  image10on = new Image();
  image10on.src="splash/dine_in_on.gif";

  image10off = new Image();
  image10off.src="splash/dine_in_off.gif";

  image11on = new Image();
  image11on.src="splash/see_food_on.gif";

  image11off = new Image();
  image11off.src="splash/see_food_off.gif";



}

function turnOn(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}
