<!--

//背景画像を変える

var img = new Array();
img[0]=new Image();img[0].src="../img/menu_t0.gif";
img[1]=new Image();img[1].src="../img/menu_t0_on.gif";
img[2]=new Image();img[2].src="../img/menu_t1.gif";
img[3]=new Image();img[3].src="../img/menu_t1_on.gif";

function ChangeBgImg(x,y){
 if(document.getElementById){
  document.getElementById(x).style.backgroundImage='url('+img[y].src+')';
 }
 else if(document.all){
  document.all(x).style.backgroundImage='url('+img[y].src+')';
 }
}

//-------------------------------------------------------------------------------------



/*ChangeImageDiv*/
	function imgChangeDiv(idName,imgName,imgState) {
		if(checkObj == 2 || checkObj == 3 || checkObj == 4){
			
			document[imgName].src = eval(imgName + imgState + ".src");
		}else if(checkObj == 1){
			document.layers[idName].document[imgName].src = eval(imgName + imgState + ".src");
		}
	}

	/*ChangeImageNum*/
	function imgChangeNum(nam,num) {
		if(document.images && (checkObj != 1)) {
			document[nam].src = arrowSecond[num].src;
		}
	}

	/*ChangeImage*/
	imgId = "";
	stayId = "";
	function imgChange(imgName,imgState) {
		if(document.getElementById(imgName)) {
			stringId0 = imgName.substring(0,4);
			stringId = imgName;
			if(((stringId0 == "navi") || (stringId0 == "navs")) && (stringId == imgId)){
				document.getElementById(imgName) = eval(imgName + "stay" + ".src");
			} else {
				document.getElementById(imgName).style.backgroundImage = 'url('+eval(imgName + imgState + ".src")+')';
			}
		}
	}

	function stayMenu(stayId){
		imgChange(stayId,"stay");
		imgId = stayId;
	}
	
	
	


m01off = new Image();
m01off.src =  "../img/head/m01.gif";
m01on = new Image();
m01on.src=  "../img/head/m01_on.gif";
m01stay = new Image();
m01stay.src =  "../img/head/m01_on.gif";

m02off = new Image();
m02off.src =  "../img/head/m02.gif";
m02on = new Image();
m02on.src=  "../img/head/m02_on.gif";
m02stay = new Image();
m02stay.src =  "../img/head/m02_on.gif";
	
m03off = new Image();
m03off.src =  "../img/head/m03.gif";
m03on = new Image();
m03on.src=  "../img/head/m03_on.gif";
m03stay = new Image();
m03stay.src =  "../img/head/m03_on.gif";

m04off = new Image();
m04off.src =  "../img/head/m04.gif";
m04on = new Image();
m04on.src=  "../img/head/m04_on.gif";
m04stay = new Image();
m04stay.src =  "../img/head/m04_on.gif";


m05off = new Image();
m05off.src =  "../img/head/m05.gif";
m05on = new Image();
m05on.src=  "../img/head/m05_on.gif";
m05stay = new Image();
m05stay.src =  "../img/head/m05_on.gif";
		
m06off = new Image();
m06off.src =  "../img/head/m06.gif";
m06on = new Image();
m06on.src=  "../img/head/m06_on.gif";
m06stay = new Image();
m06stay.src =  "../img/head/m06_on.gif";


m07off = new Image();
m07off.src =  "../img/head/m07.gif";
m07on = new Image();
m07on.src=  "../img/head/m07_on.gif";
m07stay = new Image();
m07stay.src =  "../img/head/m07_on.gif";

m08off = new Image();
m08off.src =  "../img/head/m08.gif";
m08on = new Image();
m08on.src=  "../img/head/m08_on.gif";
m08stay = new Image();
m08stay.src =  "../img/head/m08_on.gif";

m09off = new Image();
m09off.src =  "../img/head/m09.gif";
m09on = new Image();
m09on.src=  "../img/head/m09_on.gif";
m09stay = new Image();
m09stay.src =  "../img/head/m09_on.gif";

hm1off = new Image();
hm1off.src =  "../img/head/hm1.gif";
hm1on = new Image();
hm1on.src=  "../img/head/hm1_on.gif";
hm1stay = new Image();
hm1stay.src =  "../img/head/hm1_on.gif";

hm2off = new Image();
hm2off.src =  "../img/head/hm2.gif";
hm2on = new Image();
hm2on.src=  "../img/head/hm2_on.gif";
hm2stay = new Image();
hm2stay.src =  "../img/head/hm2_on.gif";

hm3off = new Image();
hm3off.src =  "../img/head/hm3.gif";
hm3on = new Image();
hm3on.src=  "../img/head/hm3_on.gif";
hm3stay = new Image();
hm3stay.src =  "../img/head/hm3_on.gif";

hm4off = new Image();
hm4off.src =  "../img/head/hm4.gif";
hm4on = new Image();
hm4on.src=  "../img/head/hm4_on.gif";
hm4stay = new Image();
hm4stay.src =  "../img/head/hm4_on.gif";

hm5off = new Image();
hm5off.src =  "../img/head/hm5.gif";
hm5on = new Image();
hm5on.src=  "../img/head/hm5_on.gif";
hm5stay = new Image();
hm5stay.src =  "../img/head/hm5_on.gif";

hm6off = new Image();
hm6off.src =  "../img/head/hm6.gif";
hm6on = new Image();
hm6on.src=  "../img/head/hm6_on.gif";
hm6stay = new Image();
hm6stay.src =  "../img/head/hm6_on.gif";

hm7off = new Image();
hm7off.src =  "../img/head/hm7.gif";
hm7on = new Image();
hm7on.src=  "../img/head/hm7_on.gif";
hm7stay = new Image();
hm7stay.src =  "../img/head/hm7_on.gif";

//-->