

/*--------------------------------------------------------------------
Script
--------------------------------------------------------------------*/

var mapimg = new Array(20);
mapimg[0] = '/_2_img/map/map_off.png';
mapimg[1] = '/_2_img/map/matsumoto.png';
mapimg[2] = '/_2_img/map/achi.png';
mapimg[3] = '/_2_img/map/hiraya.png';
mapimg[4] = '/_2_img/map/neba.png';
mapimg[5] = '/_2_img/map/iida.png';
mapimg[6] = '/_2_img/map/shimojo.png';
mapimg[7] = '/_2_img/map/anan.png';
mapimg[8] = '/_2_img/map/urugi.png';
mapimg[9] = '/_2_img/map/takamori.png';
mapimg[10] = '/_2_img/map/matsukawa.png';
mapimg[11] = '/_2_img/map/toyooka.png';
mapimg[12] = '/_2_img/map/takagi.png';
mapimg[13] = '/_2_img/map/yasuoka.png';
mapimg[14] = '/_2_img/map/tenryu.png';
mapimg[15] = '/_2_img/map/oshika.png';
//mapimg[16] = '/_2_img/map/kamimura.png';
mapimg[17] = '/_2_img/map/ina.png';
mapimg[18] = '/_2_img/map/all.png';
mapimg[19] = '/_2_img/map/yamanashi.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];
	}

	document.getElementById('area14').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[14];
	}
	document.getElementById('area14').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area15').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[15];
	}
	document.getElementById('area15').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

//	document.getElementById('area16').onmouseover = function() {
//		document.getElementById('cmap').src = mapimg[16];
//	}
//	document.getElementById('area16').onmouseout = function() {
//		document.getElementById('cmap').src = mapimg[0];
//	}

	document.getElementById('area17').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[17];
	}
	document.getElementById('area17').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area18').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[18];
	}
	document.getElementById('area18').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	document.getElementById('area19').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[19];
	}
	document.getElementById('area19').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/iida_map_off.png";

	var img1 = new Image();
	img1.src = "/_2_img/map/nagiso.png";

	var img2 = new Image();
	img2.src = "/_2_img/map/achi.png";

	var img3 = new Image();
	img3.src = "/_2_img/map/hiraya.png";

	var img4 = new Image();
	img4.src = "/_2_img/map/neba.png";

	var img5 = new Image();
	img5.src = "/_2_img/map/iida.png";

	var img6 = new Image();
	img6.src = "/_2_img/map/shimojo.png";

	var img7 = new Image();
	img7.src = "/_2_img/map/anan.png";

	var img8 = new Image();
	img8.src = "/_2_img/map/urugi.png";

	var img9 = new Image();
	img9.src = "/_2_img/map/takamori.png";

	var img10 = new Image();
	img10.src = "/_2_img/map/matsukawa.png";

	var img11 = new Image();
	img11.src = "/_2_img/map/toyooka.png";

	var img12 = new Image();
	img12.src = "/_2_img/map/takagi.png";

	var img13 = new Image();
	img13.src = "/_2_img/map/yasuoka.png";

	var img14 = new Image();
	img14.src = "/_2_img/map/tenryu.png";

	var img15 = new Image();
	img15.src = "/_2_img/map/oshika.png";

//	var img16 = new Image();
//	img16.src = "/_2_img/map/kamimura.png";

	var img17 = new Image();
	img17.src = "/_2_img/map/ina.png";

	var img18 = new Image();
	img18.src = "/_2_img/map/all.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;

	}

}
