		//<![CDATA[

			//日本測地系計算
			function JPoint( a, b ) {
				this.x = a - b * 0.000046038 - a * 0.000083043 + 0.010040;
				this.y = b - b * 0.00010695 + a * 0.000017464 + 0.0046017;
			}
			
			function loadMap( address, lat, lng, flag, flag_s ) {
				JPoint.prototype = GPoint.prototype;
				var point = null;
				
				if( lat=="" || lng=="" || lat == null || lng == null ){
				
					//住所から緯度、経度を取得
					var geocoder = new GClientGeocoder();
					geocoder.getLatLng(address, function(point){
					
													//住所が存在しない場合の表示位置設定（高知県庁）
													if (!point) {
														alert("住所が見つかりません。初期設定位置を表示します。");
														point = new JPoint(133.533657, 33.556393);
													}
													showMap( point, flag, flag_s  );
												}
									 );
				}else{
					point = new JPoint(lng, lat);
					showMap( point, flag, flag_s  );
				}
			}
		
			function showMap( point, flag, flag_s ) {
				var map = new GMap(document.getElementById("map"));
				
				//地図コントロール設定
				map.addControl(new GSmallMapControl());
				map.addControl(new GMapTypeControl());
				map.addControl(new GOverviewMapControl(new GSize(100,75)));

				// スクロールホイール操作設定
				//map.enableContinuousZoom();
				//map.enableScrollWheelZoom();

				map.centerAndZoom( point , 2);

				//アイコン設定
				var myicon = new GIcon();
				myicon.image=flag;
				myicon.shadow=flag_s;
				myicon.iconSize = new GSize(34,25);
				myicon.shadowSize = new GSize(34,25);
				myicon.iconAnchor = new GPoint(1,23);
				myicon.infoWindowAnchor = new GPoint(10,10);
				myicon.transparent = flag;

		    	var marker = new GMarker(point, myicon);
				map.addOverlay(marker);
			}
		//]]>
