

	function load() {
		if (GBrowserIsCompatible()) {
			//在给定的 HTML container（通常是 DIV 元素）中创建新的地图。
			var map = new GMap2(document.getElementById("min_map"));
			//map.addControl(new GSmallMapControl());//允许用户移动和缩放地图
			map.addControl(new GSmallZoomControl());
			//map.addControl(new GMapTypeControl());//允许用户在地图类型之间切换
			//初始化地图
			map.setCenter(new GLatLng(longitude, latitude), 16);

			// Create a base icon for all of our markers that specifies the
			// shadow, icon dimensions, etc.
			// 为所有标记创建指定阴影、图标尺寸灯的
			// 基础图标。
			var baseIcon = new GIcon();
			baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
			baseIcon.iconSize = new GSize(20, 34);
			baseIcon.shadowSize = new GSize(37, 34);
			baseIcon.iconAnchor = new GPoint(9, 34);
			baseIcon.infoWindowAnchor = new GPoint(9, 2);
			baseIcon.infoShadowAnchor = new GPoint(18, 25);

		// Creates a marker whose info window displays the letter corresponding
		// to the given index.
		// 创建信息窗口显示标记。
		function createMarker(point, index) {
		  // Create a lettered icon for this point using our icon class
		  // 创建使用图标类并用于特定坐标显示
		  var icon = new GIcon(baseIcon);
		  icon.image = "http://www.google.com/mapfiles/marker.png";
		  var marker = new GMarker(point, icon);
		  //添加点击事件
		  GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(document.getElementById('map_info').innerHTML);
		  });
		  return marker;
		}

		//按照特定坐标定位地图并创建标记
		var point = new GLatLng(longitude, latitude);
		map.addOverlay(createMarker(point,0));
	  }
	}

		//将当前页面所在的频道突出显示
	function g(itemId){
		return document.getElementById(itemId);
	}


$(document).ready(load);

