/* Coypright (C) 2009 Go2map Inc. All rights reserved. */
/*LastModified by zzy at 20090921 Diff:iconclass loadLabel*/
(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://p1.go2map.com/seamless1/";
D.g=D.f;
D.h="180";
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;2009 "+unescape("%u641C%u72D7%u5730%u56FE");
D.dataCopyright="Data&#169;NavInfo&amp;Nav2";
D.k=10;
D.l=new function()
{this.type=0;this.version=0;this.os=null;this.check=function(){return (this.type==1&&this.version==5)};var d=navigator.userAgent.toLowerCase();if(d.indexOf("msie")!=-1&&document.all){this.type=1;if(d.indexOf("msie 5")){this.version=5}}else if(d.indexOf("mozilla")!=-1){this.type=2}if(d.indexOf("x11;")!=-1){this.os=1}else if(d.indexOf("macintosh")!=-1){this.os=2}};
D.m="http://tag.go2map.com/stylemanager/styleimage/";
D.n="http://tag.go2map.com/stylelib/labellib";
D.o="http://lib.go2map.com/";
D.q="http://hbpic1.go2map.com/seamless/";
D.e=((tmp=D.e)==null?"":tmp);
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.backgroundImage='url("'+b+'")'}
function Ag(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}
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\"/>");}document.createStyleSheet().addRule("v\\:*","{behavior=url(#default#VML)}");}
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.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}else if(typeof a.pageX!="undefined"){var f=$5(b);c.x=a.pageX-f.x;c.y=a.pageY-f.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=h.test(i)?f:i;g=h.test(j)?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){var c,d=$n(a),e=window.location.hash,f,g;if(d!=""&&e!=""){f=new RegExp("(#|&)"+a+"="+"[^&]*(&|$)","ig");e=e.replace(f,"&").replace(/#/g,"").replace(/&+/g,"&").replace(/^&|&$/g,"");}c=e!=""?"&":"";window.location.hash=e+c+a+"="+b;}A("_setUrlHashParam",$p);
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=V(th.minX,a.x);th.maxX=U(th.maxX,a.x);th.minY=V(th.minY,a.y);th.maxY=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);};
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*Math.acos((Math.sin(y1)*Math.sin(y2)+Math.cos(y1)*Math.cos(y2)*Math.cos(x2-x1)))};
}
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");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.onClick=function(a){E1.d(this,"click")};
D3p.onDbC=function(a){var b=a.button==0||a.button==1;if(this.c||!b){$2(a);return false}E1.d(this,"dblclick")};
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==2){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,"dblclick",th.j)};
D3p.removeEvents=function(){var th=this;if(D.l.type==2){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,"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);
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;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");if(!e){e=$j(e0)}var p=e.split("#");var n=[];for(var q=0;q<p.length;q++){var r=p[q].split(",");var tn=[];for(var m=0;m<r.length;m+=2){if(r[m]!=""&&r[m+1]!=""&&r[m+1]!=null){var tx=parseFloat(r[m]);var ty=parseFloat(r[m+1]);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=StyleNode.loadFromXML(g[0])}else{g=S3.getStyleById(h)}}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;if(j.length>0){var l=j[0].firstChild;var src=X(j[0],"src");var w=X(j[0],"width");var h=X(j[0],"height");var 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");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.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);}if(!f.xml){f=S3.getStyleById(f.id);}n=f.xml.cloneNode(true);if(n&&f.id!="custom"){while(n.hasChildNodes()){Ag(n,n.firstChild);}}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);this.id=b.id;this.caption=b.caption;this.type=b.type;this.points=b.points;this.bounds=b.bounds;this.style=b.style;this.label=b.label;this.detail=b.detail;this.segments=b.segments;this.xml=b.xml};
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 if(D.l.type==2){var g,h,k,l;if(!this.shape){g=Ai("line");Y(g,"stroke","#0000ff");Y(g,"stroke-width","2");Y(g,"stroke-opacity","0.7");G(this.panel,g);this.shape=g;}g=this.shape;h=this.panel.parentNode.style;k=parseInt(h.left);l=parseInt(h.top);Y(g,"x1",a-k);Y(g,"y1",b-l);Y(g,"x2",c-k);Y(g,"y2",d-l)}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="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){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||[];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]};
var jc=[9,0,6,1,4,2,2,4,0,8,0,12,1,14,2,16,5,19,7,23,8,26,9,30,9,34,11,34,11,30,12,26,13,24,14,21,16,18,18,16,20,12,20,8,18,4,16,2,15,1,13,0];
I1.load(new I1("pushpin",20,34,new P4(11,34),new P4(9,2),new P4(17,23),D.e+"/images/shadow50.png",37,jc));
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){if(typeof arguments.callee.hasFilters=="undefined"){var c=E("div");arguments.callee.hasFilters=typeof c.style.filter!="undefined"}var d;if(arguments.callee.hasFilters){d=E("div");d.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+a+(b?'",sizingMethod=crop)':'")')}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.selfHref;if(!c){c=self.location.href;c=c.substring(c.indexOf("?")+1);L2.selfHref=c}if(c.indexOf("debug=go2maplsp")>-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(){if(window.location.href.indexOf("nolog=true")>-1) return;var a=arguments,u=D.i,c="img"+u(),f,g,h,k,s="SMAPUVID=";if(a.length==0){return;}f="user="+L2.gid;for(var i=0;i<a.length;i++){if(a[i]){f+="&&"+a[i]}}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,"");g="&&referrer="+referrer.replace(/(&&)+/,"&")+"&&r="+u()+"&&uvid="+k}h=D.a+"?"+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,1);th.mask.id=th.id+"MASKLAYER";Af(th.mask,D.e+"/images/pixel.gif");th.mask.unselectable="on";th.mask.onselectstart=$9;E1.f(th.div,D.l.type==2?"DOMMouseScroll":"mousewheel",th._e("onMW"));th.q=L1.b(0,0,0,0,3);th.panel=L1.b(0,0,0,0,5);G(th.div,th.mask);G(th.div,th.q);G(th.div,th.panel);G(th.a,th.div2);G(th.a,th.div);th.a.unselectable="on";th.a.oncontextmenu=$9;if(D.l.type==2){th.svgDiv=L1.b(0,0,c,d,1);th.svgDiv.id=th.id+"SVGPANEL";G(th.q,th.svgDiv);var m,p;th.svg=Ai("svg",this.svgDiv);Y(th.svg,"height",d);Y(th.svg,"width",c);m=Ai("marker",th.svg);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");}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);if(D.l.type==2){th.r=new P3(th.div,th.svg,th.panel)}else{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.mask,"mousemove",th._e("onMv"));E1.f(th.mask,"mouseout",th._e("onMt"));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(){while(this.v.length>this.j.width){var a=this.v.pop();for(var b=0;b<a.length;b++){Ag(this.div,a[b]);}}for(var b=this.v.length;b<this.j.width;b++){this.v.push([]);}for(var b=0;b<this.v.length;b++){while(this.v[b].length>this.j.height){var c=this.v[b].pop();Ag(this.div,c);}for(var d=this.v[b].length;d<this.j.height;d++){var c=I3.a(null,this.spec.f.width,this.spec.f.height,null,null,0,null,null);Q(c);this.v[b].push(c);G(this.div,c);this.ag(c,b,d)}}};
M1p.w=function(){if(this.v){for(var a=0;a<this.v.length;a++){if(this.v[a]){for(var b=0;b<this.v[a].length;b++){Ag(this.div,this.v[a][b]);}}}}this.v=null;};
M1p.x=function(){this.firstTimeMapTicket=T1.create("firstTimeLoadMapImages");this.w();this.v=[];this.af();this.u()};
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){var d,e,f,g,th=this;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()){a.src=th.spec.j}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,th.isHybird,th.rmpId);k2=th.spec.t(h,i,j);if(a.src!=k){var l,l2;l=th.spec.h;l2=th.spec.i;a.src=D.e+"/images/pixel.gif";var m,n=0,o=0;var p=th.firstTimeMapTicket.isValid();if(p){m=th.tmpDivOffset;if(!m){m=$6(th.div,th.a);th.tmpDivOffset=m;}n=m.x+f;o=m.y+g;}var isDebug=(window.location.search.indexOf("debug=go2maplsp")>-1);a.onload=function(){a.isLoaded=1;th.setTimeout(th.onTileLoaded,100,a)};if(!isDebug){a.onerror=function(){this.src=(this.src==k2?l:l2)};}else{a.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)){window.setTimeout(function(){a.isLoaded=-1;th.isLoading=true;a.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.loadViewOverlays=function(a){};
M1p.removeViewOverlays=function(a,b){};
M1p.parseOverlays=function(a){};
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 a=this.au(new S1(0,0));if(W(this.s.left)>10000000||W(this.s.top)>10000000){this.cancelPan();this.as(this.m);return}while(a.width<-this.g.width/2){this.ak();this.au(a)}while(a.width>this.g.width/2){this.aj();this.au(a)}while(a.height<-this.g.height/2){this.am();this.au(a)}while(a.height>this.g.height/2){this.al();this.au(a)}this.cc()};
M1p.aj=function(){this.h.width--;this.e.x--;var a=this.v.pop();if(a){this.v.unshift(a);for(var b=0;b<a.length;b++){this.ag(a[b],0,b)}}};
M1p.ak=function(){this.h.width++;this.e.x++;var a=this.v.shift();this.v.push(a);var b=this.v.length-1;for(var c=0;c<a.length;c++){this.ag(a[c],b,c)}};
M1p.al=function(){this.h.height--;this.e.y--;for(var a=0;a<this.v.length;a++){var b=this.v[a].pop();this.v[a].unshift(b);this.ag(b,a,0)}};
M1p.am=function(){this.h.height++;this.e.y++;var a=this.v[0].length-1;for(var b=0;b<this.v.length;b++){var c=this.v[b].shift();this.v[b].push(c);this.ag(c,b,a)}};
M1p.onMW=function(a){E1.d(this,"onmousewheel",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){Ad(this.mask,20000);};
M1p.onDrawEnd=function(a,b){Ad(this.mask,1);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){var e=(a.srcElement?a.srcElement:a.target);if(a.button&&a.button!=1||e.id!=this.mask.id) return;this.closeInfoWindow();if(window.focus) window.focus();E1.d(this,"click",a);};
M1p.onMD=function(a){E1.d(this,"mousedown",a)};
M1p.onContextMenu=function(a){var c=this.getMcXYBySC(a);E1.d(this,"contextmenu",a,c)};
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.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+10);L(b,c.y+10);E1.d(this,"mousemove",c)};
M1p.onMt=function(a){O(this.cursorTip)};
M1p.an=function(){if(this.v.length==0){return}this.tmpDivOffset=null;var a=[];for(var b=0;b<this.v.length;b++){for(var c=0;c<this.v[b].length;c++){f=this.v[b][c];f.coordX=b;f.coordY=c;var d=V(b,this.v.length-b-1);var e=V(c,this.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)}};
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){this.f=true;if(arguments[1]==null){O(this.div2);}this.at(a);this.an();this.bj();E1.d(this,"move");E1.d(this,"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;if(!this.t()) return;b=this.viewSize;c=b.width;d=b.height;e=this.mask.style;f=this.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;this.af();this.u();this.as(this.m);E1.d(this,"resize")}e.width=I(c);e.height=I(d);if(D.l.type==2){k=this.svgDiv;M(k,c);N(k,d);Y(this.svg,"height",d);Y(this.svg,"width",c)}};
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);if(D.l.type==2){K(this.svgDiv,e.x);L(this.svgDiv,e.y);}this.sp=null;if(D.l.type==2)this.bj();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 StyleNode(!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 StyleNode(!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.be();E1.d(this,"addfeature",a)};
M1p.ay=function(a){try{var b,c=this,d,e;;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.q);break;}if(a.type=="S"){e=b.mouseTarget;E1.f(e,"click",function(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)})}else{E1.f(b,"click",function(f){E1.d(c,"click",a)});E1.f(b,"mousedown",function(f){if(!f&&event){f=event}var g=f.button;if(g==2){E1.d(c,"rightclick",a)}});E1.f(b,"mouseover",function(f){if(!f&&event){f=event}a.eventPt=$a(f,c.div);Event.trigger(c,"mouseover",a,f)});E1.f(b,"mouseout",function(f){if(!f&&event){f=event}a.eventPt=$a(f,c.div);Event.trigger(c,"mouseout",a,f)})}a.element=b;var d=this.bh(a);a.element.label=d;E1.f(d,"click",function(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;if(!a.element){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 e=a.element;if(e){if(a.type=="S"){e.e()}else{Ag(e.parentNode,e)}var d=e.label;if(d&&d.parentNode){Ag(d.parentNode,d)}for(var c in e){try{if(e[c])e[c]=null}catch(ex){}}e=d=c=a.element=null}};
M1p.clearAll=function(a){this.clearFeatures();this.removeQueryArea();var c="";if(a)c="<br><br><div align=center style=color:#ff0000><b>"+a+"</b></div>";var d=this.outputContainer;if(d){if(d.setTitle&&d.setBody&&d.show){d.setTitle(c==""?"":unescape("%u63D0%u793A"));d.setBody(c);if(c!="")d.show();}else{d.innerHTML=c}}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);}r=a.element;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();this.cancelPan();i=T1.create("infoWindowOffscreen");iwd.prepareOffscreen();j=this;f=function(){if(i.isValid()){iwd.flipOffscreenAndSize();iwd.positionAt(d.x,d.y,h,j.viewSize,j.bn(p));iwd.show();if(!b2) j.bo();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];if(!b.element){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};
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"){d=L1.create(D.e+"/images/markerTransparent.png",b.width,b.height,0,0,3000,false,"noprint");}else{d=I3.a(D.e+"/images/pixel.gif",b.width,b.height,0,0,3000);}m=d;$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(document.getElementsByName("span_label_"+a.id).length>0) return;if(!b) b=this.q;var c,d,e,f,g,h=[];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?"Label01":d);if(!S3.cache[d]) {var fc,cu;fc=document.createStyleSheet;cu=D.n+"+StyleID="+d+".css";if(fc){fc(cu)}else{var ns=E("link",document.documentElement.childNodes[0]);ns.rel="stylesheet";ns.href=cu;}S3.cache[d]=true;}if(a.type!="R"){f=E("span",e);Q(f);$4(f,d);g=Ah(c+" ");G(f,g);e.texts=[f];}else{f=E("span",e);Q(f);$4(f,d);g=Ah(c);G(f,g);e.texts=[f];G(a.element,e);}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(){for(var a=0;a<this.features.length;a++){var b=this.features[a];if(b.element){if(b.type=="S"){this.bg(b.element,b)}else{this.bk(b,this.q)}this.bi(b)}}var c=this.queryArea;if(c&&c.element){if(c.type=="S"){this.bg(c.element,c)}else{this.bk(c,this.q)}this.bi(c)}if(this.infoWindow){this.bl();}};
M1p.bl=function(){if(!this.infoWindow||!this.infoWindow.isVisible()||!this.infoWindow.feature){return}var a,b,c;a=this.infoWindow.feature.points;a=a[a.length>>1];b=this.spec.q(a.y,a.x,this.zoomLevel);c=this.ad(b.x,b.y);this.infoWindow.positionAt(c.x,c.y,this.infoWindow.feature.getIconClass(),this.viewSize,this.bn(a))};
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.mask,"default");this.s.enable();$2(a);return false;case 32:this.resetMap();$2(a);return false;case 46:this.clearAll();$2(a);return false;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.zoomTo(a.keyCode-49);$2(a);L2.b("appid="+this.appId,"oprt=_keyZoom","param="+(a.keyCode-49),"type=map");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){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;}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,g="Verdana,sans-serif";b=this.bx();K(b,2);b.style.bottom=I(2);c=E("a",b);c.href="http://map.sogou.com/";c.target="_blank";d=c.style;d.fontFamily=g;d.fontSize="7pt";f=E("a",b);f.innerHTML="&nbsp;- ";e=E("a",b);d=e.style;d.fontFamily=g;d.fontSize="7pt";d.color="#00f";c.innerHTML=D.j;G(this.a,b);e.href="http://www.nav2.com.cn/";e.target="_blank";e.innerHTML=D.dataCopyright;this.mainCopyright=b;this.dataCopyright=e};
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(2,-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,3);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=new Array();var g;var d=a.segments;d=(d&&d.length>1?d:[a.points]);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);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(" ");var o=b.length;o=o>>1;if(b[o-1].x-b[o].x>5){b=b.reverse()}return h};
M1p.bz=function(a){if(a.type=="S") return;var b,c,f,g,h,i,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(c.length==1){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;f=this.spec.q(c[0].y,c[0].x,this.zoomLevel);a.bitmapPoints=[f];k=this.ad(f.x,f.y);w=Ae(W(g.maxX-g.minX));h=Ae(W(g.maxY-g.minY));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(D.l.type==2){if(!a.element){i=Ai("ellipse");Y(i,"stroke","#3366FF");Y(i,"stroke-width","1pt");Y(i,"stroke-dasharray","3");Y(i,"fill",(a.type=="R"?"#ffff00":"none"));Y(i,"fill-opacity","0.3");}Y(i,"cx",w>>1);Y(i,"cy",h>>1);Y(i,"rx",w>>1);Y(i,"ry",h>>1);}}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 if(D.l.type==2){var sw=a.type=="R"?"1":"2";if(!a.element){i=Ai("path");}Y(i,"d",this.cb(a,f,g))}}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==2){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+")";break;}if(s!=""&&t!="") Y(i,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(i,s,t);}}}if(a.type=="L") Y(i,"fill","none");Y(i,"stroke-linecap","round");Y(i,"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);if(D.l.type==2){G(this.svg,g);}else 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=new Array();var g;var d=a.segments;d=(d&&d.length>1?d:[a.points]);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);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");else f.push("L");f.push("X_"+g.x);f.push("Y_"+g.y);}if(a.type=="R"){f.push("Z")}}for(var i=0;i<f.length;i++){var s,t;s=this.ab();t=this.ad(s.minX,s.minY);if(f[i].indexOf("X_")>-1) f[i]=Ae(f[i].replace(/X_/,""))-t.x;else if(f[i].indexOf("Y_")>-1) f[i]=Ae(f[i].replace(/Y_/,""))-t.y;}var h=f.join(" ");var o=b.length;o=o>>1;if(b[o-1].x-b[o].x>5){b=b.reverse()}return h};
M1p.cc=function(){if(this.firstTimeMapTicket.isValid()){T1.invalidate("firstTimeLoadMapImages");var b=this.v;for(var i=0;i<b.length;i++){for(var j=0;j<b[i].length;j++){this.ag(b[i][j],i,j)}}}};
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);

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;th.o=D.g;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){alert(a);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,"onmousewheel",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;spec.vmpBaseURL=this.o;this.map.isLoadVmp=this.l;this.map.isLoadAd=this.m;this.map.av(spec);this.map.bd();this.map.removeFeatures();this.map.removeViewOverlays();E1.d(this,"sdschange",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.setHyBird=function(a,c){var b=this.map;b.isHybird=a;b.rmpId=c;if(b.t()) b.aq(b.y(),b.zoomLevel);};
M2p.onMapMouseDown=function(){};
M2p.onMapClick=function(a,a2){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(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){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();Ad(m.mask,1)}else{m.s.disable();m.r.enable();m.r.setDrawType(a);Ad(m.mask,2000)}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.mask,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 c=this.map,d=c.spec.o,e=c.zoomLevel,f,g=c.div,h=c.div2;if(a<0||a>=d) {E1.d(this,"animatezoomoverflow",d,a);return}if(D.l.type==2){c.zoomTo(a);return}if(this.savedOffset==null){this.currentZoom=this.currentZoom2=this.oldZoom=e;this.targetZoom=a;O(c.q);P(h);K(h,g.offsetLeft);L(h,g.offsetTop);while(h.hasChildNodes()){Ag(h,h.firstChild);}for(var i=0;i<c.v.length;i++){for(var j=0;j<c.v[i].length;j++){f=I3.a(null,c.spec.f.width,c.spec.f.height,null,null,0,null,null);Q(f);K(f,c.v[i][j].offsetLeft);L(f,c.v[i][j].offsetTop);f.src=c.v[i][j].src;G(h,f);}}c.cc();c.zoomTo(a,1);this.savedOffset={"x":g.offsetLeft,"y":g.offsetTop};this.savedOffset2={"x":h.offsetLeft,"y":h.offsetTop};}else if(b==null){return}this.currentZoom+=0.5*(this.targetZoom-this.currentZoom);this.currentZoom2+=0.5*(this.targetZoom-this.currentZoom2);if(W(this.targetZoom-this.currentZoom2)<0.05){P(c.q);K(g,R(this.savedOffset.x));L(g,R(this.savedOffset.y));g.style.zoom=1;this.savedOffset=null;E1.d(this,"animatezoom",this.oldZoom,a);L2.b("appid="+this.getAppId(),"oprt=_animateZoomTo","param="+e+","+a,"type=map")}else{this.applyZoom(this.currentZoom,this.targetZoom,g,this.savedOffset);this.applyZoom(this.currentZoom2,this.oldZoom,h,this.savedOffset2);this.setTimeout(this.animateZoomTo,50,a,this.savedOffset)}};
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){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(!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.setInputContainer=function(a){this.inputContainer=a;};
M2p.setOutputContainer=function(a){this.outputContainer=a;};
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.getInputContainer=function(){return this.inputContainer};
M2p.getOutputContainer=function(){return this.outputContainer};
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";}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/mapbg30.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;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;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,c2,z){var x,d,e,f,g,h;x=this.n;if( a<x[c].minX||a>x[c].maxX||b<x[c].minY||b>x[c].maxY ){return this.h}b=-b;b--;d=!c2?this.rmpBaseURL:D.q;d=d.replace(/(.*)\/$/g,"$1")+"/";e=this.sds.areaid;z=!z?D.h:z;f=(!c2?this.sds.rmp.id:z);g=this.c[c].id;h=(!c2?this.a:"JPG");var i,j;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)));}return d+e+"/"+f+"/"+g+"/"+i+"/"+j+"/"+(a>=0?a:"M"+W(a))+"_"+(b>=0?b:"M"+W(b))+"."+h;};
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;};
A("MapSpec",M7);
B(M7,"getLatLng",M7p.r);
B(M7,"getTileURL",M7p.t);
B(M7,"getLowestZoomLevel",M7p.u);
B(M7,"getRealLevelIndex",M7p.x);

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(Math.sin(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==2){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");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");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")};
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.firstChild) b=$d(d+"S01.xml");b=Aa(b,"style");if(b.length>0){var c=StyleNode.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")+"\/";b=$d(d+a+".xml");if(b){b=Aa(b,"style");for(var i=0;i<b.length;i++){c=X(b[i],"id");S3.cache[c]=StyleNode.loadFromXML(b[i])}return true }L2.a("preload style("+a+") failed.")};
function StyleNode(a,b,c,d){this.id=a;this.type=b;this.obj=c;this.xml=d}
StyleNode.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){alert("e="+e.toString())}return new StyleNode(c,e,f,a)};StyleNode.prototype.getObject=function(){return this.obj;};
A("StyleLib",S3);
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,'%2525u');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);
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();}}
})()

function EntireMapOperation(a){var _a="map.EntireMap";var _b=a;this.submit=function(m,n){var a=_b;var b=new EntireMapVariant();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);Event.trigger(this,"submit")};this.mapWindowCallback=function(a,b){};this.mapResultCallback=function(a){var b=a.getResult("ErrorMessage");if(b!="") {Event.trigger(this,"errormessage",b);}Event.trigger(this,"mapresultcallback",a);}}
function EntireMapVariant(){this.base=WmspVariant;this.base();}