// google map init
var baseIcon;
function googleload() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("googlemap"));
		map.setCenter(new GLatLng(32.73305223150125 , 129.86596728515625), 11);
		baseIcon = new GIcon();
		baseIcon.image = "/images/googlemap/ds.png";
		baseIcon.shadow = "/images/googlemap/ds_shadow.png";
		baseIcon.iconSize = new GSize(40, 25);
		baseIcon.shadowSize = new GSize(40, 25);
		baseIcon.iconAnchor = new GPoint(25, 24);
	}
}

// make markers
function createMarker(point, index) {
	var alp = "ABCDEFGHIJKLMNOPQ";
	var icon = new GIcon(baseIcon);
	var marker = new GMarker(point, icon);
	GEvent.addListener(marker, "click", function(){clickMarker(index)});
	return marker;
}

// marker init
function addMarker(){
	for(x in datas){
		var point = new GLatLng(datas[x].lon, datas[x].lat);
		map.addOverlay(createMarker(point, x));
	}
}