if(navigator.appVersion.charAt(0) >= "3"){
	img = new Array();

	img[0] = new Image; img[0].src = "image/menu/menu01_off.gif";
	img[1] = new Image; img[1].src = "image/menu/menu01_on.gif";

	img[2] = new Image; img[2].src = "image/menu/menu02_off.gif";
	img[3] = new Image; img[3].src = "image/menu/menu02_on.gif";

	img[4] = new Image; img[4].src = "image/menu/menu03_off.gif";
	img[5] = new Image; img[5].src = "image/menu/menu03_on.gif";

	img[6] = new Image; img[6].src = "image/menu/menu04_off.gif";
	img[7] = new Image; img[7].src = "image/menu/menu04_on.gif";

	img[8] = new Image; img[8].src = "image/menu/menu05_off.gif";
	img[9] = new Image; img[9].src = "image/menu/menu05_on.gif";

	img[10] = new Image; img[10].src = "image/menu/menu06_off.gif";
	img[11] = new Image; img[11].src = "image/menu/menu06_on.gif";

	img[12] = new Image; img[12].src = "image/menu/menu07_off.gif";
	img[13] = new Image; img[13].src = "image/menu/menu07_on.gif";

	img[14] = new Image; img[14].src = "image/admin_t_off.gif";
	img[15] = new Image; img[15].src = "image/admin_t_on.gif";

	img[16] = new Image; img[16].src = "image/admin_user_t_off.gif";
	img[17] = new Image; img[17].src = "image/admin_user_t_on.gif";

}

function chg_img(a,b){  //aは下のnameに対応し、bは上の配列に対応
	if(navigator.appVersion.charAt(0) >= "3"){
		document.images["img" +a].src=img[b].src;
	}
}


function RunFoo(filename,w,h)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="');
document.write(w);
document.write('" height="');
document.write(h);
document.write('" id="index" align="middle">');
document.write('<param name="movie" value="map2fla.swf">');
document.write('<param name="movie" value="');
document.write(filename);
document.write('">');
document.write('<param name="quality" value="high">');
document.write('<param name="bgcolor" value="#FFFFFF">');
document.write('<embed src="');
document.write(filename);
document.write('" quality="high" bgcolor="#ffffff" width="');
document.write(w);
document.write('" height="');
document.write(h);
document.write('" name="top" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');-
document.write('</object>');
}





function wclose(){
	if(navigator.appName == "Netscape"){
		window.open("","_top");
		window.close();
	}else{
		if(document.all && ((navigator.userAgent.match(/MSIE (\d\.\d)/),RegExp.$1) >= 5.5)){
			var w=window.open("","_top");
			w.opener=window;
			w.close();
		}else{
			window.close();
			var timer=setTimeout("wclose()",500);
		}
	}
}



function mobile() { window.open("mobile/index.html","_blank","scrollbars=no,width=516,height=330").moveTo(50,5); }

function subwin(subwin,w,h) {
	window.open(subwin,"","width="+w+",height="+h+",left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
}

