// JavaScript Document

//ロールオーバー画像セット(初期毎回読込)
var imagefile = new Array(
 "img/header/01.gif",
 "img/header/001.gif",
 "img/header/02.gif",
 "img/header/002.gif",
 "img/header/03.gif",
 "img/header/003.gif",
 "img/header/04.gif",
 "img/header/004.gif",
 "img/header/05.gif",
 "img/header/005.gif",
 "img/header/06.gif",
 "img/header/006.gif",
 "img/header/07.gif",
 "img/header/007.gif",
 "img/header/08.gif",
 "img/header/008.gif"
);
	
var count;
var image = new Array(imagefile.length);
for(count = 0; count < (imagefile.length - 1); count++){
  image[count] = new Image();
  image[count].src = imagefile[count];
}

//ロールオーバー画像チェンジ
function ImageChange(id, kind){
	window.document.images[id].src  = imagefile[kind - 1];
}

//画像がかわる
IMAGES = new Array();
IMAGES[0]=new Image();
IMAGES[0].src="img/header/age_tam.gif";
IMAGES[1]=new Image();
IMAGES[1].src="img/header/age_ssj.gif";
IMAGES[2]=new Image();
IMAGES[2].src="img/header/age_gkc.gif";
IMAGES[3]=new Image();
IMAGES[3].src="img/header/age_gakuen.gif";
IMAGES[4]=new Image();
IMAGES[4].src="img/header/age_sap.gif";
IMAGES[5]=new Image();
IMAGES[5].src="img/header/age_toshin.gif";
IMAGES[6]=new Image();
IMAGES[6].src="img/header/age_katei.gif";
IMAGES[7]=new Image();
IMAGES[7].src="img/header/age_goal.gif";
IMAGES[8]=new Image();
IMAGES[8].src="img/header/age.gif";



function image_change(no){
  document.IMG.src = IMAGES[no].src;
}