<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (getconfig("SK_Office")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK100000000") AND JudgePopedomTF(Session("UserName"),"SK100000701")))) then Call ReturnError()%>
<SCRIPT language=javascript src="js/method.js"></SCRIPT>
<SCRIPT language=JavaScript src="js/newMap.js"></SCRIPT>
<SCRIPT language=JavaScript src="js/newMap2.js"></SCRIPT>
<SCRIPT language=JavaScript src="js/newMapObj.js"></SCRIPT>
<SCRIPT language=JavaScript src="js/Encode.js"></SCRIPT>
<SCRIPT src="js/mapbar25.js" type=text/javascript></SCRIPT>
<SCRIPT language=javascript>  
  var oo = false;//屏蔽小地图！！
  var mw = 0;	  //防止滚屏！！
	var kp=false;//屏蔽双击放大
//  var DEYIl=2;    //地图显示的最少等级！！
  var bp = true; //黄金地标开关！！
function selectedme(fm,str1){
	for (i=0;i<fm.options.length;i++){ 
		 selestr = fm.options[i].text;	   
		 if(selestr.indexOf(str1)!=-1)
	     { 
			 fm.options[i].selected=true;
		  	return fm.options[i].value;
	  	 } 
	 } 
}
		function poiCallback_fun(strURL) {
			var begin = strURL.indexOf("&latlon=");
			var end = strURL.indexOf("&zm=");
			var strLatLon = strURL.substring(begin+8,end);
			var strurl = "SK.GetMap.asp?"+strURL;	
			var poiObj = new MapPoi();
				alert();								
				addPoi2(poiObj);alert();
		}

function callback2(strURL) {
	var begin = strURL.indexOf("&latlon=");
	var end = strURL.indexOf("&zm=");
	var latlon = strURL.substring(begin+8,end);
	//maplet.maplet.clean();
	parent.addPoint(latlon,"","");
	maplet.setMode(3);
	maplet.refresh();
	var strurl = "SK.GetMap.asp?"+strURL+"&color=imgblue";
	parent.markDiv.style.display = 'block';
	parent.markframe.location.href= strurl;
}
var maplet = "";
function callback(strURL) {
	strURL = strURL.substring(9,strURL.length);
	selectedme(parent.subform.City,strURL);
	maplet.centerAndZoom(new MPoint(strURL), 8);
}
function onLoad(city)
{	
	maplet = new Maplet("myMap");
	maplet.addControl(new MStandardControl());
	if(city == "香港"){
		maplet.setStyle("HK");
		
		maplet.addBound(new MBound(22,113,23,115,0,14));
	}	
	if(city == "全国" || city ==""){
		maplet.centerAndZoom(new MPoint("北京市"), 1);
	}else{
		maplet.centerAndZoom("HERTIFZVVHVVA", 8);
	}
	maplet.addHotspot("北京市","HERTIFZVVHVVA","北京市",0, 8);
	maplet.addHotspot("天津市","HHCDDVZVVIHHW","天津市",0, 8);
	maplet.addHotspot("上海市","IJSJFSZVIWTSR","上海市",0, 8);
	maplet.addHotspot("重庆市","HFEWASZTWJCIA","重庆市",0, 8);
	maplet.addHotspot("广州市","IJIVCUZUABVDR","广州市",0,8);
	maplet.addHotspot("台湾","JDEAEGZUWRCBU","台湾",0, 8);
	maplet.addHotspot("香港","ITABFEZUAGDHS","香港",0, 8);
	maplet.addHotspot("澳门","ISIRAVZTWBIIW","澳门",0, 8);
	maplet.addHotspot("哈尔滨市","HSHUBJZBAHAREC","哈尔滨市",0, 8);
	maplet.addHotspot("海口市","IJUIHTZTGVVVJ","海口市",0, 8);
	maplet.addHotspot("兰州市","GHHVVDZUFHHCA","兰州市",0, 8);
	maplet.addHotspot("拉萨市","FUUTJSZSIEUVI","拉萨市",0, 8);
	maplet.addHotspot("昆明市","HGIWTVZTCVWRF","昆明市",0, 8);
	maplet.addHotspot("贵阳市","HREWEIZTSGAIW","贵阳市",0, 8);
	maplet.addHotspot("南昌市","IFCCCCZUTJIWJ","南昌市",0, 8);
	maplet.addHotspot("长沙市","IBGHREZUHGTCD","长沙市",0, 8);
	maplet.addHotspot("福州市","IVGASVZUUTRAS","福州市",0, 8);
	maplet.addHotspot("杭州市","IJCUUGZVFJFUU","杭州市",0, 8);
	maplet.addHotspot("合肥市","ICGACFZVDJAJI","合肥市",0, 8);
	maplet.addHotspot("济南市","HRRGHIZVRHEFS","济南市",0, 8);
	maplet.addHotspot("呼和浩特市","GTCGSFZVIRJJG","呼和浩特市",0, 8);
	maplet.addHotspot("郑州市","HIGJSFZVCHBHV","郑州市",0, 8);
	maplet.addHotspot("太原市","HCADEUZVFITAI","太原市",0, 8);
	maplet.addHotspot("西安市","HBWUISZURIEVG","西安市",0, 8);
	maplet.addHotspot("成都市","HABGRAZTUJFVW","成都市",0, 8);
	maplet.addHotspot("武汉市","HWSWSWZUUAJHT","武汉市",0, 8);
	maplet.addHotspot("南京市","IEFSVDZVGCCRV","南京市",0, 8);
	maplet.addHotspot("沈阳市","HTJRIVZWTBGRW","沈阳市",0, 8);
	maplet.addHotspot("石家庄市","HESCDAZVITAVD","石家庄市",0, 8);
	maplet.addHotspot("长春市","HTEJDSZBACCIVI","长春市",0, 8);
	maplet.addHotspot("南宁市","ICIDDCZTIBBTJ","南宁市",0, 8);
	maplet.addHotspot("银川市","GHIAVSZUTURAR","银川市",0, 8);
	maplet.addHotspot("西宁市","GDHVHIZUDCRBS","西宁市",0, 8);
	maplet.addHotspot("乌鲁木齐市","ECVEHGZTIHTIU","乌鲁木齐市",0, 8);
	MEvent.addListener(maplet,'hotspot',callback);
	parent.cityOption(city);
}
function hideShow()
{
	if(!maplet)return;
}
</SCRIPT>
<STYLE type=text/css>
BODY {
MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY onLoad="onLoad('<%=SystemCtiy%>')">
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
<TR>
<TD height=350>
<DIV id=myMap style="WIDTH: 940px; HEIGHT: 600px"></DIV>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>