
/* マウスが画像の上に乗った際の処理    /
/	引数は画像に割り当てた番号         /
/	2011.07.26 tezuka.a					/
/										*/


/* ボタンにマウスポイントが触れた時の処理 */
/* 引数：各ボタンにつけたボタンNo */

function mOn(btnNo){
	
		switch (btnNo){
		case 1:
			document.button1.src = "img/botton/linkpic_r3_c1_f2.gif";
			break;
		case 2:
			document.button2.src = "img/botton/linkpic_r5_c1_f2.gif";
			break;
		case 3:
			document.button3.src = "img/botton/linkpic_r7_c1_f2.gif";
			break;
		case 4:
			document.button4.src = "img/botton/linkpic_r9_c1_f2.gif";
			break;
		case 5:
			document.button5.src = "img/botton/linkpic_r11_c1_f2.gif";
			break;
		case 6:
			document.button6.src = "img/botton/linkpic_r13_c1_f2.gif";
			break;
		case 7:
			document.button7.src = "img/botton/linkpic_r15_c1_f2.gif";
			break;
		case 8:
			document.button8.src = "img/botton/linkpic_r17_c1_f2.gif";
			break;
		case 9:
			document.button9.src = "img/botton/linkpic_r19_c1_f2.gif";
			break;	
	}
}

/* ボタンからマウスポイントが離れた時の処理 */
/* 引数：各ボタンにつけたボタンNo */


function mOver(btnNo){

	switch (btnNo){
		case 1:
			document.button1.src = "img/botton/linkpic_r3_c1.gif";
			break;
		case 2:
			document.button2.src = "img/botton/linkpic_r5_c1.gif";
			break;
		case 3:
			document.button3.src = "img/botton/linkpic_r7_c1.gif";
			break;
		case 4:
			document.button4.src = "img/botton/linkpic_r9_c1.gif";
			break;
		case 5:
			document.button5.src = "img/botton/linkpic_r11_c1.gif";
			break;
		case 6:
			document.button6.src = "img/botton/linkpic_r13_c1.gif";
			break;
		case 7:
			document.button7.src = "img/botton/linkpic_r15_c1.gif";
			break;
		case 8:
			document.button8.src = "img/botton/linkpic_r17_c1.gif";
			break;
		case 9:
			document.button9.src = "img/botton/linkpic_r19_c1.gif";
			break;	
	}
			
}



/* リンク選択時に現在のフォントサイズ+0,5pxし、リンク色を青色に変更する */
/* 引数:各リンクに付けたid */


function link_mouseOver(objName){
	
	var element = document.getElementById(objName);
	
	element.style.fontSize = 105 + '%';
	// リンク色を青色に変更

	element.style.color = 'blue';
	}

/* リンクからマウスポインタが離れたときに元のフォントサイズ（現在のフォントサイズ-0.5px）、色（black）に戻す */
/* 引数:各リンクに付けたid */

function link_mouseOut(objName){
	
	var element = document.getElementById(objName);
	element.style.fontSize = 100 + '%';
	element.style.color = 'black';
	
}
	
/* 経度と緯度を入力し、その座標をgooglemapで表示する */


    function mapLoad(latitude,longitude) {
    
    	var latlng = new google.maps.LatLng(latitude,longitude);
    	
		var myOptions = {zoom: 17,center: latlng,mapTypeId: google.maps.MapTypeId.ROADMAP}; 
    
		var map = new google.maps.Map(document.getElementById("map"),myOptions);

		var image = new google.maps.MarkerImage("../img/progo.bmp",
					new google.maps.Size(100,100),
					new google.maps.Point(0,0),
					new google.maps.Point(15,24),
					new google.maps.Size(26,45)
					);
					
		var mopts = {
		  position:latlng,
		  map: map,
		  icon:image
		};

		var marker = new google.maps.Marker(mopts);
		
		var copts = {
			center:latlng,
			clivkable:false,
			fillColor:"#000000",
			fillOpacity:0,
			map:map,
			radius:30,
			strokeColor:"#FF0000",
			strokeOpacity:1,
			strokeWeight:2
		};
		
		var circle = new google.maps.Circle(copts);


}
		






/*
      map = new GMap2(document.getElementById("map"));
      map.setCenter(new GLatLng(latitude,longitude),15);
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.addControl(new GOverviewMapControl());
      map.setMapType(G_NORMAL_MAP);
      var marker = null;
      var n_markers = 0;
      var markeropts = new Object();
      marker = new GMarker(new GPoint(longitude,latitude), markeropts);
      markers[n_markers] = marker;
      n_markers++;
      
*/
	
	
	



