//画像読み込みの配列
var SwImg;
SwImg = new Array;

// 画像の先読み ImgPreload('imgタグのid', '通常の画像のパス', 'マウスオーバー時の画像のパス')
ImgPreload('roll-gyoumu1', './images/top/top-gyoumu1.jpg', './images/top/top-gyoumu1c.jpg');
ImgPreload('roll-gyoumu2', './images/top/top-gyoumu2.jpg', './images/top/top-gyoumu2c.jpg');
ImgPreload('roll-gyoumu3', './images/top/top-gyoumu3.jpg', './images/top/top-gyoumu3c.jpg');




/* 画像プリロード */
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;
}
