

/*--------------------------------------------------------------------
Script
--------------------------------------------------------------------*/

var mapimg = new Array(13);
mapimg[0] = '/_2_img/map/map_off.png';
mapimg[1] = '/_2_img/map/okaya.png';
mapimg[2] = '/_2_img/map/suwa.png';
mapimg[3] = '/_2_img/map/chino.png';
mapimg[4] = '/_2_img/map/shimosuwa.png';
mapimg[5] = '/_2_img/map/fujimi.png';
mapimg[6] = '/_2_img/map/hara.png';
mapimg[8] = '/_2_img/map/nagano.png';
mapimg[9] = '/_2_img/map/matsumoto.png';
mapimg[10] = '/_2_img/map/ina.png';
mapimg[11] = '/_2_img/map/yamanashi.png';
mapimg[12] = '/_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('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];
	}




}


//テキストリンク

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/okaya.png";

	var img2 = new Image();
	img2.src = "/_2_img/map/suwa.png";

	var img3 = new Image();
	img3.src = "/_2_img/map/chino.png";

	var img4 = new Image();
	img4.src = "/_2_img/map/shimosuwa.png";

	var img5 = new Image();
	img5.src = "/_2_img/map/fujimi.png";

	var img6 = new Image();
	img6.src = "/_2_img/map/hara.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;

	}

}
