/* Coypright (C) 2011 Go2map Inc. All rights reserved. */
/*LastModified by zzy at 20110512*/
(function(){
function A(a,b){window[a]=b}
function B(a,b,c){a.prototype[b]=c}
function C(a,b,c){a[b]=c}
var D={};
D.a="http://log2.lsp.go2map.com/log.gif";
D.b="lib/style/";
D.c="http://lspengine.go2map.com/WebSite/Engine";
D.e="http://key.go2map.com/lib";
D.f="http://pic1.go2map.com/seamless/";
D.g=[function(a,b,c,d){return "http://p"+Ak(c)+".go2map.com/seamless1/"+a.join("/")+".GIF"},function(a,b,c,d){a[1]="180";return "http://hbpic"+Ak(c)+".go2map.com/seamless/"+a.join("/")+".JPG"},function(a,b,c,d){a[1]="179";return "http://hbpic"+Ak(c)+".go2map.com/seamless/"+a.join("/")+".PNG"},function(a,b,c,d){a[1]="179";return ""}];
D.h=["180","179"];
D.expireFlag="20080712008";
D.i=D.uniqueId=function(){var a=Math.random;var b=parseInt;return Number( new Date()).toString()+b(10*a())+b(10*a())+b(10*a());};
D.j=D.copyright=["&#169;2011 "+unescape("%u641C%u72D7%u5730%u56FE"),"http://map.sogou.com/","GS(2011)6004\u53F7"];
D.k=10;
D.l=new function(){var t=this;t.type=-1;t.os=-1;t.cpu=-1;t.version=0;var a=navigator.userAgent.toLowerCase(),b,c,d,e=["opera","msie","firefox","mozilla","camino","applewebkit"],f=["x11;","macintosh","windows"];for(b=0;b<e.length;b++){c=e[b];if(a.indexOf(c)!=-1){t.type=b;d=new RegExp(c+"[ /]?([0-9]+(.[0-9]+)?)");if(d.exec(a)){t.version=parseFloat(RegExp.$1)}break}}for(b=0;b<f.length;b++){c=f[b];if(a.indexOf(c)!=-1){t.os=b;break}}if(t.os==1&&a.indexOf("intel")!=-1){t.cpu=0}t.isMozilla=function(){return t.type==2||t.type==3||t.type==4};t.isLowIE7=function(){return t.type==1&&t.version<7};t.isOpera=function(){return t.type==0}};
D.m="http://tag.go2map.com/stylemanager/styleimage/";
D.n="http://tag.go2map.com/stylelib/labellib";
D.o="http://lib.go2map.com/";
D.r=["NavInfo&amp;Nav2","http://www.nav2.com.cn/"];
D.s=[["DigitalGlobe",""],["BSEI","http://www.mapenjoy.com"]];
A("Global",D);
function E(a,b,c,d){var e=F(b).createElement(a);if(b){G(b,e)}if(c)H(e,c);if(d)J(e,d);return e}
function F(a){return(a?a.ownerDocument:null)||document}
function G(a,b){a.appendChild(b)}
function H(a,b){var c=a.style;c.position="absolute";c.left=I(b.x);c.top=I(b.y)}
function I(a){return R(a)+"px"}
function J(a,b){var c=a.style;c.width=I(b.width);c.height=I(b.height)}
function K(a,b){a.style.left=I(b)}
function L(a,b){a.style.top=I(b)}
function M(a,b){a.style.width=I(b)}
function N(a,b){a.style.height=I(b)}
function O(a){a.style.display="none"}
function P(a){a.style.display=""}
function Q(a){a.style.position="absolute"}
function R(a){return Math.round(a)}
function S(a){return Math.floor(a)}
function T(a){return Math.ceil(a)}
function U(a,b){return Math.max(a,b)}
function V(a,b){return Math.min(a,b)}
function W(a){return Math.abs(a)}
function X(a,b){return a.getAttribute(b)}
function Y(a,b,c){a.setAttribute(b,c)}
function Aa(a,b){return a.getElementsByTagName(b)}
function Ab(a){a.style.visibility="hidden"}
function Ac(a){a.style.visibility="visible"}
function Ad(a,b){a.style.zIndex=Ae(b)}
function Ae(a){return parseInt(a)}
function Af(a,b){a.style.background='url("'+b+'")'}
function Ag(a,b){if(a&&b) a.removeChild(b)}
function Ah(a,b){var e=F(b).createTextNode(a);if(b){G(b,e)}return e}
function Ai(a,b){var e=F(b).createElementNS("http://www.w3.org/2000/svg",a);if(b){G(b,e)}return e}
function Aj(a,b,c){a.style["filter"]="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod="+(c?"scale":"crop")+',src="'+b+'")'}
function Ak(a){return !a?0:W(a)%3}
function Am(a,b,c){var i,j,d=[];if(!b)return a;for(i=0;i<a.length;i++){d[i]=[];for(j=0;j<a[i].length;j++){if(b[i][j]!=null&&b[i][j]<=c)d[i].push(a[i][j]);}}return d}
function An(a){var b=1.5*a.minX-0.5*a.maxX,c=1.5*a.minY-0.5*a.maxY,d=1.5*a.maxX-0.5*a.minX,e=1.5*a.maxY-0.5*a.minY;return new Bounds(b,c,d,e)}
function Ao(a,b){return Math.abs(a-b)>0.00001};
function Ap(a,b){var p=[a[0],a[1],a[2],a[3]],c,c1=Aq(a[0],a[1],b),c2=Aq(a[2],a[3],b),x,y;while(c1!=0||c2!=0){if((c1&c2)!=0){return null;}c=(c1==0?c2:c1);if((c&1)!=0){x=b[0];y=a[1]+(a[3]-a[1])*(b[0]-a[0])/(a[2]-a[0]);}else if((c&2)!=0){x=b[2];y=a[1]+(a[3]- a[1])*(b[2]-a[0])/(a[2]-a[0]);}else if((c&4)!=0){y=b[1];x=a[0]+(a[2]-a[0])*(b[1]-a[1])/(a[3]- a[1]);}else if((c&8)!=0){y=b[3];x=a[0]+(a[2]-a[0])*(b[3]-a[1])/(a[3]-a[1]);}if (c==c1){p[0]=x;p[1]=y;c1=Aq(x,y,b);}else {p[2]=x;p[3]=y;c2=Aq(x,y,b);}}return p;}
function Aq(x,y,b){var c=0;if(x<b[0]){c|=1;}else if(x>b[2]){c|=2;}if(y<b[1]){c|=4;}else if(y>b[3]){c|=8;}return c;}
function Ar(a,b){var c,d=[],e,f=-1,g,i;for(i=0;i<a.length-1;i++){c=Ap([a[i].x,a[i].y,a[i+1].x,a[i+1].y],[b.minX,b.minY,b.maxX,b.maxY]);if(c){g=d[f];if(g&&g.length>0) e=g[g.length-1];if(!e||Ao(e.x,c[0])||Ao(e.y,c[1])) {f++;d[f]=[];d[f].push(new Point(c[0],c[1]));}d[f].push(new Point(c[2],c[3]));}}return d}
function As(a,b){var c=[],i;for(i=0;i<a.length;i++){c=c.concat(Ar(a[i],b));}return c}
function At(a,b){var c=b.minX,d=b.minY,e=b.maxX,f=b.maxY,g;function z(ps,x1,y1,x2,y2){if (ps==null)return null;var a=y2-y1,b=x1-x2,c=-a*x1-b*y1,r=[],i,j=-1,lx,ly,k,h,m;for(i=0;i<ps.length;i++){h=ps[i];lx=h[h.length-1].x;ly=h[h.length-1].y;k=false;for(m=0;m<h.length;m++){var d,e,f,g,l=h[m],x,y,o=a*l.x+b*l.y+c>0,p=a*lx+b*ly+c>0;if(o||p) {if(!k){k=true;r[++j]=[];}if(!o||!p){d=ly-l.y;e=l.x-lx;f=-d*l.x-e*l.y;g=e*a-b*d;x=(b*f-e*c)/g;y=(d*c-a*f)/g;r[j].push(new Point(x,y));}if(o) r[j].push(new Point(l.x,l.y))}lx=l.x;ly=l.y;}}return r;};g=z(a,c,d,c,f);g=z(g,c,f,e,f);g=z(g,e,f,e,d);g=z(g,e,d,c,d);return g}
function Au(a){return Math.sin(a)}
function Av(a){return Math.cos(a)}
function Aw(a){return Math.acos(a)}
document.write('<link id="stylesheetLoader" rel="stylesheet" type="text/css"/>');
if(document.all){try{document.namespaces.add("v");}catch(ex){if(document.body==null)document.write("<?xml:namespace prefix=\"v\"/><style type=\"text/css\">v\:* {behavior:url(#default#VML);}</style>");}}
document.write("<style type=\"text/css\" media=\"screen\">.noscreen {display: none;}</style>");
document.write("<style type=\"text/css\" media=\"print\">.noprint,#transparent {display: none;}</style>");

String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g, "");};
String.prototype.trimLeft=function(){return this.replace(/^\s*/g, "");};
String.prototype.trimRight=function(){return this.replace(/\s*$/g, "");};
Object.prototype.getClassName=function(){var a=this.constructor.toString();return a.substring(a.indexOf("function ")+9,a.indexOf("(") );};
Object.prototype.setTimeout=function(a,b){var c=this,d;if(typeof a=="function"&&arguments.length>2){d=Array.prototype.slice.call(arguments,2);return window.setTimeout(function(){a.apply(c,d)},b)}return window.setTimeout(function(){a.apply(c)},b)};
Object.prototype.eventHandler=function(a){var b=this;return function(){var c;if(arguments.length==0){c=window.event;if(c&&!c.target){c.target=c.srcElement}c=[c]}else{c=arguments}try{return b[a].apply(b,c)}catch(e){L2.a("eventHandler: "+e.description+"\n"+b.getClassName()+" "+a);}}};
Array.prototype.clear=function(){while(this.length>0)this.pop()};
var WSTO=window.setTimeout;
window.setTimeout=function(a,b) {if(typeof a=='function'){var c=Array.prototype.slice.call(arguments,2);var f=(function(){a.apply(null,c);});return WSTO(f,b)}return WSTO(a,b)};

if(D.l.type==2)
{
XMLDocument.prototype.__proto__.__defineGetter__("xml",function (){try {return new XMLSerializer().serializeToString(this);}catch (ex){var d=E("div");d.appendChild(this.cloneNode(true));return d.innerHTML;}});
Element.prototype.__proto__.__defineGetter__("xml",function(){try{return new XMLSerializer().serializeToString(this);}catch (ex){var d=E("div");d.appendChild(this.cloneNode(true));return d.innerHTML;}});
XMLDocument.prototype.__proto__.__defineGetter__("text",function(){return this.firstChild.textContent});
Element.prototype.__proto__.__defineGetter__("text",function(){return this.textContent});
XMLDocument.prototype.selectSingleNode=Element.prototype.selectSingleNode=function(xpath){var x=this.selectNodes(xpath);if (!x||x.length <1) return null;return x[0];};
XMLDocument.prototype.selectNodes=Element.prototype.selectNodes=function(xpath){var xpe=new XPathEvaluator();var nsResolver=xpe.createNSResolver(this.ownerDocument==null?this.documentElement:this.ownerDocument.documentElement);var result=xpe.evaluate(xpath,this,nsResolver,0,null);var found=[];var res;while(res=result.iterateNext()) found.push(res);return found;};
}
function $1(a,b){try{if(b.indexOf(".")>-1){b="url(\""+b+"\")"}a.style.cursor=b}catch(c){if(b=="pointer"){$1(a,"hand")}}}A("_setCursor",$1);function $2(a){if(D.l.type==1){window.event.cancelBubble=true;window.event.returnValue=false}else{a.cancelBubble=true;a.preventDefault();a.stopPropagation()}}A("_stopEvent",$2);function $3(a){return document.getElementById(a)}A("_el",$3);A("_pixel",I);function $4(a,b){if(a.className){a.className+=" "+b}else{a.className=b}}A("_setStyle",$4);function $5(a){var b={"x":0,"y":0};while(a){b.x+=a.offsetLeft;b.y+=a.offsetTop;a=a.offsetParent}return b}A("_offsetPositionAbsolute",$5);function $6(a,b){var c={"x":0,"y":0};while(a&&a!=b){c.x+=a.offsetLeft;c.y+=a.offsetTop;a=a.offsetParent}return c}A("_offsetPositionRelative",$6);function $7(){}A("_nullFunction",$7);function $8(a){return null}A("_nullFunc",$8);function $9(){return false}A("_falseFunc",$9);function $a(a,b,c){if(!c){c=new P4()}if(typeof a.pageX!="undefined"){var f=$5(b);c.x=a.pageX-f.x;c.y=a.pageY-f.y}else if(typeof a.offsetX!="undefined"){var d=a.target||a.srcElement;var e=$6(d,b);c.x=a.offsetX+e.x;c.y=a.offsetY+e.y}return c}A("_getRelativeClickPoint",$a);function $b(a){while(a.hasChildNodes()){Ag(a,a.lastChild)}}A("_clearAllChildNodes",$b);function $c(a){try{if(typeof ActiveXObject!="undefined"&&typeof GetObject!="undefined"){var b=new ActiveXObject("Microsoft.XMLDOM");b.loadXML(a);return b}else if(typeof DOMParser!="undefined"){return(new DOMParser()).parseFromString(a,"text/xml")}else{L2.a("²»Ö§³ÖDOM");return $8(a)}}catch(c){L2.a(c.toString(),"exception")}}A("_getDomFromString",$c);function $d(a){var b,c;try{if(typeof ActiveXObject!="undefined"&&typeof GetObject!="undefined"){b=new ActiveXObject("Microsoft.XMLDOM");}else if(document.implementation){b=document.implementation.createDocument("", "doc", null);c=window.location.href;c=c.substring(0,c.lastIndexOf("\/"));a=c+"/"+a}b.async=false;var c=b.load(a);if(b.parseError&&b.parseError.errorCode){L2.a( "load "+a+" error,reason:"+"\n\n"+b.parseError.reason,"exception" )}return b}catch(c){L2.a(c.toString(),"exception");}}A("_getDomFromFile",$d);function $e(a){var b=E("iframe",null,new P4(-120,-120),new S1(80,80));b.id=a;b.name=a;document.body.appendChild(b);return b}A("_createIframeElement",$e);function $f(a){if(a.contentWindow){return a.contentWindow}else{return window[a.id]}}A("_getIframeContentWindow",$f);function $g(a){if(!a){return null}else if(a.nodeType==1){var b=$h(a);if(b){return $g(b)}else{var c=[];for(var d=0;d<a.childNodes.length;++d){var e=a.childNodes[d];var f=$g(e);if(!c[e.nodeName]){c[e.nodeName]=typeof(f)=="object"?f:[f]}else if(c[e.nodeName].length==0){var g=c[e.nodeName];c[e.nodeName]=[g,f]}else{c[e.nodeName].push(f)}}for(var d=0;d<a.attributes.length;++d){var h=a.attributes[d];c[h.nodeName]=h.nodeValue}return c}}else if(a.nodeType==3||a.nodeType==8){return""+a.nodeValue}else{return null}}A("_parseXmlToObject",$g);function $h(a){if(a.attributes&&a.attributes.length>0){return null}var b=null;for(var c=0;c<a.childNodes.length;++c){var d=a.childNodes[c];if(d.nodeType==1){return null}if((d.nodeType==3||d.nodeType==8)&&!d.nodeValue.match(/^\s*$/)){if(!b){b=d}else{return null}}}return b}A("_getTextNode",$h);function $i(a,b){return R(a*1000000)==R(b*1000000)}A("_isApproxEquals",$i);function $j(a){if(!a){return""}if(typeof a.text!="undefined"){return a.text}if(a.nodeType==3||a.nodeType==4){return a.nodeValue}var b="";if(a.nodeType==1){for(var c=a.firstChild;c!=null;c=c.nextSibling){b+=$j(c)}}return b}A("_getTextFromXmlNode",$j);function $k(a,b,c){var d=$l(a,b);var e=$m(d,c);return e;}A("_splitResult",$k);function $l(a,b){return a.split(b);}A("_splitBy",$l);function $m(a,b) {var c;var d=[];if(a.length<=0) return "";for(var i=0;i<a.length;++i ) {c=a[i].split( b );d[c[0]]=c[1];}return d;}A("_getItemArrayFromRet",$m);function $n(a){var b,c,d,e="",f,g,h=/[^\u4E00-\u9FA5\w\s]/g,i,j;b=window.location.href.replace(/&amp;/g,"&");d=(c=b.indexOf("?"))>-1?c:b.indexOf("#");if(a!=null&&d>-1){b=b.substring(d+1);b=b.replace(/#/g,"&");c=b.split("&");for(d=0;d<c.length;d++){var f,g;f=c[d].split("=")[0];g=c[d].substring(c[d].indexOf("=")+1);try{i=j="";i=decodeURIComponent(f);j=decodeURIComponent(g);f=i;g=j;}catch(ex){}f=f.indexOf("%u")>-1?unescape(f):f;g=g.indexOf("%u")>-1?unescape(g):g;if(f==a){e=g}}}return e}A("_getParameter",$n);function $o(a){var b="!@#$%^&*()|\'\"-=",c,d,e,f=/\\([^u]|$)/g;while(f.test(a)){a=a.replace(f,"\\u005c$1")}c=b.length;for(var i=0;i<c;i++){d=b.charAt(i);e=d.charCodeAt(0).toString(16);e="\\u0000".substr(0,6-e.length)+e;a=a.replace(new RegExp("\\"+d,"g"),e);}b=c=d=e=i=null;return a}A("_charFilter",$o);function $p(a,b,c,d){var e=window.location.hash.replace(/#/,""),f,g,k="_URLHASH_",h=window[k],i;if(!h&&e){h=window[k]={};f=e.split("&");for(i=0;i<f.length;i++){g=f[i].split("=");if(g[0]&&g[1]) h[g[0]]=g[1]}}if(!h||(!a&&!b)||c) h=window[k]={};h[a]=b;window.clearTimeout(window[k+"T"]);window[k+"T"]=window.setTimeout(function(){var i,f=[],g;for(i in h){g=typeof(h[i]);if((g=="string"||g=="number")&&h[i]!=null&&h[i]!="")f.push(i+"="+h[i])}window.location.hash=f.join("&")},!d?1000:d)}A("_setUrlHashParam",$p);function $r(a,b){var c=0,d=a.length,e=[],f=g=h=i=dx=dy=x=y=0;b=!b&&b!=0?0:b;h=Math.pow(10.0,b);while (i<d){f = 0;g = 0;do{c=a.charCodeAt(i++)-63;g|=(c&0x1F)<<f;f+=5}while(c>=0x20);dx=((g&1)?~(g>>1):(g>>1));x+=dx;f=0;g=0;do{c = a.charCodeAt(i++)-63;g|=(c&0x1F)<<f;f+=5;}while(c>=0x20);dy=((g&1)?~(g>>1):(g>>1));y+=dy;e.push([x/h,y/h]);}return e}A("_decodeXY",$r);function $s(a){var b=[],c=0,i;for (i=0;i<a.length;++i){c=a.charCodeAt(i)-64;b.push(c)}return b}A("_decodeLevels",$s);


function getXmlHttp()
{
	try
	{
		if(window.XMLHttpRequest)
		{
			return new XMLHttpRequest()
		}
		else if(typeof ActiveXObject!="undefined")
		{
			return new ActiveXObject("Microsoft.XMLHTTP")
		}
	}
	catch(a){}
	return null
}
function _downloadUrl(a,b,c,h,d)	//(Url,callback,param,isSync,ContentType)
{
	var e=getXmlHttp();
	if(!e)
	{
		return false
	}
	if(b)
	{
		e.onreadystatechange=function()
		{
			if(e.readyState==4)
			{
				var g=checkDomAttr(e);	
				b(g.responseText,g.responseXML,g.status);
				e.onreadystatechange=$7
			}
		}
	}
	if(c)
	{
		e.open("POST",a,!h);
		var f=d;
		if(!f)
		{
			f="application/x-www-form-urlencoded"
		}
		e.setRequestHeader("Content-Type",f);
		e.send(c)
	}
	else
	{
		e.open("GET",a,!h);
		e.send(null)
	}
	return e
}
function checkDomAttr(a)
{
	var b=-1,c=null,d=null;
	try
	{
		b=a.status;
		c=a.responseText;
		d=a.responseXML
	}
	catch(e){}
	return{status:b,responseText:c,responseXML:d}
}


function B1(a,b,c,d){var th=this;th.minX=a;th.minY=b;th.maxX=c;th.maxY=d;th.toString=function(){return"Bounds("+th.minX+","+th.minY+","+th.maxX+","+th.maxY+")"};th.isNull=function(){var a=null;return (th.minX==a&&th.minY==a&&th.maxX==a&&th.maxY==a)};th.clone=function(a){th.minX=a.minX;th.minY=a.minY;th.maxX=a.maxX;th.maxY=a.maxY};th.containsSegment=function(a,b){var c=false;if(th.minX>a.x&&th.minX>b.x)return c;if(th.maxX<a.x&&th.maxX<b.x)return c;if(th.minY>a.y&&th.minY>b.y)return c;if(th.maxY<a.y&&th.maxY<b.y)return c;return true};th.containsBounds=function(a){return th.minX<a.minX&&(th.maxX>a.maxX&&(th.minY<a.minY&&th.maxY>a.maxY))};th.isIntersect=function(a){return !(th.maxX<a.minX||th.minX>a.maxX||th.maxY<a.minY||th.minY>a.maxY)};th.extend=function(a){th.minX=!th.minX?a.x:V(th.minX,a.x);th.maxX=!th.maxX?a.x:U(th.maxX,a.x);th.minY=!th.minY?a.y:V(th.minY,a.y);th.maxY=!th.maxY?a.y:U(th.maxY,a.y)};}
B1.intersection=function(a,b){return new B1(U(a.minX,b.minX),U(a.minY,b.minY),V(a.maxX,b.maxX),V(a.maxY,b.maxY))};
B1.merge=function(a,b){return new B1(V(a.minX,b.minX),V(a.minY,b.minY),U(a.maxX,b.maxX),U(a.maxY,b.maxY))};
A("Bounds",B1);

function C1()
{
var th=this,EARTHRADIUS=6370996.81,MCBAND=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],LLBAND=[75,60,45,30,15,0],MC2LL=[[1.410526172116255e-008,8.983055096488720e-006,-1.99398338163310,2.009824383106796e+002,-1.872403703815547e+002,91.60875166698430,-23.38765649603339,2.57121317296198,-0.03801003308653,1.733798120000000e+007],[-7.435856389565537e-009,8.983055097726239e-006,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1.026014486000000e+007],[-3.030883460898826e-008,8.983055099835780e-006,0.30071316287616,59.74293618442277,7.35798407487100,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6.856817370000000e+006],[-1.981981304930552e-008,8.983055099779535e-006,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4.482777060000000e+006],[3.091913710684370e-009,8.983055096812155e-006,0.00006995724062,23.10934304144901,-0.00023663490511,-0.63218178102420,-0.00663494467273,0.03430082397953,-0.00466043876332,2.555164400000000e+006],[2.890871144776878e-009,8.983055095805407e-006,-0.00000003068298,7.47137025468032,-0.00000353937994,-0.02145144861037,-0.00001234426596,0.00010322952773,-0.00000323890364,8.260885000000000e+005]],LL2MC=[[-0.00157021024440,1.113207020616939e+005,1.704480524535203e+015,-1.033898737604234e+016,2.611266785660388e+016,-3.514966917665370e+016,2.659570071840392e+016,-1.072501245418824e+016,1.800819912950474e+015,82.50000000000000],[8.277824516172526e-004,1.113207020463578e+005,6.477955746671608e+008,-4.082003173641316e+009,1.077490566351142e+010,-1.517187553151559e+010,1.205306533862167e+010,-5.124939663577472e+009,9.133119359512032e+008,67.50000000000000],[0.00337398766765,1.113207020202162e+005,4.481351045890365e+006,-2.339375119931662e+007,7.968221547186455e+007,-1.159649932797253e+008,9.723671115602145e+007,-4.366194633752821e+007,8.477230501135234e+006,52.50000000000000],[0.00220636496208,1.113207020209128e+005,5.175186112841131e+004,3.796837749470245e+006,9.920137397791013e+005,-1.221952217112870e+006,1.340652697009075e+006,-6.209436990984312e+005,1.444169293806241e+005,37.50000000000000],[-3.441963504368392e-004,1.113207020576856e+005,2.782353980772752e+002,2.485758690035394e+006,6.070750963243378e+003,5.482118345352118e+004,9.540606633304236e+003,-2.710553267466450e+003,1.405483844121726e+003,22.50000000000000],[-3.218135878613132e-004,1.113207020701615e+005,0.00369383431289,8.237256402795718e+005,0.46104986909093,2.351343141331292e+003,1.58060784298199,8.77738589078284,0.37238884252424,7.45000000000000]];
th.distanceByMC=function(a,b){var c,d,x1,y1,x2,y2;c=this.convertMC2LL(a);x1=f2(c.x);y1=f2(c.y);d=this.convertMC2LL(b);x2=f2(d.x);y2=f2(d.y);return f3(x1,x2,y1,y2);};
th.distanceByLL=function(a,b){var x1,x2,y1,y2;x1=f2(a.x);y1=f2(a.y);x2=f2(b.x);y2=f2(b.y);return f3(x1,x2,y1,y2);};
th.convertMC2LL=function(a,b){var c,d,e,f;c=new P4(W(a.x),W(a.y));if(!b) b=new P4();for(var i=0;i<MCBAND.length;i++){if(c.y>MCBAND[i]) {e=MC2LL[i];break;}}return f1(b,a,e);};
th.convertLL2MC=function(a,b){var c,d,e;c=new P4(W(a.x),W(a.y));if(!b) b=new P4();for(var i=0;i<LLBAND.length;i++){if(c.y>LLBAND[i]) {e=LL2MC[i];break;}}return f1(b,a,e);};
th.boundByLL=function(a,b){var c,d,e,f=[],g,h,r;c=f2(a.x);d=f2(a.y);r=b/EARTHRADIUS;r=r-r*Math.PI;e=Aw((Av(r)-Au(d)*Au(d))/(Av(d)*Av(d)));g=Aw(Av(d)*Av(r)+Au(d)*Au(r));h=Aw(Av(d)*Av(r)-Au(d)*Au(r));f[0]=f4(c-e);f[1]=h<g?f4(g):f4(h);f[2]=f4(c+e);f[3]=h>g?f4(g):f4(h);return f;};
th.boundByMC=function(a,b){var c,d,e;c=th.boundByLL(th.convertMC2LL(a),b);d=th.convertLL2MC({x:c[0],y:c[1]});e=th.convertLL2MC({x:c[2],y:c[3]});return [d.x,d.y,e.x,e.y];};
function f1(a,b,c){a.x=c[0]+c[1]*W(b.x);var f=W(b.y)/c[9];a.y=c[2]+ c[3]*f+ c[4]*f*f+c[5]*f*f*f+c[6]*f*f*f*f+c[7]*f*f*f*f*f+c[8]*f*f*f*f*f*f;a.x*=(b.x<0?-1:1);a.y*=(b.y<0?-1:1);return a;};
function f2(a){return Math.PI*a/180};
function f3(x1,x2,y1,y2){return EARTHRADIUS*Aw((Au(y1)*Au(y2)+Av(y1)*Av(y2)*Av(x2-x1)))};
function f4(a){return 180*a/Math.PI};
}
A("ConvertorLLndMC",C1);

function D1(a,b,c,d){var th=this;th.id=a;th.features=b;th.bounds=c;th.xml=d;th.loadFromXML=function(a){var b=D1.loadFromString(a);th.id=b.id;th.features=b.features;th.bounds=b.bounds;th.xml=b.xml;};}D1.a=function(a){var c=X(a,"id"),d=Aa(a,"feature");if(d.length==0) d=Aa(a,"Feature");if(d.length==0) d=Aa(a,"ad");var e=[],f,g=new B1(),h;for(var i=0;i<d.length;i++){f=F2.a(d[i]);e.push(f);h=f.bounds;if(g.isNull()){g.clone(h)}g=B1.merge(g,h)}return new D1(c,e,g,a)};
D1.loadFromString=function(a){var c=(typeof(a)=="string"?$c(a):a);if(c.nodeName!="data"&&c.nodeName!="Data"){var t=Aa(c,"data");if(t.length==0) t=Aa(c,"Data");if(t.length==0) return;if(t.length>0){c=t[0]}}if(!c) return;return D1.a(c);};
A("DataNode",D1);
C(D1,"loadFromXML",D1.a);

function D2(){}
D2.create=function(a,b){var c=X1.create();if(c){return new X2(c)}else if(b){var d=(a||"mapsxmlhttpiframe");return new I2(d)}else{return null}};
A("DocumentTransport",D2);

function D3(a,b,c,d){var th=this;th.src=a;th.bounds=d;th.c=false;th.d=new P4(0,0);th.e=false;th.f=new P4(0,0);Q(th.src);th.moveTo(b!=null?b:a.offsetLeft,c!=null?c:a.offsetTop);th.eh=th.eventHandler;th.g=th.eh("onMD");th.h=th.eh("onMV");th.i=th.eh("onMU");th.j=th.eh("onDbC");th.addEvents();}
var D3p=D3.prototype;
D3p.moveTo=function(a,b){var th=this;if(th.left!=a||th.top!=b){th.left=a;th.top=b;K(th.src,th.left);L(th.src,th.top);E1.d(th,"move")}};
D3p.onMD=function(a){var th=this;E1.d(th,"mousedown",a);if(a.cancelDrag) return;var b=a.button==0||a.button==1;if(th.c||!b){$2(a);return false}th.d.x=a.clientX;th.d.y=a.clientY;th.e=true;E1.f(th.eventSrc,"mousemove",th.h);E1.f(th.eventSrc,"mouseup",th.i);if(th.src.setCapture){th.src.setCapture()}th.clickStartTime=(new Date()).getTime();th.f.x=a.clientX;th.f.y=a.clientY;E1.d(th,"dragstart");th.originalCursor=th.src.style.cursor.replace(/url\(|[\)\'\"]/g,"");$1(th.src,"move");$2(a)};
D3p.onMV=function(a){var th=this;if(D.l.os==1){if(a==null){return}if(th.dragDisabled){th.savedMove=new Object();th.savedMove.clientX=a.clientX;th.savedMove.clientY=a.clientY;return}th.setTimeout(function(){this.dragDisabled=false;this.onMV(this.savedMove)},30);th.dragDisabled=true;th.savedMove=null}var b,c,d=0,e=0;b=th.left+(a.clientX-th.d.x);c=th.top+(a.clientY-th.d.y);if(th.bounds){var f=b;if(b<th.bounds.minX){f=th.bounds.minX}else{var g=th.bounds.maxX-th.src.offsetWidth;if(b>g){f=g}}d=f-b;b=f;var h=c;if(c<th.bounds.minY){h=th.bounds.minY}else{var i=th.bounds.maxY-th.src.offsetHeight;if(c>i)h=i}e=h-c;c=h}th.moveTo(b,c);th.d.x=a.clientX+d;th.d.y=a.clientY+e;E1.d(th,"drag")};
//D3p.onMU=function(a){var th=this;E1.g(th.eventSrc,"mousemove",th.h);E1.g(th.eventSrc,"mouseup",th.i);th.e=false;$1(th.src,th.originalCursor);if(document.releaseCapture){document.releaseCapture()}var b=(new Date()).getTime();if(b-th.clickStartTime<=500&&(W(th.f.x-a.clientX)<=2&&W(th.f.y-a.clientY)<=2)){E1.d(th,"click",a)}else E1.d(th,"dragend");};
D3p.onMU=function(a){var th=this;E1.g(th.eventSrc,"mousemove",th.h);E1.g(th.eventSrc,"mouseup",th.i);th.e=false;$1(th.src,th.originalCursor);if(document.releaseCapture){document.releaseCapture()}var b=(new Date()).getTime();if(b-th.clickStartTime>500||(W(th.f.x-a.clientX)>2||W(th.f.y-a.clientY)>2)) E1.d(th,"dragend")};
D3p.onClick=function(a){E1.d(this,"click",a)};
D3p.onDbC=function(a){var b=a.button==0||a.button==1;if(this.c||!b){$2(a);return false}E1.d(this,"dblclick",a)};
D3p.onWindowMouseOut=function(a){if(!a.relatedTarget&&this.e){this.onMU(a)}};
D3p.disable=function(){this.removeEvents();this.c=true};
D3p.enable=function(){this.removeEvents();this.addEvents();this.c=false};
D3p.addEvents=function(){var th=this;if(D.l.type!=1){E1.f(window,"mouseout",th.eh("onWindowMouseOut"))}th.eventSrc=th.src.setCapture?th.src:window;E1.f(th.src,"mousedown",th.g);E1.f(th.src,"click",th.eh("onClick"));E1.f(th.src,"dblclick",th.j)};
D3p.removeEvents=function(){var th=this;if(D.l.type!=1){E1.g(window,"mouseout",th.eh("onWindowMouseOut"))}th.eventSrc=th.src.setCapture?th.src:window;E1.g(th.src,"mousedown",th.g);E1.g(th.src,"click",th.onClick);E1.g(th.src,"dblclick",th.j)};
A("DragObject",D3);

function E1(){};
E1.a=function(a,b,c){var d=E1.e(b);if(a[d]){a[d].push(c)}else{a[d]=[c]}function _E(a,b,c){this.instance=a;this.propertyName=b;this.listenerFn=c}return new _E(a,d,c)};
E1.b=function(a){var b=a.instance[a.propertyName];for(var c=0;c<b.length;c++){if(b[c]==a.listenerFn){b.splice(c,1);return}}};
E1.c=function(a,b){var c=E1.e(b);a[c]=null};
E1.d=function(a,b){var c=E1.e(b);var d=a[c];if(d&&d.length>0){var e=[];for(var f=2;f<arguments.length;f++){e.push(arguments[f])}for(var f=0;f<d.length;f++){var g=d[f];if(g){try{g.apply(this,e)}catch(h){L2.a(h+"\n"+a.getClassName()+" "+b+"\n"+g,"Event.trigger() exception")}}}}};
E1.e=function(a){return"_e__"+a};
E1.f=function(a,b,c){if(D.l.type==3&&b=="dblclick"){a["on"+b]=c;return}if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent("on"+b,c)}else{a["on"+b]=c}};
E1.g=function(a,b,c){if(a.removeEventListener){a.removeEventListener(b,c,false)}else if(a.detachEvent){a.detachEvent("on"+b,c)}else{a["on"+b]=null}};
A("Event",E1);
A("SEvent",E1);
C(E1,"addListener",E1.a);
C(E1,"removeListener",E1.b);
C(E1,"clearListeners",E1.c);
C(E1,"trigger",E1.d);
C(E1,"addBuiltInListener",E1.f);
C(E1,"removeBuiltInListener",E1.g);

function F1()
{
var _c,_d="",_e="",_a="", _b="";
this.setLinkType=function(a){if(a=="Disperse"||a=="Open"||a!="Close"){_d=a}};
this.setRadius=function(a){_e=a};
this.setFeatureDescAsCoordType=function(a,b){var sep="",c="";if(a==null||b==null||typeof a!="object"||a.length<1){return}_c="Coord";for(var i=0;i<a.length;i++){c+=sep+a[i].x+" "+a[i].y;sep=",";}_b=c+":"+b};
this.setFeatureDescAsNameType=function(keyWord,layerNames){var sep="",layerString="";if(layerNames==null||keyWord==null||typeof layerNames!="object"||layerNames.length<1){return}if(keyWord==""){return}_c="Name";for(var i=0;i<layerNames.length;i++){layerString+=sep+layerNames[i];sep=",";}_b=keyWord+":"+layerString};
this.setFeatureDescAsFidType=function(layerName, fids, isAppend){var sep="",fidString="";if(layerName==null||fids==null||typeof fids!="object"||fids.length<1){return}if(layerName==""){return}_c="FID";for(var i=0;i<fids.length;i++){fidString+=sep+fids[i];sep=",";}if(isAppend){if(_c!="FID"){_b="";}if(_b==""||_b==null){sep="";_b="";}else{sep="::";}_b+=sep+layerName+":"+fidString;}else{_b=layerName+":"+fidString}};
this.setFeatureDescAsUidType=function(uids){var sep="",uidString="";if(uids==null||typeof uids!="object"||uids.length<1){return}_c="UID";for(var i=0;i<uids.length;i++){uidString+=sep+uids[i];sep=",";}_b=uidString;};this.getFeatureDescType=function(){_a=_c+","+_d+","+_e;return _a;};
this.getFeatureDesc=function(){return _b};
this.getRadius=function(){return _e}
}
A("FeatureDesc",F1);

function F2(a,b,c,d,e,f,g,h,i,j){var th=this;th.id=a;th.caption=b;th.type=c;th.points=d;th.bounds=e;th.style=f;th.label=g;th.detail=h;th.segments=i;th.xml=j};
F2.a=function(a){var bd=new B1(),b,c,d,e,q,r,t,v;b=X(a,"id");c=X(a,"caption");d=X(a,"type");e=Aa(a,"points");if(e.length==0) e=Aa(a,"Points");var s=[];if(e.length>0){var e0=e[0];e=X(e0,"value");t=X(e0,"type");v=X(e0,"in");if(!e){e=$j(e0)}var p=e.split("#");var n=[];for(q=0;q<p.length;q++){var len=0,ic=t=="C";if(ic)r=$r(p[q]);else r=p[q].split(",");len=ic?r.length:r.length/2;var tn=[];for(var m=0;m<len;m++){var tx=ic?r[m][0]:r[m*2],ty=ic?r[m][1]:r[m*2+1];if(tx&&ty){tx=parseFloat(tx);ty=parseFloat(ty);var tp=new P4(tx,ty);n.push(tp);tn.push(tp);if(bd.isNull()){bd.minX=tx;bd.minY=ty;bd.maxX=tx;bd.maxY=ty}bd.extend(tp)}}s.push(tn);}e=n}var f=Aa(a,"bound");if(f.length>0){f=X(f[0],"value");if(!f){f=$j(f[0])}var fb=f.split(",");f=new B1();f.minX=parseFloat(fb[0]);f.minY=parseFloat(fb[1]);f.maxX=parseFloat(fb[2]);f.maxY=parseFloat(fb[3])}else{f=Aa(a,"bounds");if(f.length==0) f=Aa(a,"Bounds");if(f.length>0){var fb=f[0];f=new B1();f.minX=parseFloat(X(fb,"minx"));f.minY=parseFloat(X(fb,"miny"));f.maxX=parseFloat(X(fb,"maxx"));f.maxY=parseFloat(X(fb,"maxy"))}}var g=Aa(a,"style");if(g.length==0) g=Aa(a,"Style");if(g.length>0){var h=X(g[0],"id");if(h=="custom"){g=S4.loadFromXML(g[0])}else{g=new S4(h,d)}}var i=Aa(a,"label");if(i.length==0) i=Aa(a,"Label");if(i.length>0){i=$g(i[0])}var j=Aa(a,"detail");if(j.length==0) j=Aa(a,"Detail");var k,l,w,h,u,src;if(j.length>0){l=j[0].firstChild;src=X(j[0],"src");w=X(j[0],"width");h=X(j[0],"height");u=X(j[0],"infowin");k={"href":X(j[0],"href"),"content":!l?"":l.nodeValue,"src":(!src?"":src),"width":(!w?"251":w),"height":(!h?"142":h),"infowin":(!u?"false":u)}}else{k={"href":"","content":"","src":"","infowin":"false"}}if(!f||!f.maxX) f=bd;var z=new F2(b,c,d,e,f,g,i,k,s,a);z.cpid=X(a,"cpid");z.dataid=X(a,"dataid");if(v){v=v.split("#");l=[];for(q=0;q<v.length;q++){l.push($s(v[q]));}z.levels=l;}return z};
var F2p=F2.prototype;
F2p.clone=function(){var b=this;var c=new F2();c.id=b.id;c.caption=b.caption;c.type=b.type;c.points=b.points;c.bounds=b.bounds;c.style=b.style;c.label=b.label;c.detail=b.detail;c.segments=b.segments;c.xml=b.xml;return c;};
F2p.objectToXML=function(){var b,c;b=this.type=="S"?[this.points]:this.segments;c=F2.createDom(this.id,this.caption,this.type,b,this.bounds,this.style,this.label,this.detail);this.xml=c;};
F2.createDom=function(a,b,c,d,e,f,g,h){var k='<?xml version="1.0" encoding="GB2312"?><Feature xmlns:v="urn:schemas-microsoft-com:vml"/>';var l=$c(k);var m,n,p="";m=Aa(l,"Feature")[0];Y(m,"id",a);Y(m,"caption",b);Y(m,"type",c);n=E("Points",m);for(var i=0,j="";i<d.length;i++){p+=j+d[i].join(",");j="#"}G(n,l.createTextNode(p));if(e){n=E("Bounds",m);Y(n,"minx",e.minX);Y(n,"miny",e.minY);Y(n,"maxx",e.maxX);Y(n,"maxy",e.maxY);}n=E("Style",m);Y(n,"id",f.id);G(m,n);n=E("Label",m);Y(n,"on",g.on);Y(n,"style",g.style);if(g.position){Y(n,"position",g.position)}n=E("Detail",m);if(h.href){Y(n,"href",h.href)}if(h.src){Y(n,"src",h.src)}if(h.width){Y(n,"width",h.width)}if(h.height){Y(n,"height",h.height)}if(h.infowin){Y(n,"infowin",h.infowin)}G(n,l.createComment(!h.content?"":h.content));return m;};
F2p.getIconClass=function(){var f,g,h,i,j;if(this.type=="S"){f=this.style.getObject();g=(!f.img[0]?f.img:f.img[0]);h=g.iconclass;h=(!h?"default":h);i=I1.get(h);i.width=g.width;i.height=g.height;if(h=="default"){j=g.pointcoord;if(j) j=j.split(",");i.pointCoord={"x":(!j?g.width/2:j[0]),"y":(!j?g.height/2:j[1])};}}else{i=I1.get("noicon")}return i};
F2p.loadFromXML=function(a){var b=F2.a(a),t=this;t.id=b.id;t.caption=b.caption;t.type=b.type;t.points=b.points;t.bounds=b.bounds;t.style=b.style;t.label=b.label;t.detail=b.detail;t.segments=b.segments;t.xml=b.xml};
F2.loadFromJson=function(a)	//(json)
{
	var b,d,e,f,g=[],i,o,q,r,s=[],u,v;
	d=a.Bounds;
	if(d) b=new B1(d.minx,d.miny,d.maxx,d.maxy);
	d=a.Points;
	if(d)
	{
		e=d.txt.split("#");
		f=d.type=="C";
		v=d.levels;
		for(i=0;i<e.length;i++)
		{
			var j,k=0,l=0,m,n=[],x,y,p;
			if(f)m=$r(e[i]);
			else m=e[i].split(",");
			l=f?m.length:m.length/2;
			for(j=0;j<l;j++)
			{
				x=f?m[j][0]:m[j*2];
				y=f?m[j][1]:m[j*2+1];
				if(x!=null&&y!=null)
				{
					x=parseFloat(x);
					y=parseFloat(y);
					p=new P4(x,y);
					g.push(p);
					n.push(p);
					if(!b){b=new Bounds(x,y,x,y);k=1}
					if(k) b.extend(p)
				}
			}
			s.push(n);
		}
	}
	d=a.Style;
	o=new S4(!d?"S01":d.id,a.type);	
	d=a.Label;
	q=!d?{on:"false",style:"F24"}:d;	
	d=a.Detail;
	d=!d?{}:d;
	r={"href":!d.href?"":d.href,"content":!d.content?"":d.content,"src":!d.src?"":d.src,"width":d.width==null?251:d.width,"height":d.height==null?142:d.height,"infowin":d.infowin};
	u=new FeatureNode(a.id,a.caption,a.type,g,b,o,q,r,s,{});
	u.cpid=a.cpid;
	u.dataid=a.dataid;
	u.catalogid=a.catalogid;
	u.clustering=a.clustering;
	u.level=a.level;
	if(v)
	{
		v=v.split("#");
		d=[];
		for(i=0;i<v.length;i++)
		{
			d.push($s(v[i]));
		}
		u.levels=d;
	}
	return u
};

A("FeatureNode",F2);
C(F2,"loadFromXML",F2.a);

function G1(a){this.shape=null;this.type=null;this.panel=(a?a:window.document.body);}
var G1p=G1.prototype;
G1p.drawLine=function(a,b,c,d)
{
	var t="DRAWLINE";
	if(this.type!=t){this.clear();}
	if(D.l.type==1)
	{
		if(!this.shape)
		{
			var f,g,h,i;
			f=E("v:line");
			f.unselectable="on";
			f.filled=false;
			Q(f);
			h=E("v:stroke",f);
			h.joinstyle="round";
			h.endcap="round";
			h.opacity=0.75;
			h.color="blue";
			h.weight=I(2);
			i=E("DIV",this.panel);
			Q(i);
			G(i,f);
			i.v=f;
			this.shape=i;
		}
		K(this.shape,a);
		L(this.shape,b);
		this.shape.v.from="0,0";
		this.shape.v.to=(c-a)+","+(d-b);
	}
	else
	{
		var g,h,k,l,m=this.shape;
		if(!m)
		{
			m=Ai("svg",this.panel);
			Q(m);
			g=Ai("line",m);
			Y(g,"stroke","#0000ff");
			Y(g,"stroke-width","2");
			Y(g,"stroke-opacity","0.7");
			m._e=g;
			this.shape=m;
		}
		g=m._e;
		k=V(a,c);
		l=V(b,d);	
		K(m,k-5);
		L(m,l-5);
		Y(m,"width",I(W(c-a)+10));
		Y(m,"height",I(W(d-b)+10));
		Y(g,"x1",a-k+5);
		Y(g,"y1",b-l+5);
		Y(g,"x2",c-k+5);
		Y(g,"y2",d-l+5)
	}
	this.type=t;
	return this.shape
};
G1p.drawPolyline=function(a,b,c){var t="DRAWPOLYLINE";if(this.type!=t){this.clear();}var itv=screen.updateInterval||0;screen.updateInterval=5000;if(D.l.type==1){if(!this.shape){var f=E("v:shape",this.panel,new P4(0,0),new S1(1,1));f.unselectable="on";f.fill=false;f.filled=false;f.coordsize="1 1";var h=E("v:stroke",f);h.joinstyle="round";h.endcap="round";h.opacity=0.75;h.color="blue";h.weight=I(2);this.shape=f;}K(this.shape,a[0]);L(this.shape,b[0]);var g=a[0]+" "+b[0];this.shape.coordorigin=g;var n=[];for(var m=0;m<c;m++){if(m==0){n.push("m");n.push(a[m]);n.push(b[m]);n.push("l")}n.push(a[m]);n.push(b[m])}n.push("e");this.shape.path=n.join(" ")}screen.updateInterval=itv;this.type=t;return this.shape};
G1p.drawRect=function(a,b,c,d){var t="DRAWRECT";if(this.type!=t){this.clear();}if(!this.shape){var e=new Image(1,1);e.src=D.e+"/images/pixel.gif";this.shape=E("span",this.panel);Q(this.shape);this.shape.style.border="1px solid #0000ff";G(this.shape,e);}K(this.shape,a);L(this.shape,b);M(this.shape,c);N(this.shape,d);this.type=t;return this.shape};
G1p.drawPolygon=function(a,b,c){var t="DRAWPOLYGON";if(this.type!=t){this.clear();}var itv=screen.updateInterval||0;screen.updateInterval=5000;if(D.l.type==1){if(!this.shape){var f=E("v:shape",this.panel,new P4(0,0),new S1(1,1));f.unselectable="on";f.filled=false;f.coordsize="1 1";var h=E("v:stroke",f);h.joinstyle="round";h.endcap="round";h.opacity=0.75;h.color="blue";h.weight=I(2);this.shape=f;}K(this.shape,a[0]);L(this.shape,b[0]);var g=a[0]+" "+b[0];this.shape.coordorigin=g;var n=[];for(var m=0;m<c;m++){if(m==0){n.push("m");n.push(a[m]);n.push(b[m]);n.push("l")}n.push(a[m]);n.push(b[m])}n.push("x");n.push("e");this.shape.path=n.join(" ")}screen.updateInterval=itv;this.type=t;return this.shape};
G1p.fillPolygon=function(a,b,c){var t="FILLPOLYGON";if(this.type!=t){this.clear();}var itv=screen.updateInterval||0;screen.updateInterval=5000;if(D.l.type==1){if(!this.shape){var f=E("v:shape",this.panel,new P4(0,0),new S1(1,1));f.unselectable="on";f.filled=true;f.coordsize="1 1";var h=E("v:stroke",f);h.joinstyle="round";h.endcap="round";h.opacity=0.75;h.color="blue";h.weight=I(2);var k=E("v:fill",f);k.color="white";k.opacity="50%";this.shape=f;}K(this.shape,a[0]);L(this.shape,b[0]);var g=a[0]+" "+b[0];this.shape.coordorigin=g;var n=[];for(var m=0;m<c;m++){if(m==0){n.push("m");n.push(a[m]);n.push(b[m]);n.push("l")}n.push(a[m]);n.push(b[m])}n.push("x");n.push("e");this.shape.path=n.join(" ")}screen.updateInterval=itv;this.type=t;return this.shape};
G1p.clear=function(){if(this.shape){Ag(this.panel,this.shape);this.shape=null}};
A("Graphics",G1);

function H1()
{
var _a=E("span");
this.add=function(content){var tmpObj;if(content==null){return;}if(typeof content=="object"){G(_a,content);}else{tmpObj=E("span");tmpObj.innerHTML=content;G(_a,tmpObj);}}
this.getHtmlElement=function(){return _a;}
}
A("HtmlContainer",H1);
function I1(a,b,c,d,e,f,g,h,i,j){var th=this;th.name=a;th.width=b;th.height=c;th.pointCoord=d;th.infoTipCoord=e;th.shadowTipCoord=f;th.shadowURL=g;th.shadowWidth=h;th.imageMapArray=i||[];th.mask=j;if(name=="default"||name=="null"||name==null){th.imageMapArray=[0,0,b,0,b,c,0,c]}}
I1.prototype.translateImageMapArray=function(a,b){var c=[];var d=this.imageMapArray;for(var e=0;e<d.length;e+=2){c.push(d[e]+a);c.push(d[e+1]+b)}return c};
I1.classes={};
I1.classNames=[];
I1.getPadding=function(){var a={"top":0,"left":0,"bottom":0,"right":0};for(var b=0;b<this.classNames.length;++b){var c=this.classes[this.classNames[b]];a.top=U(a.top,c.pointCoord.y);a.bottom=U(a.bottom,c.height-c.pointCoord.y);a.left=U(a.left,c.pointCoord.x);a.right=U(a.right,c.width-c.pointCoord.x)}return a};
I1.load=function(a){I1.classes[a.name]=a;I1.classNames.push(a.name)};
I1.get=function(a){return I1.classes[a]};
I1.load(new I1("pushpin2",20,20,new P4(10,19),new P4(10,1),new P4(0,0),D.e+"/images/shadow51.png",37,[10,18,3,11,5,0,13,0,15,11]));
I1.load(new I1("noicon",0,0,new P4(0,0),new P4(0,0),new P4(0,0),null,0,null));
I1.load(new I1("default",16,16,new P4(8,8),new P4(8,0),new P4(0,0),null,0,null));
A("IconClass",I1);

function I2(a){var b;if(typeof(a)=="object"){b=a.id}else{b=a}this.id=b}
I2.prototype.continueWith=function(a,b){var c=$3(this.id);if(!c){c=$e(this.id)}var f=function(){b(f)};E1.f(c,"load",f);if(a){this.setTimeout(this.loadWebPage,1,c,a)}};
I2.prototype.loadWebPage=function(a,b){if(D.l.type==4&&D.l.version==7){a.src=b}else{var e=$f(a);e.location.replace(b)}};
A("IframeSender",I2);

function I3(){};
I3.a=function(a,b,c,d,e,f,g,h,i){var l;if(!i){l=E("img");if(a)l.src=a}else{l=i(a,g)}if(b&&c){M(l,b);N(l,c);l.width=b;l.height=c}if(e||(d||(e==0||d==0))){Q(l);K(l,d);L(l,e)}if(f||f==0){Ad(l,f)}if(D.l.type==1){l.unselectable="on";l.onselectstart=$9}else{l.style.MozUserSelect="none"}l.style.border="0";l.oncontextmenu=$9;if(h){$4(l,h)}return l};
A("Img",I3);
C(I3,"create",I3.a);

function L1(){};
L1.create=function(a,b,c,d,e,f,g,h){return I3.a(a,b,c,d,e,f,g,h,L1.createElement)};
L1.createElement=function(a,b){var d;if(D.l.type==1){d=E("div");Aj(d,a,b)}else{d=E("img");d.src=a}return d};
L1.b=function(a,b,c,d,e){var f=E("div",null,new P4(b,a),new S1(c,d));if(e) Ad(f,e);return f};
A("Layer",L1);
C(L1,"createDiv",L1.b);

function L2(){}
L2.gid=D.i();
L2.a=function(a,b){var c=L2.debug;if(!c){c=self.location.href;c=c.substring(c.indexOf("?")+1);L2.debug=c.indexOf("debug=go2maplsp")>-1?1:-1;}if(c==1){var e="textAreaDebug";var f=$3(e);if(!f){f=E("textarea");f.id=e;f.style.width="90%";N(f,"300");g=E("input");g.type="button";g.value="clear debug info";g.onclick=function(){f.value=""};G(document.body,g);G(document.body,f);}if(!b) b="information";var h=new Date();f.value+=h.toGMTString()+" "+h.getMilliseconds()+"ms->"+b+"\n"+a+"\n\n"}};
L2.gid=D.i();
L2.b=function(){var a=arguments,u=D.i,c="img"+u(),f,g,h,k="",s="SMAPUVID=",v="YYID=",w="",b=Log.site,d,e=Log.refer;if(a.length==0){return;}f="user="+L2.gid;with(document){if(cookie.indexOf(s)<0)cookie=s+u()+";path=/;expires=Tue, 12-Jul-2088 00:00:00 GMT";k=cookie.match(/SMAPUVID=([^;]*)/g);if(k&&k[0])k=k[0].replace(/SMAPUVID=/g,"");if(cookie.indexOf(v)>-1){w=cookie.match(/YYID=([^;]*)/g);w=w[0].replace(/YYID=/g,"")}g="&&referrer="+(!e?"":e+"||")+referrer.replace(/(&&)+/,"&")+"&&r="+u()}f+="&&uvid="+k+(!w?"":"&&yid="+w);for(var i=0;i<a.length;i++){if(a[i]){f+="&&"+a[i];d=/^type=(map|request)$/gi.test(a[i])}}if(Log.isApp&&d) return;h=(!b?D.a:b)+"?"+f+g;window.setTimeout("L2.c('"+c+"','"+h+"')",10);L2.a(h,"sending log")};
L2.c=function(a,b){var e=E("img");e.id=a;O(e);M(e,1);N(e,1);G(document.body,e);e.onerror=function(){Ag(document.body,e)};e.src=b;};
A("Log",L2);
A("L2",L2);
C(L2,"write",L2.a);
C(L2,"send",L2.b);

function M1(a,b,c,d,e,f){var th=this;th.id="MAP_"+D.i();th._e=th.eventHandler;th.a=th.container=a;th.b=f;th.c=b;th.zoomLevel=0;th.e=null;th.f=false;th.g=new S1(0,0);th.h=new S1(0,0);th.i=new S1(0,0);th.j=new S1(0,0);th.k=new P4(0.5,0.5);th.l=new P4(0.5,0.5);th.m=new P4(0,0);th.features=[];th.p=new P1();th.a.style.overflow="hidden";if(!c||!d){c=th.a.offsetWidth;d=th.a.offsetHeight}th.viewSize=new S1(c,d);E1.f(window,"blur",th._e("onWindowBlur"));th.div=L1.b(0,0,0,0,0);th.div2=L1.b(0,0,0,0,0);
	th.mask=L1.b(0,0,c,d,2000);
	th.mask.id=th.id+"MASKLAYER";
	O(th.mask);
	E1.f(th.div,D.l.type==2?"DOMMouseScroll":"mousewheel",th._e("onMW"));
	th.q2=L1.b(0,0,0,0,1);
	th.oL=L1.b(0,0,0,0,2);
	th.oL2=L1.b(0,0,0,0,3);
	th.oL2.name="DIVOVERLAY";
	th.q=L1.b(0,0,0,0,5);
	th.panel=L1.b(0,0,0,0,6);
	G(th.div,th.q2);
	G(th.div,th.oL);
	G(th.div,th.mask);
	G(th.div,th.q);
	G(th.div,th.oL2);
	G(th.div,th.panel);
	G(th.a,th.div2);
	G(th.a,th.div);
	if(D.l.type==2)
	{
		E1.f(th.oL,"DOMMouseScroll",function(a){E1.d(th,"mousewheel",a);$2(a||event)});
		E1.f(th.oL2,"DOMMouseScroll",function(a){E1.d(th,"mousewheel",a);$2(a||event)});
	}
	th.a.unselectable="on";
	th.a.oncontextmenu=$9;
	th.cursorTip=L1.b(0,0,0,0,20000);
	var cts=th.cursorTip.style;
	cts.width="auto";
	cts.height="auto";
	cts.border="1px solid #ccc";
	cts.backgroundColor="#FFFFCC";
	cts.whiteSpace="nowrap";
	O(th.cursorTip);
	G(th.div,th.cursorTip);
	th.r=new P3(th.div,th.panel)
	E1.a(th.r,"drawstart",th._e("onDrawStart"));
	E1.a(th.r,"drawend",th._e("onDrawEnd"));
	th.s=new D3(th.div,0,0);
	E1.a(th.s,"drag",th._e("onDrag"));
	E1.a(th.s,"dragend",th._e("onDragEnd"));
	E1.a(th.s,"dragstart",th._e("onDragStart"));
	E1.a(th.s,"click",th._e("onClick"));
	E1.a(th.s,"mousedown",th._e("onMD"));
	E1.a(th.s,"dblclick",th._e("onDbC"));
	E1.f(window,"load",th._e("onResize"));
	E1.f(th.div,"contextmenu",th._e("onContextMenu"));
	E1.f(th.div,"mousemove",th._e("onMv"));
	E1.f(th.div,"mouseout",th._e("onMt"));
	E1.f(th.oL2,"mousemove",th._e("onOL2Mv"));
	E1.f(th.oL2,"mouseover",function(a){a=a||event;E1.d(th,"overlaymouseover",a)});
	E1.f(th.oL2,"mouseout",function(a){a=a||event;E1.d(th,"overlaymouseout",a)});
	E1.f(th.oL2,"click",function(a){a=a||event;E1.d(th,"overlayclick",a)});
	if(f){th.s.disable()}
	th.bv();
	th.bu();
	th.bw();
	E1.a(th,"moveend",th._e("checkAndResetState"));
	E1.a(th,"moveend",th._e("bm"));
	E1.a(th,"moveend",th._e("updateScale"));
	E1.a(th,"zoom",th._e("updateScale"));
	E1.a(th,"switchmapspec",th._e("updateScale"));
}
var M1p=M1.prototype;
M1p.t=function(){return this.e!=null};
M1p.u=function(v,w,z,q)
{
	while(v.length>this.j.width)
	{
		var a=v.pop();
		for(var b=0;b<a.length;b++)
		{
			Ag(w,a[b]);
		}
	}
	for(var b=v.length;b<this.j.width;b++)
	{
		v.push([]);
	}
	for(var b=0;b<v.length;b++)
	{
		while(v[b].length>this.j.height){var c=v[b].pop();Ag(w,c);}
		for(var d=v[b].length;d<this.j.height;d++)
		{
			var c,e=this.spec.f.width,f=this.spec.f.height,g;
			c=I3.a(null,e,f,0,0,0);
			if(D.l.type==1&&D.l.isLowIE7()) c.galleryImg="no";
			if(w!=this.div)
			{
				if(D.l.type==1&&D.l.isLowIE7())
				{
					g=L1.b(0,0,e,f,0);
					G(g,c);
					O(c);
					g.img=c;
					c=g
				}
				c._overlay=true;
			}
			else c.name="MAPTILEIMAGE";
			Q(c);
			v[b].push(c);
			G(w,c);
			this.ag(c,b,d,z,q);
		}
	}
};
M1p.w=function(v,w){if(v){for(var a=0;a<v.length;a++){if(v[a]){for(var b=0;b<v[a].length;b++){Ag(w,v[a][b]);}}}}};
M1p.x=function(a)
{
	var t=this;t.fTMTkt=T1.create("fTMTkt");
	t.w(t.v2,t.oL);
	t.w(t.v3,t.oL2);
	t.v2=[];
	t.v3=[];
	if(!a){t.w(t.v,t.div);t.v=[];t.af();t.u(t.v,t.div,t.isHybrid?D.g[1]:D.g[0],1)}
	if(t.isHybrid&&t.isHbLbl)t.u(t.v2,t.oL,D.g[2])
	if(t.isOverLay)t.u(t.v3,t.oL2,D.g[3])
};
M1p.y=function(a){if(!a)a=new P4(0,0);if(this.z){a.x=this.z.x;a.y=this.z.y}else{var b=null;if(this.aa&&this.l.equals(this.k)){b=this.spec.q(this.aa.y,this.aa.x,this.zoomLevel)}if(b&&W(b.x-this.m.x)<2&&W(b.y-this.m.y)<2){a.x=this.aa.x;a.y=this.aa.y}else{var c=this.spec.r(this.m.x,this.m.y,this.zoomLevel);a.x=c.x;a.y=c.y}}return a};
M1p.ab=function(a){if(!a){a=new B1(0,0,0,0)}var b=this.m.x;var c=this.m.y;var d=this.viewSize.width;var e=this.viewSize.height;var f=this.l.x;var g=this.l.y;a.minX=b-d*f;a.minY=c-e*g;a.maxX=b+d*(1-f);a.maxY=c+e*(1-g);return a};
M1p.ac=function(a){a=this.ab(a);var b=this.spec.r(a.minX,a.minY,this.zoomLevel);var c=this.spec.r(a.maxX,a.maxY,this.zoomLevel);a.minX=b.x;a.minY=c.y;a.maxX=c.x;a.maxY=b.y;return a};
M1p.ad=function(a,b,c){if(!c)c=new P4(0,0);var d,e,f,g,h,i;f=this.e;g=this.spec.f;h=this.g;i=this.h;d=a-f.x*g.width-h.width+i.width*g.width;e=b-f.y*g.height-h.height+i.height*g.height;c.x=d;c.y=e;return c};
M1p.ae=function(a,b,c){if(!c)c=new P4(0,0);var d,e,f,g;f=this.e;g=this.spec.f;h=this.g;i=this.h;d=f.x*g.width+h.width-i.width*g.width+a;e=f.y*g.height+h.height-i.height*g.height+b;c.x=d;c.y=e;return c};
M1p.af=function(){var a=T(this.viewSize.width/this.spec.f.width)+2;var b=T(this.viewSize.height/this.spec.f.height)+2;this.j.width=a;this.j.height=b;var c=S((this.j.width*this.spec.f.width-this.viewSize.width)/2);var d=S((this.j.height*this.spec.f.height-this.viewSize.height)/2);this.g.width=c;this.g.height=d};
M1p.ag=function(a,b,c,z,v)
{
	var d,e,f,g,th=this,u=D.e+"/images/pixel.gif",s=!a.img?a:a.img;
	d=(th.h.width+b)*th.spec.f.width;
	e=(th.h.height+c)*th.spec.f.height;
	f=-th.g.width+d;
	g=-th.g.height+e;
	if(a.tileLeft!=f||a.tileTop!=g)
	{
		K(a,f);
		L(a,g);
		a.tileLeft=f;
		a.tileTop=g
	}
	if(!th.t()){if(s.src!=u)s.src=u}
	else
	{
		var h,i,j,k,k2,m,q=th.viewSize.width,r=th.viewSize.height;
		h=th.e.x+b;
		i=th.e.y+c;
		j=th.zoomLevel;
		k=th.spec.t(h,i,j,z);	
		k2=th.spec.t(h,i,j,D.g[0]);
		if(s.src!=k)
		{
			var l,l2;
			l=th.spec.h;
			l2=th.spec.i;
			s.src=u;
			var m,n=0,o=0;
			var p=th.fTMTkt.isValid();
			var t=D.l.type==1;
			if(p)
			{
				m=th.tmpDivOffset;
				if(!m)
				{
					m=$6(th.div,th.a);
					th.tmpDivOffset=m;
				}
				n=m.x+f;
				o=m.y+g;
			}
			if(!th.debug)th.debug=window.location.href.indexOf("debug=go2maplsp")>-1?1:-1;
			s.onload=function()
			{
				var t2=this,t3=a.priority,t5;
				t3=!t3?100:t3*100;
				a.isLoaded=1;
				th.setTimeout(th.onTileLoaded,100,a);
				if(!v&&t2.src!=u)
				{
					a.T=th.setTimeout(function(){Ac(a);if(a.img&&t)Aj(a,t2.src)},500-V(U(50,t3),500));
					if(a.img&&t)a.src=t2.src
				}
			};
			if(th.debug==-1)
			{
				s.onerror=function(){if(!a.img&&!a._overlay)this.src=(this.src==k2?l:l2);else this.src=u}
			}
			else{s.alt=k.replace(/(http:\/\/)/g,"").replace(/(\/)/,"\n");a.style.border="1px solid #0000ff";}
			if(q<500||r<500||!p||(n>-th.spec.f.width&&o>-th.spec.f.height&&n<q&&o<r))
			{
				if(a.img&&t)a.style["filter"]="";
				window.setTimeout(function()
				{
					a.isLoaded=-1;
					if(a.T) window.clearTimeout(a.T);
					th.isLoading=true;s.src=s._src=k
				},1);
				L2.a("Loading RMP:"+k)
			}
		}
	}
};
M1p.onTileLoaded=function(a){var th=this,b=th.v,i,j;for(i=0;i<b.length;i++){for(j=0;j<b[i].length;j++){if(b[i][j].isLoaded==-1){E1.d(th,"loading");return}}}if(i==b.length&&th.isLoading) {th.isLoading=false;E1.d(th,"loaded")}};
M1p.onDrag=function(){if(!this.t()) return;this.onMove();this.ai()};
M1p.onMove=function(){var a,b,c,t=this,d=t.div2;a=t.au(new S1(0,0));t.z=null;b=t.e.x*t.spec.f.width+S(t.viewSize.width*t.l.x)+t.g.width-a.width;c=t.e.y*t.spec.f.height+S(t.viewSize.height*t.l.y)+t.g.height-a.height;t.m.x=b;t.m.y=c;if(!t.sp) {t.sp=new P4(d.offsetLeft,d.offsetTop);t.sc=new P4(b,c);}K(d,t.sp.x+t.sc.x-b);L(d,t.sp.y+t.sc.y-c);E1.d(t,"move")};
M1p.ai=function()
{
	var t=this,a=t.au(new S1(0,0)),v=[[t.v,t.isHybrid?D.g[1]:D.g[0],true,t.div],[t.v2,D.g[2],t.isHybrid&&t.isHbLbl,t.oL],[t.v3,D.g[3],t.isOverLay,t.oL2]];
	if(W(t.s.left)>10000000||W(t.s.top)>10000000)
	{
		t.cancelPan();
		t.as(t.m);
		return
	}
	while(a.width<-t.g.width/2)
	{
		t.ak(v);
		t.au(a)
	}
	while(a.width>t.g.width/2){t.aj(v);t.au(a)}
	while(a.height<-t.g.height/2){t.am(v);t.au(a)}
	while(a.height>t.g.height/2){t.al(v);t.au(a)}
	t.cc(v)
};
M1p.aj=function(v){var a,b,c,t=this;t.h.width--;t.e.x--;for(c=0;c<v.length;c++){if(!v[c][2]) continue;a=v[c][0].pop();if(a){v[c][0].unshift(a);for(b=0;b<a.length;b++){t.ag(a[b],0,b,v[c][1],t.div==v[c][3])}}}};
M1p.ak=function(v){var a,b,c,d,t=this;t.h.width++;t.e.x++;for(d=0;d<v.length;d++){if(!v[d][2]) continue;a=v[d][0].shift();v[d][0].push(a);b=v[d][0].length-1;for(c=0;c<a.length;c++){t.ag(a[c],b,c,v[d][1],t.div==v[d][3])}}};
M1p.al=function(v){var a,b,c,t=this;t.h.height--;t.e.y--;for(c=0;c<v.length;c++){if(!v[c][2]) continue;for(a=0;a<v[c][0].length;a++){b=v[c][0][a].pop();v[c][0][a].unshift(b);t.ag(b,a,0,v[c][1],t.div==v[c][3])}}};
M1p.am=function(v){var a,b,c,d,t=this;t.h.height++;t.e.y++;for(d=0;d<v.length;d++){if(!v[d][2]) continue;a=v[d][0][0].length-1;for(b=0;b<v[d][0].length;b++){c=v[d][0][b].shift();v[d][0][b].push(c);t.ag(c,b,a,v[d][1],t.div==v[d][3])}}};
M1p.onMW=function(a){E1.d(this,"mousewheel",a);return false};
M1p.onDragEnd=function(){E1.d(this,"moveend");E1.d(this,"dragend");L2.b("appid="+this.appId,"oprt=_mousePan","param="+this.y()+","+this.zoomLevel,"type=map")};
M1p.onDragStart=function(){E1.d(this,"movestart")};
M1p.onDrawStart=function(a,b){P(this.mask);};
M1p.onDrawEnd=function(a,b){O(this.mask);E1.d(this,"drawend",a,b)};
M1p.onDbC=function(a){if(!this.b){if(this.panTimer) window.clearTimeout(this.panTimer);var b,c,d;b=$a(a,this.a);c=S(this.viewSize.width/2)-b.x;d=S(this.viewSize.height/2)-b.y;this.panTimer=this.setTimeout(this.pan,500,c,d)}E1.d(this,"doubleclick",a);E1.d(this,"doubleclickpan",a);L2.b("appid="+this.appId,"oprt=_doubleClick","param="+this.y()+","+this.zoomLevel,"type=map")};
M1p.onClick=function(a){this.closeInfoWindow();if(window.focus) window.focus();E1.d(this,"click",a,this.getMcXYBySC(a),$a(a,this.container));};
M1p.onMD=function(a){E1.d(this,"mousedown",a)};
M1p.onContextMenu=function(a){var c=this.getMcXYBySC(a);E1.d(this,"contextmenu",a,c,$a(a,this.container))};
M1p.getMcXYBySC=function(a,b,c){var p,e;p=$a(a,this.div);e=this.sc2mc(new P4(!b?p.x:p.x+b,!c?p.y:p.y+c));return e};
M1p.sc2mc=function(a){var d,e;d=this.ae(a.x,a.y);e=this.spec.r(d.x,d.y,this.zoomLevel);return e};
M1p.mc2sc=function(a)
{
	var t=this,b=t.spec.q(a.y,a.x,t.zoomLevel);
	return t.ad(b.x,b.y);
};
M1p.onMv=function(a){var b,c;b=this.cursorTip;c=$a(a,this.div);b.style.display=(!b.innerHTML==""?"inline":"none");K(b,c.x+15);L(b,c.y-10);E1.d(this,"mousemove",c)};
M1p.onMt=function(a){O(this.cursorTip)};
M1p.an=function(v,z,q)
{
	if(v.length==0){return}this.tmpDivOffset=null;var a=[];for(var b=0;b<v.length;b++){for(var c=0;c<v[b].length;c++){f=v[b][c];f.coordX=b;f.coordY=c;var d=V(b,v.length-b-1);var e=V(c,v[b].length-c-1);if(d==0||e==0){f.priority=0}else{f.priority=d+e}a.push(f)}}a.sort(function(g,h){return h.priority-g.priority});for(var b=0;b<a.length;b++){var f=a[b];this.ag(f,f.coordX,f.coordY,z,q)}
};
M1p.pan=function(a,b){if(!this.t()) return;var c=Math.sqrt(a*a+b*b);var d=U(10,S(c/20));this.panSiner=new P2(d);this.panSiner.reset();this.i.width=a;this.i.height=b;this.panStart=new P4(this.s.left,this.s.top);E1.d(this,"movestart");this.doPan()};
M1p.doPan=function(){var a=this.panSiner.next();this.s.moveTo(this.panStart.x+this.i.width*a,this.panStart.y+this.i.height*a);this.onMove();if(this.panSiner.more()){this.panTimeout=this.setTimeout(function(){this.doPan()},10);this.ai()}else{this.panTimeout=null;E1.d(this,"moveend")}};
M1p.cancelPan=function(){if(this.panTimeout){clearTimeout(this.panTimeout);E1.d(this,"moveend")}};
M1p.ao=function(a){if(!this.t()) return;this.z=new P4(a.x,a.y);this.aa=this.z;this.k=new P4(this.l.x,this.l.y);var a=this.spec.q(this.z.y,this.z.x,this.zoomLevel);this.ap(a)};
M1p.ap=function(a){if(!this.t())return;var b=this.m.x-a.x;var c=this.m.y-a.y;if(b==0&&c==0){this.bm();return}if(W(b)<this.viewSize.width&&W(c)<this.viewSize.height&&this.f){this.pan(b,c);return}this.as(a)};
M1p.aq=function(a,b){var c;if(!this.t()) return;if(b!=this.zoomLevel){c=this.zoomLevel;this.zoomLevel=Ae(b)}this.ar(a);if(c!=null){E1.d(this,"zoom",c,this.zoomLevel)}};
M1p.ar=function(a){this.z=new P4(a.x,a.y);this.aa=this.z;this.k=new P4(this.l.x,this.l.y);var a=this.spec.q(this.z.y,this.z.x,this.zoomLevel);this.as(a)};
M1p.as=function(a)
{
	var t=this,b=t.m,c=b.x==a.x&&b.y==a.y;
	t.f=true;
	if(arguments[1]==null)
	{
		Ab(t.div2);
		O(t.oL);
		O(t.oL2);
		t.setTimeout(function(){P(t.oL);P(t.oL2)},1000)
	}
	t.at(a);
	t.an(t.v,t.isHybrid?D.g[1]:D.g[0]);
	if(t.isHybrid&&t.isHbLbl) t.setTimeout(t.an,100,t.v2,D.g[2]);
	if(t.isOverLay) t.setTimeout(t.an,100,t.v3,D.g[3]);
	t.bj();
	E1.d(t,"move");
	if(!c) E1.d(t,"moveend")
};
M1p.at=function(a){this.m.x=a.x;this.m.y=a.y;var b,c,d,e,f,g,h;b=new P4(R(this.viewSize.width*this.l.x),R(this.viewSize.height*this.l.y));c=this.m.x-b.x-this.g.width;d=this.m.y-b.y-this.g.height;e=S(c/this.spec.f.width);f=S(d/this.spec.f.height);g=e*this.spec.f.width-c;h=f*this.spec.f.height-d;if(g<-this.g.width/2){e++;g+=this.spec.f.width}else if(g>this.g.width/2){e--;g-=this.spec.f.width}if(h<-this.g.height/2){f++;h+=this.spec.f.height}else if(h>this.g.height/2){f--;h-=this.spec.f.height}if(!this.t()){this.e=new P4(e,f);}else{this.e.x=e;this.e.y=f}this.h.width=0;this.h.height=0;this.s.moveTo(g,h);};
M1p.onResize=function(a)
{
	var b,c,d,e,f,g,h,k,t=this;
	if(!t.t()) return;
	b=t.viewSize;
	c=b.width;
	d=b.height;
	e=t.mask.style;
	f=t.a;
	g=f.offsetWidth;
	h=f.offsetHeight;
	if(c!=g||d!=h)
	{
		c=(g==0?c:g);
		d=(h==0?d:h);
		b.width=c;
		b.height=d;
		t.af();
		t.u(t.v,t.div,t.isHybrid?D.g[1]:D.g[0],1);
		if(t.isHybrid&&t.isHbLbl)t.u(t.v2,t.oL,D.g[2]);
		if(t.isOverLay)t.u(t.v3,t.oL2,D.g[3]);
		t.as(t.m);
		E1.d(t,"resize")
	}
	e.width=I(c);
	e.height=I(d);
};
M1p.au=function(a){if(!a)a=new S1(0,0);a.width=this.s.left+this.h.width*this.spec.f.width;a.height=this.s.top+this.h.height*this.spec.f.height;return a};
M1p.av=function(a)
{
	if(this.spec==a)return;
	var b,c;
	if(a.sds)
	{
		b=new P4(parseFloat(a.sds.defaultCX),parseFloat(a.sds.defaultCY));
		c=a.x(Ae(a.sds.defaultLevel)-1)
	}
	var d=this.spec;
	var isSpecNull;
	if(!d)
	{
		isSpecNull=true;
		this.spec=a;
		d=a;
	}
	this.f=false;
	this.aw(a);
	if( isSpecNull||!d.f.equals(a.f) )
	{
		this.e=null;
		this.x()
	}
	if(c||c==0)
	{
		this.zoomLevel=c
	}
	var e=d.q(b.y,b.x,this.zoomLevel);
	this.at(e);
	E1.d(this,"switchmapspec",d,a)


};
M1p.aw=function(a){this.spec=a;this.a.style.backgroundColor=this.spec.g;this.div.style.backgroundColor=this.spec.g;if(this.mapTitle){if(this.spec.v){this.mapTitle.innerHTML=this.spec.v()}}};
M1p.zoomTo=function(a){if(!this.t()){return}if(a>=this.spec.o){a=this.spec.o-1}else if(a<0){a=0}if(a==this.zoomLevel){return}var b=this.zoomLevel;this.zoomLevel=Ae(a);var c;if(this.zoomLevel>b&&this.z){c=this.spec.q(this.z.y,this.z.x,this.zoomLevel)}else{c=this.spec.w(this.zoomLevel,b,this.m)}this.as(c,arguments[1]);E1.d(this,"zoom",b,this.zoomLevel)};
M1p.updateScale=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;if(this.mapScale){a=this.ab();b=(a.minY+a.maxY)>>1;c=new P4(a.minX+2,b);d=new P4(a.minX+82,b);c=this.spec.r(c.x,c.y,this.zoomLevel);d=this.spec.r(d.x,d.y,this.zoomLevel);e=new C1();f=e.distanceByMC(c,d);d=new P4(a.minX+122,b);d=this.spec.r(d.x,d.y,this.zoomLevel);g=e.distanceByMC(c,d);j=f/80;if(f>1000&&g>1000){i=true;f=f/1000;g=g/1000;}else{i=false}h=(f+g)>>1;k=Ae(h).toString().length-1;if(k>0){l=Math.pow(10,k);h=Ae(h/l)*l;if(f<h+l&&h+l<g){h=h+l}else if(f<h+5*l/10&&h+5*l/10<g){h=h+5*l/10}else if(f<h+2*l/10&&h+2*l/10<g){h=h+2*l/10}}if(i){i=unescape(!this._km?"%u516C%u91CC":this._km);m=Ae(h*1000/j)}else{i=unescape(!this._m?"%u7C73":this._m);m=Ae(h/j)}M(this.mapScale.w,m);this.mapScale.t.innerHTML=h+i;}};
M1p.checkAndResetState=function()
{
	var a=this.spec.p(this.m,this.zoomLevel,this.viewSize);
	if(!a.equals(this.m))
	{
		this.m.x=a.x;
		this.m.y=a.y;
		this.as(this.m)
	}
	var d=this.ab();
	var e=this.ad(d.minX,d.minY);
	K(this.mask,e.x);
	L(this.mask,e.y);
	this.sp=null;
	this.bj(true);
	L2.a(this.ac().toString()+" centerXY("+this.y().toString()+")","map view bounds and centerXY");
};
M1p.addPoint=function(a,b,c,d,e,f,g,h){if(a==null||b==null) return;if(!c) c="";if(!d) d=D.i();e=new S4(!e?"S01":e);if(!f) f={"on":"true","style":"Label01"};if(!g) g={};var k=new B1(a,b,a,b);var o=F2.createDom(d,c,"S",[[new P4(a,b)]],k,e,f,g);var p=F2.a(o);this.addFeature(p,h);return p;};
M1p.addLine=function(a,c,d,e,f,g,h){if(!a||!a.length) return;if(!c) c="";if(!d) d=D.i();e=new S4(!e?"L01":e);if(!f) f={"on":"true","style":"Label01"};if(!g) g={};var o=F2.createDom(d,c,"L",[a],null,e,f,g);var p=F2.a(o);this.addFeature(p,h);return p;};
M1p.addFeature=function(a,b){this.features.push(a);if(b){a.isFixed=true}this.ay(a);E1.d(this,"addfeature",a)};
M1p.ay=function(a)
{
	var t=this;
	function b(c)
	{
		if(c)
		{
			a.style=c;
			t.ay2(a)
		}
	};
	S3.loadStyle(a.style.id,b);
};
M1p.ay2=function(a){try{if(a.element) return;var b,c=this,d,e,h;switch(a.type){case "S":b=c.bf(a);c.bg(b,a);break;case "L":b=c.bk(a,c.q);break;case "R":b=c.bk(a,c.q2);break;}if(a.type=="S"){e=b.mouseTarget;E1.f(e,"click",function(f){$2(f);E1.d(c,"click",a)});E1.f(e,"mousedown",function(f){if(!f&&event){f=event}var g=f.button;if(g==2)E1.d(c,"rightclick",a,f);else E1.d(c,"leftdown",a,f)});E1.f(e,"mouseover",function(f){$2(f);E1.d(c,"mouseover",a)});E1.f(e,"mouseout",function(f){$2(f);E1.d(c,"mouseout",a)});e.name="POI_"+a.caption}else{h=D.l.type!=1?b._e:b;E1.f(h,"click",function(f){$2(f);E1.d(c,"click",a)});E1.f(h,"mousedown",function(f){if(!f&&event){f=event}var g=f.button;if(g==2){E1.d(c,"rightclick",a)}});E1.f(h,"mouseover",function(f){if(!f&&event){f=event}a.eventPt=$a(f,c.div);E1.trigger(c,"mouseover",a,f)});E1.f(b,"mouseout",function(f){if(!f&&event){f=event}a.eventPt=$a(f,c.div);E1.trigger(c,"mouseout",a,f)});h.name="POI_"+a.caption}a.element=b;var d=this.bh(a);a.element.label=d;E1.f(d,"click",function(f){$2(f);E1.d(c,"labelclick",a)});E1.f(d,"mouseover",function(f){$2(f);E1.d(c,"labelmouseover",a)});E1.f(d,"mouseout",function(f){$2(f);E1.d(c,"labelmouseout",a)});E1.f(d,"mousedown",function(f){$2(f)});this.bi(a);return b}catch(m){}};
M1p.setQueryArea=function(a){this.removeQueryArea();this.queryArea=a;var c=this.ay(a);};
M1p.removeQueryArea=function(){var b=this.queryArea;if(b){this.az(b)}this.queryArea=null};
M1p.removeFeature=function(a){var b=[];for(var c=0;c<this.features.length;c++){if(this.features[c]==a){this.az(a)}else{b.push(this.features[c])}}if(this.features.length!=b.length){this.features=b}};
M1p.az=function(a){var c,d,e=a.element;if(e){if(a.type=="S"){e.e()}else{Ag(e.parentNode,e)}d=e.label;if(d&&d.parentNode){Ag(d.parentNode,d)}e=d=c=a.element=null}};
M1p.clearAll=function(a){this.clearFeatures();this.removeQueryArea();E1.d(this,"clearall");L2.b("appid="+this.appId,"oprt=_clearAll","param=empty","type=map")};
M1p.hideFeatures=function(){var a=this.features.length;for(var i=0;i<a;i++){var b=this.features[i];if(b&&b.type=="S"&&b.element){b.element.hide()}}var c=this.queryArea;if(c&&c.type=="S"&&c.element){c.element.hide()}this.closeInfoWindow();E1.d(this,"hidefeatures")};
M1p.ba=function(){this.closeInfoWindow();O(this.q);O(this.cursorTip)};
M1p.bb=function(){P(this.q)};
M1p.bc=function(a,b,b2){var iwd=this.infoWindow;if(!iwd){iwd=this.infoWindow=new PopWin(this.q,5000,2000);E1.a(iwd,"closeclick",this.eventHandler("onInfoCloseClick"));E1.a(iwd,"mouseout",this.eventHandler("onIWMOut"));E1.a(iwd,"mouseover",this.eventHandler("onIWMOver"))}var c,d,e,f,g,h,i,j,k,p,r,clk,ft;e=a.points;p=(!a.infoWinPoint?e[e.length>>1]:a.infoWinPoint);c=this.spec.q(p.y,p.x,this.zoomLevel);d=this.ad(c.x,c.y);g=b.innerHTML.replace(/_amp_/g,"&");clk='onClick=window.open(this.href)';g=g.replace(/<a onClick=window.open\(this.href\)\s([^\>]*)\>/gi,'<a $1>');g=g.replace(/\<a\s([^\>]*)?\>/gi,'<a '+clk+' $1>');b.innerHTML=g;var oldf=iwd.feature;if(oldf){E1.d(this,"infowindowclose",oldf)}ft=this.activeSymbol;if(ft&&ft.type=="S"&&ft.element){ft.element.wink(false);}j=this;f=function(){r=a.element;if(!r) {window.setTimeout(f,200);return}if(r&&r.label)Ab(r.label);iwd.feature=a;iwd.caption.innerHTML=a.caption;iwd.offscreenArea.innerHTML="";iwd.offscreenArea.style.width=b.style.width;iwd.offscreenArea.style.height=b.style.height;G(iwd.offscreenArea,b);h=a.getIconClass();j.cancelPan();i=T1.create("infoWindowOffscreen");iwd.prepareOffscreen();if(i.isValid()){iwd.flipOffscreenAndSize();iwd.positionAt(d.x,d.y,h,j.viewSize,j.bn(p));iwd.show();if(!b2) j.bo();else j.ap(j.m);E1.d(j,"infowindowopen",iwd.feature)}};window.setTimeout(f,0)};
M1p.closeInfoWindow=function(){if(this.infoWindow&&this.infoWindow.isVisible()){this.infoWindow.hide();this.bm();E1.d(this,"infowindowclose",this.infoWindow.feature);this.infoWindow.feature=null}};
M1p.bd=function(){this.lastPageCenter=this.y();this.lastPageZoom=this.zoomLevel};
M1p.clearFeatures=function(){var a;var b=[];for(var c=0;c<this.features.length;c++){a=this.features[c];if(!a.isFixed){this.az(a)}else{b.push(this.features[c])}}if(this.features.length!=b.length){this.features=b}this.closeInfoWindow();E1.d(this,"clearfeatures")};
M1p.removeFeatures=function(){var a;for(var c=0;c<this.features.length;c++){a=this.features[c];this.removeFeature(a)}this.closeInfoWindow();E1.d(this,"removefeatures")};
//M1p.be=function(z){if(!z) z=this.features;for(var a=0;a<z.length;a++){var b=z[a];var c=this.ay(b);}};
M1.orderFunc=function(a,b){if(a.points[0].y>b.points[0].y)return-1;if(a.points[0].y<b.points[0].y)return 1;return 0};
var mapCount=0;
M1p.bf=function(a){var b,b2,b3,b4,c,c2;b=a.getIconClass();b2=a.style.getObject();b3=(!b2.img[0]?b2.img:b2.img[0]);b4=(!b2.img[1]?b2.img:b2.img[1]);c=I3.a((b3.src.indexOf("/")>-1?"":D.m)+b3.src,b.width,b.height,0,0,10,false);c2=I3.a((b4.src.indexOf("/")>-1?"":D.m)+b4.src,b4.width,b4.height,0,0,10,false,"noprint");var d,e,f,g,h,i;if(b.shadowURL){e=L1.create(b.shadowURL,b.shadowWidth,b.height,0,0,3,false,"noprint")}var l=null,m;if(b3.iconclass&&b3.iconclass!="default"){m=d=L1.create(b.mask||D.e+"/images/markerTransparent.png",b.width,b.height,0,0,3000,false,"noprint");if(D.l.type!=1){var s="map"+mapCount,t=E("area");mapCount++;l=E("map");Y(l,"name",s);Y(t,"shape","poly");Y(t,"alt","");Y(t,"coords",b.imageMapArray.join(","));Y(t,"href","javascript:void(0)");m=t;G(l,t);Y(d,"usemap","#"+s)}}else{m=d=I3.a(D.e+"/images/pixel.gif",b.width,b.height,0,0,3000);}$1(m,"pointer");var x=new M9(c,c2,d,e,l,m);x.width=b.width;x.height=b.height;if(i&&D.l.type!=2){x.a(i)}x.c(this.q);return x};
M1p.bg=function(a,b){var c,h,k,d,e,f,g;c=b.points[0];h=b.getIconClass();k=this.spec.k;if(!k.containsSegment(c,c)){c=new P4(parseFloat(this.spec.sds.defaultCX),parseFloat(this.spec.sds.defaultCY));}d=this.spec.q(c.y,c.x,this.zoomLevel);e=this.ad(d.x,d.y);f=e.x-h.pointCoord.x;g=e.y-h.pointCoord.y;a.b(f,g)};
M1p.bh=function(a,b){if(!a.label) return;if(!b) b=this.q;var c,d,e=$3("span_label_"+a.id),f,g,h=[];if(e&&e.texts)return e;c=a.caption;d=a.label.style;e=E("span",b);e.id="span_label_"+a.id;Q(e);e.style.fontSize=I(12);Ad(e,5);d=(!d?"Lable01":d);if(a.type!="R"){f=E("span",e);Q(f);g=Ah(c+" ");G(f,g);e.texts=[f];}else{f=E("span",e);Q(f);g=Ah(c);G(f,g);e.texts=[f];G(a.element,e);}if(c&&f)$4(f,d);f.name="LABEL_"+c;f.unselectable="on";if(a.label.on=="false"||a.type=="L")Ab(e);else Ac(e);return e};
M1p.bi=function(a){var b=a.getIconClass();if(a.element&&a.element.label){var c=a.element.label;var e=a.points;var f,g,k,l,m,n;switch(a.type){case "S":var d;if(a.label.position){d=a.label.position;d=d.trim();d=d.split(",");if(d[0]&&d[1]){e=[new P4(parseFloat(d[0]),parseFloat(d[1]))]}}if(!this.spec.k.containsSegment(e[0],e[0])){e[0]=new P4(parseFloat(this.spec.sds.defaultCX),parseFloat(this.spec.sds.defaultCY));}f=this.spec.q(e[0].y,e[0].x,this.zoomLevel);g=this.ad(f.x,f.y);K(c,g.x);L(c,g.y);if(!d){K(c.texts[0],b.width/2);L(c.texts[0],-10)}break;case "L":Ab(c);break;case "R":m=this.spec.q(a.bounds.maxY,a.bounds.maxX,this.zoomLevel);n=this.spec.q(a.bounds.minY,a.bounds.minX,this.zoomLevel);k=n.y-m.y;l=m.x-n.x;var p=12*a.caption.length;if(l>p){P(c);K(c,l>>1);L(c,k>>1);K(c.texts[0],0-p>>1);L(c.texts[0],-5);}else{O(c)}break;}}};
M1p.bj=function(d){for(var a=0;a<this.features.length;a++){var b=this.features[a];if(b.element){if(b.type=="S"){if(!d)this.bg(b.element,b)}else{this.bk(b,b.type=="R"?this.q2:this.q)}if(!d||b.type!="S")this.bi(b)}}var c=this.queryArea;if(c&&c.element){if(c.type=="S"){if(!d)this.bg(c.element,c)}else{this.bk(c,c.type=="R"?this.q2:this.q)}this.bi(c)}if(this.infoWindow&&!d){this.bl();}};
M1p.bl=function(){var f=this.infoWindow;if(!f||!f.isVisible()||!f.feature) return;if(!f.feature.element) {this.closeInfoWindow();return}var a,b,c;a=f.feature.points;a=a[a.length>>1];b=this.spec.q(a.y,a.x,this.zoomLevel);c=this.ad(b.x,b.y);f.positionAt(c.x,c.y,f.feature.getIconClass(),this.viewSize,this.bn(a))};
M1p.repositionFeature=function(b,c){var t=this,d;if(b&&b.element){if(c){c=c.length&&c.length>0?c:[c];d=c[0];b.points=c;b.segments=[c]}if(b.type=="S"){if(d) b.bounds=new B1(d.x,d.y,d.x,d.y);t.bg(b.element,b)}else{t.bk(b,b.type=="R"?t.q2:t.q)}t.bi(b);if(t.infoWindow) t.bl()}};
M1p.onInfoCloseClick=function(a){this.closeInfoWindow()};
M1p.onIWMOut=function(){E1.d(this,"mouseout",this.infoWindow.feature)};
M1p.onIWMOver=function(){E1.d(this,"mouseover",this.infoWindow.feature)};
M1p.bm=function(){var a,b,c;a=0.5;b=0.5;c=null;if(this.infoWindow&&(this.infoWindow.isVisible()&&this.infoWindow.feature)){var e,f,d;e=this.infoWindow.feature.points;f=e[e.length>>1];d=this.bn(f);if(d.x>=0&&(d.x<=1&&(d.y>=0&&d.y<=1))){a=d.x;b=d.y;c=new P4(f.x,f.y)}}this.z=(!c?this.y():c);if(a==this.l.x&&b==this.l.y){return}this.z=null;this.m.x-=R(this.viewSize.width*(this.l.x-a));this.m.y-=R(this.viewSize.height*(this.l.y-b));this.l.x=a;this.l.y=b;this.z=(!c?this.y():c);};
M1p.bn=function(a){var b=this.ac();var c=(a.x-b.minX)/(b.maxX-b.minX);var d=(b.maxY-a.y)/(b.maxY-b.minY);return new P4(c,d)};
M1p.bo=function(){var iwd=this.infoWindow;if(!iwd||!iwd.feature) return;var ft,ps,p,a,b,c,d,e,f,g,h,i,l,m;ft=iwd.feature;ps=ft.points;p=(!ft.infoWinPoint?ps[ps.length>>1]:ft.infoWinPoint);a=this.spec.q(p.y,p.x,this.zoomLevel);b=this.ad(a.x,a.y);c=new P4(this.m.x,this.m.y);d=iwd.left+(a.x-b.x);e=iwd.top+(a.y-b.y);f=R(this.viewSize.width*this.l.x);g=this.viewSize.width-f;h=R(this.viewSize.height*this.l.y);i=this.viewSize.height-h;c.y=V(c.y,e+h-25);c.y=U(c.y,a.y-i+25);l=25;m=a.y-iwd.getTotalHeightAboveGround()-(c.y-h);if(m<55){l=l+50}else if(m<295){l=l+35}c.x=V(c.x,d+f-l);c.x=U(c.x,d+iwd.getTotalWidth()-g+25);this.z=null;this.ap(c)};
M1p.bp=function(a){if(D.l.type==2&&D.l.os==2){E1.f(a,"keydown",this.eventHandler("cancelKey"));E1.f(a,"keypress",this.eventHandler("handleKey"))}else{E1.f(a,"keydown",this.eventHandler("handleKey"));E1.f(a,"keypress",this.eventHandler("cancelKey"))}E1.f(a,"keyup",this.eventHandler("releaseKey"))};
M1p.handleKey=function(a){if(this.ignoreKeyEvent(a)){return true}switch(a.keyCode){case 38:case 40:case 37:case 39:case 34:case 33:case 36:case 35:this.p.add(a.keyCode);this.br();$2(a);return false;case 27:this.r.reset();this.r.disable();$1(this.div,"default");this.cursorTip.innerHTML="";this.s.enable();$2(a);E1.d(this,"esc");return false;case 46:this.clearAll();$2(a);return false;case 187:case 107:this.zoomTo(this.zoomLevel+1);$2(a);L2.b("appid="+this.appId,"oprt=_keyZoom","param=+,"+(this.zoomLevel+1),"type=map");return false;case 189:case 109:this.zoomTo(this.zoomLevel-1);L2.b("appid="+this.appId,"oprt=_keyZoom","param=-,"+(this.zoomLevel-1),"type=map");$2(a);return false}switch(a.which){case 61:case 43:this.zoomTo(this.zoomLevel+1);$2(a);return false;case 45:case 95:this.zoomTo(this.zoomLevel-1);$2(a);return false}return true};
M1p.cancelKey=function(a){if(this.ignoreKeyEvent(a)){return true}switch(a.keyCode){case 38:case 40:case 37:case 39:case 34:case 33:case 36:case 35:case 187:case 107:case 189:case 109:case 33:case 34:case 35:case 36:case 12:case 46:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:$2(a);return false}switch(a.which){case 61:case 43:case 45:case 95:$2(a);return false}return true};
M1p.releaseKey=function(a){if(this.ignoreKeyEvent(a)){return true}switch(a.keyCode){case 38:case 40:case 37:case 39:case 33:case 34:case 35:case 36:this.p.remove(a.keyCode);E1.d(this,"keypanend");L2.b("appid="+this.appId,"oprt=_keyPan","param="+a.keyCode,"type=map");return false}};
M1p.ignoreKeyEvent=function(a){if(a.ctrlKey||(a.altKey||a.metaKey)){return true}var b,c;if(a.target){b=a.target.nodeName;c=a.target.getAttribute("type");}if(a.srcElement){b=a.srcElement.tagName;c=a.srcElement.type;}b=b.toLowerCase();if(c) c=c.toLowerCase();if((b=="input"&&(c=="text"||c=="password"))||b=="textarea") return true;return false};
M1p.br=function(){if(!this.t()){return}this.cancelPan();E1.d(this,"movestart");if(!this.bs){this.panSiner=new P2(100);this.bs=this.setTimeout(function(){this.bt()},5)}};
M1p.bt=function(){if(this.p.size>0){var a,b;a=(this.p.contains(37)?1:0)+(this.p.contains(39)?-1:0);b=(this.p.contains(38)?1:0)+(this.p.contains(40)?-1:0);if(a==0&&b==0){if(this.p.contains(33)){a=-1;b=1}if(this.p.contains(34)){a=-1;b=-1}if(this.p.contains(35)){a=1;b=-1}if(this.p.contains(36)){a=1;b=1}}var c=1;if(this.panSiner.more()){c=this.panSiner.next()}var d=a>0?Math.floor:Math.ceil;var e=d(7*c*a+5*a);d=b>0?Math.floor:Math.ceil;var f=d(7*c*b+5*b);this.s.moveTo(this.s.left+e,this.s.top+f);this.onMove();this.ai();this.bs=this.setTimeout(function(){this.bt()},10)}else{this.bs=null;E1.d(this,"moveend")}};
M1p.onWindowBlur=function(a){if(this.p.size>0){this.p=new P1()}};
M1p.resetMap=function(){var b=this;var g,h;b.closeInfoWindow();if(b.spec.sds){g=new P4(parseFloat(b.spec.sds.defaultCX),parseFloat(b.spec.sds.defaultCY));h=b.spec.x(Ae(b.spec.sds.defaultLevel)-1);}if(h!=b.zoomLevel){b.aq(g,h)}else{b.ao(g)}L2.b("appid="+this.appId,"oprt=_resetMap","param=empty","type=map")};
M1p.bu=function(a){var b=this.bx(a);K(b,28);L(b,5);b.style.fontWeight="bold";b.style.color="#ff0000";G(this.a,b);this.mapTitle=b;};
M1p.bv=function(){var b,c,d,e,f,i,t=this,m=t.isHybrid,n=t.isHbLbl;function o(a,b,e){var c=E(!b?"span":"a",e),d=c.style;c.innerHTML=a;if(b){c.href=b;c.target="_blank"}d.color="#00f";d.fontFamily="Verdana,sans-serif";d.fontSize="7pt";return c}b=t.mainCopyright;if(!b){t.mainCopyright=b=t.bx();G(t.a,b);K(b,95);b.style.bottom=I(2);f=E("div",t.a);Q(f);f.style.bottom=I(35);G(f,L1.create(D.e+"/images/logo.png",92,35,2,0,3000));}b.innerHTML="";c=o(D.j[0],D.j[1],b);o(" - "+D.j[2],"",b);o("&nbsp;- ","",b);e=E("span",b);if((!m&&!n)||n){o(" Data&#169;","",e);o(D.r[0],D.r[1],e)}if(m){if(n)o("&nbsp;,","",e);o(" Image&#169;","",e);for(i=0;i<D.s.length;i++){if(i>0)o("&amp;","",e);o(D.s[i][0],D.s[i][1],e);}}E1.d(t,"copyrightupdate",b,e,o)};
M1p.bw=function(){var a,b,c,d;b=this.bx();K(b,2);b.style.bottom=I(12);c=E("DIV",b,new P4(95,-13),new S1(0,5));c.style.backgroundColor="#00c";c.style.fontSize=I(1);d=this.bx();d.style.whiteSpace="nowrap";d.style.color="#0000ff";K(d,96);d.style.bottom=I(12);G(b,d);G(this.a,b);this.mapScale={"t":d,"w":c};};
M1p.bx=function(a){var b=E("DIV");Q(b);$1(b,"default");b.unselectable="on";b.onselectstart=$9;if(a!=null) b.innerHTML=a;b.style.fontSize=I(12);b.style.fontFamily="Arial, sans serif";b.style.MozUserSelect="none";return b};
M1p.by=function(a,b,c){if(!a.points) return;if(!b) b=new Array();if(!c) c=new B1();var f=[];var g;var d=a.segments,e=a.levels,k=An(this.ac()),m=a.points;d=(d&&d.length>1?d:[m]);d=Am(d,e,this.zoomLevel);d=a.type=="R"?At(d,k):As(d,k);a.clipSegments=d;if(d.length<1)d=[[m[0],m[1]]];for(var i=0;i<d.length;i++){for(var j=0;j<d[i].length;j++){g=this.spec.q(d[i][j].y,d[i][j].x,this.zoomLevel);g.x=R(g.x);g.y=R(g.y);if(b.length>0&&g.x==b[b.length-1].x&&g.y==b[b.length-1].y){g.x++;g.y++;}b.push(g);if(g.x<c.minX||c.minX==null)c.minX=g.x;if(g.y<c.minY||c.minY==null)c.minY=g.y;if(g.x>c.maxX||c.maxX==null)c.maxX=g.x;if(g.y>c.maxY||c.maxY==null)c.maxY=g.y;if(j==0) f.push("m");f.push(g.x);f.push(g.y);if(j==0) f.push("l");}if(a.type=="R"){f.push("x")}}f.push("e");var h=f.join(" ");return h};
M1p.bz=function(a)
{
	if(a.type=="S") return;
	var b,c,f,g,h,i,i2,k,s,t,l,w,x,y,z,z1,z2;
	b=a.bounds;
	c=a.points;
	s=1;
	t=1;
	l=this.m;
	z=l.x+" "+l.y;
	if(a.element){i=a.element;if(i._e) i2=i._e}
	x=this.spec.q(b.minY,b.minX,this.zoomLevel);
	y=this.spec.q(b.maxY,b.maxX,this.zoomLevel);
	g=new B1(x.x,x.y,y.x,y.y);
	a.bitmapBounds=g;
	w=Ae(W(g.maxX-g.minX));
	h=Ae(W(g.maxY-g.minY));	
	if(c.length==1)
	{
		f=this.spec.q(c[0].y,c[0].x,this.zoomLevel);
		a.bitmapPoints=[f];
		k=this.ad(f.x,f.y);
		z1=k.x-(w>>1);z2=k.y-(h>>1);
		if(D.l.type==1)
		{
			if(!a.element)
			{
				i=E("v:oval");
				i.unselectable="on";
				i.filled=(a.type=="R");
				Q(i);
			}
			M(i,w);
			N(i,h);
			K(i,z1);
			L(i,z2)
		}
		else
		{		
			if(!a.element){i=Ai("svg");i2=Ai("ellipse",i)}
			//var s2=this.ab(),t2=this.ad(s2.minX,s2.minY);
			Y(i2,"cx",w*0.5+10);
			Y(i2,"cy",h*0.5+10);
			Y(i2,"rx",w>>1);
			Y(i2,"ry",h>>1);
			Y(i,"height",I(w+20));
			Y(i,"width",I(h+20));
			K(i,k.x-w*0.5-10);
			L(i,k.y-h*0.5-10)
		}
	}
	else if(c.length>1)
	{
		var m;
		m=this.ad(l.x,l.y);
		f=new Array();
		g=new B1();
		a.bitmapPoints=f;
		a.bitmapBounds=g;
		if(D.l.type==1)
		{
			if(!a.element)
			{
				i=E("v:shape");
				i.unselectable="on";
				Q(i);
				M(i,s);
				N(i,t);
			}
			i.filled=(a.type=="R");
			K(i,m.x);
			L(i,m.y);
			i.coordorigin=z;
			i.coordsize=s+" "+t;
			i.path=this.by(a,f,g);
		}
		else
		{
			var sw=a.type=="R"?"1":"2";
			if(!a.element)
			{
				i=Ai("svg");
				i2=Ai("path",i);
			}
			Y(i2,"d",this.cb(a,f,g));
			w=Ae(W(g.maxX-g.minX));
			h=Ae(W(g.maxY-g.minY));
			Y(i,"width",I(w));
			Y(i,"height",I(h));
			Y(i,"viewbox",m.x+" "+m.y+" "+w+" "+h);
			K(i,g.minX);
			L(i,g.minY);
		}
	}
	if(D.l.type!=1)
	{
		Q(i)
		Y(i,"version","1.1");
		Y(i,"overflow","visible");
		i._e=i2;
	}
	if(a.style&&D.l.type==1)
	{
		var o=a.style.xml;
		if(o&&o.childNodes)
		{
			if(a.element)
			{
				while(a.element.hasChildNodes())
				{
					Ag(a.element,a.element.lastChild)
				}
			}
			var q=o.childNodes;
			var r;
			for(var p=0;p<q.length;p++)
			{
				if(q[p].nodeName.indexOf("v:")<0) continue;
				r=E(q[p].nodeName);
				r.on="true";
				var u=q[p].attributes;
				for(var j=0;j<u.length;j++)
				{
					r[u[j].nodeName]=u[j].nodeValue
				}
				r.joinstyle="round";
				G(i,r)
			}
		}
	}
	if(a.style&&D.l.type!=1)
	{
		var o=a.style.xml;
		if(o&&o.childNodes)
		{
			var q=o.childNodes;
			var r,s="",t="",u,v,x;
			for(var p=0;p<q.length;p++)
			{
				u=q[p].attributes;
				if(q[p].nodeName.indexOf("stroke")>-1)
				{
					for(var j=0;j<u.length;j++)
					{
						v=u[j].nodeValue;
						switch(u[j].nodeName)
						{
							case "color":
								s="stroke";
								t=v;
								break;
							case "weight":
								s="stroke-width";
								t=v;
							break;
							case "opacity":
							s="stroke-opacity";
							t=v.indexOf("%")>-1?""+parseInt(v)/100:v;
							break;
							case "dashstyle":
							x={"Solid":"none","ShortDash":"6,2","ShortDot":"2,2","ShortDashDot":"6,2,2,2","ShortDashDotDot":"6,2,2,2,2,2","Dot":"2,6","Dash":"10,6","LongDash":"20,6","DashDot":"10,6,2,6","LongDashDot":"20,6,2,6","LongDashDotDot":"20,6,2,6,2,6"};
							s="stroke-dasharray";
							t=x[v];
							break;
							case "endArrow":
							s="marker-end";
							t="url(#"+v+")";
							if(v=="Classic"&&a.type=="L")
							{
								var m,p;
								m=Ai("marker",i);
								Y(m,"id","Classic");
								Y(m,"viewBox","0 0 10 10");
								Y(m,"refX","10");
								Y(m,"refY","5");
								Y(m,"markerUnits","strokeWidth");
								Y(m,"markerWidth","7");
								Y(m,"markerHeight","18");
								Y(m,"orient","auto");
								p=Ai("path",m);
								Y(p,"d","M 0 0 L10 5 L0 10 L3 5 z");
								Y(p,"fill","blue");
							}
							break;
						}
						if(s!=""&&t!="") Y(i2,s,t);
					}
				}
				else if(q[p].nodeName.indexOf("fill")>-1)
				{
					for(var j=0;j<u.length;j++)
					{
						v=u[j].nodeValue;
						switch(u[j].nodeName)
						{
							case "color":
							s="fill";
							t=v;
							break;
							case "opacity":
							s="fill-opacity";
							t=v.indexOf("%")>-1?""+parseInt(v)/100:v;
							break;
						}
						if(s!=""&&t!="") Y(i2,s,t);
					}
				}
			}
			if(a.type=="L") Y(i2,"fill","none");
			Y(i2,"stroke-linecap","round");
			Y(i2,"stroke-linejoin","bevel");
		}
	}
	a.element=i;	
	return i
};
M1p.bk=function(a,b,c){if(c){var d=this.ab();var e=a.bounds;var m=this.spec.q(e.minY,e.minX,this.zoomLevel);var s=this.spec.q(e.maxY,e.maxX,this.zoomLevel);var t=new B1(m.x,s.y,s.x,m.y);if(!d.isIntersect(t)){return}}if(a){var g=null;g=this.bz(a);G(b,g);Ad(g,0);return g;}};
M1p.ca=function(a,b,c){try{var d=D1.loadFromString(a);var e=d.features;var f;if(!b) b=new B1();b.clone(d.bounds);for(var i=0;i<e.length;i++){if(c){e[i].isFixed=true}if(e[i].detail&&e[i].detail.infowin=="true"){f=e[i];f.detail.infowin="false";}this.addFeature(e[i])}if(f){E1.d(this,"hasautoshowinfowin",f);}return d}catch(g){L2.a(g.description,"MapArea.loadDataXML() exception")}};
M1p.cb=function(a,b,c)
{
	if(!a.points) return;
	if(!b) b=new Array();
	if(!c) c=new B1();
	var f=[];
	var g;
	var d=a.segments,e=a.levels,k=this.ac(),m=a.points;
	d=(d&&d.length>1?d:[m]);
	d=Am(d,e,this.zoomLevel);
	d=a.type=="R"?At(d,k):As(d,k);
	a.clipSegments=d;
	if(d.length<1)d=[[m[0],m[1]]];
	for(var i=0;i<d.length;i++)

	{
		for(var j=0;j<d[i].length;j++)
		{
			g=this.spec.q(d[i][j].y,d[i][j].x,this.zoomLevel);
			g=this.ad(g.x,g.y);
			g.x=R(g.x);
			g.y=R(g.y);
			b.push(g);
			c.extend(g);
			if(j==0) f.push("M");else f.push("L");
			f.push(g.x);
			f.push(g.y);
		}
		if(a.type=="R")
		{
			f.push("Z")
		}
	}
	c.minX-=5;
	c.minY-=5;
	c.maxX+=5;
	c.maxY+=5;
	for(var i=0;i<f.length;i++){if(isNaN(f[i])) continue;if(isNaN(f[i-1]))f[i]-=c.minX;else f[i]-=c.minY;}
	var h=f.join(" ");
	return h
};
M1p.cc=function(v)
{
	var b,c,i,j,t=this;
	if(t.fTMTkt.isValid())
	{
		T1.invalidate("fTMTkt");
		for(c=0;c<v.length;c++)
		{
			if(!v[c][2])continue;
			b=v[c][0];
			for(i=0;i<b.length;i++)
			{
				for(j=0;j<b[i].length;j++)
				{
					t.ag(b[i][j],i,j,v[c][1],t.div==v[c][3])
				}
			}
		}
	}
};
M1p.onOL2Mv=function(a){a=a||event;E1.d(this,"overlaymousemove",a)};
A("MapArea",M1);
B(M1,"getCenterLatLng",M1p.y);
B(M1,"getBitmapBounds",M1p.ab);
B(M1,"getLatLngBounds",M1p.ac);
B(M1,"getDivCoordinate",M1p.ad);
B(M1,"divToBitmapCoordinate",M1p.ae);
B(M1,"recenterOrPanToLatLng",M1p.ao);
B(M1,"centerAndZoom",M1p.aq);
B(M1,"centerAtLatLng",M1p.ar);
B(M1,"centerAtBitmap",M1p.as);
B(M1,"switchSpecification",M1p.av);
B(M1,"createFeatureElement",M1p.ay);
B(M1,"removeFeatureElement",M1p.az);
B(M1,"showInfoWindow",M1p.bc);
B(M1,"loadDataXML",M1p.ca);
B(M1,"setSymbolPosition",M1p.bg);
B(M1,"setLabelPosition",M1p.bi);
B(M1,"showCopyright",M1p.bv);

function M2(a,b,c){var th=this;th._e=th.eventHandler;th.map=null;th.a=a;th.c=b;th.b=c;th.e=[];th.f=false;th.g=null;th.h=[];th.i=[];th.j="auto";th.k=th.mapProcess=new M4();th.l=true;th.m=true;th.k.f=D.c;th.n=D.f;S3.baseURL=D.b;th.p="1,1";th.q=",,";th.appId="1361";E1.f(window,"resize",th._e("resizeTo"));E1.a(th.k,"callback",th._e("handleResult"));if(D.l.type==4){document.body.style.overflow="hidden";}th.labelTimer=[];th.isInfoWinAutoOpen=true};
var M2p=M2.prototype;
M2p.createMapArea=function(a,b,c,d,e,f,g){var h,th=this;if(g) {th.a=g;}g=th.a;if(!g){g=E("span");G(document,g)}if(a&&b){K(g,a);L(g,b);}if(c&&d){th.resizeTo(Ae(c),Ae(d))}if(e){try{g.style.border=e+" 1px solid"}catch(x){}}th.map=new M1(g,th.e,c,d,th.c,th.b);h=th.map;h.bp(window.document);h.appId=th.appId;E1.a(h,"moveend",th._e("update"));E1.a(h,"moveend",th._e("onMoveEnd"));E1.a(h,"click",th._e("onMapClick"));E1.a(h,"mouseover",th._e("onMapMouseOver"));E1.a(h,"mouseout",th._e("onMapMouseOut"));E1.a(h,"mousedown",th._e("onMapMouseDown"));E1.a(h,"drawend",th._e("onDrawEnd"));E1.a(h,"doubleclick",th._e("onDoubleclick"));E1.a(h,"infowindowclose",th._e("onInfoWindowClose"));E1.a(h,"mousewheel",th._e("onMW"));E1.a(h,"hasautoshowinfowin",th._e("autoShowInfowin"));E1.a(h,"labelclick",th._e("onMapClick"));E1.a(h,"labelmouseover",th._e("onLabelMouseOver"));E1.a(h,"labelmouseout",th._e("onMapMouseOut"))};
M2p.s=function(a){this.f=a;if(!a){if(this.h.length>0){var b=this.h.shift();var c=this.i.shift();this.setTimeout(this.submit,100,b,c)}}};
M2p.t=function(){return this.f;};
M2p.submit=function(a,b,c,d,e,f,g){try{L2.b("appid="+this.getAppId(),"oprt="+a.getMapServiceName(),"type=request");if(this.t()&&c&&this.g!=b){this.h.push(a);this.i.push(b);return}this.g=b;window.status=unescape('%u6B63%u5728%u67E5%u8BE2%uFF0C%u8BF7%u7A0D%u5019...');this.s(true);this.k.submit(a,!g?this.j:g,d,e,f);E1.d(this,"submit",a, b);}catch(e){e=this.getClassName()+".submit()::"+e.description;L2.a(e,"exception")}};
M2p.handleResult=function(a) {E1.d(this,"callbackstart",a);window.status='';var b;var sds;
	try
	{
		b=a.getResult("hidden_MapTool");
		if(b!="")
		{
			this.lastMaptool=b;
		}
		b=a.getResult("ErrorMessage");
		if(b!="")
		{
			E1.d(this,"errormessage",b)
		}
		b=a.getResult("hidden_APPID");
		if(b!="")
		{
			this.appId=b;
			this.map.appId=b
		}
		b=a.getResult("SDS");
		if(b!="")
		{
			if(!this.sds)
			{
				b='<?xml version="1.0" encoding="GB2312"?>'+b;
				sds=S2.loadFromXML($c(b));
			}
			else sds=S2.loadFromObj(this.sds);
			var spec=new M7(sds);
			spec.rmpBaseURL=this.n;
			this.map.isLoadVmp=this.l;
			this.map.isLoadAd=this.m;
			this.map.av(spec);
			this.map.bd();
			this.map.removeFeatures();
			E1.d(this,"sdschange",sds);
			E1.d(this,"inited",sds);
		}
		if(this.g&&this.g.mapResultCallback)
		{
			this.g.mapResultCallback(a)
		}
		E1.d(this,"callbackend",a);
		E1.d(this,"callback",a);
		this.s(false);
		if(this.map&&!this.map.f&&sds)
		{
			var h,i,j,k,l,m;
			k=this.defaultCX;
			l=this.defaultCY;
			m=this.defaultLevel;
			h=new P4(parseFloat(!k?sds.defaultCX:k),parseFloat(!l?sds.defaultCY:l));
			i=!m?this.map.spec.x(Ae(sds.defaultLevel)-1):Ae(m);j=h;if(!i&&i!=0)
			{
				this.map.ar(j)
			}
			else
			{
				this.map.aq(j,i)
			}
			this.defaultCX=this.defaultCY=this.defaultLevel=null;
		}
	}
	catch(e)
	{
		this.s(false);
		e=this.getClassName()+".handleResult()::"+e.description;
		L2.a(e,"exception")
	}
};
M2p.coordRecenterTo=function(a,b,c){var d,e,t=this;if(a&&b)d=new P4(parseFloat(a),parseFloat(b));if(c)c=parseInt(c);e=t.map;if(!e) {t.defaultCX=a;t.defaultCY=b;t.defaultLevel=c;return}if(d&&c){e.aq(d,c)}else if(d){e.ao(d)}else if(c){e.zoomTo(c)}};
M2p.update=function(){E1.d(this,"update");};
M2p.resizeTo=function(a,b){if(a&&b){M(this.a,a);N(this.a,b);}if(this.map){this.map.onResize()}};
M2p.getWindowSize=function(a){if(!a)a=new S1(0,0);if(window.self&&self.innerWidth){a.width=self.innerWidth;a.height=self.innerHeight;return a}if(document.documentElement&&document.documentElement.clientHeight){a.width=document.documentElement.clientWidth;a.height=document.documentElement.clientHeight;return a}a.width=document.body.clientWidth;a.height=document.body.clientHeight;return a};
M2p.autoShowInfowin=function(a){this.setTimeout(this.onMapMouseOver,500,a);};
M2p.showInfoWindow=function(a,a2){if(a&&a.type!="R"&&a.detail){var b=this.map;var e=this;if(this.isMoveToInfoWin||a2){a2=true;}var c=b.infoWindow;if(!c||!c.isVisible()||c.feature!=a){var d,w,h,dc,src;w=a.detail.width;h=a.detail.height;dc=eval("'"+$o(a.detail.content)+"'");src=a.detail.src;if(dc||src){if(a.type!="S"&&a.eventPt){var ep=a.eventPt;if(ep.x!=null&&ep.y!=null) {var f=this.map.ae(ep.x,ep.y);var g=this.map.spec.r(f.x,f.y,this.map.zoomLevel);a.infoWinPoint=g;}}}if(dc){var p=/<(div|iframe|span).*>.*<\/.*>/gi;if(p.test(dc)){d=E("span");}else{d=E("div",null,null,new S1(!w?251:w,!h?142:h));d.style.overflow="auto";d.style.wordBreak="break-all";}d.innerHTML=dc;b.bc(a,d,!a2);}else if(src){var e=E("div");d=E("iframe",e,null,new S1(!w?251:w,!h?142:h));d.marginheight=0;d.marginwidth=0;d.frameborder=0;d.scrolling="no";d.allowTransparency=true;d.src=eval("'"+$o(src)+"'").replace(/_amp_/g,"&");b.bc(a,e,!a2);}L2.b("appid="+this.getAppId(),"oprt=_poiInfoWin","param="+a.caption,"type=map")}}};
M2p.setHyBrid=function(a,c,d){var b=this.map;b.isHybrid=a;b.isHbLbl=c;if(d)b.rmpId=d;if(b.t()){b.x(1);b.aq(b.y(),b.zoomLevel)}b.showCopyright();E1.d(this,"hybrid",a,c,d)};
M2p.setOverlay=function(a,c)
{
	var b=this.map;
	b.isOverLay=a;
	if(c&&typeof(c)=="function") D.g[3]=c;
	if(b.t())
	{
		b.x(0,1);
		b.aq(b.y(),b.zoomLevel)
	}
	E1.d(this,"overlay",a)
};
M2p.onMapMouseDown=function(){};
M2p.onMapClick=function(a,a2){if(!a||!a.element) return;this.showInfoWindow(a,a2);if(a&&a.type!="R"&&a.detail){var b=a.detail.href;if(b){b=b.replace(/[\"]/g,"'");b=b.trim();if(b.substring(0,11)=="javascript:"){eval(b.substring(11))}else if(!a.detail.content&&!a.detail.src){window.open(eval("'"+$o(a.detail.href)+"'").replace(/_amp_/g,"&"))}}E1.d(this,"poiclicked",a);L2.b("appid="+this.getAppId(),"oprt=_poiClicked","param="+a.caption,"type=map")}};
M2p.onMapMouseOver=function(a,f,g){if(a&&a.element){var iw=this.map.infoWindow;this.onLabelMouseOver(a);var c=a.element,b=c.label,d;if(b&&(!iw||iw.feature!=a))Ac(b);if(a.type=="S")c.focus();else{if(a.eventPt){d=a.eventPt;if(b&&d.x!=null&&d.y!=null){K(b,d.x+5);L(b,d.y)}}}if(this.isInfoWinAutoOpen){window.clearTimeout(this.mIWTimer);this.showInfoWindow(a)}}};
M2p.onMapMouseOut=function(a){var c=this.map;if(a&&a.type!="R"&&a.element){var iw=c.infoWindow;if(iw&&iw.feature==a){if(this.isInfoWinAutoOpen){window.clearTimeout(this.mIWTimer);this.mIWTimer=this.setTimeout(function(){c.closeInfoWindow()},500)}}this.onLabelMouseOver(a);this.labelTimer[a.id]=this.setTimeout(function(){if(!a.element)return;if(a.type=="S")a.element.blur();var b=a.element.label;if(b&&(a.label.on=="false"||a.type=="L")) Ab(b)},200)}};
M2p.onLabelMouseOver=function(a){var b=this.labelTimer[a.id];if(b){window.clearTimeout(b);this.labelTimer[a.id]=null}};
M2p.onInfoWindowClose=function(a){if(a&&a.type=="S"&&a.element){a.element.blur();var b=a.element.label;if(b)if(a.label.on=="false")Ab(b);else Ac(b)}};
M2p.onDrawEnd=function(a,b){E1.d(this,"drawend",a,b);var c=this.operationOnMap;if(c&&c.mapWindowCallback){c.mapWindowCallback(a,b)}this.map.r.reset();L2.b("appid="+this.getAppId(),"oprt="+c.getClassName(),"param=empty","type=map")};
M2p.onMW=function(a){var b,c,d;if(!a) a=event;b=a.wheelDelta;c=a.detail;d=!b?(!c?0:-c):b;if(d>0){this.animateZoomTo(this.map.zoomLevel+1)}else if(d<0){this.animateZoomTo(this.map.zoomLevel-1)}};
M2p.onDoubleclick=function(a){this.isDoubleclick=true};
M2p.onMoveEnd=function(a){if(this.moveEndTimer) window.clearTimeout(this.moveEndTimer);if(this.isDoubleclick){this.moveEndTimer=this.setTimeout(this.animateZoomTo,300,this.map.zoomLevel+1);}this.isDoubleclick=false;};
M2p.clearAll=function(a){this.map.clearAll(a);E1.d(this,"clearall")};
M2p.selectTool=function(a,b){var m=this.map;m.r.reset();if(a=="PAN"){m.r.disable();this.setCursor("default","");m.s.enable();O(m.mask)}else{m.s.disable();m.r.enable();m.r.setDrawType(a);P(m.mask)}this.operationOnMap=b;E1.d(this,"selecttool",a,b)};
M2p.setCursor=function(a,b,c){if(a.indexOf(".")>-1)a=!c?D.e+"/images/"+a:a;$1(this.map.div,a);this.map.cursorTip.innerHTML=b};
M2p.applyZoom=function(a,a2,a3,a4){var b,c,d,e,f,h;b=this.map;c=S(Math.log(b.viewSize.width)*Math.LOG2E-2);d=a-a2;if(d>c){d=c}else if(d<-c){d=-c}e=Math.pow(2,d);a3.style.zoom=e;f=b.viewSize.width*b.l.x;h=b.viewSize.height*b.l.y;K(a3,R((a4.x-f)*e+f));L(a3,R((a4.y-h)*e+h))};
M2p.animateZoomTo=function(a,b)
{
	var t=this,c=t.map,d=c.spec.o,e=c.zoomLevel,f,g=c.div,h=c.div2,k=c.isHybrid;if(a<0||a>=d) 
	{
		E1.d(t,"animatezoomoverflow",d,a);
		return
	}
	if(D.l.type!=1||(D.l.type==1&&D.l.version==8))
	{
		c.zoomTo(a);
		return
	}
	if(t.sfS==null)
	{
		E1.d(t,"animatezoomstart",d,a);
		t.cRZ=this.oZm=e;
		t.tgZ=a;
		O(c.q);
		O(c.q2);
		Ac(h);
		Ab(g);
		if(k)
		{
			for(var i=0;i<c.v2.length;i++)
			{
				for(var j=0;j<c.v2[i].length;j++)
				{
					Ab(c.v2[i][j])
				}
			}
		}
		for(var i=0;i<c.v3.length;i++)
		{
			for(var j=0;j<c.v3[i].length;j++)
			{
				Ab(c.v3[i][j])
			}
		}		
		O(c.oL);
		O(c.oL2);
		K(h,g.offsetLeft);
		L(h,g.offsetTop);
		if(k)h.style.zoom=1;
		h.innerHTML=g.innerHTML.replace(/<\/?iframe[^>]*>/gi,"");
		if(!k)c.zoomTo(a,1);
		t.sfS={"x":g.offsetLeft,"y":g.offsetTop};
		t.sfS2={"x":h.offsetLeft,"y":h.offsetTop};
	}
	else if(b==null){return}
	t.cRZ+=0.5*(t.tgZ-t.cRZ);
	if(W(t.tgZ-t.cRZ)<0.05)
	{
		if(k)c.zoomTo(a,1);
		P(c.q);
		P(c.q2);
		P(c.oL);
		P(c.oL2);
		Ac(g);
		if(!k)
		{
			K(g,R(this.sfS.x));
			L(g,R(this.sfS.y));
			g.style.zoom=1;
		}
		t.sfS=null;
		E1.d(t,"animatezoomend",t.oZm,a);
		L2.b("appid="+t.getAppId(),"oprt=_animateZoomTo","param="+e+","+a,"type=map")
	}
	else
	{
		if(!k)
		{
			if(W(t.tgZ-t.cRZ)>0.2)
			{
				t.applyZoom(t.cRZ,t.oZm,h,t.sfS2);
			}
			Ac(g);
			t.applyZoom(t.cRZ,t.tgZ,g,t.sfS);
		}
		else t.applyZoom(t.cRZ,t.oZm,h,t.sfS);
		t.setTimeout(t.animateZoomTo,50,a,t.sfS)
	}
};
M2p.smoothZoomEffect=function(a){var b=this.map;var c,d=2,w,h,x,y;if(arguments[1]!=null){c=arguments[1];}else{c=(a=="OUT"||a==1)?1:20;}if(c>0&&c<21){w=b.viewSize.width/(1+((d-1)/20*c));h=b.viewSize.height/(1+((d-1)/20*c));x=b.viewSize.width/2*(1-1/(1+((d-1)/20*c)));y=b.viewSize.height/2*(1-1/(1+((d-1)/20*c)));w=Ae(w);h=Ae(h);x=Ae(x);y=Ae(y);if(this.zoomGraphics==null){this.zoomGraphics=new G1(this.a);}this.zoomGraphics.drawRect(x,y,w,h);(a=="OUT"||a==1)?c++:c--;this.setTimeout(this.smoothZoomEffect,30,a,c)}else{if(this.zoomGraphics!=null){this.zoomGraphics.clear();this.zoomGraphics=null}}};
M2p.adjustMapFitFeature=function(a,z){if(!a||!a.bounds) return;var d=(a.bounds.maxX+a.bounds.minX)>>1;var e=(a.bounds.maxY+a.bounds.minY)>>1;var f=new P4(d,e);if(a.type=="S"&&this.map.t()){this.map.ao(f);var ft=this.map.activeSymbol;if(ft&&ft.element){ft.element.wink(false);}if(a.element){a.element.wink(true);}this.map.activeSymbol=a;}else{var b=W(a.bounds.maxX-a.bounds.minX);var c=W(a.bounds.maxY-a.bounds.minY);var w=this.map.viewSize.width-80;var h=this.map.viewSize.height-70;var g=this.map.spec.u(new S1(b,c),w,h);if(z&&g>z)g=z;if(!this.map.t()||g!=this.map.zoomLevel){this.map.aq(f,g)}else{this.map.ao(f)}}};
M2p.resetMap=function(){this.s(false);var b=this.map;if(b){b.resetMap()}E1.d(this,"resetmap")};
M2p.addWebElement=function(a){if(typeof a=="object"&&this.a!=null){G(this.a,element)}};
M2p.setQueryArea=function(a){this.map.setQueryArea(a)};
M2p.setServerScriptType=function(a){this.k.a=a};
M2p.setSubmitMethod=function(a){this.j=a};
M2p.timeOut=function(a){this.timeout=a;};
M2p.setTextFields=function(a){this.manageInputs(a);};
M2p.setEngineURL=function(a){if(a!=null)this.k.f=a};
M2p.setSpInfo=function(a){if(a!=null)this.p=a};
M2p.setAppId=function(a){if(a!=null){this.appId=a;if(this.map) this.map.appId=a}};
M2p.setUserInfo=function(a){if(a!=null)this.q=a};
M2p.setMapImageRoot=function(a){if(a!=null)this.n=a.replace(/(.*)\/$/g,"$1")+"\/"};
M2p.setVmpDataRoot=function(a){if(a!=null)this.o=a.replace(/(.*)\/$/g,"$1")+"\/"};
M2p.setMapImageType=function(a){if(a!=null)this.mapImageType=a};
M2p.setStyleLibraryRoot=function(a){if(a!=null)S3.baseURL=a.replace(/(.*)\/$/g,"$1")+"\/"};
M2p.setIsLoadVmp=function(a){this.l=(a||a=="true")};
M2p.setIsLoadAd=function(a){this.m=(a||a=="true")};
M2p.setSds=function(a){this.sds=a};
M2p.getLastMaptool=function(){return this.lastMaptool};
M2p.getSds=function(){return this.map.spec.sds};
M2p.getSDSID=function(){return this.getSds().id};
M2p.getUserInfo=function(){return this.q};
M2p.getAppId=function(){return this.appId};
M2p.getSpInfo=function(){return this.p};
M2p.getMapImageRoot=function(){return  this.getRmpRootURL()};
M2p.getRmpRootURL=function(){return this.n.replace(/(.*)\/$/g,"$1")+"\/"};
M2p.getVmpDataRoot=function(){return this.o};
M2p.getMapImageType=function(){return this.mapImageType};
M2p.getCenterX=function(){return (this.getBounds().minX+this.getBounds().maxX)/2};
M2p.getCenterY=function(){return (this.getBounds().minY+this.getBounds().maxY)/2};
M2p.getBounds=function(){return this.map.ac()};
M2p.getMapWidth=function(){return this.map.viewSize.width};
M2p.getMapHeight=function(){return this.map.viewSize.height};
M2p.getMapLeft=function(){return $5(this.a).x};
M2p.getMapTop=function(){return $5(this.a).y};
M2p.getMouseX=function(){var a; if (typeof window.pageXOffset !='undefined') {    a=window.pageXOffset} else if (typeof document.compatMode !='undefined'&&document.compatMode !='BackCompat') {    a=document.documentElement.scrollLeft} else if (typeof document.body !='undefined') {    a=document.body.scrollLeft}return (event.clientX+a)-this.getMapLeft()};
M2p.getMouseY=function(){var a; if (typeof window.pageYOffset !='undefined') {    a=window.pageYOffset} else if (typeof document.compatMode !='undefined'&&document.compatMode !='BackCompat') {    a=document.documentElement.scrollTop} else if (typeof document.body !='undefined') {    a=document.body.scrollTop}return (event.clientY+a)-this.getMapTop()};
M2p.getEngineURL=function(){return this.k.f};
M2p.getMapProcess=function(){return this.k;};
M2p.getFeatureById=function(a){if(this.map.features&&this.map.features.length){var b=this.map.features;for(var i=0;i<b.length;i++){if(b[i].id==a){return b[i]}}}return null;};
M2p.getFeatures=function(){return this.map.features;};
M2p.getStyleLibraryRoot=function(){return S3.baseURL};
M2p.getLevelIndex=function(){return this.map.zoomLevel;};
M2p.getMapAreaContainer=function(){return this.a};
M2p.getMaskLayer=function(){return this.map.panel;};
M2p.getMapAreaLayer=function(){return this.a};
M2p.getServerScriptType=function(){return this.k.a;};
M2p.getHbState=function(){var b=this.map;if(b)return [!b.isHybrid?0:1,!b.isHbLbl?0:1]};
A("MapClient",M2);
function M3(){}
A("MapOperation",M3);
function M4(){this.id="MapProcess0712";if($3(this.id)){this.id=D.i()}this.a="jsp";this.b=null;this.c="";this.d="";this.e=new M8();this.f="";this.g=[];if(D.l.type==1){var e=E("meta");e.addBehavior("#default#userdata");G(Aa(document,"head")[0],e);this.userdata=e;}};
var M4p=M4.prototype;
M4p.submit=function(a,b,z,v,u){try{this.b=a;if(u&&D.l.type==1){var mt,ap,un,ud,uc,rq,ex,ep;mt=this.b.getMapServiceName().replace(/[\. ]/g,"_");ap=this.b.getVariant().getAPPID();un="lsp_request_"+mt+"_"+ap;ud=this.userdata;uc=ud.load(un);ex=D.expireFlag;rq=X(ud,"request");ep=X(ud,"expires");if(rq!=null&&ep==ex.replace(/[ :\+]/g,"")){this.g[un]=false;this.callback(rq);return;}else{this.g[un]=true;}}var submitSrc="";var ext=this.a;var c=this.e.toString();z=(!z?this.f:z);this.c=z+(z.indexOf("?")>-1?"&":"?")+this.b.getMapRequestString()+(c!=""?"&"+c:"");if(!v){this.c+="&rnd="+D.i();}else{this.c=this.c.replace(/\?/,"+");this.c+=".htm";this.c=this.c.replace(/\s/gi,"%20").replace(/[%]/gi,"%25");}if(b=="auto"||b==null){if(this.c.length>1200){b="post";}else{b="get";}}switch(b){case "post":{submitSrc="syspage/p."+ext+"?id="+this.id+"&r="+D.i();break}default:case "get":{submitSrc="syspage/p.htm"+(this.id!="MapProcess0712"?"?id="+this.id:"");break}}var d=this.c;var e=this.id;var k=$3(e);if(!k) k=$e(e);k.requestUrl=d;k.callback=this.eventHandler("callback");var l=new I2(k.id);l.continueWith(submitSrc,function(){});L2.a(this.c,"sending request by "+b+" method");}catch(e){e=this.getClassName()+".submit()::"+e.description;L2.a(e,"exception")}};
M4p.callback=function(a){try{L2.a(a,"engine response");var b,c,d;this.d=a;d=new M6();d.setResult(a);c=d.getMapResults();var e=this.e;for(var i=0;i<e.a.length;i++){b=e.b[e.a[i]];if(typeof(b)=="string"&&c[e.a[i]]!=null){e.b[e.a[i]]=c[e.a[i]]}}E1.d(this,"callback",d);var mt,ap,un;mt=d.getResult("hidden_MapTool").replace(/[\. ]/,"_");ap=d.getResult("hidden_APPID");un="lsp_request_"+mt+"_"+ap;if(this.g[un]&&d.getResult("ErrorMessage")==""){var ud,uc,ex;ud=this.userdata;uc=ud.load(un);ex=D.expireFlag;Y(ud,"request",a);Y(ud,"expires",ex.replace(/[ :\+]/g,""));ud.save(un);}}catch(e){e=this.getClassName()+".callback()::"+e.description;L2.a(e,"exception")}};
M4p.getLastestRequestString=function(){return this.c;};
M4p.getLastestJsReturn=function(){return this.d;};
M4p.getMapRequest=function(){return this.b;};
M4p.getMapState=function(){return this.e;};
A("MapProcess",M4);

function M5(a,b)
{
var _a=a,_b=b;
this.setMapServiceName=function(name){_a=name;};
this.setVariant=function(a){_b=a;};
this.getMapServiceName=function(){return _a;};
this.getVariant=function(){return _b;};
this.getMapRequestString=function(){try{var a="hidden_MapTool="+_a+"&hidden_Variant="+_b.getVariantString();return a;}catch(e){}};
}
A("MapRequest",M5);
function M6()
{
var _a;
this.setResult=function(jsReturn){_a=$k(jsReturn,"!!","==");};
this.getResult=function(resultName){if(_a[resultName]!=null){return _a[resultName];}else{return "";}};
this.getMapResults=function(){return _a;};
}
A("MapResultFactory",M6);
function M7(a)
{
	var c=[],d,e,f,g;
	this.a="GIF";
	this.b="JS";
	this.c=this.mpLevels=[];
	this.d=[];
	if(a!=null)
	{
		this.sds=a;
		c=this.sds.getMplevels();
		d=this.sds.rmp.mp;
		e=new S1(Ae(c[0].cellwidth),Ae(c[0].cellheight));
		f=this.sds.rmp.filter;
		if(f)
		{
			g=new B1(parseFloat(f.minx),parseFloat(f.miny),parseFloat(f.maxx),parseFloat(f.maxy));
		}
	}
	this.f=e||new S1(400,300);
	this.g="#ffffff";
	this.h=D.e+"/images/mapbg50.gif";
	this.i=D.e+"/images/nohybird.gif";
	this.j=D.e+"/images/mapbj.gif";
	this.k=g||new B1(parseFloat(d.minx),parseFloat(d.miny),parseFloat(d.maxx),parseFloat(d.maxy));
	this.l=new P4(0,0);
	var g,h,i;
	for(i=0;i<c.length;i++)
	{
		g=new Object();
		g.id=c[i].id;
		g.m=new P4(parseFloat(c[i].deltax)/Ae(c[i].cellwidth),parseFloat(c[i].deltay)/Ae(c[i].cellheight));
		this.d.push(g);
		if(f&&f.mplevelids.indexOf(c[i].id)<0) continue;
		this.c.push(g)
	}
	this.d.sort(function(a,b){return b.m.x-a.m.x});
	this.c.sort(function(a,b){return b.m.x-a.m.x});
	this.n=new Array();
	var r,s;
	for(i=0;i<this.c.length;i++)
	{	
		r=this.s(this.k.minY,this.k.minX,i);
		s=this.s(this.k.maxY,this.k.maxX,i);				
		this.n.push(new B1(r.x,s.y,s.x,r.y))
	}
	this.o=this.numZoomLevels=this.c.length;
}
var M7p=M7.prototype;
M7p.p=function(a,b,c){var d,e,f,g;d=this.q(this.k.minY,this.k.minX,b);e=this.q(this.k.maxY,this.k.maxX,b);f=c.width;g=c.height;f=f>>1;g=g>>1;var h=new P4(a.x,a.y);if(h.x<d.x-f){h.x=e.x+f}if(h.x>e.x+f){h.x=d.x-f}if(h.y<e.y-g){h.y=d.y+g}if(h.y>d.y+g){h.y=e.y-g}return h};
M7p.q=function(a,b,c,d){if(this.c.length<=0) return;c=this.o<=c?this.o:c;c=c<0?0:c;if(!d)d=new P4(0,0);var e=b-this.l.x;var f=this.l.y-a;d.x=S(e/this.c[c].m.x);d.y=S(f/this.c[c].m.y);return d};
M7p.r=function(a,b,c,d){if(this.c.length<=0) return;c=this.o<=c?this.o:c;c=c<0?0:c;if(!d)d=new P4(0,0);d.x=a*this.c[c].m.x+this.l.x;d.y=this.l.y-b*this.c[c].m.y;return d};
M7p.s=function(a,b,c,d){var e=this.q(a,b,c,d);e.x=S(e.x/this.f.width);e.y=S(e.y/this.f.height);return e};
M7p.t=function(a,b,c,z)
{
	var x,d=this,f;
	x=d.n;
	if( a<x[c].minX||a>x[c].maxX||b<x[c].minY||b>x[c].maxY ){return this.h}	
	b=-b;b--;
	f=d.y(a,b,c);
	return z(f,a,b,c);
};
M7p.u=function(a,b,c){if(this.c.length<=0) return;b+=4;c+=4;for(var d=this.c.length-1;d>=0;d--){if( S(a.width/this.c[d].m.x)<=b&&S(a.height/this.c[d].m.y)<=c){return d}}return 0};
M7p.getMeterPerPixel=function(a){if(this.c.length<=0) return;return this.c[a].m};
M7p.v=function(){return (!this.sds?"":this.sds.caption);};
M7p.w=function(a,b,c){if(this.c.length<=0) return;var d,e,f,g;d=new P4();g=this.c;e=g[b].m.x/g[a].m.x;f=g[b].m.y/g[a].m.y;d.x=R(c.x*e);d.y=R(c.y*f);return d};
M7p.x=function(a){var b,c;a=Ae(a);b=this.d[a];c=this.c;if(b){for(var i=0;i<c.length;i++){if(c[i].id==b.id) return i;}}return 0;};
M7p.y=function(a,b,c)
{
	var t=this,h=t.sds,e=[],i,j;
	e.push(h.areaid);
	e.push(h.rmp.id);
	e.push(t.c[c].id);
	if(a>=0){i=S(a/200);}
	else{i="M"+(W(S(a/200)));}
	if(b>=0){j=S(b/200);}
	else{j="M"+(W(S(b/200)));}
	e.push(i);
	e.push(j);
	e.push((a>=0?a:"M"+W(a))+"_"+(b>=0?b:"M"+W(b)));
	return e;
};
A("MapSpec",M7);
B(M7,"getLatLng",M7p.r);
B(M7,"getTileURL",M7p.t);
B(M7,"getLowestZoomLevel",M7p.u);
B(M7,"getRealLevelIndex",M7p.x);
B(M7,"getId",M7p.y);

function M8()
{
this.a=new Array();this.a.push("hidden_UserID");this.a.push("hidden_APPID");this.a.push("hidden_DISABLEQDS");this.b=new Array();for(var i=0;i<this.a.length;i++){this.b[this.a[i]]=""}this.b["hidden_DISABLEQDS"]="true";
this.toString=function(){var a=this.a;var b;var c=[];var d="";for(var i=0;i<a.length;i++){b=this.b[a[i]];if(typeof(b)=="string"&&b!=""){c.push(a[i]+"="+b)}}if(c.length>0) d=c.join("&");return d;};
}
A("MapState",M8);
function M9(a,b,c,d,e,f){var th=this;th.icon=a;th.icon2=b;th.transparentIcon=c;th.shadow=d;th.layer=[a,c,d];th.map=e;th.mouseTarget=f;th.container=null};
var M9p=M9.prototype;
M9p.a=function(a){this.layer.push(a)};
M9p.b=function(a,b){var d;if(!this.width||!this.height){this.width=this.icon.width;this.height=this.icon.height;}this.pointer={"x":a+this.width/2,"y":b+this.height/2};for(var c=0;c<this.layer.length;++c){d=this.layer[c];if(d){K(d,a);L(d,b);}}};
M9p.c=function(a){if(this.container){return}this.container=a;var c;for(var b=0;b<this.layer.length;++b){c=this.layer[b];if(c){G(a,c)}}if(this.map){G(a,this.map)}var d=this;var e=this.transparentIcon;e.onmouseover=function(){d.focus()};e.onmouseout=function(){d.blur()};var f=this.icon;f.onmouseover=function(){d.focus()};f.onmouseout=function(){d.blur()};};
M9p.e=function(){if(!this.container){return}var c;for(var a=0;a<this.layer.length;++a){c=this.layer[a];if(c){Ag(this.container,c)}}if(this.mouseTarget){this.mouseTarget.onmousedown=null}if(this.map){Ag(this.container,this.map)}};
M9p.hide=function(){var b;for(var a=0;a<this.layer.length;++a){b=this.layer[a];if(b){Ab(b)}}};
M9p.show=function(){var b;for(var a=0;a<this.layer.length;++a){b=this.layer[a];if(b){Ac(this.layer[a])}}};
M9p.isVisible=function(){return this.layer[0].style.visibility!="hidden"};
M9p.focus=function(){var d,e,f;d=this.icon;e=this.transparentIcon;f=this.icon2;if(d&&e&&f&&!this.isFocus){this.setIcon1(d,e);var g=this.icon1;d.onerror=function(){var a=D.e+"/images/404.gif";this.src=a;f.src=a;g.src=a};d.src=f.src;M(d,f.width);N(d,f.height);M(e,f.width);N(e,f.height);var m=f.width/2;var n=f.height/2;K(d,this.pointer.x-m);L(d,this.pointer.y-n);K(e,this.pointer.x-m);L(e,this.pointer.y-n);Ad(d,999);Ad(e,3999);if(this.label){Ad(this.label,3999)}this.isFocus=true;}};
M9p.blur=function(){var d,e,f,g,m,n;d=this.icon;e=this.transparentIcon;f=this.icon2;g=this.icon1;if(d&&e&&f&&g&&this.isFocus){d.src=g.src;M(d,g.width);N(d,g.height);M(e,g.width);N(e,g.height);m=g.width/2;n=g.height/2;K(d,this.pointer.x-m);L(d,this.pointer.y-n);K(e,this.pointer.x-m);L(e,this.pointer.y-n);Ad(d,g.zIndex);Ad(e,g.zIndex+3000);if(this.label){Ad(this.label,2)}this.isFocus=false}};
M9p.wink=function(a){if(!this.wink) return;if(!a||!arguments[1]){window.clearTimeout(this.timer);this.blur()}if(a){if(this.isFocus){this.blur()}else{this.focus()}this.timer=this.setTimeout(this.wink,500,a,true)}};
M9p.setIcon1=function(a,b){this.icon1={"src":a.src,"width":a.width,"height":a.height,"zIndex":Ae(a.style.zIndex)}};
M9p.setZIndex=function(a){var d=this.icon,e=this.transparentIcon;Ad(d,a);Ad(e,Ae(a)+3000);this.setIcon1(d,e)};
A("MarkerElement",M9);
B(M9,"setPosition",M9p.b);

function P1(a){this.size=0;if(a){for(var b=a.length-1;b>=0;b--)this.add(a[b])}};
var P1p=P1.prototype;
P1p.add=function(a){if(!this.contains(a)){this[":"+a]=1;this.size++}};
P1p.remove=function(a){if(this.contains(a)){delete this[":"+a];this.size--}};
P1p.contains=function(a){return this[":"+a]==1};
A("PanKeys",P1);

function P2(a){this.ticks=a;this.tick=0}
var P2p=P2.prototype;
P2p.reset=function(){this.tick=0};
P2p.next=function(){this.tick++;var a=Math.PI*(this.tick/this.ticks-0.5);return(Au(a)+1)/2};
P2p.more=function(){return this.tick<this.ticks};
A("PanSiner",P2);

function P3(a,b,c){var t=this;t.eh=t.eventHandler;t.a=a?a:window;t.panel=b;t.panel2=c;t.c=false;t.d=new P4(0,0);t.e=false;t.f=null;t.g=null;t.h=new P4(0,0);t.i=new Array();t.j=new Array();t.k=t.eh("onMD");t.l=t.eh("onMV");t.m=t.eh("onMU");t.n=t.eh("onClick");t.o=t.eh("onDblClick");if(D.l.type!=1){E1.f(window,"mouseout",t.eh("onWindowMouseOut"))}}
var P3p=P3.prototype;
P3p.setDrawType=function(a){var b;switch(a){case "DRAWPOINT":b="CLICK";break;case "DRAWLINE":b="MOUSEUP";break;case "DRAWPOLYLINE":b="DBLCLICK";break;case "DRAWOVAL":b="MOUSEUP";break;case "DRAWRECT":b="MOUSEUP";break;case "DRAWPOLYGON":b="DBLCLICK";break;case "FILLOVAL":b="MOUSEUP";break;case "FILLPOLYGON":b="DBLCLICK";break;default:a=null;b=null;break;}this.removeEvents();this.addEvents();this.j=new Array();this.f=a;this.g=b};
P3p.onMD=function(a){E1.d(this,"mousedown",a);if(a.cancelDrag){return}var b=a.button==0||a.button==1;if(this.c||!b){return false}var c=$a(a,this.a);this.d.x=c.x;this.d.y=c.y;if(this.g=="MOUSEUP"){this.e=true;if(!this.j[0]){this.j[0]=new P4(c.x,c.y)}E1.f(this.a,"mousemove",this.l);E1.f(this.a,"mouseup",this.m);E1.f(document.body,"mouseup",this.m)}this.clickStartTime=(new Date()).getTime();this.h.x=a.clientX;this.h.y=a.clientY;E1.d(this,"drawstart");this.originalCursor=this.a.style.cursor;$2(a)};
P3p.onMV=function(a){var b=$a(a,this.a);if(!b) return;if(D.l.os==1){if(a==null){return}if(this.drawDisabled){this.savedMove=new Object();this.savedMove.clientX=b.x;this.savedMove.clientY=b.y;return}this.setTimeout(function(){this.drawDisabled=false;this.onMV(this.savedMove)},30);this.drawDisabled=true;this.savedMove=null}this.draw(b.x,b.y)};
P3p.draw=function(a,b){try{var c=[],d=[],e=this.j,i;if(!this.j||this.j.length==0) return;for(i=0;i<e.length;i++){c.push(e[i].x);d.push(e[i].y)}var f=[],g=[];f=f.concat(c);g=g.concat(d);if(!this.i[0]){this.i[0]=new G1(this.panel2&&this.f=="DRAWRECT"?this.panel2:this.panel)}switch(this.f){case "DRAWLINE":this.i[0].drawLine(c[0],d[0],a,b);break;case "DRAWPOLYLINE":var h=e.length-1;if(!this.i[h]){this.i[h]=new G1(this.panel)}this.i[h].drawLine(c[h],d[h],a,b);break;case "DRAWRECT":var l,t,w,h;if( a<=c[0]&&b<=d[0]) {l=a;t=b;w=c[0]-a;h=d[0]-b} else if(a>c[0]&&b<=d[0]) {l=c[0];t=b;w=a-c[0];h=d[0]-b} else if( a<=c[0]&&b>d[0]) {l=a;t=d[0];w=c[0]-a;h=b-d[0]} else if( a>c[0]&&b>d[0]) {l=c[0];t=d[0];w=a-c[0];h=b-d[0]}this.i[0].drawRect(l,t,w,h);break;case "DRAWPOLYGON":f.push(a);g.push(b);this.i[0].drawPolygon(f,g,e.length+1);break;case "FILLOVAL":var p=W(a-c[0]);var q=W(b-d[0]);var r=Ae( Math.sqrt(p*p+q*q) );this.i[0].fillOval(c[0]-r,d[0]-r,2*r,2*r);break;case "FILLPOLYGON":f.push(a);g.push(b);this.i[0].fillPolygon(f,g,e.length+1);break;}E1.d(this,"draw");}catch(er){}};
P3p.reDraw=function(a){if(this.f=="DRAWPOLYLINE"){if(!a) a=this.j;this.j=a;for (var i=0;i<this.i.length;i++){this.i[i].clear()}this.i=[];for (var i=0;i<a.length-1;i++ ){this.i[i]=new G1(this.panel);this.i[i].drawLine(a[i].x,a[i].y,a[i+1].x,a[i+1].y);}}};
P3p.onMU=function(a){E1.g(this.a,"mouseup",this.m);E1.g(document.body,"mouseup",this.m);E1.d(this,"mouseup");var b=(new Date()).getTime();var c=$a(a,this.a);if(this.g=="MOUSEUP"){this.j[1]=new P4(c.x,c.y);this.drawEnd()}$2(a)};
P3p.onClick=function(a){var b=a.button==0||a.button==1;if(this.c||!b){return false}E1.d(this,"click",a);var c=$a(a,this.a);if(this.g=="CLICK"){this.j[0]=new P4(c.x,c.y);this.drawEnd();}if(this.g=="DBLCLICK"){if(this.j.length==0){E1.f(this.a,"mousemove",this.l)}this.j.push(new P4(c.x,c.y));E1.d(this,"addnode",this.f,this.j)}$2(a)};
P3p.onDblClick=function(a){var b=a.button==0||a.button==1;if(this.c||!b){return false}$2(a);if(this.g=="DBLCLICK"){this.drawEnd()}E1.d(this,"dblclick",a)};
P3p.onWindowMouseOut=function(a){if(!a.relatedTarget&&this.e){this.onMU(a)}};
P3p.drawEnd=function(){this.e=false;E1.d(this,"drawend",this.f,this.j)};
P3p.reset=function(){this.j=new Array();for (var i=0;i<this.i.length;i++){this.i[i].clear()}this.i=new Array()};
P3p.disable=function(){this.c=true};
P3p.enable=function(){this.c=false};
P3p.addEvents=function(){E1.f(this.a,"mousedown",this.k);E1.f(this.a,"mouseup",this.n);E1.f(this.a,"dblclick",this.o)};
P3p.removeEvents=function(){E1.g(this.a,"mousedown",this.k);E1.g(this.a,"mousemove",this.l);E1.g(this.a,"mouseup",this.n);E1.g(this.a,"dblclick",this.o)};
A("PlotObject",P3);
function P4(a,b){this.x=a;this.y=b}
var P4p=P4.prototype;
P4p.toString=function(){return this.x+","+this.y};
P4p.equals=function(a){if(!a)return false;return this.x==a.x&&this.y==a.y};
P4p.distanceFrom=function(a){var b=this.x-a.x;var c=this.y-a.y;return Math.sqrt(b*b+c*c)};
P4p.approxEquals=function(a){if(!a)return false;return $i(this.x,a.x)&&$i(this.y,a.y)};
A("Point",P4);
function Q1( a,b,c ){this.id=a;this.name=b;this.caption=b;}
Q1.loadFromXML=function( a ){if(a==null) return;var b=X(a,"id");var c=X(a,"caption");var d=$g(a);return d;};
A("Qds",Q1);
function R1( a,b,c,d ){this.id=a;this.name=b;this.caption=b;this.mp=c;this.filter=d;}
R1.loadFromXML=function( a ){if(a==null) return;var b,c,d,e,f,g;b=X(a,"id");c=X(a,"caption");d=Aa(a,"mp")[0];e=$g(d);f=Aa(a,"filter");if(f.length>0)g=$g(f[0]);return new R1(b,c,e,g);};
A("Rmp",R1);
function S1(a,b){this.width=a;this.height=b}
var S1p=S1.prototype;
S1p.toString=function(){return"("+this.width+", "+this.height+")"};
S1p.equals=function(a){if(!a)return false;return this.width==a.width&&this.height==a.height};
S1p.approxEquals=function(a){if(!a)return false;return $i(this.width,a.width)&&$i(this.height,a.height)};
A("Scope",S1);
function S2( a,b,c,d,e,f,g,h,i,j ){var th=this;th.id=a;th.name=b;th.caption=b;th.areaId=c;th.areaid=c;th.defaultLevel=d;th.defaultdisplevel=d;th.defaultCX=e;th.defaultdispcx=e;th.defaultCY=f;th.defaultdispcy=f;th.rmp=g;th.vmp=h;th.qds=i;th.dom=j;}
S2.loadFromXML=function( a ){if(a==null) return;var b,c,d,e,f,g,h,i,j,k;b=Aa(a,"sds")[0];c=X(b,"id");d=X(b,"caption");e=X(b,"areaid");f=Ae(X(b,"defaultdisplevel"));g=Ae(X(b,"defaultdispcx"));h=Ae(X(b,"defaultdispcy"));i=R1.loadFromXML(Aa(a,"rmp")[0]);j=V1.loadFromXML(Aa(a,"vmp")[0]);k=Q1.loadFromXML(Aa(a,"qds")[0]);return new S2(c,d,e,f,g,h,i,j,k,a);};
S2.loadFromObj=function(a){if(a==null) return;return new S2(a.id,a.caption,a.areaid,a.defaultdisplevel,a.defaultdispcx,a.defaultdispcy,a.rmp,a.vmp,a.qds,a)};
A("Sds",S2);
var S2p=S2.prototype;
S2p.getCatalogs=function() {if(!this.qds) return null;var a=this.qds.catalog;a=(a.length>0?a:[a]);return a;};
S2p.getLayers=function( a ){if(!this.qds) return null;var b=[];for(var i=0;i<this.qds.catalog.length;i++){var c=this.qds.catalog[i];if( a==null||a==c.id||a.toLowerCase()=="all"){var d=(c.layer.length>0?c.layer:[c.layer]);b=b.concat(d);}}return b;};
S2p.getCatalogNameById=function( a ) {var b=this.getCatalogs();if(!b) return;for(var i=0;i<b.length;i++){if( a==b[i].id){return b[i].caption;}}};
S2p.getCatalogIdByName=function( a ) {var b=this.getCatalogs();if(!b) return;for(var i=0;i<b.length;i++){if(b[i].caption.indexOf(a)>-1){return b[i].id;}}};
S2p.getLayerNameById=function( a ) {var b=this.getLayers();if(!b) return;for(var i=0;i<b.length;i++){if( a==b[i].id){return b[i].caption;}}};
S2p.getLayerIdByName=function( a ) {var b=this.getLayers();if(!b) return;for(var i=0;i<b.length;i++){if(b[i].caption.indexOf(a)>-1){return b[i].id;}}};
S2p.getMplevels=function(){if(!this.rmp) return null;var a=this.rmp.mp.mplevel;a=(a.length>0?a:[a]);return a;};
function S3(){}
S3.baseURL="";
S3.cache=[];
S3.getStyleById=function(a){var b=S3.cache[a];if(b){return b}else{var d=S3.baseURL.replace(/(.*)\/$/g,"$1")+"\/";b=$d(d+a+".xml");if(!b||!b.firstChild) b=$d(d+"S01.xml");b=Aa(b,"style");if(b.length>0){var c=S4.loadFromXML(b[0]);S3.cache[a]=c;return c}}L2.a("load style by id("+a+") failed.")};
S3.preLoadStyle=function(a)
{
	var b,c,d=S3.baseURL.replace(/(.*)\/$/g,"$1")+"\/"+a+".xml";
	function cb(e,f,g)
	{
		if(f)
		{
			f=Aa(f,"style");
			if(f.length&&f.length>0)
			{
				for(var i=0;i<f.length;i++){c=X(f[i],"id");S3.cache[c]=S4.loadFromXML(f[i])}
				return;
			}
		}
		L2.a("preload style("+a+") failed.")
	}
	_downloadUrl(d,cb);
};
S3.loadStyle=function(a,f)	//(id,callback)
{
	var b=S3.cache[a];
	if(b)
	{
		f(b)
	}
	else
	{
		var d=S3.baseURL.replace(/(.*)\/$/g,"$1")+"\/"+a+".xml",i;
		i=_downloadUrl(d,null,"",1);
		if(i&&i.responseXML)
		{
			i=Aa(i.responseXML,"style");
			if(i.length>0)
			{
				var k=S4.loadFromXML(i[0]);
				S3.cache[a]=k;
				f(k)
				return
			}
		}
		L2.a("load style("+a+") failed.")
	}
	
};
A("StyleLib",S3);
function S4(a,b,c,d){this.id=a;this.type=b;this.obj=c;this.xml=d}
S4.loadFromXML=function(a){var c=X(a,"id");var d=c.substring(0,1);var e="S";switch(d){case "S":case "L":case "R":e=d;break;}try{f=$g(a);}catch(e){L2.a("e="+e.toString())}return new S4(c,e,f,a)};
S4.prototype.getObject=function(){return this.obj;};
S4.loadFromJson=function(a)
{
	var c=a.id;
	var d=c.substring(0,1);
	var e="S";switch(d){case "S":case "L":case "R":e=d;break;}
	return new S4(c,e,a)
};
A("StyleNode",S4);
function T1(a,b){this.id=a;this.ticketClass=b;};
T1.obj=new Object()
T1.create=function(a){if(!a)a="_dtc";var b=T1.obj;if(!b[a])b[a]=1;else b[a]++;return new T1(b[a],a)};
T1.invalidateAll=function(){var o=T1.obj;for(var a in o){try{o[a]++}catch(b){}}};
T1.invalidate=function(a){T1.obj[a]++};T1.prototype.isValid=function(){return T1.obj[this.ticketClass]==this.id};
A("Ticket",T1);
function T2(){};
T2.a=function(a,b,c,d,e,f){var l=E("table"),m=E("tbody",l),n=E("tr",m),o=E("td",n);if(a) Af(l,a);if(b&&c){M(l,b);N(l,c);l.width=b;l.height=c}if(e||(d||(e==0||d==0))){Q(l);K(l,d);L(l,e)}if(f||f==0){Ad(l,f)}l.style.border="0px";l.appendChild=function(a){G(o,a)};l.removeChild=function(a){Ag(o,a)};l.td=o;return l};
A("TableLayer",T2);
C(T2,"create",T2.a);
function V1( a,b ){this.id=a;this.name=b;this.caption=b;}
V1.loadFromXML=function( a ){if(a==null) return;var b=X(a,"id");var c=X(a,"caption");return new V1(b,c);};
A("Vmp",V1);
function W1()
{
var op="OPTIONAL";var th=this;th.aPPID=op;th.userInfo=op;th.sPInfo=op;th.protocolType=op;th.wmsxml=op;
th.setUserInfo=function(a){th.userInfo=a;};
th.setAPPID=function(a){th.aPPID=a;};
th.setSPInfo=function(a){th.sPInfo=a;};
th.setProtocolType=function(a){th.protocolType=a};
th.setWmsxml=function(a){th.wmsxml=a};
th.getUserInfo=function(){return th.userInfo;};
th.getSPInfo=function(){return th.sPInfo;};
th.getAPPID=function(){return th.aPPID;};
th.getVariantString=function(){var sep="",p,v="";try{var a=this;for(var item in a){p=a[item];if(typeof(p)=="function"){continue;}if(typeof(p)=="number"){p=""+p;}if(typeof(p)=="string"){if( p=="MUST_BE_VALIDATED" ){var e=new Error();e.description="p "+item+" is no value.";throw(e);}p=p.replace(/&amp;/g,'&');p=p.replace(/&nbsp;/g,' ');p=p.replace(/%u/g,'%25u');if( p.indexOf("==")>-1 ){var e=new Error();e.description="p "+item+"has==.";throw(e);}if( p.indexOf("!!")>-1 ){var e=new Error();e.description="p "+item+"has !!.";throw(e);}if( p!=""&&p!=op ){v+=sep+item.substring(0,1).toUpperCase()+item.substring(1)+"=="+p;sep="!!";}}}return v;}catch(e){}};
this.verifyString=function(){};
}
A("WmspVariant",W1);
function X1(){}
X1.create=function(){if(typeof ActiveXObject!="undefined"){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest()}return null};
A("XmlHttp",X1);
function X2(a){this.xmlhttp=a}
X2.prototype.continueWith=function(a,b){var c=this.xmlhttp;c.open("GET",a,true);c.onreadystatechange=function(){if(c.readyState==4){b(c.responseText);c.onreadystatechange=$7}};c.send(null)};
A("XmlHttpSender",X2);

function X3(a){this.a=a}
X3.cache_=new Object();
X3.create=function(a){return new X3(a)};
X3.getCached=function(a){return X3.cache_[a]};
X3.cache=function(a,b){X3.cache_[a]=b};
X3.prototype.transformToHTML=function(a,b){if(typeof a.transformNode!="undefined"){b.innerHTML=a.transformNode(this.a)}else if(typeof XSLTProcessor!="undefined"&&typeof XSLTProcessor.prototype.importStylesheet!="undefined"){var c=new XSLTProcessor();c.importStylesheet(this.a);var d=c.transformToFragment(a,window.document);b.innerHTML="";G(b,d)}else{var e="";b.innerHTML=e}};
X3.asynchronousTransform=function(a,b,c,d,e){if(D.l.type==3&&X3.scriptedTransform){var f=function(){X3.scriptedTransform(a,b,c);if(d){d()}};if(!$3("nxsl")){var g=$e("nxsl");g.onload=f;g.src=""}else{window.setTimeout(f,1)}return}var h=X3.getCached(c);if(h){window.setTimeout(function(){h.transformToHTML(a,b);if(d){d()}},1)}else{var i=T1.create(e);var l=D2.create(e,true);l.continueWith(c,function(m){if(i.isValid()){var s=m.replace(/\{\{[#\/!].*?\}\}/g,"").replace(/^[^<]*/,"");var t=$c(s);var x=X3.create(t);x.transformToHTML(a,b);X3.cache(c,x);if(d){d()}}})}};
A("XmlStyleSheet",X3);

function E2(a){var _a="map.EntireMap";var _b=a;this.submit=function(m,n){var a=_b;var b=new E3();b.setUserInfo( a.getUserInfo() );b.setAPPID( a.getAppId() );b.setSPInfo( a.getSpInfo() );var c=new MapRequest(_a, b);a.submit(c, this, false, this.engine, m,!n);E1.d(this,"submit")};this.mapWindowCallback=function(a,b){};this.mapResultCallback=function(a){var b=a.getResult("ErrorMessage");if(b!="") {E1.d(this,"errormessage",b);}E1.d(this,"mapresultcallback",a);}}
function E3(){this.base=W1;this.base();}
A("EntireMapOperation",E2);
A("EntireMapVariant",E3);
var ss=Aa(document,"SCRIPT"),el=ss[ss.length-1],ms=X(el,"modules"),st=X(el,"sect");el.loadModules=function(){};if(ms){ms=D.o+"c/"+ms.replace(/,/g,"!!")+".htm";function lm(){document.write('<scr'+'ipt id="script4modules" type="text/javascript" src="'+ms+'"></scr'+'ipt>')};function lm2(a){a=!a?el:a;a.src=ms};if(st&&st.toLowerCase()=="true") el.loadModules=lm2;else lm();window.onModulesLoaded=function(a){if(el.onModulesLoaded)el.onModulesLoaded();}}
})()




