
if (document.images) {
  ourthanks_on = new Image();
  ourthanks_on.src = "images/ourthanks_on.gif";
  ourthanks_off = new Image();
  ourthanks_off.src = "images/ourthanks_off.gif";

  sitemap_on = new Image();
  sitemap_on.src = "images/sitemap_on.gif";
  sitemap_off = new Image();
  sitemap_off.src = "images/sitemap_off.gif";

  terms_on = new Image();
  terms_on.src = "images/terms_on.gif";
  terms_off = new Image();
  terms_off.src = "images/terms_off.gif";

  privacy_on = new Image();
  privacy_on.src = "images/privacy_on.gif";
  privacy_off = new Image();
  privacy_off.src = "images/privacy_off.gif";

  readmore1_on = new Image();
  readmore1_on.src = "images/readmore_on.gif";
  readmore1_off = new Image();
  readmore1_off.src = "images/readmore_off.gif";

  readmore2_on = new Image();
  readmore2_on.src = "images/readmore_on.gif";
  readmore2_off = new Image();
  readmore2_off.src = "images/readmore_off.gif";

  readmore3_on = new Image();
  readmore3_on.src = "images/readmore_on.gif";
  readmore3_off = new Image();
  readmore3_off.src = "images/readmore_off.gif";

  readmore4_on = new Image();
  readmore4_on.src = "images/readmore_on.gif";
  readmore4_off = new Image();
  readmore4_off.src = "images/readmore_off.gif";

  readmoretop_on = new Image();
  readmoretop_on.src = "images/readmore_on.gif";
  readmoretop_off = new Image();
  readmoretop_off.src = "images/readmore_off.gif";

  join_on = new Image();
  join_on.src = "images/join_on.gif";
  join_off = new Image();
  join_off.src = "images/join_off.gif";

  submit_on = new Image();
  submit_on.src = "images/submit_on.gif";
  submit_off = new Image();
  submit_off.src = "images/submit_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');
  }
}
