function rotateImg(imgId) {
  document.getElementById("imgMain").src = imgList[imgId];
  var nextImgId;
  imgId++;
  if (imgId >= imgList.length) {
    imgId = 0;
  }
  setTimeout("rotateImg(" + imgId + ")", 5000);
}


