

/*--------------------------------------------------------------------
Script
--------------------------------------------------------------------*/

var mapimg = new Array(18);
mapimg[0] = '/_2_img/map/map_off.png';
mapimg[1] = '/_2_img/map/chuo.png';
mapimg[2] = '/_2_img/map/hokuto.png';
mapimg[3] = '/_2_img/map/nanmatsu.png';
mapimg[4] = '/_2_img/map/nanto.png';
mapimg[5] = '/_2_img/map/nishi.png';
mapimg[6] = '/_2_img/map/shiga.png';
mapimg[7] = '/_2_img/map/azusagawa.png';
mapimg[8] = '/_2_img/map/azumi.png';
mapimg[9] = '/_2_img/map/yamagata.png';
mapimg[10] = '/_2_img/map/asahi.png';
mapimg[11] = '/_2_img/map/shiojiri.png';
mapimg[12] = '/_2_img/map/azumino.png';
mapimg[13] = '/_2_img/map/suwa.png';
mapimg[14] = '/_2_img/map/nagano.png';
mapimg[15] = '/_2_img/map/all.png';
mapimg[16] = '/_2_img/map/kiso.png';
mapimg[17] = '/_2_img/map/hata.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];
	}


}


//テキストリンク

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/chuo.png";

	var img2 = new Image();
	img2.src = "/_2_img/map/hokuto.png";

	var img3 = new Image();
	img3.src = "/_2_img/map/shiga.png";

	var img4 = new Image();
	img4.src = "/_2_img/map/nanmatsu.png";

	var img5 = new Image();
	img5.src = "/_2_img/map/nanto.png";

	var img6 = new Image();
	img6.src = "/_2_img/map/nishi.png";

	var img7 = new Image();
	img7.src = "/_2_img/map/azusagawa.png";

	var img8 = new Image();
	img8.src = "/_2_img/map/azumi.png";

	var img9 = new Image();
	img9.src = "/_2_img/map/yamagata.png";

	var img10 = new Image();
	img10.src = "/_2_img/map/asahi.png";

	var img11 = new Image();
	img11.src = "/_2_img/map/shiojiri.png";
	
	var img17 = new Image();
	img17.src = "/_2_img/map/hata.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;

	}

}
