

/*--------------------------------------------------------------------
Script
--------------------------------------------------------------------*/

var mapimg = new Array(14);
mapimg[0] = '/_2_img/map/map_off.png';
mapimg[1] = '/_2_img/map/ina.png';
mapimg[2] = '/_2_img/map/komagane.png';
mapimg[3] = '/_2_img/map/tatsuno.png';
mapimg[4] = '/_2_img/map/minowa.png';
mapimg[5] = '/_2_img/map/iijima.png';
mapimg[6] = '/_2_img/map/minamiminowa.png';
mapimg[7] = '/_2_img/map/nakagawa.png';
mapimg[8] = '/_2_img/map/miyada.png';
//mapimg[9] = '/_2_img/map/takato.png';
mapimg[10] = '/_2_img/map/matsumoto.png';
mapimg[11] = '/_2_img/map/suwa.png';
mapimg[12] = '/_2_img/map/iida.png';
mapimg[13] = '/_2_img/map/all.png';


function mapover() {
	//マップ
	document.getElementById('area1').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[1];
	}
	document.getElementById('area1').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area2').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[2];
	}
	document.getElementById('area2').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('area3').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[3];
	}
	
	document.getElementById('area4').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[4];
	}
	document.getElementById('area4').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	document.getElementById('area5').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[5];
	}
	document.getElementById('area5').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area6').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[6];
	}
	document.getElementById('area6').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area7').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[7];
	}
	document.getElementById('area7').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area8').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[8];
	}
	document.getElementById('area8').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

//	document.getElementById('area9').onmouseover = function() {
//		document.getElementById('cmap').src = mapimg[9];
//	}
//	document.getElementById('area9').onmouseout = function() {
//		document.getElementById('cmap').src = mapimg[0];
//	}

	document.getElementById('area10').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[10];
	}
	document.getElementById('area10').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area11').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[11];
	}
	document.getElementById('area11').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area12').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[12];
	}
	document.getElementById('area12').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area13').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[13];
	}
	document.getElementById('area13').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}



}


//テキストリンク

if(window.addEventListener) {
	window.addEventListener("load",mapover,false);
} else if(window.attachEvent) {
	window.attachEvent("onload",mapover);
}


if (document.images) {


	// 通常の画像
	var img0 = new Image();
	img0.src = "/_2_img/map/map_off.png";

	var img1 = new Image();
	img1.src = "/_2_img/map/ina.png";

	var img2 = new Image();
	img2.src = "/_2_img/map/komagane.png";

	var img3 = new Image();
	img3.src = "/_2_img/map/tatsuno.png";

	var img4 = new Image();
	img4.src = "/_2_img/map/minowa.png";

	var img5 = new Image();
	img5.src = "/_2_img/map/iijima.png";

	var img6 = new Image();
	img6.src = "/_2_img/map/minamiminowa.png";

	var img7 = new Image();
	img7.src = "/_2_img/map/nakagawa.png";

	var img8 = new Image();
	img8.src = "/_2_img/map/miyada.png";

//	var img9 = new Image();
//	img9.src = "/_2_img/map/takato.png";




	// 設定終了

}

// ポイント時の処理
function On(name) {

	if (document.images) {

		document.images['def'].src = eval(name + '.src');

	}

}

// 放した時の処理
function Off() {

	if (document.images) {

		document.images['def'].src = img0.src;

	}

}
