/*
 * 20110510 duwei 
 */
var ADURL="",pj_lf="http://a.pojaaimg.cn/ditu/2/",cacheIMG=[],wINDEX=1;function wsetZINDEX(A,_){if(y5)clearTimeout(y5);$(A).closest("div").css("z-index",++wINDEX);px?$("#"+_).css("z-index",++wINDEX):null;_?setToolTipMenu(_,A):hideToolTipMenu()}if(typeof strImgsvrUrl=="undefined")strImgsvrUrl="http://img.mapbar.com/maplite/";if(typeof strMapsvrUrl=="undefined")strMapsvrUrl="http://api.mapbar.com/api/";CTLIMG_RESOURCE=[{url:pj_lf+"images/mapbar31.2.1.png",w:210,h:235}];var transparencyLevel=60,DirectionInfo="",strLicenseKey="8890",strRemoteIP="www.mapbar.com";if(typeof iToolTipStyle=="undefined")var iToolTipStyle=1;var mapwidth=600,mapheight=400,MapBackgroundColor="#EBEAE8",arrayCity=new Array();function getPid($){if(typeof arrayCity[$]=="undefined")return $;return arrayCity[$]}var topColor="#FFFFFF",subColor="#FFFFFF",xoffset=0,yoffset=0,sN=function(){this.clear=function(){};this.paint=function(){};this.lB=function(){};this.lE=function(){};this.setColor=function(){}},jsGraphics=function($){},q1=function($){if(document.getElementById($)!=null)return document.getElementById($);return null},q2=function($){if(document.getElementById($)!=null)return document.getElementById($).style;return null},qZ=function(C,D,F,B,_,A,E,$){document.writeln("<div unselectable=\"on\" id=\""+C+"\" style=\"position:absolute; overflow:none; left:"+D+"px; top:"+F+"px; width:"+B+"px; height:"+_+"px;"+" visibility:"+(A?"visible;":"hidden;")+"z-Index:"+E+";\">");document.writeln($);document.writeln("</div>")},gq=function(C,D,G,B,_,A,F,$){var E=document.createElement("div");E.unselectable="on";E.id=C;E.style.position="absolute";E.style.top=parseInt(G)+"px";E.style.left=parseInt(D)+"px";E.style.zIndex=F;E.style.width=B+(B=="auto"?"":"px");E.style.height=_+(_=="auto"?"":"px");E.style.visibility=(A)?"visible":"hidden";E.innerHTML=$;return E},gt=function(B,A,D,_,$){var C=new Image();C.unselectable="on";C.style.position="absolute";C.style.top=parseInt(D)+"px";C.style.left=parseInt(A)+"px";C.style.width=parseInt(_)+"px";C.style.height=parseInt($)+"px";if(B!="undefined")C.src=B;C.onerror=function(){this.onerror=null;if(this.parentNode)this.parentNode.removeChild(this)};return C},gu=function(A,_){var B=document.createElement("div");B.style.position="absolute";B.unselectable="on";var $="<div unselectable=\"on\" id=\"mbglabel\" style=\""+"border:1px solid "+_+";"+"left:2px;top:2px;"+"background-color:"+_+";"+"color:"+this.color+";\">"+"<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\""+_+"\">"+"<tr><td width=\"100%\">"+"<font class=\"ptlabel\" color=\""+_+"\">"+A+"</font>"+"</td></tr>"+"</table>"+"</div>";$+="<div unselectable=\"on\" id=\"mfglabel\" style=\""+"border:1px solid "+_+";"+"left:0px;top:0px;"+"background-color:#FFFFCC;"+"color:"+this.color+";\">"+"<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=#FFFFCC>"+"<tr><td width=\"100%\">"+"<font class=\"ptlabel\" color=\""+_+"\" title=\""+A+"\">"+A+"</font>"+"</td></tr>"+"</table>"+"</div>";B.innerHTML=$;return B},PerformControl=function(C,_,B){var $=_.parentNode.q9;switch(B){case 1:$.panTo(parseInt($.width)/2,0);break;case 2:$.panTo(0,parseInt($.height)/2);break;case 3:$.panTo(-parseInt($.width)/2,0);break;case 4:$.panTo(0,-parseInt($.height)/2);break;case 5:$.zoomIn();break;case 6:$.zoomOut();break;case 7:$.setMode(ts.tb);break;case 8:var A=parseInt(_.style.top)-96+parseInt($.controlCanvas.top),D=parseInt((px)?event.clientY:C.clientY)-parseInt($.offsetY)-parseInt($.top);D-=A;if(!px&&$.vb.style.position!="absolute");AB=sY-Math.max(0,Math.min(sY,parseInt((parseInt(D)-100)/gb.bO724)));_.parentNode.update(AB);$._09rf();$.setZoomLevel(AB,true,false);break;default:break}},y4=null,showMouseTipBox=function(D,B,$,A){try{if(y4==null||y4=="undefined"){if(maplet.sS!=ts.tw){var C="<table style=\"border:1px solid #0E347F;\">"+"<tr><td>"+"<font class=\"ptlabel\" color=\"#D50F1E\" id=\"pjlxl\">"+$+"</font>"+"</td></tr>"+"</table>";y4=gq("mousetipbox",parseInt(D)+10,parseInt(B)+18,"auto","auto",1,100,C);y4.style.backgroundColor="#FFFFFF";y4.style.padding="1px"}else y4=gq("mousetipbox",parseInt(D)+10,parseInt(B)+18,"auto","auto",1,100,$);y4.unselectable="on";y4.style.MozUserSelect="none"}else{y4.style.left=(parseInt(D)+10)+"px";y4.style.top=(parseInt(B)+18)+"px";y4.visibility="visible"}if(y4!=null&&(y4.parentNode==null||y4.parentNode!=A))A.appendChild(y4)}catch(_){}},nX=function(){if(y4!=null){if(y4.parentNode!=null)_removeNode(y4);y4=null}},nE=function($){return(px)?event.srcElement.id:$.target.id},imageTileError=function($){if($.width==300&&$.ntry=="0"){$.ntry="1";$.src=$.src+"?"}else if($.width==300&&$.ntry=="1"){$.ntry="2";$.src=$.src+"?"}else{$.ntry="3";$.onerror=null;$.src=strImgsvrUrl+"images/mask.gif";$.style.width="300px";$.style.height="300px"}},imageTileOk=function($){$.onerror=null;$.onload=null;$.style.width="300px";$.style.height="300px"},fJ=function($,_){var A=false;while($!=null){if((typeof _=="string"&&$.id==_)||($==_)){A=true;break}$=$.parentNode}return A},pE=function(B,A,D,_,$,C){this.pP=gt(B,A,D,_,$);this.gd=0;this.ge=0;this.name=name;C.appendChild(this.pP);this.hide=function(){this.pP.style.visibility="hidden"};this.show=function(){this.pP.style.visibility="visible"};this.moveTo=function(_,$){this.pP.style.left=parseInt(_)+"px";this.pP.style.top=parseInt($)+"px"};this.resize=function($,_){this.pP.style.width=parseInt($)+"px";this.pP.style.height=parseInt(_)+"px"};this.getName=function(){return this.name};this.aW=function($){$.appendChild(this.pP)}},yq=function(A,_,$){if(_!="undefined"&&_!="")A.src=_;A.style.zIndex=$},vB=function($,_){try{if(document.getElementById(_)!=null&&$!=null)document.getElementById(_).innerHTML=vo($.responseText)}catch(A){}},vo=function($){return $},uP=function(B,A,$){var _=document["mapbar-maplet"],D=((px)?event.clientX:B.clientX)-_.offsetX-_.left,C=((px)?event.clientY:B.clientY)-_.offsetY-_.top;_.wN(D,C,A,$)},lbp2=function($,_){if(typeof $=="string"&&$!=null&&document.getElementById($)!=null&&typeof _=="string"&&_!=null)document.getElementById($).innerHTML+=_},y5=null,waitHideTip=function(){if(y5)clearTimeout(y5);y5=null;y5=setTimeout(function(){hideToolTipMenu()},300)},lbp=function(_,H,G,$,F,B,C,E,D){var A="<table class=\"pojaaAD\" onmouseover=\"javascript:{if (y5) clearTimeout(y5);}\" onmouseout=\"javascript:waitHideTip()\" style=\"position:absolute;display:none;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\" bgcolor=\"#FF0000\"><table border=\"0\" cellspacing=\"1\" cellpadding=\"0\">"+"<tr><td width=\"100%\" bgcolor=\"#FF0000\">"+"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">"+"<tr><td width=\"100%\" bgcolor="+topColor+">"+"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">"+"<tr><td id=\"mytooltiptitle\"width=\"100%\" class=\"tooltiptitle\">"+C+"</td>"+"<td style=\"cursor:hand;cursor:pointer;\" valign=\"top\" align=\"right\">"+"<img src=\""+strImgsvrUrl+"images/xclose.gif\" onclick=\"javascript:hideToolTipMenu();\">"+"</td>"+"</tr>"+"</table>"+"</td></tr>"+"<tr><td width=\"100%\" bgcolor="+subColor+">"+"<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">"+"<tr><td id=\"mytooltipcontent\" width=\"100%\" class=\"tooltipcontent\">"+E+"</td></tr>"+"</table>"+"</td></tr>"+"</table>"+"</td></tr>"+"</table></td></tr></table>";hO624[_]={x:H,y:G,w:$,wO:(!D?F+A+B:F+B),y6:C,yU:E,AP98:D};yk6b(_,H,G,$,(!D?F+A+B:F+B),C,E,D)},yk6b=function(_,F,E,$,D,A,C,B){if(typeof _=="string"&&_!=null&&document.getElementById(_)!=null&&typeof D=="string"&&D!=null)if(!B)document.getElementById(_).innerHTML+="<div unselectable=\"on\" class=\"hotspotlabel\" style=\"position:absolute;left:"+F+"px;top:"+E+"px;width:"+$+"px;height:0px\">"+D+"</div>";else document.getElementById(_).innerHTML+="<div unselectable=\"on\"  style=\"position:absolute;left:"+F+"px;top:"+E+"px;width:"+$+"px;height:0px\">"+D+"</div>"},hO624={},T3K=function(C,_,B){var $=_.parentNode.q9;switch(B){case 1:hideBubble($);$.panTo(parseInt($.width)/2,0);break;case 2:hideBubble($);$.panTo(0,parseInt($.height)/2);break;case 3:hideBubble($);$.panTo(-parseInt($.width)/2,0);break;case 4:hideBubble($);$.panTo(0,-parseInt($.height)/2);break;case 5:hideBubble($);$.zoomIn();break;case 6:hideBubble($);$.zoomOut();break;case 7:hideBubble($);$.setMode(ts.tb);break;case 8:hideBubble($);var A=parseInt(_.style.top)-96+parseInt($.controlCanvas.top),D=parseInt((px)?event.clientY:C.clientY)-parseInt($.offsetY)-parseInt($.top);D-=A;if(!px&&$.vb.style.position!="absolute");AB=sY-Math.max(0,Math.min(sY,parseInt((parseInt(D)-100)/(132/(sY-1)))));_.parentNode.update(AB);$.setZoomLevel(AB);break;default:break}};function CreateToolTip(B,A,C){var _="<table id=\"mytooltip_container\" border=\"0\" width=\"150\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\" bgcolor=\"#FF0000\"><table border=\"0\" width=\"150\" cellspacing=\"1\" cellpadding=\"0\">"+"<tr><td width=\"100%\" bgcolor=\"#FF0000\">"+"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">"+"<tr><td width=\"100%\" bgcolor="+topColor+">"+"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">"+"<tr><td id=\"mytooltiptitle\"width=\"100%\" class=\"tooltiptitle\">"+A+"</td>"+"<td style=\"cursor:hand;cursor:pointer;\" valign=\"top\" align=\"right\">"+"<img src=\""+strImgsvrUrl+"images/xclose.gif\" onclick=\"javascript:hideToolTipMenu();\">"+"</td>"+"</tr>"+"</table>"+"</td></tr>"+"<tr><td width=\"100%\" bgcolor="+subColor+">"+"<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">"+"<tr><td id=\"mytooltipcontent\" width=\"100%\" class=\"tooltipcontent\">"+C+"</td></tr>"+"</table>"+"</td></tr>"+"</table>"+"</td></tr>"+"</table></td></tr></table>";document.getElementById(B).innerHTML=_;var $=document.getElementById(B).childNodes[0];document.getElementById(B).style.width=$.clientWidth;document.getElementById(B).style.height=$.clientHeight}var setToolTipMenu=function(_,E){var E=$(E),C=E.offset();mapwidth=maplet.width-3;mapheight=maplet.height-5;var A=E.closest("div").find(".pojaaAD");document.getElementById("img_"+_)?document.getElementById("img_"+_).src=cacheIMG["img_"+_].src:null;var B=A.width()+C.left>mapwidth?(mapwidth-C.left-A.width()):C.left<0?E.width()/2-C.left:20,D=(A.height()+E.height()+C.top>mapheight&&C.top>mapheight/2)?(-A.height()):E.height();$(".pojaaAD").hide();A.css({"left":B,"top":D}).show()},hideToolTipMenu=function(){$(".pojaaAD").hide()},MoveToolTip=function(qR,nr,nq){if(px)document.getElementById(qR).style.top=parseInt(eval(nr))+"px";else document.getElementById(qR).style.top=parseInt(eval(nr))+"px";document.getElementById(qR).style.left=parseInt(eval(nq))+"px"},UpdateContent=function(B,_,C){if(initialize==0){CreateToolTip(B,_,C);initialize=1}if(document.getElementById("mytooltiptitle"))document.getElementById("mytooltiptitle").innerHTML=_;if(document.getElementById("mytooltipcontent"))document.getElementById("mytooltipcontent").innerHTML=C;var $=document.getElementById("ToolTip"),A=document.getElementById("mytooltip_container");if(A){$.style.width=A.clientWidth+"px";$.style.height=A.clientHeight+"px"}},ts={tz:1,tA:2,ty:3,tv:5,tw:6,tx:7,tt:8,lz:9,ly:10,tb:11,np:12,l3:13,tM:14,tu:23,ta:15,$9f:24},showLoading=function(){sb++;if(document.getElementById("loading")){document.getElementById("loading").style.display="block";document.getElementById("loading").style.visibility="visible"}},hideLoading=function(){sb--;if(sb<=0)if(document.getElementById("loading")){document.getElementById("loading").style.display="none";document.getElementById("loading").style.visibility="hidden";if($&&new Date().getTime()-ac.getTime()>9){document.getElementById("sendmapload").src="http://211.157.24.143:8001/log.jsp?type=map-mapbar&time="+(new Date().getTime()-ac.getTime())+"&"+Math.random();if(typeof $=="undefined")var $=false;else $=false}}},vZ=function($){if(document.getElementById("loading")){document.getElementById("loading").style.left=(($.width-parseInt(document.getElementById("loading").clientWidth))/2)+"px";document.getElementById("loading").style.top=(($.height-parseInt(document.getElementById("loading").clientHeight))/2)+"px"}},pc=new Array();pc["icon1"]=strImgsvrUrl+"images/"+"number1.gif";pc["icon2"]=strImgsvrUrl+"images/"+"number2.gif";pc["icon3"]=strImgsvrUrl+"images/"+"number3.gif";pc["icon4"]=strImgsvrUrl+"images/"+"number4.gif";pc["icon5"]=strImgsvrUrl+"images/"+"number5.gif";pc["icon6"]=strImgsvrUrl+"images/"+"number6.gif";pc["icon7"]=strImgsvrUrl+"images/"+"number7.gif";pc["icon8"]=strImgsvrUrl+"images/"+"number8.gif";pc["icon9"]=strImgsvrUrl+"images/"+"number9.gif";pc["icon10"]=strImgsvrUrl+"images/"+"number10.gif";var pb=new Array();pb["icon1"]=strImgsvrUrl+"images/"+"number1-2.gif";pb["icon2"]=strImgsvrUrl+"images/"+"number2-2.gif";pb["icon3"]=strImgsvrUrl+"images/"+"number3-2.gif";pb["icon4"]=strImgsvrUrl+"images/"+"number4-2.gif";pb["icon5"]=strImgsvrUrl+"images/"+"number5-2.gif";pb["icon6"]=strImgsvrUrl+"images/"+"number6-2.gif";pb["icon7"]=strImgsvrUrl+"images/"+"number7-2.gif";pb["icon8"]=strImgsvrUrl+"images/"+"number8-2.gif";pb["icon9"]=strImgsvrUrl+"images/"+"number9-2.gif";pb["icon10"]=strImgsvrUrl+"images/"+"number10-2.gif";function GYAjR($){if(typeof $=="undefined"||!$)return false;return $.constructor.toString().indexOf("Array")!=-1}function P2jRn(A){var _=0,$=0;if(typeof A=="string"&&A)A=document.getElementById(A);if(typeof A=="object"&&A)do{_+=A.offsetTop||0;$+=A.offsetLeft||0;if(A.offsetParent==document.body)if(A.style.position=="absolute")break;A=A.offsetParent}while(A);return[$,_]}function k9B(A,$){var _=null;if(typeof A=="string"&&A)A=aa(A);if(typeof A=="object"&&A)do{_=A.getAttribute($);if(_||A.parentNode==maplet.map)break;A=A.parentNode}while(A);return _}function _getStyle(C,_,B){var D=null;if(typeof C=="string"&&C)D=document.getElementById(C);else D=C;if(typeof D!="object"||!D)return"";if(!_&&!B)return"";if(_&&!B)B=_;if(!_&&B)_=B;var A="";if(D.currentStyle)A=D.currentStyle[_];else if(document.defaultView&&document.defaultView.getComputedStyle){var $=document.defaultView.getComputedStyle(D,null);A=$?$.getPropertyValue(B):""}return A}function cm5UC(_,$){if(isNaN(parseInt(_)))return(typeof $!="number"?0:$);else return parseInt(_)}function _isInsidePolygon(B,A){for(var $=false,D=-1,C=A.length,_=C-1;++D<C;_=D)if(((A[D].y<=B.y&&B.y<A[_].y)||(A[_].y<=B.y&&B.y<A[D].y))&&(B.x<(A[_].x-A[D].x)*(B.y-A[D].y)/(A[_].y-A[D].y)+A[D].x))$=!$;return $}function _isInsideRect($,_){if(_.max.x>$.x&&_.min.x<=$.x&&_.max.y>$.y&&_.min.y<=$.y)return true;return false}function _isRectint($,_){return Math.abs(($.min.x+$.max.x)/2-(_.min.x+_.max.x)/2)<(($.max.x+_.max.x-$.min.x-_.min.x)/2)&&Math.abs(($.min.y+$.max.y)/2-(_.min.y+_.max.y)/2)<(($.max.y+_.max.y-$.min.y-_.min.y)/2)}function _IsIntersect(A,B){var $=(A.end.y-A.start.y)*(B.end.x-B.start.x)-(B.end.y-B.start.y)*(A.end.x-A.start.x);if($==0)return false;else{var C=((A.end.x-A.start.x)*(B.end.x-B.start.x)*(B.start.y-A.start.y)+(A.end.y-A.start.y)*(B.end.x-B.start.x)*A.start.x-(B.end.y-B.start.y)*(A.end.x-A.start.x)*B.start.x)/$,_=((A.end.y-A.start.y)*(B.end.y-B.start.y)*(B.start.x-A.start.x)+(A.end.x-A.start.x)*(B.end.y-B.start.y)*A.start.y-(B.end.x-B.start.x)*(A.end.y-A.start.y)*B.start.y)/(-$);if((C-A.start.x)*(C-A.end.x)<=0&&(C-B.start.x)*(C-B.end.x)<=0&&(_-A.start.y)*(_-A.end.y)<=0&&(_-B.start.y)*(_-B.end.y)<=0)return true}return false}var E49=function($){if(window.event)return window.event;else{while($.caller)$=$.caller;if(typeof $.arguments!="undefined"&&$.arguments&&$.arguments.length>0)if($.arguments[0].constructor.toString().indexOf("Event"))return $.arguments[0]}return null},_66=function($){if(typeof $=="undefined")return;if(window.event){window.event.returnValue=false;window.event.cancelBubble=true}else{$.preventDefault();$.stopPropagation()}};function aa($){if(typeof $=="string")return document.getElementById($);else return null}_removeNode=document.all?function(){var $;return function(_){if(_&&_.tagName!="BODY"){$=$||document.createElement("div");$.appendChild(_);$.innerHTML=""}}}():function($){if($&&$.parentNode&&$.tagName!="BODY")$.parentNode.removeChild($)};rtg5S=function($){var _=new RegExp("<.*?>|\r|\n","gi");return function($){return $.replace(_,"")}}();var i96=function(D,C,_,$,A,E,B){this.URL=D;this.$if4L=C;this.Hi6x_=A;this.oGU=E;this.aB=B;this.mG9W3=_;this.C9r8$=$};i96.prototype.V96Xw=function(){var D=document.getElementById("scriptTemp");if(D)_removeNode(D);var A=document.createElement("script");A.language="javascript";A.type="text/javascript";A.id=(this.C9r8$&&this.C9r8$==true)?"Temp"+Math.random():"scriptTemp";A.src=(this.mG9W3&&this.mG9W3==true)?this.URL+"?"+Math.random():this.URL;var B=this.$if4L?(this.$if4L):parseInt,$=this.Hi6x_,_=this.oGU,C=typeof this.aB=="undefined"||!this.aB?[]:this.aB;A.onload=A.onreadystatechange=function(){if(typeof ActiveXObject!="undefined"){if(A.readyState=="loaded"||A.readyState=="complete"){if(typeof B=="function"){C.push(A.id);B.apply($,C)}A.onerror=null;A.onload=null;A.onreadystatechange=null}}else{if(typeof B=="function"){C.push(A.id);B.apply($,C)}A.onerror=null;A.onload=null;A.onreadystatechange=null}};A.onerror=function(){if(A&&A.parentNode)A.parentNode.removeChild(A);if(typeof _=="function"){C.push(A.id);_.apply($,C)}A.onerror=null;A.onload=null;A.onreadystatechange=null};document.body.insertBefore(A,document.body.firstChild)};var sC=function(B,_,A){document.getElementById("myalert").style.top=(parseInt(_)-60+parseInt(document.body.scrollTop))+"px";document.getElementById("myalert").style.left=(parseInt(B)-100+parseInt(document.body.scrollLeft))+"px";var $=(en==1)?"Close":tX("%u5175%uE760");document.getElementById("myalert").innerHTML="<table width=\"196px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:2px solid #0E347F;\"><tr><td height=\"100px\" align=\"center\" valign=\"middle\" bgcolor=\"#FFFFFF\"><table width=\"167px\" height=\"79px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"55px\" align=\"center\" valign=\"middle\" style=\"font-size: 12px;color: #0065AD;\">"+A+"</td></tr><tr><td height=\"24px\" align=\"center\" valign=\"middle\"><input type=\"button\" value=\""+$+"\" onClick=\"document.getElementById('myalert').style.visibility = 'hidden'\"onMouseOver=\"style.background='#DEE7EF';style.cursor='hand';style.cursor='pointer'\"onMouseOut=\"this.style.background='FDFAF3'\" style=\"font-size: 9pt; border: 1px solid #4A799C;background-color: #FDFAF3\"></td></tr></table></td></tr></table>";document.getElementById("myalert").style.visibility="visible"},gP=function($){if(gQ)sC(300,100,$)},G0pE2=new RegExp("<(?:!(?:--[\\s\\S]*?--\\s*)?(>)\\s*|(?:script|style|SCRIPT|STYLE)[\\s\\S]*?<\\/(?:script|style|SCRIPT|STYLE)>)","gi"),x55Vd=new RegExp("[\\r\\n]","gi"),Ge412=function(_,A){if(typeof A!="boolean")A=false;if(typeof _=="string"&&_){var $=_.replace(G0pE2,"");if(A)$=$.replace(x55Vd,"");return $}else return _},cq={pu:{},vp:function($){return this.pu[$]||function(E,F){var A;if(F.indexOf(",")==-1){var I=-1,H=0,C="",_="";if(F!=null&&parseInt(F.charAt(0),36)>=33){_=F.charAt(0);F=F.substring(1)}for(var G=0;G<(F.length-(c75?1:0));G++){var D=parseInt(F.charAt(G),36)-10;if(D>=17)D=D-7;C+=(D).toString(36);if(D>H){I=G;H=D}}var B=parseInt(C.substring(0,I),16),$=parseInt(C.substring(I+1),16);if("X"==_)B=-B;if("Y"==_)$=-$;A=new Array();A[0]=(B+$-parseInt(strLicenseKey))/2;A[1]=($-A[0])/100000;A[0]/=100000;if(A[0]>180)A[0]-=360;E[F]=A;return A}else{A=pUp4(F);E[F]=A;return A}}(this.pu,$)},zn:function(C,F,L){if(typeof L!="boolean")L=false;if(typeof C!="undefined"&&typeof F!="undefined"){this.lf=parseFloat(F);this.li=parseFloat(C)}if(apiType==1&&!L)return h0333(this.li+","+this.lf).join(",");else{var D="",A=parseInt(parseFloat(Math.max(-90,Math.min(90,this.lf)))*100000),$=parseInt(parseFloat((this.li<0)?(this.li+360):this.li)*100000),G=$-A+parseInt(strLicenseKey),H=$+A;if(G<0){D="X";G=-G}if(H<0){D="Y";H=-H}var J=(G).toString(16),K=(H).toString(16);for(var B=0;B<J.length;B++){var I=parseInt(J.charAt(B),16);D+=(((I>=10)?(I+7):I)+10).toString(36)}D+="z";for(var E=0;E<K.length;E++){var _=parseInt(K.charAt(E),16);D+=(((_>=10)?(_+7):_)+10).toString(36)}if(c75)D+=D.charAt(c75);return D.toUpperCase()}}},xE=function($){var A="";for(var B=0;B<$.length;B++){var _=$.charCodeAt(B).toString(36).toUpperCase();if(_.length<=1)_="0"+_;A+=_}return A},sdc=function($){var A="";for(var B=0;B<$.length;B+=2){var _=$.substring(B,B+2);A+=String.fromCharCode(parseInt(_,36))}return A},tX=function($){$=unescape($);var _=String.fromCharCode($.charCodeAt(0)-$.length);for(var A=1;A<$.length;A++)_+=String.fromCharCode($.charCodeAt(A)-_.charCodeAt(A-1));return _};function h0333($){var A=$.split(","),D=parseFloat(A[0])*100000%36000000,C=parseFloat(A[1])*100000%36000000,B=parseInt(_0e(D,C)+D),_=parseInt(l90Q(D,C)+C);return[B/100000,_/100000]}function pUp4($){var A=$.split(","),D=parseFloat(A[0])*100000%36000000,C=parseFloat(A[1])*100000%36000000,_=parseInt(-r9v73(D,C)+D),B=parseInt(-tx_(D,C)+C);_=parseInt(-r9v73(_,B)+D+((D>0)?1:-1));B=parseInt(-tx_(_,B)+C+((C>0)?1:-1));return[_/100000,B/100000]}function _0e(_,$){return r028(_,$)}function l90Q(_,$){return wDg(_,$)}function r9v73(_,$){return r028(_,$)}function tx_(_,$){return wDg(_,$)}function r028(_,$){return FQ84t(X54W(x32$($,_),$7w9(_,$)),X54W(hQ16(_,$),u6gwv($,_)))}function wDg(_,$){return FQ84t(X54W(hQ16($,_),$7w9(_,$)),X54W(x32$(_,$),u6gwv($,_)))}function X54W(_,$){return _*$}function FQ84t(_,$){return _+$}function x32$(_,$){return Math.cos(_/100000)}function hQ16(_,$){return Math.sin(_/100000)}function u6gwv(_,$){return _/9000}function $7w9(_,$){return _/18000}var fD=function(name,left,top,width,height,visible,zindex,content,f2){this.n7=content;this.f2=f2;this.name=name;this.qe=1;this.hide=function(){this.style.visibility="hidden"};this.show=function(){this.style.visibility="visible"};this.setVisible=function($){if(this.style.display!=($?"":"none"))this.style.display=$?"":"none"};this.moveTo=function(x,y){eval(document.body.scrollTop);this.style.left=parseInt(x)+"px";this.style.top=parseInt(y)+"px"};this.resize=function($,_){if(parseInt($)>=0&&parseInt(_)>=0){this.style.width=parseInt($)+"px";this.style.height=parseInt(_)+"px"}};this.nz=function(){return parseInt(this.style.height)};this.nH=function(){return parseInt(this.style.width)};this.qn=function(_,$){return(_>parseInt(this.style.left)&&_<(parseInt(this.style.left)+parseInt(this.style.width))&&$>parseInt(this.style.top)&&$<(parseInt(this.style.top)+parseInt(this.style.height)))};this.appendChild=function($){try{this.div.appendChild($)}catch(_){}};this.removeChild=function($){try{_removeNode($)}catch(_){}};this.clear=function(){this.div.innerHTML=""};this.clean=this.clear;this.getName=function(){return this.name};try{this.div=gq(this.name,left,top,width,height,visible,zindex,content);this.div.unselectable="on";if(this.f2)this.f2.appendChild(this.div);this.style=this.div.style;this.graphics=(px)?new sN():new jsGraphics(this.name)}catch(lM){}},MBound=function(C,_,D,B,A,$){this.s4=D;this.tj=C;this.s6=B;this.tl=_;this.s0=(typeof $=="undefined")?sY:parseInt($);this.tp=(typeof A=="undefined")?te:parseInt(A);this.qn=function(A,$){if(this.s4<A||this.tj>A)return false;var _=($-this.tl)%360;if(_<0)_+=360;return((this.s6-this.tl)>=_)}},MBrush=function(F,E,D,$,A,_,B,C){this.color=(typeof F=="undefined")?"#FF0000":F;this.stroke=(typeof E=="undefined")?5:parseInt(E);this.style=(typeof D=="undefined")?0:parseInt(D);this.fill=(typeof $=="undefined")?false:$;this.bgcolor=(typeof A=="undefined")?this.color:A;this.transparency=(typeof _=="undefined")?transparencyLevel:parseInt(_);this.bgtransparency=(typeof B=="undefined")?transparencyLevel/2:parseInt(B);this.arrow=(typeof C=="undefined")?bArrow:C;this.overlap={enable:false,stroke:null,color:"white",transparency:transparencyLevel};this.toString=function(){return"com.mapbar.maplet.MBrush"}},MPoint=function(C,$,B,A){this.pid=null;this.lat=null;this.lon=null;this.maplet=null;var E=null,F=null;this.mapX=null;this.mapY=null;this.Y$_8=null;this.encrypt=(typeof B=="boolean"?B:true);this.levelGroup=(typeof A=="number"&&A>=0&&A<=3?A:3);if(typeof C!="undefined"||typeof $!="undefined"){if(GYAjR(C))C=C.join(",");if(typeof C=="string"&&C.indexOf(",")!=-1){if(this.encrypt){this.pid=C;this.lon=parseFloat(C.split(",")[0]);this.lat=parseFloat(C.split(",")[1])}else{F=parseFloat(C.split(",")[0]);E=parseFloat(C.split(",")[1])}}else if(!isNaN(parseFloat(C))&&!isNaN(parseFloat($))){if(this.encrypt){this.pid=C+","+$;this.lon=parseFloat(C);this.lat=parseFloat($)}else{F=C;E=$}}else{this.pid=(typeof getPid=="undefined")?C:getPid(C);if(apiType==1){var D=cq.vp(this.pid);this.pid=cq.zn(D[0],D[1]);this.lon=parseFloat(this.pid.split(",")[0]);this.lat=parseFloat(this.pid.split(",")[1])}}if(this.encrypt){var _=cq.vp(this.pid);this.pid=cq.zn(_[0],_[1]);F=_[0];E=_[1]}}this.inLevelRange=function($){if($>=0&&$<=3&&this.levelGroup==3)return true;else if($>=4&&$<=7&&this.levelGroup>=2)return true;else if($>=8&&$<=11&&this.levelGroup>=1)return true;else if($>=12&&$<=18&&this.levelGroup>=0)return true;else return false};this.getPid=function(){if(!this.encrypt&&!this.pid)this.setMapCoords(this.mapX,this.mapY);return this.pid};this.setMapCoords=function(A,_){this.mapX=A;this.mapY=_;F=this.maplet.zp(A,_);E=this.maplet.zo(A,_);this.pid=cq.zn(F,E);if(apiType==1){this.lon=this.pid.split(",")[0];this.lat=this.pid.split(",")[1]}else if(this.lon!=null){var $=h0333(F+","+E);this.lon=$[0];this.lat=$[1]}};this.r05e$=function(){this.mapX=this.maplet.zl(F,E);this.mapY=this.maplet.zm(E,F)};this.initialize=function($){this.maplet=$;this.r05e$()};this.toString=function(){return"com.mapbar.maplet.MPoint"}},lQ={nh:function(_,A,C,D,F){A=parseInt(A);C=parseInt(C);D=parseInt(D);if(A==C){lQ.fF(A,_,C,F);return}this.fF(A,_);var E=Math.max(100,Math.round(D/Math.abs(C-A))),$=Math.max(1,Math.abs((C-A)/(D/E))),B=A+$;if(A>C)B=A-$;setTimeout("lQ.nh('"+_+"',"+B+","+C+","+(D-E)+",'"+F+"')",(E))},ni:function($,_){if(typeof _=="undefined")_=1000;this.nh($,0,100,_)},nj:function($,_){if(typeof _=="undefined")_=1000;this.nh($,100,0,_)},fF:function(opacity,id,l2,callback){var ai=document.getElementById(id).style;ai.opacity=(opacity/100);ai.MozOpacity=(opacity/100);ai.qK=(opacity/100);ai.filter="alpha(opacity="+opacity+")";if(opacity==l2&&callback!=null)eval(callback)},qH:function($,_,A){document.getElementById($).style.left=parseInt(_)+"px";document.getElementById($).style.top=parseInt(A)+"px"},move:function($,C,B,D,E,_,A){this.qH($,C,B);this.panTo($,D,E,_,A)},panTo:function(id,nJ,nK,lG,callback){nJ=parseInt(nJ);nK=parseInt(nK);var xa=parseInt(document.getElementById(id).style.left),xb=parseInt(document.getElementById(id).style.top);lG=parseInt(lG);var g4=nJ-xa,g5=nK-xb;if(g4==0&&g5==0){if(callback!=null)eval(callback);return}var g3=Math.abs(g4)+Math.abs(g5),xd=Math.max(5,g3/(lG/100)),yN=Math.max(100,Math.round(lG/(g3/xd))),xh=g4*xd/g3,xi=g5*xd/g3,uf=xa+xh,ug=xb+xi;if(g3<xd){uf=nJ;ug=nK}this.qH(id,uf,ug);setTimeout("lQ.panTo('"+id+"',"+nJ+","+nK+","+(lG-yN)+",'"+callback+"')",(yN))}},f1={fx:[],uo:100,nk:function(_,B,$,C){if(typeof _!="object"||!_)return;this.fx[this.fx.length]=new Image();var A=this.fx.length-1;this.fx[A].q9=_;_.style.filter="alpha(opacity="+this.uo+");";_.style.MozOpacity=(this.uo/100);_.style.opacity=(this.uo/100);_.style.qK=(this.uo/100);if(typeof $!="undefined"){_.width=parseInt($)+"px";this.fx[A].width=parseInt($)+"px"}if(typeof C!="undefined"){_.height=parseInt(C)+"px";this.fx[A].height=parseInt(C)+"px"}this.fx[A].f2=this;this.fx[A].pn=A;this.fx[A].ln="0";this.fx[A].onload=function(){if(typeof $!="undefined")this.width=parseInt($)+"px";if(typeof C!="undefined")this.height=parseInt(C)+"px";this.q9.src=this.src;this.q9.style.filter=null;this.q9.style.MozOpacity=1;this.q9.style.opacity=1;this.q9.style.qK=1;if(typeof $!="undefined"&&!rs){this.q9.width=parseInt($)+"px";this.q9.style.width=parseInt($)+"px"}if(typeof C!="undefined"&&!rs){this.q9.height=parseInt(C)+"px";this.q9.style.height=parseInt(C)+"px"}this.q9.setAttribute("done","1");this.ln="1";this.f2[this.pn]=null;this.f2.clearCache();this.f2=null;this.q9=null;this.onload=null;this.onerror=null};this.fx[A].onerror=function(){if(rs)return false;if(typeof $!="undefined")this.width=parseInt($)+"px";if(typeof C!="undefined")this.height=parseInt(C)+"px";this.q9.style.filter=null;if(typeof $!="undefined"&&!rs)this.q9.width=parseInt($)+"px";if(typeof C!="undefined"&&!rs)this.q9.height=parseInt(C)+"px";this.ln="1";this.q9.width="300";this.q9.height="300";this.q9.style.width="300";this.q9.style.height="300";this.q9.src=sX;this.q9.style.backgroundColor="#ebeae8";this.q9.setAttribute("done","1");this.f2[this.pn]=null;this.f2.clearCache();this.f2=null;this.q9=null;this.onload=null;this.onerror=null};showLoading();this.fx[A].src=B},clearCache:function(){hideLoading();var $=1;for(var A=0;A<this.fx.length;A++)if(this.fx[A]!=null&&this.fx[A].ln=="0")$=0;else if(this.fx[A]!=null){this.fx[A].q9=null;this.fx[A].f2=null;this.fx[A].onload=null;this.fx[A].onerror=null;delete(this.fx[A])}if($){for(var _=0;A<this.fx.length;_++)if(this.fx[_]!=null){this.fx[_].q9=null;this.fx[_].f2=null;this.fx[_].onload=null;this.fx[_].onerror=null;delete(this.fx[_])}this.fx.length=0;MEvent.trigger(this,"clean")}}},gb=function(O){this.initialize=function(_){this.maplet=_;var $=[];e($,"ctrlPan",0,0,50,49,-25,0,"_pan_map");e($,"ctrlZoomOut",14,54,24,24,0,0,"_zo_map");var D=C();e($,"ctrlRuler",14,78,24,D,0,-24);e($,"ctrlZoomIn",14,77+D,24,27,0,-181,"_zi_map");e($,"ctrlSlider",0,0,17,7,-25,-51);$.push("<map name=\"_pan_map\" id=\"_pan_map\">");$.push("<area id=\"_fb_n_ctrl_imap\" shape=\"poly\" title=\""+xN[1]+"\" coords=\"35,6,39,3,42,2,47,1,51,1,56,2,61,4,63,6,63,7,55,15,50,13,48,13,43,15,35,7\" href=\"javascript:void(0);\" onFocus=\"this.blur()\" onclick=\"PerformControl(event, this,2);return false;\"/>");$.push("<area id=\"_fb_s_ctrl_imap\" shape=\"poly\" title=\""+xN[3]+"\" coords=\"64,38,55,29,50,31,48,31,43,29,34,38,34,39,37,42,42,44,47,45,51,45,56,44,61,42,64,39\" href=\"javascript:void(0);\" onFocus=\"this.blur()\" onclick=\"PerformControl(event, this,4);return false;\"/>");$.push("<area id=\"_fb_w_ctrl_imap\" shape=\"poly\" title=\""+xN[0]+"\" coords=\"34,8,42,16,40,21,40,23,42,28,33,37,32,37,30,35,28,30,27,25,27,21,28,16,30,11,33,8\" href=\"javascript:void(0);\" onFocus=\"this.blur()\" onclick=\"PerformControl(event, this,1);return false;\"/>");$.push("<area id=\"_fb_e_ctrl_imap\" shape=\"poly\" title=\""+xN[2]+"\" coords=\"64,8,56,16,58,21,58,23,56,28,65,37,66,37,68,35,70,30,71,25,71,21,70,16,68,11,65,8\" href=\"javascript:void(0);\" onFocus=\"this.blur()\" onclick=\"PerformControl(event, this,3);return false;\" />");$.push("<area id=\"_fb_m_ctrl_imap\" shape=\"circle\" title=\""+xN[4]+"\" coords=\"48,22,8\" href=\"javascript:void(0);\" onclick=\"PerformControl(event, this,7);return false;\" />");$.push("</map>");$.push("<map name=\"_zo_map\" id=\"_zo_map\">");$.push("<area id=\"_fb_zo_ctrl_imap\" shape=\"poly\" title=\""+xN[6]+"\" coords=\"8,0,5,1,1,5,0,8,0,21,20,21,20,8,19,5,15,1,12,0\" href=\"javascript:void(0);\" onFocus=\"this.blur()\" onclick=\"PerformControl(event, this,5);return false;\" />");$.push("</map>");$.push("<map name=\"_zi_map\" id=\"_zi_map\">");$.push("<area id=\"_fb_zi_ctrl_imap\" shape=\"poly\" title=\""+xN[7]+"\" coords=\"0,183,0,196,1,199,5,203,8,204,12,204,15,203,19,199,20,196,20,183\" href=\"javascript:void(0);\" onFocus=\"this.blur()\" onclick=\"PerformControl(event, this,6);return false;\" />");$.push("</map>");$.push("<div id=\"_fb_ctrl_leveltip\" style=\"position:absolute;left:0px;top:0px;width:"+gb.$00+"px;height:121px;display:none;\">");N($,"_fb_ctrl_lt_s",gb.c2m_3[0],0,0,gb.$00,gb.wIj5,-26,-65,13);N($,"_fb_ctrl_lt_c",gb.c2m_3[1],0,40,gb.$00,gb.wIj5,-26,-65,8);N($,"_fb_ctrl_lt_p",gb.c2m_3[2],0,72,gb.$00,gb.wIj5,-26,-65,4);N($,"_fb_ctrl_lt_cr",gb.c2m_3[3],0,104,gb.$00,gb.wIj5,-26,-65,0);$.push("</div>");this.dom=new fD("LayerControl",m557C,W70,0,0,true,3,$.join(""),this.maplet.vb);b=aa("ctrlPan");W=aa("ctrlZoomOut");k=aa("ctrlZoomIn");vQ4=aa("ctrlRuler");h=aa("ctrlSlider");d=aa("_fb_ctrl_leveltip");A=aa("_fb_ctrl_lt_s");J=aa("_fb_ctrl_lt_c");M=aa("_fb_ctrl_lt_p");g=aa("_fb_ctrl_lt_cr");h.firstChild.id="ctrlSliderImg";aa("_pan_map").q9=this.maplet;aa("_zo_map").q9=this.maplet;aa("_zi_map").q9=this.maplet;F["mousedown"]=MEvent.bindDom(h,"mousedown",this,l);F["mousemove"]=MEvent.bindDom(document,"mousemove",this,S);F["mouseup"]=MEvent.bindDom(document,"mouseup",this,B);F["click"]=MEvent.bindDom(vQ4,"click",this,X);F["mouseover"]=MEvent.bindDom(vQ4,"mouseover",this,E);F["mouseout"]=MEvent.bindDom(vQ4,"mouseout",this,H);F["mouseout"]=MEvent.bindDom(vQ4,"mousedown",this,V);F["mouseout"]=MEvent.bindDom(vQ4,"mouseup",this,j);F["mouseover"]=MEvent.bindDom(aa("_zo_map"),"mouseover",this,E);F["mouseout"]=MEvent.bindDom(aa("_zo_map"),"mouseout",this,H);F["mouseover"]=MEvent.bindDom(aa("_zi_map"),"mouseover",this,E);F["mouseout"]=MEvent.bindDom(aa("_zi_map"),"mouseout",this,H);F["mouseover"]=MEvent.bindDom(h,"mouseover",this,E);F["mouseout"]=MEvent.bindDom(h,"mouseout",this,H);F["click"]=MEvent.bindDom(A,"click",this,I);F["click"]=MEvent.bindDom(J,"click",this,I);F["click"]=MEvent.bindDom(M,"click",this,I);F["click"]=MEvent.bindDom(g,"click",this,I);F["mouseup"]=MEvent.bindDom(A,"mouseup",this,K);F["mouseup"]=MEvent.bindDom(J,"mouseup",this,K);F["mouseup"]=MEvent.bindDom(M,"mouseup",this,K);F["mouseup"]=MEvent.bindDom(g,"mouseup",this,K);F["mousedown"]=MEvent.bindDom(A,"mousedown",this,f);F["mousedown"]=MEvent.bindDom(J,"mousedown",this,f);F["mousedown"]=MEvent.bindDom(M,"mousedown",this,f);F["mousedown"]=MEvent.bindDom(g,"mousedown",this,f);F["mouseup"]=MEvent.bindDom(aa("_zo_map"),"mouseup",this,K);F["mouseup"]=MEvent.bindDom(aa("_zi_map"),"mouseup",this,K);F["mouseup"]=MEvent.bindDom(aa("_fb_n_ctrl_imap"),"mouseup",this,K);F["mouseup"]=MEvent.bindDom(aa("_fb_s_ctrl_imap"),"mouseup",this,K);F["mouseup"]=MEvent.bindDom(aa("_fb_w_ctrl_imap"),"mouseup",this,K);F["mouseup"]=MEvent.bindDom(aa("_fb_e_ctrl_imap"),"mouseup",this,K);F["mouseup"]=MEvent.bindDom(aa("_fb_m_ctrl_imap"),"mouseup",this,K);Z.apply(this)};var e=function(_,G,D,A,F,$,C,B,E){_.push("<div id=\""+G+"\" style=\"position:absolute;left:"+D+"px;top:"+A+"px;width:"+F+"px;height:"+$+"px;overflow:hidden;\" onmousedown=\"return false;\">");if(D2a)_.push("<img id=\""+G+"_img\" src=\""+sX+"\" style=\"position:absolute;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:"+C+"px;top:"+B+"px;border:0px;:pointer;\"  onmousedown=\"return false;\" unselectable=\"on\" "+(typeof E=="string"&&E?"usemap=\"#"+E+"\"":"")+" galleryimg=\"no\" />");else _.push("<img id=\""+G+"_img\" src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:"+C+"px;top:"+B+"px;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;border:0px;:pointer;\" onmousedown=\"return false;\" unselectable=\"on\" "+(typeof E=="string"&&E?"usemap=\"#"+E+"\"":"")+" galleryimg=\"no\"/>");_.push("</div>")},N=function(_,H,A,F,B,G,$,E,C,D){_.push("<div id=\""+H+"\" style=\"position:absolute;left:"+F+"px;top:"+B+"px;width:"+G+"px;height:"+$+"px;overflow:hidden;\" onmousedown=\"return false;\">");_.push("<div id=\""+H+"_text\" style=\"position:absolute;padding-left:16px;padding-top:1px;color:white;z-index:1;width:35px;text-align:center;font-size:12px;:pointer;background-image:url('"+sX+"');\" _ml=\""+D+"\">"+A+"</div>");if(D2a)_.push("<img src=\""+sX+"\" style=\"position:absolute;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:"+E+"px;top:"+C+"px;border:0px;:pointer;\"  onmousedown=\"return false;\" unselectable=\"on\" galleryimg=\"no\" />");else _.push("<img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:"+E+"px;top:"+C+"px;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;border:0px;:pointer;\" onmousedown=\"return false;\" unselectable=\"on\" galleryimg=\"no\" />");_.push("</div>")},C=function(){var $=sY-te+1;return $*gb.bO724+$*gb.VLp+gb.bO724-1},M_$=function($){$=sY-$;return $*gb.bO724+$*gb.VLp+Y().max.y+3},U=function(){var $={min:{x:0,y:0},max:{x:0,y:0},width:0,height:0};if(b){$.width=cm5UC(b.style.width,0);$.height=cm5UC(b.style.height,0);$.min.x=cm5UC(b.style.left,0);$.min.y=cm5UC(b.style.top,0);$.max.x=$.min.x+$.width;$.max.y=$.min.y+$.height}return $},Y=function(){var $={min:{x:0,y:0},max:{x:0,y:0},width:0,height:0};if(W){$.width=cm5UC(W.style.width,0);$.height=cm5UC(W.style.height,0);$.min.x=cm5UC(W.style.left,0);$.min.y=cm5UC(W.style.top,0);$.max.x=$.min.x+$.width;$.max.y=$.min.y+$.height}return $},_8__=function(){var $={min:{x:0,y:0},max:{x:0,y:0},width:0,height:0};if(vQ4){$.width=cm5UC(vQ4.style.width,0);$.height=cm5UC(vQ4.style.height,0);$.min.x=cm5UC(vQ4.style.left,0);$.min.y=cm5UC(vQ4.style.top,0);$.max.x=$.min.x+$.width;$.max.y=$.min.y+$.height}return $},L=function(){var $={min:{x:0,y:0},max:{x:0,y:0},width:0,height:0};if(k){$.width=cm5UC(k.style.width,0);$.height=cm5UC(k.style.height,0);$.min.x=cm5UC(k.style.left,0);$.min.y=cm5UC(k.style.top,0);$.max.x=$.min.x+$.width;$.max.y=$.min.y+$.height}return $},R=function(){var $={min:{x:0,y:0},max:{x:0,y:0},width:0,height:0};if(d){$.width=cm5UC(d.style.width,0);$.height=cm5UC(d.style.height,0);$.min.x=cm5UC(d.style.left,0)+m557C;$.min.y=cm5UC(d.style.top,0)+W70;$.max.x=$.min.x+$.width;$.max.y=$.min.y+$.height}return $},c=function(){var $=_8__();i.min=$.min.y+gb.bO724;i.max=$.max.y-1-gb.bO724;_.min=$.min.x;_.max=$.max.x-3},D=function(){with(this.options.location){var rect=this.getRect(),h5fW=_8__();if(type==Maplet.LEFT_TOP){m557C=marginx;W70=marginy;a3o=h5fW.max.x+5}else if(type==Maplet.LEFT_BOTTOM){m557C=marginx;W70=this.maplet.height-marginy-rect.height;a3o=h5fW.max.x+5}else if(type==Maplet.RIGHT_TOP){m557C=this.maplet.width-marginx-rect.width;W70=marginy;a3o=h5fW.min.x-gb.$00-5}else if(type==Maplet.RIGHT_BOTTOM){m557C=this.maplet.width-marginx-rect.width;W70=this.maplet.height-marginy-rect.height;a3o=h5fW.min.x-gb.$00-5}}P=_8__().min.y-2};this.setLocation=function(_,$){_=_||{};if(typeof _.type!="number"&&!(_.type==Maplet.LEFT_TOP||_.type==Maplet.LEFT_BOTTOM||_.type==Maplet.RIGHT_TOP||_.type==Maplet.LEFT_BOTTOM))_.type=Maplet.LEFT_TOP;if(typeof _.s9v9!="number")_.marginx=10;if(typeof _.j4m!="number")_.marginy=10;this.options.location=_;if(typeof $!="boolean")$=true;if($)G.apply(this)};this.setView=function(_,$){_=_||{};if(typeof _.pan!="boolean")_.pan=true;if(typeof _.zoomout!="boolean")_.zoomout=true;if(typeof _.ruler!="boolean")_.ruler=true;if(typeof _.zoomin!="boolean")_.zoomin=true;this.options.view=_;if(typeof $!="boolean")$=true;if($)Z.apply(this,[$])};var l=function($){_66($);if(!a&&($.target==h||$.target==h.firstChild)){c.apply(this);a=true;this.maplet.d7q("move",h)}else a=false;return a},S=function(A){if(a){var _=A.clientY-this.maplet.offsetY-this.maplet.top-W70;if(_>=i.min&&_<=i.max){h.style.top=(_-3)+"px";if(ZOOM_TRANSITION&&(!ContentInfo||!ContentInfo.isVisible())){var B=(this.isVisible(b)?0:49+10)+(this.isVisible(W)?0:24),$=sY-((_+B)/(gb.bO724+gb.VLp)-10);this.maplet.AN($)}this.maplet.d7q("move",document.body)}}return a},B=function(_){_66(_);if(a){var B=_.clientY-this.maplet.offsetY-this.maplet.top-W70;B=B<i.min?i.min:B;B=B>i.max?i.max:B;var A=(this.isVisible(b)?0:49+10)+(this.isVisible(W)?0:24),$=Math.ceil(sY-((B+A-(px?3:1))/(gb.bO724+gb.VLp)-10));if(this.maplet.AG==$){this.maplet.T65K1(true);this.maplet.lA.setVisible(true);if(this.maplet.H434)this.maplet.H434.setVisible(true);this.update($)}else this.maplet.setZoomLevel(parseInt($));a=false;return true}this.maplet.d7q("default",h);return false},X=function(_){_66(_);c.apply(this);var _=_||window.event,B=_.clientY-W70-this.maplet.offsetY-this.maplet.top;B=B<i.min?i.min:B;B=B>i.max?i.max:B;var A=(this.isVisible(b)?0:49+10)+(this.isVisible(W)?0:24),$=Math.ceil(sY-((B+A-(px?3:1))/(gb.bO724+gb.VLp)-10));if(this.maplet.AG!=$)this.maplet.setZoomLevel(parseInt($))},V=function($){_66($)},j=function($){this.maplet.a6($);B.apply(this,[$]);if(this.maplet.sS!=ts.$9f&&this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.tv)_66($)},E=function($){_66($);if(!this.isVisible(vQ4))return;Q=false;if(!this.isVisible(d))this.L0MA(true)},H=function(_){_66(_);Q=true;getTimeout(this,$,700)},I=function(_){_66(_);var $=_.target.getAttribute("_ml");if($)this.maplet.setZoomLevel(cm5UC($))},K=function($){this.maplet.a6($);this.maplet.overview.l1($);B.apply(this,[$]);_66($)},f=function($){_66($)},$=function(){if(!Q)return;var C=false;if(this.isVisible(d)){var A=R(),B={x:this.maplet.tR,y:this.maplet.tS},_={min:{x:A.min.x,y:A.min.y},max:{x:A.max.x,y:A.max.y}};if(_isInsideRect(B,_))C=true}if(a)C=true;if(C){getTimeout(this,$,700);return}this.L0MA(false)};this.update=function(AB){if(this.options&&this.options.location){D.apply(this);this.dom.style.left=m557C+"px";this.dom.style.top=W70+"px"}if(h&&vQ4&&this.isVisible(h)&&this.isVisible(vQ4))with(h.style){left=cm5UC(vQ4.style.left,0)+2+"px";top=M_$(AB)+"px"}};this.showCtlPan=function($,_,A){if(!b)return;if(typeof $!="boolean")$=true;if(this.isVisible(b)!=$){if($){b.style.height="49px";W.style.left="14px";vQ4.style.left="14px";k.style.left="14px"}else{b.style.height="0px";W.style.left="0px";vQ4.style.left="0px";k.style.left="0px"}T.apply(this,[b,$]);if(typeof A!="boolean")A=true;if(A)this.options.view.pan=$;if(typeof _!="boolean")_=true;if(_)G.apply(this)}};this.showZOButton=function($,_,A){if(!W)return;if(typeof $!="boolean")$=true;if(this.isVisible(W)!=$){if($){if(!this.isVisible(vQ4))W.style.height="23px";else W.style.height="24px"}else W.style.height="0px";T.apply(this,[W,$]);if(typeof A!="boolean")A=true;if(A)this.options.view.zoomout=$;if(typeof _!="boolean")_=true;if(_)G.apply(this)}};this.showCtlRuler=function($,_,A){if(!vQ4)return;if(typeof $!="boolean")$=true;if(this.isVisible(vQ4)!=$){if($){vQ4.style.height=C()+"px";W.style.height=(cm5UC(W.style.height,0)+1)+"px";k.style.height=(cm5UC(k.style.height,0)+1)+"px";k.firstChild.style.top=(cm5UC(k.firstChild.style.top,0)+2)+"px"}else{vQ4.style.height="0px";W.style.height=Math.max((cm5UC(W.style.height,0)-1),0)+"px";k.style.height=Math.max((cm5UC(k.style.height,0)-1),0)+"px";k.firstChild.style.top=(cm5UC(k.firstChild.style.top,0)-2)+"px"}T.apply(this,[h,$]);T.apply(this,[vQ4,$]);if(typeof A!="boolean")A=true;if(A)this.options.view.ruler=$;if(typeof _!="boolean")_=true;if(_)G.apply(this)}};this.showZIButton=function($,_,A){if(!k)return;if(typeof $!="boolean")$=true;if(this.isVisible(k)!=$){if($)k.style.height="24px";else k.style.height="0px";T.apply(this,[k,$]);if(typeof A!="boolean")A=true;if(A)this.options.view.zoomin=$;if(typeof _!="boolean")_=true;if(_)G.apply(this)}};this.L0MA=function($){if(!d)return;if(typeof $!="boolean")$=true;if(this.isVisible(d)!=$){if($){d.style.left=a3o+"px";d.style.top=P+"px";if(this.options.location.type==Maplet.LEFT_TOP||this.options.location.type==Maplet.LEFT_BOTTOM){A.childNodes[1].style.top=J.childNodes[1].style.top=M.childNodes[1].style.top=g.childNodes[1].style.top="-65px";A.childNodes[0].style.paddingLeft=J.childNodes[0].style.paddingLeft=M.childNodes[0].style.paddingLeft=g.childNodes[0].style.paddingLeft="16px";A.childNodes[0].style.paddingRight=J.childNodes[0].style.paddingRight=M.childNodes[0].style.paddingRight=g.childNodes[0].style.paddingRight="0px"}else{A.childNodes[1].style.top=J.childNodes[1].style.top=M.childNodes[1].style.top=g.childNodes[1].style.top="-84px";A.childNodes[0].style.paddingLeft=J.childNodes[0].style.paddingLeft=M.childNodes[0].style.paddingLeft=g.childNodes[0].style.paddingLeft="0px";A.childNodes[0].style.paddingRight=J.childNodes[0].style.paddingRight=M.childNodes[0].style.paddingRight=g.childNodes[0].style.paddingRight="16px"}T.apply(this,[g,te<=0]);T.apply(this,[M,(4>=te&&4<=sY)]);T.apply(this,[J,(8>=te&&8<=sY)]);T.apply(this,[A,sY>=13]);if(!this.isVisible(A)){var _=13-sY;d.style.top=P-(_*gb.bO724+_*gb.VLp)+"px"}else if(sY>13){_=sY-13;d.style.top=P+(_*gb.bO724+_*gb.VLp)+"px"}}T.apply(this,[d,$])}};var Z=function($){if(typeof $!="boolean")$=true;with(this.options.view){this.showCtlPan(pan,false);this.showZOButton(zoomout,false);this.showCtlRuler(ruler,false);this.showZIButton(zoomin,false)}if($)G.apply(this)},G=function(){this.L0MA(false);W.style.top=(U().max.y+(this.isVisible(b)?5:-5))+"px";vQ4.style.top=Y().max.y+"px";k.style.top=_8__().max.y+"px";this.maplet.K3KA();this.maplet.$esX2();this.update(this.maplet.AG)};this.hide=function(){T.apply(this,[this.dom,false])};this.show=function(){T.apply(this,[this.dom,true])};var T=function(_,$){if(!this.dom||typeof _!="object"||!_)return;if(_.style.display!=($?"":"none"))_.style.display=$?"":"none"};this.isVisible=function($){if(typeof $!="object"||!$)$=this.dom;if(!$)return false;return $.style.display==""};this.g1=function(){if(this.dom)_removeNode(this.dom);if(aa("_pan_map"))aa("_pan_map").q9=null;if(aa("_zo_map"))aa("_zo_map").q9=this.maplet;if(aa("_zi_map"))aa("_zi_map").q9=this.maplet};this.getRect=function(){var _={min:{x:null,y:null},max:{x:null,y:null},Wh9:{x:null,y:null},sDaa:{x:null,y:null},width:null,height:null};if(this.isVisible(this.dom)){if(this.isVisible(b)){_=U();_.Wh9={x:null,y:null};_.sDaa={x:null,y:null}}if(this.isVisible(W)){var $=Y();if(_.min.x==null)_.min.x=$.min.x;if(_.min.y==null)_.min.y=$.min.y;if(_.max.x==null)_.max.x=$.max.x;_.max.y=$.max.y}if(this.isVisible(vQ4)){$=_8__();if(_.min.x==null)_.min.x=$.min.x;if(_.min.y==null)_.min.y=$.min.y;if(_.max.x==null)_.max.x=$.max.x;_.max.y=$.max.y}if(this.isVisible(k)){$=L();if(_.min.x==null)_.min.x=$.min.x;if(_.min.y==null)_.min.y=$.min.y;if(_.max.x==null)_.max.x=$.max.x;_.max.y=$.max.y}_.Wh9.x=_.min.x+m557C;_.Wh9.y=_.min.x+W70;_.sDaa.x=_.max.x+m557C;_.sDaa.y=_.max.y+W70;_.width=_.max.x-_.min.x;_.height=_.max.y-_.min.y}return _};var b=null,W=null,k=null,vQ4=null,h=null,d=null,A=null,J=null,M=null,g=null,F=[],a=false,i={min:0,max:0},_={min:0,max:0},m557C=-Number.MAX_VALUE,W70=-Number.MAX_VALUE,a3o=-Number.MAX_VALUE,P=-Number.MAX_VALUE,Q=true;this.maplet=null;this.dom=null;this.options=O||{};with(this.options){this.setLocation(typeof location!="object"?undefined:location,false);this.setView(typeof view!="object"?undefined:view,false)}this.controlCanvas={};this.controlCanvas.div={};this.controlCanvas.div.update=function(){};this.onmousedown=l;this.onmousemove=S;this.onmouseup=B;this.onmouseout=function(){}};gb.bO724=6;gb.VLp=2;gb.$00=52;gb.wIj5=18;gb.c2m_3=["\u8857\u9053","\u57ce\u5e02","\u7701","\u56fd\u5bb6"];function ny($){if(!$)$=window.event;if($&&!$.target)$.target=$.srcElement;if($&&typeof $.button=="undefined")$.button=$.which;return $}function getTimeout(_,A,$){return window.setTimeout(function(){A.apply(_)},$)}function nB(_,A,$){return window.setInterval(function(){A.apply(_)},$)}var MEvent={nD:function($){return"_e__"+$},addListener:function(_,A,B){var $=this.nD(A);if(_[$]){var C=true;for(var E=0;E<_[$].length;E++){var D=_[$][E];if(D==B){C=false;break}}if(C)_[$].push(B)}else _[$]=[B];return{qg:_,propertyName:$,q0:B}},removeListener:function(A){var $=A.qg[A.propertyName];for(var _=0;_<$.length;_++)if($[_]==A.q0){$.splice(_,1);return}},contains:function(_,A){var $=this.nD(A);if(typeof _[$]!="undefined")return _[$].length;else return 0},clearListeners:function(_,A){var $=this.nD(A);_[$]=null},trigger:function(A,$){var _=this.nD($),B=A[_];if(B&&B.length>0){var F=[];for(var E=2;E<arguments.length;E++)F.push(arguments[E]);for(var G=0;G<B.length;G++){var D=B[G];if(D){try{D.apply(A,F)}catch(C){}}}}},addBuiltInListener:function(_,$,A){if(_.addEventListener)_.addEventListener($,A,false);else if(_.attachEvent)_.attachEvent("on"+$,A);else _["on"+$]=A;return A},removeBuiltInListener:function(_,$,A){if(_.removeEventListener)_.removeEventListener($,A,false);else if(_.detachEvent)_.detachEvent("on"+$,A);else _["on"+$]=null},bind:function(_,$,B,A){return this.addListener(_,$,function(){A.apply(B,arguments)})},bindDom:function(_,$,C,B){var A=this.gm(C,B);return this.addBuiltInListener(_,$,A)},gm:function(_,$){return function(A){A=ny(A);$.call(_,A)}},callback:function(_,$){return function(){return $.apply(_,arguments)}}},MIcon=function($,A,_,C,B,D){this.ao=new Array();this.$b1=1;this.div=document.createElement("div");this.div.unselectable="on";this.div.style.zIndex=this.$b1;this.div.style.position="absolute";A=(typeof A=="undefined")?16:A;_=(typeof _=="undefined")?16:_;this.img=document.createElement("div");this.img.unselectable="on";this.img.style.MozUserSelect="none";this.img.style.zIndex=this.$b1;this.img.style.position="absolute";this.img.style.top="0px";this.img.style.left="0px";if(typeof D=="string"){this.img.className="pjnum "+D;this.img.style.width=A+"px";this.img.style.height=_+"px";this.iType=D}this.imgUrl=$;this.left=0;this.top=0;this._8qd=this.left;this.b38gO=this.top;this.wz=function($){this.div.id="OverlayBg"+$;this.img.id=$};this.initialize=function($){if(px)this.img.ondragstart=function(){return false};this.sW=$;this.setContextMenu($.contextmenu);this.ao["mouseover"]=MEvent.bindDom(this.img,"mouseover",this.sW,this.sW.hiliteIcon);this.ao["mouseout"]=MEvent.bindDom(this.img,"mouseout",this.sW,this.sW.v4)};this.setContextMenu=function($){this.contextmenu=$;this.img.contextmenu=this.contextmenu;for(var _ in this.img.childNodes)if(typeof this.img.childNodes[_]=="object")this.img.childNodes[_].contextmenu=this.contextmenu};this.getImgUrl=function(){var A="",$=this.img;if($.innerHTML.indexOf(Maplet.MICON_IMGSRC_FLAG)!=-1){var B=new RegExp(Maplet.MICON_IMGSRC_FLAG+"=\"?([^\"\t ]*)","gi"),_=B.exec($.innerHTML);if(_!=null)A=_[1]}else if($.firstChild&&$.firstChild.tagName.toUpperCase()=="IMG")A=$.firstChild.src;else A=this.imgUrl;return A};this.enableDragMap=function(_){if(!this.img||!this.img.firstChild)return;var $=this.img.firstChild;if(_){if(!$.getAttribute(cV7))$.setAttribute(cV7,"true")}else if($.getAttribute(cV7))$.removeAttribute(cV7)};this.updateImage=function(_,C,B,$){this.imgUrl=_;if(this.imgUrl!=null&&this.imgUrl.indexOf("<")>=0)this.img.innerHTML=this.imgUrl;else{if(this.img.firstChild&&this.imgUrl==_){if(typeof $=="string")this.img.className="pjnum "+$;return}this.img.innerHTML="<img src="+this.imgUrl+">";if(this.sW){if(this.sW.label&&typeof C!="undefined"){this.sW.label.xoffset+=C-A;A=C}if(this.sW.maplet)this.sW.initialize(this.sW.maplet)}}this.img.firstChild.onmousedown=function($){return false};this.img.firstChild.setAttribute(R06w8,"marker");this.enableDragMap(this.sW?!this.sW.bEditable:true)};this.updateImage($);this.addTag=function(B,C){if(this.img.getElementsByTagName("span").length==0){B=B+"";this.iStr=B;var _=B.length,A=(typeof(this.img.height)=="undefined")?25:parseInt(this.img.height),D=(typeof(this.img.width)=="undefined")?19:parseInt(this.img.width),$=document.createElement("span");$.style.position="relative";$.style.display="block";$.style.cursor="pointer";$.style.textAlign="center";$.style.top="2px";$.style.zIndex="2";$.style.width=(D-3)+"px";$.style.fontWeight="bold";$.style.color=C;$.style.fontFamily="arial";$.style.letterSpacing="-1px";$.style.fontSize=Math.round(D-2*_-3)+"px";$.innerHTML=B;this.img.appendChild($)}};this.width=(typeof A=="undefined")?parseInt(this.img.width):parseInt(A);this.height=(typeof _=="undefined")?parseInt(this.img.height):parseInt(_);this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.I25Io=(typeof D=="undefined")?$:D;this.anchorX=(typeof C=="undefined")?this.width/2:parseInt(C);this.anchorY=(typeof B=="undefined")?this.height/2:parseInt(B);this.div.appendChild(this.img);this.update=function(_,B,C){var A=parseInt(B)-parseInt(this.anchorX),$=parseInt(C)-parseInt(this.anchorY);if(this.sW.autoHide&&!this.sW.ls&&(A>_.width||A<-this.width||$>_.height||$<-this.height)){if(this.div.parentNode){this.div.style.top=$+"px";this.div.style.left=A+"px";this.div.parentNode.removeChild(this.div);if(this.sW.label)this.sW.label.remove();this.fu=false}}else{if(this.div.parentNode!=_.lA.div&&!this.sW.ls){_.lA.appendChild(this.div);this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.img.width=this.width+"px";this.img.height=this.height+"px";this.fu=true}this.div.style.top=$+"px";this.div.style.left=A+"px";this._8qd=this.left;this.b38gO=this.top;this.left=A;this.top=$;B=A;C=$;if(this.sW.label)this.sW.label.update(this.sW.maplet,B,C)}};this.isVisible=function(){return(this.fu)};this.zq=function(){return(this.img.firstChild.src)+","+this.width+","+this.height};this.hilite=function(){if(this.sW)this.sW.hiliteIcon({target:this.img})};this.finalize=function(){this.remove(true)};this.remove=function(_){if(typeof _!="boolean")_=false;if(this.img.firstChild){if(px)this.img.ondragstart=null;this.img.firstChild.onmousedown=null;for(var $ in this.ao){MEvent.removeBuiltInListener(this.img.firstChild,$,this.ao[$]);this.ao[$]=null;if(_)delete this.ao[$]}}if(_)this.ao=null;if(this.div)if(!_){if(this.div.parentNode)this.div.parentNode.removeChild(this.div)}else{_removeNode(this.div);this.div=null}if(_)this.sW=null};this.setZIndex=function($){if(this.div&&this.div.parentNode&&$!=this.div.style.zIndex){this.$b1=this.div.style.zIndex;this.div.style.zIndex=$}};this.kP$D=function(){if(!this.div)return;if(this.$b1!=this.div.style.zIndex)this.setZIndex(this.$b1)};this.getRect=function(){var $={min:{x:this.div.offsetLeft,y:this.div.offsetTop},max:{x:0,y:0}};$.max.x=$.min.x+this.div.offsetWidth;$.max.y=$.min.y+this.div.offsetHeight;return $};this.toString=function(){return"com.mapbar.maplet.MIcon"}},MMarker=function(C,_,G,E,A){this.id=new Date().getTime()+""+parseInt(Math.random()*10000);this.pt=C;this.icon=(typeof _=="undefined")?null:_;if(this.icon&&this.icon.wz)this.icon.wz(this.id);this.shadow=typeof A=="undefined"?null:A;if(this.shadow&&this.shadow.wz)this.shadow.wz(this.id);this.label=(typeof E=="undefined")?null:E;if(this.label&&this.label.wz)this.label.wz(this.id);this.info=null;if(typeof G!="undefined"&&G){this.info=G;this.info.setOverlay(this)}this.lw=0;this.ls=false;this.bEditable=false;this.rotation=0;this.ao=new Array();this.contextmenu=null;this.autoHide=true;this.dragAnimation=true;this.setContextMenu=function($){this.contextmenu=$;if(this.icon!=null)this.icon.setContextMenu(this.contextmenu);if(this.label!=null)this.label.setContextMenu(this.contextmenu);if(typeof this.maplet=="object"&&this.maplet)this.contextmenu.initialize(this.maplet)};this.wz=function($){this.id=$;if(this.icon&&this.icon.wz)this.icon.wz($);if(this.shadow&&this.shadow.wz)this.shadow.wz($)};this.setEditable=function($){this.bEditable=(typeof $=="undefined")?false:$;if(REFRESH_MK_INDEX)this.refreshZIndex();if(this.icon)this.icon.enableDragMap(!this.bEditable)};this.refreshZIndex=function(_){if(!this.icon)return;if(typeof _!="boolean")_=true;if(this.maplet){var A=this.maplet.getMarkerPolygons(this);if(A.length>0){var $=false;for(var B=0;B<A.length;B++)if(A[B].bEditable){$=true;break}if(this.bEditable||!$){if(this.icon.div.style.zIndex<0)this.kP$D()}else if(this.icon.div.style.zIndex>=0)this.setZIndex(-1);if(_)for(B=0;B<A.length;B++)A[B].xk4(this)}}};this.initialize=function($){this.maplet=$;this.dragAnimation=this.maplet.markerDragAnimation&&this.dragAnimation;if(typeof this.contextmenu=="object"&&this.contextmenu)this.contextmenu.initialize(this.maplet);this.ao["mousedown"]=MEvent.bindDom(this.maplet.map,"mousedown",this,this.w0);if(this.icon!=null)this.icon.initialize(this);if(this.label!=null)this.label.initialize(this);if(this.shadow!=null)this.shadow.initialize(this);if(this.info!=null)this.ao["info_"+this.info.yd]=MEvent.bindDom(this.maplet.map,this.info.yd,this,this.openInfoWindow);else this.ao["click"]=MEvent.bindDom(this.maplet.map,"click",this,this.openInfoWindow);if(typeof this.maplet.lA!="undefined")this.paint();if(REFRESH_MK_INDEX)this.refreshZIndex()};this.toString=function(){return"com.mapbar.maplet.MMarker"};this.paint=function(){if(!this.maplet)return;if(!this.pt.maplet)this.pt.initialize(this.maplet);if(this.maplet.N31){if(this.maplet.Y$_8!=this.pt.Y$_8){this.pt.mapX+=this.maplet.ClPI;this.pt.mapY+=this.maplet.c970q;this.pt.Y$_8=this.maplet.Y$_8}}else this.pt.r05e$();if(this.icon){if(!this.icon.sW)this.icon.initialize(this);this.icon.update(this.maplet,this.pt.mapX,this.pt.mapY)}if(this.shadow){if(!this.shadow.sW)this.shadow.initialize(this);this.shadow.update(this.maplet,this.pt.mapX,this.pt.mapY)}};this.zq=function(){return(this.icon.isVisible())?"1"+","+this.pt.pid+","+this.icon.zq():""};this.finalize=function(){this.remove(true)};this.remove=function(A){if(typeof A!="boolean")A=false;if(this.maplet&&this.maplet.markerDragAnimation)this.maplet.d1rDu(false);if(A)this.removeContextMenu();if(this.icon)this.icon.remove(A);if(this.label)this.label.remove(A);if(this.shadow)this.shadow.remove(A);if(this.maplet){for(var $ in this.ao){var _=$.substring(0,5)=="info_"?$.substring(5):$;MEvent.removeBuiltInListener(this.maplet.map,_,this.ao[$]);this.ao[$]=null;if(A)delete this.ao[$]}if(this.maplet.u5[this.id]){this.maplet.u5[this.id]=null;delete this.maplet.u5[this.id]}}if(A)this.ao=null;this.maplet=null};this.removeContextMenu=function(){if(typeof this.contextmenu=="object"&&this.contextmenu){if(this.icon)this.icon.setContextMenu(null);if(this.label)this.label.setContextMenu(null);this.contextmenu.remove();this.contextmenu=null}};this.openInfoWindow=function($){if(this.openInfoWindow.caller==null);if(this.maplet!=null){if((new Date().getTime()-this.lw)<200)return;if(this.maplet.bV8&&typeof $=="object"&&((this.icon&&fJ($.target,this.icon.img))||(this.label&&fJ($.target,this.label.div)))){this.maplet.bV8=false;return}var A=this.pt.mapX,_=this.pt.mapY;if(typeof $=="undefined"||(typeof $=="object"&&this.icon&&fJ($.target,this.icon.img))||(typeof $=="object"&&this.label&&fJ($.target,this.label.div))){if(typeof $=="object"&&this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu)return;if(!this.icon.isVisible())if(A>=this.maplet.width*1.5||A<=-(this.maplet.width/2)||_<=-(this.maplet.height/2)||_>=this.maplet.height*1.5){this.maplet.setCenter(this.pt.pid);A=this.maplet.width/2;_=this.maplet.height/2}this.x=A;this.y=_;if(this.openInfoWindow.caller&&this.openInfoWindow.caller.toString().indexOf(".call(")!=-1){avBubble.q2xf8=false;MEvent.trigger(this,"click",this)}if(!this.maplet)return;if(!this.info)return;else if(!this.info.getOverlay())this.info.setOverlay(this);if(iToolTipStyle!=2){this.hiliteIcon({target:{id:this.id}});this.maplet.wN(A,_,this.info,"","",true)}}else if(typeof $=="boolean"&&$||$=="true"){if(!this.info)return;else if(!this.info.getOverlay())this.info.setOverlay(this);if(A>this.maplet.width*2||A<-this.maplet.width||_<-this.maplet.height||_>this.maplet.height*2){this.maplet.setCenter(this.pt.pid);A=this.maplet.width/2;_=this.maplet.height/2}this.maplet.wN(A,_,this.info,true)}}};this.w0=function(B){if(this.icon!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&fJ(B.target,this.icon.img)&&B.button!=2){this.qo=true;this.fd=false;this.l6=this.id;this.l0=parseInt(B.clientX-this.maplet.offsetX-this.maplet.left)-parseInt(this.icon.div.style.left);this.na=parseInt(B.clientY-this.maplet.offsetY-this.maplet.top)-parseInt(this.icon.div.style.top);if(this.rotation==1){var A=this.l0-this.icon.width/2,_=this.na-this.icon.height/2,$=Math.sqrt(A*A+_*_);if($>(this.icon.width/4-5)){this.fd=true;this.downX=B.clientX;this.downY=B.clientY}}this.ao["mousemove"]=MEvent.bindDom(document,"mousemove",this,this.f9);this.ao["mouseup"]=MEvent.bindDom(document,"mouseup",this,this.l1);if(px)this.ao["losecapture"]=MEvent.bindDom(document.body,"losecapture",this,this.l1);else this.ao["blur"]=MEvent.bindDom(window,"blur",this,this.l1)}};this.f9=function($){if(this.icon!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&(fJ($.target,this.icon.img)||this.l6==this.id))if(this.qo){if(avBubble.uX&&avBubble.uX.id==this.id)this.maplet.hideBubble();if(!this.fd){var L=$.clientX-this.maplet.offsetX-this.maplet.left-this.l0,J=$.clientY-this.maplet.offsetY-this.maplet.top-this.na,A=this.maplet.A4b,_=0,C=0;if(this.icon.div.parentNode==this.maplet.lA.div){this.maplet.vb.appendChild(this.icon.div);if(this.label)this.maplet.vb.appendChild(this.label.div);if(this.shadow)this.maplet.vb.appendChild(this.shadow.div);this.setZIndex(pF);if(px)document.body.setCapture();if(this.maplet.markerDragAnimation){_=A.tU70;C=A.AqW}}if(!D)D=nB(this,B,100);if(this.dragAnimation){J=J+this.icon.anchorY-A.height/2;this.maplet.d1rDu(true,L+this.icon.anchorX-A.width/2,J);J=J-A.offsetY-this.icon.height}this.x=L;this.y=J;this.lw=new Date().getTime();this.ls=true;this.icon.update(this.maplet,L+this.icon.anchorX,J+this.icon.anchorY);if(this.shadow){var K=this.icon.left-this.icon._8qd,H=this.icon.top-this.icon.b38gO;this.shadow.update(this.maplet,this.shadow.left+K+this.shadow.anchorX+_,this.shadow.top+H+this.shadow.anchorY+C)}}else{var I=parseInt($.clientX-this.maplet.offsetX-this.maplet.left)-parseInt(this.icon.div.style.left),G=parseInt($.clientY-this.maplet.offsetY-this.maplet.top)-parseInt(this.icon.div.style.top),F=Math.atan2((G-this.icon.height/2),I-this.icon.width/2),E=((90+F*180/Math.PI)+360)%360;MEvent.trigger(this,"rotate",E)}}};this.l1=function(_){if(this.icon!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo&&this.ls){if(this.maplet.fa)this.maplet.finishupPan();MEvent.removeBuiltInListener(document,"mousemove",this.ao["mousemove"]);this.ao["mousemove"]=null;MEvent.removeBuiltInListener(document,"mouseup",this.ao["mouseup"]);this.ao["mouseup"]=null;if(px){MEvent.removeBuiltInListener(document.body,"losecapture",this.ao["losecapture"]);this.ao["losecapture"]=null}else{MEvent.removeBuiltInListener(window,"blur",this.ao["blur"]);this.ao["blur"]=null}if(!this.fd){var B=_.clientX-this.maplet.offsetX-this.maplet.left-this.l0,A=_.clientY-this.maplet.offsetY-this.maplet.top-this.na;if(isNaN(B))B=this.x;if(isNaN(A))A=this.y;if(this.icon.div.parentNode!=this.maplet.lA.div){this.maplet.lA.appendChild(this.icon.div);if(this.label)this.maplet.lA.appendChild(this.label.div);if(this.shadow){this.maplet.lA.appendChild(this.shadow.div);this.shadow.kP$D()}with(this.maplet.A4b.fC){if(div.parentNode!=this.maplet.lA.div){this.maplet.lA.div.appendChild(div);div.style.zIndex=this.icon.div.style.zIndex-1}}if(px)document.body.releaseCapture()}if(this.dragAnimation)A=parseInt(this.maplet.A4b.fC.style.top)+this.maplet.A4b.height/2-this.icon.anchorY;this.pt.setMapCoords(B+this.icon.anchorX,A+this.icon.anchorY);this.x=B;this.y=A;if(this.dragAnimation)$.apply(this)}MEvent.trigger(this,"drag",this);MEvent.trigger(this.maplet,"edit",this);if(this.ls){this.lw=new Date().getTime();this.ls=false}if(this.maplet.sS==ts.tb||this.maplet.sS==ts.ta||this.maplet.sS==ts.lz||this.maplet.sS==ts.ly)this.maplet.Y7d32=false}if(this.l6==this.id)this.l6=null;this.qo=false};this.hiliteIcon=function(_){if(this.icon!=null&&fJ(_.target,this.id)){if(this.maplet.sS==ts.tz||this.maplet.sS==ts.tA||this.maplet.sS==ts.$9f)this.maplet.d7q("no-drop",this.icon.img);else if(this.info||MEvent.contains(this,"click")>0)this.maplet.d7q("pointer",this.icon.img);if(this.icon.div.style.zIndex<pF)pF++;this.icon.setZIndex(pF);if(this.label)this.label.setZIndex(pF);var $=cq.vp(this.pt.pid),B=this.maplet.zl($[0],$[1]),A=this.maplet.zm($[1],$[0]);this.x=B;this.y=A;if(typeof _.button!="undefined")MEvent.trigger(this,"mouseover",this)}};this.v4=function(_){this.maplet.d7q("default",this.icon.img);if(this.icon!=null&&fJ(_.target,this.id)){var $=cq.vp(this.pt.pid),B=this.maplet.zl($[0],$[1]),A=this.maplet.zm($[1],$[0]);this.x=B;this.y=A;MEvent.trigger(this,"mouseout",this)}};this.setZIndex=function($){if(this.icon)this.icon.setZIndex($);if(this.label)this.label.setZIndex($);if(this.shadow)this.shadow.setZIndex($)};this.kP$D=function(){if(this.icon)this.icon.kP$D();if(this.label)this.label.kP$D();if(this.shadow)this.shadow.kP$D()};this.setIcon=function($,_){if(typeof _!="boolean")_=true;if(this.icon){this.icon.remove();this.icon=null}if($){this.icon=$;this.icon.wz(this.id);this.icon.initialize(this);this.icon.enableDragMap(!this.bEditable);if(_)this.paint()}};this.setLabel=function($,_){if(typeof _!="boolean")_=true;if(this.label){this.label.remove();this.label=null}if($){this.label=$;this.label.wz(this.id);this.label.initialize(this);if(_)this.paint()}};this.setShadow=function(_,$){if(typeof $!="boolean")$=true;if(this.shadow){this.shadow.remove();this.shadow=null}if(_){this.shadow=_;this.shadow.wz(this.id);this.shadow.initialize(this);if($)this.paint()}};this.setInfoWindow=function($){if(this.info){if(avBubble.uX&&avBubble.uX.id==this.id&&ContentInfo&&ContentInfo.isVisible())this.maplet.hideBubble();this.info=null}if($){this.info=$;this.info.setOverlay(this)}};this.setPoint=function($,_){if(typeof _!="boolean")_=true;this.pt=$;if(_)this.paint()};var D=null,B=function(){if(this.ls){var $=this.maplet.DOw0s,B=this.icon.getRect(),_=0,A=0;if(B.min.x<$)_=50;if(B.min.y<$)A=50;if(B.max.x>this.maplet.width-$)_=-50;if(B.max.y+(this.dragAnimation?(this.maplet.A4b.height+this.maplet.A4b.offsetY):0)+2>this.maplet.height-$)A=-50;if((_!=0||A!=0)){this.maplet.panTo(_,A);return}}window.clearInterval(D);D=null};n$$G=null;var $=function(){window.clearTimeout(n$$G);this.maplet.A4b.uX=this;var $=0,_=50,D={b:parseInt(this.icon.div.style.top),c:0};D.c=this.pt.mapY-this.icon.anchorY-D.b;var C=null,A=null;if(this.shadow){C={b:parseInt(this.shadow.div.style.left),c:0};C.c=this.pt.mapX-this.shadow.anchorX-C.b;A={b:parseInt(this.shadow.div.style.top),c:0};A.c=this.pt.mapY-this.shadow.anchorY-A.b}function B(){if($<_){$++;this.icon.update(this.maplet,this.pt.mapX,Math.ceil(F($,D.b,D.c,_))+this.icon.anchorY);if(this.shadow)this.shadow.update(this.maplet,Math.ceil(F($,C.b,C.c,_))+this.shadow.anchorX,Math.ceil(F($,A.b,A.c,_))+this.shadow.anchorY);n$$G=getTimeout(this,B,10)}else this.maplet.d1rDu(false)}B.apply(this)};this.Ogm=function(){if(n$$G){window.clearTimeout(n$$G);n$$G=null}this.paint()};var F=function($,A,B,_){if(($/=_)<(1/2.75))return B*(7.5625*$*$)+A;else if($<(2/2.75))return B*(7.5625*($-=(1.5/2.75))*$+0.75)+A;else if($<(2.5/2.75))return B*(7.5625*($-=(2.25/2.75))*$+0.9375)+A;else return B*(7.5625*($-=(2.625/2.75))*$+0.984375)+A}},MPolyline=function(pts,brush,info,label,options){this.options=options||{};if(typeof this.options.editHilite!="boolean")this.options.editHilite=true;this.id=new Date().getTime()+""+parseInt(Math.random()*10000)+"MPolyline";this.pts=pts;this.brush=(typeof brush=="undefined")?new MBrush():brush;this.info=null;if(typeof info!="undefined"&&info){this.info=info;this.info.setOverlay(this)}this.label=(typeof label=="undefined")?null:label;this.qo=false;this.wk=null;this.z9=null;this.um=new MContextMenu();this.un=new MContextMenuItem("\u5220\u9664\u8282\u70b9");this.um.addItem(this.un);this.contextmenu=null;this.ao=new Array();this.$LI=new Object();this.isRefreshMkIndex=REFRESH_MK_INDEX;this.tn=Number.MAX_VALUE;this.to=this.tn;this.A5j2F=-Number.MAX_VALUE;this.y_U1N=this.A5j2F;this.maplet=null;this.bEditable=false;this.Xw6=false;this.Y7V=false;this.Xh5Lr=true;this.mH7=null;var $765_={yN:null,a045:{x:null,y:null},Sql:{x:null,y:null},M1iH:{x:null,y:null}};this.setEditable=function($){if($=="traffic"){this.bEditable=true;this.traffic=true}else{this.bEditable=(typeof $=="undefined")?false:$;this.traffic=false}if(!this.bEditable&&this.z9)this.w2SV_();if(this.maplet!=null)this.update()};this.setEditMode=function($){if($=="path")this.setEditable("traffic");else if($=="default")this.setEditable(true)};this.initialize=function($){this.maplet=$;if(typeof this.contextmenu=="object"&&this.contextmenu)this.contextmenu.initialize(this.maplet);this.um.initialize(this.maplet);this.ao["click"]=MEvent.bindDom(this.maplet.map,"click",this,this.openInfoWindow);if(this.traffic){this.ao["mouseover"]=MEvent.bindDom(this.maplet.map,"mouseover",this,this.uG);this.ao["mousedown"]=MEvent.bindDom(this.maplet.map,"mousedown",this,this.yw_);this.ao["mouseup"]=MEvent.bindDom(this.maplet.map,"mouseup",this,this.ba990);this.ao["mousemove"]=[];this.ao["mousemove"][0]=MEvent.bindDom(this.maplet.map,"mousemove",this,this.uG);this.ao["mousemove"][1]=MEvent.bindDom(this.maplet.map,"mousemove",this,this.SY643)}else{this.ao["mouseover"]=MEvent.bindDom(this.maplet.map,"mouseover",this,this.uG);this.ao["mousemove"]=MEvent.bindDom(this.maplet.map,"mousemove",this,this.f9);this.ao["mousedown"]=MEvent.bindDom(this.maplet.map,"mousedown",this,this.w0);this.ao["mouseup"]=MEvent.bindDom(this.maplet.map,"mouseup",this,this.l1)}if(this.brush.fill&&this.pts[0].getPid()!=this.pts[this.pts.length-1].getPid())this.pts.push(this.pts[0]);if(typeof this.maplet.lA!="undefined")this.paint()};this.toString=function(){return"com.mapbar.maplet.MPolyline"};this.zq=function(){return""};this.zn=function(){if(apiType==1)return{brush:this.brush,points:this.pts};else{var _=this.brush.filled?"2":"0",$=this.brush.stroke+","+_+","+this.brush.color+":";for(var A=0;A<this.pts.length;A++)$+=this.pts[A].getPid()+",";return $}};this.paint=function(){this.zX=this.maplet.a8xh5();if(px){if(!this.z0){this.z0=document.createElement("v:polyline");this.z0.unselectable="on";this.z0.id=this.id;this.z0.setAttribute("MStrName",this.toString());this.z0.strokecolor=this.brush.color;this.z0.strokeweight=this.brush.stroke+"px";this.z0.fill=this.brush.fill;this.z0.filled=this.brush.fill;this.z0.style.position="absolute";this.z0.contextmenu=this.contextmenu;this.z0.setAttribute(cV7,"true");this.z0.setAttribute(R06w8,"polyline");this.Ad=document.createElement("v:stroke");this.Ad.opacity=parseInt(this.brush.stroke)==0?0:this.brush.transparency/100;this.Ad.joinstyle="round";this.Ad.endcap="round";this.Ad.fill=this.brush.fill;this.Ad.endarrow=this.brush.arrow?"classic":"";this.Ad.dashstyle=parseInt(this.brush.style)?"dash":"";this.zY=document.createElement("v:fill");this.zY.opacity=((this.brush.bgtransparency)/100);this.zY.color=this.brush.bgcolor;this.z0.appendChild(this.zY);this.z0.appendChild(this.Ad);this.zX.appendChild(this.z0);if(!this.brush.fill&&this.brush.overlap.enable){var _=this.brush.overlap;this.mH7=document.createElement("v:polyline");this.mH7.unselectable="on";this.mH7.strokecolor=_.color;this.mH7.strokeweight=(_.stroke&&!isNaN(_.stroke)?_.stroke:this.brush.stroke-2)+"px";this.mH7.fill=false;this.mH7.filled=false;this.mH7.style.position="absolute";this.mH7.setAttribute(cV7,"true");this.mH7.setAttribute(R06w8,"polyline");var $=document.createElement("v:stroke");$.opacity=_.transparency/100;$.joinstyle="round";$.endcap="round";$.fill=false;$.endarrow=this.brush.arrow?"classic":"";$.dashstyle=parseInt(this.brush.style)?"dash":"";this.mH7.appendChild($);this.zX.appendChild(this.mH7)}this.ao["vpolyline_mouseover"]=MEvent.bindDom(this.z0,"mouseover",this,yWD87);this.ao["vpolyline_mouseout"]=MEvent.bindDom(this.z0,"mouseout",this,otNjY);this.ao["vpolyline_mousedown"]=MEvent.bindDom(this.z0,"mousedown",this,nX2);this.ao["vpolyline_mouseup"]=MEvent.bindDom(this.z0,"mouseup",this,lDfC5);if(this.mH7){this.ao["overlapLine_mouseover"]=MEvent.bindDom(this.mH7,"mouseover",this,yWD87);this.ao["overlapLine_mouseout"]=MEvent.bindDom(this.mH7,"mouseout",this,otNjY);this.ao["overlapLine_mousedown"]=MEvent.bindDom(this.mH7,"mousedown",this,nX2);this.ao["overlapLine_mouseup"]=MEvent.bindDom(this.mH7,"mouseup",this,lDfC5)}}}else{this.z0=this.zX.firstChild;if(!this.Ad){this.Ad=document.createElementNS("http://www.w3.org/2000/svg","path");this.Ad.setAttribute("id",this.id);this.Ad.setAttribute("MStrName",this.toString());this.Ad.setAttribute("stroke-linejoin","round");this.Ad.setAttribute("stroke-linecap","round");this.Ad.setAttribute("marker-end",this.brush.arrow?"url(#svgArrow)":"");this.Ad.setAttribute("stroke",this.brush.color);this.Ad.setAttribute("stroke-width",this.brush.stroke+"px");this.Ad.setAttribute("stroke-opacity",this.brush.transparency/100);this.Ad.setAttribute("style",parseInt(this.brush.style)?"stroke-dasharray:3,15":"");this.Ad.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.Ad.setAttribute("fill",(this.brush.fill)?this.brush.bgcolor:"none");this.Ad.setAttribute(cV7,"true");this.Ad.setAttribute(R06w8,"polyline");if(!this.brush.fill&&this.brush.overlap.enable){_=this.brush.overlap;this.mH7=document.createElementNS("http://www.w3.org/2000/svg","path");this.mH7.setAttribute("stroke-linejoin","round");this.mH7.setAttribute("stroke-linecap","round");this.mH7.setAttribute("marker-end",this.brush.arrow?"url(#svgArrow)":"");this.mH7.setAttribute("stroke",_.color);this.mH7.setAttribute("stroke-width",(_.stroke&&!isNaN(_.stroke)?_.stroke:this.brush.stroke-2)+"px");this.mH7.setAttribute("stroke-opacity",_.transparency/100);this.mH7.setAttribute("style",parseInt(this.brush.style)?"stroke-dasharray:3,15":"");this.mH7.setAttribute("fill","none");this.mH7.setAttribute(cV7,"true");this.mH7.setAttribute(R06w8,"polyline")}this.ao["vstroke_mouseover"]=MEvent.bindDom(this.Ad,"mouseover",this,yWD87);this.ao["vstroke_mouseout"]=MEvent.bindDom(this.Ad,"mouseout",this,otNjY);this.ao["vstroke_mousedown"]=MEvent.bindDom(this.Ad,"mousedown",this,nX2);this.ao["vstroke_mouseup"]=MEvent.bindDom(this.Ad,"mouseup",this,lDfC5);this.ao["vstroke_mousemove"]=MEvent.bindDom(this.Ad,"mousemove",this,U2M_5);if(this.mH7){this.ao["overlapLine_mouseover"]=MEvent.bindDom(this.mH7,"mouseover",this,yWD87);this.ao["overlapLine_mouseout"]=MEvent.bindDom(this.mH7,"mouseout",this,otNjY);this.ao["overlapLine_mousedown"]=MEvent.bindDom(this.mH7,"mousedown",this,nX2);this.ao["overlapLine_mouseup"]=MEvent.bindDom(this.mH7,"mouseup",this,lDfC5);this.ao["overlapLine_mousemove"]=MEvent.bindDom(this.mH7,"mousemove",this,U2M_5)}if(typeof this.contextmenu=="object"&&this.contextmenu)this.Ad.contextmenu=this.contextmenu;this.z0.appendChild(this.Ad);if(this.mH7)this.z0.appendChild(this.mH7)}}this.update()};var yWD87=function(_){var $=_.target;if(this.maplet.sS==ts.tz||this.maplet.sS==ts.tA||this.maplet.sS==ts.$9f)this.maplet.d7q("crosshair",$);else if(this.info||MEvent.contains(this,"click"))this.maplet.d7q("pointer",$);else this.maplet.d7q("default",$);if(_.type=="mouseover")MEvent.trigger(this,"mouseover",this)},otNjY=function($){if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.$9f)this.maplet.d7q("default",$.target);MEvent.trigger(this,"mouseout",this)},nX2=function($){if(!px){this.Xw6=true;this.Y7V=false}if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.$9f)this.maplet.d7q("move",$.target)},lDfC5=function(_){var $=_.target==this.z0?"vpolyline":_.target==this.Ad?"vstroke":"overlapLine";if(!px)this.Xw6=false;this.ao[$+"_mouseover"](_)},U2M_5=function($){if(this.Xw6&&!this.Y7V)this.Y7V=true};this.setContextMenu=function($){this.contextmenu=$;if(px){if(this.zX)this.zX.contextmenu=this.contextmenu;if(this.z0)this.z0.contextmenu=this.contextmenu}if(this.Ad)this.Ad.contextmenu=this.contextmenu;if(typeof this.maplet=="object"&&this.maplet)this.contextmenu.initialize(this.maplet)};this.setBrush=function($){if(!($ instanceof MBrush))return;this.brush=$;if(px){if(this.z0&&this.Ad&&this.zY){this.z0.strokecolor=this.brush.color;this.z0.strokeweight=this.brush.stroke+"px";this.Ad.opacity=parseInt(this.brush.stroke)==0?0:this.brush.transparency/100;this.Ad.fill=this.brush.fill;this.Ad.endarrow=this.brush.arrow?"classic":"none";this.Ad.dashstyle=parseInt(this.brush.style)?"dash":"";this.zY.opacity=((this.brush.bgtransparency)/100);this.zY.color=this.brush.bgcolor}}else{if(this.arrow){this.arrow.setAttribute("fill",this.brush.color);this.arrow.setAttribute("fill-opacity",this.brush.bgtransparency/100+0.3)}if(this.Ad){this.Ad.setAttribute("marker-end",this.brush.arrow?"url(#svgArrow)":"");this.Ad.setAttribute("stroke",this.brush.color);this.Ad.setAttribute("stroke-width",this.brush.stroke+"px");this.Ad.setAttribute("stroke-opacity",this.brush.transparency/100);this.Ad.setAttribute("style",parseInt(this.brush.style)?"stroke-dasharray:10,15":"");this.Ad.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.Ad.setAttribute("fill",(this.brush.fill)?this.brush.bgcolor:"none")}}};this.setInfoWindow=function($){if(this.info){if(avBubble.uX&&avBubble.uX.id==this.id&&ContentInfo&&ContentInfo.isVisible())this.maplet.hideBubble();this.info=null}if($){this.info=$;this.info.setOverlay(this)}};this.yOT=function($){if(typeof $!="object"||!$)return false;return($.mapX>-this.maplet.width/3&&$.mapX<this.maplet.width*1.33)&&($.mapY>-this.maplet.height/3&&$.mapY<this.maplet.height*1.33)};this.update=function(){this.z9=document.getElementById(this.id+"vNodeLayer");if(this.bEditable||this.maplet.sS==ts.tu){if(!this.z9){this.z9=document.createElement("div");this.z9.id=this.id+"vNodeLayer";this.z9.style.position="absolute";this.z9.style.display="none";this.z9.unselectable="on";this.z9.style.zIndex=1}this.z9.innerHTML="";if(this.traffic){var F=document.getElementById(this.id+"_node_traffic");if(F==null){F=document.createElement("IMG");F.style.width=CTLIMG_RESOURCE[0].w+"px";F.style.height=CTLIMG_RESOURCE[0].h+"px";if(D2a){F.src=sX;F.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);"}else F.src=CTLIMG_RESOURCE[0].url;F.id="_node_traffic";F.style.position="absolute";F.unselectable="on";F.alt=lt;F.title=lt;F.style.left="-65px";F.style.top="-112px";F.v5w="no";F.style.cursor="pointer";F.onmousedown=function(){return false};this.z9.style.width="11px";this.z9.style.height="11px";this.z9.style.overflow="hidden"}this.z9.style.display="none";this.z9.appendChild(F)}this.zX.appendChild(this.z9)}this.pu=new Array();this.aP=new Array();this.aR=new Array();var J=0,B=10;if(this.pts==null||this.pts.length<2)return;var C=false,_=this.maplet.width,$=this.maplet.height;this.tn=Number.MAX_VALUE;this.to=this.tn;this.A5j2F=-Number.MAX_VALUE;this.y_U1N=this.A5j2F;for(var M=0;M<this.pts.length;M++){if(!this.pts[M].inLevelRange(this.maplet.AG))continue;if(!this.pts[M].maplet)this.pts[M].initialize(this.maplet);if(this.maplet.N31){if(this.maplet.Y$_8!=this.pts[M].Y$_8){this.pts[M].mapX+=this.maplet.ClPI;this.pts[M].mapY+=this.maplet.c970q;this.pts[M].Y$_8=this.maplet.Y$_8}}else this.pts[M].r05e$();this.tn=Math.min(this.tn,this.pts[M].mapX);this.to=Math.min(this.to,this.pts[M].mapY);this.A5j2F=Math.max(this.A5j2F,this.pts[M].mapX);this.y_U1N=Math.max(this.y_U1N,this.pts[M].mapY);if(this.bEditable&&!this.yOT(this.pts[M])&&!this.yOT(this.pts[M+1])&&!this.yOT(this.pts[M-1]))continue;if(this.pts[M].mapX&&this.pts[M].mapY){this.aR[J]=this.pts[M].mapY;this.aP[J]=this.pts[M].mapX;this.pu[J]=M;if(_>this.aP[J])_=this.aP[J];if($>this.aR[J])$=this.aR[J];if(!C&&(this.aR[J]<0||this.aR[J]>this.maplet.height||this.aP[J]<0||this.aP[J]>this.maplet.width))C=true;if(J>0&&(Math.abs(this.aP[J]-this.aP[J-1])+Math.abs(this.aR[J]-this.aR[J-1]))>B)J++;if(J==0)J++}}if(!(this.bEditable||this.maplet.sS==ts.tu)&&C){var A=new Array(),D=new Array(),N=new Array();J=0;for(var O=1;O<this.aP.length;O++){if((this.aR[O]<-this.maplet.height&&this.aR[O-1]<-this.maplet.height)||(this.aR[O]>this.maplet.height*2&&this.aR[O-1]>this.maplet.height*2)||(this.aP[O]>this.maplet.width*2&&this.aP[O-1]>this.maplet.width*2)||(this.aP[O]<-this.maplet.width&&this.aP[O-1]<-this.maplet.width))continue;if(A.length==0||(A[J]!=this.aP[O-1]&&D[J]!=this.aR[O-1])){A[J]=this.aP[O-1];D[J]=this.aR[O-1];N[J]=this.pu[O-1];J++}A[J]=this.aP[O];D[J]=this.aR[O];N[J]=this.pu[O];J++}this.aP=A;this.aR=D;this.pu=N;A=null;D=null;N=null}var L=[];this.Aa=[];for(var I=0;I<this.aP.length;I++){if(px)L.push(this.aP[I]+","+this.aR[I]);else L.push(((I==0)?"M":"L")+this.aP[I]+","+this.aR[I]);this.Aa.push(this.aP[I]+","+this.aR[I]);if((this.bEditable||this.maplet.sS==ts.tu)&&!this.traffic){var H=document.getElementById(this.id+"_node_"+this.pu[I]);if(H==null){H=new Image();H.id=this.id+"_node_"+this.pu[I];H.qf=I;H.qk=this.pu[I];H.src=ul;H.unselectable="on";H.alt=lt;H.title=lt;H.style.position="absolute";H.style.filter="alpha(opacity=80);";H.style.MozOpacity=0.8;H.style.opacity=0.8;H.onmousedown=function(){return false};H.contextmenu=this.um}H.style.left=(parseInt(this.aP[I])-5)+"px";H.style.top=(parseInt(this.aR[I])-5)+"px";this.z9.appendChild(H);if(I>0){var E=document.getElementById(this.id+"_midnode_"+this.pu[I]);if(E==null){E=new Image();E.id=this.id+"_midnode_"+this.pu[I];E.qf=I;E.qk=this.pu[I];E.unselectable="on";E.src=ul;E.alt=lt;E.title=lt;E.style.position="absolute";E.style.filter="alpha(opacity=60);";E.style.MozOpacity=0.6;E.style.opacity=0.6;E.onmousedown=function(){return false};E.contextmenu=this.um}E.style.left=((parseInt(this.aP[I])+parseInt(this.aP[I-1]))/2-5)+"px";E.style.top=((parseInt(this.aR[I])+parseInt(this.aR[I-1]))/2-5)+"px";this.z9.appendChild(E)}}}if(bmc){this.z0.style.left=parseInt(_)+"px";this.z0.style.top=parseInt($)+"px"}if(this.z0)if(this.z0.points){this.z0.style.display="none";this.z0.points.value=L.join(",");this.z0.style.display="";if(this.mH7){this.mH7.style.display="none";this.mH7.points.value=L.join(",");this.mH7.style.display=""}}else if(px){var G=document.getElementById("fix_id");if(G)G.parentNode.removeChild(G);var K=document.createElement("script");K.id="fix_id";document.body.insertBefore(K,document.body.firstChild);this.z0.style.display="none";this.z0.points.value=L.join(",");this.z0.style.display="";if(this.mH7)this.mH7.points.value=L.join(",")}else{this.Ad.setAttribute("d",L.join(""));if(this.mH7)this.mH7.setAttribute("d",L.join(""))}if(this.isRefreshMkIndex&&!(this.maplet.sS==ts.tb||this.maplet.sS==ts.ta||this.maplet.sS==ts.lz||this.maplet.sS==ts.ly))this.refreshMarkerZIndex()};this.refreshMarkerZIndex=function(){if(!this.U41k0()||!this.maplet)return;var A=this.maplet.getMarkersInPolygon(this),$=new Object();if(A.length>0)for(var B=0;B<A.length;B++){if(this.bEditable&&!A[B].bEditable)A[B].setZIndex(-1);else if(A[B].icon&&A[B].icon.div.style.zIndex<0)A[B].kP$D();$[A[B].id]=A[B]}for(var _ in this.$LI)if(!$[this.$LI[_].id])if(typeof this.$LI[_].kP$D=="function")this.$LI[_].kP$D();this.$LI=$};this.U41k0=function(){if(!this.Ad)return false;return this.Ad.getAttribute("fill")!="none"||this.Ad.getAttribute("fill")==eval(true)};this.xk4=function($){if(!this.$LI[$.id])this.$LI[$.id]=$};this.w2SV_=function(){if(this.z9){var $=this.z9.childNodes;for(var _=0;_<$.length;_++){$[_].onmousedown=null;$[_].contextmenu=null}this.z9.contextmenu=null;_removeNode(this.z9);this.z9=null}};this.finalize=function(){this.remove(true)};this.remove=function(_){if(typeof _!="boolean")_=false;if(this.U41k0()&&this.bEditable){this.bEditable=false;this.refreshMarkerZIndex();if(!_)this.bEditable=true}for(var $ in this.ao){if($.substring(0,8)=="vstroke_"){if(this.Ad)MEvent.removeBuiltInListener(this.Ad,$.substring(8),this.ao[$])}else if($.substring(0,10)=="vpolyline_"){if(this.z0)MEvent.removeBuiltInListener(this.z0,$.substring(10),this.ao[$])}else if($.substring(0,12)=="overlapLine_"){if(this.mH7)MEvent.removeBuiltInListener(this.mH7,$.substring(12),this.ao[$])}else if(this.maplet){var A=this.ao[$];if(GYAjR(A)){for(var B=0;B<A.length;B++)MEvent.removeBuiltInListener(this.maplet.map,$,A[B])}else MEvent.removeBuiltInListener(this.maplet.map,$,A)}this.ao[$]=null;if(_)delete this.ao[$]}if(_){this.ao=null;this.removeContextMenu();this.um.remove();this.um=null}if(typeof this.mH7=="object"&&this.mH7){_removeNode(this.mH7);this.mH7=null}if(px){if(typeof this.z0=="object"&&this.z0){_removeNode(this.z0);this.z0=null}}else if(typeof this.Ad=="object"&&this.Ad){_removeNode(this.Ad);this.Ad=null}if(this.maplet)if(this.maplet.u5[this.id]){this.maplet.u5[this.id]=null;delete this.maplet.u5[this.id]}this.w2SV_();if(_)this.maplet=null};this.removeContextMenu=function(){if(typeof this.contextmenu=="object"&&this.contextmenu){if(px){if(this.zX)this.zX.contextmenu=null;if(this.z0)this.z0.contextmenu=null}if(this.Ad)this.Ad.contextmenu=null;this.contextmenu.remove();this.contextmenu=null}};this.getCenterXY=function(){var A=0,$=0;if(this.brush.fill){A=this.tn+(this.A5j2F-this.tn)/2;$=this.to+(this.y_U1N-this.to)/2}else{var _=Math.ceil(this.pts.length/2)-(this.pts.length%2);if(_<this.pts.length){A=this.pts[_].mapX;$=this.pts[_].mapY}}return{x:A,y:$}};this.getCenterPt=function(){if(this.tn!=Number.MAX_VALUE&&this.maplet){var $=this.getCenterXY(),_=new MPoint(this.maplet.toMapCoordinate($.x,$.y));_.initialize(this.maplet);return _}else return null};this.openInfoWindow=function(_){if(this.maplet){if(typeof _!="undefined"&&(_.target.id==this.id||_.target==this.mH7)&&this.maplet.edj5){this.maplet.edj5=false;return}if(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu)return;if(this.info&&!this.info.getOverlay())this.info.setOverlay(this);if(typeof _=="undefined"){if(this.info!=null&&this.pts.length>=2){var C=this.getCenterXY(),B=C.x,$=C.y;if(B>=this.maplet.width*1.5||B<=-(this.maplet.width/2)||$<=-(this.maplet.height/2)||$>=this.maplet.height*1.5){this.maplet.setCenter(new MPoint(this.maplet.toMapCoordinate(B,$)));B=this.maplet.width/2;$=this.maplet.height/2}if(iToolTipStyle==2){this.x=B;this.y=$;MEvent.trigger(this,"click",this)}else this.maplet.wN(B,$,this.info,"","",true)}}else if((_.target.id==this.id||_.target==this.mH7)&&!this.maplet.edj5){var D=_.clientX-this.maplet.offsetX-this.maplet.left-(px?3:1),A=_.clientY-this.maplet.offsetY-this.maplet.top-(px?3:1);if(iToolTipStyle==2){this.x=D;this.y=A;MEvent.trigger(this,"click",this)}else{MEvent.trigger(this,"click",this);if(this.info){if(!this.info.getOverlay())this.info.setOverlay(this);this.maplet.wN(D,A,this.info,false);avBubble.yas1D=true}}}}};this.wQ=function($){if(this.z9!=null)if($){this.z9.style.display="block";this.z9.style.zIndex=10}else{this.z9.style.display="none";this.z9.style.zIndex=0}};this.uG=function(A){if(!this.maplet)return;if(this.maplet.sS==ts.tb||this.maplet.sS==ts.ta||this.maplet.sS==ts.lz||this.maplet.sS==ts.ly)return;if(this.traffic){if((this.bEditable||this.maplet.sS==ts.tu)&&!this.qo){if(this.ls)return;var _=this.V93([A.clientX-this.maplet.offsetX,A.clientY-this.maplet.offsetY],this.Aa);if(this.zX!=null&&this.maplet&&_!=null||fJ(A.target,this.z9)){this.wQ(true);var B=[-10,-10];if(_!=null&&this.maplet){B=this.M7035(_[0],_[1],[A.clientX-this.maplet.offsetX,A.clientY-this.maplet.offsetY]);this.$PM5=_;this.z0.style.cursor="pointer"}else this.z0.style.cursor="default";this.$S3o=true;clearTimeout(this.fv1);this.fv1=null;var $=[0,0];switch(this.CA9g){case 1:$=[0,1];break;case 2:$=[1,0];break;case 3:$=[1,1];break;case 4:$=[0,0];break;default:$=[0,0];break}this.z9.style.left=(parseInt(B[0])-(px?(5+$[0]):5))+"px";this.z9.style.top=(parseInt(B[1])-(px?(5+$[1]):5))+"px"}else{this.z0.style.cursor="default";if(this.z9!=null&&this.z9.style.display=="none")return;if(this.fv1!=null)return;this.$S3o=false;this.fv1=getTimeout(this,function(){if(this.$S3o)return;if(this.z9!=null&&this.z9.style.display=="none")return;this.wQ(false);clearTimeout(this.fv1);this.fv1=null},500)}}else if(this.qo)this.SY643(A)}else if(this.bEditable||this.maplet.sS==ts.tu)if(this.ls||this.zX!=null&&this.maplet&&fJ(A.target,px?this.z0:this.Ad)||fJ(A.target,this.z9)||fJ(A.target,this.mH7)){if(this.options.editHilite)if(px)this.Ad.opacity=parseInt(this.brush.stroke)==0?0:1;else this.Ad.setAttribute("stroke-opacity",1);this.wQ(true)}else{if(this.options.editHilite)if(px)this.Ad.opacity=parseInt(this.brush.stroke)==0?0:this.brush.transparency/100;else this.Ad.setAttribute("stroke-opacity",this.brush.transparency/100);this.wQ(false)}};this.w0=function(_){if(this.zX!=null&&this.maplet&&(px&&_.button==1||!px&&_.button==0)&&(this.bEditable||this.maplet.sS==ts.tu)&&(fJ(_.target,px?this.z9:this.Ad)||!px&&fJ(_.target,this.z9))&&_.target.id.indexOf("node")!=-1){this.qo=true;this.maplet.l6=_.target.id;this.l0=px?_.offsetX:_.layerX;this.na=px?_.offsetY:_.layerY;l6M=_.target;if(this.wk==null)if(px){this.wk=document.createElement("v:polyline");this.wk.unselectable="on";this.wk.id=this.id;this.wk.strokecolor=this.brush.color;this.wk.strokeweight=this.brush.stroke+"px";this.wk.fill=this.brush.fill;this.wk.filled=this.brush.fill;this.wk.style.position="absolute";this.Ac=document.createElement("v:stroke");this.Ac.opacity=parseInt(this.brush.stroke)==0?0:1;this.Ac.joinstyle="round";this.Ac.endcap="round";this.Ac.fill=this.brush.fill;this.Ac.dashstyle="dash";var $=document.createElement("v:fill");$.opacity=((this.brush.bgtransparency)/100);$.color=this.brush.bgcolor;this.wk.appendChild($)}else{this.wk=document.createElementNS("http://www.w3.org/2000/svg","svg");this.wk.setAttribute("version","1.1");this.wk.setAttribute("overflow","visible");this.wk.setAttribute("viewBox","0 0 "+this.maplet.width+" "+this.maplet.height);this.wk.setAttribute("height",this.maplet.height+"px");this.wk.setAttribute("width",this.maplet.width+"px");this.wk.setAttribute("unselectable","on");this.Ac=document.createElementNS("http://www.w3.org/2000/svg","path");this.Ac.setAttribute("MStrName",this.toString());this.Ac.setAttribute("stroke-linejoin","round");this.Ac.setAttribute("stroke-linecap","round");this.Ac.setAttribute("stroke",this.brush.color);this.Ac.setAttribute("stroke-width",this.brush.stroke+"px");this.Ac.setAttribute("stroke-opacity",1);this.Ac.setAttribute("style","stroke-dasharray:10,15");this.Ac.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.Ac.setAttribute("fill",(this.brush.fill)?this.brush.bgcolor:"none");if(this.brush.arrow){this.arrow=document.createElementNS("http://www.w3.org/2000/svg","path");this.arrow.setAttribute("d","M 0 0 L 10 5 L 0 10 L 4 5 z");this.arrow.setAttribute("fill",this.brush.color);this.arrow.setAttribute("fill-opacity",this.brush.bgtransparency/100+0.3);this.zY=document.createElementNS("http://www.w3.org/2000/svg","marker");this.zY.setAttribute("id","arrow"+this.id);this.zY.setAttribute("viewBox","0 0 10 10");this.zY.setAttribute("refX","6");this.zY.setAttribute("refY","5");this.zY.setAttribute("markerUnits","strokeWidth");this.zY.setAttribute("orient","auto");this.zY.appendChild(this.arrow);this.zY.appendChild(this.arrow);this.wk.appendChild(this.zY)}}this.wk.appendChild(this.Ac);this.zX.appendChild(this.wk)}};this.f9=function(_){if(l6M!=null&&(this.bEditable||this.maplet.sS==ts.tu)&&l6M.id.indexOf("node")>0&&this.qo)if(l6M!=null){if(avBubble.uX&&avBubble.uX.id==this.id)this.maplet.hideBubble();var C=_.clientX-this.maplet.offsetX-this.maplet.left-this.l0,A=_.clientY-this.maplet.offsetY-this.maplet.top-this.na;l6M.style.left=(parseInt(C))+"px";l6M.style.top=(parseInt(A))+"px";this.lw=new Date().getTime();this.ls=true;var B=parseInt(l6M.qf),$=new String(px?"":"M");if(l6M.id.indexOf("_midnode_")>0){$+=this.aP[B-1]+","+this.aR[B-1];$+=(px?",":"L")+(C+5)+","+(A+5);$+=(px?",":"L")+this.aP[B]+","+this.aR[B]}else{if(B>0)$+=this.aP[B-1]+","+this.aR[B-1]+(px?",":"");$+=((B>0&&!px)?"L":"")+(C+5)+","+(A+5);if(B<this.aP.length-1)$+=(px?",":"L")+this.aP[B+1]+","+this.aR[B+1]}if(this.wk!=null)if(this.wk.points)this.wk.points.value=$;else if(px)this.wk.value=$;else this.Ac.setAttribute("d",$)}};this.l1=function(_){if(this.zX!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo){if(l6M!=null&&this.ls){var C=parseInt(_.clientX)-parseInt(this.maplet.offsetX)-parseInt(this.maplet.left)-this.l0,A=parseInt(_.clientY)-parseInt(this.maplet.offsetY)-parseInt(this.maplet.top)-this.na,B=parseInt(l6M.qk),$=this.maplet.toMapCoordinate(C+5,A+5);if(l6M.id.indexOf("_midnode_")>0)this.pts.splice(B,0,new MPoint($));else this.pts.splice(B,1,new MPoint($));this.lw=new Date().getTime();this.ls=false;l6M=null;this.update();MEvent.trigger(this,"drag",this);MEvent.trigger(this.maplet,"edit",this)}this.qo=false;if(this.wk.parentNode!=null){_removeNode(this.wk);this.wk=null}}if(this.maplet&&this.maplet.l6==this.id)this.maplet.l6=null};this.removeNode=function($){if(typeof $!="undefined"){if($.toString().indexOf(this.id)>=0&&$.toString().lastIndexOf("_")>=0)$=$.toString().substring($.toString().lastIndexOf("_")+1);$=parseInt($);if(!isNaN($)&&$<this.pts.length){this.pts.splice($,1);MEvent.trigger(this,"edit",this);MEvent.trigger(this.maplet,"edit",this);if(this.wk!=null&&this.wk.parentNode!=null){_removeNode(this.wk);this.wk=null}this.update()}}};MEvent.bind(this.un,"select",this,this.removeNode);this._s980=function(B,$,_,A){this.J79N$=function(D){var C=Math.atan2($-D.hN9Y9,B-D.f0i)-D.M0U,E=Math.atan2(A-D.hN9Y9,_-D.f0i)-D.M0U;while(C<0)C+=2*Math.PI;while(E<0)E+=2*Math.PI;while(C>2*Math.PI)C-=2*Math.PI;while(E>2*Math.PI)E-=2*Math.PI;return(C-Math.PI)*(E-Math.PI)<0&&(C>Math.PI?2*Math.PI-C:C)+(E>Math.PI?2*Math.PI-E:E)<Math.PI}};this.b03=function(A,$,_){this.f0i=A;this.hN9Y9=$;this.M0U=_};this.Wd9q8=function(E){var F=null;E=E.toString().split(",");var _=parseInt(E[0]),G=parseInt(E[1]),A=parseInt(E[2]),D=parseInt(E[3]),B=Math.abs(_-A),C=Math.abs(G-D),$=parseInt(this.brush.stroke),I=$*C/Math.sqrt(Math.pow(B,2)+Math.pow(C,2)),H=I*B/C,J=4;this.CA9g=0;if(_==A){this.CA9g=1;F=[[_-$-J,G],[_+$+J,G],[A+$+J,D],[A-$-J,D]]}else if(G==D){this.CA9g=2;F=[[_,G+$+J],[A,D+$+J],[A,D-$-J],[_,G-$-J]]}else if(G<D&&_<A){this.CA9g=3;F=[[parseInt(_-I-J),parseInt(G+H+J)],[parseInt(A-I-J),parseInt(D+H+J)],[parseInt(A+I+J),parseInt(D-H-J)],[parseInt(_+I+J),parseInt(G-H-J)]]}else if(G>D&&_<A){this.CA9g=4;F=[[parseInt(_-I-J),parseInt(G-H-J)],[parseInt(A-I-J),parseInt(D-H-J)],[parseInt(A+I+J),parseInt(D+H+J)],[parseInt(_+I+J),parseInt(G+H+J)]]}else if(G>D&&_>A){this.CA9g=3;F=[[parseInt(_-I-J),parseInt(G+H+J)],[parseInt(_+I+J),parseInt(G-H-J)],[parseInt(A+I+J),parseInt(D-H-J)],[parseInt(A-I-J),parseInt(D+H+J)]]}else if(G<D&&_>A){this.CA9g=4;F=[[parseInt(_-I-J),parseInt(G-H-J)],[parseInt(_+I+J),parseInt(G+H+J)],[parseInt(A+I+J),parseInt(D+H+J)],[parseInt(A-I-J),parseInt(D-H-J)]]}return F};this.G$48H=[];this.SSa9w=function(B,$){var A=this.Wd9q8($);for(var E=0;E<A.length;E++)this.G$48H.push(new this._s980(A[E][0],A[E][1],A[(E+1)%A.length][0],A[(E+1)%A.length][1]));var D=new this.b03(B[0],B[1],parseFloat("0.523112313123")),C=0;for(var _=0;_<this.G$48H.length;_++)if(this.G$48H[_].J79N$(D))C++;this.G$48H=[];return C%2!=0};this.V93=function($,_){for(var A=0;A<_.length-1;A++)if(this.SSa9w($,[_[A],[_[A+1]]]))return[_[A],[_[A+1]]];return null};this.M7035=function(D,$,E){D=D.toString().split(",");$=$.toString().split(",");var B=[parseInt($[0])-parseInt(D[0]),parseInt($[1])-parseInt(D[1])],A=[parseInt(E[0])-parseInt(D[0]),parseInt(E[1])-parseInt(D[1])],C=A[0]*B[0]+A[1]*B[1];if(C<=0)return D;var _=B[0]*B[0]+B[1]*B[1];if(_<=C)return $;return[parseInt(D[0])+B[0]*C/_,parseInt(D[1])+B[1]*C/_]};this.yw_=function(_){if(this.zX!=null&&this.maplet&&(px&&_.button==1||!px&&_.button==0)&&(this.bEditable||this.maplet.sS==ts.tu)&&fJ(_.target,this.z9)){this.qo=true;this.maplet.l6=_.target.id;var A=parseInt(_.target.style.left)+(px?1:0),$=parseInt(_.target.style.top)+(px?1:0);this.l0=(px?_.offsetX:_.layerX)+A;this.na=(px?_.offsetY:_.layerY)+$;l6M=_.target}else this.ls=true};this.ba990=function($){if(this.zX!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo){this.qo=false;var A=parseInt($.clientX)-parseInt(this.maplet.offsetX)-parseInt(this.maplet.left)-this.l0,_=parseInt($.clientY)-parseInt(this.maplet.offsetY)-parseInt(this.maplet.top)-this.na;if(A>0&&_>0)MEvent.trigger(this,"nodedrag",this,new MMarker(new MPoint(this.maplet.toMapCoordinate(A+5,_+5))),(this.H6n9(this,this.$PM5)).slice(0,2));this.wQ(false);this.$S3o=false;clearTimeout(this.fv1);this.fv1=null}this.ls=false;if(this.maplet&&this.maplet.l6==this.id)this.maplet.l6=null};this.H6n9=function(A,_){var $=[],B=A.pts;for(var C=0;C<B.length;C++)if(B[C].mapX+","+B[C].mapY==_[0].toString()||B[C].mapX+","+B[C].mapY==_[1].toString())$.push(C);return $};this.SY643=function($){if(l6M!=null&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo)if(l6M!=null){var x=$.clientX-this.maplet.offsetX-this.maplet.left-this.l0,y=$.clientY-this.maplet.offsetY-this.maplet.top-this.na;this.z9.style.left=(parseInt(x))+"px";this.z9.style.top=(parseInt(y))+"px";MEvent.trigger(this,"nodedrag_move",this,new MMarker(new MPoint(this.maplet.toMapCoordinate(x+5,y+5))),(this.H6n9(this,this.$PM5)).slice(0,2));this.lw=new Date().getTime();this.ls=true;with($765_){Sql.x=x;Sql.y=y;if(!yN){a045.x=x;a045.y=y;M1iH.x=x;M1iH.y=y;yN=nB(this,D402V,LPN_HOVERING_TIME)}}}};var D402V=function(){with($765_){if(!this.qo&&yN){clearInterval(yN);yN=null;return}if(a045.x==Sql.x&&a045.y==Sql.y&&(Sql.x!=M1iH.x||Sql.y!=M1iH.y)){M1iH.x=Sql.x;M1iH.y=Sql.y;MEvent.trigger(this,"drag_hovering",this,new MMarker(new MPoint(this.maplet.toMapCoordinate(Sql.x+5,Sql.y+5))),(this.H6n9(this,this.$PM5)).slice(0,2))}else{a045.x=Sql.x;a045.y=Sql.y}}};this.appendPoint=function($,_){if(typeof $!="object"||!($ instanceof MPoint)||!$)throw new Error("para new_pt is not a valid MPoint object.");this.pts.push($);if(!this.pts[this.pts.length-1].maplet)this.pts[this.pts.length-1].initialize(this.maplet);if(typeof _!="boolean")_=true;if(_)this.update()}},MEllipse=function(B,_,$,A,C){this.id=new Date().getTime()+""+parseInt(Math.random()*10000)+"Ellipse";this.gC=B;this.L34=typeof _!="undefined"&&!isNaN(_)?parseInt(_):300;this.OO3=typeof $!="undefined"&&!isNaN($)?parseInt($):null;this.brush=(typeof A=="undefined")?new MBrush():A;this.info=(typeof C=="undefined")?null:C;this.ao=new Array();this.zX=null;this.d6PN7=null;this.Xh5Lr=true;this.data={qx:0,qz:0,y144d:0,SE6KN:0,L34:0,OO3:0};this.Xw6=false;this.Y7V=false;this.initialize=function($){this.maplet=$;if(this.info)this.ao["click"]=MEvent.bindDom(this.maplet.map,"click",this,this.openInfoWindow);this.paint()};this.toString=function(){return"com.mapbar.maplet.MEllipse"};this.paint=function(){if(!this.d6PN7){this.zX=this.maplet.a8xh5();if(px){this.d6PN7=document.createElement("v:oval");this.d6PN7.strokecolor=this.brush.color;this.d6PN7.strokeweight=this.brush.stroke+"px";this.d6PN7.filled=this.brush.fill;var _=document.createElement("v:stroke");_.opacity=(this.brush.transparency/100);var $=document.createElement("v:fill");$.opacity=((this.brush.bgtransparency)/100);$.color=this.brush.bgcolor;this.d6PN7.appendChild(_);this.d6PN7.appendChild($);this.zX.appendChild(this.d6PN7)}else{this.d6PN7=document.createElementNS("http://www.w3.org/2000/svg","ellipse");this.d6PN7.setAttribute("stroke",this.brush.color);this.d6PN7.setAttribute("fill",this.brush.bgcolor);this.d6PN7.setAttribute("stroke-width",this.brush.stroke);this.d6PN7.setAttribute("stroke-opacity",this.brush.transparency/100);this.d6PN7.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.zX.firstChild.appendChild(this.d6PN7)}this.d6PN7.id=this.id;this.d6PN7.style.position="absolute";this.d6PN7.unselectable="on";this.d6PN7.setAttribute(cV7,"true");this.d6PN7.setAttribute(R06w8,"true");this.ao["ellipse_mouseover"]=MEvent.bindDom(this.d6PN7,"mouseover",this,function(){if(this.maplet.sS==ts.tz||this.maplet.sS==ts.tA||this.maplet.sS==ts.$9f)this.maplet.d7q("crosshair",this.d6PN7);else if(this.info||MEvent.contains(this,"click"))this.maplet.d7q("pointer",this.d6PN7);else this.maplet.d7q("default",this.d6PN7)});this.ao["ellipse_mouseout"]=MEvent.bindDom(this.d6PN7,"mouseout",this,function(){if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.$9f)this.maplet.d7q("default",this.d6PN7)});this.ao["ellipse_mousedown"]=MEvent.bindDom(this.d6PN7,"mousedown",this,function(){this.Xw6=true;this.Y7V=false;if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.$9f)this.maplet.d7q("move",this.d6PN7)});this.ao["ellipse_mouseup"]=MEvent.bindDom(this.d6PN7,"mouseup",this,function($){this.Xw6=false;this.ao["ellipse_mouseover"]($)});this.ao["ellipse_mousemove"]=MEvent.bindDom(this.d6PN7,"mousemove",this,function(){if(this.Xw6&&!this.Y7V)this.Y7V=true})}this.update()};this.update=function(){if(this.d6PN7){if(!this.gC.maplet)this.gC.initialize(this.maplet);if(this.maplet.N31){if(this.maplet.Y$_8!=this.gC.Y$_8){this.gC.mapX+=this.maplet.ClPI;this.gC.mapY+=this.maplet.c970q;this.gC.Y$_8=this.maplet.Y$_8}}else this.gC.r05e$();var B=this.gC.mapX,_=this.gC.mapY,$=parseInt(this.L34/111111/this.maplet.xg*this.maplet.imgWidth/0.8),A=$;if(this.OO3)A=parseInt(this.OO3/111111/this.maplet.xf*this.maplet.imgHeight);this.data.qx=B-$;this.data.qz=_-A;this.data.y144d=B+$;this.data.SE6KN=_+A;this.data.L34=$;this.data.OO3=A;if(px){this.d6PN7.style.left=this.data.qx+"px";this.d6PN7.style.top=this.data.qz+"px";this.d6PN7.style.width=$*2+"px";this.d6PN7.style.height=A*2+"px"}else{this.d6PN7.setAttribute("cx",B+"px");this.d6PN7.setAttribute("cy",_+"px");this.d6PN7.setAttribute("rx",$+"px");this.d6PN7.setAttribute("ry",A+"px")}}};this.finalize=function(){this.remove(true)};this.remove=function(_){for(var $ in this.ao){if($.substring(0,8)=="ellipse_"){if(this.d6PN7)MEvent.removeBuiltInListener(this.d6PN7,$.substring(8),this.ao[$])}else if(this.maplet)MEvent.removeBuiltInListener(this.maplet.map,$,this.ao[$]);this.ao[$]=null;delete this.ao[$]}if(typeof this.d6PN7=="object"&&this.d6PN7&&this.d6PN7.parentNode){_removeNode(this.d6PN7);this.d6PN7=null}this.zX=null;if(this.maplet)if(this.maplet.u5[this.id]){this.maplet.u5[this.id]=null;delete this.maplet.u5[this.id]}if(_){this.ao=null;this.maplet=null}};this.openInfoWindow=function(_){if(this.maplet!=null){if(this.Y7V){if(_.target.id==this.id&&this.maplet.edj5)this.maplet.edj5=false;return}if(!this.info||(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu))return;var B=this.gC.mapX,A=this.gC.mapY;if(!this.info.getOverlay())this.info.setOverlay(this);var $=true;if(typeof _=="undefined");else if(_.target.id==this.id&&!this.maplet.edj5){MEvent.trigger(this,"click",this);B=_.clientX-this.maplet.offsetX-this.maplet.left-(px?3:1);A=_.clientY-this.maplet.offsetY-this.maplet.top-(px?3:1)}else if(_.target.id==this.id&&this.maplet.edj5){this.maplet.edj5=false;$=false}else $=false;if($)this.maplet.wN(B,A,this.info)}}},MRoundRect=function($,A,_,B,C){this.id=new Date().getTime()+""+parseInt(Math.random()*10000)+"RRect";this.Mrq52=$;this.APVp0=A;this.arcsize=typeof _=="number"?_:0.1;this.width=0;this.height=0;this.brush=(typeof B=="undefined")?new MBrush():B;this.info=(typeof C=="undefined")?null:C;this.ao=new Array();this.zX=null;this.rect=null;this.Xh5Lr=true;this.Xw6=false;this.Y7V=false;this.initialize=function($){this.maplet=$;if(this.info)this.ao["click"]=MEvent.bindDom(this.maplet.map,"click",this,this.openInfoWindow);this.paint()};this.toString=function(){return"com.mapbar.maplet.MRoundRect"};this.paint=function(){if(!this.rect){this.zX=this.maplet.a8xh5();if(px){this.rect=document.createElement("v:roundrect");this.rect.strokecolor=this.brush.color;this.rect.strokeweight=this.brush.stroke+"px";this.rect.filled=this.brush.fill;this.rect.arcsize=this.arcsize;var _=document.createElement("v:stroke");_.opacity=(this.brush.transparency/100);var $=document.createElement("v:fill");$.opacity=((this.brush.bgtransparency)/100);$.color=this.brush.bgcolor;this.rect.appendChild(_);this.rect.appendChild($);this.zX.appendChild(this.rect)}else{this.rect=document.createElementNS("http://www.w3.org/2000/svg","rect");this.rect.setAttribute("stroke",this.brush.color);this.rect.setAttribute("fill",this.brush.bgcolor);this.rect.setAttribute("stroke-width",this.brush.stroke);this.rect.setAttribute("stroke-opacity",this.brush.transparency/100);this.rect.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.zX.firstChild.appendChild(this.rect)}this.rect.id=this.id;this.rect.style.position="absolute";this.rect.unselectable="on";this.rect.setAttribute(cV7,"true");this.ao["rect_mouseover"]=MEvent.bindDom(this.rect,"mouseover",this,function(){if(this.maplet.sS==ts.tz||this.maplet.sS==ts.tA||this.maplet.sS==ts.$9f)this.maplet.d7q("crosshair",this.rect);else if(this.info||MEvent.contains(this,"click"))this.maplet.d7q("pointer",this.rect);else this.maplet.d7q("default",this.rect)});this.ao["rect_mouseout"]=MEvent.bindDom(this.rect,"mouseout",this,function(){if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.$9f)this.maplet.d7q("default",this.rect)});this.ao["rect_mousedown"]=MEvent.bindDom(this.rect,"mousedown",this,function(){this.Xw6=true;this.Y7V=false;if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.$9f)this.maplet.d7q("move",this.rect)});this.ao["rect_mouseup"]=MEvent.bindDom(this.rect,"mouseup",this,function($){this.Xw6=false;this.ao["rect_mouseover"]($)});this.ao["rect_mousemove"]=MEvent.bindDom(this.rect,"mousemove",this,function(){if(this.Xw6&&!this.Y7V)this.Y7V=true})}this.update()};this.update=function(){if(this.rect){if(!this.Mrq52.maplet)this.Mrq52.initialize(this.maplet);if(!this.APVp0.maplet)this.APVp0.initialize(this.maplet);if(this.maplet.N31){if(this.maplet.Y$_8!=this.Mrq52.Y$_8){this.Mrq52.mapX+=this.maplet.ClPI;this.Mrq52.mapY+=this.maplet.c970q;this.Mrq52.Y$_8=this.maplet.Y$_8}if(this.maplet.Y$_8!=this.APVp0.Y$_8){this.APVp0.mapX+=this.maplet.ClPI;this.APVp0.mapY+=this.maplet.c970q;this.APVp0.Y$_8=this.maplet.Y$_8}}else{this.Mrq52.r05e$();this.APVp0.r05e$()}var _=this.Mrq52.mapX,$=this.Mrq52.mapY;this.width=Math.abs(this.APVp0.mapX-_);this.height=Math.abs(this.APVp0.mapY-$);if(px){this.rect.style.left=_+"px";this.rect.style.top=$+"px";this.rect.style.width=this.width+"px";this.rect.style.height=this.height+"px"}else{this.rect.setAttribute("x",_+"px");this.rect.setAttribute("y",$+"px");this.rect.setAttribute("width",this.width+"px");this.rect.setAttribute("height",this.height+"px");this.rect.setAttribute("rx",this.width*this.arcsize);this.rect.setAttribute("ry",this.height*this.arcsize)}}};this.finalize=function(){this.remove(true)};this.remove=function(_){for(var $ in this.ao){if($.substring(0,5)=="rect_"){if(this.rect)MEvent.removeBuiltInListener(this.rect,$.substring(5),this.ao[$])}else if(this.maplet)MEvent.removeBuiltInListener(this.maplet.map,$,this.ao[$]);this.ao[$]=null;delete this.ao[$]}if(typeof this.rect=="object"&&this.rect&&this.rect.parentNode){_removeNode(this.rect);this.rect=null}this.zX=null;if(this.maplet)if(this.maplet.u5[this.id]){this.maplet.u5[this.id]=null;delete this.maplet.u5[this.id]}if(_){this.ao=null;this.maplet=null}};this.openInfoWindow=function(_){if(this.maplet!=null){if(this.Y7V){if(_.target.id==this.id&&this.maplet.edj5)this.maplet.edj5=false;return}if(!this.info||(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu))return;var B=0,A=0;if(!this.info.getOverlay())this.info.setOverlay(this);var $=true;if(typeof _=="undefined"){B=this.Mrq52.mapX+this.width/2;A=this.Mrq52.mapY+this.height/2}else if(_.target.id==this.id&&!this.maplet.edj5){MEvent.trigger(this,"click",this);B=_.clientX-this.maplet.offsetX-this.maplet.left-(px?3:1);A=_.clientY-this.maplet.offsetY-this.maplet.top-(px?3:1)}else if(_.target.id==this.id&&this.maplet.edj5){this.maplet.edj5=false;$=false}else $=false;if($)this.maplet.wN(B,A,this.info)}};this.getCenterXY=function(){var _=this.Mrq52.mapX+this.width/2,$=this.Mrq52.mapY+this.height/2;return{x:_,y:$}}},MLabel=function(C,$,A,B,D){this.label=C;if(typeof $=="object"&&$)D=$;if(typeof D!="object"||!D)D={};if(typeof $=="object"&&$){if("number,string".indexOf(typeof D.xoffset)==-1)D.xoffset=undefined;if("number,string".indexOf(typeof D.yoffset)==-1)D.yoffset=undefined;if("number,string".indexOf(typeof D.opacity)==-1)D.opacity=undefined}else{D.xoffset=$;D.yoffset=A;D.opacity=B}if(typeof D.enableStyle!="boolean")D.enableStyle=true;if(typeof D.visible!="boolean")D.visible=true;var _=false;this.visible=D.visible;this.xoffset=(typeof D.xoffset=="undefined")?null:parseInt(D.xoffset);this.yoffset=(typeof D.yoffset=="undefined")?null:parseInt(D.yoffset);this.opacity=typeof D.opacity!="undefined";this.div=document.createElement("div");if(D.enableStyle)this.div.className="tiplabel";this.div.style.left="-1000px";this.div.style.top="-1000px";this.div.unselectable="on";this.div.style.zIndex=10;this.div.style.position="absolute";if(px&&typeof D.opacity!="undefined")this.div.style.filter="alpha( opacity = "+parseInt(D.opacity)+" )";else if(!px&&typeof D.opacity!="undefined")this.div.style.MozOpacity=parseInt(D.opacity)/100;this.sW=null;this.wz=function($){this.div.id="mk_label_"+$};this.setContextMenu=function($){this.contextmenu=$;if(this.div)this.div.contextmenu=$};this.initialize=function($){this.sW=$;this.setContextMenu($.contextmenu)};this.update=function($,A,B){if(this.div.parentNode!=$.lA.div&&!this.sW.ls){this.div.innerHTML=this.label;$.lA.appendChild(this.div)}if(this.xoffset==null)this.xoffset=this.sW.icon.width;if(this.yoffset==null)this.yoffset=this.sW.icon.height/2-this.div.offsetHeight/2;if(!_){this.div.style.display=this.visible?"":"none";_=true}this.div.style.left=(parseInt(A)+this.xoffset)+"px";this.div.style.top=(parseInt(B)+this.yoffset)+"px"};this.finalize=function(){this.remove(true)};this.remove=function($){if(typeof $!="boolean")$=false;if(this.div)if(!$){if(this.div.parentNode)this.div.parentNode.removeChild(this.div)}else{_removeNode(this.div);this.div=null}if($)this.sW=null};this.toString=function(){return"com.mapbar.maplet.MLabel"};this.$b1=this.div.style.zIndex;this.setZIndex=function($){if(this.div&&this.div.parentNode&&$!=this.div.style.zIndex){this.$b1=this.div.style.zIndex;this.div.style.zIndex=$}};this.kP$D=function(){if(!this.div)return;if(this.$b1!=this.div.style.zIndex)this.setZIndex(this.$b1)};this.setVisible=function($){if($!=(this.div.style.display=="none"?false:true)){this.div.style.display=$?"":"none";this.visible=$}};this.resetLabel=function(A){if(typeof A!="object"||!A)return;var $=parseInt(this.div.style.left),_=parseInt(this.div.style.top);if(typeof A.content=="string"){this.label=A.content;this.div.innerHTML=this.label}if(typeof A.enableStyle=="boolean")this.div.className=A.enableStyle?"tiplabel":"";if("number,string".indexOf(typeof A.xoffset)!=-1)this.xoffset=parseInt(A.xoffset);else if(typeof A.xoffset=="object"&&A.xoffset==null)this.xoffset=null;if("number,string".indexOf(typeof A.yoffset)!=-1)this.yoffset=parseInt(A.yoffset);else if(typeof A.yoffset=="object"&&A.yoffset==null)this.yoffset=null;if("number,string".indexOf(typeof A.opacity)!=-1)if(px&&typeof A.opacity!="undefined")this.div.style.filter="alpha( opacity = "+parseInt(A.opacity)+" )";else if(!px&&typeof A.opacity!="undefined")this.div.style.MozOpacity=parseInt(A.opacity)/100;this.update(this.sW.maplet,this.sW.icon.left,this.sW.icon.top)};this.getText=function(){var _="";if(this.label.indexOf(Maplet.MLABEL_TEXT_FLAG)!=-1){var A=new RegExp(Maplet.MLABEL_TEXT_FLAG+"=\"?([^\"\t ]*)","gi"),$=A.exec(this.label);if($!=null)_=$[1]}else if(this.label!="")_=rtg5S(this.label);else _=this.label;return _}},MInfoWindow=function(B,D,A,$,_){this.title=B;this.wyq=_;this.content=Ge412(D,true);this.yd=(typeof A!="undefined"&&"mouseover"==A.toLowerCase())?"mouseover":"click";this.S06i={v3y:false,width:0,height:0};this.doWhenClosed=null;this.SetOnClosed=function($){this.doWhenClosed=$};this.gv=function(A,_){MEvent.trigger(this.getOverlay(),"iw_beforeopen",this.getOverlay(),A,_);if(this.getOverlay().maplet.customInfoWindow)return null;avBubble.uX=this.getOverlay();var $=gp(this.title,A,_,this.content,this.doWhenClosed);this.setTabs(E);return $};var C=null;this.setOverlay=function($){C=$};this.getOverlay=function(){return C};this.toString=function(){return"com.mapbar.maplet.MInfoWindow"};this.setTitle=function($,_,A){this.title=$;if(ContentInfo){ContentInfo.setTitle($);this.S06i.v3y=false;if(typeof _!="boolean")_=true;if(typeof A!="boolean")A=false;if(_)L92(A)}};this.setContent=function(_,$,A){this.content=Ge412(_,true);if(ContentInfo){ContentInfo.setContent(_);this.S06i.v3y=false;if(typeof $!="boolean")$=true;if(typeof A!="boolean")A=true;if($)L92(A)}};this.zoomTo=function(_,$,A){if(_=="zoomin")this.zoomIn($,A);else if(_=="zoomout")this.zoomOut($,A)};this.zoomOut=function($,_){if(ContentInfo&&typeof ContentInfo.onZoomOut=="function")ContentInfo.onZoomOut($,_)};this.zoomIn=function($,_){if(ContentInfo&&typeof ContentInfo.onZoomIn=="function")ContentInfo.onZoomIn($,_)};this.getBodySize=function(){var $={width:0,height:0};if(ContentInfo)return ContentInfo.A656G();return $};this.setZMBtnVisible=function($){if(ContentInfo)ContentInfo.setZMBtnVisible($);else avBubble.a0DRT=$};this.getZMBtnVisible=function(){return ContentInfo&&ContentInfo._1E()};var E=[];this.setTabs=function($){if(GYAjR($))E=$;if(ContentInfo&&ContentInfo.isVisible()&&(C&&avBubble.uX.id==C.id)&&E.length>0){for(var _=0;_<$.length;_++)ContentInfo.e070($[_].Su5());this.S06i.v3y=false;L92()}};this.getTabs=function(){return E};this.clearTabs=function(){E=[];if(ContentInfo&&ContentInfo.isVisible()){ContentInfo._65B9();if(C&&avBubble.uX.id==C.id){this.S06i.v3y=false;L92()}}};this.setCurrentTab=function($){if(ContentInfo)ContentInfo.setCurrentTab($)};this.getCurrentTab=function(){if(ContentInfo&&ContentInfo.tabIndex!=-1)return ContentInfo.W8l8[ContentInfo.tabIndex];else return null}},ContentInfo=null,gp=function(B,C,E,D,$){hideBubble(maplet);avBubble.calcLatLon();if(ContentInfo==null){ContentInfo=new b5l(maplet);ContentInfo.initialize();ContentInfo.closeFn=$?$:null;ContentInfo.onClosed=function(){avBubble.UY2i=false;avBubble.K3S0=false;avBubble.gYy2S=false;maplet.viewOverlay(avBubble.uX,50,50)};ContentInfo.onZoomOut=function($,A){MEvent.trigger(avBubble.uX,"bubble_zoomout",avBubble.uX);var B={width:avBubble.width,height:avBubble.height};if(avBubble.uX.info&&avBubble.uX.info.S06i.width>0)B=avBubble.uX.info.S06i;if($){if($<avBubble.minWidth)$=avBubble.minWidth;B.width=$}if(A){if(A<avBubble.minHeight)A=avBubble.minHeight;B.height=A}ContentInfo.width=B.width;ContentInfo.height=B.height;ContentInfo.Vfi_U("zoomin");avBubble.$$P=true;var _=maplet.viewOverlay(avBubble.uX,50,50);if(_.cy813==0&&_.cx0==0)maplet.refresh();avBubble.gYy2S=false;avBubble.oCR_2="out"};ContentInfo.onZoomIn=function(B,_){var C=avBubble.uX;MEvent.trigger(C,"bubble_zoomin",avBubble.uX);B=cm5UC(B,null);_=cm5UC(_,null);var A=maplet._70();if(B&&B<A.width)A.width=B;if(_&&_<A.height)A.height=_;var i49n=0,qk7=0;if(typeof C=="object"&&C)if(C.toString().indexOf("MMarker")!=-1){if(C.icon){i49n=C.icon.height;qk7=C.icon.width;A.height-=i49n;A.width-=qk7}}else{i49n=50;A.height-=i49n}var $=maplet.toScreenCoordinate(avBubble.ax729),y97=ContentInfo.Sv32($[0],$[1],A.width,A.height,"top",true,true,C);avBubble.aw4=y97.RWw6;avBubble.left=y97.P68cW;avBubble.top=y97.$4fJu;avBubble.$$P=true;ContentInfo.show(y97,null);ContentInfo.Vfi_U("zoomout");var qx=y97.P68cW,qz=y97.$4fJu,y144d=qx+y97.width,SE6KN=qz+y97.height;with(y97.arrow){if(dir=="left")qx=qx-qk7-y97.arrow.width;else if(dir=="right")y144d=y144d+qk7+y97.arrow.width;else if(dir=="top")qz=qz-i49n-y97.arrow.height;else if(dir=="bottom")SE6KN=SE6KN+i49n+y97.arrow.height}maplet.H324({qUr:qx,m42:qz,s08:y144d,K80K:SE6KN,c99:10,wQ613:10},{a0_54:true,s208:true,$24B4:false});avBubble.gYy2S=true;avBubble.oCR_2="in"}}avBubble.UY2i=false;avBubble.K3S0=false;ContentInfo._65B9();var _={width:0,height:0};if(avBubble.uX.info.S06i.v3y){_.width=avBubble.uX.info.S06i.width;_.height=avBubble.uX.info.S06i.height;ContentInfo.setTitle(B);ContentInfo.setContent(D)}else{_=ContentInfo.Yp$4(B,D);if(_.width==0)_={width:avBubble.width,height:avBubble.height};else{if(_.width<avBubble.minWidth)_.width=avBubble.minWidth;if(_.height<avBubble.minHeight)_.height=avBubble.minHeight;var A=maplet._70();if(_.width>A.width)_.width=A.width;if(_.height>A.height)_.height=A.height}avBubble.uX.info.S06i.width=_.width;avBubble.uX.info.S06i.height=_.height;avBubble.uX.info.S06i.v3y=true}var y97=ContentInfo.Sv32(C,E,_.width,_.height,avBubble.tipInitPlace,avBubble.UY2i,avBubble.K3S0,avBubble.uX);avBubble.aw4=y97.RWw6;avBubble.left=y97.P68cW;avBubble.top=y97.$4fJu;avBubble.head=B;avBubble.body=D;ContentInfo.show(y97,avBubble.a0DRT,true);if(maplet.fa){ContentInfo.setVisible(false);avBubble.I8n6=true}var qk7=0,i49n=0;if(y97.K88){avBubble.ax729=avBubble.uX.pt.pid;if(avBubble.uX.icon){qk7=avBubble.uX.icon.width;i49n=avBubble.uX.icon.height}}else avBubble.ax729=maplet.toMapCoordinate(C,E);if(avBubble.a0DRT!=null)avBubble.a0DRT=null;var qx=y97.P68cW,qz=y97.$4fJu,y144d=qx+y97.width,SE6KN=qz+y97.height;with(y97.arrow){if(dir=="left")qx=qx-qk7-y97.arrow.width;else if(dir=="right")y144d=y144d+qk7+y97.arrow.width;else if(dir=="top")qz=qz-i49n-y97.arrow.height;else if(dir=="bottom")SE6KN=SE6KN+i49n+y97.arrow.height}maplet.H324({qUr:qx,m42:qz,s08:y144d,K80K:SE6KN,c99:10,wQ613:10});MEvent.trigger(avBubble.uX,"iw_afteropen",avBubble.uX);return ContentInfo.dom};function L92(A){if(!ContentInfo||!ContentInfo.isVisible())return;if(typeof A!="boolean")A=false;var $=maplet.toScreenCoordinate(avBubble.ax729),D=ContentInfo.getRect(false,false);if(A){var B=ContentInfo.Yp$4(avBubble.uX.info.title,avBubble.uX.info.content);if(B.width==0)B={width:D.width,height:D.height};else{if(B.width<avBubble.minWidth)B.width=avBubble.minWidth;if(B.height<avBubble.minHeight)B.height=avBubble.minHeight;var C=maplet._70();if(B.width>C.width)B.width=C.width;if(B.height>C.height)B.height=C.height}avBubble.uX.info.S06i.width=B.width;avBubble.uX.info.S06i.height=B.height;D.width=B.width;D.height=B.height}var _=ContentInfo.Sv32($[0],$[1],D.width,D.height,avBubble.aw4,avBubble.UY2i,avBubble.K3S0,avBubble.uX);ContentInfo.show(_,avBubble.a0DRT,true);D=ContentInfo.getRect();if(!avBubble.gYy2S){avBubble.uX.info.S06i.width=D.width;avBubble.uX.info.S06i.height=D.height}var qk7=0,i49n=0;if(_.K88&&avBubble.uX.icon){qk7=avBubble.uX.icon.width;i49n=avBubble.uX.icon.height}var qx=D.min.x,qz=D.min.y,y144d=D.max.x,SE6KN=D.max.y;with(_.arrow){if(dir=="left")qx=qx-qk7;else if(dir=="right")y144d=y144d+qk7;else if(dir=="top")qz=qz-i49n;else if(dir=="bottom")SE6KN=SE6KN+i49n}maplet.fa=false;maplet.H324({qUr:qx,m42:qz,s08:y144d,K80K:SE6KN,c99:10,wQ613:10})}function hideBubble($){if(!ContentInfo)return;if(ContentInfo.isVisible()){ContentInfo.setVisible(false);MEvent.trigger($,"iw_hide")}if(typeof $!="undefined"&&$.fp!=null){$.fp=null;$.refresh()}else if(document["mapbar-maplet"]!="undefined"&&document["mapbar-maplet"].fp!=null){document["mapbar-maplet"].fp=null;document["mapbar-maplet"].refresh()}ContentInfo.Vfi_U("zoomin")}var L8b$=function(){this.xR="";this.a0DRT=false;this.left=0;this.top=0;this.head=new String();this.body=new String();this.width=260;this.height=240;this.uX=null;this.arrow_tip_xoffset=27;this.arrow_tip_yoffset=3;this.xoffset=0;this.ax729="";this.tipInitPlace="top";this.aw4="auto";this.UY2i=false;this.K3S0=false;this.v77=true;this.I8n6=false;this.rE75="";this.SMbF="";this.$$P=false;this.oCR_2="";this.minWidth=100;this.minHeight=60;this.f2343=true;this.gYy2S=false;this.oP026=function($){this.head=$};this.vK91=function($){this.body=$};this.gl=function(){};this.calcLatLon=function(){this.xR=maplet.toMapCoordinate(this.left,this.top)};this.syncContentInfoPosition=function(){if(ContentInfo){this.left=ContentInfo.q3;this.top=ContentInfo.zt}};this.yhb59=function(){if(ContentInfo){if(!px)ContentInfo.LG8O9(false);if(this.ax729&&(this.I8n6||ContentInfo.isVisible())){if(this.I8n6)this.I8n6=false;if(this.v77){var $=maplet.toScreenCoordinate(this.ax729);avBubble.UY2i=true;var _=ContentInfo.Sv32($[0],$[1],ContentInfo.width,ContentInfo.height,avBubble.aw4,avBubble.UY2i,this.K3S0,avBubble.uX,false,false);this.aw4=_.RWw6;ContentInfo.show(_,null,this.$$P);if(this.$$P)this.$$P=false;if(this.oCR_2!=""&&this.uX){MEvent.trigger(this.uX,"bubble_zoomend",this.oCR_2=="in"?"out":"in");if(this.uX.info)MEvent.trigger(maplet,"iw_zoomend",this.uX.info,this.oCR_2=="in"?"zoomin":"zoomout");if(this.oCR_2=="in"){this.UY2i=true;this.K3S0=true}else{this.UY2i=false;this.K3S0=false}this.oCR_2=""}}else this.v77=true}}}},avBubble=new L8b$(),MInfoWindowTab=function(C,$,B){var D=C,E=$,A=null,F=0,_=true;this.KGY=typeof B!="boolean"?false:B;this.$I51=-1;this.qKB0=[];this.setVisible=function($){_=$};this.$h9l=function(){return _};this.$Y1R0=function($){F=$};this.getIndex=function(){return F};this.setLabel=function($){D=$};this.getLabel=function(){return D};this.setContent=function($){E=$};this.getContent=function(){return E};this.toString=function(){return"com.mapbar.maplet.MInfoWindowTab"};this.LBct=function($){A=$};this.$5$E=function(){return A};this.Su5=function(){return new MInfoWindowTab(this.getLabel(),this.getContent(),this.KGY)};this.G4787=function(){A=null;_=false;$I51=-1}};MInfoWindowTab.j52K5=function($){return typeof $=="object"&&$&&typeof $.toString=="function"&&$.toString().indexOf("MInfoWindowTab")!=-1};var b5l=function($){var _=$;this.x=0;this.y=0;this.closeFn=null;this.width=0;this.height=0;this.content="";this.dom=null;this.RT1=null;this.J_G=null;this.QY085=null;this.WXm=null;this.n73=null;this.xswo=null;this.H831f=null;this.uW4LQ=null;this.c173S=null;this.xud=[];this.d9O7b=null;this.IPm75=null;this.jt54t="";this.W8l8=[];this.tabIndex=-1;this.G65G7=0;this.s7U_=0;this.ONG8H=0;this.iUe=0;this.ghJ=0;this.v3RL=null;this.onZoomOut=null;this.onZoomIn=null;this.onClosed=null;this.A$Ol=null;this._f3Ik=null;this.Th48=null;this.H53={type:"zoomin",q9:null};this.initialize=function(){this.dom=document.createElement("TABLE");this.dom.cellSpacing=0;this.dom.cellPadding=0;this.dom.border=0;this.dom.style.cssText=this.y26("TIP_TABLE");this.dom.setAttribute(j25$O,true);var A=this.dom.insertRow(-1),C=A.insertCell(-1);C.vAlign="top";C.style.cssText=this.y26("TITLE_CONTAINER_TD");this.RT1=this._U0();C.appendChild(this.RT1);C=this.dom.insertRow(-1).insertCell(-1);C.style.cssText=this.y26("TAB_TD");this.n73=this.V87();this.n73.style.cssText=this.y26("TAB_CONTAINER");C.appendChild(this.n73);this.n73.style.display="none";A=this.dom.insertRow(-1);C=A.insertCell(-1);C.vAlign="top";C.style.cssText=this.y26("CONTENT_TD");this.c173S=this._7_$5();C.appendChild(this.c173S);this.J269();var $=_?_.sF:document.body;$.appendChild(this.dom);$.appendChild(this.M88o());for(var B=0;B<this.xud.length;B++)$.appendChild(this.xud[B]);$.appendChild(this.T032())};this.T032=function(){this.IPm75=document.createElement("DIV");this.IPm75.style.cssText=this.y26("TIP_BORDER");return this.IPm75};this.M88o=function(){this.d9O7b=document.createElement("DIV");this.d9O7b.style.cssText=this.y26("ARROW_DIV");return this.d9O7b};this._7_$5=function(){var $=document.createElement("DIV");$.style.cssText=this.y26("CONTENT_DIV");return $};this.J269=function(){if(this.dom){var _=this.y26("SHADOW_AMOUNT");for(var A=0;A<_;A++){var $=document.createElement("DIV");$.id="_iw_shadow_"+A;$.style.cssText=this.y26("SHADOW_DIV");$.setAttribute(cV7,"true");if(window.attachEvent)$.style.filter="alpha(opacity="+(this.y26("SHADOW_OPACITY")[A]*100)+");";else $.style.opacity=this.y26("SHADOW_OPACITY")[A];$.style.zIndex=this.y26("TIP_DEFAULT_INFO").zIndex-(A+1);$.onmousedown=function(){return false};this.xud.push($)}}};this.V87=function(){var $=document.createElement("UL");this.H831f=document.createElement("LI");this.H831f.style.cssText=this.y26("TAB_NAV_L");this.xswo=document.createElement("LI");this.xswo.style.cssText=this.y26("TAB_SPACER");this.uW4LQ=document.createElement("LI");this.uW4LQ.style.cssText=this.y26("TAB_NAV_R");$.appendChild(this.H831f);$.appendChild(this.xswo);$.appendChild(this.uW4LQ);return $};this._U0=function(){var $=this.y26("TITLE_INFO"),_=document.createElement("TABLE");_.width="100%";_.cellSpacing=0;_.cellPadding=0;_.border=0;_.style.cssText=this.y26("TITLE_TABLE");var A=_.insertRow(-1);this.J_G=A.insertCell(-1);this.J_G.vAlign="top";this.J_G.style.cssText=this.y26("TITLE_TD");var B=A.insertCell(-1);B.style.cssText=this.y26("TITLE_SPACER");B.innerHTML="&nbsp;";this.QY085=A.insertCell(-1);this.QY085.vAlign="top";this.QY085.style.cssText=this.y26("RT_BTN_TD");this.QY085.innerHTML=this.y26("ZOOMIN_IMG");this.QY085.style.width="0px";this.VGVE();this.WXm=A.insertCell(-1);this.WXm.vAlign="top";this.WXm.style.cssText=this.y26("RT_BTN_TD");this.WXm.innerHTML=this.y26("CLOSE_IMG");this.A$Ol=MEvent.bindDom(this.WXm,"click",this,this.B6$7N);return _};this.A656G=function(){return{width:this.IPm75.offsetWidth,height:this.IPm75.offsetHeight}};this.getRect=function($,C){if(typeof $!="boolean")$=true;if(typeof C!="boolean")C=true;var A=$?this.IPm75:this.dom,D=cm5UC(this.dom.style.left),B=cm5UC(this.dom.style.top),_=D+this.dom.offsetWidth,E=B+this.dom.offsetHeight;if(C)if(this.jt54t=="LEFT")D=cm5UC(this.d9O7b.style.left);else if(this.jt54t=="RIGHT")_+=this.d9O7b.offsetWidth;else if(this.jt54t=="TOP")B=cm5UC(this.d9O7b.style.top);else if(this.jt54t=="BOTTOM")E+=this.d9O7b.offsetHeight;return{min:{x:D,y:B},max:{x:_,y:E},width:_-D,height:E-B}};this.Yp$4=function(B,_){if(!this.dom)this.initialize();var A=-100000,D={P68cW:A,$4fJu:A,c1FVh:A,FN6aS:A,width:avBubble.minWidth,height:avBubble.minHeight,arrow:{dir:"left"}};this.show(D,null,false);this.setTitle(B);this.setContent(_);var E=0,$=0,C=this.c173S.firstChild;if(C&&C.offsetWidth&&this.c173S.childNodes.length==1&&(_getStyle(C,"width")!="auto"||C.tagName=="IMG")){this.c173S.style.width=C.offsetWidth+cm5UC(_getStyle(C,"marginLeft","margin-left"))+"px";this.c173S.style.height=C.offsetHeight+cm5UC(_getStyle(C,"marginTop","margin-top"))+"px";this.dom.style.width=this.c173S.offsetWidth+"px";this.c173S.style.overflow="hidden";E=this.dom.offsetHeight;$=this.dom.offsetWidth}this.setVisible(false);return{width:$,height:E}};this.Sv32=function(r,q,f,P,a,X,O,k,M,T){if(typeof f!="number")f=this.y26("TIP_DEFAULT_INFO").width;if(typeof P!="number")P=this.y26("TIP_DEFAULT_INFO").height;if(typeof a!="string")a="auto";if(typeof X!="boolean")X=false;if(typeof O!="boolean")O=false;if(typeof M!="boolean")M=true;if(typeof T!="boolean")T=true;var W=0,V=0,Y=0,j=0,G="right",C=0,I=0,N=false,A=false;if(_){var m=_.width,K=_.height,g=this.y26("ARROW_INFO"),S=f+g._t54,Q=P+g.e8x0S,h=f/2,L=P/2,F=0,E=0;if(typeof k=="object"&&k){var i=k.toString();N=i.indexOf("MMarker")!=-1;A=i.indexOf("MPolyline")!=-1}if(N&&k.icon){F=k.icon.width/2;E=k.icon.height/2;r=r-k.icon.anchorX+F;q=q-k.icon.anchorY+E}if(O){V=q-L;W=r-h}else{if(q-L<=0)V=5;else if(q+L>K)V=K-P-5;else V=q-L;if(r-h<=0)W=5;else if(r+h>m)W=m-f-5;else W=r-h}var Z=false,n=false,H=false,p=false,R={min:{x:0,y:0},max:{x:0,y:0}},$=_.R5_(),o=_.yh_1H(),J=r>=S&&q>=g.b558&&q+g.b558<=K;if(J){var c=r-F-g._t54,e=c-f;if(!isNaN(parseInt(this.dom.style.borderRightWidth)))e+=parseInt(this.dom.style.borderRightWidth);R={min:{x:e,y:V},max:{x:e+S,y:V+Q}};if(M)J=!_isRectint(R,$);if(T&&J)J=!_isRectint(R,o)}var l=q>=Q&&r>=g.o9$&&r<=m-g.o9$;if(l){var U=q-E-g.e8x0S,b=U-P;if(!isNaN(parseInt(this.dom.style.borderBottomWidth)))b+=parseInt(this.dom.style.borderBottomWidth);R={min:{x:W,y:b},max:{x:W+S,y:b+Q}};if(M)l=!_isRectint(R,$);if(T&&l)l=!_isRectint(R,o)}var d=m-r>=S&&q>=g.b558&&q+g.b558<=K;if(d){c=r+F,e=c+g._t54;if(!isNaN(parseInt(this.dom.style.borderLeftWidth)))e-=parseInt(this.dom.style.borderLeftWidth);R={min:{x:e,y:V},max:{x:e+S,y:V+Q}};if(M)d=!_isRectint(R,$);if(T&&d)d=!_isRectint(R,o)}var D=K-q>=Q&&r>=g.o9$&&r<=m-g.o9$;if(D){U=q+E,b=U+g.e8x0S;if(!isNaN(parseInt(this.dom.style.borderTopWidth)))b-=parseInt(this.dom.style.borderTopWidth);R={min:{x:W,y:b},max:{x:W+S,y:b+Q}};if(M)D=!_isRectint(R,$);if(T&&D)D=!_isRectint(R,o)}if(a!="auto")if(X){if(a=="left")Z=true;else if(a=="top")n=true;else if(a=="right")H=true;else if(a=="bottom")p=true}else if(a=="left"&&J)Z=true;else if(a=="top"&&l)n=true;else if(a=="right"&&d)H=true;else if(a=="bottom"&&D)p=true;else a="auto";if(a=="auto"){Z=J;n=l;H=d;p=D}var B="";if(Z){B="left";Y=r-F-g._t54;j=q-g.b558/2;W=Y-f;if(!isNaN(parseInt(this.dom.style.borderRightWidth)))W+=parseInt(this.dom.style.borderRightWidth);if(j<V+5)V=j-5;else if(j+g.b558>=V+P-5)V=j-P+g.b558+5}else if(H){B="right";G="left";Y=r+F;j=q-g.b558/2;W=Y+g._t54;if(!isNaN(parseInt(this.dom.style.borderLeftWidth)))W-=parseInt(this.dom.style.borderLeftWidth);if(j<V+5)V=j-5;else if(j+g.b558>=V+P-5)V=j-P+g.b558+5}else if(n||(!H&&!n&&!Z&&!p)){B="top";G="bottom";Y=r-g.o9$/2;j=q-E-g.e8x0S;V=j-P;if((!H&&!n&&!Z&&!p))if(W==5||(W==m-f-5))W=r-h;if(!isNaN(parseInt(this.dom.style.borderBottomWidth)))V+=parseInt(this.dom.style.borderBottomWidth);if(Y<W+5)W=Y-5;else if(Y+g.o9$>=W+f-5)W=Y-f+g.o9$+5}else if(p){B="bottom";G="top";Y=r-g.o9$/2;j=q+E;V=j+g.e8x0S;if(!isNaN(parseInt(this.dom.style.borderTopWidth)))V-=parseInt(this.dom.style.borderTopWidth);if(Y<W+5)W=Y-5;else if(Y+g.o9$>=W+f-5)W=Y-f+g.o9$+5}if(B=="left"||B=="right"){C=g._t54;I=g.b558}else{C=g.o9$;I=g.e8x0S}}return{P68cW:W,$4fJu:V,c1FVh:Y,FN6aS:j,width:f,height:P,RWw6:B,arrow:{dir:G,width:C,height:I},K88:N,g1ig3:A}};this.show=function($,_,A){this.x=$.P68cW;this.y=$.$4fJu;this.width=$.width;this.height=$.height;if(!this.dom)this.initialize();this.dom.style.left=this.x+"px";this.dom.style.top=this.y+"px";this.dom.style.width=this.width+"px";this.dom.style.height=this.height+"px";this.c173S.style.width="0px";this.c173S.style.height="0px";this.setVisible(true);if(typeof _=="boolean")this.setZMBtnVisible(_);this.Q8p($.c1FVh,$.FN6aS,$.arrow.dir);this.j898(A)};this.Q8p=function(E,D,_){_=_.toUpperCase();this.jt54t=_;var B="",C=this.y26("ARROW_INFO");B=this.y26("ARROW_"+_+"_CHILD");var A=C._t54,$=C.b558;if(_=="TOP"||_=="BOTTOM"){A=C.o9$;$=C.e8x0S}this.d9O7b.innerHTML=B;this.d9O7b.style.left=E+"px";this.d9O7b.style.top=D+"px";this.d9O7b.style.width=A+"px";this.d9O7b.style.height=$+"px";this.d9O7b.style.display=""};this.CWQ=function(){this.d9O7b.style.display="none"};this.j898=function(B){if(!this.isVisible())return;var E=this.RT1.offsetHeight;if(!isNaN(parseInt(this.RT1.style.marginTop)))E+=parseInt(this.RT1.style.marginTop);if(!isNaN(parseInt(this.RT1.style.marginBottom)))E+=parseInt(this.RT1.style.marginBottom);var C=this.dom.offsetHeight-E-this.G65G7;if(!isNaN(parseInt(this.c173S.style.paddingTop)))C-=parseInt(this.c173S.style.paddingTop);if(!isNaN(parseInt(this.c173S.style.paddingBottom)))C-=parseInt(this.c173S.style.paddingBottom);if(!isNaN(parseInt(this.dom.style.borderTopWidth)))C-=parseInt(this.dom.style.borderTopWidth);if(!isNaN(parseInt(this.dom.style.borderBottomWidth)))C-=parseInt(this.dom.style.borderBottomWidth);var $=this.dom.offsetWidth;if(!isNaN(parseInt(this.c173S.style.paddingLeft)))$-=parseInt(this.c173S.style.paddingLeft);if(!isNaN(parseInt(this.c173S.style.paddingRight)))$-=parseInt(this.c173S.style.paddingRight);this.c173S.style.height=C+"px";this.c173S.style.width=$+"px";if(this.c173S.scrollWidth>this.c173S.offsetWidth){if(!isNaN(parseInt(this.dom.style.borderLeftWidth)))$-=parseInt(this.dom.style.borderLeftWidth);if(!isNaN(parseInt(this.dom.style.borderRightWidth)))$-=parseInt(this.dom.style.borderRightWidth);this.c173S.style.width=$+"px"}if(px&&this.dom.rows[1].offsetHeight>0&&this.G65G7==0){C-=this.dom.rows[1].offsetHeight;if(C>=0)this.c173S.style.height=C+"px"}if(typeof B!="boolean")B=true;if(this.W8l8.length>0&&B){this.c003();this.v075();var _=this.tabIndex;this.tabIndex=-1;if(_!=-1)if(!this.W8l8[_].$h9l())this.setCurrentTab(0);else this.setCurrentTab(_)}for(var D=0;D<this.xud.length;D++){var A=this.xud[D];A.style.left=(this.x+3+((D)*3))+"px";A.style.top=(this.y+3+((D)*3))+"px";A.style.width=this.width+"px";A.style.height=this.height+"px";A.style.display=""}this.IPm75.style.width=this.width+2+"px";this.IPm75.style.height=this.height+2+"px";this.IPm75.style.left=this.x-1+"px";this.IPm75.style.top=this.y-1+"px"};this.s17=function(){return this.dom};this.e070=function(_){if(!this.s17())return;if(this.W8l8.length>=this.y26("TAB_AMOUNT"))return false;if(MInfoWindowTab.j52K5(_))if(this.W8l8.length==0){var $=[];if(this.content!=""){$.push(new MInfoWindowTab(this.y26("TAB_DEFAULT_LABEL"),this.content,!_.KGY));this.c173S.innerHTML=""}if($.length==0&&!_.KGY)_.KGY=true;$.push(_);this.yw8r($)}else this.T_4d3(_,-1)};this._65B9=function(){if(!this.s17())return;if(this.W8l8.length>0){var $=this.W8l8;for(var _=$.length-1;_>=0;_--)this.kHY(_,false);this.W8l8=[]}};this.rv0PG=function(){this.tabIndex=-1;this.ghJ=0;this.v3RL=null};this.kHY=function(_,D){if(!this.s17())return;if(this.n73&&this.W8l8.length>_){if(typeof D!="boolean")D=true;var A=[],J=null,$=this.tabIndex;this.tabIndex=-1;var C=0;for(var F=0;F<this.W8l8.length;F++)if(F!=_){var E=this.W8l8[F],G=E.getIndex();A.push(E);E.$Y1R0(A.length-1);var B=E.$5$E();if(B)B.setAttribute("tabIndex",E.getIndex());if(G==$)C=E.getIndex()}else J=this.W8l8[F];if(J){this.W8l8=A;var H=J.$5$E();if(J.qKB0.length>0)for(F=0;F<J.qKB0.length;F++){var I=J.qKB0[F];MEvent.removeBuiltInListener(H,I.event,I.q9)}if(H)this.n73.removeChild(H)}this.c003();this.v075();if(this.W8l8.length>C&&!this.W8l8[C].$h9l())C=0;if(D)this.setCurrentTab(C);if(this.W8l8.length==0)this._083X()}};this._083X=function(){this.G65G7=0;this.dom.rows[1].style.display="none";this.rv0PG();if(this.content)this.setContent(this.content);this.j898()};this.T_4d3=function(A,D){if(!MInfoWindowTab.j52K5(A))return false;var E=this.W8l8.length,G=this.xswo;if(!MInfoWindowTab.j52K5(D)||!D.$5$E())D=null;if(D){G=D.$5$E();var _=this.tabIndex==D.getIndex(),$=[];for(var F=0;F<this.W8l8.length;F++){var C=this.W8l8[F];if(C==D){$.push(A);A.$Y1R0($.length-1)}$.push(C);C.$Y1R0($.length-1);var B=C.$5$E();if(B)B.setAttribute("tabIndex",C.getIndex())}if(_)this.tabIndex=D.getIndex();this.W8l8=$}else{this.W8l8.push(A);A.$Y1R0(this.W8l8.length-1)}B=this.f12(A,G);if(isNaN(parseInt(this.n73.style.height)))this.n73.style.height=parseInt(this.n73.parentNode.clientHeight)+"px";if(A.KGY)this.setCurrentTab(A.getIndex());this.v075()};this.f12=function($,A){var _=document.createElement("LI");_.innerHTML=$.getLabel();_.style.cssText=this.y26("TAB_TEXT_BLUR");_.setAttribute("tabIndex",$.getIndex());$.LBct(_);this.n73.insertBefore(_,A);$.qKB0.push({event:"click",q9:MEvent.bindDom(_,"click",this,this.oHo)});if(this.W8l8.length==1){if(this.s7U_==0){this.s7U_=_.clientHeight;if(parseInt(_.style.paddingTop))this.s7U_-=parseInt(_.style.paddingTop);if(parseInt(_.style.paddingBottom))this.s7U_-=parseInt(_.style.paddingBottom)}if(this.ONG8H==0)this.ONG8H=_.clientHeight}return _};this.v075=function(){var A=this.W8l8;this.t8_n(true);this.Hh1(true);var G=this.H831f.firstChild.offsetWidth,H=this.uW4LQ.firstChild.offsetWidth,F=null,_=null;for(var I=A.length-1;I>=0;I--){_=A[I];if(_.$h9l()){var E=_.$5$E();if(E){var $=E.clientWidth;if(E.offsetTop>=E.offsetHeight*2-5)C=0;else{var C=this.T008(true);if(E.offsetTop==0)C+=$;else if(E.offsetLeft!=0)C=0}if($>=C){if(C<=20){this.N120f(_,false);C=0}else{C=C-parseInt(E.style.paddingLeft)-parseInt(E.style.paddingRight);E.style.width=C+"px";F=_}}else F=_;if(C!=0)break}}}this.t8_n(false);this.Hh1(false);if(A.length>0){this.t8_n(!A[0].$h9l());this.Hh1(!A[A.length-1].$h9l())}if(F&&F.$5$E()){this.v3RL=F;var B=F.$5$E(),D=B.clientWidth;if(!isNaN(parseInt(B.style.paddingLeft)))D-=parseInt(B.style.paddingLeft);if(!isNaN(parseInt(B.style.paddingRight)))D-=parseInt(B.style.paddingRight);if(!this.q_wV3())D+=G;if(!this.CN3P9())D+=H;if(this.tabIndex==F.getIndex())D-=2;B.style.width=D+"px"}for(I=0;I<A.length;I++){_=A[I];if(_.$h9l()){_.$I51=this.ghJ;if(_.$5$E())_.$5$E().style.height=this.s7U_+"px"}}this.avr5p()};this.N120f=function(_,$){var A=_.$5$E();if(A){if($)A.style.cssText=this.y26("TAB_TEXT_BLUR");else{A.style.width="0px";A.style.padding="0px"}_.setVisible($)}};this.c003=function(){var $=this.W8l8;for(var _=0;_<$.length;_++)this.N120f($[_],true)};this.Hh1=function($){if(!this.Th48)this.Th48=MEvent.bindDom(this.uW4LQ,"click",this,this.m3350);if($){this.uW4LQ.innerHTML=this.y26("TAB_NAV_R_CHILD");this.uW4LQ.style.cursor="pointer";this.uW4LQ.style.width=this.y26("TAB_NAV_INFO").width+"px"}else{this.uW4LQ.innerHTML="";this.uW4LQ.style.cursor="";this.uW4LQ.style.width="0px"}};this.t8_n=function($){if(!this._f3Ik)this._f3Ik=MEvent.bindDom(this.H831f,"click",this,this.D857G);if($){this.H831f.innerHTML=this.y26("TAB_NAV_L_CHILD");this.H831f.style.cursor="pointer";this.H831f.style.width=this.y26("TAB_NAV_INFO").width+"px"}else{this.H831f.innerHTML="";this.H831f.style.cursor=""}};this.avr5p=function(){var $=this.T008(false);if($<0)$=0;this.xswo.style.width=$+"px";this.xswo.style.height=this.ONG8H+"px"};this.q_wV3=function(){if(this.H831f.firstChild)return this.H831f.firstChild.offsetWidth>0;else return false};this.CN3P9=function(){if(this.uW4LQ.firstChild)return this.uW4LQ.firstChild.offsetWidth>0;else return false};this.T008=function(){var B=0;if(this.n73)if(this.W8l8.length>0){var _=this.W8l8,$=null,A=null;for(var C=_.length-1;C>=0;C--){$=_[C];A=$.$5$E();if(A&&A.offsetTop==this.H831f.offsetTop)break}if(A){if($.getIndex()==0&&A.offsetTop!=this.H831f.offsetTop)A=this.H831f;B=this.n73.parentNode.offsetWidth-A.offsetLeft-A.offsetWidth-this.uW4LQ.offsetWidth}}return B};this.yw8r=function(_){if(this.n73&&_.length>0){if(this.dom.rows[1].style.display=="none")this.dom.rows[1].style.display="";if(this.n73.style.display=="none")this.n73.style.display="";for(var A=0;A<_.length;A++)this.T_4d3(_[A]);var $=this.dom.rows[1].clientHeight;if(!isNaN(parseInt(this.dom.rows[1].style.paddingTop)))$-=parseInt(this.dom.rows[1].style.paddingTop);if(!isNaN(parseInt(this.dom.rows[1].style.paddingBottom)))$-=parseInt(this.dom.rows[1].style.paddingBottom);this.dom.rows[1].style.height=$+"px";this.G65G7=$;this.j898()}};this.n8A07=function(_){if(!_.$h9l())return;var A=_.$5$E();if(A){var $={width:A.style.width,height:A.style.height};A.style.cssText=this.y26("TAB_TEXT_BLUR");A.style.width=$.width;this.tabIndex=-1}};this.$81=function(A){var B=A.$5$E();if(B){var _={width:B.style.width,height:B.style.height};B.style.cssText=this.y26("TAB_TEXT_FOCUS");B.style.width=_.width;this.tabIndex=A.getIndex();var $=A.getContent();if(typeof $=="string")this.c173S.innerHTML=$;else if(typeof $=="object"&&typeof $.tagName!="undefined"){this.c173S.innerHTML="";this.c173S.appendChild($)}}};this.setCurrentTab=function($){var A=this.W8l8;if(this.tabIndex==$||A.length<=0||$<0||$>=A.length)return;if(this.tabIndex!=-1)this.n8A07(this.W8l8[this.tabIndex]);var B=A[$];if(!B.$h9l())if(B.$I51!=-1){this.ghJ=B.$I51;for(var C=0;C<A.length;C++){var _=A[C];if(_.$I51==B.$I51)this.N120f(_,true);else this.N120f(_,false)}this.v075()}else while(!B.$h9l())this.m3350(null);if(B.$h9l())this.$81(B)};this.D857G=function(B){if(!this.q_wV3())return;this.ghJ--;var _=this.W8l8,A=null;if(this.tabIndex!=-1)this.n8A07(this.W8l8[this.tabIndex]);for(var C=_.length-1;C>=0;C--){var $=_[C];if($.$I51==this.ghJ){this.N120f($,true);A=$}else this.N120f($,false)}this.v075();this.setCurrentTab(A.getIndex())};this.m3350=function(B){if(!this.CN3P9())return;this.ghJ++;var _=this.W8l8,A=null;if(this.tabIndex!=-1)this.n8A07(this.W8l8[this.tabIndex]);for(var C=0;C<_.length;C++){var $=_[C];if($.getIndex()<=this.v3RL.getIndex()){if($.$h9l())this.N120f($,false)}else if(!$.$h9l()){if(!A)A=$;this.N120f($,true)}}this.v075();if(A)this.setCurrentTab(A.getIndex())};this.B6$7N=function($){$=ny($);if($.target.tagName=="IMG"){this.setVisible(false);if(this.onClosed)this.onClosed();if(this.closeFn)this.closeFn()}};this.setVisible=function($){if(!this.dom)return;if(this.isVisible()==$)return;this.dom.style.display=$?"":"none";for(var _=0;_<this.xud.length;_++)this.xud[_].style.display=$?"":"none";if(!$)this.CWQ();this.IPm75.style.display=$?"":"none"};this.isVisible=function(){return this.dom&&this.dom.style.display!="none"};this.setZMBtnVisible=function($){if(this._1E()==$)return;if($)this.QY085.style.width=this.y26("RT_BTN_TD_INFO").width+"px";else this.QY085.style.width="0px"};this._1E=function(){return this.QY085&&parseInt(this.QY085.style.width)!=0};this.oHo=function(_){var $=_.target.getAttribute("tabIndex");if($!=null)this.setCurrentTab(parseInt($))};this.Vfi_U=function($){if(this.QY085&&this.H53.type!=$){this.H53.type=$;if(this.H53.type=="zoomin")this.QY085.innerHTML=this.y26("ZOOMIN_IMG");else this.QY085.innerHTML=this.y26("ZOOMOUT_IMG");this.VGVE()}};this.VGVE=function(){if(this.H53.q9)MEvent.removeBuiltInListener(this.QY085,"click",this.H53.q9);if(this.H53.type=="zoomin")this.H53.q9=MEvent.bindDom(this.QY085,"click",this,this.Qr2L8);else if(this.H53.type=="zoomout")this.H53.q9=MEvent.bindDom(this.QY085,"click",this,this.LCl2)};this.Qr2L8=function($){$=ny($);if($.target.tagName=="IMG")if(this.onZoomIn)this.onZoomIn()};this.LCl2=function($){$=ny($);if($.target.tagName=="IMG")if(this.onZoomOut)this.onZoomOut()};this.setTitle=function($){if(this.J_G)this.J_G.innerHTML=$};this.setContent=function($){this.content=$;if(this.c173S){if(typeof $=="string")this.c173S.innerHTML=$;else if(typeof $=="object"&&typeof $.tagName!="undefined"){this.c173S.innerHTML="";this.c173S.appendChild($)}if(this.W8l8.length>0)this.W8l8[0].setContent($)}};this.PQ23y=function($,_){if(!this.s17())return;this.width=$;this.height=_;if(this.dom){this.dom.style.width=$+"px";this.dom.style.height=_+"px";this.j898()}};this.moveTo=function(B,_){if(!this.s17())return;this.x=B;this.y=_;this.dom.style.left=B+"px";this.dom.style.top=_+"px";for(var A=0;A<this.xud.length;A++){var $=this.xud[A];$.style.left=(this.x+3+((A)*3))+"px";$.style.top=(this.y+3+((A)*3))+"px"}};this.LG8O9=function($){if(this.isVisible())if((this.c173S.style.overflow=="hidden"?true:false)!=$)this.c173S.style.overflow="hidden"};this.y26=function($){return b5l.Fay._3C1($)};this.S10=function($,_){b5l.Fay.jn$($,_)};this.finalize=function(){if(this._f3Ik)MEvent.removeBuiltInListener(this.H831f,"click",this._f3Ik);if(this.Th48)MEvent.removeBuiltInListener(this.uW4LQ,"click",this.Th48);if(this.A$Ol)MEvent.removeBuiltInListener(this.WXm,"click",this.A$Ol)}};b5l.Fay=new function(){var $=[],_=(navigator.userAgent.split("(").toString().split(";")[1]||"").indexOf("6")>0;$["TIP_DEFAULT_INFO"]={width:300,height:300,P02_:false,zIndex:100};$["COLOR"]="#81807f";$["TAB_COLOR"]="#D6D7DB";$["TIP_TABLE_BORDER_COLOR"]="#f58725";$["IMAGE_RESOURCE"]=CTLIMG_RESOURCE[0].url;$["IMAGE_RESOURCE_INFO"]={width:CTLIMG_RESOURCE[0].w,height:CTLIMG_RESOURCE[0].h};$["BLANK_IMG_SRC"]=strImgsvrUrl+"images/newbubbleimg/mbblank.gif";$["TIP_TABLE"]="cursor:default;position:absolute;border:2px solid "+$["TIP_TABLE_BORDER_COLOR"]+";background-color:#FFFFFF;display:none;spacing:10px;table-layout:fixed;overflow:hidden;z-index:"+$["TIP_DEFAULT_INFO"].zIndex+";";$["TIP_BORDER"]="position:absolute;background:white;z-index:99;";$["TITLE_CONTAINER_TD"]="";$["TITLE_TABLE"]="table-layout:fixed;margin-bottom:5px;margin-top:4px;/*background-color:green;*/";$["TITLE_TD"]="white-space:nowrap;overflow:hidden;padding-left:4px;padding-top:2px;font-weight:bold;font-size:14px;";$["TITLE_SPACER"]="width:10px;-moz-user-select:none;-moz-user-focus:none;";var A=function(A,E,F,D,B){if(typeof B!="string")B="";var C="<div style=\"position:absolute;width:"+A+"px;height:"+E+"px;overflow:hidden;-moz-user-select:none;-moz-user-focus:none;"+B+"\">";if(_)C+="<img src=\""+$["BLANK_IMG_SRC"]+"\" style=\"position:absolute;left:"+F+"px;top:"+D+"px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+$["IMAGE_RESOURCE"]+",sizingMethod=scale);width:"+$["IMAGE_RESOURCE_INFO"].width+"px;height:"+$["IMAGE_RESOURCE_INFO"].height+"px;\">";else C+="<img src=\""+$["IMAGE_RESOURCE"]+"\" style=\"position:absolute;left:"+F+"px;top:"+D+"px;\">";C+="</div>";return C};$["RT_BTN_TD_INFO"]={width:18};$["RT_BTN_TD"]="width:"+$["RT_BTN_TD_INFO"].width+"px";$["RT_BTN_IMG_INFO"]={width:12,height:12};$["CLOSE_IMG"]=A($["RT_BTN_IMG_INFO"].width,$["RT_BTN_IMG_INFO"].height,-64,-51,"cursor:pointer;");$["ZOOMIN_IMG"]=A($["RT_BTN_IMG_INFO"].width,$["RT_BTN_IMG_INFO"].height,-42,-51,"cursor:pointer;");$["ZOOMOUT_IMG"]=A($["RT_BTN_IMG_INFO"].width,$["RT_BTN_IMG_INFO"].height,-53,-51,"cursor:pointer;");$["SHADOW_COLOR"]=$["COLOR"];$["SHADOW_AMOUNT"]=2;$["SHADOW_OPACITY"]=[0.5,0.3];$["SHADOW_DIV"]="position:absolute;background-color:"+$["SHADOW_COLOR"]+";display:none;";$["TAB_AMOUNT"]=5;$["TAB_DEFAULT_LABEL"]="\u4e3b\u8981";$["TAB_TD"]="-moz-user-select:none;-moz-user-focus:none;";$["TAB_CONTAINER"]="list-style-type:none;margin:0px;padding:0px;overflow:hidden;background:transparent url(images/lnbg.gif) repeat-x 0 -265px;height:25px;";$["TAB_LINE"]="1px solid "+$["TAB_COLOR"]+";";$["TAB_TEXT_COMMON"]="float:left;cursor:pointer;white-space:nowrap;overflow:hidden;outline:none;font-size:12px;margin:0 3px;width:75px;text-align:center;line-height:23px;";$["TAB_TEXT_FOCUS"]=$["TAB_TEXT_COMMON"]+"border-top:"+$["TAB_LINE"]+";border-left:"+$["TAB_LINE"]+";border-right:"+$["TAB_LINE"]+";font-weight:bold;background-color:#fff;height:24px;";$["TAB_TEXT_BLUR"]=$["TAB_TEXT_COMMON"]+"border:"+$["TAB_LINE"]+"background-color:#FAFAFA;height:23px;";$["TAB_SPACER"]="float:left;";$["TAB_NAV_INFO"]={width:10,height:10};$["TAB_NAV_LR_COMMON"]="float:left;height:23px;";$["TAB_NAV_L"]=$["TAB_NAV_LR_COMMON"]+"width:20px;";$["TAB_NAV_R"]=$["TAB_NAV_LR_COMMON"]+"float:right;";$["TAB_NAV_L_CHILD"]=A($["TAB_NAV_INFO"].width,$["TAB_NAV_INFO"].height,-66,-160);$["TAB_NAV_R_CHILD"]=A($["TAB_NAV_INFO"].width,$["TAB_NAV_INFO"].height,-66,-148);$["CONTENT_TD"]="";$["CONTENT_DIV"]="padding:5px;width:100%;height:100%;overflow:auto;/*background-color:yellow;*/";$["ARROW_INFO"]={_t54:15,b558:23,o9$:23,e8x0S:15,zIndex:$["TIP_DEFAULT_INFO"].zIndex+1};$["ARROW_DIV"]="position:absolute;top:0px;left:0px;width:"+$["ARROW_INFO"].width+"px;height:"+$["ARROW_INFO"].height+"px;display:none;z-index:"+$["ARROW_INFO"].zIndex+";-moz-user-select:none;-moz-user-focus:none;";$["ARROW_TOP_CHILD"]=A($["ARROW_INFO"].o9$,$["ARROW_INFO"].e8x0S,-43,-177);$["ARROW_BOTTOM_CHILD"]=A($["ARROW_INFO"].o9$,$["ARROW_INFO"].e8x0S,-43,-192);$["ARROW_LEFT_CHILD"]=A($["ARROW_INFO"]._t54,$["ARROW_INFO"].b558,-61,-124);$["ARROW_RIGHT_CHILD"]=A($["ARROW_INFO"]._t54,$["ARROW_INFO"].b558,-25,-178);this.jn$=function(_,A){if(typeof $[_]!="undefined")$[_]=A};this._3C1=function(_){return $[_]}};var MPanel=function($){this.initialize=function($){this.maplet=$;this.paint()};this.setLocation=function(_,$){if(typeof $!="boolean")$=true;this.location=_||{};with(this.location){if(typeof pt!="object"||!(pt instanceof MPoint)||!pt)this.location.pt=null;if(typeof type!="string"||!type||(type=="latlon"&&!pt))this.location.type="xy";if(typeof x!="number")this.location.x=0;if(typeof y!="number")this.location.y=0;if(type=="latlon"&&pt&&!pt.maplet&&this.maplet)pt.initialize(this.maplet)}this.options.location=this.location;if($)this.paint()};this.setContent=function($){if(typeof $!="undefined"&&$){if(typeof $=="string")this.dom.innerHTML=$;else if(typeof $=="object")this.dom.appendChild($)}else{$=null;this.dom.innerHTML=""}this.options.content=$};this.setMouseWheel=function($){if(typeof $!="boolean")$=true;if(this.dom)this.dom.setAttribute(j25$O,!$);this.options.mousewheel=$};this.setZoomHide=function($){if(typeof $!="boolean")$=false;this.options.zoomhide=$};this.setPin=function($,_){if(typeof $!="boolean")$=false;if(typeof _!="boolean")_=true;this.options.pin=$;if(!$&&typeof this.location!="undefined"&&this.location.pt){this.location.type="xy";this.location.pt=null}if(_)this.paint()};this.setZIndex=function($){if(typeof $!="number")$=this.options.pin?200:2;this.dom.style.zIndex=$;this.options.zindex=$};this.paint=function(){if(!this.dom||!this.maplet)return;if(this.options.pin){if(this.dom.parentNode!=this.maplet.sF)this.maplet.sF.appendChild(this.dom)}else if(this.dom.parentNode!=this.maplet.vb)this.maplet.vb.appendChild(this.dom);with(this.location){if(this.options.pin||type=="latlon"){if(typeof pt=="undefined"||!pt)pt=new MPoint(this.maplet.toMapCoordinate(x,y));if(!pt.maplet)pt.initialize(this.maplet);if(this.options.pin)if(this.maplet.N31){if(this.maplet.Y$_8!=pt.Y$_8){pt.mapX+=this.maplet.ClPI;pt.mapY+=this.maplet.c970q;pt.Y$_8=this.maplet.Y$_8}}else pt.r05e$();x=pt.mapX;y=pt.mapY}this.dom.style.left=x+"px";this.dom.style.top=y+"px"}};this.show=function(){this.setVisible(true);this.j81wW.K3$=false};this.hide=function(){this.setVisible(false);this.j81wW.K3$=true};this.setVisible=function($){if(!this.dom)return;if(this.dom.style.display!=($?"":"none"))this.dom.style.display=$?"":"none"};this.isVisible=function(){return this.dom.style.display==""};this.finalize=function(){this.remove(true)};this.remove=function($){if(typeof $!="boolean")$=false;if(this.dom)if(!$){if(this.dom.parentNode)this.dom.parentNode.removeChild(this.dom)}else{_removeNode(this.dom);this.dom=null}this.maplet=null};this.toString=function(){return"com.mapbar.maplet.MPanel"};this.id=new Date().getTime()+"_panel";this.maplet=null;this.dom=document.createElement("DIV");this.dom.style.position="absolute";this.j81wW={K3$:false};this.options=$||{};with(this.options){this.setPin(typeof pin!="undefined"?pin:undefined,false);this.setZIndex(typeof zindex!="undefined"?zindex:undefined);this.setContent(typeof content!="undefined"?content:undefined);this.setLocation(typeof location!="undefined"?location:undefined,false);this.setMouseWheel(typeof mousewheel!="undefined"?mousewheel:undefined);this.setZoomHide(typeof zoomhide!="undefined"?zoomhide:undefined)}};MPanel.enableDragMap=function($,A,B){var _=function($,_){if(_&&typeof $.setAttribute!="undefined")$.setAttribute(cV7,"true");else if(typeof $.removeAttribute!="undefined")$.removeAttribute(cV7)},C=function($,E,D){if(typeof $=="object"&&$&&typeof $.childNodes!="undefined"){var B=$.childNodes;for(var F=0;F<B.length;F++){var A=B[F];if(A.childNodes.length>0)C(A,E,D);else if(typeof A.tagName=="string"&&!D[A.tagName.toLowerCase()])_(A,E)}_($,E)}};if(GYAjR(B)){for(var D=0;D<B.length;D++)B[B[D].toLowerCase()]=1}else B=[];C($,A,B)};var MLayer=function(options){this.initialize=function($){this.maplet=$;this.paint()};this.setServerPath=function($){if(typeof $!="string"||!$)$="";this.options.serverPath=$};this.setZIndex=function($){if(typeof $!="number")$=0;this.dom.style.zIndex=$;this.options.zindex=$};this.setImgType=function($){if(typeof $!="string"||!$)$="png";this.options.imgType=$.toLowerCase()};this.setDataType=function($){if(typeof $!="string"||!$)$="js";this.options.dataType=$};this.setDataPattern=function($){if(typeof $!="string"||!$)$="data"+MLayer.DPLACEHOLDER;this.options.dataPattern=$};this.setImgWidth=function($){if(typeof $!="number"||$<=0)$=5;this.options.imgWidth=$;this._a3=Math.ceil($/2)};this.setImgHeight=function($){if(typeof $!="number"||$<=0)$=5;this.options.imgHeight=$;this.O6$bv=Math.ceil($/2)};this.setLevelRange=function($,_){if(typeof $!="number"||$<te||$>sY)$=te;if(typeof _!="number"||_<te||_>sY)_=sY;this.options.minLevel=$;this.options.maxLevel=_};this.setNeedData=function($){if(typeof $!="boolean")$=false;this.options.needData=$};this.setNeedData=function($){if(typeof $!="boolean")$=false;this.options.needData=$};this.setCreator=function($){if(typeof $!="number"||($!=MLayer.USER&&$!=MLayer.SYSTEM))$=MLayer.USER;this.options.creator=$};this.setImgUrlPreprocessor=function($){if(typeof $!="function")$=null;this.options.imgUrlPreprocessor=$};this.setDataUrlPreprocessor=function($){if(typeof $!="function")$=null;this.options.dataUrlPreprocessor=$};this.setPreprocessorThisObj=function($){if(typeof $!="object"||!$)$=null;this.options.processorThisObj=$};this.setFireEvent=function($){if(typeof $!="number")$=MLayer.ALL;this.options.events=$};this.setNeedImg=function($){if(typeof $!="boolean")$=true;this.options.needImg=$};this.inZoomRange=function($){if($>=this.options.minLevel&&$<=this.options.maxLevel)return true;else return false};this.paint=function(){if(!this.dom||!this.maplet)return;if(!this.maplet.H434)this.maplet.C3N();if(this.dom.parentNode!=this.maplet.H434){this.resize(this.maplet.width,this.maplet.height);this.maplet.H434.appendChild(this.dom)}};var iCN=function(_,$){if(typeof _.Gh48=="undefined")_.Gh48=$;else _.Gh48=$},_52=function($){return typeof $.Gh48=="undefined"||$.Gh48},xV4=function(){for(var $ in this.data)iCN.apply(this,[this.data[$],false])},NoH8=function(){for(var $ in this.data)if(!_52.apply(this,[this.data[$]]))p86o3.apply(this,[$])},J75v=function($,_){$.setAttribute(g7Y,_?"yes":"no")},dF13U=function(){for(var $ in this.D91)J75v.apply(this,[this.D91[$],false])},PY34=function($){return $.getAttribute(g7Y)=="yes"},S47=function(){for(var $ in this.D91)if(!PY34.apply(this,[this.D91[$]]))LCG.apply(this,[$])},LCG=function($){if(typeof this.D91[$]=="object"){var _=this.D91[$];_.onload=null;_.onerror=null;_removeNode(_);_=null;delete this.D91[$]}},p86o3=function($){if(typeof this.data[$]=="object"){this.data[$]=null;delete this.data[$]}};this.update=function(){if(!this.dom||!this.maplet)return;if(!this.inZoomRange(this.maplet.AG)){this.clear();return}Ryh.apply(this)};var Ryh=function(){xV4.apply(this);dF13U.apply(this);for(var B in this.maplet.layerData){var $=this.maplet.layerData[B];if(this.options.needImg){var _=this.D91[B];if(typeof _!="object"||!_){if(D2a&&this.options.imgType=="png"){_=document.createElement("DIV");_.style.position="absolute";_.style.width="300px";_.style.height="300px"}else{_=document.createElement("IMG");_.style.position="absolute";_.setAttribute("unselectable","on");_.style.MozUserSelect="none";_.onerror=function(_,$){return function(){_X82O.apply(_,[$])}}(this,B);_.onload=function(_,$){return function(){XnHV.apply(_,[$])}}(this,B)}this.dom.appendChild(_);this.D91[B]=_}J75v.apply(this,[_,true]);_.style.left=$.x+"px";_.style.top=$.y+"px";_.setAttribute(cV7,"true");_.setAttribute(TET,"yes");if(!_.src){var A="";if(this.options.imgUrlPreprocessor){A=this.options.imgUrlPreprocessor.apply(this,[$]);if(!A)continue}else A=gd1.apply(this,[this.options.serverPath,$.lh1,$.Xci])+$.filename+"."+this.options.imgType;if(D2a&&this.options.imgType=="png"){_.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+A+",sizingMethod=scale);";_6wa.apply(this,[B])}else{if(px)_.style.filter="alpha(opacity=0)";_.src=A}}else _6wa.apply(this,[B])}else _6wa.apply(this,[B])}S47.apply(this);NoH8.apply(this)},gd1=function(_,A,B){var $="img.mapbar.com";if(strImgsvrUrl.substring(7,21)==$)return _.replace($,"img"+this.maplet.vI_9(A,B)+".mapbar.com");else return _},_X82O=function($){LCG.apply(this,[$])},XnHV=function($){var _=this.D91[$];if(typeof _!="undefined"&&_){if(px){_.style.display="";_.style.filter=null}_.onerror=null;_.onload=null;_6wa.apply(this,[$])}};this.refreshDataXY=function(){if(!this.options.needData)return;for(var $ in this.data){var A=this.data[$];for(var D=0;D<A.length;D++){var C=A[D],B=this.maplet.layerData[$].x+C.r.i.x,_=this.maplet.layerData[$].y+C.r.i.y;C.rect.min.x=B;C.rect.min.y=_;C.rect.max.x=B+C.r.a.x;C.rect.max.y=_+C.r.a.y}}};var _6wa=function($){if(!this.options.needData)return;var B=this.D91[$];if(!this.options.needImg||(typeof B=="object"&&B&&((typeof B.src!="undefined"&&B.src!=sX)||(D2a&&this.options.imgType=="png"))))if(!this.data[$]&&typeof this.maplet.layerData[$]=="object"){var A=this.maplet.layerData[$],C="";if(this.options.dataUrlPreprocessor){C=this.options.dataUrlPreprocessor.apply(this,[A]);if(!C)return}else C=gd1.apply(this,[this.options.serverPath,A.lh1,A.Xci])+A.filename+"."+this.options.dataType;new i96(C,b7_01,false,true,this,undefined,[$]).V96Xw()}else{var _=this.data[$];iCN.apply(this,[_,true]);if(this.maplet.N31)for(var D=0;D<_.length;D++){A=_[D];A.rect.min.x=A.rect.min.x+this.maplet.ClPI;A.rect.min.y=A.rect.min.y+this.maplet.c970q;A.rect.max.x=A.rect.max.x+this.maplet.ClPI;A.rect.max.y=A.rect.max.y+this.maplet.c970q}}},b7_01=function(id,kPH24){if(typeof this.maplet.layerData[id]=="undefined"||!this.maplet.layerData[id])return;var layerData=this.maplet.layerData[id],h83=this.options.dataPattern.replace(MLayer.DPLACEHOLDER,layerData.dirname+"_"+layerData.xyname),uy=eval("typeof "+h83+"==\"undefined\"?null:"+h83);if(uy&&uy.length>0){this.data[id]=uy;var p1=layerData.x,p3=layerData.y;for(var i=0;i<uy.length;i++){var item=uy[i],zB=p1+item.r.i.x,zF=p3+item.r.i.y;item.rect={min:{x:zB,y:zF},max:{x:zB+item.r.a.x,y:zF+item.r.a.y}}}uy=null}_removeNode(aa(kPH24))};this.getDataByXY=function(E,M,L,K){if(typeof K!="boolean")K=false;if(this.data[E]){var I={x:M,y:L};for(var D=0;D<this.data[E].length;D++)if(_isInsideRect(I,this.data[E][D].rect)){var $=this.data[E][D];if(K)if($.c.length>0){var G=$.rect,C=this.maplet.layerData[E].x,A=this.maplet.layerData[E].y;for(var _=0;_<$.c.length;_++){var B=$.c[_],J=C+B.i.x,H=A+B.i.y,F={min:{x:J,y:H},max:{x:J+B.a.x,y:H+B.a.y}};if(_isInsideRect(I,F))$=this.data[E][B.f]}}return{pid:$.p,area:$.l}}}return null};this.vq28a=function($,A,_){if(this.getDataByXY($,A,_))this.maplet.d7q("pointer",this.maplet.vb)};this.click=function($,B,A){if((this.options.events&MLayer.CLICK)!=MLayer.CLICK)return null;var _=null;if(_=this.getDataByXY($,B,A,true))return _;return null};this.clearImgs=function(){for(var $ in this.D91)LCG.apply(this,[$])};this.clearData=function(){for(var $ in this.data)p86o3.apply(this,[$])};this.clear=function(){this.clearImgs();this.clearData();if(!this.dom)return;this.dom.innerHTML=""};this.resize=function($,_){if(!this.dom)return;if(cm5UC(this.dom.style.width,0)!=$)this.dom.style.width=($-1)+"px";if(cm5UC(this.dom.style.height,0)!=_)this.dom.style.height=(_-2)+"px"};this.show=function(){this.setVisible(true)};this.hide=function(){this.setVisible(false)};this.setVisible=function($){if(!this.dom)return;if(this.dom.style.display!=($?"":"none"))this.dom.style.display=$?"":"none"};this.finalize=function(){this.remove(true)};this.remove=function($){if(typeof $!="boolean")$=false;this.clear();if(this.dom)if(!$){if(this.dom.parentNode)this.dom.parentNode.removeChild(this.dom)}else{_removeNode(this.dom);this.dom=null}if(this.options.processorThisObj)this.options.processorThisObj=null;this.maplet=null};this.toString=function(){return"com.mapbar.maplet.MLayer"};this.id=new Date().getTime()+"_layer";this.maplet=null;this.dom=document.createElement("DIV");this.dom.style.position="absolute";this.D91={};this.data={};this._a3=0;this.O6$bv=0;var g7Y="_using";this.options=options||{};with(this.options){this.setServerPath(typeof serverPath!="undefined"?serverPath:undefined);this.setZIndex(typeof zindex!="undefined"?zindex:undefined);this.setImgType(typeof imgType!="undefined"?imgType:undefined);this.setDataType(typeof dataType!="undefined"?dataType:undefined);this.setDataPattern(typeof dataPattern!="undefined"?dataPattern:undefined);this.setLevelRange((typeof minLevel!="undefined"?minLevel:undefined),(typeof maxLevel!="undefined"?maxLevel:undefined));this.setImgWidth(typeof imgWidth!="undefined"?imgWidth:undefined);this.setImgHeight(typeof imgHeight!="undefined"?imgHeight:undefined);this.setNeedData(typeof needData!="undefined"?needData:undefined);this.setNeedImg(typeof needImg!="undefined"?needImg:undefined);this.setCreator(typeof creator!="undefined"?creator:undefined);this.setImgUrlPreprocessor(typeof imgUrlPreprocessor!="undefined"?imgUrlPreprocessor:undefined);this.setDataUrlPreprocessor(typeof dataUrlPreprocessor!="undefined"?dataUrlPreprocessor:undefined);this.setPreprocessorThisObj(typeof processorThisObj!="undefined"?processorThisObj:undefined);this.setFireEvent(typeof events!="undefined"?events:undefined)}};MLayer.USER=1;MLayer.SYSTEM=2;MLayer.DPLACEHOLDER="[xyname]";MLayer.NONE=0;MLayer.CLICK=1;MLayer.MOUSEMOVE=2;MLayer.ALL=255;var MTraffic=function(options){this.initialize=function($){this.maplet=$;this.layer=new MLayer({serverPath:this.options.serverPath,imgType:this.options.imgType,needData:false,minLevel:this.options.minLevel,maxLevel:this.options.maxLevel,creator:MLayer.SYSTEM,imgUrlPreprocessor:kl$,M0w5:this});this.maplet.addLayer(this.layer);this.refresh();W46G7=nB(this,M1_,this.options.interval)};var kl$=function($){if(w87w6)return this.options.serverPath+w87w6+(this.maplet.AG-1)+"/o"+$.grid+"."+this.options.imgType;else return""};this.refresh=function(){if(!this.layer||!this.layer.inZoomRange(this.maplet.AG))return;this.layer.clear();_wIc=true;M1_.apply(this)};var M1_=function(){IoF.apply(this)},IoF=function(){new i96(Yg80.apply(this),xnm53,false,true,this).V96Xw()},Yg80=function(){return this.options.magicPath.replace("[city]",this.options.city)},xnm53=function(){var d=eval(MTraffic.MAGIC_RESULT_NAME);if(typeof d!="string"||!d)return;if(!w87w6||d!=w87w6||_wIc){w87w6=eval(MTraffic.MAGIC_RESULT_NAME);_wIc=false;this.layer.clear();this.layer.update();MEvent.trigger(this.layer.maplet,"traffic_update",{magicPath:w87w6})}};this.setServerPath=function($){if(typeof $!="string"||!$)$="http://lukuang.mapbar.com/";this.options.serverPath=$};this.setImgType=function($){if(typeof $!="string"||!$)$="png";this.options.imgType=$.toLowerCase()};this.setMagicPath=function($){if(typeof $!="string"||!$)$="http://lukuang.mapbar.com/[city]/traffic/images/traffic.js";this.options.magicPath=$};this.setLevelRange=function($,_){if(typeof $!="number"||$<TRAFFIC_MIN_LEVEL||$>TRAFFIC_MAX_LEVEL)$=TRAFFIC_MIN_LEVEL;if(typeof _!="number"||_<TRAFFIC_MIN_LEVEL||_>TRAFFIC_MAX_LEVEL)_=TRAFFIC_MAX_LEVEL;this.options.minLevel=$;this.options.maxLevel=_};this.setInterval=function($){if(typeof $!="number"||$<TRAFFIC_REFRESH_INTERVAL)$=TRAFFIC_REFRESH_INTERVAL;this.options.interval=$*1000;if(W46G7){window.clearInterval(W46G7);W46G7=nB(this,M1_,this.options.interval)}};this.setCity=function(_,$){if(typeof _!="string"||!_)_="beijing";this.options.city=_;if(typeof $!="boolean")$=true;if($){_wIc=true;M1_.apply(this)}};this.show=function(){if(this.layer)this.layer.show()};this.hide=function(){if(this.layer)this.layer.hide()};this.finalize=function(){this.remove(true)};this.remove=function($){if(typeof $!="boolean")$=false;if(W46G7)window.clearTimeout(W46G7);W46G7=null;this.layer.remove($);this.maplet=null};this.toString=function(){return"com.mapbar.maplet.MTraffic"};this.id=new Date().getTime()+"_traffic";this.maplet=null;this.layer=null;var W46G7=null,w87w6=null,_wIc=true;this.options=options||{};with(this.options){this.setServerPath(typeof serverPath!="undefined"?serverPath:undefined);this.setLevelRange((typeof minLevel!="undefined"?minLevel:undefined),(typeof maxLevel!="undefined"?maxLevel:undefined));this.setInterval(typeof interval!="undefined"?interval:undefined);this.setCity(typeof city!="undefined"?city:undefined,false);this.setMagicPath(typeof magicPath!="undefined"?magicPath:undefined);this.setImgType(typeof imgType!="undefined"?imgType:undefined)}};MTraffic.MAGIC_RESULT_NAME="__mapbar_magic_id";function rh_(_){this.maplet=_;document["mapbar-overview"]=this;this.yl="mapbar";var e56k5=0,vr4Q=0,V5h=0,heN=0;this.c3=oo;this.fg=true;this.vb=document.createElement("div");this.vb.unselectable="on";this.vb.style.position="absolute";this.vb.style.zIndex=999;this.vb.style.backgroundColor="white";this.vb.style.border="1px solid #A6A5A1";this.vb.setAttribute(j25$O,true);this.vb.style.overflow="hidden";this.vb.style.display="none";this.fC=document.createElement("div");this.fC.id="mapbar-overview-canvas";this.fC.unselectable="on";this.fC.style.position="absolute";this.fC.style.visibility="visible";this.fC.style.zIndex=0;this.fC.style.top=(uU-2)+"px";this.fC.style.left=(px)?"5px":"7px";this.fC.style.backgroundColor=MapBackgroundColor;this.fC.style.border="2px solid #0E347F";this.fC.style.overflow="hidden";this.fC.selected=false;this.vb.appendChild(this.fC);this.z3=document.createElement("div");this.z3.id="mapbar-overview-viewport";this.z3.unselectable="on";this.fC.appendChild(this.z3);this.z1=document.createElement("div");this.z1.id="mapbar-overview-viewframe";this.z1.unselectable="on";this.fC.appendChild(this.z1);this.z2=document.createElement("div");this.z2.id="mapbar-overview-viewpad_ctrl";this.z2.unselectable="on";this.z2.style.MozUserSelect="none";this.fC.appendChild(this.z2);this.z2.style.cursor="move";this.z2.selected=false;this.ao=new Array();this.cW=0;this.g6h7W=[2,4,8,6];this.shadow=document.createElement("div");this.shadow.unselectable="on";this.shadow.style.position="absolute";this.shadow.style.zIndex=998;this.shadow.setAttribute(j25$O,true);this.shadow.style.display="none";var N=null,K=null;this.w91eO=new fD("OvwImgs",0,0,0,0,true,0,"",this.fC);this.show=function(){this.fg=true};this.hide=function(){this.fg=false};this.nF=function(){if(this.fg){if(this.c3)return cm5UC(this.shadow.style.top);else return heN}else return 0};this.VOqw1=function(){if(this.fg){if(this.c3)return cm5UC(this.shadow.style.left);else return V5h}else return 0};this.nz=function(){if(this.fg){if(this.c3)return cm5UC(this.shadow.offsetHeight);else return cm5UC(this.img.offsetHeight)}else return 0};this.w0=function($){_66($);if(this.cW!=0)return;if($.target.id==this.z2.id||$3kS==this.z2.id){$3kS=this.z2.id;this.z2.selected=true;this.downX=(px)?event.clientX:$.clientX;this.downY=(px)?event.clientY:$.clientY;this.xa=this.downX;this.xb=this.downY}else if(fJ($.target,this.fC)||$3kS==this.fC.id){$3kS=this.fC.id;this.fC.selected=true;this.downX=(px)?event.clientX:$.clientX;this.downY=(px)?event.clientY:$.clientY;this.xa=this.downX;this.xb=this.downY}if($3kS){this.ao["doc_mousemove"]=MEvent.bindDom(document,"mousemove",this,this.f9);this.ao["doc_mouseup"]=MEvent.bindDom(document,"mouseup",this,this.l1);if(px)this.ao["losecapture"]=MEvent.bindDom(document.body,"losecapture",this,this.l1);else this.ao["blur"]=MEvent.bindDom(window,"blur",this,this.l1)}};this.f9=function(A){if($3kS==this.z2.id&&this.z2.selected){this.tR=(px)?event.clientX:A.clientX;this.tS=(px)?event.clientY:A.clientY;var _=(this.tR-this.downX),$=(this.tS-this.downY);this.downX=this.tR;this.downY=this.tS;if(this.z2.style.top){this.z2.style.top=(parseInt(this.z2.style.top)+$)+"px";this.z2.style.left=(parseInt(this.z2.style.left)+_)+"px"}}else if($3kS==this.fC.id&&this.fC.selected){this.tR=(px)?event.clientX:A.clientX;this.tS=(px)?event.clientY:A.clientY;_=(this.tR-this.downX),$=(this.tS-this.downY);this.downX=this.tR;this.downY=this.tS;this.w91eO.style.top=(parseInt(this.w91eO.style.top)+$)+"px";this.w91eO.style.left=(parseInt(this.w91eO.style.left)+_)+"px";if(this.z3.style.top){this.z3.style.top=(parseInt(this.z3.style.top)+$)+"px";this.z3.style.left=(parseInt(this.z3.style.left)+_)+"px";this.z1.style.top=(parseInt(this.z1.style.top)+$)+"px";this.z1.style.left=(parseInt(this.z1.style.left)+_)+"px"}}if(!N&&this.z2.offsetWidth<this.fC.offsetWidth){if(px)document.body.setCapture();N=nB(this,C,100);K=nB(this,O,100)}};this.l1=function(E){if(this.maplet.sS!=ts.$9f&&this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.tv)_66(E);if(N){this.maplet.hideBubble();window.clearInterval(N);N=null;window.clearInterval(K);K=null;if(px)document.body.releaseCapture()}if(this.ao["doc_mousemove"]){MEvent.removeBuiltInListener(document,"mousemove",this.ao["doc_mousemove"]);this.ao["doc_mousemove"]=null;MEvent.removeBuiltInListener(document,"mouseup",this.ao["doc_mouseup"]);this.ao["doc_mouseup"]=null;if(px){MEvent.removeBuiltInListener(document.body,"losecapture",this.ao["losecapture"]);this.ao["losecapture"]=null}else{MEvent.removeBuiltInListener(window,"blur",this.ao["blur"]);this.ao["blur"]=null}}if(this.z2.selected){$3kS=null;this.z2.selected=false;var D=(px)?event.clientX:E.clientX,B=(px)?event.clientY:E.clientY;if(typeof D=="undefined")D=this.tR;if(typeof B=="undefined")B=this.tS;var A=(D-this.xa-cm5UC(this.w91eO.style.left)),_=(B-this.xb-cm5UC(this.w91eO.style.top)),C=-_*this.xf/this.maplet.imgHeight,$=A*this.xg/this.maplet.imgWidth;this.gK=this.maplet.gx+C;this.gL=this.maplet.gA+$;this.cW=1;this.vh=getTimeout(this,this.vO,20)}else if(this.fC.selected){$3kS=null;this.fC.selected=false;D=(px)?event.clientX:E.clientX,B=(px)?event.clientY:E.clientY,A=-(D-this.xa),_=-(B-this.xb),C=-_*this.xf/this.maplet.imgHeight,$=A*this.xg/this.maplet.imgWidth;this.gK=this.maplet.gx+C;this.gL=this.maplet.gA+$;this.cW=2;this.vh=getTimeout(this,this.vO,20)}};var A=function($){_66($)};this.vO=function(){if(this.vh){clearTimeout(this.vh);this.vh=null}if(!this.z3.style.top||!this.z2.style.top){this.maplet.setCenter(this.gK,this.gL,true);this.cW=0;return}var $=parseInt(this.z2.style.top)-parseInt(this.z3.style.top),A=parseInt(this.z2.style.left)-parseInt(this.z3.style.left),_=Math.round(A),B=Math.round($);if((Math.abs(A)+Math.abs($))>=10)_=Math.round(A*10/(Math.abs(A)+Math.abs($))),B=Math.round($*10/(Math.abs(A)+Math.abs($)));if(this.cW==2){if((Math.abs(A)+Math.abs($))==0){this.maplet.setCenter(this.gK,this.gL,true);this.cW=0}else{this.z3.style.top=(parseInt(this.z3.style.top)+B)+"px";this.z3.style.left=(parseInt(this.z3.style.left)+_)+"px";this.z1.style.top=(parseInt(this.z1.style.top)+B)+"px";this.z1.style.left=(parseInt(this.z1.style.left)+_)+"px";this.vh=getTimeout(this,this.vO,20)}}else if(this.cW==1){_=-_;B=-B;if((Math.abs(A)+Math.abs($))==0){this.maplet.setCenter(this.gK,this.gL,true);this.cW=0}else{for(var C in this.pU)if(typeof this.pU[C]=="object"&&(this.pU[C]!=null)){this.pU[C].style.top=(parseInt(this.pU[C].style.top)+B)+"px";this.pU[C].style.left=(parseInt(this.pU[C].style.left)+_)+"px"}this.z2.style.top=(parseInt(this.z2.style.top)+B)+"px";this.z2.style.left=(parseInt(this.z2.style.left)+_)+"px";this.vh=getTimeout(this,this.vO,20)}}};this.pU=new Array();this.yN=null;this.c4=false;this.cl=false;this.sa=new Array();this.nH=function(){if(this.fg&&this.c3)return OVER_WIN_WIDTH;else return uS};this.addListener=function($){this.sa[$.id]=$};this.removeListener=function($){this.sa[$.id]=null};this.uq=function(){for(var $ in this.sa)if(this.sa[$]&&this.sa[$].onresize)this.sa[$].onresize();this.maplet.onresize()};this.g1=function(){for(var _ in this.sa){if(this.sa[_])this.sa[_]=null;this.sa=null}this.clearImgs();this.pU=null;for(var $ in this.ao){try{if(this.ao[$]!=null){MEvent.removeBuiltInListener(this.fC,$,this.ao[$]);this.ao[$]=null}}catch(A){}this.ao=null}this.img.overview=null;this.img.onclick=null;this.img.onmousedown=null;this.img.onmouseup=null;this.img.ondblclick=null;this.z2.w0=null;this.z2.f9=null;if(this.vb.parentNode!=null)_removeNode(this.vb);this.maplet=null};this.onresize=function(){this.j898();this.uq()};this.close=function(){if(this.cl)return;if(typeof this.img=="undefined"){this.c3=oo=false;return}else if(this.img.style.display=="none"&&this.c3)this.c3=oo=false;P.apply(this);this.cl=true;this.yN=getTimeout(this,F,10);this.c4=false;this.uq()};this.open=function(){if(typeof this.img=="undefined"){this.c3=oo=true;return}if(this.c4)return;P.apply(this);this.c4=true;this.yN=getTimeout(this,G,10);this.cl=false};this.qa=function(_){var $=(px)?0:2;this.img=document.createElement("div");this.img.unselectable="on";this.img.style.position="absolute";this.img.style.zIndex=1000;this.img.overview=this;this.img.style.cursor=(px)?"hand":"pointer";this.img.style.overflow="hidden";this.img.style.display="none";this.A54Y0=document.createElement("img");this.A54Y0.unselectable="on";this.A54Y0.style.position="absolute";this.A54Y0.src=CTLIMG_RESOURCE[0].url;this.A54Y0.style.width=CTLIMG_RESOURCE[0].w+"px";this.A54Y0.style.height=CTLIMG_RESOURCE[0].h+"px";this.A54Y0.v5w="no";if(px)this.img.style.filter="alpha(opacity=0)";else this.img.style.opacity="0";this.img.onmousedown=function($){_66($||window.event)};this.img.onmouseup=function($){this.overview.l1($);_66($||window.event)};this.img.ondblclick=function($){_66($||window.event)};this.img.onclick=function($){_66($||window.event);if(this.overview.c3)this.overview.close();else this.overview.open()};_.appendChild(this.img);this.img.appendChild(this.A54Y0);_.appendChild(this.vb);_.appendChild(this.shadow);this.ao["mousedown"]=MEvent.bindDom(this.fC,"mousedown",this,this.w0);this.ao["mouseup"]=MEvent.bindDom(this.fC,"dblclick",this,A);this.onresize();if(!this.fg)return;if(oo)this.open();else this.close()};this.clearImgs=function(){for(var $ in this.pU)H.apply(this,[$])};var H=function($){try{if(this.pU[$]!=null){_removeNode(this.pU[$]);this.pU[$].onmousedown=null;this.pU[$].onerror=null;this.pU[$].onload=null;this.pU[$]=null;delete this.pU[$]}}catch(_){}},M=function(){for(var $ in this.pU)if(this.pU[$]&&!this.pU[$].c2)H.apply(this,[$])};this.paint=function(){if(!this.c3||!this.fg)return;this.width=OVER_WIN_WIDTH-10;this.height=OVER_WIN_HEIGHT-10;this.gx=this.maplet.gx;this.gA=this.maplet.gA;this.AG=Math.max(Math.max(0,te-2),uW[this.maplet.AG]);this.imgWidth=this.maplet.imgWidth;this.imgHeight=this.maplet.imgHeight;this.xK=this.maplet.xK;if(this.yl!=this.maplet.yl){this.yl=this.maplet.yl;this.clearImgs()}var S=this.yl;this.z4=Math.ceil((this.width)/(this.imgWidth)/2);this.z5=Math.ceil((this.height)/(this.imgHeight)/2);this.xg=sj[this.AG];this.xf=qP[this.AG];this.sR=sI[this.AG]+"/";this.gD=Math.floor((this.maplet.gA)/this.xg);this.gE=Math.floor((this.maplet.gx)/this.xf);if(this.gD<0)this.gD+=1;this.mapX=this.width/2-Math.round(((this.gA*wp)%(this.xg*wp))*this.imgWidth/(this.xg*wp));if(this.gx>=0)this.mapY=this.height/2-this.imgHeight+Math.round(((this.gx*wp)%(this.xf*wp))*this.imgHeight/(this.xf*wp));else this.mapY=this.height/2+Math.round(((this.gx*wp)%(this.xf*wp))*this.imgHeight/(this.xf*wp));var R=nM[this.AG];this.sZ=0;this.s1=0;this.tf1=this.width;this.tg=this.height;this.s2=parseInt(this.gD);this.s3=parseInt(this.gE);this.th=parseInt(this.gD);this.ti=parseInt(this.gE);var P=(360/sj[this.AG]);this.gk=1;this.wT=0;for(var H in this.pU)if(this.pU[H]!=null)this.pU[H].c2=false;for(qx=-this.z4-1;qx<=this.z4;qx++)for(qz=-this.z5-1;qz<=this.z5;qz++){try{var Q=this.maplet.strImgUrl+"mapbank/"+S+"/"+this.sR,N=parseInt(this.gD+qx),L=parseInt(this.gE+qz);N=(N)%P;if(N>=(P/2))N-=P;if(N<(-P/2))N+=P;var J=parseInt(Math.floor((N)/R)),O=parseInt(Math.floor((L)/R));if(J<0)J+=1;if(O<0)O+=1;var E=(N)-J*R,F=(L)-O*R;Q+=J+"_"+O+"/";Q+=E+"_"+F+"."+this.xK;var C=(qx*this.imgWidth)+parseInt(this.mapX),A=(-(qz*this.imgHeight)+parseInt(this.mapY)),_=A;if(this.yl!="aerial"&&this.yl.indexOf("aerial")<0)A=A+w8[this.AG];if(C<-this.imgWidth||C>this.width||A>this.height||A<-this.imgHeight)continue;if(this.sZ<(C+this.imgWidth)){this.sZ=(C+this.imgWidth);this.s2=parseInt(this.gD)+parseInt(qx)}if(this.s1<(A+this.imgHeight)){this.s1=(A+this.imgHeight);this.ti=parseInt(this.gE)+parseInt(qz)}if(this.tf1>C){this.tf1=C;this.th=parseInt(this.gD)+parseInt(qx)}if(this.tg>A){this.tg=A;this.s3=parseInt(this.gE)+parseInt(qz)}var K="__ov_ctrl_"+((this.AG).toString(16)+(this.gD+qx).toString(16)+"l"+(this.gE+qz).toString(16)).toLowerCase();if(Q&&Q.indexOf("NaN")<0){if(this.pU[K]==null){this.pU[K]=new Image();this.pU[K].id=K;this.pU[K].name=K;this.pU[K].wyq=this.AG+"_"+J+"_"+O+"_"+E+"_"+F;this.pU[K].ntry="0";this.pU[K].unselectable="on";this.pU[K].style.position="absolute";this.pU[K].onmousedown=function(){return false};this.pU[K].v5w="no";this.pU[K].src=Q}var B=(C+this.imgWidth/2-this.width/2)*this.gk-(A+this.imgHeight/2-this.height/2)*this.wT+this.width/2,$=(C+this.imgWidth/2-this.width/2)*this.wT+(A+this.imgHeight/2-this.height/2)*this.gk+this.height/2;this.pU[K].style.top=parseInt($-this.imgHeight/2)+"px";this.pU[K].style.left=parseInt(B-this.imgWidth/2)+"px";this.pU[K].c2=true}Q=null;K=null}catch(G){}}for(H in this.pU){var D=this.pU[H];if(D&&D.c2&&D.parentNode!=this.w91eO)this.w91eO.appendChild(D)}M.apply(this);I.apply(this);this.w91eO.style.top=this.w91eO.style.left="0px"};var I=function(){var _=parseInt(this.maplet.width*this.maplet.xg/this.xg),A=parseInt(this.maplet.height*this.maplet.xf/this.xf);if(_>this.width&&A>this.height)$.apply(this,[false]);else{this.z3.style.left=parseInt(this.width-_)/2+"px";this.z3.style.top=parseInt(this.height-A)/2+"px";this.z3.style.width=(_)+"px";this.z3.style.height=(A)+"px";this.z1.style.left=parseInt(this.width-_)/2+"px";this.z1.style.top=parseInt(this.height-A)/2+"px";this.z1.style.width=(_)+"px";this.z1.style.height=(A)+"px";this.z2.style.left=parseInt(this.width-_)/2+"px";this.z2.style.top=parseInt(this.height-A)/2+"px";this.z2.style.width=(_)+"px";this.z2.style.height=(A)+"px";$.apply(this,[true])}},$=function($){this.z3.style.visibility=$?"visible":"hidden";this.z1.style.visibility=$?"visible":"hidden";this.z2.style.visibility=$?"visible":"hidden"};this.getRect=function(){var A={min:{x:0,y:0},max:{x:0,y:0}};if(typeof this.img!="undefined"){var B=(this.vb.style.display!="none"),_=(this.img.style.display!="none");if(B||_){var $=this.c3?this.shadow:this.img;A={min:{x:$.offsetLeft,y:$.offsetTop},max:{x:0,y:0}};A.max.x=A.min.x+$.offsetWidth;A.max.y=A.min.y+$.offsetHeight}}return A};var F=function(){var E=(this.vb.style.display!="none");if(this.fg)this.img.style.display="";this.uq();P.apply(this);$.apply(this,[false]);this.shadow.style.display="none";if(this.fg||E)with(this.vb.style){if(px)filter="alpha(opacity=100)";else opacity="1"}if(this.fg)with(this.A54Y0.style){left="-26px";top="-124px"}with(this.img.style){if(px)filter="alpha(opacity=0)";else opacity="0"}var _=0,A=10,D={b:0,c:1},F={b:0,c:1};function C(){if(_<A){_++;if(px){this.vb.style.filter="alpha(opacity="+(100-B(_,D.b,D.c,A)*100)+")";if(this.fg)this.img.style.filter="alpha(opacity="+B(_,F.b,F.c,A)*100+")";else this.img.style.filter="alpha(opacity="+(100-B(_,F.b,F.c,A)*100)+")"}else{this.vb.style.opacity=1-B(_,D.b,D.c,A);if(this.fg)this.img.style.opacity=B(_,F.b,F.c,A);else this.img.style.opacity=1-B(_,F.b,F.c,A)}this.yN=getTimeout(this,C,100)}else{this.vb.style.display="none";this.img.style.display=this.fg?"":"none";this.cl=false;this.c3=false;this.uq()}}C.apply(this)},G=function(){if(this.vb.style.display!="none")return;P.apply(this);$.apply(this,[false]);with(this.vb.style){display=this.fg?"":"none";if(px)filter="alpha(opacity=0)";else opacity="0"}with(this.img.style){display=this.fg?"":"none";if(px)filter="alpha(opacity=0)";else opacity="0"}with(this.A54Y0.style){top="-125px";left="-42px"}var _=0,A=10,D={b:0,c:1},E={b:0,c:1};function C(){if(_<A){_++;if(px){this.vb.style.filter="alpha(opacity="+B(_,D.b,D.c,A)*100+")";this.img.style.filter="alpha(opacity="+B(_,E.b,E.c,A)*100+")"}else{this.vb.style.opacity=B(_,D.b,D.c,A);this.img.style.opacity=B(_,E.b,E.c,A)}this.yN=getTimeout(this,C,100)}else{if(px)this.vb.style.filter=null;else this.shadow.style.opacity=1;this.shadow.style.display=this.fg?"":"none";this.c4=false;this.c3=true;this.uq();this.paint()}}C.apply(this)},P=function(){if(this.yN){window.clearTimeout(this.yN);this.yN=null}},B=function($,A,B,_){if($==0)return A;if($==_)return A+B;if(($/=_/2)<1)return B/2*Math.pow(2,10*($-1))+A;return B/2*(-Math.pow(2,-10*--$)+2)+A};this.oJi83=function($){$=$||{};if(typeof $.type!="number"&&!($.type==Maplet.LEFT_TOP||$.type==Maplet.LEFT_BOTTOM||$.type==Maplet.RIGHT_TOP||$.type==Maplet.LEFT_BOTTOM))$.type=Maplet.RIGHT_BOTTOM;if(typeof $.marginx!="number")$.marginx=6;if(typeof $.marginy!="number")$.marginy=6;return $};this.setLocation=function($){this.location=this.oJi83($);this.j898()};this.resizeTo=function($,_){if(typeof $!="number")$=150;else if($<100)$=100;else if($>210)$=210;if(typeof _!="number")_=140;else if(_<100)_=100;else if(_>210)_=210;OVER_WIN_WIDTH=$;OVER_WIN_HEIGHT=_;this.onresize();this.paint()};var E=function(){with(this.location){if(type==Maplet.LEFT_TOP){e56k5=marginx;vr4Q=marginy;V5h=e56k5+rh_.b069+4;heN=vr4Q+rh_.$uD4+4}else if(type==Maplet.LEFT_BOTTOM){e56k5=marginx;vr4Q=this.maplet.height-OVER_WIN_HEIGHT-marginy;V5h=e56k5+rh_.b069+4;heN=vr4Q+OVER_WIN_HEIGHT-uS-rh_.$uD4-1}else if(type==Maplet.RIGHT_TOP){e56k5=this.maplet.width-OVER_WIN_WIDTH-marginx;vr4Q=marginy;V5h=e56k5+OVER_WIN_WIDTH-uS-rh_.b069-2;heN=vr4Q+rh_.$uD4+4}else if(type==Maplet.RIGHT_BOTTOM){e56k5=this.maplet.width-OVER_WIN_WIDTH-marginx;vr4Q=this.maplet.height-OVER_WIN_HEIGHT-marginy;V5h=e56k5+OVER_WIN_WIDTH-uS-rh_.b069-2;heN=vr4Q+OVER_WIN_HEIGHT-uS-rh_.$uD4-1}}};this.j898=function(){E.apply(this);with(this.vb.style){width=OVER_WIN_WIDTH+"px";height=OVER_WIN_HEIGHT+"px";left=e56k5+"px";top=vr4Q+"px"}with(this.shadow.style){width=OVER_WIN_WIDTH+rh_.Y9d+"px";height=OVER_WIN_HEIGHT+rh_.Y9d+"px";left=e56k5-rh_.Y9d/2+"px";top=vr4Q-rh_.Y9d/2+"px"}with(this.fC.style){width=OVER_WIN_WIDTH-rh_.b069*2-cm5UC(borderWidth)*2+"px";height=OVER_WIN_HEIGHT-rh_.$uD4*2-cm5UC(borderWidth)*2+"px";left=rh_.b069+"px";top=rh_.$uD4+"px"}with(this.w91eO.style){width=this.fC.style.width;height=this.fC.style.height;top=left="0px"}with(this.img.style){width=uS+"px";height=uS+"px";left=V5h+"px";top=heN+"px"}with(this.A54Y0.style){if(this.c3){top="-125px";left="-42px"}else{left="-26px";top="-124px"}}this.shadow.innerHTML="";if(D2a){for(var F=0;F<this.g6h7W.length;F++){var A=document.createElement("div");A.unselectable="on";A.style.position="absolute";A.style.zIndex=F;A.style.backgroundColor="black";A.setAttribute(j25$O,true);A.style.left=F*2+"px";A.style.top=F*2+"px";A.style.width=(OVER_WIN_WIDTH+(this.g6h7W.length-F)*4+2)+"px";A.style.height=(OVER_WIN_HEIGHT+(this.g6h7W.length-F)*4+2)+"px";if(px)A.style.filter="alpha(opacity="+this.g6h7W[F]+")";else A.style.opacity=this.g6h7W[F]/100;this.shadow.appendChild(A)}}else{var D=rh_.Y9d/2-rh_.dCo,C=D,$=rh_._YK,B=rh_._YK,_=["<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-28px;top:-103px;\"></div>"];D+=rh_._YK;$=OVER_WIN_WIDTH-rh_._YK+1;B=rh_.dCo;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:0px;top:-226px;\"></div>");D+=$;$=rh_._YK;B=$;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-38px;top:-103px;\"></div>");D=OVER_WIN_WIDTH+rh_._YK+rh_.dCo;C+=rh_._YK;B=OVER_WIN_HEIGHT-rh_._YK+1;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-81px;top:0px;\"></div>");D=D-rh_.dCo-1;C+=B;$=rh_._YK;B=$;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-38px;top:-113px;\"></div>");D=rh_.Y9d/2-rh_.dCo+rh_._YK;C+=rh_.dCo+1;$=OVER_WIN_WIDTH-rh_._YK+1;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:0px;top:-229px;\"></div>");D=rh_.Y9d/2-rh_.dCo;C=C-rh_.dCo-1;$=rh_._YK;B=$;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-28px;top:-113px;\"></div>");C=rh_.Y9d/2-rh_.dCo+rh_._YK;B=OVER_WIN_HEIGHT-rh_._YK+1;$=rh_.dCo;_.push("<div style=\"position:absolute;left:"+D+"px;top:"+C+"px;width:"+$+"px;height:"+B+"px;overflow:hidden;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-78px;top:0px;\"></div>");this.shadow.innerHTML=_.join("")}};var C=function(){var A=J.apply(this),$=0,_=0;if(A.min.x<0)$=5;if(A.min.y<0)_=5;if(A.max.x>cm5UC(this.fC.style.width))$=-5;if(A.max.y>cm5UC(this.fC.style.height))_=-5;if(($!=0||_!=0))this.panTo($,_)},J=function(){var $={min:{x:this.z2.offsetLeft,y:this.z2.offsetTop},max:{x:0,y:0}};$.max.x=$.min.x+this.z2.offsetWidth;$.max.y=$.min.y+this.z2.offsetHeight;return $};this.panTo=function(_,$){this.w91eO.style.top=cm5UC(this.w91eO.style.top)+$+"px";this.w91eO.style.left=cm5UC(this.w91eO.style.left)+_+"px"};var O=function(){if(this.fs||this.c0)return;var _=parseInt(this.w91eO.style.left),$=parseInt(this.w91eO.style.top);if((_+this.tf1)>=0||(_+this.sZ-this.width)<=0||($+this.tg)>=0||($+this.s1-this.height)<=0){this.fs=true;D.apply(this)}},D=function(){if(this.fs==false)return;var _=parseInt(this.w91eO.style.left),$=parseInt(this.w91eO.style.top);if((_+this.tf1)>=0||(_+this.sZ-this.width)<=0){if(this.c0==true)return;this.c0=true;var D=0,C=0;if((_+this.tf1)>=0){this.th--;this.tf1-=parseInt(this.imgWidth);D=this.th;C=this.tf1}if((_+this.sZ-this.width)<=0){this.s2++;C=this.sZ;this.sZ+=parseInt(this.imgWidth);D=this.s2}var F=D,H=nM[this.AG],G=parseInt(360/sj[this.AG]);D=(D)%G;if(D>=(G/2))D-=G;if(D<(-G/2))D+=G;var I=this.yl;for(var E=this.ti;E<=this.s3;E++){var B=E,A=(-(E-this.ti+1)*this.imgHeight)+this.s1;L.apply(this,[C,A,D,B,F,E,I])}this.c0=false}if(($+this.tg)>=0||($+this.s1-this.height)<=0){if(this.c0==true)return;this.c0=true;B=0,A=0;if(($+this.tg)>=0){this.s3++;this.tg-=parseInt(this.imgHeight);B=this.s3;A=this.tg}if(($+this.s1-this.height)<=0){this.ti--;A=this.s1;this.s1+=parseInt(this.imgHeight);B=this.ti}E=B,H=nM[this.AG],G=parseInt(360/sj[this.AG]),I=this.yl;for(F=this.th;F<=this.s2;F++){D=F;D=(D)%G;if(D>=(G/2))D-=G;if(D<(-G/2))D+=G;C=((F-this.th)*this.imgWidth)+this.tf1;L.apply(this,[C,A,D,B,F,E,I])}this.c0=false}this.fs=false},L=function(B,_,H,G,K,I,N){var M=nM[this.AG],E=parseInt(Math.floor((H)/M)),J=parseInt(Math.floor((G)/M));if(E<0)E+=1;if(J<0)J+=1;var C=(H)-E*M,D=(G)-J*M,L=this.maplet.strImgUrl.replace("img","img"+this.maplet.vI_9(C,D))+"mapbank/"+N+"/"+this.sR,F="__ov_ctrl_"+((this.AG).toString(16)+K.toString(16)+"l"+I.toString(16)).toLowerCase();L+=E+"_"+J+"/";L+=C+"_"+D+"."+this.xK;if(L&&L.indexOf("NaN")<0){if(this.pU[F]==null){this.pU[F]=new Image();this.pU[F].id=F;this.pU[F].name=F;this.pU[F].wyq=this.AG+"_"+E+"_"+J+"_"+C+"_"+D;this.pU[F].ntry="0";this.pU[F].unselectable="on";this.pU[F].style.position="absolute";this.pU[F].onmousedown=function(){return false};this.pU[F].v5w="no";this.pU[F].src=L}var A=(B+this.imgWidth/2-this.width/2)*this.gk-(_+this.imgHeight/2-this.height/2)*this.wT+this.width/2,$=(B+this.imgWidth/2-this.width/2)*this.wT+(_+this.imgHeight/2-this.height/2)*this.gk+this.height/2;this.pU[F].style.top=parseInt($-this.imgHeight/2)+"px";this.pU[F].style.left=parseInt(A-this.imgWidth/2)+"px";this.pU[F].c2=true;this.w91eO.div.appendChild(this.pU[F]);F=null}L=null};this.location=this.oJi83(OVER_LOCATION)}rh_.b069=2;rh_.$uD4=2;rh_.dCo=3;rh_.Y9d=16;rh_._YK=7;function MStandardControl(_,A,B,$){this.x6=(typeof _=="undefined")?"mapbar":_;this.left=(typeof A=="undefined")?0:parseInt(A);this.top=(typeof B=="undefined")?0:parseInt(B);this.fi=(typeof $=="undefined")?0:parseInt($);this.id=new Date().getTime()+parseInt(Math.random()*1000);this.nR=null;this.initialize=function($){this.maplet=$;if(this.maplet.gc[this.id]==null){if(!this.fi&&this.maplet.height<300)if(bsc)this.fi=1;this.maplet.gc[this.id]=this;this.nR=new gb(typeof this.x6!="object"?null:this.x6);this.nR.initialize(this.maplet);if(this.maplet.controlCanvas==null)this.maplet.controlCanvas=this.nR}};this.remove=function(){this.maplet=null;if(this.nR){if(this.nR==this.maplet.controlCanvas)this.maplet.controlCanvas=null;this.nR.g1();this.nR=null}};this.toString=function(){return"com.mapbar.maplet.MStandardControl"}}function MLookupControl($,_,A){this.ya=(typeof $=="undefined")?tX("%u62CD%uCB0F%uD02B%uF3C7"):$;this.left=(typeof _=="undefined")?0:parseInt(_);this.top=(typeof A=="undefined")?0:parseInt(A);this.id=new Date().getTime()+parseInt(Math.random()*1000);this.onresize=function($){if(this.maplet.overview.nF()<=37)this.tY.style.left=(this.maplet.width-132+this.left-this.maplet.overview.nH())+"px";else this.tY.style.left=(this.maplet.width-132+this.left)+"px"};this.initialize=function($){this.maplet=$;if(this.maplet.gc[this.id]==null){this.maplet.gc[this.id]=this;this.tY=document.createElement("div");this.tY.style.position="absolute";this.onresize(this.maplet);this.tY.style.top=(10+this.top)+"px";this.tY.style.zIndex=10;this.tY.style.visibility="visible";this.tU=document.createElement("img");this.tU.unselectable="on";this.tU.src=strImgsvrUrl+"images/lookup.png";this.tU.alt=this.ya;this.tU.style.cursor="hand";this.tU.style.cursor="pointer";this.tU.vb=this;this.tU.maplet=this.maplet;this.tU.onclick=function(){this.maplet.setMode("lookup");MEvent.trigger(this.vb,"onclick")};this.tY.appendChild(this.tU);this.maplet.vb.appendChild(this.tY)}};this.remove=function(){this.maplet=null;if(this.tY!=null&&this.tY.parentNode!=null){this.tY.parentNode.removeChild(this.tY);this.tY=null;this.tU.maplet=null;this.tU.onclick=null;this.tU=null}};this.toString=function(){return"com.mapbar.maplet.MLookupControl"}}var MContextMenuItem=function(title,fy,unit){this.ao=[];this.title=title;this.callback=(typeof fy=="undefined")?null:fy;this.t6=document.createElement("tr");this.tW=document.createElement("td");this.tW.className="contextmenuitem";this.tW.innerHTML="&nbsp;"+title;if(unit==1)this.tW.style.borderBottom="1px solid #4A799C";this.t6.appendChild(this.tW);this.t6.style.backgroundColor="#e8f2fd";this.uK=function(lM){this.vb.hide();if(typeof this.callback=="function"&&this.callback)this.callback.apply(null,[this,this.vb.maplet.fP]);else if(typeof this.callback=="string"&&this.callback)eval(this.callback);else MEvent.trigger(this,"select",this.vb.maplet.f8,this.vb.maplet.fP)};this.uG=function($){this.t6.style.backgroundColor="#d2e1ff"};this.uJ=function($){this.t6.style.backgroundColor="#e8f2fd"};this.paint=function($){this.vb=$;this.vb.t8.appendChild(this.t6)};this.toString=function(){return"com.mapbar.maplet.MContextMenuItem"};this.ao["click"]=MEvent.bindDom(this.t6,"click",this,this.uK);this.ao["mouseover"]=MEvent.bindDom(this.t6,"mouseover",this,this.uG);this.ao["mouseout"]=MEvent.bindDom(this.t6,"mouseout",this,this.uJ);this.remove=function(){if(this.vb)this.vb=null;for(var $ in this.ao){MEvent.removeBuiltInListener(this.t6,$,this.ao[$]);delete this.ao[$]}this.ao=null;if(this.t6){if(this.t6.parentNode)_removeNode(this.t6);this.t6=null}}},MContextMenu=function(){this.qt=new Array();this.fns=new Array();this.cPo=null;this.id=new Date().getTime()+parseInt(Math.random()*1000);this.tY=document.createElement("div");this.tY.className="mapcontextmenu";this.t7=document.createElement("table");this.t7.className="contextmenutable";this.t8=document.createElement("tbody");this.t7.appendChild(this.t8);this.tY.appendChild(this.t7);this.initialize=function($){this.maplet=$;this.maplet.sF.appendChild(this.tY)};this.update=function(){for(var _ in this.t8.childNodes)if(typeof this.t8.childNodes[_]=="object"){if(this.t8.childNodes[_].vb!=null)this.t8.childNodes[_].vb=null;this.t8.removeChild(this.t8.childNodes[_])}for(var $=0;$<this.qt.length;$++)this.qt[$].paint(this)};this.addItem=function($,_){if(typeof _=="undefined")this.qt[this.qt.length]=$;else{_=parseInt(_);this.qt.splice(_,0,$)}this.update()};this.remove=function(){if(typeof this.maplet=="object"&&this.maplet){if(this==this.maplet.xc)this.maplet.xc=null;this.clear();_removeNode(this.tY);this.qt=null;this.maplet=null}};this.removeItem=function($){if($<this.qt.length)this.qt[$].remove();this.qt.splice($,1);this.update()};this.disableItem=function($){var _=this.qt[$];if($<this.qt.length){_.t6.firstChild.style.color="#999999";_.t6.firstChild.style.cursor="default";this.fns[$]=_.ao["click"];MEvent.removeBuiltInListener(_.t6,"click",_.ao["click"]);MEvent.removeBuiltInListener(_.t6,"mouseover",_.ao["mouseover"]);MEvent.removeBuiltInListener(_.t6,"mouseout",_.ao["mouseout"]);_.ao["click"]=MEvent.bindDom(_.t6,"click",_,function(){return false})}};this.enableItem=function($,A){var _=this.qt[$];if($<this.qt.length&&typeof this.fns[$]!="undefined"){_.t6.firstChild.style.color="#000000";_.t6.firstChild.style.cursor="pointer";MEvent.removeBuiltInListener(_.t6,"click",_.ao["click"]);_.ao["click"]=MEvent.bindDom(_.t6,"click",_,A);_.ao["mouseover"]=MEvent.bindDom(_.t6,"mouseover",_,_.uG);_.ao["mouseout"]=MEvent.bindDom(_.t6,"mouseout",_,_.uJ)}};this.modifyItem=function(_,$){var A=this.qt[_];if(_<this.qt.length)A.t6.firstChild.innerHTML=$};this.clear=function(){for(var $=0;$<this.qt.length;$++)this.qt[$].remove();this.qt=new Array();this.update()};this.show=function(D,C){this.showPoi(D,C);var B=$(".mapcontextmenu"),_=B.height(),A=B.width();_+C>maplet.height?C-=(_+6):null;A+D>maplet.width?D-=(A+6):null;this.tY.style.left=parseInt(D)+"px";this.tY.style.top=parseInt(C)+"px";this.tY.style.visibility="visible"};this.showPoi=function(A,$){if(px){this.cPo=document.createElement("v:oval");this.cPo.filled="true";this.cPo.style.left=A-3;this.cPo.style.top=$-3;this.cPo.style.width=6;this.cPo.style.height=6;this.cPo.style.position="absolute";var _=document.createElement("v:fill");_.color="red";_.type="gradient";this.cPo.appendChild(_);maplet.a8xh5().appendChild(this.cPo)}else{this.cPo=document.createElementNS("http://www.w3.org/2000/svg","circle");this.cPo.setAttribute("cx",A-1);this.cPo.setAttribute("cy",$-1);this.cPo.setAttribute("r",3);this.cPo.setAttribute("fill","red");maplet.a8xh5().firstChild.appendChild(this.cPo)}this.cPo.setAttribute("id","contentMenuPoi");this.cPo.style.position="absolute";this.cPo.unselectable="on";this.cPo.setAttribute(cV7,"true")};this.hide=function(){this.tY.style.visibility="hidden";var $=document.getElementById("contentMenuPoi");if($)$.parentNode.removeChild($)};this.toString=function(){return"[MapbarContextMenu]"+this.qt.length}},MSnapshotBox=function(A,O){if(!(A instanceof Maplet)&&!A)throw new Error("parameter para_maplet is invalid Maplet object.");var E=(typeof O!="string"||!O)?"":O+"/",U=SNAPSHOT_SERVER,C=SNAPSHOT_SERVER+"?a=get&",_=A,Q=new Date().getTime(),m=[],P=strImgsvrUrl+"images/"+E+"preview.gif",S=strImgsvrUrl+"images/"+E+"close2.gif",I=strImgsvrUrl+"images/"+E+"save.gif",V="MSnapshotSizeTip"+Q,k=V+"_td",R="<table cellpadding=\"2\" cellspacing=\"0\" style=\"background-color:#0E347F;color:#ff0;font-size:14px;font-family:Arial;-moz-user-select:none;-khtml-user-select:none;user-select:none;\" onselectstart=\"return false;\"><tr><td id=\""+k+"\"></td></tr></table>",e=new fD(V,0,0,0,0,false,24,R,_.vb);e.div.style.width="auto";e.div.style.height="auto";var i="MSnapshotBox"+Q,a="<table width=\"100%\" height=\"100%\" style=\"border:2px solid #0E347F;-moz-user-select:none;-khtml-user-select:none;user-select:none;\" onselectstart=\"return false;\" cellpadding=\"0\" cellspacing=\"0\"><tr><td style=\"background-color:#FFFFFF;filter:alpha(opacity=30);opacity:0.3;\"></td></tr></table>",R13o1=new fD(i,0,0,0,0,false,24,a,_.vb);R13o1.div.style.overflow="hidden";var J=73,Z=24;kF9="MSnapshotBar"+Q;xF3w8="MSnapshotBtn_preview_"+Q;G5N55="MSnapshotBtn_download_"+Q;lV3np="MSnapshotBtn_cancel_"+Q;var K="";if(D2a)K="<table cellspacing=\"1\" style=\"border:1px solid #06c;background-color:white;\"><tr valign=\"middle\" align=\"center\" style=\"background-color:#FFFFFF;\"><td id=\""+xF3w8+"\" style=\"width:21px;height:21px;cursor:pointer;\" title=\"\u9884\u89c8\"><div style=\"OVERFLOW: hidden;position:absolute;width:11px;height:11px;left:7px;top:8px;\"><img src=\""+sX+"\" style=\"position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);left:-36px;top:-141px;\"></div></td><td id=\""+G5N55+"\" style=\"width:21px;height:21px;cursor:pointer;\" title=\"\u4fdd\u5b58\"><div style=\"position:absolute;overflow:hidden;width:11px;height:11px;left:31px;top:8px;\"><img src=\""+sX+"\" style=\"position:absolute;left:-49px;top:-141px;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);\"/></div></td><td id=\""+lV3np+"\" style=\"width:21px;height:21px;cursor:pointer;\" title=\"\u53d6\u6d88\"><div style=\"OVERFLOW: hidden;position:absolute;width:11px;height:11px;left:54px;top:8px;\"><img src=\""+sX+"\" style=\"position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-25px;top:-141px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);\"></div></td></tr></table>";else K="<table cellspacing=\"1\" style=\"border:1px solid #06c;background-color:white;\"><tr valign=\"middle\" align=\"center\" style=\"background-color:#FFFFFF;\"><td id=\""+xF3w8+"\" style=\"width:21px;height:21px;cursor:pointer;\" title=\"\u9884\u89c8\"><div style=\"OVERFLOW: hidden;position:absolute;width:11px;height:11px;left:7px;top:8px;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-36px;top:-141px;\"></div></td><td id=\""+G5N55+"\" style=\"width:21px;height:21px;cursor:pointer;\" title=\"\u4fdd\u5b58\"><div style=\"position:absolute;overflow:hidden;width:11px;height:11px;left:31px;top:8px;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-49px;top:-141px;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;\"/></div></td><td id=\""+lV3np+"\" style=\"width:21px;height:21px;cursor:pointer;\" title=\"\u53d6\u6d88\"><div style=\"OVERFLOW: hidden;position:absolute;width:11px;height:11px;left:54px;top:8px;\"><img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-25px;top:-141px;\"></div></td></tr></table>";var X=new fD(kF9,0,0,0,0,false,24,K,_.vb),F="mapbar_snapshot_iframe",l=null,L="mapbar_snapshot_frm",j=null,p=0,D={x:0,y:0,width:0,height:0,rect:{min:{x:0,y:0},max:{x:0,y:0}}};this.E6vg=false;this.K9J=false;this.show=function(){if(m.length==0){m.push(MEvent.bindDom(document.getElementById(kF9),"mousedown",this,N));m.push(MEvent.bindDom(document.getElementById(xF3w8),"click",this,H));m.push(MEvent.bindDom(document.getElementById(G5N55),"click",this,Y));m.push(MEvent.bindDom(document.getElementById(lV3np),"click",this,function(){_.setMode("pan");document.getElementById("mSnap").className=""}))}b();this.hide();R13o1.show();e.show()};this.hide=function(){var B=E49(this.hide);if(typeof B!="undefined"&&B)if(B.type=="click"){var C=typeof B.target!="undefined"?B.target:B.srcElement,A=C.parentNode.id+C.id;if(A==lV3np)MEvent.trigger(_,"snapshot_done","cancel");else if(A==xF3w8)MEvent.trigger(_,"snapshot_done","preview");else if(A==G5N55)MEvent.trigger(_,"snapshot_done","download");if(typeof snapshotClick!="undefined"){snapshotClick=1;document.getElementById("mSnap").className=""}}$();d();g()};var $=function(){R13o1.hide();R13o1.resize(0,0)},d=function(){e.hide();e.moveTo(-1000,-1000)},g=function(){X.hide();X.resize(0,0)};this.moveTo=function(A,_){R13o1.moveTo(A,_);var $=_-e.div.firstChild.clientHeight-2;e.moveTo(A,$);if(_-e.div.offsetHeight<0)e.moveTo(A+3,$+e.div.offsetHeight+5)};this.resize=function($,_){$=$<0?0:$;_=_<0?0:_;R13o1.resize($,_);this.TK0_8($+" x "+_)};this.TK0_8=function($){document.getElementById(k).innerHTML=$};this.isVisible=function(){return document.getElementById(i).style.visibility!="hidden"?true:false};this.evL=function(){this.E6vg=true;n();var A=D.x+D.width-J-3,$=D.y+D.height+2;if($+Z>_.height)$-=Z+6;X.resize(J,Z);X.moveTo(A,$);X.show();_.d7q("pointer",document.getElementById(xF3w8));_.d7q("pointer",document.getElementById(G5N55));_.d7q("pointer",document.getElementById(lV3np));MEvent.trigger(_,"snapshot_select",{x:D.x,y:D.y,width:D.width,height:D.height})};this.snapshot=function($){if(typeof $!="object")$={};if(typeof $.mode!="string"||($.mode!="fullscreen"&&$.mode!="custom"))$.mode=SNAPSHOT_OPTIONS.mode;if(typeof $.x=="undefined"||isNaN($.x))$.x=0;if(typeof $.y=="undefined"||isNaN($.y))$.y=0;if(typeof $.width=="undefined"||isNaN($.width))$.width=_.width;if(typeof $.height=="undefined"||isNaN($.height))$.height=_.height;if(typeof $.zoom=="undefined"||isNaN($.zoom))$.zoom=_.getZoomLevel();if(typeof $.format!="string")$.format=SNAPSHOT_OPTIONS.format;if(typeof $.depth=="undefined"||isNaN($.depth))$.depth=SNAPSHOT_OPTIONS.depth;if($.processMode!="string"&&($.processMode!="event"&&$.processMode!="download"))$.processMode=SNAPSHOT_OPTIONS.processMode;n.apply(this,[$]);r.apply(this,[$])};var r=function(R){var A=M();if(A.length<=0)return;var C={};C.T9V76=[];C.point="";C.p5C="";C.area="";C.min="0,0";C.max=D.width+","+D.height;C.width=D.width;C.height=D.height;C.zoom=typeof R.zoom=="undefined"?_.getZoomLevel():R.zoom;C.format=typeof R.format=="undefined"?SNAPSHOT_OPTIONS.format:R.format;C.depth=typeof R.depth=="undefined"?SNAPSHOT_OPTIONS.depth:R.depth;C.processMode=typeof R.processMode=="undefined"?SNAPSHOT_OPTIONS.processMode:R.processMode;C.d6PN7="";C.P6A05="";var F=new RegExp(SNAPSHOT_MAPIMG_URI_PREFIX,"ig");for(var E=0;E<A.length;E++){var S=parseInt(A[E].style.left)-D.x,P=parseInt(A[E].style.top)-D.y,K=(C.zoom>=12&&C.zoom<=13)?","+A[E].id:"";C.T9V76.push(A[E].src.replace(F,"").replace(".png","")+","+S+","+P+K)}C.T9V76=C.T9V76.join("|");var H=h();if(H.length>0){C.point=[];F=new RegExp(SNAPSHOT_MARKER_URI_PREFIX,"ig");for(E=0;E<H.length;E++){var Q=H[E],S=Q.x-D.x,P=Q.y-D.y;C.point.push(S+"@"+P+","+Q.text+","+Q.V5aK0+","+Q.O8RW2+","+Q.iStr+","+Q.iType+","+Q.src.replace(F,""))}C.point=C.point.join("|")}var G=W();if(G.length>0){C.p5C=[];C.area=[];for(E=0;E<G.length;E++){var B=[],O=G[E].pts;for(var $=0;$<O.length;$++)B.push((O[$].mapX-D.x)+"@"+(O[$].mapY-D.y));var N=G[E].brush;if(G[E].brush.fill)C.area.push(B.join(",")+";"+q(N.bgcolor)+";"+(parseFloat(N.bgtransparency)/100)+";"+q(N.color)+";"+N.stroke+";"+N.style+";"+(parseFloat(N.transparency)/100));else C.p5C.push(B.join(",")+";"+q(N.color)+";"+N.stroke+";"+N.style+";"+(parseFloat(N.transparency)/100))}if(C.p5C.length>0)C.p5C=C.p5C.join("|");else C.p5C="";if(C.area.length>0)C.area=C.area.join("|");else C.area=""}var L=f();if(L.length>0){C.d6PN7=[];for(E=0;E<L.length;E++){var I=L[E],N=I.d6PN7.brush;C.d6PN7.push((I.qx-D.x)+"@"+(I.qz-D.y)+","+I.L34+"px,"+I.OO3+"px,"+q(N.bgcolor)+","+(parseFloat(N.bgtransparency)/100)+","+q(N.color)+","+N.stroke+","+N.style+","+(parseFloat(N.transparency)/100))}if(C.d6PN7.length>0)C.d6PN7=C.d6PN7.join("|");else C.d6PN7=""}var J=c();if(J.length>0){C.P6A05=[];for(E=0;E<J.length;E++){I=J[E],N=I.P6A05.brush;C.P6A05.push((I.qx-D.x)+"@"+(I.qz-D.y)+","+(I.y144d-D.x)+"@"+(I.SE6KN-D.y)+","+I.n_E+","+I.y69+","+q(N.bgcolor)+","+(parseFloat(N.bgtransparency)/100)+","+q(N.color)+","+N.stroke+","+N.style+","+(parseFloat(N.transparency)/100))}if(C.P6A05.length>0)C.P6A05=C.P6A05.join("|");else C.P6A05=""}o.apply(this,[C])},T=function(){if(p>=3)return;var $=j["taskId"].value;if(typeof _snapshot_result=="object"&&_snapshot_result)if(_snapshot_result.url!="inexistence"){switch(_snapshot_result.processMode){case"event":case"preview":window.open(_snapshot_result.url,"newwindow");break;default:break}return}window.setTimeout(function(_){return function(){p++;new i96(C+"taskId="+$,function(){T.apply(_)}).V96Xw()}}.apply(this,[this]),1000)},q=function($){if($.substring(0,3).toLowerCase()=="rgb")return $.replace(new RegExp(",","g"),"@");return $},H=function(){this.hide();var $={};$.processMode="preview";r.apply(this,[$]);_.setMode("pan")},Y=function(){this.hide();var $={};$.processMode="download";r.apply(this,[$]);_.setMode("pan")},N=function($){_66($)},M=function(){var A=[],E=_.sE.div.childNodes;for(var F=0;F<E.length;F++){var C=E[F],$=parseInt(C.style.left),B=parseInt(C.style.top);if(_isRectint(D.rect,{min:{x:$,y:B},max:{x:$+_.imgWidth,y:B+_.imgHeight}}))A.push(C)}return A},h=function(){var L=[],F=_.getMarkers();if(F.length>0)for(var H=0;H<F.length;H++){if(!F[H].icon)continue;if(!F[H].icon.isVisible())continue;var I=F[H],$=I.icon,Q=0,O=0,K=0,B=0,C=0,M=0;C=Q=parseInt($.div.style.left);M=O=parseInt($.div.style.top);K=$.div.clientWidth;B=$.div.clientHeight;var J="",E="",G="";if(F[H].label){var P=I.label;J=P.getText();E=parseInt(P.div.style.left);G=parseInt(P.div.style.top);var N=P.div.clientWidth,A=P.div.clientHeight;if(E<Q)Q=E;if(G<O)O=G;if((E+N)>(Q+K))K=E+N;if((G+A)>(O+B))B=G+A}if(_isRectint(D.rect,{min:{x:Q,y:O},max:{x:Q+K,y:O+B}}))L.push({x:C,y:M,src:$.getImgUrl(),text:J,V5aK0:F[H].label?F[H].label.xoffset:0,O8RW2:F[H].label?F[H].label.yoffset:0,sW:F[H],iType:$.iType,iStr:($.iStr==undefined)?"":$.iStr})}return L},W=function(){var K=[],G=_.getPolylines();if(G.length>0)for(var F=0;F<G.length;F++){var N=G[F].pts,$=false;for(var A=0;A<N.length;A++){var C=N[A].mapX,E=N[A].mapY;if(_isInsideRect({x:C,y:E},D.rect)){$=true;break}if(A>0){var B=N[A-1].mapX,M=N[A-1].mapY,H={start:{x:D.rect.max.x,y:D.rect.max.y},end:{x:D.rect.max.x,y:D.rect.min.y}},O={start:{x:B,y:M},end:{x:C,y:E}};if(_IsIntersect(H,O)){$=true;break}H={start:{x:D.rect.max.x,y:D.rect.min.y},end:{x:D.rect.min.x,y:D.rect.min.y}};if(_IsIntersect(H,O)){$=true;break}H={start:{x:D.rect.min.x,y:D.rect.min.y},end:{x:D.rect.min.x,y:D.rect.max.y}};if(_IsIntersect(H,O)){$=true;break}H={start:{x:D.rect.min.x,y:D.rect.max.y},end:{x:D.rect.max.x,y:D.rect.max.y}};if(_IsIntersect(H,O)){$=true;break}}}if(!$&&G[F].brush.fill){var J=G[F].pts,I=[];for(A=0;A<J.length;A++)I.push({x:J[A].mapX,y:J[A].mapY});var L=[{x:D.rect.max.x,y:D.rect.max.y},{x:D.rect.max.x,y:D.rect.min.y},{x:D.rect.min.x,y:D.rect.min.y},{x:D.rect.min.x,y:D.rect.max.y}];for(A=0;A<I.length;A++)if(_isInsidePolygon(I[A],L))$=true;if(!$)for(A=0;A<L.length;A++)if(_isInsidePolygon(L[A],I))$=true}if($)K.push(G[F])}return K},f=function(){var $=[],C=_.getEllipse();if(C.length>0)for(var E=0;E<C.length;E++){var A=C[E],B={min:{x:A.data.qx,y:A.data.qz},max:{x:A.data.y144d,y:A.data.SE6KN}};if(_isRectint(D.rect,B))$.push({qx:B.min.x,qz:B.min.y,L34:A.data.L34,OO3:A.data.OO3,d6PN7:A})}return $},c=function(){var $=[],B=_.getRoundRect();if(B.length>0)for(var E=0;E<B.length;E++){var A=B[E],C={min:{x:A.Mrq52.mapX,y:A.Mrq52.mapY},max:{x:A.APVp0.mapX,y:A.APVp0.mapY}};if(_isRectint(D.rect,C))$.push({qx:C.min.x,qz:C.min.y,y144d:C.max.x,SE6KN:C.max.y,n_E:parseInt(A.width*A.arcsize)*2,y69:parseInt(A.height*A.arcsize)*2,P6A05:A})}return $},G=function($){var _=null;if(px)_=document.createElement("<input name='"+$+"'>");else{_=document.createElement("input");_.name=$}_.type="hidden";return _},o=function(C){try{p=0;if(typeof _snapshot_result=="object"&&_snapshot_result)_snapshot_result=null;if(!l){if(px)l=document.createElement("<IFRAME name='"+F+"'>");else{l=document.createElement("IFRAME");l.name=F}l.id=F;l.frameBorder="0";l.style.width="0px";l.style.height="0px";l.style.zIndex=-1;_.vb.appendChild(l);var $=function($){return function(){B.apply($)}};if(px)l.attachEvent("onreadystatechange",$(this));else l.addEventListener("load",$(this),false);j=document.createElement("FORM");j.id=L;j.method="POST";j.target=F;j.action=U;_.vb.appendChild(j);j.appendChild(G("mapimgs"));j.appendChild(G("max"));j.appendChild(G("min"));j.appendChild(G("size"));j.appendChild(G("markers"));j.appendChild(G("polylines"));j.appendChild(G("polygons"));j.appendChild(G("format"));j.appendChild(G("depth"));j.appendChild(G("processMode"));j.appendChild(G("taskId"));j.appendChild(G("codeform"));j.appendChild(G("zoom"));j.appendChild(G("ellipse"));j.appendChild(G("roundrect"))}j["mapimgs"].value=C.T9V76;j["max"].value=C.max;j["min"].value=C.min;j["size"].value=C.width+"x"+C.height;j["markers"].value=C.point;j["polylines"].value=C.p5C;j["polygons"].value=C.area;j["format"].value=C.format;j["depth"].value=C.depth;j["processMode"].value=C.processMode;j["taskId"].value=new Date().getTime();j["codeform"].value="1";j["zoom"].value=C.zoom;j["ellipse"].value=C.d6PN7;j["roundrect"].value=C.P6A05;if(!px)j.target=F;j.submit()}catch(A){l=null;j=null}},B=function(){if(px&&l.readyState!="complete")return;T.apply(this)},n=function(options){if(typeof options=="undefined")with(D){x=parseInt(R13o1.div.style.left);y=parseInt(R13o1.div.style.top);width=R13o1.div.clientWidth;height=R13o1.div.clientHeight}else{if(options.mode=="fullscreen"){options.width=_.width;options.height=_.height}with(D){x=options.x;y=options.y;width=options.width;height=options.height}}with(D){rect={min:{x:x,y:y},max:{x:x+width,y:y+height}}}},b=function(){with(D){x=0;y=0;width=0;height=0;rect=null}};this.finalize=function(){for(var $=0;$<m.length;$++){MEvent.removeBuiltInListener(m[$]);m[$]=null}m=null;_.vb.removeChild(e.div);e=null;_.vb.removeChild(R13o1.div);R13o1=null;_.vb.removeChild(X.div);X=null;_.vb.removeChild(l);l=null;_.vb.removeChild(j);j=null;_=null};this.toString=function(){return"com.mapbar.maplet.MSnapshotBox"}},MIconShadow=function(C,_,$,B,A){this.$b1=0;this.div=document.createElement("div");this.div.unselectable="on";this.div.style.zIndex=this.$b1;this.div.style.position="absolute";_=(typeof _=="undefined")?16:_;$=(typeof $=="undefined")?16:$;this.img=(D2a)?document.createElement("v:Image"):new Image();this.img.unselectable="on";this.img.style.MozUserSelect="none";this.img.style.zIndex=this.$b1;this.img.style.position="absolute";this.img.style.top="0px";this.img.style.left="0px";this.img.setAttribute(cV7,"true");this.img.src=(typeof C=="undefined")?strImgsvrUrl+"images/Shadow.png":C;this.div.appendChild(this.img);this.width=(typeof _=="undefined")?parseInt(this.img.width):parseInt(_);this.height=(typeof $=="undefined")?parseInt(this.img.height):parseInt($);this.img.style.width=this.width+"px";this.img.style.height=this.height+"px";this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.anchorX=this.width/2;this.anchorY=this.height/2;this.anchorX=parseInt((typeof B=="undefined")?this.anchorX-16:this.anchorX+B);this.anchorY=parseInt((typeof A=="undefined")?this.anchorY:this.anchorY+A);this.left=0;this.top=0;this.wz=function($){this.div.id="mk_shadow_c_"+$;this.img.id="mk_shadow_"+$};this.initialize=function($){this.sW=$;if(px)this.img.ondragstart=function(){return false};this.img.onmousedown=function(){return false}};this.update=function(_,B,C){if(this.sW.autoHide&&!this.sW.icon.isVisible()){if(this.div.parentNode){this.div.parentNode.removeChild(this.div);this.fu=false}}else{var A=parseInt(B)-parseInt(this.anchorX),$=parseInt(C)-parseInt(this.anchorY);if(this.div.parentNode!=_.lA.div&&!this.sW.ls){_.lA.appendChild(this.div);this.div.style.width=this.width+"px";this.div.style.height=this.height+"px";this.img.style.width=this.width+"px";this.img.style.height=this.height+"px";this.fu=true}this.div.style.top=$+"px";this.div.style.left=A+"px";this.top=$;this.left=A}};this.isVisible=function(){return(this.fu)};this.zq=function(){return(this.img.src)+","+this.width+","+this.height};this.hilite=function(){if(this.div){if(this.div.style.zIndex<pF)pF++;this.setZIndex(pF)}};this.finalize=function(){this.remove(true)};this.remove=function($){if(typeof $!="boolean")$=false;if(this.img){if(px)this.img.ondragstart=null;this.img.onmousedown=null}if(this.div)if(!$){if(this.div.parentNode)this.div.parentNode.removeChild(this.div)}else{_removeNode(this.div);this.div=null}if($)this.sW=null};this.setZIndex=function($){if(this.div&&this.div.parentNode&&$!=this.div.style.zIndex){this.$b1=this.div.style.zIndex;this.div.style.zIndex=$}};this.kP$D=function(){if(!this.div)return;if(this.$b1!=this.div.style.zIndex)this.setZIndex(this.$b1)};this.toString=function(){return"com.mapbar.maplet.MIconShadow"}};window["MVersion"]={"version":"31.2","build":"0908141554"};var Maplet=function(_,B,G,E,D,I,J,F,C){if(px){try{document.execCommand("BackgroundImageCache",false,true)}catch(H){}}this.downX=0;this.downY=0;this.tR=0;this.tS=0;this.fS=0;this.fT=0;this.offsetX=0;this.offsetY=0;ac=new Date();this.imgWidth=300;this.imgHeight=300;this.clickToCenter=true;this.a5Y={};this.customInfoWindow=false;this.N31=false;this.edj5=false;this.Y$_8=null;this.ClPI=null;this.c970q=null;this.GK04=null;this.c35=[];cWK3U=[];this._61="";this.asli=-1;this.$iX=-1;this.wUW="";this.v13E={f2:null,_06:[],yN:null,xd:0.12,fJ8:4,H1n3:1,interval:100,qD9:{width:85,height:68},_8bh:{width:35,height:27}};this.A4b={fC:null,width:16,height:16,offsetY:5,tU70:3,AqW:4,uX:null};this.tXT0b=-1;this.a2q=false;this.T9087=true;this.K33=false;this.w02=bpp[0];this.traffic=null;this.t8Q_=true;this.DOw0s=5;this.markerDragAnimation=true;this.qS={};this.layerData={};this.N949c={width:41,height:20};this._1_={width:0,height:0};this.$BQ=null;this.allowDrawingDragMap=true;this.Y7d32=true;this.bV8=false;this.sS=ts.ty;this.id="mapbar";this.yt=((new Date().getTime())%86400000).toString(36)+(parseInt(Math.random()*1000)).toString(36);if(typeof strRemoteIP!="undefined"&&strRemoteIP)this.yt+="*"+strRemoteIP;document["mapbar-maplet"]=this;this.left=(typeof I=="undefined")?0:parseInt(I);this.top=(typeof J=="undefined")?0:parseInt(J);this.width=(typeof E=="undefined")?600.00001:parseInt(E);this.height=(typeof D=="undefined")?400.00001:parseInt(D);if(isNaN(parseFloat(_))||(typeof _=="string"&&_.length>3&&_.substring(0,3).toLowerCase()=="inf")){this.id=_;this.vb=(typeof _=="object")?_:document.getElementById(_);if(B!=null&&B!="undefined"){var $=cq.vp(B);this.gx=Math.min(sy[1],Math.max(sy[0],parseFloat($[1])));this.gA=Math.min(sz[1],Math.max(sz[0],parseFloat($[0])%360));$=null}if(typeof this.vb!="undefined"&&this.vb!=null){if(!this.vb.style.zIndex)this.vb.style.zIndex=0;this.left=0;this.top=0;if(this.vb.style.left)this.left=parseInt(this.vb.style.left);if(this.vb.style.top)this.top=parseInt(this.vb.style.top);if(this.vb.style.width)this.width=parseInt(this.vb.style.width);if(this.vb.style.height)this.height=parseInt(this.vb.style.height)}}else{this.gA=B;this.gx=_}this.strImgUrl=strImgsvrUrl;this.AG=(typeof G=="undefined")?0:parseInt(G);this.nT=0;this.py=0;this.rotation=0;this.gk=Math.cos(this.rotation/180*Math.PI);this.wT=Math.sin(this.rotation/180*Math.PI);this.yv=(F=="undefined")?"":F;this.pU=new Array();this.qE=new Array();this.yl=(typeof C=="undefined"||C==null)?ds:C;this.u2=null;this.u3="";this.xK="png";this.xw=this.yl;this.yh="";this.x4=this.yl;this.x3=null;this.uu=null;this.xX=this.yl;this.pJ=null;this.biTb=[["",1],[2,3]];this.bp=true;this.ff=false;this.fe=true;this.sf=null;this.fj=(typeof bDefaultControlOn=="undefined")?true:bDefaultControlOn;this.fa=false;this.z4=Math.ceil((this.width)/(this.imgWidth)/2);this.z5=Math.ceil((this.height)/(this.imgHeight)/2);this.aO=new Array();this.aN=new Array();this.yG=new Array();this.fp=null;this.pU=new Array();this.aE=new Array();this.aF=null;this.aG=null;this.aH=null;this.zy=null;this.tG=null;this.brush=new MBrush("#FF0000",2);this.sv=0;this.fo=false;this.gJ=null;this.gI=new Image();this.c8=new MBound(0,0,0,0);this.cH=false;this.c0=false;this.w3=new Array();this.cI=true;this.cn=false;this.gc=[];this.u5=[];this.vA=this.sS;this.fs=false;this.c9=false;this.G2p=null;this.tD=0;this.gM=1;this.xc=null;this.mapContextMenu=null;this.overview=new rh_(this);this.ovw=this.overview;this.wK=new Array();if(typeof this.vb=="undefined"||this.vb==null){document.writeln("<div unselectable=\"on\" id=\""+this.id+"\" style=\"position:absolute;overflow:hidden; width:"+this.width+"px; height:"+this.height+"px; left:"+this.left+"px; top:"+this.top+"px;\"></div>");this.vb=q1(this.id)}else this.vb.style.overflow="hidden";this.map=this.vb;if(this.map){this.map.setAttribute("align","left");if(this.map.style.position!="absolute")this.map.style.position="relative";var A="http://www.mapbar.com/ApiCopyrightLink.html?referrer="+window.location.host;this.rH8=document.createElement("div");this.rH8.style.width=this.N949c.width+"px";this.rH8.style.height=this.N949c.height+"px";this.rH8.style.overflow="hidden";this.rH8.innerHTML="<img src='"+CTLIMG_RESOURCE[0].url+"' style='position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-25px;top:-158px' />";this.rH8.id="ImgCopyright";this.rH8.style.position="absolute";this.rH8.style.zIndex=3;this.rH8.style.top=(this.height-22)+"px";this.rH8.setAttribute("whohide","");this.rH8.style.cursor="pointer";this.rH8.onclick=function(){window.open(A)};this.E088=document.createElement("a");this.E088.setAttribute("target","_blank");this.E088.setAttribute("href","http://www.navinfo.com.cn");this.E088.innerHTML="&copy;&nbsp;NavInfo";this.E088.style.position="absolute";this.E088.style.zIndex=3;this.E088.style.fontSize="12px";this.E088.style.color="blue";this.E088.style.fontFamily="arial";this.E088.style.textDecoration="none";this.E088.style.top=(this.height-25)+"px";this.E088.style.left=(this.width-70)+"px";this.E088.style.background="none";this.P01=0;this.map.appendChild(this.rH8);this.map.appendChild(this.E088);this._1_.width=this.E088.offsetWidth;this._1_.height=this.E088.offsetHeight}vZ(this);this._G9f=false;this.DllQ7=false;this.uw=0;this.t9=0;this.xe=10;if(bp)this.setOverlay("base");this.fM=null;this.AY=0.2;this.AS=-1;this.AT=0;this.AZ=null;this.vg=20;this.vh=null;this.Ah=null;this.vc=0;this.vd=0;this.vi=0;this.tB={"zoomin":1,"zoomout":2,"pan":3,"erase":13,"edit":23,"lookup":5,"bookmark":6,"drawline":9,"drawarea":10,"measure":11,"measarea":15,"snapshot":24}};Maplet.MICON_IMGSRC_FLAG="imgsrc";Maplet.MLABEL_TEXT_FLAG="lbltext";Maplet.LEFT_TOP=1;Maplet.LEFT_BOTTOM=2;Maplet.RIGHT_TOP=3;Maplet.RIGHT_BOTTOM=4;Maplet.prototype={onresize:function(){this.K3KA();this.$esX2()},K3KA:function(){var _={w:0,h:this.N949c.height};if(this.rH8.style.display!="none")_.w=_.w+this.N949c.width+5;if(this.t8Q_)_.w=_.w+this._1_.width+5;var k5wnI=this.width;if(this.controlCanvas&&this.controlCanvas.options.location.type==Maplet.RIGHT_BOTTOM)k5wnI=k5wnI-this.controlCanvas.getRect().width;if(this.overview.location.type==Maplet.RIGHT_BOTTOM){var $=this.overview.getRect();if(k5wnI>=$.min.x&&$.min.x!=0){k5wnI=$.min.x;if((this.width-$.max.x>=_.w)||(this.height-$.max.y>=_.h))k5wnI=this.width}}var QbLl5=this.t8Q_?this._1_.width:0,co92=this.t8Q_?cm5UC(this.E088.style.left):k5wnI;if(this.t8Q_)with(this.E088.style){left=k5wnI-QbLl5-5+"px";top=(this.height-23)+"px";co92=this.t8Q_?cm5UC(left):k5wnI}with(this.rH8){if(style.display!="none"){style.left=co92-offsetWidth-5+"px";style.top=(this.height-26)+"px"}}},nI:function(){if(!this.ff)return null;if(this.AP==null)this.AP=new AO(this,-1,this.width-16,0,16,this.height,this.ff,this.vb);return this.AP},wP:function(D){if(measureClick==1){maplet.setMode("pan");measureClick=0;return false}else if(snapshotClick==2){MEvent.trigger(maplet,"snapshot_done","cancel");maplet.setMode("pan");snapshotClick=1;document.getElementById("mSnap").className="";maplet.setCursorStyle("default",pj_lf+"images/openhand.cur");return false}MEvent.trigger(this,"contextmenu");var B=document["mapbar-maplet"];MEvent.trigger(B,"contextmenu");var _=(px)?event.srcElement.id:D.target.id,A=(px)?event.srcElement:D.target,C=parseInt((px)?event.clientX:D.clientX)-B.offsetX,$=parseInt((px)?event.clientY:D.clientY)-B.offsetY;B.l6=_;B.f8=_;B.fS=C-B.left;B.fT=$-B.top;B.fR=B.zp(B.fS,B.fT);B.fO=B.zo(B.fS,B.fT);cq.lf=B.fO;cq.li=B.fR;B.fP=cq.zn();if(B.xc)B.xc.hide();if(typeof A.contextmenu!="undefined"&&A.contextmenu!=null){B.xc=A.contextmenu;A.contextmenu.show(B.fS,B.fT)}else if(B.mapContextMenu!=null){B.xc=B.mapContextMenu;B.mapContextMenu.show(B.fS,B.fT)}return false},getContextMenu:function(){return this.mapContextMenu},setContextMenu:function($){if(this.mapContextMenu!=$)this.removeContextMenu();this.mapContextMenu=$;if(this.mapContextMenu!=null)this.mapContextMenu.initialize(this)},setStandardContextMenu:function($){this.xc=$},removeContextMenu:function(){if(this.mapContextMenu!=null){if(this.xc==this.mapContextMenu)this.xc=null;this.sF.div.removeChild(this.mapContextMenu.tY);this.mapContextMenu.maplet=null;this.mapContextMenu=null}},showMap:function(){if(MapBackgroundColor)this.vb.style.backgroundColor=MapBackgroundColor;this.vb.oncontextmenu=this.wP;this.sG=new fD("MapContainerBg",0,0,this.width,this.height,true,0,"",this.vb);this.sF=new fD("MapContainer",0,0,this.width,this.height,true,2,"",this.vb);this.zs=new fD("ToolTip",0,0,0,0,false,24,"",this.sF);this.sE=new fD("LayerMap",0,0,this.width,this.height,true,2,"",this.sF);this.vx=new fD("LayerPoiMap",0,0,this.width,this.height,true,3,"",this.sF);this.nI();if(this.fj){var C=new MStandardControl();this.addControl(C);this.controlCanvas=C.nR}this.wq=new fD("LayerScale",1,this.height-24,70,24,this.fe,3,"",this.vb);var _="<table border=\"0\" width=\"100%\" height=\"100%\" style=\"border:2px solid #0E347F;\"><tr ><td align=\"center\" valign=\"middle\" style=\"filter:alpha(opacity=30);opacity:0.3;background-color:#FFFFFF;\"></td></tr></table>";this.sD=new fD("LayerBorder",1,1,1,1,false,6,_,this.vb);this.sD.style.border="1px solid #FFFFFF";this.snapshotBox=new MSnapshotBox(this);_="<div style=\"position:absolute;border-width:2px 0px 0px 2px;border-style:solid;border-color:red;width:4px;height:4px;left:0px;top:0px;line-height:1px;\"></div><div style=\"position:absolute;border-width:2px 2px 0px 0px;border-style:solid;border-color:red;width:4px;height:4px;left:28px;top:0px;line-height:1px;\"></div><div style=\"position:absolute;border-width:0px 0px 2px 2px;border-style:solid;border-color:red;width:4px;height:4px;left:0px;top:20px;line-height:1px;\"></div><div style=\"position:absolute;border-width:0px 2px 2px 0px;border-style:solid;border-color:red;width:4px;height:4px;left:28px;top:20px;line-height:1px;\"></div>";this.v13E.f2=new fD("_mapbar_mw_indicator",0,0,this.v13E._8bh.width,this.v13E._8bh.height,true,100,_,this.vb).div;this.v13E.f2.style.display="none";this.v13E._06=this.v13E.f2.getElementsByTagName("div");var B=(navigator.appVersion.match(new RegExp("6.","i"))=="6.")?0:2;this.sO=new fD("LayerMask",0,0,this.width-B,this.height-B,true,2,"",this.sF);this.sO.style.backgroundImage="url("+strImgsvrUrl+"images/mask.gif)";this.sO.div.setAttribute(cV7,"true");this.lA=new fD("LayerDrawMap",0,0,this.width,this.height,true,4,"",this.sF);if(!px)this.lA.style.MozUserSelect="none";this.lA.div.setAttribute(cV7,"true");this.A4b.fC=new fD("_mapbar_drag_cross",0,0,this.A4b.width,this.A4b.height,true,2,"",this.vb);with(this.A4b.fC.div){style.width=this.A4b.width+"px";style.height=this.A4b.height+"px";style.display="none";style.overflow="hidden"}if(D2a)this.A4b.fC.div.innerHTML="<v:image  style=\"position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-49px;top:-108px;\" src='"+CTLIMG_RESOURCE[0].url+"' />";else this.A4b.fC.div.innerHTML="<img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-49px;top:-108px;\">";this.overview.qa(this.vb);var A=15,$=0;this.sg=(this.width>360)?150:73;if((this.overview.nF()+this.overview.nz())>(this.height-23))$+=Math.max(0,this.overview.nH()-(this.sg-70));MEvent.bindDom(this.map,"mousemove",this,this.a3);MEvent.bindDom(this.map,"mousedown",this,this.a2);MEvent.bindDom(this.map,"mouseup",this,this.a6);MEvent.bindDom(this.map,"click",this,this.aZ);MEvent.bindDom(this.map,"dblclick",this,this.a1);MEvent.bindDom(this.map,"mouseout",this,this.a4);MEvent.bindDom(this.map,"drag",this,this.a3);MEvent.bindDom(this.map,"dragstart",this,this.a3);MEvent.bindDom(this.map,"dragend",this,this.a3);MEvent.bindDom(this.map,"mouseover",this,this.a5);if(MOUSEWHEEL){MEvent.bindDom(this.map,"mousewheel",this,this.a7);MEvent.bindDom(this.map,"DOMMouseScroll",this,this.a7)}if(kp)MEvent.bindDom(document,"keydown",this,this.onkeydown);this.qd();this.setZoomLevel(this.AG);this.setMode(this.sS);if(this.zP==null)this.zP=setInterval("document['mapbar-maplet'].zL()",100)},qd:function(){this.sD.hide();this.sD.resize(1,1);this.sD.moveTo(-10,-10);if(document.all){this.sE.moveTo(0,0);this.sE.show();this.vx.moveTo(0,0);this.vx.show();this.lA.moveTo(0,0);this.lA.show();this.sO.moveTo(0,0);this.sO.show()}},setStyle:function(_,$){if(this.yl!=_){this.yl=_;if("aerial"==this.yl||this.yl.indexOf("aerial")>=0)this.xK="jpg";else this.xK="png";if(typeof $!="undefined")this.xK=$;if(typeof this.sF!="undefined"){for(var B in this.pU){try{if(this.pU[B]!=null&&typeof this.pU[B]=="object"){if(this.pU[B].parentNode!=null)this.pU[B].parentNode.removeChild(this.pU[B]);this.pU[B]=null}}catch(A){}}this.refresh();MEvent.trigger(this,"style",_)}}},setRotation:function($){if(px&&rs){this.rotation=$;this.gk=Math.cos(this.rotation/180*Math.PI);this.wT=Math.sin(this.rotation/180*Math.PI)}},setHeadMode:function($){this.nT=$},setOverlay:function($,_){if(typeof _=="string")this.u3=_;if(this.u2!=$)this.u2=$;if(typeof this.sF!="undefined")this.refresh()},zN:function(){var _=sj[this.AG]*this.width/this.imgWidth;this.c8.tl=(this.gA-_/2);this.c8.s6=(this.gA+_/2);var $=qP[this.AG]*this.height/this.imgHeight;this.c8.tj=(this.gx-$/2);this.c8.s4=(this.gx+$/2)},fI:function(B){if(this.w3!=null&&this.w3.length>0){sY=this.c8.s0;te=this.c8.tp;var A=sj[B]*this.width/this.imgWidth,_=(this.gA-A/2),D=(this.gA+A/2),$=qP[B]*this.height/this.imgHeight,C=(this.gx-$/2),F=(this.gx+$/2);for(var E=0;E<this.w3.length;E++)if(this.w3[E].qn(C,_)&&this.w3[E].qn(F,D)){sY=this.w3[E].s0;te=this.w3[E].tp;break}}},setBound:function($){this.c8=$},refresh:function(){this.u0();this.u8()},fL:function(){if(this.fM!=null){clearTimeout(this.fM);this.fM=null}if(this.c0||this.fs||f1.fx.length>0){this.fM=getTimeout(this,this.fL,100);return}this.no()},no:function(){var $=0;for(var A in this.pU){try{if(this.pU[A]!=null&&typeof this.pU[A]=="object")if(this.pU[A].c2==true);else{if(this.pU[A].parentNode!=null)_removeNode(this.pU[A]);this.pU[A].onerror=null;this.pU[A].onload=null;this.pU[A]=null;delete this.pU[A];$++}}catch(_){}}},zL:function(){if(this.a2q||this.fs||this.c0||(typeof this.Ai!="undefined"&&this.Ai!=0))return;var _=parseInt(this.sF.style.left),$=parseInt(this.sF.style.top);if((_+this.tf1)>=0||(_+this.sZ-this.width)<=0||($+this.tg)>=0||($+this.s1-this.height)<=0){this.fs=true;this.zA()}},zA:function(){if(this.fs==false)return;var _=parseInt(this.sF.style.left),$=parseInt(this.sF.style.top);if((_+this.tf1)>=0||(_+this.sZ-this.width)<=0){if(this.c0==true)return;this.c0=true;try{var E=0,B=0;if((_+this.tf1)>=0){this.th--;this.tf1-=parseInt(this.imgWidth);E=this.th;B=this.tf1}if((_+this.sZ-this.width)<=0){this.s2++;B=this.sZ;this.sZ+=parseInt(this.imgWidth);E=this.s2}var G=E,I=nM[this.AG],H=parseInt(360/sj[this.AG]);E=(E)%H;if(E>=(H/2))E-=H;if(E<(-H/2))E+=H;var J=this.yl;for(var F=this.ti;F<=this.s3;F++){var D=F,A=(-(F-this.ti+1)*this.imgHeight)+this.s1;this.aA(B,A,E,D,G,F,J)}this.c0=false}catch(C){}}if(($+this.tg)>=0||($+this.s1-this.height)<=0){if(this.c0==true)return;this.c0=true;try{D=0,A=0;if(($+this.tg)>=0){this.s3++;this.tg-=parseInt(this.imgHeight);D=this.s3;A=this.tg}if(($+this.s1-this.height)<=0){this.ti--;A=this.s1;this.s1+=parseInt(this.imgHeight);D=this.ti}F=D,I=nM[this.AG],H=parseInt(360/sj[this.AG]),J=this.yl;for(G=this.th;G<=this.s2;G++){E=G;E=(E)%H;if(E>=(H/2))E-=H;if(E<(-H/2))E+=H;B=((G-this.th)*this.imgWidth)+this.tf1;this.aA(B,A,E,D,G,F,J)}this.c0=false}catch(C){}}this.fs=false},aA:function(B,_,H,G,K,I,N){var M=nM[this.AG],E=parseInt(Math.floor((H)/M)),J=parseInt(Math.floor((G)/M));if(E<0)E+=1;if(J<0)J+=1;var C=(H)-E*M,D=(G)-J*M,L=this.strImgUrl.replace("img","img"+this.vI_9(C,D))+"mapbank/"+N+"/"+this.sR,F=((this.AG).toString(16)+K.toString(16)+"l"+I.toString(16)).toLowerCase();if(this.AG>=14)L+=E+"/";L+=E+"_"+J+"/";L+=C+"_"+D+"."+this.xK;if(L&&L.indexOf("NaN")<0){if(this.pU[F]==null){if(rs==0||!px){this.pU[F]=new Image();this.pU[F].id=F;this.pU[F].name=F;this.pU[F].wyq=this.AG+"_"+E+"_"+J+"_"+C+"_"+D;this.pU[F].ntry="0";this.pU[F].unselectable="on";this.pU[F].style.position="absolute"}else{this.pU[F]=document.createElement("v:Image");this.pU[F].id=F;this.pU[F].name=F;this.pU[F].ntry="0";this.pU[F].unselectable="on";this.pU[F].style.position="absolute";this.pU[F].cE="f";this.pU[F].style.rotation=this.rotation;this.pU[F].style.width=this.imgWidth+"px";this.pU[F].style.height=this.imgHeight+"px"}f1.nk(this.pU[F],L,this.imgWidth,this.imgHeight);this.sE.div.appendChild(this.pU[F])}else if(px&&rs)this.pU[F].style.rotation=this.rotation;var A=(B+this.imgWidth/2-this.width/2)*this.gk-(_+this.imgHeight/2-this.height/2)*this.wT+this.width/2,$=(B+this.imgWidth/2-this.width/2)*this.wT+(_+this.imgHeight/2-this.height/2)*this.gk+this.height/2;this.pU[F].style.top=parseInt($-this.imgHeight/2)+"px";this.pU[F].style.left=parseInt(A-this.imgWidth/2)+"px";this.pU[F].c2=true;this.pU[F].setAttribute("origy",parseInt($-this.imgHeight/2));this.pU[F].setAttribute("origx",parseInt(A-this.imgWidth/2));F=null}L=null},h4g0:function(){this.no();this.sG.div.style.width=this.sE.div.style.width;this.sG.div.style.height=this.sE.div.style.height;this.sG.div.style.left=this.sE.div.style.left;this.sG.div.style.top=this.sE.div.style.top;this.sG.div.style.visibility="visible";for(var _ in this.pU){var $=this.pU[_];if($&&$.parentNode){$.parentNode.removeChild($);this.sG.div.appendChild($)}}this.H71();this.T9087=false},H71:function(){for(var _ in this.pU){var $=this.pU[_];if($&&$.parentNode)$.c2=false}},_09rf:function(){this.H71();this.no()},u8:function(A,_){if(this.fe){var D=D=(this.xg*100*60/parseInt(this.imgWidth))*this.gM,$="#000000",B=(en)?"km":tX("%u516E%uE338"),E=(en)?"mi":tX("%u54EA");D=(D<10)?(D).toPrecision(1):parseInt(D);if(this.wq.div.innerHTML==""){var C=["<div id=\"_scaleValue\" style=\"position:absolute;font-family: arial;FONT-SIZE: 12px; color:"+$+";FONT-WEIGHT: bold;left:4px;top:0px;\">&nbsp;"+D+" "+B+"</div>"];C.push("<div style=\"position:absolute;width:69px;height:11px;overflow:hidden;top:8px;\">");if(D2a)C.push("<img src=\""+sX+"\" style=\"position:absolute;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+CTLIMG_RESOURCE[0].url+",sizingMethod=scale);width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;left:-8px;top:-209px;border:0px;\" onmousedown=\"return false;\" unselectable=\"on\" galleryimg=\"no\" />");else C.push("<img src=\""+CTLIMG_RESOURCE[0].url+"\" style=\"position:absolute;left:-8px;top:-209px;width:"+CTLIMG_RESOURCE[0].w+"px;height:"+CTLIMG_RESOURCE[0].h+"px;border:0px;\" onmousedown=\"return false;\" unselectable=\"on\" galleryimg=\"no\" />");C.push("</div>");if(en==1){this.wq.style.top=cm5UC(this.wq.style.top)-10+"px";this.wq.style.height=cm5UC(this.wq.style.height)+10+"px";C.push("<div id=\"_scaleValue2\" style=\"position:absolute;font-family: arial;FONT-SIZE: 12px; color:"+$+";FONT-WEIGHT: bold;left:4px;top:19px;\">&nbsp;"+D+" "+E+"</div>")}this.wq.div.innerHTML=C.join("")}else if(en==1){aa("_scaleValue").innerHTML="&nbsp;"+D+" "+B;if(aa("_scaleValue2"))aa("_scaleValue2").innerHTML="&nbsp;"+D+" "+E}else aa("_scaleValue").innerHTML="&nbsp;"+D+" "+B;this.wq.show()}else this.wq.hide()},$esX2:function(){if(!this.wq)return;if(this.fe){var _=4,$;if(en==1)$=this.height-34;else $=this.height-24;var A=0,B=0;if(this.controlCanvas&&this.controlCanvas.options.location.type==Maplet.LEFT_BOTTOM)A=this.controlCanvas.getRect().max.x+10;if(this.overview&&this.overview.location.type==Maplet.LEFT_BOTTOM)B=this.overview.getRect().max.x+10;this.wq.moveTo(Math.max(_,Math.max(A,B)),$)}},showNavLogo:function($){if(!$)this.E088.style.display="none";else this.E088.style.display="block";this.t8Q_=$;this.K3KA()},waitPan:function(A,_,$){if(this.Ah)clearTimeout(this.Ah);this.Ah=null;if(A&&_){if(this.vi==0){this.vi=1;this.vc=A;this.vd=_;this.fy=$;this.Ah=getTimeout(this,this.waitPan,500)}}else if(this.vi){this.vi=0;this.panTo(this.vc,this.vd,this.fy)}},doPan:function(){this.fa=true;this.K33=true;if(!px&&ContentInfo&&ContentInfo.isVisible())ContentInfo.LG8O9(true);if(!this.T9087){this.no();this.T9087=true}if(this.markerDragAnimation)with(this.A4b){if(uX!=null&&!uX.ls)this.d1rDu(false)}var _=parseInt(Math.sqrt(this.Aq*this.Aq+this.Aw*this.Aw));if(this.vh)clearTimeout(this.vh);this.vh=null;if((this.va-_)<=(1.2*this.vg)){this.Aq=this.xoffset;this.Aw=this.yoffset;this.sF.moveTo(this.Aq,this.Aw);this.vh=getTimeout(this,this.finishupPan,10)}else{var $=this.xoffset*this.vg/this.va,A=this.yoffset*this.vg/this.va;this.Aq+=$;this.Aw+=A;this.sF.moveTo(this.Aq,this.Aw);this.vh=getTimeout(this,this.doPan,10)}},finishupPan:function(){this.fa=false;this.N31=true;this.Y$_8=new Date().getTime();this.ClPI=this.Aq;this.c970q=this.Aw;if(this.vh)clearTimeout(this.vh);this.vh=null;this.setCenter(this.ve,this.vf);this.N31=false;if(this.fp&&this.fp.parentNode!=this.sF.div)this.sF.div.appendChild(this.fp);if(this.fy!=null&&this.fy!="undefined")eval(this.fy);this.K33=false},AN:function(_,x,y){this.lA.hide();if(this.H434)this.H434.setVisible(false);for(var i in this.a5Y){var $=this.a5Y[i];if($.options.zoomhide&&$.isVisible())$.setVisible(false)}if(!this.T9087)this.no();this.a2q=true;if(typeof x!="number")x=0;if(typeof y!="number")y=0;var AK=Math.pow(2,parseFloat(_))/Math.pow(2,this.AG);for(i in this.pU){var img=this.pU[i];if(img.c2)with(img.style){if(img.getAttribute("done")!="1"){_removeNode(img);img=null;delete this.pU[i]}else{width=(this.imgWidth*AK<10?0:this.imgWidth*AK+1)+"px";height=(this.imgHeight*AK<10?0:this.imgHeight*AK+1)+"px";left=cm5UC(img.getAttribute("origx"))*AK+1+"px";top=cm5UC(img.getAttribute("origy"))*AK+1+"px"}}}with(this.sE.div.style){width=this.width*AK+"px";height=this.height*AK+"px";left=(this.width/2-cm5UC(width)/2+x)+"px";top=(this.height/2-cm5UC(height)/2+y)+"px"}},T65K1:function($){if(cm5UC(this.sE.div.style.width)!=this.width)with(this.sE.div.style){width=this.width+"px";height=this.height+"px";left="0px";top="0px"}if(typeof $=="boolean"&&$)for(var A in this.pU){var _=this.pU[A];if(typeof _=="object"&&_.c2){_.style.left=cm5UC(_.getAttribute("origx"),0)+"px";_.style.top=cm5UC(_.getAttribute("origy"),0)+"px";_.style.width=this.imgWidth+"px";_.style.height=this.imgHeight+"px"}}this.a2q=false},vQ:function($){while($!=null&&$.length>0){$[$.length-1]=null;$.length--}},vS:function($,_){if(_>=0&&$.length>_){$[_]=null;for(var A=_;A<$.length-1;A++)$[A]=$[A+1];$[$.length-1]=null;$.length--}},getElementById:function(_,$){var A=this.p8(_,$);if(A>=0&&_.length>A)return _[A];return null},p8:function(_,$){var A=-1;for(var B=0;B<_.length;B++)if(_[B].id==$){A=B;break}return A},removePointAt:function($){this.vS(this.aO,$)},vX:function($){this.vS(this.aO,this.p8(this.aO,$))},removeAllPoints:function(){this.vQ(this.aO)},removeLabelAt:function($){this.vS(this.yG,$)},vV:function($){this.vS(this.yG,this.p8(this.yG,$))},removeAllLabels:function(){this.vQ(this.yG)},removeLineAt:function($){this.vS(this.aN,$)},vW:function($){this.vS(this.aN,this.p8(this.aN,$))},removeAllLines:function(){this.vQ(this.aN)},addHotspot:function(D,_,F,C,$){var E="hotspot"+this.aE.length;if(typeof _=="object"&&_.toString()=="com.mapbar.maplet.MPoint"){D=_.lat;_=_.lon}else{var A=cq.vp(_);D=Math.min(sy[1],Math.max(sy[0],parseFloat(A[1])));_=Math.min(sz[1],Math.max(sz[0],parseFloat(A[0])%360))}var B=new a8(E,"","",parseFloat(D),parseFloat(_),F,"","0");B.fl=false;B.AJ=C;B.AI=$;this.aE[this.aE.length]=B},addPointWithSwapImage:function(_,A,C,$,D,F,B,E){this.aO[this.aO.length]=new a8("point"+this.sv,_,A,parseFloat(C),parseFloat($),D,F,B,E);this.sv++},addPointWithId:function(_,B,$,C,E,A,D){this.aO[this.aO.length]=new a8(_,pc[_],pb[_],parseFloat(B),parseFloat($),C,E,A,D)},addIcon:function(_,D,C,B,A,E){var $=cq.vp(D);this.addPoint(_,$[1],$[0],C,B,A,E)},nC:function(){return this.c8},zp:function(C,B){var A=(C-this.width/2);if(this.rotation!=0){var _=(B-this.height/2);A=A*this.gk+_*this.wT}var $=this.gA+A*this.xg/this.imgWidth;$=Math.min(sz[1],Math.max(sz[0],$%360));return $},zo:function(C,B){var $=(B-this.height/2);if(this.rotation!=0){var A=(C-this.width/2);$=-A*this.wT+$*this.gk}var _=this.gx-$*this.xf/this.imgHeight;_=Math.min(sy[1],Math.max(sy[0],_));return _},zl:function($,B){var C=((parseFloat($)-this.gA)%360);if(C>180)C-=360;if(C<-180)C+=360;var A=Math.round(this.width/2+C/sj[this.AG]*this.imgWidth);if(this.rotation!=0){var _=Math.round(this.height/2-((parseFloat(B)-this.gx)%360)/qP[this.AG]*this.imgHeight);A=(A-this.width/2)*this.gk-(_-this.height/2)*this.wT+this.width/2}return A},zm:function(B,$){var _=Math.round(this.height/2-((parseFloat(B)-this.gx)%360)/qP[this.AG]*this.imgHeight);if(this.rotation!=0){var C=((parseFloat($)-this.gA)%360);if(C>180)C-=360;if(C<-180)C+=360;var A=Math.round(this.width/2+C/sj[this.AG]*this.imgWidth);_=(A-this.width/2)*this.wT+(_-this.height/2)*this.gk+this.height/2}return _},setMode:function(A,B){A=A.toString().toLowerCase();A=(this.tB[A])?parseInt(this.tB[A]):parseInt(A);if((A!=3&&A!=23)&&this.sS==A)return null;if(this.sS==3||this.sS==23)this.vA=this.sS;this.sS=parseInt(A);this.thw7_();var _=null;switch(A){case"zoomin":case"1":case 1:this.cS=true;this.d7q("crosshair",this.map);this.sS=1;_="zoomin";break;case"zoomout":case"2":case 2:this.cS=true;this.sS=2;this.d7q("crosshair",this.map);_="zoomout";break;case ts.ty:case"pan":case 3:this.sS=3;_="pan";A=null;case ts.l3:case 13:case"erase":if(A){this.sS=13;_="erase";A=null}case ts.tu:case"edit":case 23:if(A){this.sS=23;_="edit";A=null}this.cO=true;this.d7q("default",this.map);break;case ts.tv:case"lookup":case 5:this.cS=true;this.d7q("crosshair",this.map);this.sS=5;_="lookup";break;case"6":case 6:case"bookmark":this.d7q("default",this.map);_="bookmark";this.sS=6;break;case"7":case 7:this.d7q("default",this.map);break;case"8":case 8:this.d7q("default",this.map);break;case"9":case 9:case"drawline":this.d7q("default",this.map);this.po=-1;this.sS=9;_="drawline";if(this.allowDrawingDragMap)this.cO=true;break;case"10":case 10:case"drawarea":this.d7q("default",this.map);this.po=-1;this.sS=10;_="drawarea";if(this.allowDrawingDragMap)this.cO=true;break;case"11":case 11:case"measure":this.d7q("default",this.map);_="measure";this.sS=11;if(this.allowDrawingDragMap)this.cO=true;break;case"15":case 15:case"measarea":this.d7q("default",this.map);_="measarea";this.sS=15;if(this.allowDrawingDragMap)this.cO=true;break;case"24":case 24:case"snapshot":this.cS=true;this.d7q("crosshair",this.map);_="snapshot";this.sS=24;break;default:break}var $=null;if(_!=null&&typeof B=="function")$=MEvent.addListener(this,_,B);if(_!=null)MEvent.trigger(this,"setmode",_);return $},setCursorStyle:function(_,$){if(typeof _=="string"&&typeof $=="string"&&_)if("default,pointer,move,crosshair,measure".indexOf(_)!=-1)cWK3U[_]=$},d7q:function(B,A){var $=cWK3U[B],_="";if(typeof $=="string"&&$)_="url('"+$+"'),auto";else _=B;if(A.style.cursor!=_)A.style.cursor=_},wN:function(D,B,$,C,A){if(typeof $=="undefined"||$==null)return;if(typeof $.wyq=="object"){avBubble.width=$.wyq.width!=undefined?$.wyq.width:260;avBubble.height=$.wyq.height!=undefined?$.wyq.height:240}else{avBubble.width=260;avBubble.height=240}if(iToolTipStyle=="undefined"||iToolTipStyle==1){var _=(typeof $=="object")?$:null;if(_){avBubble.gl(_.title,_.content);A=C}else avBubble.gl($,C);if(_)this.fp=_.gv(D,B,true);else this.fp=gp($,D,B,C,true)}else{_=(typeof $=="object")?$:null;if(_)setToolTipMenu(D,B,_.title,_.content);else setToolTipMenu(D,B,$,C)}},hideBubble:function(){hideBubble(this);if(this.fp){if(this.fp.parentNode)this.fp.parentNode.removeChild(this.fp);this.fp=null}},aY:function(){if((this.tR>0)&&(this.tR<this.width)&&(this.tS>0)&&(this.tS<this.height)&&(this.downX>0)&&(this.downX<this.width)&&(this.downY>0)&&(this.downY<this.height))return true;else return false},lu:function(){var $=0,A=0,B=0,_=0;if(this.tR<this.downX&&this.tS<this.downY){$=this.downX-this.tR;A=this.downY-this.tS;B=this.tR;_=this.tS}else if(this.tR>this.downX&&this.tS<this.downY){$=this.tR-this.downX;A=this.downY-this.tS;B=this.downX;_=this.tS}else if(this.tR<this.downX&&this.tS>this.downY){$=this.downX-this.tR;A=this.tS-this.downY;B=this.tR;_=this.downY}else if(this.tR>this.downX&&this.tS>this.downY){$=parseInt(this.tR)-this.downX;A=parseInt(this.tS)-this.downY;B=this.downX;_=this.downY}else{$=this.tR-this.downX;A=this.tS-this.downY;B=this.downX;_=this.downY}if(this.sS==ts.$9f){nX();this.snapshotBox.resize($,A);this.snapshotBox.moveTo(B,_)}else{this.sD.resize($,A);this.sD.moveTo(B,_)}},thw7_:function(){this.cL=false;this.cS=false;this.cO=false;this.cN=false;this.cR=false;if(this.zy){this.zy.remove(true);this.zy=null}if(this.tG){this.tG.remove(true);this.tG=null}if(this.sD.style.visibility=="visible"){this.sD.hide();this.sD.resize(1,1);this.sD.moveTo(-10,-10)}if(this.snapshotBox.isVisible()&&!this.snapshotBox.E6vg)this.snapshotBox.hide();nX()},addPolyline:function(_,A,D,C,E,$){var B=new a9("pline"+this.sv,_,A,D,C,E,$);B.maplet=this;this.aN[this.aN.length]=B;this.sv++},addPolylineString:function(A,C,$){var B=A.split(","),_=new a9("pline"+this.sv,null,null,(B.length>2)?B[2]:null,(B.length>0)?parseInt(B[0]):0,(B.length>1)?B[1]:1,$);_.maplet=this;this.sv++;_.vp(C);this.aN[this.aN.length]=_},addLabelString:function(B,A,_){var $=cq.vp(A);this.addLabel((B==null)?"http://map.mapbar.com/maplite/images/marker.gif":B,$[1],$[0],_)},addOrigin:function(_,$){aC.setOrigin(parseFloat(_),parseFloat($))},addDestination:function(_,$){aC.setDestination(parseFloat(_,$))},clean:function(){this.hideBubble();this.removeAllPoints();this.removeAllLabels();this.removeAllLines();pd=new Array();pa=new Array();this.refresh()},showBasePois:function($){this.bp=$;this.refresh()},showZoomBar:function(_,$){this.ff=_;if(typeof $!="undefined"&&$!=null)if(this.yh!=$){this.yh=$;this.nI().setStyle(this.yh)}if(this.ff){this.overview.hide();this.nI().show();this.AP.setZoomLevel(this.getZoomLevel())}else if(this.AP!=null)this.AP.hide()},addControl:function(C,B,_,$){if(typeof C=="string"||(typeof C=="object"&&C.toString().indexOf("MStandardControl")>0)){if(this.controlCanvas){this.controlCanvas.g1();this.controlCanvas=null}var A=null;if(typeof C=="string"){if(_==null||_=="undefined")_=0;if($==null||$=="undefined")$=0;A=new MStandardControl(C,_,$,B)}else if(typeof C=="object")A=C;if(A)A.initialize(this)}else if(typeof C=="object"){if(this.gc[C.id])return;C.initialize(this);this.gc[C.id]=C;this.overview.addListener(this.gc[C.id])}},removeControl:function($){if(typeof $=="object"&&this.gc[$.id]){this.gc[$.id].remove();this.gc[$.id]=null}},addBound:function($){if(typeof $!="undefined")this.w3[this.w3.length]=$},clearAllBounds:function(){for(var $=0;$<this.w3.length;$++)this.w3[$]=null;this.w3.length=0},setScaleBarValue:function($){},getCurrentMap:function(){var C=this.width*sj[this.AG]/this.imgWidth;cq.lf=this.gx;cq.li=this.gA;var B=cq.zn(),_=(this.aO.length>0)?"&pois="+this.aO.length+",":"";for(var D=0;D<this.aO.length;D++)_+=this.aO[D].zn()+","+this.aO[D].xP+",";var $=(this.aN.length>0)?"&plines="+this.aN.length+",":"";for(D=0;D<this.aN.length;D++)$+=this.aN[D].zn()+";";var A="";for(D in this.u5)if(typeof this.u5[D]=="object"&&this.u5[D]!=null&&this.u5[D].zq){if(A.length==0)A="&overlays=";A+=this.u5[D].zq()+";"}return"&map="+this.AG+","+B+","+this.width+","+this.height+"&zm="+(Math.round(parseFloat(C)*1000)/10)+"&width="+this.width+"&height="+this.height+"&ctr="+B+_+$+"&client="+strLicenseKey+A},getLastPoint:function(){var $="&poi=";if(this.aO.length>0)$+=this.aO[this.aO.length-1].zn()+","+this.aO[this.aO.length-1].xP;return $},getLastLine:function(){var $="&pline=";if(this.aN.length>0)$+=this.aN[this.aN.length-1].zn();return $},setCursorIcon:function($){this.gJ=$;this.gI.src=$;nX()},v1:function(){this.gJ=null;this.gI.src=null},setBgColor:function($){this.vb.style.backgroundColor=$},setTransparency:function($){this.sE.div.style.filter="alpha(opacity="+$+");";this.sE.div.style.MozOpacity=($/100);this.sE.div.style.opacity=($/100);this.sE.div.style.qK=($/100)},getFitZoomLevel:function(_,$){var A=1;while(_<=$[A]&&A<($.length))A++;return(A-1)},setBrushStyle:function(_,$){this.brush.color=_;this.brush.stroke=$},ql:function(){return this.cI},setActive:function($){this.cI=$},onkeydown:function(A){var $=(A)?A:(window.event)?window.event:null;if($){var _=($.fG)?$.fG:(($.keyCode)?$.keyCode:(($.which)?$.which:0));if(_=="37"||_=="38"||_=="39"||_=="40")if(this.ql()){if($.target&&(($.target.nodeName=="INPUT"&&$.target.getAttribute("type").toLowerCase()=="text")||$.target.nodeName=="TEXTAREA"))return;if($.srcElement&&(($.srcElement.tagName=="INPUT"&&$.srcElement.type=="text")||$.srcElement.tagName=="TEXTAREA"))return;if($.shiftKey||$.ctrlKey){if(_=="37"){this.setRotation(this.rotation-15);this.refresh()}if(_=="39"){this.setRotation(this.rotation+15);this.refresh()}}else{if(_=="37")this.panTo(this.width/2,0);if(_=="38")this.panTo(0,this.height/2);if(_=="39")this.panTo(-this.width/2,0);if(_=="40")this.panTo(0,-this.height/2)}}}},showDiy:function(F){var I=(typeof F=="undefined")?new Array():sdc(F).split(","),C=(I.length>0),E=I[0];x6=I[1];var $=I[2],B=I[3],G=I[4],A=I[5],D=I[6],H=I[7];if(C)w8=new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0);else w8=new Array(0,0,0,0,0,0,0,0,75,0,0,-150,0,0);if(typeof E=="undefined")te=0;else te=parseInt(E);if(typeof x6=="undefined")this.setStyle("mapbar");else this.setStyle(x6,$);if(typeof B=="undefined")this.gM=1;else this.gM=parseFloat(B);if(typeof H=="undefined"){if(C)this.strImgUrl="http://diyimg.mapbar.com/maplite/";else this.strImgUrl=strImgsvrUrl}else this.strImgUrl=H;if(typeof D=="undefined"){sz=new Array(-360,360);sy=new Array(-90,90)}else{var _=cq.vp(G);sz=new Array(_[0]-parseFloat(A)/2,_[0]+parseFloat(A)/2);sy=new Array(_[1]-parseFloat(D)/2,_[1]+parseFloat(D)/2)}if(typeof G!="undefined")this.centerAndZoom(new MPoint(G),sY-1)},_70:function(){var qx=0,A=0,y144d=this.width,B=this.height,X0u=this.yh_1H(),C={tn:X0u.min.x,A5j2F:X0u.max.x,width:X0u.max.x-X0u.min.x},l3W_l=this.R5_(),_={tn:l3W_l.min.x,A5j2F:l3W_l.max.x};with(this.controlCanvas){if(isVisible())if(options.location.type==Maplet.LEFT_TOP||options.location.type==Maplet.LEFT_BOTTOM)qx=Math.max(qx,l3W_l.max.x);else y144d=Math.min(y144d,l3W_l.min.x)}with(this.overview){if(fg)if(location.type==Maplet.LEFT_TOP||location.type==Maplet.LEFT_BOTTOM)qx=Math.max(qx,X0u.max.x+location.marginx);else y144d=Math.min(y144d,X0u.min.x)}var $=y144d-qx,D=B-A;if(!isNaN(parseInt(avBubble.rE75))&&parseInt(avBubble.rE75)<$)$=parseInt(avBubble.rE75);if(!isNaN(parseInt(avBubble.SMbF))&&parseInt(avBubble.SMbF)<D)D=parseInt(avBubble.SMbF);return{min:{x:qx,y:A},max:{x:y144d,y:B},width:$,height:D,f0:_,overview:C}},e5D:function($){this.DllQ7=true;new i96(strImgsvrUrl+"mapbank/base/poireport.txt?"+Math.random(),this.cAw02,null,null,this,this.cAw02).V96Xw()},cAw02:function(){if(typeof basepoilist=="object"&&basepoilist)this.refresh();this.DllQ7=false},setTrajectory:function(E,B,_,$,D){this.ux=(_==null||_=="undefined")?5:parseInt(_);this.pid=E;this.lX=$;this.wyqLine=null;this.everydo=(D==null||D=="undefined")?null:D;var F=this.wyqPois=B.pts;if(F!=null&&F.length>0){var C=0;this.zf=new Array();this.zg=new Array();this.p9=0;for(var G=0;G<F.length;G++){if(F[G].pid==undefined||F[G].pid==null||F[G].pid=="")continue;var A=cq.vp(F[G].pid);this.zg[C]=parseFloat(A[0]);this.zf[C]=parseFloat(A[1]);C++;A=null}F=null}},rotate:function($){if(this.uw<=this.t9)this.uw=Math.min(this.t9,this.uw+this.xe);else if(this.uw>=this.t9)this.uw=Math.max(this.t9,this.uw-this.xe);this.setRotation(this.uw);this.refresh();if(this.uw==this.t9)setTimeout($,500);else setTimeout("maplet.rotate(\""+$+"\")",500)},doEmulation:function(){try{if(this.p9==0){this.wY=this.zf[0];this.wZ=this.zg[0];this.py=this.p9;this.p9++}if(this.p9<this.zf.length){this.vh=null;if(this.wyqLine==null){var E=new MBrush();this.wyqLine=new MPolyline([this.wyqPois[0],this.wyqPois[1]],E);this.addOverlay(this.wyqLine)}else this.wyqLine.appendPoint(this.wyqPois[this.p9],true);this.everydo!=null?this.everydo():"";if(this.pid.icon.div.parentNode!=this.lA){this.lA.appendChild(this.pid.icon.div.parentNode);this.pid.icon.div.style.zIndex=200}if(this.nT==1&&rs&&this.py!=this.p9){this.py=this.p9;if(typeof this.lY=="undefined"||this.lY==null){this.lY=document.createElement("div");this.lY.style.position="absolute";this.lY.style.zIndex=1000;this.lY.style.width=parseFloat(this.pid.icon.div.style.width)+"px";this.lY.style.height=parseFloat(this.pid.icon.div.style.height)+"px";this.lY.style.left=(this.width/2-parseFloat(this.pid.icon.div.style.width)/2)+"px";this.lY.style.top=(this.height/2-parseFloat(this.pid.icon.div.style.height)/2)+"px";this.lY.innerHTML="<img src='"+this.pid.icon.imgUrl+"' width='"+parseFloat(this.pid.icon.div.style.width)+"px' height='"+this.pid.icon.div.style.height+"px'>";this.map.appendChild(this.lY)}var $=-90+parseFloat(180*Math.atan2(this.zf[this.p9]-this.zf[this.p9-1],0.8*(this.zg[this.p9]-this.zg[this.p9-1]))/Math.PI);if($<0)$+=360;$=$%360;if((Math.abs($-this.rotation)%360)>180)this.rotation+=360;if(this.rotation-180-360>0)this.rotation=(this.rotation-720);this.uw=this.rotation;this.t9=$;if(this.p9==1){this.setRotation($);this.setCenter(this.wY,this.wZ)}else{this.setCenter(this.wY,this.wZ);setTimeout("maplet.rotate(\"maplet.doEmulation()\")",500);return}}var I=this.zl(this.zg[this.p9-1],this.zf[this.p9-1]),G=this.zm(this.zf[this.p9-1],this.zg[this.p9-1]),B=this.zl(this.zg[this.p9],this.zf[this.p9]),C=this.zm(this.zf[this.p9],this.zg[this.p9]),F=this.zl(this.wZ,this.wY),H=this.zm(this.wY,this.wZ),A=parseFloat(Math.sqrt((B-I)*(B-I)+(C-G)*(C-G))),_=parseFloat(Math.sqrt((F-I)*(F-I)+(H-G)*(H-G)))+this.ux;if(_<=(A-this.ux)){F=I+_*(B-I)/A;H=G+_*(C-G)/A;this.wZ=this.zg[this.p9-1]+_*(this.zg[this.p9]-this.zg[this.p9-1])/A;this.wY=this.zf[this.p9-1]+_*(this.zf[this.p9]-this.zf[this.p9-1])/A}else{F=B;H=C;this.wZ=this.zg[this.p9];this.wY=this.zf[this.p9];this.p9++}if(this.nT==0){this.pid.icon.div.style.top=(H-parseFloat(this.pid.icon.div.style.height))+"px";this.pid.icon.div.style.left=(F-parseFloat(this.pid.icon.div.style.width)/2)+"px"}if(this.nT==1&&rs){this.sF.div.style.top=parseFloat(this.sF.div.style.top)+this.ux;this.vh=getTimeout(this,this.doEmulation,100)}else if(F<0)this.panTo(this.width/2,this.height/2-H,"maplet.doEmulation()");else if(F>this.width)this.panTo(-this.width/2,this.height/2-H,"maplet.doEmulation()");else if(H<0)this.panTo(this.width/2-F,this.height/2,"maplet.doEmulation()");else if(H>this.height)this.panTo(this.width/2-F,-this.height/2,"maplet.doEmulation()");else this.vh=getTimeout(this,this.doEmulation,10)}else{this.vh=null;this.zf=null;this.zg=null;this.pid.icon.div.style.zIndex=1;if(this.lY)if(this.lY.parentNode){this.lY.parentNode.removeChild(this.lY);this.lY=null}this.setRotation(0);this.refresh();if(this.lX!=null||this.lX!="undefined")this.lX()}}catch(D){}},stopEmulation:function(){if(this.p9&&this.zf)this.p9=this.zf.length},getMarkersInPolygon:function(A){var B=[],C=[];for(var D=0;D<A.pts.length;D++)C.push({x:A.pts[D].mapX,y:A.pts[D].mapY});var _=this.getMarkers();for(D=0;D<_.length;D++){var $={x:_[D].pt.mapX,y:_[D].pt.mapY};if(_isInsidePolygon($,C))B.push(_[D])}return B},getMarkerPolygons:function($){var A=this.getPolylines(2),D=[];if(A.length>0){var B={x:$.pt.mapX,y:$.pt.mapY};for(var F=0;F<A.length;F++){var E=[],C=A[F];for(var _=0;_<C.pts.length;_++)E.push({x:C.pts[_].mapX,y:C.pts[_].mapY});if(_isInsidePolygon(B,E))D.push(C)}}return D},vI_9:function(_,$){return this.biTb[(_%2)<0?0:_%2][($%2)<0?0:$%2]},QhIW6:function(_){var $=parseInt(this.v13E._06[0].style.borderTopWidth);if(this.v13E.yN!=null&&((_<0&&$==0)||(_>0&&$==2)))return;var B={left:this.tR,top:this.tS},C=null,A=null;if(_<0){A=this.r93;C=this.v13E.qD9;this.W00U(true)}else{A=this.o3fal;C=this.v13E._8bh;this.W00U(false)}B.left-=C.width/2;B.top-=C.height/2;this.xr_(true,C,B);this.v13E.yN=getTimeout(this,A,this.v13E.interval)},W00U:function($){var _=this.v13E._06;if($){_[0].style.borderWidth="0px 2px 2px 0px";_[1].style.borderWidth="0px 0px 2px 2px";_[2].style.borderWidth="2px 2px 0px 0px";_[3].style.borderWidth="2px 0px 0px 2px"}else{_[0].style.borderWidth="2px 0px 0px 2px";_[1].style.borderWidth="2px 2px 0px 0px";_[2].style.borderWidth="0px 0px 2px 2px";_[3].style.borderWidth="0px 2px 2px 0px"}},o3fal:function(){this.M4g6U(false)},r93:function(){this.M4g6U(true)},M4g6U:function(_){if(this.v13E.H1n3<=this.v13E.fJ8){var $=this.v13E.f2,B=this.v13E.xd*this.v13E.H1n3,A=$.offsetWidth*B;$.style.left=(_?$.offsetLeft+A/2:$.offsetLeft-A/2)+"px";$.style.width=(_?$.offsetWidth-A:$.offsetWidth+A)+"px";A=$.offsetHeight*B;$.style.top=(_?$.offsetTop+A/2:$.offsetTop-A/2)+"px";$.style.height=(_?$.offsetHeight-A:$.offsetHeight+A)+"px";this.nC8C();this.v13E.H1n3++;this.v13E.yN=getTimeout(this,(_?this.r93:this.o3fal),this.v13E.interval-this.v13E.interval*this.v13E.xd)}else this.xr_(false)},nC8C:function(){var _=this.v13E.f2,B=4,$=_.offsetWidth,A=_.offsetHeight;this.v13E._06[1].style.left=$-B+"px";this.v13E._06[2].style.top=A-B+"px";this.v13E._06[3].style.left=$-B+"px";this.v13E._06[3].style.top=A-B+"px"},xr_:function($,B,A){var _=this.v13E.f2;_.style.left="100px";_.style.top="100px";if(this.v13E.yN){window.clearTimeout(this.v13E.yN);this.v13E.yN=null}this.v13E.H1n3=1;this.v13E.f2.style.display=$?"":"none";_=this.v13E.f2;if(typeof A=="object"&&A){_.style.left=A.left+"px";_.style.top=A.top+"px"}if(typeof B=="object"&&B){_.style.width=B.width+"px";_.style.height=B.height+"px";this.nC8C()}},R5_:function(){var r={min:{x:0,y:0},max:{x:0,y:0}};with(this.controlCanvas){var l3W_l=getRect();if(isVisible()){r.min=l3W_l.Wh9;r.max=l3W_l.sDaa}}return r},yh_1H:function(){var $={min:{x:0,y:0},max:{x:0,y:0}};if(this.overview)$=this.overview.getRect();if($.min.x==0&&$.max.x==0)$={min:{x:this.width,y:this.height},max:{x:this.width,y:this.height}};return $},h25my:function(D,M,G){if(typeof M!="boolean")M=true;if(typeof G!="boolean")G=true;var L=D.qUr,K=D.m42-60,B=D.s08,O=D.K80K,_=0,A=0,P=0,I=0,Q=this.width,H=this.height;if(M||G){var J={min:{x:D.qUr,y:D.m42},max:{x:D.s08,y:D.K80K},width:D.s08-D.qUr,height:D.K80K-D.m42},F,C,E;if(G&&this.controlCanvas){var $=this.R5_();F=this.controlCanvas.options.location;C=(F.type==Maplet.LEFT_TOP||F.type==Maplet.LEFT_BOTTOM);E=(F.type==Maplet.LEFT_TOP||F.type==Maplet.RIGHT_TOP);if(_isRectint(J,$)){if(C)P=$.max.x;else Q=$.min.x}else if(C){if(E&&J.min.x<$.max.x&&(J.min.y<$.max.y||(J.height>this.height-$.max.y)))P=$.max.x;else if(!E&&J.min.x<$.max.x&&(J.max.y>$.min.y||(J.height>$.min.y)))P=$.max.x}else if(E&&J.max.x>$.min.x&&(J.min.y<$.max.y||(J.height>this.height-$.max.y)))Q=$.min.x;else if(!E&&J.max.x>$.min.x&&(J.max.y>$.min.y||(J.height>$.min.y)))Q=$.min.x}if(M&&this.overview){var N=this.yh_1H();F=this.overview.location;C=(F.type==Maplet.LEFT_TOP||F.type==Maplet.LEFT_BOTTOM);E=(F.type==Maplet.LEFT_TOP||F.type==Maplet.RIGHT_TOP);if(_isRectint(J,N)){if(C)P=Math.max(P,N.max.x);else Q=Math.min(Q,N.min.x)}else if(C){if(E&&J.min.x<N.max.x&&(J.min.y<N.max.y||(J.height>this.height-N.max.y)))P=Math.max(P,N.max.x);else if(!E&&J.min.x<N.max.x&&(J.max.y>N.min.y||(J.height>N.min.y)))P=Math.max(P,N.max.x)}else if(E&&J.max.x>N.min.x&&(J.min.y<N.max.y||(J.height>this.height-N.max.y)))Q=Math.min(Q,N.min.x);else if(!E&&J.max.x>N.min.x&&(J.max.y>N.min.y||(J.height>N.min.y)))Q=Math.min(Q,N.min.x)}}if(L<P)_=L-P;if(K<I)A=K-I;if(B>Q)if(_==0)_=B-Q;else _=0;if(O>H)if(A==0)A=O-H;else A=0;return{cy813:_,cx0:A}},H324:function(C,$){if(typeof $!="object"||!$)$={a0_54:true,s208:true,$24B4:true};var B=this.h25my(C,$.a0_54,$.s208,$.$24B4),_=B.cy813,A=B.cx0;if(_!=0||A!=0){if(typeof C.c99!="number")C.c99=0;if(typeof C.wQ613!="number")C.wQ613=0;if(_!=0)_=(_<0?_-C.c99:_+C.c99);if(A!=0)A=(A<0?A-C.wQ613:A+C.wQ613);maplet.panTo(-_,-A)}return B},viewOverlay:function(H,B,M){var G=H.toString(),F=G.indexOf("MMarker")!=-1,$=G.indexOf("MPolyline")!=-1,E=G.indexOf("MEllipse")!=-1,C=G.indexOf("MRoundRect")!=-1,K=0,J=0,_=0,L=0;if(F&&H.icon){var D=H;K=D.pt.mapX-D.icon.anchorX;J=D.pt.mapY-D.icon.anchorY;_=K+parseInt(D.icon.div.style.width);L=J+parseInt(D.icon.div.style.height)}else if($){var I=H.getCenterXY();K=I.x-16;J=I.y-16;_=K+32;L=J+32}else if(E){K=H.gC.mapX-16;J=H.gC.mapY-16;_=K+32;L=J+32}else if(C){var A=H.getCenterXY();K=A.x-16;J=A.y-16;_=K+32;L=J+32}return this.H324({qUr:K,m42:J,s08:_,K80K:L,c99:B,wQ613:M})},C3N:function(){this.H434=new fD("LayerContainer",0,0,this.width,this.height,true,2,"",this.sF)},PU77:function(){for(var $ in this.layerData){this.layerData[$]=null;delete this.layerData[$]}},getImgByXY:function(D,C,$){if(typeof $!="boolean")$=false;var A=this.pU[((this.AG).toString(16)+(this.gD).toString(16)+"l"+(this.gE).toString(16)).toLowerCase()];if(typeof A=="object"&&A){var B=Math.floor((D-parseInt(A.style.left))/this.imgWidth),_=-Math.floor((C-parseInt(A.style.top)+($?w8[this.AG]:0))/this.imgHeight);A=this.pU[((this.AG).toString(16)+(this.gD+B).toString(16)+"l"+(this.gE+_).toString(16)).toLowerCase()];return A}return null},d1rDu:function(visible,left,top){with(this.A4b){if(typeof left!="undefined")fC.div.style.left=left+"px";if(typeof top!="undefined")fC.div.style.top=top+"px";if(fC.div.parentNode!=this.vb){this.vb.appendChild(fC.div);fC.div.style.zIndex=2}if(fC.div.style.display!=(visible?"":"none"))fC.div.style.display=(visible?"":"none");if(uX){uX.Ogm();uX=null}}},a8xh5:function(){if(!this.$BQ){this.$BQ=document.createElement("div");this.$BQ.id=px?"vCanvasVML":"vCanvasSVG";this.$BQ.style.position="absolute";this.$BQ.unselectable="on";this.$BQ.style.zIndex=0;this.$BQ.style.MozUserSelect="none";this.lA.appendChild(this.$BQ);if(!px){var _=document.createElementNS("http://www.w3.org/2000/svg","svg");_.setAttribute("id","LayerDrawSVG");_.setAttribute("version","1.1");_.setAttribute("overflow","visible");_.setAttribute("viewBox","-"+this.width+" -"+this.height+" "+this.width*3+" "+this.height*3);_.setAttribute("style","position: absolute; left: -"+this.width+"px; top: -"+this.height+"px; z-index: 0;");_.setAttribute("height",this.height*3+"px");_.setAttribute("width",this.width*3+"px");_.setAttribute(cV7,"true");var A=document.createElementNS("http://www.w3.org/2000/svg","path");A.setAttribute("d","M 0 0 L 10 5 L 0 10 L 4 5 z");A.setAttribute("fill",this.brush.color);A.setAttribute("fill-opacity",this.brush.bgtransparency/100+0.3);var $=document.createElementNS("http://www.w3.org/2000/svg","marker");$.setAttribute("id","svgArrow");$.setAttribute("viewBox","0 0 10 10");$.setAttribute("refX","6");$.setAttribute("refY","5");$.setAttribute("markerUnits","strokeWidth");$.setAttribute("orient","auto");$.appendChild(A);_.appendChild($);this.$BQ.appendChild(_)}}return this.$BQ},autoZoomLogo:function(){}};Maplet.prototype.toString=function(){return"com.mapbar.maplet.Maplet"};Maplet.prototype.setIwStdSize=function($,_){if(typeof $!="number")$=260;if(typeof _!="number")_=240;if($<avBubble.minWidth)$=avBubble.minWidth;if(_<avBubble.minHeight)_=avBubble.minHeight;avBubble.width=$;avBubble.height=_};Maplet.prototype.setIwZoomInSize=function($,_){if(typeof $!="number")$="";if(typeof _!="number")_="";if($<avBubble.width)$="";if(_<avBubble.height)_="";avBubble.rE75=$;avBubble.SMbF=_};Maplet.prototype.addLayer=function($){if($&&$ instanceof MLayer){if(!this.qS[$.id]){$.initialize(this);this.qS[$.id]=$;this.refresh()}}else return false;return true};Maplet.prototype.removeLayer=function($,_){if(typeof _!="boolean")_=false;if($&&$ instanceof MLayer&&this.qS[$.id]&&typeof $.remove=="function"){this.qS[$.id].remove(_);this.qS[$.id]=null;delete this.qS[$.id]}};Maplet.prototype.clearLayers=function($){if(!this.H434)return;for(var _ in this.qS)if(this.qS[_].options.creator==MLayer.USER)this.removeLayer(this.qS[_],$);if(!this.traffic){this.H434.clear();_removeNode(this.H434.div);this.H434=null}};Maplet.prototype.getLayers=function(){var $=[];for(var _ in this.qS)if(this.qS[_].options.creator==MLayer.USER)$.push(this.qS[_]);return $};Maplet.prototype.addPanel=function($){if($&&$ instanceof MPanel){if(this.a5Y[$.id])return true;$.initialize(this);this.a5Y[$.id]=$}else return false};Maplet.prototype.removePanel=function(_,$){if(typeof $!="boolean")$=false;if(typeof _=="object"){if(this.a5Y[_.id]){_.remove($);this.a5Y[_.id]=null;delete this.a5Y[_.id]}else if(typeof _.remove=="function")_.remove($)}else if(typeof _=="string")if(this.a5Y[_]){this.a5Y[_].remove($);this.a5Y[_]=null;delete this.a5Y[_]}};Maplet.prototype.getPanels=function(){var $=[];for(var _ in this.a5Y)$.push(this.a5Y[_]);return $};Maplet.prototype.addOverlay=function($){if(typeof $=="object"){if(this.u5[$.id])return;$.initialize(this);this.u5[$.id]=$}};Maplet.prototype.getZoomLevel=function(){return this.AG};Maplet.prototype.clearOverlays=function(_){if(typeof _!="boolean")_=false;this.hideBubble(this);for(var $ in this.u5)if(this.u5[$]&&this.u5[$].remove){this.u5[$].remove(_);this.u5[$]=null;delete this.u5[$]}};Maplet.prototype.removeOverlay=function($,_){if(typeof _!="boolean")_=false;if(typeof $=="object"){if(this.u5[$.id]){this.u5[$.id].remove(_);this.u5[$.id]=null;delete this.u5[$.id]}else if(typeof $.remove=="function")$.remove(_)}else if(typeof $=="string")if(this.u5[$]){this.u5[$].remove(_);this.u5[$]=null;delete this.u5[$]}};Maplet.prototype.clearCache=function(){cq.pu=null;cq.pu={}};Maplet.prototype.setAutoZoom=function(D,A,N,L){var F=[];if(this.setAutoZoom.arguments.length==0){for(var E in this.u5)if(this.u5[E]&&this.u5[E].remove)if(this.u5[E].toString()=="com.mapbar.maplet.MMarker"){if(this.u5[E].pt.pid==undefined||this.u5[E].pt.pid==null||this.u5[E].pt.pid=="")continue;F.push(cq.vp(this.u5[E].pt.pid))}else if(this.u5[E].toString()=="com.mapbar.maplet.MPolyline"){var _=this.u5[E].pts;for(var I=0;I<_.length;I++){if(_[I].pid==undefined||_[I].pid==null||_[I].pid=="")continue;F.push(cq.vp(_[I].pid))}}if(F.length==0)return false;else{D=90;A=180;N=-90;L=-180;for(var K=0;K<F.length;K++){D=Math.min(parseFloat(F[K][1]),D);A=Math.min(parseFloat(F[K][0]),A);N=Math.max(parseFloat(F[K][1]),N);L=Math.max(parseFloat(F[K][0]),L)}}}if(isNaN(parseFloat(D))){var B=cq.vp(D),M=cq.vp(A);D=B[1];A=B[0];N=M[1];L=M[0]}var C=1.1*(N-D)*this.imgWidth/this.height,$=1.1*(L-A)*this.imgWidth/this.width,J=this.getFitZoomLevel(C,qP),G=this.getFitZoomLevel($,sj),H=Math.min(J,G);cq.lf=(N+D)/2;cq.li=(L+A)/2;this.centerAndZoom(new MPoint(cq.zn()),H);return true};Maplet.prototype.setZoomLevel=function(A,H,_){this.fI(A);A=parseInt(A);if(A<te)A=te;if(A>sY)A=sY;if(H!=undefined&&!H)return A;if(this.markerDragAnimation)with(this.A4b){if(uX!=null&&!uX.ls)this.d1rDu(false)}if(A!=this.AG){if(typeof _!="boolean"||_)this.h4g0();if(apiType==1)MEvent.trigger(this,"zoom",A);else MEvent.trigger(this,"zoom","&act=zoom&zm="+A);for(var I in this.a5Y){var D=this.a5Y[I];if(D.options.zoomhide&&D.isVisible())D.setVisible(false)}this.lA.hide()}else this.H71();if(iToolTipStyle==0)hideToolTipMenu();if(this.controlCanvas!=null)this.controlCanvas.update(A);if(this.gc!=null)for(var E in this.gc)if(this.gc[E].nR)this.gc[E].nR.controlCanvas.div.update(A);if(this.ff)this.nI().setZoomLevel(A);if(ContentInfo&&ContentInfo.isVisible()){var C=this.toScreenCoordinate(avBubble.ax729);if(_isInsideRect({x:C[0],y:C[1]},{min:{x:0,y:0},max:{x:this.width,y:this.height}})){this._61="infowindow";this.wUW=avBubble.ax729;this.asli=C[0];this.$iX=C[1]}}this.tXT0b=this.AG;this.AG=A;this.xg=sj[this.AG];this.xf=qP[this.AG];this.sR=sI[this.AG]+"/";if(this.wUW!=""){var G=this.asli-this.width/2,F=this.$iX-this.height/2,C=this.toScreenCoordinate(this.wUW),$=C[0]-G,B=C[1]-F;this.gA=this.zp($,B);this.gx=this.zo($,B);this.asli=-1;this.$iX=-1;this.wUW="";this._61=""}this.gD=Math.floor((this.gA)/this.xg);this.gE=Math.floor((this.gx)/this.xf);if(this.gD<0)this.gD+=1;this.mapX=this.width/2-Math.round(((this.gA*wp)%(this.xg*wp))*this.imgWidth/(this.xg*wp));if(this.gx>=0)this.mapY=this.height/2-this.imgHeight+Math.round(((this.gx*wp)%(this.xf*wp))*this.imgHeight/(this.xf*wp));else this.mapY=this.height/2+Math.round(((this.gx*wp)%(this.xf*wp))*this.imgHeight/(this.xf*wp));this.zN();this.refresh();this.tXT0b=this.AG;this.lA.show();if(this.H434)this.H434.setVisible(true);for(I in this.a5Y){D=this.a5Y[I];if(D.options.zoomhide&&!D.isVisible()&&!D.j81wW.K3$)D.setVisible(true)}};Maplet.prototype.setCenter=function(A,$,D,C){if(!this.T9087){this.no();this.T9087=true}var B=A;if(typeof A=="object")B=A.pid;if(isNaN(parseFloat(B))||(typeof B=="string"&&B.indexOf(",")>0)){var _=cq.vp(B);A=_[1];$=_[0]}this.gx=Math.min(sy[1],Math.max(sy[0],parseFloat(A)));this.gA=Math.min(sz[1],Math.max(sz[0],parseFloat($)%360));if(typeof basepoilist!="object"&&!this.DllQ7&&this._G9f)this._G9f=false;if(D==undefined||D)this.setZoomLevel(this.AG);if(C==undefined||C)if(apiType==1)MEvent.trigger(this,"pan",new MPoint(this.toMapCoordinate(this.width/2,this.height/2)));else MEvent.trigger(this,"pan","&act=pan&ctr="+this.toMapCoordinate(this.width/2,this.height/2))};Maplet.prototype.moveTo=function($,_){this.top=parseInt(_);this.left=parseInt($);this.vb.style.top=parseInt(_)+"px";this.vb.style.left=parseInt($)+"px"};Maplet.prototype.getCenter=function(){if(apiType==1)return new MPoint(this.getCurrentMap().split(",").slice(1,3).join(","));else return this.getCurrentMap().split(",")[1]};Maplet.prototype.enableTraffic=function($){if(typeof $!="object"||!$)$={};if(!this.traffic){this.traffic=new MTraffic($);this.traffic.initialize(this)}return this.traffic};Maplet.prototype.disableTraffic=function(){if(this.traffic){this.traffic.remove(true);this.traffic=null}};Maplet.prototype.resize=function($,B){$=parseInt($);B=parseInt(B);if($<0||B<0)return;if($==this.width&&B==this.height)return;aa("myalert").style.visibility="hidden";if(this.snapshotBox.isVisible())this.snapshotBox.hide();this.hideBubble();if(ContentInfo&&ContentInfo.closeFn)ContentInfo.closeFn();this.width=$;this.height=B;vZ(this);if(this.controlCanvas.options.view.ruler)if(this.height>=270)this.controlCanvas.showCtlRuler(true,true,false);else this.controlCanvas.showCtlRuler(false,true,false);this.z4=Math.ceil((this.width)/(this.imgWidth)/2);this.z5=Math.ceil((this.height)/(this.imgHeight)/2);this.vb.style.width=$+"px";this.vb.style.height=B+"px";this.vb.style.clip="rect(0px,"+this.width+"px,"+this.height+"px, 0px)";this.sF.resize($,B);this.sE.resize($,B);this.vx.resize($,B);if(this.H434){this.H434.resize($,B);for(var C in this.qS)this.qS[C].resize($,B)}if(this.ff){this.nI().resize(B);this.nI().moveTo(this.width-16,0)}this.$esX2();this.onresize();var A=(navigator.appVersion.match(new RegExp("6.","i"))=="6.")?0:2;this.sO.resize($-A,B-A);this.lA.resize($,B);this.setZoomLevel(this.AG);if(this.H434)for(C in this.qS)this.qS[C].refreshDataXY();for(var _ in this.gc)if(this.gc[_]&&this.gc[_].onresize)this.gc[_].onresize(this);this.overview.onresize()};Maplet.prototype.zoomIn=function(){if(this.AG>=sY)return;if(ContentInfo&&ContentInfo.isVisible())this.setZoomLevel(this.AG+1);else this.zoomTo(Math.min(sY,this.AG+1))};Maplet.prototype.zoomOut=function(){if(this.AG<=te)return;if(ContentInfo&&ContentInfo.isVisible())this.setZoomLevel(this.AG-1);else this.zoomTo(Math.max(0,this.AG-1))};Maplet.prototype.centerAndZoom=function(_,$){this.setCenter(_,"",false);if(typeof this.sF=="undefined"){this.AG=this.setZoomLevel($,false);this.showMap()}else this.setZoomLevel($)};Maplet.prototype.zoomTo=function(qB,fy,x,y){if(fy)this.fy=fy;if(ZOOM_TRANSITION&&(!ContentInfo||!ContentInfo.isVisible())){if(this.AZ!=null)clearTimeout(this.AZ);this.AZ=null;if(typeof qB!="undefined"){this.AT=parseInt(qB);if(typeof x=="undefined")this.vc=0;else this.vc=parseInt(x);if(typeof y=="undefined")this.vd=0;else this.vd=parseInt(y);this.AZ=getTimeout(this,this.zoomTo,200)}else{var vG=new Number();if(this.AT>this.getZoomLevel()){if(this.AS<=(this.AT-this.AY)){if(this.AS==-1)this.AS=this.getZoomLevel()+this.AY;else this.AS+=this.AY;vG=(this.AS-this.getZoomLevel());this.AN(this.AS,2*this.vc*vG,2*this.vd*vG);this.AZ=getTimeout(this,this.zoomTo,20)}else{this.AS=-1;this.ve=this.zo(-this.vc+this.width/2,-this.vd+this.height/2);this.vf=this.zp(-this.vc+this.width/2,-this.vd+this.height/2);this.setCenter(this.ve,this.vf,false,false);this.setZoomLevel(this.AT);if(this.fy){if(ContentInfo&&ContentInfo.isVisible())ContentInfo.setVisible(avBubble.mm0());eval(this.fy)}}}else if(this.AT<this.getZoomLevel())if(this.AS==-1||this.AS>=(this.AT+this.AY)){if(this.AS==-1)this.AS=this.getZoomLevel()-this.AY;else this.AS-=this.AY;vG=Math.abs(this.AS-this.getZoomLevel());this.AN(this.AS,2*this.vc*vG,2*this.vd*vG);this.AZ=getTimeout(this,this.zoomTo,20)}else{this.AS=-1;this.ve=this.zo(-this.vc+this.width/2,-this.vd+this.height/2);this.vf=this.zp(-this.vc+this.width/2,-this.vd+this.height/2);this.setCenter(this.ve,this.vf,false,false);this.setZoomLevel(this.AT);if(this.fy){if(ContentInfo&&ContentInfo.isVisible())ContentInfo.setVisible(avBubble.mm0());eval(this.fy)}}}}else this.setZoomLevel(qB)};Maplet.prototype.panTo=function(A,_,$){if(this.fa)return;this.xoffset=parseFloat(A);this.yoffset=parseFloat(_);this.Aq=0;this.Aw=0;this.fy=$;this.ve=this.zo(-this.xoffset+this.width/2,-this.yoffset+this.height/2);this.vf=this.zp(-this.xoffset+this.width/2,-this.yoffset+this.height/2);this.va=parseInt(Math.sqrt(this.xoffset*this.xoffset+this.yoffset*this.yoffset));if(!this.fa)this.doPan()};Maplet.prototype.toMapCoordinate=function(_,$){cq.li=this.zp(_,$);cq.lf=this.zo(_,$);return cq.zn()};Maplet.prototype.toScreenCoordinate=function(A){var $=[null,null];try{var _=cq.vp(A);$[0]=this.zl(_[0],_[1]);$[1]=this.zm(_[1],_[0])}catch(B){throw B}return $};Maplet.prototype.showLogo=function($){if($)this.rH8.style.display="block";else this.rH8.style.display="none";this.K3KA()};Maplet.prototype.showScale=function($,A,B,_){this.fe=$;if(this.fe)this.wq.show();else if(this.wq!=null)this.wq.hide()};Maplet.prototype.showOverview=function($,_){if($){this.overview.show();if(_)this.overview.open();else this.overview.close()}else{this.overview.hide();this.overview.close()}};Maplet.prototype.setOverviewLocation=function($){this.overview.setLocation($);this.K3KA();this.$esX2()};Maplet.prototype.resizeOverview=function($,_){this.overview.resizeTo($,_);this.K3KA();this.$esX2()};Maplet.prototype.showControl=function($){this.fj=$;if(this.fj){if(this.controlCanvas)this.controlCanvas.show()}else if(this.controlCanvas)this.controlCanvas.hide();this.K3KA();this.$esX2()};Maplet.prototype.getViewBound=function(){return{"LeftUp":this.toMapCoordinate(0,0),"LeftDown":this.toMapCoordinate(0,this.height),"RightUp":this.toMapCoordinate(this.width,0),"RightDown":this.toMapCoordinate(this.width,this.height)}};Maplet.prototype.calcPointsCt=function(C){var B=Number.MAX_VALUE,D=B,$=-Number.MAX_VALUE,A=$;for(var _=0;_<C.length;_++){if(!C[_].maplet)C[_].initialize(this);B=Math.min(B,C[_].mapX);D=Math.min(D,C[_].mapY);$=Math.max($,C[_].mapX);A=Math.max(A,C[_].mapY)}if(B!=Number.MAX_VALUE)return new MPoint(this.toMapCoordinate(B+($-B)/2,D+(A-D)/2));else return null};Maplet.prototype.u0=function(){if(this.c0)return;if(this.fs)return;this.c0=true;this.fs=true;sb=0;if(this.c35.length>0){if(((this.u2!=null&&this.u2=="traffic")||this.AG!=this.tXT0b)||bpp[0]!=this.w02){for(var x=0;x<this.c35.length;x++){this.c35[x].onmousedown=null;_removeNode(this.c35[x])}this.c35=[]}this.w02=bpp[0]}this.T65K1();var O="";if(this.H434)this.PU77();var y=0,z=this.yl,u=(this.u2=="undefined"||this.u2==null)?"poi":this.u2,k=nM[this.AG];this.sZ=0;this.s1=0;this.tf1=this.width;this.tg=this.height;this.s2=parseInt(this.gD);this.s3=parseInt(this.gE);this.th=parseInt(this.gD);this.ti=parseInt(this.gE);var t=new Array(),S=new Array(),Z=parseInt(new Date().getTime()/60000),j=(360/sj[this.AG]),V=this.getZoomLevel()-1;if(this.AG==this.tXT0b)this.sE.clean();else if(typeof basepoilist!="object"&&!this.DllQ7&&this._G9f)this._G9f=false;for(var i=-this.z4-1;i<=this.z4;i++)for(var g=-this.z5-1;g<=this.z5;g++){try{var f=parseInt(this.gD+i),W=parseInt(this.gE+g);f=(f)%j;if(f>=(j/2))f-=j;if(f<(-j/2))f+=j;var E=parseInt(Math.floor((f)/k)),J=parseInt(Math.floor((W)/k));if(E<0)E+=1;if(J<0)J+=1;var d=(f)-E*k,r=(W)-J*k,M=this.strImgUrl.replace("img","img"+this.vI_9(d,r))+"mapbank/"+z+"/"+this.sR,Q=this.strImgUrl+"mapbank/"+u+"/"+this.sR,F=this.strImgUrl+"mapbank/base/"+this.sR;if(this.AG>=14)M+=E+"/";Q+=E+"_"+J+"/";F+=E+"_"+J+"/";M+=E+"_"+J+"/";Q+=d+"_"+r+".png";F+=d+"_"+r+".js";this.wyqid=this.AG+"_"+E+"_"+J+"_"+d+"_"+r;M+=d+"_"+r+"."+this.xK;var C=(i*this.imgWidth)+parseInt(this.mapX),A=(-(g*this.imgHeight)+parseInt(this.mapY)),_=A;if(this.yl!="aerial"&&this.yl.indexOf("aerial")<0)A=A+w8[this.AG];var N=false,L=true,X=true;if((C<-this.imgWidth||C>this.width||A>this.height||A<-this.imgHeight))N=true;if(this.u2!=null&&this.u2=="traffic"&&w8[this.AG]!=0&&((_<this.height||_<=0))){L=false;if(N)M=null}if(this.H434&&w8[this.AG]!=0&&((_<this.height||_<=0))){X=false;if(N)M=null}if(N&&L&&X)continue;if(M){if(this.sZ<(C+this.imgWidth)){this.sZ=(C+this.imgWidth);this.s2=parseInt(this.gD)+parseInt(i)}if(this.s1<(A+this.imgHeight)){this.s1=(A+this.imgHeight);this.ti=parseInt(this.gE)+parseInt(g)}if(this.tf1>C){this.tf1=C;this.th=parseInt(this.gD)+parseInt(i)}if(this.tg>A){this.tg=A;this.s3=parseInt(this.gE)+parseInt(g)}}var G=((this.AG).toString(16)+(this.gD+i).toString(16)+"l"+(this.gE+g).toString(16)).toLowerCase();if(y==0)y=1;if(M&&M.indexOf("NaN")<0){if(this.pU[G]==null){if(!rs||!px){this.pU[G]=new Image();this.pU[G].id=G;this.pU[G].name=G;this.pU[G].wyq=this.wyqid;this.pU[G].ntry="0";this.pU[G].unselectable="on";this.pU[G].style.position="absolute";this.pU[G].style.MozUserSelect="none"}else{this.pU[G]=document.createElement("v:Image");this.pU[G].id=G;this.pU[G].name=G;this.pU[G].wyq=this.wyqid;this.pU[G].ntry="0";this.pU[G].unselectable="on";this.pU[G].style.position="absolute";this.pU[G].cE="f";this.pU[G].style.rotation=this.rotation;this.pU[G].style.width=this.imgWidth;this.pU[G].style.height=this.imgHeight}if(px)this.pU[G].style.filter="alpha(opacity=0);";else this.pU[G].style.opacity="0";f1.nk(this.pU[G],M,this.imgWidth,this.imgHeight)}else if(px&&rs)this.pU[G].style.rotation=this.rotation;var B=(C+this.imgWidth/2-this.width/2)*this.gk-(A+this.imgHeight/2-this.height/2)*this.wT+this.width/2,$=(C+this.imgWidth/2-this.width/2)*this.wT+(A+this.imgHeight/2-this.height/2)*this.gk+this.height/2;this.pU[G].style.top=parseInt($-this.imgHeight/2)+"px";this.pU[G].style.left=parseInt(B-this.imgWidth/2)+"px";this.pU[G].c2=true;this.pU[G].setAttribute("origy",parseInt($-this.imgHeight/2));this.pU[G].setAttribute("origx",parseInt(B-this.imgWidth/2))}if(this.u2!=null&&this.u2=="traffic"){if(!__mapbar_magic_id)__mapbar_magic_id="";var P=bpp[0]+__mapbar_magic_id+"/"+V+"/o"+G+".png";if(D2a){var b=document.createElement("v:image");b.setAttribute("unselectable","on");b.id="o"+G;b.setAttribute("name",G);b.setAttribute("traffic","yes");b.style.cssText="position:absolute;top:"+_+"px;left:"+C+"px;width:300px;height:300px";b.src=P;this.c35.push(b)}else{var D=document.createElement("IMG");D.id="o"+G;D.setAttribute("name",G);D.src=P;D.ntry="0";D.unselectable="on";D.onerror=function(){imageTileError(this)};D.onload=function(){imageTileOk(this)};D.onmousedown=function(){return false};D.style.cssText="position:absolute;top:"+_+"px;left:"+C+"px;-moz-user-select: none;";D.setAttribute("traffic","yes");this.c35.push(D)}t[t.length]="o"+G;S[S.length]=E+"_"+J+"/"}else if(this.u2!=null&&this.u2!="undefined"&&Q&&Q.indexOf("NaN")<0)if(this.pU[G]){var e="o"+this.pU[G].wyq,h=E+"_"+J+"/";if(bpp[0]!=xl+"mapbank/base/"||(typeof basepoilist=="object"&&basepoilist[e])){var c=aa(e);if(!c){c=document.createElement("DIV");c.setAttribute("unselectable","on");c.id=e;c.setAttribute("name",G);c.style.cssText="position:absolute;width:0px;height:0px;";this.c35.push(c)}c.style.left=C+"px";c.style.top=_+"px";t[t.length]=e;S[S.length]=h}}if(this.H434)this.layerData[G]={filename:this.sR+E+"_"+J+"/"+d+"_"+r,dirx:E,diry:J,grid:G,lh1:d,Xci:r,dirname:E+"_"+J,xyname:d+"_"+r,x:C,y:_};M=null;Q=null}catch(T){throw(T)}}for(var Y in this.pU){D=this.pU[Y];if(D!=null&&typeof D=="object")if((typeof D.c2=="boolean"&&D.c2)||D.c2=="true"){if(D.parentNode!=this.sE.div){if(D.parentNode!=null)D.parentNode.removeChild(D);this.sE.div.appendChild(D)}}else if(D.parentNode!=this.sG.div){if(D.parentNode!=null)_removeNode(D);D.onerror=null;D.onload=null;D=null;delete this.pU[Y]}}if(!(this.u2!=null&&this.u2=="traffic")&&this.c35.length>0){var v=t.join(",");for(var a=this.c35.length-1;a>=0;a--)if(v.indexOf(this.c35[a].id)==-1){if(this.c35[a].parentNode)_removeNode(this.c35[a]);this.c35.splice(a,1)}for(a=t.length-1;a>=0;a--)if(aa(t[a]))t.splice(a,1)}if(this.c35.length>0)for(var w=0;w<this.c35.length;w++)this.lA.div.appendChild(this.c35[w]);O=null;if(this.H434)for(var s in this.qS)if(this.qS[s].inZoomRange(this.AG))this.qS[s].update();else this.qS[s].clear();if(this.sE.div.parentNode!=this.sF.div)this.sF.div.appendChild(this.sE.div);if(this.vx.div.parentNode!=this.sF.div)this.sF.div.appendChild(this.vx.div);if((typeof this.fo=="boolean"&&this.fo)&&document.getElementById("LayerMap")&&document.getElementById("LayerMap").filters&&document.getElementById("LayerMap").filters.length>0){document.getElementById("LayerMap").filters[0].apply();document.getElementById("LayerMap").filters[0].vu()}if(this.aN.length>0)for(var m=0;m<this.aN.length;m++)this.aN[m].paint();if(this.zy!=null){this.zy.paint();if(this.tG!=null)this.tG.paint()}if(this.aO.length>0)for(m=0;m<this.aO.length;m++){this.aO[m].u9(this.vx.div);this.aO[m].paint(this.lA.div)}if(this.yG.length>0){if(!px)this.yG[this.yG.length-1].label(this.lA.graphics)}else if(iToolTipStyle==0)hideToolTipMenu();if(this.lA.div.parentNode!=this.sF.div)this.sF.div.appendChild(this.lA.div);if(this.aE.length>0){this.aG=null;this.aH=null;this.aF=null;for(m=0;m<this.aE.length;m++)if(this.AG>=this.aE[m].AJ&&this.AG<=this.aE[m].AI){var n=this.zl(this.aE[m].li,this.aE[m].lf),p=this.zm(this.aE[m].lf,this.aE[m].li);if(n>=0&&n<=this.width&&p>=0&&p<=this.height){if(this.aG==null){this.aG=new Array();this.aH=new Array();this.aF=new Array()}this.aG[this.aG.length]=n;this.aH[this.aH.length]=p;this.aF[this.aF.length]=m}}}if(!this.cH)this.cH=true;if(this.u2!=null&&this.u2!="undefined"){if(this.u2=="base"){if(this.AG>=parseInt(bpp[1])&&this.AG<=parseInt(bpp[2])){if(!this._G9f)this._G9f=true;s=0;for(var q in t){try{if(typeof t[q]=="string"&&typeof basepoilist=="object"){if(bpp[0]!=xl+"mapbank/base/"||basepoilist[t[q]])new i96(ADURL+t[q],parseInt,false,true).V96Xw();s++}else if(document.getElementById(t[q])&&document.getElementById(t[q]).parentNode)_removeNode(aa(t[q]))}catch(U){throw(U)}t[q]=null;S[q]=null}}else for(var K in t){try{if(typeof t[K]=="string"&&document.getElementById(t[K])&&document.getElementById(t[K]).parentNode)_removeNode(aa(t[K]))}catch(T){throw(T)}t[K]=null;S[K]=null}}else{Z=parseInt(new Date().getTime()/60000);for(var I in t){try{if((this.u2!="traffic")&&typeof t[I]=="string")XMLHttp.sendReq("GET","maplite/"+this.u2+".jsp?"+this.u3+"&oid="+t[I]+"&epoch="+Z,"",vB,t[I])}catch(T){throw(T)}t[I]=null;S[I]=null}}t.length=0;t=null;S.length=0;S=null}this.c0=false;this.fs=false;for(var o in this.a5Y){x=this.a5Y[o];if(x.paint)x.paint()}for(s=0;s<2;s++)for(var l in this.u5)if(this.u5[l]&&this.u5[l].paint)if(s==0&&this.u5[l]instanceof MMarker&&!this.u5[l].ls)this.u5[l].paint();else if(s==1&&this.u5[l].Xh5Lr)this.u5[l].paint();avBubble.yhb59();if(this.overview)this.overview.paint();cq.lf=this.gx;cq.li=this.gA;var R=cq.zn();this.yu=R+"@"+this.AG;if(ALLOW_MV){try{var H="@mapbar"+(new Date().getTime()%86400).toString(36);sB.src="http://mv.mapbar.com/?"+this.yu+"@"+this.yt+"@"+this.width.toString(36).toUpperCase()+"@"+this.height.toString(36).toUpperCase()+"@"+this.sS.toString(36).toUpperCase()+"@"+c75+"@"+strLicenseKey.toString(36).toUpperCase()+"@"+this.yl+"@"+((bp)?1:0)+"@"+((this.u2)?this.u2:"")+H}catch(T){throw(T)}}this.sF.moveTo(0,0);this.vx.moveTo(0,0);this.lA.moveTo(0,0);this.sO.moveTo(0,0);MEvent.trigger(this,"update",this.yu)};Maplet.prototype.getEllipse=function(){var $=[];for(var _ in this.u5)if(this.u5[_]instanceof MEllipse)$.push(this.u5[_]);return $};Maplet.prototype.getRoundRect=function(){var $=[];for(var _ in this.u5)if(this.u5[_]instanceof MRoundRect)$.push(this.u5[_]);return $};Maplet.prototype.getMarkers=function(){var $=[];for(var _ in this.u5)if(this.u5[_]instanceof MMarker)$.push(this.u5[_]);return $};Maplet.prototype.getPolylines=function(_){if(typeof _!="number")_=1;var $=[];for(var A in this.u5)if(this.u5[A]instanceof MPolyline){if(_==2&&!this.u5[A].U41k0())continue;else if(_==3&&this.u5[A].U41k0())continue;$.push(this.u5[A])}return $};Maplet.prototype.equalsLLCoords=function(D,$,C){if(typeof D=="string"&&D&&typeof $=="string"&&$){try{if(D==$)return true;if(typeof C!="number")C=0;var B=maplet.toScreenCoordinate(D),A=maplet.toScreenCoordinate($);if((B[0]==A[0]||Math.abs(B[0]-A[0])<=C)&&(B[1]==A[1]||Math.abs(B[1]-A[1])<=C))return true}catch(_){}}return false};Maplet.prototype.measDistance=function(F){try{var E=0,D=F.length,_=[],B=0,$=0;for(var C=1;C<D;C++){_.push(cq.vp(F[C-1].pid));_.push(cq.vp(F[C].pid));B=_[1][1]-_[0][1];$=_[1][0]-_[0][0];E+=Math.sqrt(B*B+$*$*0.64);_.length=0}return parseInt(E*this.gM*111111)}catch(A){return 0}};Maplet.prototype.measArea=function(I){try{var D=0,A=I.length,G=2,H=0;for(var C=1;C<=A;C++){var _=(G%A),E=(H%A),$=parseFloat(cq.vp(I[(C%A)].pid)[0]),J=parseFloat(cq.vp(I[_].pid)[1]),B=parseFloat(cq.vp(I[E].pid)[1]);D+=$*(J-B);G++;H++}return parseInt(Math.abs(D/2)*this.gM*this.gM*100000*100000)}catch(F){return 0}};Maplet.prototype.decodeLine=function(C,$){var A=[];if(typeof C!="string"||!C||typeof $!="string"||!$)return A;var _=this.t2e7(C),B=this.h216F($);if(_.length==B.length)for(var D=0;D<_.length;D++){A.push(new MPoint(_[D][1],_[D][0],false,B[D]));A[D].initialize(this)}return A};Maplet.prototype.t2e7=function(D){var E=D.length,_=0,C=[],I=0,B=0;while(_<E){var A,H=0,F=0;do{A=D.charCodeAt(_++)-63;F|=(A&31)<<H;H+=5}while(A>=32);var $=((F&1)?~(F>>1):(F>>1));I+=$;H=0;F=0;do{A=D.charCodeAt(_++)-63;F|=(A&31)<<H;H+=5}while(A>=32);var G=((F&1)?~(F>>1):(F>>1));B+=G;C.push([I*0.00001,B*0.00001])}return C};Maplet.prototype.h216F=function(_){var $=[];for(var A=0;A<_.length;++A){var B=_.charCodeAt(A)-63;$.push(B)}return $};var SF4_6={wB:function($){this.fo=($)?true:false},addLabel:function(_,B,$,D,C,A,E){if(!C)C="";this.yG[this.yG.length]=new a8("label"+this.sv,_,_,parseFloat(B),parseFloat($),D,C,A,E);this.sv++},addPoint:function(_,B,$,C,E,A,D){if(!E)E="";this.aO[this.aO.length]=new a8("point"+this.sv,_,_,parseFloat(B),parseFloat($),C,E,A,D);this.sv++},updatePointAt:function(A,B,C,$,_){if(A>=0&&this.aO.length>A){if(!C)C="";this.aO[A].zM(B,C);if(typeof $!="undefined"){if(typeof _=="undefined")_=$;this.aO[A].setIcon($,_)}}},updateLineAt:function(A,_,B,$){if(A>=0&&this.aN.length>A){this.po=A;if(_!="undefined"&&_!=null){this.aN[A].cK=($=="false"||$=="0")?false:true;this.aN[A].xP=_}if(B!="undefined"&&B!=null)this.aN[A].xu=B;if(this.aN[A].cK)this.aN[A].zM(_,B)}},showTipOf:function($,A,_){if(_==null||_==false||_=="undefined"||_=="false"){if($>=0&&this.aO.length>$)if(this.aO[$].pO){this.aO[$].pO.onmouseover();this.aO[$].pO.wR(A)}}else if($>=0&&this.aN.length>$)this.aN[$].wN()}};function a8(id,xI,xJ,lf,li,xP,xu,cK,vD){this.lf=lf;this.li=li;this.setIcon=function($,_){if($!="undefined"&&$!=""){this.xI=$;this.pO.src=$;this.pO.up=$}if(_!="undefined"&&_!=""){this.xJ=_;this.pO.n1=_}};this.zM=function(_,$){this.xP=_;this.xu=$;if(this.id!="undefined"&&this.xP!="undefined"){pe[this.id]=this.xP;pa[this.id]=(this.xu==null||this.xu=="undefined")?tX("%u8BEA%u0AAC%uCEA7%uB050"):this.xu}if(this.cK)if(typeof this.n2!="undefined"){var B=this.n2.parentNode;if(B!=null)B.removeChild(this.n2);var A=parseInt(this.n2.style.left),C=parseInt(this.n2.style.top);this.n2=gu(this.xP,this.color);this.n2.style.left=A+"px";this.n2.style.top=C+"px";if(B!=null)B.appendChild(this.n2)}else this.n2=gu(this.xP,this.color)};if(id!="undefined"&&xI!="undefined"){this.id=id;this.color=(vD==null||vD=="undefined")?"#FF0000":vD;this.cK=(cK=="1");this.AJ=0;this.AI=16;this.zM(xP,xu);this.pO=new Image();this.pO.unselectable="on";this.pO.id=this.id;this.pO.fl=true;this.pO.cm=false;this.pO.x0=0;this.pO.As=0;this.pO.lI=0;this.pO.lK=0;this.pO.style.position="absolute";this.pO.onerror=function(){this.src=strImgsvrUrl+"images/marker.gif";this.onerror=null};this.pO.onload=function(){this.onerror=null;this.onload=null};this.setIcon(xI,xJ);this.pO.onmouseover=function(){var $=document["mapbar-maplet"];if($.sS==ts.tb||$.sS==ts.ta||$.sS==ts.tw){this.style.cursor="default";return}this.style.cursor=(px)?"hand":"pointer";if(this.style.zIndex<pF)pF++;this.style.zIndex=pF;if(this.n1!="undefined"&&this.n1!="")this.src=this.n1;if(this.fl&&iToolTipStyle==0){var A=parseInt(this.style.left)+parseInt(this.width)/2,_=parseInt(this.style.top)+parseInt(this.height)/2;setToolTipMenu(A,_,pe[this.id],pa[this.id])}};this.pO.onmouseout=function(){if(this.up!="undefined"&&this.up!="")this.src=this.up;if(document["mapbar-maplet"].sS==ts.tu)this.uI()};this.pO.onclick=function(){if(this.fl.toString()=="false")return;var $=document["mapbar-maplet"];if($.sS==ts.tb||$.sS==ts.ta||$.sS==ts.tw||$.sS==ts.ly||$.sS==ts.lz||$.sS==ts.np)return;if($.sS==ts.l3){var _=$.p8($.aO,this.id);$.removePointAt(_);$.refresh();if(callback)callback("&act=del&pid="+_);return}if(this.lI==0&&this.lK==0)this.wR()};this.pO.onmousemove=function(A){if(document["mapbar-maplet"].sS==ts.tu&&this.cm){var _=parseInt((px)?event.clientX:A.clientX),$=parseInt((px)?event.clientY:A.clientY);this.lK+=($-this.As);this.lI+=(_-this.x0);this.style.top=(parseInt(this.style.top)+($-this.As))+"px";this.style.left=(parseInt(this.style.left)+(_-this.x0))+"px";this.x0=_;this.As=$}};this.pO.onmousedown=function(A){var _=parseInt((px)?event.clientX:A.clientX),$=parseInt((px)?event.clientY:A.clientY);this.cm=true;this.x0=_;this.As=$;this.lI=0;this.lK=0};this.pO.onmouseup=function($){if(document["mapbar-maplet"].sS==ts.tu)this.uI($)};this.pO.uI=function(C){if(this.cm&&(this.lI!=0||this.lK!=0)){this.cm=false;var $=document["mapbar-maplet"],A=$.getElementById($.aO,this.id);if(A!=null){A.lf+=($.zo(this.lI+$.width/2,this.lK+$.height/2)-$.gx);A.li+=($.zp(this.lI+$.width/2,this.lK+$.height/2)-$.gA);cq.lf=A.lf;cq.li=A.li;var _=cq.zn(),B=$.p8($.aO,this.id);$.refresh();if(callback)callback("&act=move&pid="+B+"&latlon="+_)}this.lI=0;this.lK=0}else this.cm=false};this.pO.wR=function(D){var E=parseInt(this.style.left)+parseInt(this.width)/2,C=parseInt(this.style.top)+parseInt(this.height)/2,_=document["mapbar-maplet"];if((iToolTipStyle=="undefined"||iToolTipStyle==1)&&(pe[this.id]!=null)&&(pe[this.id].length>0)){avBubble.gl(pe[this.id],pa[this.id]);if(D.toString()=="true"||((E>avBubble.xoffset)&&(E<(_.width-avBubble.width))&&(C>avBubble.height)&&(C<(_.height)))){_.fp=gp(pe[this.id],E,C,pa[this.id]);_.sF.div.appendChild(_.fp)}else{_.fp=gp(pe[this.id],_.width/2+2,avBubble.height+10,pa[this.id]);var $=_.width/2-E,A=avBubble.height+10-C;_.panTo($,A)}}else if(iToolTipStyle==2){var B=_.p8(_.aO,this.id);if(callback)callback("&act=click&pid="+B)}}}this.lx=function($){var _=document["mapbar-maplet"],B=(this.pO!=null)?parseInt(this.pO.width):16,A=(this.pO!=null)?parseInt(this.pO.height):16,C=_.zl(this.li,this.lf)-B/2,D=_.zm(this.lf,this.li)-A;if(this.xP&&this.cK){$.setColor(this.color);$.lC(this.xP,_.zl(this.li,this.lf)+B/2,_.zm(this.lf,this.li)-12)}if(this.xI)$.lB(this.xI,C,D,B,A)};this.paint=function(f2){if(this.xI){var maplet=document["mapbar-maplet"],width=(this.pO!=null)?parseInt(this.pO.width):16,height=(this.pO!=null)?parseInt(this.pO.height):16,left=maplet.zl(this.li,this.lf)-width/2,top=maplet.zm(this.lf,this.li)-height;if(left.toString()==eval("Number.NaN.toString()")||top.toString()==eval("Number.NaN.toString()"))return;this.pO.style.top=top+"px";this.pO.style.left=left+"px";if(top>=0&&left>=0&&top<=maplet.height&&left<=maplet.width){if(this.pO.parentNode!=f2)f2.appendChild(this.pO);this.pO.style.visibility="visible"}else{this.pO.style.visibility="hidden";if(this.pO.parentNode==f2)f2.removeChild(this.pO)}}};this.u9=function(f2){if(this.xP&&this.cK){var maplet=document["mapbar-maplet"],width=(this.pO!=null)?parseInt(this.pO.width):16,height=(this.pO!=null)?parseInt(this.pO.height):16,left=maplet.zl(this.li,this.lf)-width/2,top=maplet.zm(this.lf,this.li)-height;if(left.toString()==eval("Number.NaN.toString()")||top.toString()==eval("Number.NaN.toString()"))return;if(top>=0&&left>=0&&top<=maplet.height&&left<=maplet.width){this.n2.style.left=(left+width)+"px";this.n2.style.top=top+"px";if(this.n2.parentNode!=f2)f2.appendChild(this.n2)}}};this.label=function(){if(this.xu);};this.pu={};this.vp=function($){return this.pu[$]||function(E,F){var I=-1,H=0,C="",_="";if(F!=null&&parseInt(F.charAt(0),36)>=33){_=F.charAt(0);F=F.substring(1)}for(var G=0;G<(F.length-(c75?1:0));G++){var D=parseInt(F.charAt(G),36)-10;if(D>=17)D=D-7;C+=(D).toString(36);if(D>H){I=G;H=D}}var B=parseInt(C.substring(0,I),16),$=parseInt(C.substring(I+1),16);if("X"==_)B=-B;if("Y"==_)$=-$;var A=new Array();A[0]=(B+$-parseInt(strLicenseKey))/2;A[1]=($-A[0])/100000;A[0]/=100000;if(A[0]>180)A[0]-=360;E[F]=A;return A}(this.pu,$)};this.zn=function(C,F){if(typeof C!="undefined"&&typeof F!="undefined"){this.lf=parseFloat(F);this.li=parseFloat(C)}var D="",A=parseInt(parseFloat(Math.max(-90,Math.min(90,this.lf)))*100000),$=parseInt(parseFloat((this.li<0)?(this.li+360):this.li)*100000),G=$-A+parseInt(strLicenseKey),H=$+A;if(G<0){D="X";G=-G}if(H<0){D="Y";H=-H}var J=(G).toString(16),K=(H).toString(16);for(var B=0;B<J.length;B++){var I=parseInt(J.charAt(B),16);D+=(((I>=10)?(I+7):I)+10).toString(36)}D+="z";for(var E=0;E<K.length;E++){var _=parseInt(K.charAt(E),16);D+=(((_>=10)?(_+7):_)+10).toString(36)}if(c75)D+=D.charAt(c75);return D.toUpperCase()}}function a9(id,aK,aM,xt,qq,qr,cr){this.aK=(aK==null)?new Array():aK;this.aM=(aM==null)?new Array():aM;this.color=(xt==null)?"#FF0000":xt;this.stroke=(qq==0)?1:qq;this.style=qr;this.id=id;this.cr=(cr=="undefined"||cr==null)?"false":cr;this.xP="";this.cK=false;this.xu="";this.maplet=null;this.vp=function(A){var B=A.split(","),_=0;for(var C=0;C<B.length;C++)if(B[C]!=null&&B[C].length>0){var $=cq.vp(B[C]);this.aM[_]=parseFloat($[0]);this.aK[_]=parseFloat($[1]);_++}};this.zn=function(){var _=(this.cr.toString()=="true"||this.cr=="true")?"2":"0",$=this.stroke+","+_+","+this.color+":";for(var A=0;A<this.aK.length;A++){cq.lf=parseFloat(this.aK[A]);cq.li=parseFloat(this.aM[A]);$+=cq.zn()+","}return $};this.zM=function(_,$){this.xP=_;this.xu=$;if(this.cK)if(typeof this.n2!="undefined"){var B=this.n2.parentNode;if(B!=null)B.removeChild(this.n2);var A=parseInt(this.n2.style.left),C=parseInt(this.n2.style.top);this.n2=gu(this.xP,this.color);this.n2.style.left=A+"px";this.n2.style.top=C+"px";if(B!=null)B.appendChild(this.n2)}else this.n2=gu(this.xP,this.color)};this.lx=function(g){var aP=new Array(),aR=new Array(),pg=0,us=10;for(var i=0;i<this.aK.length;i++){if(this.aK[i].toString()!=eval("Number.NaN.toString()")){aR[pg]=this.maplet.zm(this.aK[i],this.aM[i]);if(this.aM[i].toString()!=eval("Number.NaN.toString()")){aP[pg]=this.maplet.zl(this.aM[i],this.aK[i]);if(pg>0&&(Math.abs(aP[pg]-aP[pg-1])+Math.abs(aR[pg]-aR[pg-1]))>us)pg++}}if(pg==0)pg++}if(this.color)g.setColor(this.color);if(this.stroke)g.setStroke(this.stroke);g.drawPolyline(aP,aR,this.style);g.paint()};this.paint=function(f2){this.zX=document.createElement("div");this.zX.maplet=this.maplet;this.zX.id=this.id;this.zX.unselectable="on";this.zX.style.zIndex=10;this.zX.style.position="absolute";this.z0=document.createElement("v:polyline");this.z0.unselectable="on";this.z0.id=this.id;this.z0.strokecolor=this.color;this.z0.strokeweight=this.stroke+"pt";this.z0.fill=false;this.z0.filled=this.cr;this.z0.style.position="absolute";this.Ad=document.createElement("v:stroke");this.Ad.opacity=(transparencyLevel/100);this.Ad.joinstyle="round";this.Ad.endcap="round";this.Ad.fill="false";if(bArrow)this.Ad.endarrow="classic";this.zY=document.createElement("v:fill");this.zY.opacity=((transparencyLevel/2)/100);this.zY.color=this.color;this.z0.appendChild(this.Ad);this.z0.appendChild(this.zY);this.zX.appendChild(this.z0);this.update();if(this.xP&&this.cK&&this.aK.length>=2){var Ao=0,Au=0;for(var i=1;i<this.aK.length;i++){if(this.aK[i].toString()!=eval("Number.NaN.toString()"))Au=this.maplet.zm(this.aK[i],this.aM[i]);if(this.aM[i].toString()!=eval("Number.NaN.toString()"))Ao=this.maplet.zl(this.aM[i],this.aK[i]);if(Ao>=0&&Au>=0&&Au<=this.maplet.height&&Ao<=this.maplet.width){this.n2.style.left=Ao+"px";this.n2.style.top=Au+"px";if(this.n2.parentNode!=this.zX)this.zX.appendChild(this.n2);break}}}this.zX.style.visibility="visible";if(f2!=null)f2.appendChild(this.zX);this.zX.onmouseover=function($){if(this.maplet.sS==ts.tb||this.maplet.sS==ts.ta||this.maplet.sS==ts.tw)this.style.cursor="default";else this.style.cursor=(px)?"hand":"pointer"};this.zX.onclick=function(lM){var pn=this.maplet.p8(this.maplet.aN,this.id),Ap,Av;if(pn>=0)if(this.maplet.sS==ts.l3){var gF=this.maplet.aN[pn],fc=true,pg=0;if(gF.aK.length>2){fc=false;Ap=parseInt((px)?event.clientX:lM.clientX)-this.maplet.left-this.maplet.offsetX;Av=parseInt((px)?event.clientY:lM.clientY)-this.maplet.top-this.maplet.offsetY;var qM=0,qL=0,gH=0,gG=0;for(var i=gF.aK.length-1;i>0;i--)if(gF.aK[i].toString()!=eval("Number.NaN.toString()")){gH=this.maplet.zm(gF.aK[i],gF.aM[i]);if(gF.aM[i].toString()!=eval("Number.NaN.toString()")){gG=this.maplet.zl(gF.aM[i],gF.aK[i]);if(pg>0){var lK=gH-qM,lI=gG-qL;if(Math.abs(lI)>Math.abs(lK)){var Ax=lK/lI*(Ap-qL)+qM;if(Math.abs(Ax-Av)<16){if(i==0)fc=true;break}}else if(Math.abs(lK)>0){var Ar=lI/lK*(Av-qM)+qL;if(Math.abs(Ar-Ap)<16){if(i==0)fc=true;break}}}qL=gG;qM=gH;pg++}}}if(fc||(gF.aK.length-pg)<2){this.onclick=null;this.maplet.removeLineAt(pn);this.maplet.refresh();if(callback)callback("&act=del&lid="+pn)}else{for(var qC=0;qC<pg;qC++){gF.aK[gF.aK.length-qC-1]=null;gF.aM[gF.aM.length-qC-1]=null}gF.aK.length=gF.aK.length-pg;gF.aM.length=gF.aM.length-pg;this.maplet.refresh();if(callback)callback("&act=update&lid="+pn+"&pline="+gF.zn())}}else if(this.maplet.sS==ts.ty||this.maplet.sS==ts.tu){if(iToolTipStyle==2){if(callback)callback("&act=click&lid="+pn)}else if(this.maplet.aN[pn].xP!=null&&this.maplet.aN[pn].xP.length>0){Ap=parseInt((px)?event.clientX:lM.clientX)-this.maplet.left-this.maplet.offsetX;Av=parseInt((px)?event.clientY:lM.clientY)-this.maplet.top-this.maplet.offsetY+8;this.maplet.wN(Ap,Av,this.maplet.aN[pn].xP,this.maplet.aN[pn].xu)}}else this.maplet.aZ(lM)}};this.update=function(){var aP=new Array(),aR=new Array(),pg=0,us=10;if(this.aK==null||this.aK.length<2)return;var cY=false,tn=this.maplet.width,to=this.maplet.height;for(var i=0;i<this.aK.length;i+=1)if(this.aK[i].toString()!=eval("Number.NaN.toString()")){aR[pg]=this.maplet.zm(this.aK[i],this.aM[i]);if(this.aM[i].toString()!=eval("Number.NaN.toString()")){aP[pg]=this.maplet.zl(this.aM[i],this.aK[i]);if(tn>aP[pg])tn=aP[pg];if(to>aR[pg])to=aR[pg];if(!cY&&(aR[pg]<0||aR[pg]>this.maplet.height||aP[pg]<0||aP[pg]>this.maplet.width))cY=true;if(pg>0&&(Math.abs(aP[pg]-aP[pg-1])+Math.abs(aR[pg]-aR[pg-1]))>us)pg++;if(pg==0)pg++}}if(cY){var aQ=new Array(),aS=new Array();pg=0;for(var qC=1;qC<aP.length;qC++){if((aR[qC]<-this.maplet.height&&aR[qC-1]<-this.maplet.height)||(aR[qC]>this.maplet.height*2&&aR[qC-1]>this.maplet.height*2)||(aP[qC]>this.maplet.width*2&&aP[qC-1]>this.maplet.width*2)||(aP[qC]<-this.maplet.width&&aP[qC-1]<-this.maplet.width))continue;if(aQ.length==0||(aQ[pg]!=aP[qC-1]&&aS[pg]!=aR[qC-1])){aQ[pg]=aP[qC-1];aS[pg]=aR[qC-1];pg++}aQ[pg]=aP[qC];aS[pg]=aR[qC];pg++}aP=aQ;aR=aS;aQ=null;aS=null}var Aa="";for(var qI=0;qI<aP.length;qI++){if(qI>0)Aa+=",";Aa+=(parseInt(aP[qI])+","+parseInt(aR[qI]))}if(bmc){this.z0.style.left=parseInt(tn)+"px";this.z0.style.top=parseInt(to)+"px"}if(this.z0)if(this.z0.points)this.z0.points.value=Aa;else this.z0.points=Aa};this.wN=function(){var pn=this.maplet.p8(this.maplet.aN,this.id);if(this.maplet.aN[pn].xP!=null&&this.maplet.aN[pn].xP.length>0&&this.aK.length>=2){var Ao=0,Au=0;for(var i=1;i<this.aK.length;i++){if(this.aK[i].toString()!=eval("Number.NaN.toString()"))Au=this.maplet.zm(this.aK[i],this.aM[i]);if(this.aM[i].toString()!=eval("Number.NaN.toString()"))Ao=this.maplet.zl(this.aM[i],this.aK[i]);if(Ao>=0&&Au>=0&&Au<=this.maplet.height&&Ao<=this.maplet.width){this.maplet.wN(Ao,Au+8,this.maplet.aN[pn].xP,this.maplet.aN[pn].xu);break}}}}}Maplet.prototype.aZ=function(H){if(maplet.snapshotBox.E6vg){maplet.snapshotBox.E6vg=false;return}if(this.xc)this.xc.hide();var A=(px)?event.srcElement.id:H.target.id,M=(px)?event.srcElement:H.target,R=parseInt((px)?event.clientX:H.clientX)-this.offsetX,_=parseInt((px)?event.clientY:H.clientY)-this.offsetY;this.l6=A;this.fS=R-this.left;this.fT=_-this.top;if(this.l6!=null&&this.l6.indexOf("ctrl")>=0)return false;if(this.ff&&this.nI().qn(this.fS,this.fT)){this.AP.tC(this.fS,this.fT);return}if(this.aY()){var S=this.zp(this.fS,this.fT),Q=this.zo(this.fS,this.fT);if(this.downX==this.zQ&&this.downY==this.zR){var B=cq.zn(this.zp(this.fS,this.fT),this.zo(this.fS,this.fT));if(apiType==1){var N=new MPoint(B);N.initialize(this);MEvent.trigger(this,"click",H,N)}else MEvent.trigger(this,"click",H,B)}var J=false;if((this.sS==7))this.addOrigin(Q,S);else if((this.sS==8))this.addDestination(Q,S);else if((this.sS==6)){cq.lf=Q;cq.li=S;var O=cq.zn();nX();if(apiType==1)MEvent.trigger(this,"bookmark",{action:"add",point:new MPoint(O),zoom:this.AG});else MEvent.trigger(this,"bookmark","&act=add&latlon="+O+"&zm="+this.AG)}else if(this.sS==ts.ty||this.sS==ts.tu||this.sS==ts.l3){if((new Date().getTime()-this.tD)>=500){this.tD=new Date().getTime();if(this.cQ)this.cQ=false;else if(!this.cn)if(this.l6=="LayerMask"||this.l6=="LayerDrawMap"||this.l6=="LayerDrawSVG"||(M.parentNode&&M.parentNode.id=="LayerMap")||M.id.indexOf("OverlayBg")>=0||(M.getAttribute(TET))){if(this.K33)return;if(this.fp!=null){this.hideBubble();if(ContentInfo&&ContentInfo.closeFn)ContentInfo.closeFn()}if(iToolTipStyle==0)hideToolTipMenu();if(this.H434){var F=null;if(F=this.getImgByXY(this.tR,this.tS,true))for(var K in this.qS){if(!this.qS[K].inZoomRange(this.AG))continue;var E=this.qS[K].click(F.id,this.tR,this.tS);if(E){MEvent.trigger(this,"layer_click",E);return}}}if(this.clickToCenter)this.waitPan(this.width/2-this.fS,-this.fT+this.height/2)}this.cn=false}else this.tD=new Date().getTime()}else if(this.sS==ts.tb||this.sS==ts.ta||this.sS==ts.lz||this.sS==ts.ly){var I=(en)?"Double click to finish":tX("%u8BFC%uDFC3%uA5C7%uD0CE%uE632");document.getElementById("pjlxl").innerHTML=I;if(this.allowDrawingDragMap&&!this.Y7d32){this.Y7d32=true;return false}if(this.l6!=null&&this.l6.indexOf("ctrl")>=0)return false;if(!this.zy){var L=this.sS==ts.ly||this.sS==ts.ta,G=new MBrush(this.brush.color,this.brush.stroke,this.brush.style,L,this.brush.bgcolor,this.brush.transparency,this.brush.bgtransparency,this.brush.arrow),P=new MPoint(cq.zn(S,Q));this.zy=new MPolyline([P],G,null,null);this.zy.initialize(this);this.sv++;this.tG=new MPolyline([P,P],G,null,null);this.tG.initialize(this);this.sv++}else{var D=new MPoint(cq.zn(S,Q));this.zy.pts.push(D);this.zy.update();this.tG.pts[0]=this.tG.pts[1];this.tG.pts[1]=D;this.tG.update()}J=true}if(A=="LayerDrawMap"&&!J)if(this.aG!=null&&this.aH!=null)for(var C=0;C<this.aG.length;C++)if(Math.abs(this.aG[C]-this.fS)<8&&Math.abs(this.aH[C]-this.fT)<8){var $="";if(apiType==1)$=this.aE[this.aF[C]].xP;else $="&hotspot="+this.aE[this.aF[C]].xP;this.vi=0;MEvent.trigger(this,"hotspot",$);if(hs){this.setCenter(this.aE[this.aF[C]].lf,this.aE[this.aF[C]].li);this.setZoomLevel(8)}break}}};Maplet.prototype.a1=function(lM){var l6=(px)?event.srcElement.id:lM.target.id,target=(px)?event.srcElement:lM.target;this.l6=l6;nX();if(this.l6!=null&&this.l6.toString().indexOf("ctrl")>=0)return false;if(this.aY()){if(this.sS!=ts.tz&&this.sS!=ts.tA&&this.sS!=ts.$9f)this.d7q("default",this.map);var D25=cq.zn(this.zp(this.fS,this.fT),this.zo(this.fS,this.fT));if(apiType==1){var pt=new MPoint(D25);pt.initialize(this);MEvent.trigger(this,"dbclick",lM,pt)}else MEvent.trigger(this,"dbclick",lM,D25);if(this.sS==ts.tb||this.sS==ts.ta){var g0=0,area=0;if(this.zy){var ur=this.zy.pts.length;if(!px)ur=ur-1;if(this.sS==ts.tb)g0=this.measDistance(this.zy.pts);else{this.zy.pts[ur]=this.zy.pts[0];area=this.measArea(this.zy.pts)}if(this.zy.zX.parentNode==this.lA.div)this.zy.remove(true)}if(this.tG&&this.tG.zX.parentNode==this.lA.div)this.tG.remove(true);this.zy=null;this.tG=null;if(!px)this.refresh();if(g0.toString()==eval("Number.NaN.toString()"))g0=0;if(area.toString()==eval("Number.NaN.toString()"))area=0;if(this.sS==ts.ta){var xk="";if(area>1000000){area=parseInt(area/10000)/10/10;xk=(en==0)?tX("%u603E%uF79D%u1151")+":"+area+tX("%u5E77%uC42C%uB725%uE338"):"Total area:"+area+"km2"}else xk=(en==0)?tX("%u603E%uF79D%u1151")+":"+area+tX("%u5E76%uC42C%uE22C"):"Total area:"+area+"m2";if(this.vA!="undefined")this.setMode(this.vA);sC(this.width/2+this.left+this.offsetX,this.height/2+this.top+this.offsetY,xk);if(apiType==1)MEvent.trigger(this,"measarea",(parseInt(area*1000000)/10));else MEvent.trigger(this,"measarea","&act=measarea&area="+(parseInt(area*1000000)/10)+tX("%u5E77%uC42C%uB725%uE338"))}else{var xB="";if(g0>=1000){g0=parseInt(g0/100)/10;xB=(en==0)?tX("%u603E%uEE18%u0798")+":"+g0+tX("%u516E%uE338"):"Total distance:"+g0+"km"}else xB=(en==0)?tX("%u603E%uEE18%u0798")+":"+g0+tX("%u7C74"):"Total distance:"+g0+"m";setMoveMode();if(this.vA!="undefined")this.setMode(this.vA);sC(this.width/2+this.left+this.offsetX,this.height/2+this.top+this.offsetY,xB);if(apiType==1)MEvent.trigger(this,"measure",(parseInt(g0*1000)/10));else MEvent.trigger(this,"measure","&act=measure&dist="+(parseInt(g0*1000)/10)+tX("%u516E%uE338"))}}else if(this.sS==ts.lz||this.sS==ts.ly){var yg=null;if(this.zy){var hnh=this.zy.pts.length;if(!px)hnh=hnh-1;this.zy.pts.length=hnh;if(this.zy.zX.parentNode==this.lA.div)this.zy.remove(true);if(apiType==1){yg=this.zy.zn();yg.zoom=this.AG}else yg=("&act=add&pline="+this.zy.zn()+"&zm="+this.AG)}if(this.tG&&this.tG.zX.parentNode==this.lA.div)this.tG.remove(true);this.zy=null;this.tG=null;if(!px)this.refresh();var nb=(this.sS==ts.lz)?"drawline":"drawarea";if(this.vA!="undefined")this.setMode(this.vA);MEvent.trigger(this,nb,yg)}else if(this.sS==ts.ty||this.sS==ts.tu||this.sS==ts.l3)if(this.l6&&(this.l6=="LayerMask"||this.l6=="LayerDrawMap"||this.l6=="LayerDrawSVG"||target.parentNode.id=="LayerMap"||target.id.indexOf("OverlayBg")>=0||this.l6.substring(0,"mk_shadow_".length)=="mk_shadow_"||target.getAttribute("traffic")=="yes")||(target.getAttribute(TET))){this.vi=0;if(this.getZoomLevel()<sY)this.zoomTo(this.getZoomLevel()+1,void(0),this.width/2-this.fS,-this.fT+this.height/2);else if(this.getZoomLevel()==sY)this.panTo(this.width/2-this.fS,-this.fT+this.height/2)}}};Maplet.prototype.a2=function(lM){if(this.sS!=ts.ty)this.hideBubble();if(this.markerDragAnimation)this.d1rDu(false);var Ap=parseInt((px)?event.clientX:lM.clientX)-this.offsetX,Av=parseInt((px)?event.clientY:lM.clientY)-this.offsetY;this.l6=(px)?event.srcElement.id:lM.target.id;if(!px&&this.vb.style.position!="absolute");this.downX=Ap-this.left;this.downY=Av-this.top;if(this.l6!=null&&this.l6.indexOf("ctrl")>=0&&this.controlCanvas!=null){this.controlCanvas.onmousedown(lM);return}if(lM.type=="mousedown")MEvent.trigger(this,"mousedown",lM);this.tQ="";if(this.ff&&this.nI().qn(this.downX,this.downY)){this.AP.tE(this.downX,this.downY);return false}else{var VC7=px?event.srcElement:lM.target;this.cL=(VC7.getAttribute(cV7)||VC7.getAttribute("traffic"))?true:false;if(this.aY()&&this.cS){if(this.sS==ts.$9f&&!this.snapshotBox.K9J)this.snapshotBox.show();else{this.sD.resize(1,1);this.sD.show()}}else if(this.sS==ts.ty||this.sS==ts.tu||this.sS==ts.l3)if(px&&(this.l6.indexOf("MPolyline")==this.l6.length-9))this.d7q("move",event.srcElement);else{eval(document.body.scrollTop);this.d7q("move",this.map)}}};Maplet.prototype.a5=function(A){var $=P2jRn(this.map),B=0,_=0;if(document.body&&(parseInt(document.documentElement.scrollTop)!=0||parseInt(document.documentElement.scrollLeft)!=0)){B=document.documentElement.scrollTop;_=document.documentElement.scrollLeft}else{B=document.body.scrollTop;_=document.body.scrollLeft}this.offsetX=$[0]-parseInt(_)-this.left;this.offsetY=$[1]-parseInt(B)-this.top};Maplet.prototype.a4=function(A){MEvent.trigger(this,"mouseout",A);this.l6=(px)?event.srcElement.id:A.target.id;if(!px||(px&&event.clientX!=-1)){var _=parseInt((px)?event.clientX:A.clientX)-this.offsetX,$=parseInt((px)?event.clientY:A.clientY)-this.offsetY;this.tR=_-this.left;this.tS=$-this.top;this.tR=_-this.left-(px?1:0);this.tS=$-this.top-(px?1:0);this.ClPI=this.tR-this.downX;this.c970q=this.tS-this.downY}this.cI=false;if((px&&event.clientX==-1)||!this.aY()){if(this.controlCanvas!=null)this.controlCanvas.onmouseout(A);this.a6((px)?event:A)}if(px)document.onmousewheel=new Function("return true")};Maplet.prototype.a3=function(G){if(this.cL&&this.xc)this.xc.hide();this.cI=true;if(!this.cL)this.a5(G);this.l6=(px)?event.srcElement.id:G.target.id;var J=parseInt((px)?event.clientX:G.clientX)-this.offsetX,$=parseInt((px)?event.clientY:G.clientY)-this.offsetY;this.tR=(J)-this.left;this.tS=($)-this.top;if(this.controlCanvas!=null)if(this.controlCanvas.onmousemove(G))return;if(this.gc!=null)for(var E in this.gc)if(this.gc[E].toString().indexOf("MStandardControl")>0&&this.gc[E].nR&&this.gc[E].nR.onmousemove(G))return;if(this.sS==ts.tb||this.sS==ts.ta||this.sS==ts.lz||this.sS==ts.ly){var H=(en)?"Click to start":"\u8bf7\u5355\u51fb\u5f00\u59cb";showMouseTipBox(this.tR,this.tS,H,this.map)}else if(this.sS==ts.tw){if(this.gJ!=null&&this.gJ!="undefined"&&this.gJ!="null"&&this.gJ!="")showMouseTipBox(this.tR-this.gI.width/2-10-1,this.tS-this.gI.height-2-18,"<img src='"+this.gI.src+"'>",this.map);else nX()}else if(this.sS==24){H=(en)?"Click to start":"\u6309\u4f4f\u5de6\u952e\u622a\u56fe\uff0c\u6216\u53f3\u51fb\u53d6\u6d88";showMouseTipBox(this.tR-6,this.tS-12,H,this.map)}else nX();if(this.ff&&this.nI().g8023(this.l6,this.tR,this.tS))return;if(this.sS==ts.ty&&!this.cN){var K=false;if(this.aG!=null&&this.aH!=null)for(var B=0;B<this.aG.length;B++)if(Math.abs(this.aG[B]-this.tR)<8&&Math.abs(this.aH[B]-this.tS)<8){K=true;break}if(K)this.d7q("pointer",this.map);else if(!this.cL)this.d7q("default",this.map);if(this.H434){var C=null;if(C=this.getImgByXY(this.tR,this.tS,true))for(var I in this.qS){if(!this.qS[I].inZoomRange(this.AG))continue;var D=this.qS[I].vq28a(C.id,this.tR,this.tS);if(D)MEvent.trigger(this,"layer_mousemove",D)}}}if(this.cO&&this.cL){if(this.K33)return;if(!this.T9087){this.no();this.T9087=true}if(px){if(!document.getElementById("_map_marker_speeder")){var F=document.createElement("DIV");F.id="_map_marker_speeder";F.style.display="none";document.body.appendChild(F)}document.getElementById("_map_marker_speeder").innerHTML=""}if(iToolTipStyle==0)hideToolTipMenu();if(iToolTipStyle==0)hideToolTipMenu();this.ClPI=this.tR-this.downX;this.c970q=this.tS-this.downY;if(!px&&ContentInfo&&ContentInfo.isVisible())ContentInfo.LG8O9(true);this.sF.moveTo(this.ClPI,this.c970q);this.cN=true;this.cn=true}else if(this.cS&&this.cL){if(this.aY()){this.cR=true;this.lu()}}else if(this.sS==ts.tb||this.sS==ts.ta||this.sS==ts.lz||this.sS==ts.ly){var A=this.zp(this.tR,this.tS),_=this.zo(this.tR,this.tS);if(this.zy!=null){this.tG.pts[1]=new MPoint(cq.zn(A,_));this.tG.update()}}else if(this.l6=="LayerDrawMap"&&iToolTipStyle==0)hideToolTipMenu()};Maplet.prototype.a6=function(J,E,N,_){var D=0,A=0,K=0,L=0;this.l6=(px)?event.srcElement.id:J.target.id;this.zQ=this.tR;this.zR=this.tS;this.cL=false;if(this.l6.indexOf("MPolyline")!=-1)this.cn=false;if(this.l6!=null)if(this.l6.indexOf("ctrl")>=0)this.sD.hide();else if(J.type=="mouseup")MEvent.trigger(this,"mouseup",J);if(this.sS==ts.ty||this.sS==ts.tu||this.sS==ts.l3)this.d7q("default",this.map);if(this.ff&&this.nI().tJ(this.zQ,this.zR)){this.setZoomLevel(parseInt(this.AP.getZoomLevel()));return}if((this.cN||this.cR)&&(this.cS||this.cO)){this.cN=false;this.cR=false;if(this.cO){if(true||this.AG>0){D=-(this.zQ-this.downX);A=(this.zR-this.downY);K=this.zp(D+this.width/2,-A+this.height/2);L=this.zo(D+this.width/2,-A+this.height/2);this.gA=K;this.gx=L}var O=(px)?event.srcElement:J.target;if(O.getAttribute(cV7)){if(O.getAttribute(R06w8)=="polyline")this.edj5=true;if(O.getAttribute(R06w8)=="marker")this.bV8=true}if(typeof basepoilist!="object"&&!this.DllQ7&&this._G9f)this._G9f=false;this.N31=true;this.Y$_8=new Date().getTime();maplet.setZoomLevel(maplet.AG);this.N31=false;if(apiType==1)MEvent.trigger(this,"pan",new MPoint(this.toMapCoordinate(this.width/2,this.height/2)));else MEvent.trigger(this,"pan","&act=pan&ctr="+this.toMapCoordinate(this.width/2,this.height/2));if(this.allowDrawingDragMap&&((this.sS==ts.tb||this.sS==ts.ta||this.sS==ts.lz||this.sS==ts.ly)))this.Y7d32=false}else{var G=1,F=Math.max(1,Math.abs(this.zQ-this.downX));if(this.sS==1){D=(this.zQ+this.downX)/2;A=(this.zR+this.downY)/2;K=this.zp(D,A);L=this.zo(D,A);this.gA=K;this.gx=L;if(F<this.imgWidth)G=Math.min(sY-this.AG,Math.max(1,parseInt(Math.log(this.imgWidth/F)/Math.log(2))));this.setZoomLevel(this.AG+G);if(apiType==1)MEvent.trigger(this,"zoomin",this.AG);else MEvent.trigger(this,"zoomin","&act=zoomin&zm="+this.AG)}else if(this.sS==2){D=(this.zQ+this.downX)/2;A=(this.zR+this.downY)/2;K=this.zp(D,A);L=this.zo(D,A);this.gA=K;this.gx=L;if(F<this.imgWidth)G=Math.min(this.AG,Math.max(1,parseInt(Math.log(this.imgWidth/F)/Math.log(2))));this.setZoomLevel(this.AG-G);if(apiType==1)MEvent.trigger(this,"zoomout",this.AG);else MEvent.trigger(this,"zoomout","&act=zoomout&zm="+this.AG)}else if(this.sS==ts.tv){var Q=this.gA+(Math.max(this.zQ,this.downX)-this.width/2)*this.xg/this.imgWidth,R=this.gx-(Math.min(this.zR,this.downY)-this.height/2)*this.xf/this.imgHeight;cq.li=Q;cq.lf=R;var P=cq.zn(),C=this.gA+(Math.min(this.zQ,this.downX)-this.width/2)*this.xg/this.imgWidth,I=this.gx-(Math.max(this.zR,this.downY)-this.height/2)*this.xf/this.imgHeight;cq.li=C;cq.lf=I;var H=cq.zn();cq.li=C;cq.lf=R;var B=cq.zn();cq.li=Q;cq.lf=I;var M=cq.zn(),$="&act=lookup&max="+P+"&min="+H+"&mmx="+B+"&mxm="+M;if(this.vA!="undefined")this.setMode(this.vA);this.cQ=true;if(apiType==1)MEvent.trigger(this,"lookup",{action:"lookup",max:new MPoint(P),min:new MPoint(H),mmx:new MPoint(B),mxm:new MPoint(M)});else MEvent.trigger(this,"lookup",$)}else if(this.sS==ts.$9f){this.snapshotBox.evL();this.snapshotBox.K9J=false}this.sD.hide();this.sD.resize(1,1);this.sD.moveTo(-10,-10)}}};Maplet.prototype.a7=function(D){function _(){if(this.GK04==null){this.GK04=this.AG;_.apply(this)}else if(this.GK04!=this.Ai){var D=Math.abs(this.Ai-this.AG)/10,B=0.25;D=D<B?B:D;if(this.tK<0){this.GK04-=D;if(this.GK04<=this.Ai+0.05)this.GK04=this.Ai}else{this.GK04+=D;if(this.GK04>=this.Ai-0.1)this.GK04=this.Ai}if(this.GK04!=this.Ai){var C=Math.pow(2,this.GK04)/Math.pow(2,this.AG),$=(this.width/2-this.asli)*(C-1),A=(this.height/2-this.$iX)*(C-1);this.AN(this.GK04,$,A)}if(this.GK04==this.Ai)_.apply(this);else getTimeout(this,_,0)}else{this.GK04=null;this.tK=0;this.setZoomLevel(this.Ai);this.Ai=0}}var $=D||window.event;if(typeof $=="object"&&$){if(typeof $.wheelDelta=="undefined")$.wheelDelta=-$.detail;if(typeof $.srcElement=="undefined")$.srcElement=$.target;if($.wheelDelta==0||(this.AG==te&&$.wheelDelta<0)||(this.AG==sY&&$.wheelDelta>0))return;if(this.fa)return;if(typeof this.tK=="undefined")this.tK=0;if(typeof this.Ai=="undefined")this.Ai=0;var A=k9B($.srcElement,j25$O);if(!A||A=="false"){_66($);var E=$.wheelDelta<0?-1:1;this.tK+=E<0?Math.floor(E):Math.ceil(E);if(this.tK==0)return;var B=true;if(ContentInfo&&ContentInfo.isVisible()){var C=this.toScreenCoordinate(avBubble.ax729);if(_isInsideRect({x:C[0],y:C[1]},{min:{x:0,y:0},max:{x:this.width,y:this.height}}))B=false}if(B){this._61="wheel";if(typeof this.l6=="undefined")this.a3($);this.asli=this.tR;this.$iX=this.tS;this.wUW=this.toMapCoordinate(this.asli,this.$iX);this.QhIW6($.wheelDelta)}this.Ai=parseInt(this.AG+this.tK);if(this.Ai<te)this.Ai=te;if(this.Ai>sY)this.Ai=sY;if(ZOOM_TRANSITION&&this.GK04==null){if(ContentInfo&&ContentInfo.isVisible())this.GK04=this.Ai;_.apply(this)}}}};var px=false,D2a=false,_F62=false,e1Kcn=false,_7n71=false,gvQ2=false,s,bi3=navigator.userAgent.toLowerCase();if(s=bi3.match(new RegExp("msie ([\\d.]+)"))){px=true;if(cm5UC(s[1],0)==6)D2a=true}else if(s=bi3.match(new RegExp("firefox/([\\d.]+)")))_F62=true;else if(s=bi3.match(new RegExp("chrome/([\\d.]+)")))e1Kcn=true;else if(s=bi3.match(new RegExp("opera.([\\d.]+)")))gvQ2=true;else if(s=bi3.match(new RegExp("version/([\\d.]+).*safari")))_7n71=true;var ut=document.qS?1:0,lm=(px)?"document.all.":"document.",yj=(px)?".style":"";if(px){document.write("<html xmlns:v='urn chemas-microsoft-com:vml'>");document.write("<style>v\\:* {behavior: url( #default#VML )}</style>")}document.write("<style type='text/css'> ");document.write(".ptlabel {  ");document.write("  text-decoration: none;");document.write("  cursor: pointer;");document.write("  font-family: Arial, Helvetica, sans-serif; ");document.write("  font-size: 8pt; ");document.write("}  ");document.write("");document.write(".tooltiptitle {");document.write("  color: #2754bb; ");document.write("  text-decoration: none;");document.write("  cursor: pointer;");document.write("  font-family: Arial, Helvetica, sans-serif; ");document.write("  font-size: 14px;");document.write("  padding: 5px;");document.write(" font-weight:bold");document.write("}  ");document.write("");document.write(".tooltipcontent { ");document.write("  color: #000000; ");document.write("  text-decoration: none;");document.write("  cursor: pointer;");document.write("  font-family: Arial, Helvetica, sans-serif; ");document.write("  font-size: 12px; ");document.write("  padding:0 3px ");document.write("}  ");document.write("");document.write(".hotspotlabel {");document.write("  position: absolute;");document.write("  color: #000; ");document.write("  text-decoration: none;");document.write("  cursor: pointer;");document.write("  font-family: Arial, Helvetica, sans-serif; ");document.write("  font-size: 10pt;");document.write("}  ");document.write("");document.write(".editableimg { ");document.write("  position: absolute;");document.write("  overflow: hidden;  ");document.write("  cursor: pointer;");document.write("  border: 1px solid #fff;  ");document.write("  z-index: 1000;  ");if(px)document.write("  filter: alpha( opacity = 60 );");else document.write("  opacity: 0.6;  ");document.write("  font-size: 0px; ");document.write("  display: block; ");document.write("}  ");document.write("");document.write(".buffering {");document.write("  position: absolute;");document.write("  height: 16px;");document.write("  z-index: 24; ");if(px)document.write("  filter: alpha( opacity = 60 );");else document.write("  opacity: 0.6;  ");document.write("  font-size: 12px;");document.write("  font-weight: bold; ");document.write("  background-color: #fff;  ");document.write("  color: #000; ");document.write("  border: 0px solid #000;  ");document.write("  text-align: center;");document.write("  padding-top: 0px;  ");document.write("  display: block; ");document.write("}  ");document.write("");document.write(".tiplabel { ");document.write("  position: absolute;");document.write("  height: 12px;");document.write("  z-index: 0; white-space: nowrap; ");document.write("  display: block; ");document.write("  background-color: #FFFFCC;  ");document.write("  border: 1px solid #f00;  ");document.write("  color: #f00; ");document.write("  font-size: 12px;");document.write("  font-weight: bold; ");document.write("}  ");document.write("");document.write("#ToolTip {  ");document.write("  position: absolute;");if(px)document.write("  filter: alpha( opacity = 80 );");else document.write("  opacity: 0.8;  ");document.write("  width: 100px;");document.write("  top: 0px; ");document.write("  left: 0px;");document.write("  z-index: 24; ");document.write("  visibility: hidden;");document.write("}  ");document.write("");document.write("#loading {  ");document.write("  position: absolute;");document.write("  z-index: 24; ");if(px)document.write("  filter: alpha( opacity = 60 );");else document.write("  opacity: 0.6;  ");document.write("  font-size: 13px;");document.write("  font-weight: bold; ");document.write("  background-color: #fff;  ");document.write("  color: #000; ");document.write("  border: 0px solid #000;  ");document.write("  text-align: center;");document.write("  padding-top: 4px;  ");document.write("  display: block; ");document.write("}  ");document.write("");document.write("#mbglabel { ");document.write("  position: absolute;");document.write("  z-index: 0;  ");document.write("  white-space: nowrap;  ");document.write("  display: block; ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mfglabel { ");document.write("  position: absolute;");document.write("  z-index: 0;  ");document.write("  white-space: nowrap;  ");document.write("  display: block; ");document.write("  visibility: visible;  ");document.write("  background-color: #FFFFCC;  ");document.write("}  ");document.write("");document.write("#stylelabel {  ");document.write("  position: absolute;");document.write("  z-index: 24; ");if(px)document.write("  filter: alpha( opacity = 80 );");else document.write("  opacity: 0.8;  ");document.write("  font-size: 13px;");document.write("  font-weight: bold; ");document.write("  background-color: #fff;  ");document.write("  color: #000; ");document.write("  border: 1px solid #000;  ");document.write("  text-align: center;");document.write("  padding-top: 4px;  ");document.write("  display: block; ");document.write("}  ");document.write("");document.write("#mapbar-overview-viewport {");document.write("  position: absolute;");document.write("  width: 0px;  ");document.write("  top: 0px; ");document.write("  left: 0px;");document.write("  height: 0px; ");document.write("  z-index: 10; ");document.write("  font-size: 0px; ");if(px)document.write("  filter: alpha( opacity = 50 );");else document.write("  opacity: 0.5;  ");document.write("  background-color: white;  ");document.write("  border: 2px solid white;  ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mapbar-overview-viewframe {  ");document.write("  position: absolute;");document.write("  width: 0px;  ");document.write("  top: 0px; ");document.write("  left: 0px;");document.write("  height: 0px; ");document.write("  z-index: 11; ");document.write("  font-size: 0px; ");document.write("  border: 2px solid #D50F1E;  ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mapbar-overview-viewpad_ctrl { ");document.write("  position: absolute;");document.write("  width: 0px;  ");document.write("  top: 0px; ");document.write("  left: 0px;");document.write("  height: 0px; ");document.write("  z-index: 12; ");document.write("  font-size: 0px; ");document.write("  border: 2px solid #D50F1E;  ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mapbar-bordertop {  ");document.write("  position: absolute;");document.write("  z-index: 2;  ");document.write("  font-size: 0px; ");document.write("  border-top: 1px solid #949694; ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mapbar-borderbtm {  ");document.write("  position: absolute;");document.write("  z-index: 2;  ");document.write("  font-size: 0px; ");document.write("  border-bottom: 1px solid #949694; ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mapbar-borderlft {  ");document.write("  position: absolute;");document.write("  z-index: 2;  ");document.write("  font-size: 0px; ");document.write("  border-left: 1px solid #949694;");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write("#mapbar-borderrgt {  ");document.write("  position: absolute;");document.write("  z-index: 2;  ");document.write("  font-size: 0px; ");document.write("  border-right: 1px solid #949694;  ");document.write("  visibility: visible;  ");document.write("}  ");document.write("");document.write(".contextmenuitem {");document.write("  color: #000000; ");document.write("  text-decoration: none;");document.write("  cursor: pointer;");document.write("  font-family: Arial, Helvetica, sans-serif; ");document.write("  font-size: 9pt; ");document.write("  padding:3px 12px 3px 0; ");document.write("  width: 100%; ");document.write("}  ");document.write("");document.write(".contextmenutable {  ");document.write("  text-decoration: none;");document.write("  cursor: pointer;");document.write("}  ");document.write("");document.write(".mapcontextmenu { ");document.write("  position: absolute;");document.write("  filter: alpha( opacity = 90);-moz-opacity: 0.90; opacity:0.9; ");document.write("  background-color: #e8f2fd; ");document.write("  padding: 1px; ");document.write("  border: 1px solid #437abf; ");document.write("  top: 0px; ");document.write("  left: 0px;");document.write("  z-index: 24; ");document.write("  visibility: hidden;");document.write("}  ");document.write("");document.write(".mapCirEdging .borT, ");document.write("  .mapCirEdging .borB { ");document.write("  height: 1px; ");document.write("  margin: 0 1px;  ");document.write("  border-bottom: 1px solid #8F8F8F; ");document.write("  line-height: 1px;  ");document.write("  font-size: 1px; ");document.write("}  ");document.write("");document.write(".mapCirEdging .borB {");document.write("  border: 0;");document.write("  border-top: 1px solid #8F8F8F; ");document.write("}  ");document.write("");document.write(".mapCirEdging .borT2, .mapCirEdging .borB2 { ");document.write("  height: 1px; ");document.write("  border: 1px solid #BCBCBC;  ");document.write("  border-top: 0;  ");document.write("  border-bottom: 0;  ");document.write("  line-height: 1px;  ");document.write("  font-size: 1px; ");document.write("}  ");document.write("");document.write(".mapCirEdging .MPBox2 { ");document.write("  height: auto;");document.write("  border: 1px solid #8F8F8F;  ");document.write("  border-top: 0;  ");document.write("  border-bottom: 0;  ");document.write("  background: #fff;  ");document.write("}  ");document.write("");document.write(".mapCirEdging .MPbox {  ");document.write("  margin: 3px; ");document.write("  font-size: 12px;");document.write("  text-align: left;  ");document.write("}  ");document.write("</style>");if(typeof xl=="undefined")var xl=strImgsvrUrl;if(typeof ds=="undefined")var ds="mapbar";if(typeof en=="undefined")var en=0;if(typeof rs=="undefined")var rs=0;if(typeof apiType=="undefined")var apiType=0;if(typeof hs=="undefined")var hs=false;if(typeof MOUSEWHEEL=="undefined")var MOUSEWHEEL=true;if(typeof kp=="undefined")var kp=true;if(typeof bDefaultControlOn=="undefined")var bDefaultControlOn=false;if(typeof hbo=="undefined")var hbo=false;if(typeof otp=="undefined")var otp=false;if(typeof ZOOM_TRANSITION=="undefined")var ZOOM_TRANSITION=true;if(typeof bsc=="undefined")var bsc=true;if(typeof __mapbar_magic_id=="undefined")var __mapbar_magic_id="";if(typeof REFRESH_MK_INDEX!="boolean")var REFRESH_MK_INDEX=true;if(typeof SNAPSHOT_SERVER!="string")var SNAPSHOT_SERVER="http://ditu.pujia.com/preview/snapshot.php";if(typeof SNAPSHOT_MAPIMG_URI_PREFIX!="string")var SNAPSHOT_MAPIMG_URI_PREFIX="http://img[1-9]?.mapbar.com/maplite/";if(typeof SNAPSHOT_MARKER_URI_PREFIX!="string")var SNAPSHOT_MARKER_URI_PREFIX="http://img[1-9]?.mapbar.com/maplite/mapbank/ditu/";var SNAPSHOT_OPTIONS={mode:"fullscreen",format:"png",depth:0,processMode:"event"};if(typeof ALLOW_MV!="boolean")var ALLOW_MV=true;if(typeof cV7!="string")var cV7="_dragmap";if(typeof R06w8!="string")var R06w8="_overlay";if(typeof j25$O!="string")var j25$O="_disable_mw";if(typeof TET!="string")var TET="_mlayer";var c75=2,ac=null,ad=true;if(typeof bp=="undefined")var bp=true;if(typeof oo=="undefined")var oo=true;if(typeof bmc=="undefined")var bmc=false;if(typeof OVER_LOCATION!="object"||OVER_LOCATION)var OVER_LOCATION=null;if(typeof STD_BUBBLE_WIDTH=="undefined")var STD_BUBBLE_WIDTH=217;if(typeof MIN_BUBBLE_HEIGHT=="undefined")var MIN_BUBBLE_HEIGHT=120;if(typeof OVER_WIN_WIDTH!="number")OVER_WIN_WIDTH=150;else if(OVER_WIN_WIDTH<100)OVER_WIN_WIDTH=100;else if(OVER_WIN_WIDTH>210)OVER_WIN_WIDTH=210;if(typeof OVER_WIN_HEIGHT!="number")OVER_WIN_HEIGHT=120;else if(OVER_WIN_HEIGHT<100)OVER_WIN_HEIGHT=100;else if(OVER_WIN_HEIGHT>210)OVER_WIN_HEIGHT=210;if(typeof MAX_BUBBLE_HEIGHT=="undefined")var MAX_BUBBLE_HEIGHT=380;var sX=strImgsvrUrl+"images/mask.gif",ul=strImgsvrUrl+"images/node.gif",lV=strImgsvrUrl+"images/wmk.gif";if(typeof LPN_HOVERING_TIME=="undefined")var LPN_HOVERING_TIME=100;var l6M=null;if(typeof gQ=="undefined")gQ=0;var xz="",AB="";Array.prototype.clear=function(){while(this.length>0)this.pop()};document.write("<img id=\"sendmapload\" style=\"display:none;visibility:hidden;\" />");document.writeln("<div id=\"myalert\" style=\"position:absolute;z-index:100000;filter:alpha(opacity=85);opacity:0.85;visibility:hidden;background-color:white;padding:1px;\"></div>");var sb=0,sc="<div id=\"loading\" unselectable = \"on\"><img src=\""+strImgsvrUrl+"images/loading.gif\"></div>";if(typeof bArrow=="undefined")var bArrow=0;var sB=new Image(),initialize=0,xN=(en==0)?new Array(tX("%u5415%uDD90%uE7F2%uD86E"),tX("%u5415%uA728%uB18A%uD86E"),tX("%u5415%uA22D%uAC8F%uD86E"),tX("%u5415%uA768%uB1CA%uD86E"),tX("%u6D4F%uFF1A%u1FAC%u0798"),tX("%u70BF%uC2B4%uE1D6%u1827%u0775%uE467"),tX("%u6540%uBE65"),tX("%u7F2B%uDB38"),tX("%u62D1%uB571%uC179%uC628%uE732%u1827%u0775%uE467")):new Array("Go left","Go up","Go right","Go down","Measure distance","Click to zoom","Zoom In","Zoom Out","Drag to zoom"),lt=(en==0)?"\u62d6\u62fd\u6b64\u70b9":"drag to move this point",pe=new Array(),pa=new Array(),pF=2,sI=new Array("W","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14"),sj=new Array(90,40,20,10,5,2,1,0.5,0.2,0.1,0.05,0.02,0.01,0.005,0.002,0.001),qP=new Array(90*0.8,40*0.8,20*0.8,10*0.8,5*0.8,2*0.8,0.8,0.5*0.8,0.2*0.8,0.1*0.8,0.05*0.8,0.02*0.8,0.01*0.8,0.005*0.8,0.002*0.8,0.001*0.8),nM=new Array(10,10,10,10,10,10,10,10,10,10,50,50,50,50,50,50),w8=new Array(0,0,0,0,0,0,0,0,75,0,0,-150,0,0,0,0);if(typeof DEFAULT_MAX_ZOOM_LEVEL!="number")var DEFAULT_MAX_ZOOM_LEVEL=14;if(typeof DEFAULT_MIN_ZOOM_LEVEL!="number")var DEFAULT_MIN_ZOOM_LEVEL=0;var sY=DEFAULT_MAX_ZOOM_LEVEL,te=DEFAULT_MIN_ZOOM_LEVEL,wp=100000,sw=105,sx=35,sz=new Array(-360,360),sy=new Array(-90,90),$3kS=null,uU=8,uS=15,uT=strImgsvrUrl+"images/overclose.gif",uV=strImgsvrUrl+"images/overopen.gif";if(!otp){uT=strImgsvrUrl+"images/overclose2.gif";uV=strImgsvrUrl+"images/overopen2.gif"}var uW=[0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11],bpp=[xl+"mapbank/base/",2,13],vs=strMapsvrUrl+"images/done.gif",vt=strMapsvrUrl+"images/edit.gif",v3=strMapsvrUrl+"images/stretch.gif",at=0,as=1,au=2,av=0,ar=2,s9=1001;if(typeof TRAFFIC_REFRESH_INTERVAL!="number")var TRAFFIC_REFRESH_INTERVAL=5*60;if(typeof TRAFFIC_MIN_LEVEL!="number")var TRAFFIC_MIN_LEVEL=8;if(typeof TRAFFIC_MAX_LEVEL!="number")var TRAFFIC_MAX_LEVEL=sY;function setMoveMode(){maplet.setMode("pan");maplet.setCursorStyle("default","")}

