/* */
/* イメージ用配列 */
var SwImg; SwImg = new Array;

/* 画像の先読み ImgPreload('imgタグのid', '通常パス', 'マウスオーバー時パス') */
ImgPreload('home', 'img3/cont_home_a.gif', 'img3/cont_home_b.gif');
ImgPreload('about', 'img3/cont_about_a.gif', 'img3/cont_about_b.gif');
ImgPreload('carehouse', 'img3/cont_carehouse_a.gif', 'img3/cont_carehouse_b.gif');
ImgPreload('tokuyou', 'img3/cont_tokuyou_a.gif', 'img3/cont_tokuyou_b.gif');
ImgPreload('short', 'img3/cont_short_a.gif', 'img3/cont_short_b.gif');
ImgPreload('day', 'img3/cont_day_a.gif', 'img3/cont_day_b.gif');
ImgPreload('kyotaku', 'img3/cont_kyotaku_a.gif', 'img3/cont_kyotaku_b.gif');
ImgPreload('zaitaku', 'img3/cont_zaitaku_a.gif', 'img3/cont_zaitaku_b.gif');
ImgPreload('homehelp', 'img3/cont_homehelp_a.gif', 'img3/cont_homehelp_b.gif');
ImgPreload('sisetu', 'img3/cont_sisetu_a.gif', 'img3/cont_sisetu_b.gif');
ImgPreload('access', 'img3/cont_access_a.gif', 'img3/cont_access_b.gif');
ImgPreload('toi', 'img3/cont_toi_a.gif', 'img3/cont_toi_b.gif');
ImgPreload('1f', 'img3/cont_1f_a.gif', 'img3/cont_1f_b.gif');
ImgPreload('2f', 'img3/cont_2f_a.gif', 'img3/cont_2f_b.gif');
ImgPreload('3f', 'img3/cont_3f_a.gif', 'img3/cont_3f_b.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;
}
