map = null;
map_latitude_default  = null;
map_longitude_default = null;
map_zoom_default      = 16;

function init_map(lat, lng, zoom) {
	if ('undefined' == lat || '' == lat || 0 == lat) {
		map_latitude_default = 35.49396831942954;
	}
	else {
		map_latitude_default = lat;
	}
	if ('undefined' == lng || '' == lng || 0 == lng) {
		map_longitude_default = 134.22611832618713;
	}
	else {
		map_longitude_default = lng;
	}
	
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("gmap"));
		if (true == map.continuousZoomEnabled()) {
			map.enableContinuousZoom();
		}
		map.enableDragging();
		map.enableScrollWheelZoom();
		map.addControl(new GSmallMapControl());
		map.setCenter(new GLatLng(map_latitude_default, map_longitude_default), map_zoom_default);
		map.addControl(new GOverviewMapControl());
	}
	var defaultLatLng = new GLatLng(map_latitude_default, map_longitude_default);
	marker = new GMarker(defaultLatLng);
	map.addOverlay(marker);

}
