// イメージ用配列
var SwImg; SwImg = new Array;

// 画像の先読み ImgPreload('imgタグのid', '通常の画像のパス', 'マウスオーバー時の画像のパス')
ImgPreload('btn01', '/images/head_menu01_01.gif', '/images/head_menu01_02.gif');
ImgPreload('btn02', '/images/head_menu02_01.gif', '/images/head_menu02_02.gif');
ImgPreload('btn03', '/images/head_menu03_01.gif', '/images/head_menu03_02.gif');
ImgPreload('btn04', '/images/head_menu04_01.gif', '/images/head_menu04_02.gif');
ImgPreload('btn05', '/images/head_menu05_01.gif', '/images/head_menu05_02.gif');
ImgPreload('btn06', '/images/head_menu06_01.gif', '/images/head_menu06_02.gif');
ImgPreload('btn07', '/images/head_menu07_01.gif', '/images/head_menu07_02.gif');
ImgPreload('btn08', '/images/head_menu08_01.gif', '/images/head_menu08_02.gif');
ImgPreload('subbtn01', '/images/head_submenu01_01.gif', '/images/head_submenu01_02.gif');
ImgPreload('subbtn02', '/images/head_submenu02_01.gif', '/images/head_submenu02_02.gif');
ImgPreload('subbtn03', '/images/head_submenu03_01.gif', '/images/head_submenu03_02.gif');
ImgPreload('index01', '/images/index_shinryou_01_01.gif', '/images/index_shinryou_01_02.gif');
ImgPreload('index02', '/images/index_shinryou_02_01.gif', '/images/index_shinryou_02_02.gif');
ImgPreload('index03', '/images/index_shinryou_03_01.gif', '/images/index_shinryou_03_02.gif');
ImgPreload('index04', '/images/index_shinryou_04_01.gif', '/images/index_shinryou_04_02.gif');
ImgPreload('index05', '/images/index_shinryou_05_01.gif', '/images/index_shinryou_05_02.gif');
ImgPreload('index06', '/images/index_shinryou_06_01.gif', '/images/index_shinryou_06_02.gif');
ImgPreload('index07', '/images/index_shinryou_07_01.gif', '/images/index_shinryou_07_02.gif');
ImgPreload('index08', '/images/index_shinryou_08_01.gif', '/images/index_shinryou_08_02.gif');
ImgPreload('index09', '/images/index_shinryou_09_01.gif', '/images/index_shinryou_09_02.gif');


/* 画像プリロード */
function ImgPreload() {
	var N = ImgPreload.arguments[0];
	SwImg[N] = new Image();
	SwImg[N][0] = new Image();
	SwImg[N][0].src = ImgPreload.arguments[1];
	SwImg[N][1] = new Image();
	SwImg[N][1].src = ImgPreload.arguments[2];
}

/* ロールオーバー */
function ImgChenge() {
	var ID = ImgChenge.arguments[0];
	var N  = ImgChenge.arguments[1];
	document.images[ID].src = SwImg[ID][N].src;
}