//<![CDATA[
	var gme_map;
	var gme_markers=[];
	var gme_genres=[];
	
	var icon = new GIcon();
	icon.image = "http://www.codomo.co.jp/img/marker.png";
	icon.shadow = "http://www.codomo.co.jp/img/shadow50.png";
	icon.iconSize = new GSize(20, 34);
	icon.shadowSize = new GSize(37, 34);
	icon.iconAnchor = new GPoint(9, 34);
	icon.infoWindowAnchor = new GPoint( 20, 5 );

	if (GBrowserIsCompatible()) {
		gme_map = new GMap(document.getElementById("codomoMap"));
		gme_map.centerAndZoom(new GPoint(140.75883150100708,41.81398638061167), 2);
		gme_map.addControl(new GLargeMapControl());
		gme_map.addControl(new GMapTypeControl());
		addGMarker(1,140.75883150100708,41.81398638061167,'');
	}

	function addGMarker(markerNo, lng, lat,genre){
		var marker = new GMarker(new GPoint(lng, lat), icon);
		
		var f = function(){
			gme_map.centerAtLatLng(new GPoint(lng,lat));
			marker.openInfoWindowHtml(document.getElementById('marker_html_' + markerNo).innerHTML);
		};
		
		GEvent.addListener(marker, 'click', f);
		var marker_field = document.getElementById('marker_link_'+ markerNo);
		
		if(marker_field){
			marker_field.onmousedown = f;
		}
		gme_map.addOverlay(marker);
		marker.openInfoWindowHtml(document.getElementById('marker_html_' + markerNo).innerHTML);
		gme_markers.push({'marker':marker,'no':markerNo,'lng':lng,'lat':lat,'genre':genre});
	}
//]]>
