function initialize() {

if (GBrowserIsCompatible()) {

	var dirMap = new GMap2(document.getElementById("map"));
	var wp = new Array(2);
	wp[0] = new GLatLng(32.742149,119.337218);
	wp[1] = new GLatLng(32.735347,119.328485);

	var marker = new GMarker(wp[1]);
	dirMap.addOverlay(marker);
	dirMap.setCenter(wp[0], 12);
	dirMap.setUIToDefault();

	// load directions
	directions = new GDirections(dirMap);
	directions.loadFromWaypoints(wp);  

}
else {
  alert("Sorry, the Google Maps API is not compatible with this browser");
}

}

