var topimages = new Array(2);
var links = new Array(2);

topimages[0] = new Image();
topimages[0].src = "images/topimage.jpg";
//topimages[0] = new Image();
//topimages[0].src = "images/top_iyalogo.png";
//topimages[1] = new Image();
//topimages[1].src = "images/top_sd09.png";

links[0] = "http://www.nhao.jp/event/kanbokai_index.html";
//links[0] = "http://www.astronomy2009.jp/";
//links[1] = "http://www.nhao.jp/event/event_aug.html#sd";

count = 0;

function changeImg(){
  count = count % 1;
//  count = count % 2;
  document.getElementById("imtop").src = topimages[count].src;
  document.getElementById("toplink").href = links[count];
  count = count + 1;

  setTimeout("changeImg()",5120);
}
