function ShowMap(pAddress)
{
	if( GBrowserIsCompatible() )
	{
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());	// 拡大縮小等の操作パネル
		//map.addControl(new GLargeMapControl());	// 大きすぎてNG
		map.addControl(new GMapTypeControl());	// 衛星地図等の切り替え
	}

	// GClientGeocoderを初期化
	geocoder = new GClientGeocoder();

	if( geocoder )
	{
		geocoder.getLatLng(	pAddress,
							function(point)
							{
								if( !point )
								{
									alert(address + " not found");
								}
								else
								{
									map.setCenter(point, 12);
		  							//var marker = new GMarker(point);	// マーカーも表示しない
									//map.addOverlay(marker);
									//marker.openInfoWindowHtml(address);	// 吹き出しは表示しない
								}
							}
						);
	}
}

function ShowMapID(pAddress, pMapId, pZoom)
{
	if( GBrowserIsCompatible() )
	{
		var map = new GMap2(document.getElementById( pMapId ));
		//map.addControl(new GSmallMapControl());							
		map.addControl(new GLargeMapControl());								// 拡大縮小等の操作パネル
		map.addControl(new GMapTypeControl());					 			// 衛星地図等の切り替え
		map.addControl(new google.maps.LocalSearch("pub-1509593942597923"));// アドセンス
		map.addControl(new GOverviewMapControl());							// 右下の広域地図
	}

	// GClientGeocoderを初期化
	geocoder = new GClientGeocoder();

	if( geocoder )
	{
		geocoder.getLatLng(	pAddress,
							function(point)
							{
								if( !point )
								{
									alert(address + " not found");
								}
								else
								{
									map.setCenter(point, pZoom);
		  							var marker = new GMarker(point);
									map.addOverlay(marker);
									//marker.openInfoWindowHtml(pAddress);
								}
							}
						);
	}
}


function ShowBanchiMap(pAddress)
{
	if( GBrowserIsCompatible() )
	{
		var map = new GMap2(document.getElementById("map"));
		//map.addControl(new GSmallMapControl());
		map.addControl(new GLargeMapControl());	// 拡大縮小等の操作パネル
		map.addControl(new GMapTypeControl());	// 衛星地図等の切り替え
		map.addControl(new GOverviewMapControl());							// 右下の広域地図
	}

	// GClientGeocoderを初期化
	geocoder = new GClientGeocoder();

	if( geocoder )
	{
		geocoder.getLatLng(	pAddress,
							function(point)
							{
								if( !point )
								{
									alert(address + " not found");
								}
								else
								{
									map.setCenter(point, 16);
		  							//var marker = new GMarker(point);	// マーカーも表示しない
									//map.addOverlay(marker);
									//marker.openInfoWindowHtml(address);	// 吹き出しは表示しない
								}
							}
						);
	}
}

