function load(atng) {
	if (GBrowserIsCompatible()) {
		//icon hotel
		var hotel = new GIcon();
		hotel.image = "http://www.chinatouristmaps.com/assets/js/googlemap-hotel.png";
		hotel.shadow = "http://www.chinatouristmaps.com/assets/js/googlemap-shadow.png";
		hotel.iconSize = new GSize(24, 31);
		hotel.shadowSize = new GSize(36, 20);
		hotel.iconAnchor = new GPoint(2, 28);
		hotel.infoWindowAnchor = new GPoint(5, 1);
		
		//icon sight
		var sight = new GIcon();
		sight.image = "http://www.chinatouristmaps.com/assets/js/googlemap-sight.png";
		sight.shadow = "http://www.chinatouristmaps.com/assets/js/googlemap-shadow.png";
		sight.iconSize = new GSize(24, 31);
		sight.shadowSize = new GSize(36, 20);
		sight.iconAnchor = new GPoint(2, 28);
		sight.infoWindowAnchor = new GPoint(5, 1);
		
		//icon airport
		var airport = new GIcon();
		airport.image = "http://www.chinatouristmaps.com/assets/js/googlemap-airport.png";
		airport.shadow = "http://www.chinatouristmaps.com/assets/js/googlemap-shadow.png";
		airport.iconSize = new GSize(24, 31);
		airport.shadowSize = new GSize(36, 20);
		airport.iconAnchor = new GPoint(2, 28);
		airport.infoWindowAnchor = new GPoint(5, 1);
		
		//icon bus
		var bus = new GIcon();
		bus.image = "http://www.chinatouristmaps.com/assets/js/googlemap-bus.png";
		bus.shadow = "http://www.chinatouristmaps.com/assets/js/googlemap-shadow.png";
		bus.iconSize = new GSize(24, 31);
		bus.shadowSize = new GSize(36, 20);
		bus.iconAnchor = new GPoint(2, 28);
		bus.infoWindowAnchor = new GPoint(5, 1);
		
		//icon railway
		var railway = new GIcon();
		railway.image = "http://www.chinatouristmaps.com/assets/js/googlemap-railway.png";
		railway.shadow = "http://www.chinatouristmaps.com/assets/js/googlemap-shadow.png";
		railway.iconSize = new GSize(24, 31);
		railway.shadowSize = new GSize(36, 20);
		railway.iconAnchor = new GPoint(2, 28);
		railway.infoWindowAnchor = new GPoint(5, 1);
		
		var shopping = new GIcon();
		shopping.image = "http://www.chinatouristmaps.com/assets/js/googlemap-shopping.png";
		shopping.shadow = "http://www.chinatouristmaps.com/assets/js/googlemap-shadow.png";
		shopping.iconSize = new GSize(24, 31);
		shopping.shadowSize = new GSize(36, 20);
		shopping.iconAnchor = new GPoint(2, 28);
		shopping.infoWindowAnchor = new GPoint(5, 1);
		
		var map = new GMap2(document.getElementById("googlemap"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GOverviewMapControl());
		
		function leixing(tp) {
			var typeicon = new GIcon();
			if(tp=='hotel') typeicon = hotel;
			if(tp=='sight') typeicon = sight;
			if(tp=='airport') typeicon = airport;
			if(tp=='bus') typeicon = bus;
			if(tp=='railway') typeicon = railway;
			if(tp=='shopping') typeicon = shopping;
			return typeicon;
		}
		function createMarker(point,icont,txt) {
			var marker = new GMarker(point,icont);
			GEvent.addListener(
						marker, "click", function() {
							marker.openInfoWindowHtml(txt);
						}
			);
			return marker;
		}
		
		GDownloadUrl(
			"http://www.chinatouristmaps.com/xmldata/googlemaps.xml", function(data, responseCode) {
				var xml = GXml.parse(data);
				var centerpoint = xml.documentElement.getElementsByTagName(atng+"ce");
				map.setCenter(new GLatLng(parseFloat(centerpoint[0].getAttribute("lat")),parseFloat(centerpoint[0].getAttribute("lng"))), parseInt(centerpoint[0].getAttribute("fd")));
				var markers = xml.documentElement.getElementsByTagName(atng);
				for (var i = 0; i < markers.length; i++) {
					var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),parseFloat(markers[i].getAttribute("lng")));
					var icont = leixing(markers[i].getAttribute("typeicon"));
					var txt = markers[i].getAttribute("detail");
					map.addOverlay(createMarker(point,icont,txt));
				}
			}
		)
	}
}
