//<![CDATA[
var map;
var pt;
var pn;
var markermap;
var gGeo;

function createXmlHttp() {
	if(window.XMLHttpRequest) { return new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		try { return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) { return new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	return null;
}

function WhatsNew() {
	var xmlHttp = createXmlHttp();
	if ( xmlHttp == null ) { return null; }

	xmlHttp.open("GET", "./whatsnew.cgi");
	xmlHttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jun 1970 00:00:00 GMT");
	xmlHttp.onreadystatechange = function() {
		if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
			document.getElementById("whatsnew_code").innerHTML = xmlHttp.responseText;
		}
	}
	xmlHttp.send(null);
}

function map(){
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("gmap"));
		map.addControl(new GMapTypeControl());
		map.addControl(new GSmallMapControl());

		gGeo = new GClientGeocoder();
		gGeo.getLatLng('“Œ‹ž“sVh‹æ‰Ì•‘Šê’¬1-19-1',function(pt){

		map.setCenter(pt, 16);
		markermap = new GMarker(pt,null);
		map.addOverlay(markermap);

		GEvent.addListener(markermap, "click", function(){
			markermap.openInfoWindow("<div id='stv' style='width:300px;height:200px;'></div>");

			GEvent.addListener(markermap, "infowindowopen", function() {
				pn = new GStreetviewPanorama(document.getElementById("stv"));
				pn.setLocationAndPOV(markermap.getLatLng(),null);
			});
		});
		});
	}
}

//]]>

