var gameImg = new Array();
gameImg[0]="/images/rotate/home1_game.gif";
gameImg[1]="/images/rotate/home2_game.gif";
gameImg[2]="/images/rotate/home3_game.gif";
gameImg[3]="/images/rotate/home4_game.gif";
gameImg[4]="/images/rotate/home5_game.gif";
gameImg[5]="/images/rotate/home6_game.gif";
var gameIdx = 0;

var wingImg = new Array();
wingImg[0]="/images/rotate/home1_wing.gif";
wingImg[1]="/images/rotate/home2_wing.gif";
wingImg[2]="/images/rotate/home3_wing.gif";
wingImg[3]="/images/rotate/home4_wing.gif";
wingImg[4]="/images/rotate/home5_wing.gif";
wingImg[5]="/images/rotate/home6_wing.gif";
var wingIdx = 0;

function cycleImg() {
  document.game.src=gameImg[gameIdx];
  gameIdx++;
  if (gameIdx == gameImg.length) gameIdx = 0;

  document.wing.src=wingImg[wingIdx];
  wingIdx++;
  if (wingIdx == wingImg.length) wingIdx = 0;

  // set the time below for length of image display
  // i.e., "4*1000" is 4 seconds
  setTimeout("cycleImg()", 3*1000);
}
window.onload=cycleImg;

