if(document.images) {
pics = new Array();
pics[1] = new Image();
pics[1].src = "images/golden_all.jpg";
pics[2] = new Image();
pics[2].src = "images/golden_01.jpg";
pics[3] = new Image();
pics[3].src = "images/golden_02.jpg";
pics[4] = new Image();
pics[4].src = "images/golden_03.jpg";

}
  function changer(from,to) {
  if(document.images) {
  document.images[from].src = pics[to].src;
    }
  }
