var ADURL="";var cacheIMG=[];var wINDEX=1;function wsetZINDEX(a,b){if(y5){clearTimeout(y5)}$(a).closest("div").css("z-index",++wINDEX);px?$("#"+b).css("z-index",++wINDEX):null;b?setToolTipMenu(b,a):hideToolTipMenu()}if(typeof strImgsvrUrl=="undefined"){strImgsvrUrl="http://img.mapbar.com/maplite/"}if(typeof strMapsvrUrl=="undefined"){strMapsvrUrl="http://api.mapbar.com/api/"}var transparencyLevel=60;var DirectionInfo="";var strLicenseKey="8890";var strRemoteIP="www.mapbar.com";if(typeof iToolTipStyle=="undefined"){var iToolTipStyle=1}var mapwidth=600;var mapheight=400;var MapBackgroundColor="#EBEAE8";var arrayCity=new Array();function getPid(b){if(typeof arrayCity[b]=="undefined"){return b}return arrayCity[b]}var topColor="#FFFFFF";var subColor="#FFFFFF";var xoffset=0;var yoffset=0;var sN=function(){this.clear=function(){};this.paint=function(){};this.lB=function(){};this.lE=function(){};this.setColor=function(){}};var jsGraphics=function(a){};var q1=function(a){if(document.getElementById(a)!=null){return document.getElementById(a)}return null};var q2=function(a){if(document.getElementById(a)!=null){return document.getElementById(a).style}return null};var qZ=function(b,f,e,c,a,h,g,d){document.writeln('<div unselectable="on" id="'+b+'" style="position:absolute; overflow:none; left:'+f+"px; top:"+e+"px; width:"+c+"px; height:"+a+"px; visibility:"+(h?"visible;":"hidden;")+"z-Index:"+g+';">');document.writeln(d);document.writeln("</div>")};var gq=function(a,d,h,b,i,c,f,g){var e=document.createElement("div");e.unselectable="on";e.id=a;e.style.position="absolute";e.style.top=parseInt(h)+"px";e.style.left=parseInt(d)+"px";e.style.zIndex=f;e.style.width=parseInt(b)+"px";e.style.height=parseInt(i)+"px";e.style.visibility=(c)?"visible":"hidden";e.innerHTML=g;return e};var gt=function(c,e,d,b,a){var f=new Image();f.unselectable="on";f.style.position="absolute";f.style.top=parseInt(d)+"px";f.style.left=parseInt(e)+"px";f.style.width=parseInt(b)+"px";f.style.height=parseInt(a)+"px";if(c!="undefined"){f.src=c}f.onerror=function(){this.onerror=null;if(this.parentNode){this.parentNode.removeChild(this)}};return f};var gu=function(a,b){var d=document.createElement("div");d.style.position="absolute";d.unselectable="on";var c='<div unselectable="on" id="mbglabel" style="border:1px solid '+b+";left:2px;top:2px;background-color:"+b+";color:"+this.color+';"><table border="1" cellspacing="0" cellpadding="0" bordercolor="'+b+'"><tr><td width="100%"><font class="ptlabel" color="'+b+'">'+a+"</font></td></tr></table></div>";c+='<div unselectable="on" id="mfglabel" style="border:1px solid '+b+";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="'+b+'" title="'+a+'">'+a+"</font></td></tr></table></div>";d.innerHTML=c;return d};var PerformControl=function(c,b,d){var a=b.parentNode.q9;switch(d){case 1:hideBubble(a);a.panTo(parseInt(a.width)/2,0);break;case 2:hideBubble(a);a.panTo(0,parseInt(a.height)/2);break;case 3:hideBubble(a);a.panTo(-parseInt(a.width)/2,0);break;case 4:hideBubble(a);a.panTo(0,-parseInt(a.height)/2);break;case 5:hideBubble(a);a.zoomIn();break;case 6:hideBubble(a);a.zoomOut();break;case 7:hideBubble(a);a.setMode(ts.tb);break;case 8:hideBubble(a);var f=parseInt(b.style.top)-96+parseInt(a.ga.top);var e=parseInt((px)?event.clientY:c.clientY)-parseInt(a.offsetY)-parseInt(a.top);e-=f;if(!px&&a.vb.style.position!="absolute"){}AB=sY-Math.max(0,Math.min(sY,parseInt((parseInt(e)-100)/(132/(sY-1)))));b.parentNode.zI(AB);a.setZoomLevel(AB);break;default:break}};var y4=null;var showMouseTipBox=function(a,f,d,e){try{if(y4==null||y4=="undefined"){var b='<table border="1" cellspacing="0" cellpadding="0" bordercolor=#FF0000><tr><td width="100%" bgcolor=#FFFFCC><font class="ptlabel" color="#000000" id="pjlxl">'+d+"</font></td></tr></table>";y4=gq("mousetipbox",parseInt(a)+10,parseInt(f)+18,70,20,1,100,b);y4.unselectable="on";y4.style.MozUserSelect="none"}else{y4.style.left=(parseInt(a)+10)+"px";y4.style.top=(parseInt(f)+18)+"px";y4.visibility="visible"}if(y4!=null&&(y4.parentNode==null||y4.parentNode!=e)){e.appendChild(y4)}}catch(c){}};var nX=function(){if(y4!=null){if(y4.parentNode!=null){_removeNode(y4)}y4=null}};var nE=function(a){return(px)?event.srcElement.id:a.target.id};var imageTileError=function(a){if(a.width==300&&a.ntry=="0"){a.ntry="1";a.src=a.src+"?"}else{if(a.width==300&&a.ntry=="1"){a.ntry="2";a.src=a.src+"?"}else{a.ntry="3";a.onerror=null;a.src=strImgsvrUrl+"images/mask.gif";a.style.width="300px";a.style.height="300px"}}};var imageTileOk=function(a){a.onerror=null;a.onload=null;a.style.width="300px";a.style.height="300px"};var fJ=function(b,c){var a=false;while(b!=null){if((typeof c=="string"&&b.id==c)||(b==c)){a=true;break}b=b.parentNode}return a};var pE=function(c,e,d,b,a,f){this.pP=gt(c,e,d,b,a);this.gd=0;this.ge=0;this.name=name;f.appendChild(this.pP);this.hide=function(){this.pP.style.visibility="hidden"};this.show=function(){this.pP.style.visibility="visible"};this.moveTo=function(g,h){this.pP.style.left=parseInt(g)+"px";this.pP.style.top=parseInt(h)+"px"};this.resize=function(g,h){this.pP.style.width=parseInt(g)+"px";this.pP.style.height=parseInt(h)+"px"};this.getName=function(){return this.name};this.aW=function(g){g.appendChild(this.pP)}};var yq=function(b,a,c){if(a!="undefined"&&a!=""){b.src=a}b.style.zIndex=c};var vB=function(a,c){try{if(document.getElementById(c)!=null&&a!=null){document.getElementById(c).innerHTML=vo(a.responseText)}}catch(b){}};var vo=function(a){return a};var uP=function(d,e,c){var b=document["mapbar-maplet"];var a=((px)?event.clientX:d.clientX)-b.offsetX-b.left;var f=((px)?event.clientY:d.clientY)-b.offsetY-b.top;b.wN(a,f,e,c)};var lbp2=function(b,a){if(typeof b=="string"&&b!=null&&document.getElementById(b)!=null&&typeof a=="string"&&a!=null){document.getElementById(b).innerHTML+=a}};var y5=null;var waitHideTip=function(){if(y5){clearTimeout(y5)}y5=null;y5=setTimeout("hideToolTipMenu()",300)};var lbp=function(a,g,f,j,b,i,e,c,d){var h='<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">'+e+'</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>";vk_[a]={x:g,y:f,Af:j,wO:(!d?b+h+i:b+i),y6:e,yU:c,nN6x:d};w09(a,g,f,j,(!d?b+h+i:b+i),e,c,d)};var w09=function(h,b,g,f,d,a,c,e){if(typeof h=="string"&&h!=null&&document.getElementById(h)!=null&&typeof d=="string"&&d!=null){if(!e){document.getElementById(h).innerHTML+='<div unselectable="on" class="hotspotlabel" style="position:absolute;left:'+b+"px;top:"+g+"px;width:"+f+'px;height:0px">'+d+"</div>"}else{document.getElementById(h).innerHTML+='<div unselectable="on" style="position:absolute;left:'+b+"px;top:"+g+"px;width:"+f+'px;height:0px">'+d+"</div>"}}};var vk_={};var RIs8_=function(c,b,d){var a=b.parentNode.q9;switch(d){case 1:hideBubble(a);a.panTo(parseInt(a.width)/2,0);break;case 2:hideBubble(a);a.panTo(0,parseInt(a.height)/2);break;case 3:hideBubble(a);a.panTo(-parseInt(a.width)/2,0);break;case 4:hideBubble(a);a.panTo(0,-parseInt(a.height)/2);break;case 5:hideBubble(a);a.zoomIn();break;case 6:hideBubble(a);a.zoomOut();break;case 7:hideBubble(a);a.setMode(ts.tb);break;case 8:hideBubble(a);var f=parseInt(b.style.top)-96+parseInt(a.ga.top);var e=parseInt((px)?event.clientY:c.clientY)-parseInt(a.offsetY)-parseInt(a.top);e-=f;if(!px&&a.vb.style.position!="absolute"){}AB=sY-Math.max(0,Math.min(sY,parseInt((parseInt(e)-100)/(132/(sY-1)))));b.parentNode.zI(AB);a.setZoomLevel(AB);break;default:break}};function CreateToolTip(a,d,c){var e='<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">'+d+'</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(a).innerHTML=e;var b=document.getElementById(a).childNodes[0];document.getElementById(a).style.width=b.clientWidth;document.getElementById(a).style.height=b.clientHeight}var setToolTipMenu=function(f,b){$(".pojaaAD").hide();var b=$(b);var e=b.offset();mapwidth=maplet.width-3;mapheight=maplet.height-5;var a=b.closest("div").find(".pojaaAD");var d,c=0;document.getElementById("img_"+f)?document.getElementById("img_"+f).src=cacheIMG["img_"+f].src:null;d=(a.width()+e.left-350>mapwidth)?(350+mapwidth-e.left-a.width()):e.left-350<0?b.width()/2+340-e.left:20;c=(a.height()+b.height()+e.top-58>mapheight&&e.top-58>mapheight/2)?(-a.height()):b.height();a.css({left:d,top:c}).show()};var hideToolTipMenu=function(){$(".pojaaAD").hide()};var 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"};var UpdateContent=function(a,c,b){if(qc==0){CreateToolTip(a,c,b);qc=1}if(document.getElementById("mytooltiptitle")){document.getElementById("mytooltiptitle").innerHTML=c}if(document.getElementById("mytooltipcontent")){document.getElementById("mytooltipcontent").innerHTML=b}var e=document.getElementById("ToolTip");var d=document.getElementById("mytooltip_container");if(d){e.style.width=d.clientWidth+"px";e.style.height=d.clientHeight+"px"}};var 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,l2lg:24};var showLoading=function(){sb++;if(document.getElementById("loading")){document.getElementById("loading").style.display="block";document.getElementById("loading").style.visibility="visible"}};var hideLoading=function(){sb--;if(sb<=0){if(document.getElementById("loading")){document.getElementById("loading").style.display="none";document.getElementById("loading").style.visibility="hidden";if(a&&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 a=="undefined"){var a=false}else{a=false}}}}};var vZ=function(a){if(document.getElementById("loading")){document.getElementById("loading").style.left=((a.width-parseInt(document.getElementById("loading").clientWidth))/2)+"px";document.getElementById("loading").style.top=((a.height-parseInt(document.getElementById("loading").clientHeight))/2)+"px"}};var 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 $V5(a){if(typeof a=="undefined"){return false}return a.constructor.toString().indexOf("Array")!=-1}function EonW(c){var b=0,a=0;if(typeof c=="string"&&c){c=document.getElementById(c)}if(typeof c=="object"&&c){do{b+=c.offsetTop||0;a+=c.offsetLeft||0;if(c.offsetParent==document.body){if(c.style.position=="absolute"){break}}c=c.offsetParent}while(c)}return[a,b]}function EU6(e,f){for(var d=false,c=-1,a=f.length,b=a-1;++c<a;b=c){if(((f[c].y<=e.y&&e.y<f[b].y)||(f[b].y<=e.y&&e.y<f[c].y))&&(e.x<(f[b].x-f[c].x)*(e.y-f[c].y)/(f[b].y-f[c].y)+f[c].x)){d=!d}}return d}function e2K(b,a){if(a.max.x>b.x&&a.min.x<=b.x&&a.max.y>b.y&&a.min.y<=b.y){return true}return false}function va_(b,a){return Math.abs((b.min.x+b.max.x)/2-(a.min.x+a.max.x)/2)<((b.max.x+a.max.x-b.min.x-a.min.x)/2)&&Math.abs((b.min.y+b.max.y)/2-(a.min.y+a.max.y)/2)<((b.max.y+a.max.y-b.min.y-a.min.y)/2)}function p4E4(b,a){var e=(b.end.y-b.start.y)*(a.end.x-a.start.x)-(a.end.y-a.start.y)*(b.end.x-b.start.x);if(e==0){return false}else{var d=((b.end.x-b.start.x)*(a.end.x-a.start.x)*(a.start.y-b.start.y)+(b.end.y-b.start.y)*(a.end.x-a.start.x)*b.start.x-(a.end.y-a.start.y)*(b.end.x-b.start.x)*a.start.x)/e;var c=((b.end.y-b.start.y)*(a.end.y-a.start.y)*(a.start.x-b.start.x)+(b.end.x-b.start.x)*(a.end.y-a.start.y)*b.start.y-(a.end.x-a.start.x)*(b.end.y-b.start.y)*a.start.y)/(-e);if((d-b.start.x)*(d-b.end.x)<=0&&(d-a.start.x)*(d-a.end.x)<=0&&(c-b.start.y)*(c-b.end.y)<=0&&(c-a.start.y)*(c-a.end.y)<=0){return true}}return false}var l5h=function(a){if(window.event){return window.event}else{while(a.caller){a=a.caller}if(typeof a.arguments!="undefined"&&a.arguments&&a.arguments.length>0){if(a.arguments[0].constructor.toString().indexOf("Event")){return a.arguments[0]}}}return null};var R4_0=function(a){if(typeof a=="undefined"){return}if(window.event){window.event.returnValue=false;window.event.cancelBubble=true}else{a.preventDefault();a.stopPropagation()}};function aa(a){if(typeof a=="string"){return document.getElementById(a)}else{return null}}_removeNode=document.all?function(){var a;return function(b){if(b&&b.tagName!="BODY"){a=a||document.createElement("div");a.appendChild(b);a.innerHTML=""}}}():function(a){if(a&&a.parentNode&&a.tagName!="BODY"){a.parentNode.removeChild(a)}};n08H2=function(a){var b=new RegExp("<.*?>|\r|\n","gi");return function(c){return c.replace(b,"")}}();var Tl9RR=function(a,d,c,b){this.URL=a;this.VD15P=d;this.$X$5=c;this.$8u1V=b};Tl9RR.prototype.B18=function(){var c=document.getElementById("scriptTemp");if(c){c.parentNode.removeChild(c)}var d=document.createElement("script");d.language="javascript";d.type="text/javascript";d.id=(this.$8u1V&&this.$8u1V==true)?"Temp"+Math.random():"scriptTemp";d.src=(this.$X$5&&this.$X$5==true)?this.URL+"?"+Math.random():this.URL;var b=this.VD15P?(this.VD15P):parseInt;var a=function(){if(navigator.appVersion.match(new RegExp("\\bMSIE\\b"))){if(d.readyState=="loaded"||d.readyState=="complete"){b()}}else{b()}};if(d.attachEvent){d.attachEvent("onreadystatechange",a)}else{d.addEventListener("load",a,false)}document.body.insertBefore(d,document.body.firstChild)};var sC=function(a,d,b){document.getElementById("myalert").style.top=(parseInt(d)-60+parseInt(document.body.scrollTop))+"px";document.getElementById("myalert").style.left=(parseInt(a)-100+parseInt(document.body.scrollLeft))+"px";var c=(en==1)?"Close":tX("%u5175%uE760");document.getElementById("myalert").innerHTML='<table width="196px" border="0" cellpadding="0" cellspacing="0" style="border:1px solid #CCCCCC;"><tr><td height="19px" bgcolor="#8888FF"></td></tr><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;">'+b+'</td></tr><tr><td height="24px" align="center" valign="middle"><input type="button" value="'+c+"\" 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; width: 38px; height:18px; border: 1px solid #4A799C;background-color: #FDFAF3\"></td></tr></table></td></tr></table>";document.getElementById("myalert").style.visibility="visible"};var gP=function(a){if(gQ){sC(100,100,a)}};var cq={pu:{},vp:function(a){return this.pu[a]||function(m,k){var j;if(k.indexOf(",")==-1){var f=-1;var h=0;var b="";var e="";if(k!=null&&parseInt(k.charAt(0),36)>=33){e=k.charAt(0);k=k.substring(1)}for(var g=0;g<(k.length-(c75?1:0));g++){var d=parseInt(k.charAt(g),36)-10;if(d>=17){d=d-7}b+=(d).toString(36);if(d>h){f=g;h=d}}var c=parseInt(b.substring(0,f),16);var l=parseInt(b.substring(f+1),16);if("X"==e){c=-c}if("Y"==e){l=-l}j=new Array();j[0]=(c+l-parseInt(strLicenseKey))/2;j[1]=(l-j[0])/100000;j[0]/=100000;if(j[0]>180){j[0]-=360}m[k]=j;return j}else{j=lru51(k);m[k]=j;return j}}(this.pu,a)},zn:function(n,o,g){if(typeof g!="boolean"){g=false}if(typeof n!="undefined"&&typeof o!="undefined"){this.lf=parseFloat(o);this.li=parseFloat(n)}if(apiType==1&&!g){return Rtnf(this.li+","+this.lf).join(",")}else{var h="";var m=parseInt(parseFloat(Math.max(-90,Math.min(90,this.lf)))*100000);var j=parseInt(parseFloat((this.li<0)?(this.li+360):this.li)*100000);var b=j-m+parseInt(strLicenseKey);var a=j+m;if(b<0){h="X";b=-b}if(a<0){h="Y";a=-a}var e=(b).toString(16);var d=(a).toString(16);for(var c=0;c<e.length;c++){var f=parseInt(e.charAt(c),16);h+=(((f>=10)?(f+7):f)+10).toString(36)}h+="z";for(var l=0;l<d.length;l++){var k=parseInt(d.charAt(l),16);h+=(((k>=10)?(k+7):k)+10).toString(36)}if(c75){h+=h.charAt(c75)}return h.toUpperCase()}}};var xE=function(a){var d="";for(var b=0;b<a.length;b++){var c=a.charCodeAt(b).toString(36).toUpperCase();if(c.length<=1){c="0"+c}d+=c}return d};var sdc=function(a){var d="";for(var b=0;b<a.length;b+=2){var c=a.substring(b,b+2);d+=String.fromCharCode(parseInt(c,36))}return d};var tX=function(a){a=unescape(a);var c=String.fromCharCode(a.charCodeAt(0)-a.length);for(var b=1;b<a.length;b++){c+=String.fromCharCode(a.charCodeAt(b)-c.charCodeAt(b-1))}return c};function Rtnf(c){var e=c.split(",");var a=parseFloat(e[0])*100000%36000000;var f=parseFloat(e[1])*100000%36000000;var d=parseInt(y7w6(a,f)+a);var b=parseInt(TkT3(a,f)+f);return[d/100000,b/100000]}function lru51(b){var e=b.split(",");var a=parseFloat(e[0])*100000%36000000;var f=parseFloat(e[1])*100000%36000000;var d=parseInt(-p_8UO(a,f)+a);var c=parseInt(-Q3U(a,f)+f);d=parseInt(-p_8UO(d,c)+a+((a>0)?1:-1));c=parseInt(-Q3U(d,c)+f+((f>0)?1:-1));return[d/100000,c/100000]}function y7w6(a,b){return RW0(a,b)}function TkT3(a,b){return $477n(a,b)}function p_8UO(a,b){return RW0(a,b)}function Q3U(a,b){return $477n(a,b)}function RW0(a,b){return Pk8(o78(Go96D(b,a),G464(a,b)),o78(du533(a,b),$h73(b,a)))}function $477n(a,b){return Pk8(o78(du533(b,a),G464(a,b)),o78(Go96D(a,b),$h73(b,a)))}function o78(a,b){return a*b}function Pk8(a,b){return a+b}function Go96D(a,b){return Math.cos(a/100000)}function du533(a,b){return Math.sin(a/100000)}function $h73(a,b){return a/9000}function G464(a,b){return a/18000}var fD=function(name,left,top,width,height,visible,AA,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.moveTo=function(x,y){eval(document.body.scrollTop);this.style.left=parseInt(x)+"px";this.style.top=parseInt(y)+"px"};this.resize=function(Af,nN){if(parseInt(Af)>=0&&parseInt(nN)>=0){this.style.width=parseInt(Af)+"px";this.style.height=parseInt(nN)+"px"}};this.nz=function(){return parseInt(this.style.height)};this.nH=function(){return parseInt(this.style.width)};this.qn=function(x,y){return(x>parseInt(this.style.left)&&x<(parseInt(this.style.left)+parseInt(this.style.width))&&y>parseInt(this.style.top)&&y<(parseInt(this.style.top)+parseInt(this.style.height)))};this.appendChild=function(fK){try{this.ld.appendChild(fK)}catch(lM){}};this.removeChild=function(fK){try{_removeNode(fK)}catch(lM){}};this.clear=function(){this.ld.innerHTML=""};this.clean=this.clear;this.getName=function(){return this.name};try{this.ld=gq(this.name,left,top,width,height,visible,AA,content);this.ld.unselectable="on";if(this.f2){this.f2.appendChild(this.ld)}this.style=this.ld.style;this.graphics=(px)?new sN():new jsGraphics(this.name)}catch(lM){}};var MBound=function(c,b,a,f,e,d){this.s4=a;this.tj=c;this.s6=f;this.tl=b;this.s0=(typeof d=="undefined")?sY:parseInt(d);this.tp=(typeof e=="undefined")?te:parseInt(e);this.qn=function(h,i){if(this.s4<h||this.tj>h){return false}var g=(i-this.tl)%360;if(g<0){g+=360}return((this.s6-this.tl)>=g)}};var MBrush=function(b,h,f,c,e,g,d,a){this.color=(typeof b=="undefined")?"#FF0000":b;this.stroke=(typeof h=="undefined")?5:parseInt(h);this.style=(typeof f=="undefined")?0:parseInt(f);this.fill=(typeof c=="undefined")?false:c;this.bgcolor=(typeof e=="undefined")?this.color:e;this.transparency=(typeof g=="undefined")?transparencyLevel:parseInt(g);this.bgtransparency=(typeof d=="undefined")?transparencyLevel/2:parseInt(d);this.arrow=(typeof a=="undefined")?bArrow:a;this.toString=function(){return"com.mapbar.maplet.MBrush"}};var MPoint=function(e,b){this.lat=null;this.lon=null;this.maplet=null;var d=null;var c=null;this.sU=null;this.sV=null;this.h04V=null;if(typeof e!="undefined"||typeof b!="undefined"){if($V5(e)){e=e.join(",")}if(typeof e=="string"&&e.indexOf(",")!=-1){this.pid=e;this.lon=parseFloat(e.split(",")[0]);this.lat=parseFloat(e.split(",")[1])}else{if(!isNaN(parseFloat(e))&&!isNaN(parseFloat(b))){this.pid=e+","+b;this.lon=parseFloat(e);this.lat=parseFloat(b)}else{this.pid=(typeof getPid=="undefined")?e:getPid(e);if(apiType==1){var a=cq.vp(this.pid);this.pid=cq.zn(a[0],a[1]);this.lon=parseFloat(this.pid.split(",")[0]);this.lat=parseFloat(this.pid.split(",")[1])}}}var f=cq.vp(this.pid);this.pid=cq.zn(f[0],f[1]);c=f[0];d=f[1]}this.setMapCoords=function(g,i){this.sU=g;this.sV=i;c=this.maplet.zp(g,i);d=this.maplet.zo(g,i);this.pid=cq.zn(c,d);if(apiType==1){this.lon=this.pid.split(",")[0];this.lat=this.pid.split(",")[1]}else{if(this.lon!=null){var h=Rtnf(c+","+d);this.lon=h[0];this.lat=h[1]}}};this.jI4=function(){this.sU=this.maplet.zl(c,d);this.sV=this.maplet.zm(d,c)};this.qc=function(g){this.maplet=g;this.jI4()};this.toString=function(){return"com.mapbar.maplet.MPoint"}};var lQ={nh:function(h,a,d,c,g){a=parseInt(a);d=parseInt(d);c=parseInt(c);if(a==d){lQ.fF(a,h,d,g);return}this.fF(a,h);var f=Math.max(100,Math.round(c/Math.abs(d-a)));var e=Math.max(1,Math.abs((d-a)/(c/f)));var b=a+e;if(a>d){b=a-e}setTimeout("lQ.nh('"+h+"',"+b+","+d+","+(c-f)+",'"+g+"')",(f))},ni:function(b,a){if(typeof a=="undefined"){a=1000}this.nh(b,0,100,a)},nj:function(b,a){if(typeof a=="undefined"){a=1000}this.nh(b,100,0,a)},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(c,b,a){document.getElementById(c).style.left=parseInt(b)+"px";document.getElementById(c).style.top=parseInt(a)+"px"},move:function(g,f,d,c,b,a,e){this.qH(g,f,d);this.panTo(g,c,b,a,e)},panTo:function(id,nJ,nK,lG,callback){nJ=parseInt(nJ);nK=parseInt(nK);var xa=parseInt(document.getElementById(id).style.left);var xb=parseInt(document.getElementById(id).style.top);lG=parseInt(lG);var g4=nJ-xa;var g5=nK-xb;if(g4==0&&g5==0){if(callback!=null){eval(callback)}return}var g3=Math.abs(g4)+Math.abs(g5);var xd=Math.max(5,g3/(lG/100));var yN=Math.max(100,Math.round(lG/(g3/xd)));var xh=g4*xd/g3;var xi=g5*xd/g3;var uf=xa+xh;var 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))}};var f1={fx:[],uo:100,nk:function(a,e,c,d){this.fx[this.fx.length]=new Image();var b=this.fx.length-1;this.fx[b].q9=a;a.style.filter="alpha(opacity="+this.uo+");";a.style.MozOpacity=(this.uo/100);a.style.opacity=(this.uo/100);a.style.qK=(this.uo/100);if(typeof c!="undefined"){a.width=parseInt(c)+"px";this.fx[b].width=parseInt(c)+"px"}if(typeof d!="undefined"){a.height=parseInt(d)+"px";this.fx[b].height=parseInt(d)+"px"}this.fx[b].f2=this;this.fx[b].pn=b;this.fx[b].ln="0";this.fx[b].onload=function(){if(typeof c!="undefined"){this.width=parseInt(c)+"px"}if(typeof d!="undefined"){this.height=parseInt(d)+"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 c!="undefined"&&!rs){this.q9.width=parseInt(c)+"px";this.q9.style.width=parseInt(c)+"px"}if(typeof d!="undefined"&&!rs){this.q9.height=parseInt(d)+"px";this.q9.style.height=parseInt(d)+"px"}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[b].onerror=function(){if(rs){return false}if(typeof c!="undefined"){this.width=parseInt(c)+"px"}if(typeof d!="undefined"){this.height=parseInt(d)+"px"}this.q9.style.filter=null;if(typeof c!="undefined"&&!rs){this.q9.width=parseInt(c)+"px"}if(typeof d!="undefined"&&!rs){this.q9.height=parseInt(d)+"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.f2[this.pn]=null;this.f2.clearCache();this.f2=null;this.q9=null;this.onload=null;this.onerror=null};showLoading();this.fx[b].src=e},clearCache:function(){hideLoading();var c=1;for(var b=0;b<this.fx.length;b++){if(this.fx[b]!=null&&this.fx[b].ln=="0"){c=0}else{if(this.fx[b]!=null){this.fx[b].q9=null;this.fx[b].f2=null;this.fx[b].onload=null;this.fx[b].onerror=null;delete (this.fx[b])}}}if(c){for(var a=0;b<this.fx.length;a++){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])}}this.fx.length=0;MEvent.trigger(this,"clean")}}};var AO=function(a,f,c,h,j,e,b,d,i){this.maplet=a;this.left=c;this.top=h;this.width=j;this.height=e;this.AG=f;this.wX=51;this.AU=18;this.AV=16;this.cJ=false;this.f2=d;this.x6=(typeof i!="undefined")?i:"";this.lq=0;this.lr=0;this.AP=new fD("LayerZoomBar",this.left,this.top,this.width,this.height,b,2,"",this.f2);var g=(sY/2)*(this.height-this.AU*2-this.wX)/sY+this.AU;this.pH=gt(strImgsvrUrl+"images/"+this.x6+"/zoombg.gif",0,0,this.AV,this.height);this.pI=gt(strImgsvrUrl+"images/"+this.x6+"/zoombg2.gif",0,0,this.AV,g);this.p6=gt(strImgsvrUrl+"images/"+this.x6+"/zoomin.gif",0,0,this.AV,this.AU);this.p7=gt(strImgsvrUrl+"images/"+this.x6+"/zoomout.gif",0,this.height-this.AU,this.AV,this.AU);this.pR=gt(strImgsvrUrl+"images/"+this.x6+"/slider.gif",0,g,this.AV,this.wX);this.pR.id="zoombarSlider";this.AP.ld.appendChild(this.pH);this.AP.ld.appendChild(this.pI);this.AP.ld.appendChild(this.p6);this.AP.ld.appendChild(this.p7);this.AP.ld.appendChild(this.pR);this.pR.onmousedown=function(k){return false};this.setZoomLevel=function(k){k=parseInt(k);if(k<0){k=0}if(k>sY){k=sY}if(this.AG!=k){this.AG=k;this.refresh()}};this.setStyle=function(k){if(typeof k!="undefined"&&this.x6!=k){this.x6=k;this.pH.src=(strImgsvrUrl+"images/"+this.x6+"/zoombg.gif");this.pI.src=(strImgsvrUrl+"images/"+this.x6+"/zoombg2.gif");this.p6.src=(strImgsvrUrl+"images/"+this.x6+"/zoomin.gif");this.p7.src=(strImgsvrUrl+"images/"+this.x6+"/zoomout.gif");this.pR.src=(strImgsvrUrl+"images/"+this.x6+"/slider.gif")}};this.getZoomLevel=function(){return this.AG};this.show=function(){this.AP.show();this.pR.style.visibility="visible"};this.hide=function(){this.AP.hide();this.pR.style.visibility="hidden"};this.resize=function(k){this.height=parseInt(k);this.AP.resize(this.width,this.height);this.pH.style.height=this.height+"px";this.p7.style.top=(this.height-this.AU)+"px";this.refresh()};this.moveTo=function(k,l){this.left=k;this.top=l;this.AP.moveTo(this.left,this.top)};this.refresh=function(){this.paint()};this.paint=function(){g=(sY-this.AG)*(this.height-this.AU*2-this.wX)/sY+this.AU;this.pI.style.height=parseInt(g)+"px";if(this.pR!=null){this.pR.style.top=g;if(this.pR.parentNode==null){this.AP.ld.appendChild(this.pR)}}};this.zoomIn=function(){this.setZoomLevel(this.AG+1)};this.zoomOut=function(){this.setZoomLevel(this.AG-1)};this.qn=function(k,l){return(k>this.left)&&(k<this.left+this.width)&&(l>this.top)&&(l<this.top+this.height)};this.tF=function(l,k,m){if(this.cL){m=m-this.wX/2;f=sY*(this.height-m-this.AU-this.wX)/(this.height-this.AU*2-this.wX);if(m>this.AU&&m<(this.height-this.AU-this.wX)){this.pR.style.top=parseInt(m)+"px";this.pI.style.height=parseInt(m)+"px";if(px){this.maplet.AN(f)}}return true}if(this.qn(k,m)){if(m<(this.AU)||m>(this.height-this.AU)){this.AP.style.cursor=(px)?"hand":"pointer"}else{if(l=="zoombarSlider"){this.AP.style.cursor=(px)?"hand":"pointer"}else{this.AP.style.cursor="default"}}return true}return false};this.tE=function(k,l){this.lq=k;this.lr=l;return this.qn(k,l)};this.tJ=function(k,m){var l=false;this.maplet.sF.ld.style.zoom=1;if(this.cL){if(m<this.AU){this.zoomIn()}else{if(m>(this.height-this.AU)){this.zoomOut()}else{m=m-this.wX/2;m=(m>(this.height-this.AU-this.wX))?(this.height-this.AU-this.wX):((m<this.AU)?this.AU:m);f=sY*(this.height-m-this.AU-this.wX)/(this.height-this.AU*2-this.wX);this.setZoomLevel(parseInt(f+0.5))}}l=true}this.cL=false;return l};this.tC=function(k,l){}};var gb=function(j,f,d,h,a,k,c,g,e,b,i){d=parseInt(d);h=parseInt(h);this.x6=(j==null||j=="undefined")?"":j+"/";this.fi=(typeof i=="undefined")?0:parseInt(i);if(this.fi==2){h=h-35;d=d-10}this.uC=(this.fi)?100:254;this.uC+=h;this.left=d;this.top=h;this.gy="";if(this.fi!=2){this.gy+='<div id="ctrlw" unselectable="on" title="'+xN[0]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="javascript:PerformControl(event, this,1);" style="overflow:hidden;position:absolute;left:'+(d+10)+"px;top:"+(h+30)+'px;width:17px;height:17px;"><img id="ctrlw_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-20px;"/></div>';this.gy+='<div id="ctrln" unselectable="on" title="'+xN[1]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="javascript:PerformControl(event, this,2);" style="overflow:hidden;position:absolute;left:'+(d+30)+"px;top:"+(h+10)+'px;width:17px;height:17px;"><img id="ctrln_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-60px;"/></div>';this.gy+='<div id="ctrle" unselectable="on" title="'+xN[2]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="javascript:PerformControl(event, this,3);" style="overflow:hidden;position:absolute;left:'+(d+50)+"px;top:"+(h+30)+'px;width:17px;height:17px;"><img id="ctrle_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-120px;"/></div>';this.gy+='<div id="ctrls" unselectable="on" title="'+xN[3]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="javascript:PerformControl(event, this,4);" style="overflow:hidden;position:absolute;left:'+(d+30)+"px;top:"+(h+50)+'px;width:17px;height:17px;"><img id="ctrls_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-100px;"/></div>';this.gy+='<div id="ctrlmeas" unselectable="on" title="'+xN[4]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="javascript:PerformControl(event, this,7);" style="overflow:hidden;position:absolute;left:'+(d+30)+"px;top:"+(h+30)+'px;width:17px;height:17px;"><img id="ctrlmeas_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-80px;"/></div>'}this.gy+="<div id='ctrlbg' unselectable='on' title='"+xN[5]+"' onmousemove=style.cursor='default' onclick='javascript:PerformControl(event, this, 8);' style='overflow:hidden;display:"+((this.fi==0)?"":"none")+";position:absolute;width:17px;height:157px;left:"+(d+31)+"px;top:"+(h+97)+"px;'><img id='ctrlbg_img' src='"+strImgsvrUrl+"images/mapbar31/maplet31.gif' style='position:absolute;width:320px;height:336px;left:-301px;top:-150px;'/></div>";this.gy+='<div id="ctrlzmin" unselectable="on" title="'+xN[6]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="maplet.zoomIn();" style="overflow:hidden;position:absolute;left:'+(d+30)+"px;top:"+(h+80)+'px;width:17px;height:17px;"><img id="ctrlzmin_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:0px;"/></div>';this.gy+='<div id="ctrlzmout" unselectable="on" title="'+xN[7]+'" onmousemove=style.cursor="hand";style.cursor="pointer" onclick="maplet.zoomOut();" style="overflow:hidden;position:absolute;left:'+(d+30)+"px;top:"+this.uC+'px;width:17px;height:17px;"><img id="ctrlzmout_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-40px;"/></div>';this.ga=new fD("LayerControl",d,h,0,0,c,g,this.gy,e);this.ga.ld.q9=b;this.wW=document.createElement("div");this.wW.id="ctrlslider";this.wW.unselectable="on";this.wW.innerHTML='<div id="ctrlsliderimg" style="width:17px;height:9px;position:absolute;overflow:hidden;"><img id="ctrlsliderimg_img" src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-301px;top:-140px;"/></div>';this.wW.style.position="absolute";this.wW.style.top=(parseInt(this.top)+165)+"px";this.wW.style.left=(parseInt(this.left)+30)+"px";this.wW.style.width="17px";this.wW.style.height="9px";this.wW.style.zIndex=4;this.wW.lp=0;this.ga.ld.appendChild(this.wW);this.ga.ld.wW=this.wW;this.wW.style.top=((sY-f)*(132/(sY-1))+100+parseInt(this.top))+"px";if(this.fi){this.wW.style.display="none"}this.wW.firstChild.onmousedown=function(l){return false};this.wW.ga=this;this.wW.onmousedown=function(l){hideBubble(maplet);if(this.lp==0){this.lp=parseInt((px)?event.clientY:l.clientY)-parseInt(this.ga.top);if(this.setCapture){this.setCapture()}this.style.cursor="move"}else{this.lp=0}if(gQ){gP(this.lp)}return true};this.wW.ondrag=function(n){if(this.lp>0){var l=this.parentNode.q9;this.style.cursor="move";var m=parseInt((px)?event.clientY:n.clientY)-5-l.offsetY-parseInt(l.top)-2*parseInt(this.ga.top);if(m>=100&&m<244){this.style.top=(m+parseInt(this.ga.top))+"px";var o=132;if(px){var p=parseInt((px)?event.clientY:n.clientY)-3-l.offsetY-parseInt(l.top)-2*parseInt(this.ga.top);f=sY-Math.max(0,Math.min(sY,parseInt(((parseInt(p)-100)/(sY-1))*(o/(sY-1)))/(o/(sY))));l.AN(f);this.style.cursor="move";this.parentNode.style.cursor="move"}}return true}return false};this.wW.ondragend=function(m){if(this.lp>0){var l=this.parentNode.q9;var n=parseInt((px)?event.clientY:m.clientY)-l.offsetY-parseInt(l.top)-2*parseInt(this.ga.top);f=sY-Math.max(0,Math.min(sY,parseInt((parseInt(n)-100)/(132/(sY-1)))));this.parentNode.zI(f);l.sF.ld.style.zoom=1;l.setZoomLevel(parseInt(f));this.lp=0;if(this.releaseCapture){this.releaseCapture()}}this.lp=0;this.style.cursor="default";return true};this.onmousedown=function(){return false};this.onmousemove=function(l){if(this.wW){return(px)?this.wW.ondrag():this.wW.ondrag(l)}else{return false}};this.onmouseup=function(l){return(this.wW)?((px)?this.wW.ondragend():this.wW.ondragend(l)):false};this.onmouseout=function(){return false};this.ga.ld.zI=function(l){if(this.wW){this.wW.style.top=((sY-l)*(132/(sY-1))+100+(parseInt(this.style.top)))+"px";if(this.wW.parentNode==null||this.wW.parentNode!=this){this.appendChild(this.wW)}}};this.zI=function(l){this.ga.ld.zI(l)};this.hide=function(){this.ga.hide()};this.show=function(){this.ga.show()};this.g1=function(){this.ga.ld.q9=null;if(this.ga.ld!=null&&this.ga.ld.parentNode!=null){this.ga.ld.parentNode.removeChild(this.ga.ld);this.ga.ld=null}};this.RC9P4=function(){var n={min:{x:0,y:0},max:{x:0,y:0}};if(this.ga.style.visibility!="hidden"){var l=aa("ctrle");var m=aa("ctrlzmout");n={min:{x:0,y:0},max:{x:l.offsetLeft+l.offsetWidth,y:m.offsetTop+m.offsetHeight}}}return n}};var AjaxHttp={sendReq:function(url,callback,aB){var uA=new qF();with(uA){try{uA.readyState=-1;if(typeof showLoading=="function"){showLoading()}uA.onreadystatechange=function(){uA.readyState=4;if(px){if(uA.wv.readyState=="loaded"||uA.wv.readyState=="complete"){callback(aB);uA.vY()}}else{callback(aB);uA.vY()}if(typeof hideLoading=="function"){hideLoading()}};if(document.all){uA.wv.attachEvent("onreadystatechange",uA.onreadystatechange)}else{uA.wv.addEventListener("load",uA.onreadystatechange,false)}uA.fr(url);uA.aq()}catch(lM){alert(lM)}}}};var MArc=function(f,h,c,e,d,a,g,b){this.id=new Date().getTime()+""+parseInt(Math.random()*10000);this.pt=f;this.Am=parseFloat(h);this.n3=parseFloat(c);this.yy=parseInt(e);this.yx=parseInt(d);this.brush=(typeof a=="undefined")?new MBrush():a;this.info=(typeof g=="undefined")?null:g;this.label=(typeof b=="undefined")?null:b;this.qo=false;this.z9=null;this.ao=new Array();this.bEditable=false;this.setEditable=function(i){this.bEditable=(typeof i=="undefined")?false:i};this.qc=function(i){this.maplet=i;if(this.info){this.ao.click=MEvent.bindDom(this.maplet.map,"click",this,this.openInfoWindow)}this.ao.mouseover=MEvent.bindDom(this.maplet.map,"mouseover",this,this.uG);this.ao.mousedown=MEvent.bindDom(this.maplet.map,"mousedown",this,this.w0);this.ao.mousemove=MEvent.bindDom(this.maplet.map,"mousemove",this,this.f9);this.ao.mouseup=MEvent.bindDom(this.maplet.map,"mouseup",this,this.l1);if(typeof this.maplet.lA!="undefined"){this.paint()}};this.toString=function(){return"com.mapbar.maplet.MArc"};this.zq=function(){return""};this.paint=function(){if(!px){return}if(this.maplet!=null&&this.maplet.lA!=null&&this.zX&&this.zX.parentNode){this.maplet.lA.removeChild(this.zX)}this.zX=document.createElement("div");this.zX.vb=this;this.zX.id=this.id;this.zX.style.position="absolute";this.zX.unselectable="on";this.zX.style.zIndex=10;this.zX.style.cursor=(px)?"hand":"pointer";this.zW=document.createElement("v:arc");this.zW.unselectable="on";this.zW.id=this.id;this.zW.strokecolor=this.brush.color;this.zW.strokeweight=this.brush.stroke+"pt";this.zW.fill=this.brush.fill;this.zW.filled=this.brush.fill;this.zW.style.position="absolute";this.Ad=document.createElement("v:stroke");this.Ad.opacity=(this.brush.transparency/100);this.Ad.joinstyle="round";this.Ad.endcap="round";this.Ad.fill=this.brush.fill;if(this.brush.arrow){this.Ad.endarrow="classic"}if(parseInt(this.brush.style)){this.Ad.dashstyle="dash"}this.zY=document.createElement("v:fill");this.zY.opacity=((this.brush.bgtransparency)/100);this.zY.color=this.brush.bgcolor;this.z9=document.createElement("div");this.z9.vb=this;this.z9.id=this.id;this.z9.style.position="absolute";this.z9.style.visibility="hidden";this.z9.unselectable="on";this.z9.style.zIndex=11;this.z9.style.cursor=(px)?"hand":"pointer";this.zW.appendChild(this.Ad);this.zW.appendChild(this.zY);this.zX.appendChild(this.zW);this.zX.appendChild(this.z9);this.zI();this.zX.style.visibility="visible";if(this.maplet!=null&&this.maplet.lA!=null){this.maplet.lA.appendChild(this.zX)}};this.zI=function(){if(this.pt.pid==null){return}var n=cq.vp(this.pt.pid);var p=this.maplet.zm(n[1]+this.n3/2,n[0]);var o=this.maplet.zl(n[0]-this.Am/2,n[1]);var k=this.maplet.zm(n[1]-this.n3/2,n[0]);var l=this.maplet.zl(n[0]+this.Am/2,n[1]);var m=l-o;var i=k-p;if(o>this.maplet.width||l<0||k<0||p>this.maplet.height){return}if(this.bEditable||this.maplet.sS==ts.tu){var j=document.getElementById(this.id+"_node_ctr");if(j==null){j=new Image();j.id=this.id+"_node_ctr";j.qf=0;j.src=ul;j.unselectable="on";j.alt=lt;j.style.position="absolute";j.style.filter="alpha(opacity=80);"}j.style.left=(parseInt(o+l)/2-5)+"px";j.style.top=(parseInt(p+k)/2-5)+"px";this.z9.appendChild(j)}if(this.zW){this.zW.style.width=m;this.zW.style.height=i;this.zW.style.left=o;this.zW.style.top=p;this.zW.StartAngle=this.yy;this.zW.EndAngle=this.yx}};this.remove=function(){if(typeof this.zX!="undefined"&&this.zX.parentNode){this.zX.parentNode.removeChild(this.zX)}if(typeof this.graphics!="undefined"){this.graphics.clear()}for(var i in this.ao){MEvent.removeBuiltInListener(this.maplet.map,i,this.ao[i]);this.ao[i]=null}this.maplet=null};this.openInfoWindow=function(k){if(this.maplet){if(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu){return}if(typeof k=="undefined"){if(this.info!=null&&this.pt.pid!=null){var m=0;var j=0;var l=cq.vp(this.pt.pid);j=this.maplet.zm(l[1],l[0]);m=this.maplet.zl(l[0],l[1]);if(m>this.maplet.width*2||m<-this.maplet.width||j<-this.maplet.height||j>this.maplet.height*2){this.maplet.setCenter(this.pid);m=this.maplet.width/2;j=this.maplet.height/2}else{if(iToolTipStyle==2){this.x=m;this.y=j;MEvent.trigger(this,"click",this)}else{this.maplet.wN(m,j,this.info.title,this.info.content)}}}}else{if(k.target.id==this.id){var i=k.clientX-this.maplet.offsetX-this.maplet.left;var n=k.clientY-this.maplet.offsetY-this.maplet.top+6;if(iToolTipStyle==2){this.x=i;this.y=n;MEvent.trigger(this,"click",this)}else{this.maplet.wN(i,n,this.info.title,this.info.content)}}}}};this.wQ=function(i){if(this.z9!=null){if(i){this.z9.style.visibility="visible"}else{this.z9.style.visibility="hidden"}}};this.uG=function(i){if(this.bEditable||this.maplet.sS==ts.tu){if(this.zX!=null&&this.maplet&&fJ(i.target,this.zX)){this.Ad.opacity=1;this.wQ(true)}else{this.Ad.opacity=(this.brush.transparency/100);this.wQ(false)}}};this.w0=function(i){};this.f9=function(i){};this.l1=function(i){}};function ny(a){if(!a){a=window.event}if(a&&!a.target){a.target=a.srcElement}if(a&&typeof a.button=="undefined"){a.button=a.which}return a}function getTimeout(b,a,c){return window.setTimeout(function(){a.apply(b)},c)}function nB(b,a,c){return window.setInterval(function(){a.apply(b)},c)}var MEvent={nD:function(a){return"_e__"+a},addListener:function(b,e,a){var d=this.nD(e);if(b[d]){var f=true;for(var c=0;c<b[d].length;c++){var g=b[d][c];if(g==a){f=false;break}}if(f){b[d].push(a)}}else{b[d]=[a]}return{qg:b,propertyName:d,q0:a}},removeListener:function(b){var a=b.qg[b.propertyName];for(var c=0;c<a.length;c++){if(a[c]==b.q0){a.splice(c,1);return}}},contains:function(a,c){var b=this.nD(c);if(typeof a[b]!="undefined"){return a[b].length}else{return 0}},clearListeners:function(a,c){var b=this.nD(c);a[b]=null},trigger:function(a,j){var h=this.nD(j);var g=a[h];if(g&&g.length>0){var d=[];for(var c=2;c<arguments.length;c++){d.push(arguments[c])}for(var f=0;f<g.length;f++){var e=g[f];if(e){try{e.apply(a,d)}catch(b){throw b}}}}},addBuiltInListener:function(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}else{b["on"+c]=a}}return a},removeBuiltInListener:function(b,c,a){if(b.removeEventListener){b.removeEventListener(c,a,false)}else{if(b.detachEvent){b.detachEvent("on"+c,a)}else{b["on"+c]=null}}},bind:function(b,c,d,a){return this.addListener(b,c,function(){a.apply(d,arguments)})},bindDom:function(b,c,e,a){var d=this.gm(e,a);return this.addBuiltInListener(b,c,d)},gm:function(a,b){return function(c){c=ny(c);b.call(a,c)}},callback:function(a,b){return function(){return b.apply(a,arguments)}}};var MIcon=function(f,d,b,a,e,c){this.ao=new Array();this.f7l=1;this.ld=document.createElement("div");this.ld.unselectable="on";this.ld.style.zIndex=this.f7l;this.ld.style.position="absolute";d=(typeof d=="undefined")?16:d;b=(typeof b=="undefined")?16:b;this.img=document.createElement("div");this.img.unselectable="on";this.img.style.MozUserSelect="none";this.img.style.zIndex=this.f7l;this.img.style.position="absolute";this.img.style.top="0px";this.img.style.left="0px";this.imgUrl=f;this.left=0;this.top=0;this.i18L=this.left;this.B14Jh=this.top;this.wz=function(g){this.ld.id="OverlayBg"+g;this.img.id=g};this.qc=function(g){if(px){this.img.ondragstart=function(){return false}}this.sW=g;this.setContextMenu(g.contextmenu);this.ao.mouseover=MEvent.bindDom(this.img.firstChild,"mouseover",this.sW,this.sW.hiliteIcon);this.ao.mouseout=MEvent.bindDom(this.img.firstChild,"mouseout",this.sW,this.sW.v4);if(this.sW&&this.sW.maplet){this.sW.maplet.Mu408("pointer",this.img)}};this.setContextMenu=function(h){this.contextmenu=h;this.img.contextmenu=this.contextmenu;for(var g in this.img.childNodes){if(typeof this.img.childNodes[g]=="object"){this.img.childNodes[g].contextmenu=this.contextmenu}}};this.getImgUrl=function(){var g="";var h=this.img;if(h.innerHTML.indexOf(Maplet.MICON_IMGSRC_FLAG)!=-1){var i=new RegExp(Maplet.MICON_IMGSRC_FLAG+'="?([^"\t ]*)',"gi");var j=i.exec(h.innerHTML);if(j!=null){g=j[1]}}else{if(h.firstChild&&h.firstChild.tagName.toUpperCase()=="IMG"){g=h.firstChild.src}else{g=this.imgUrl}}return g};this.updateImage=function(i,h,g){if(this.img.firstChild&&this.imgUrl==i){return}this.imgUrl=i;if(this.imgUrl!=null&&this.imgUrl.indexOf("<")>=0){this.img.innerHTML=this.imgUrl}else{this.img.innerHTML="<img src="+this.imgUrl+" width="+(typeof h=="undefined"?d:h)+" height="+(typeof h=="undefined"?b:g)+">";if(this.sW){if(this.sW.label&&typeof h!="undefined"){this.sW.label.xoffset+=h-d;d=h}if(this.sW.maplet){this.sW.qc(this.sW.maplet)}}}this.img.firstChild.onmousedown=function(j){return false}};this.updateImage(f);this.width=(typeof d=="undefined")?parseInt(this.img.width):parseInt(d);this.height=(typeof b=="undefined")?parseInt(this.img.height):parseInt(b);this.ld.style.width=this.width+"px";this.ld.style.height=this.height+"px";this.cg9_=(typeof c=="undefined")?f:c;this.anchorX=(typeof a=="undefined")?this.width/2:parseInt(a);this.anchorY=(typeof e=="undefined")?this.height/2:parseInt(e);this.ld.appendChild(this.img);this.zI=function(h,k,j){var g=parseInt(k)-parseInt(this.anchorX);var i=parseInt(j)-parseInt(this.anchorY);if(!this.sW.ls&&(g>h.width||g<-this.width||i>h.height||i<-this.height)){if(this.ld.parentNode){this.ld.parentNode.removeChild(this.ld);if(this.sW.label){this.sW.label.remove()}this.fu=false}}else{if(this.ld.parentNode!=h.lA.ld&&!this.sW.ls){h.lA.appendChild(this.ld);this.ld.style.width=this.width+"px";this.ld.style.height=this.height+"px";this.img.width=this.width+"px";this.img.height=this.height+"px";this.fu=true}this.ld.style.top=i+"px";this.ld.style.left=g+"px";this.i18L=this.left;this.B14Jh=this.top;this.left=g;this.top=i;k=g;j=i;if(this.sW.label){this.sW.label.zI(this.sW.maplet,k,j)}}};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(h){if(typeof h!="boolean"){h=false}if(this.img.firstChild){if(px){this.img.ondragstart=null}this.img.firstChild.onmousedown=null;for(var g in this.ao){MEvent.removeBuiltInListener(this.img.firstChild,g,this.ao[g]);this.ao[g]=null;if(h){delete this.ao[g]}}}if(h){this.ao=null}if(this.ld){if(!h){if(this.ld.parentNode){this.ld.parentNode.removeChild(this.ld)}}else{_removeNode(this.ld);this.ld=null}}if(h){this.sW=null}};this.N07b=function(g){if(this.ld&&this.ld.parentNode&&g!=this.ld.style.zIndex){this.f7l=this.ld.style.zIndex;this.ld.style.zIndex=g}};this.WyD6=function(){if(!this.ld){return}if(this.f7l!=this.ld.style.zIndex){this.N07b(this.f7l)}};this.RC9P4=function(){var g={min:{x:this.ld.offsetLeft,y:this.ld.offsetTop},max:{x:0,y:0}};g.max.x=g.min.x+this.ld.offsetWidth;g.max.y=g.min.y+this.ld.offsetHeight;return g};this.toString=function(){return"com.mapbar.maplet.MIcon"}};var MMarker=function(pt,icon,info,label,shadow){this.id=new Date().getTime()+""+parseInt(Math.random()*10000);this.pt=pt;this.icon=(typeof icon=="undefined")?null:icon;if(this.icon&&this.icon.wz){this.icon.wz(this.id)}this.shadow=typeof shadow=="undefined"?null:shadow;if(this.shadow&&this.shadow.wz){this.shadow.wz(this.id)}this.label=(typeof label=="undefined")?null:label;if(this.label&&this.label.wz){this.label.wz(this.id)}this.info=null;if(typeof info!="undefined"&&info){this.info=info;this.info.setOverlay(this)}this.lw=0;this.ls=false;this.bEditable=false;this.rotation=0;this.ao=new Array();this.contextmenu=null;this.setContextMenu=function(menu){this.contextmenu=menu;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.qc(this.maplet)}};this.wz=function(id){this.id=id;if(this.icon&&this.icon.wz){this.icon.wz(id)}if(this.shadow&&this.shadow.wz){this.shadow.wz(id)}};this.setEditable=function(cs){this.bEditable=(typeof cs=="undefined")?false:cs;if(rmi){this.refreshZIndex()}};this.refreshZIndex=function(b3l){if(!this.icon){return}if(typeof b3l!="boolean"){b3l=true}if(this.maplet){var iBG6f=this.maplet.getMarkerPolygons(this);if(iBG6f.length>0){if(this.bEditable){if(this.icon.ld.style.zIndex<0){this.WyD6()}}else{if(this.icon.ld.style.zIndex>=0){this.N07b(-1)}}if(b3l){for(var i=0;i<iBG6f.length;i++){iBG6f[i].H384(this)}}}}};this.qc=function(maplet){this.maplet=maplet;if(typeof this.contextmenu=="object"&&this.contextmenu){this.contextmenu.qc(this.maplet)}this.ao.mousedown=MEvent.bindDom(this.maplet.map,"mousedown",this,this.w0);if(this.icon!=null){this.icon.qc(this)}if(this.label!=null){this.label.qc(this)}if(this.shadow!=null){this.shadow.qc(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(rmi){this.refreshZIndex()}};this.toString=function(){return"com.mapbar.maplet.MMarker"};this.paint=function(){if(!this.maplet){return}if(!this.pt.maplet){this.pt.qc(this.maplet)}if(this.maplet.csJ3){if(this.maplet.h04V!=this.pt.h04V){this.pt.sU+=this.maplet.q3p7;this.pt.sV+=this.maplet.VV4;this.pt.h04V=this.maplet.h04V}}else{this.pt.jI4()}if(this.icon){if(!this.icon.sW){this.icon.qc(this)}if(avBubble._898$==this.id){avBubble.openInfoWindow=this;avBubble.B364=true}this.icon.zI(this.maplet,this.pt.sU,this.pt.sV)}if(this.shadow){if(!this.shadow.sW){this.shadow.qc(this)}this.shadow.zI(this.maplet,this.pt.sU,this.pt.sV)}};this.zq=function(){return(this.icon.isVisible())?"1,"+this.pt.pid+","+this.icon.zq():""};this.finalize=function(){this.remove(true)};this.remove=function(finalize){if(typeof finalize!="boolean"){finalize=false}if(this.maplet&&this.maplet.markerDragAnimation){this.maplet.Ovt5Q(false)}if(finalize){this.removeContextMenu()}if(this.icon){this.icon.remove(finalize)}if(this.label){this.label.remove(finalize)}if(this.shadow){this.shadow.remove(finalize)}if(this.maplet){for(var l8 in this.ao){var l9=l8.substring(0,5)=="info_"?l8.substring(5):l8;MEvent.removeBuiltInListener(this.maplet.map,l9,this.ao[l8]);this.ao[l8]=null;if(finalize){delete this.ao[l8]}}if(this.maplet.u5[this.id]){this.maplet.u5[this.id]=null;delete this.maplet.u5[this.id]}}if(finalize){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(lM){if(this.pt.pid=="IAUVHEZVVVCTRU"){avBubble.width=500;avBubble.height=400}else{avBubble.width=335;avBubble.height=325}if(this.maplet!=null){if((new Date().getTime()-this.lw)<200){return}var zh=cq.vp(this.pt.pid);var x=this.maplet.zl(zh[0],zh[1]);var y=this.maplet.zm(zh[1],zh[0]);if(typeof lM=="undefined"||(typeof lM=="object"&&this.icon&&fJ(lM.target,this.icon.img))||(typeof lM=="object"&&this.label&&fJ(lM.target,this.label.ld))){if(typeof lM=="object"&&this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu){return}if(x>this.maplet.width*2||x<-this.maplet.width||y<-this.maplet.height||y>this.maplet.height*2){this.maplet.setCenter(this.pt.pid);x=this.maplet.width/2;y=this.maplet.height/2}this.x=x;this.y=y;if(this.openInfoWindow.caller&&this.openInfoWindow.caller.toString().indexOf(".call(")!=-1){avBubble.B364=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}});avBubble._898$=this.id;zh=cq.vp(this.pt.pid);x=this.maplet.zl(zh[0],zh[1]);y=this.maplet.zm(zh[1],zh[0]);hideBubble(this.maplet);avBubble.S04="marker";avBubble.x8257=this.pt.pid;avBubble.uX=this;this.maplet.wN(x,y,this.info,"","",true)}}else{if(typeof lM=="boolean"&&lM||lM=="true"){if(!this.info){return}else{if(!this.info.getOverlay()){this.info.setOverlay(this)}}if(x>this.maplet.width*2||x<-this.maplet.width||y<-this.maplet.height||y>this.maplet.height*2){this.maplet.setCenter(this.pt.pid);x=this.maplet.width/2;y=this.maplet.height/2}avBubble.uX=this;this.maplet.wN(x,y,this.info,true)}}}};this.w0=function(lM){if(this.icon!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&fJ(lM.target,this.icon.img)&&lM.button!=2){this.qo=true;this.fd=false;this.l6=this.id;hideBubble(this.maplet);this.l0=parseInt(lM.clientX-this.maplet.offsetX-this.maplet.left)-parseInt(this.icon.ld.style.left);this.na=parseInt(lM.clientY-this.maplet.offsetY-this.maplet.top)-parseInt(this.icon.ld.style.top);if(this.rotation==1){var lb=this.l0-this.icon.width/2;var lc=this.na-this.icon.height/2;var la=Math.sqrt(lb*lb+lc*lc);if(la>(this.icon.width/4-5)){this.fd=true;this.lq=lM.clientX;this.lr=lM.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(lM){if(this.icon!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&(fJ(lM.target,this.icon.img)||this.l6==this.id)){if(this.qo){if(!this.fd){var x=lM.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var y=lM.clientY-this.maplet.offsetY-this.maplet.top-this.na;var i56y2=this.maplet.Y60x;var w6al=0,uk210=0;if(this.icon.ld.parentNode==this.maplet.lA.ld){this.maplet.vb.appendChild(this.icon.ld);if(this.label){this.maplet.vb.appendChild(this.label.ld)}if(this.shadow){this.maplet.vb.appendChild(this.shadow.ld)}this.N07b(pF);if(px){document.body.setCapture()}if(this.maplet.markerDragAnimation){w6al=i56y2.rEJ6w;uk210=i56y2.$63U}}if(!M96){M96=nB(this,Q95,100)}if(this.maplet.markerDragAnimation){y=y+this.icon.anchorY-i56y2.height/2;this.maplet.Ovt5Q(true,x+this.icon.anchorX-i56y2.width/2,y);y=y-i56y2.offsetY-this.icon.height}this.x=x;this.y=y;this.lw=new Date().getTime();this.ls=true;this.icon.zI(this.maplet,x+this.icon.anchorX,y+this.icon.anchorY);if(this.shadow){var g4=this.icon.left-this.icon.i18L;var g5=this.icon.top-this.icon.B14Jh;this.shadow.zI(this.maplet,this.shadow.left+g4+this.shadow.anchorX+w6al,this.shadow.top+g5+this.shadow.anchorY+uk210)}}else{var wc=parseInt(lM.clientX-this.maplet.offsetX-this.maplet.left)-parseInt(this.icon.ld.style.left);var wd=parseInt(lM.clientY-this.maplet.offsetY-this.maplet.top)-parseInt(this.icon.ld.style.top);var wa=Math.atan2((wd-this.icon.height/2),wc-this.icon.width/2);var wb=((90+wa*180/Math.PI)+360)%360;MEvent.trigger(this,"rotate",wb)}}}};this.l1=function(lM){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 x=lM.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var y=lM.clientY-this.maplet.offsetY-this.maplet.top-this.na;if(isNaN(x)){x=this.x}if(isNaN(y)){y=this.y}if(this.icon.ld.parentNode!=this.maplet.lA.ld){this.maplet.lA.appendChild(this.icon.ld);if(this.label){this.maplet.lA.appendChild(this.label.ld)}if(this.shadow){this.maplet.lA.appendChild(this.shadow.ld);this.shadow.WyD6()}with(this.maplet.Y60x.fC){if(ld.parentNode!=this.maplet.lA.ld){this.maplet.lA.ld.appendChild(ld);ld.style.zIndex=this.icon.ld.style.zIndex-1}}if(px){document.body.releaseCapture()}}if(this.maplet.markerDragAnimation){y=parseInt(this.maplet.Y60x.fC.style.top)+this.maplet.Y60x.height/2-this.icon.anchorY}this.pt.setMapCoords(x+this.icon.anchorX,y+this.icon.anchorY);this.x=x;this.y=y;if(this.maplet.markerDragAnimation){C61v.apply(this)}}else{}MEvent.trigger(this,"drag",this);MEvent.trigger(this.maplet,"edit",this);if(this.ls){this.lw=new Date().getTime();this.ls=false}}if(this.l6==this.id){this.l6=null}this.qo=false};this.hiliteIcon=function(lM){if(this.icon!=null&&fJ(lM.target,this.id)){if(this.icon.ld.style.zIndex<pF){pF++}this.icon.N07b(pF);if(this.label){this.label.N07b(pF)}var zh=cq.vp(this.pt.pid);var x=this.maplet.zl(zh[0],zh[1]);var y=this.maplet.zm(zh[1],zh[0]);this.x=x;this.y=y;if(typeof lM.button!="undefined"){MEvent.trigger(this,"mouseover",this)}}};this.v4=function(lM){if(this.icon!=null&&fJ(lM.target,this.id)){var zh=cq.vp(this.pt.pid);var x=this.maplet.zl(zh[0],zh[1]);var y=this.maplet.zm(zh[1],zh[0]);this.x=x;this.y=y;MEvent.trigger(this,"mouseout",this)}};this.N07b=function(P7125){if(this.icon){this.icon.N07b(P7125)}if(this.label){this.label.N07b(P7125)}if(this.shadow){this.shadow.N07b(P7125)}};this.WyD6=function(){if(this.icon){this.icon.WyD6()}if(this.label){this.label.WyD6()}if(this.shadow){this.shadow.WyD6()}};this.setIcon=function(_Tab,xv3){if(typeof xv3!="boolean"){xv3=true}if(this.icon){this.icon.remove();this.icon=null}if(_Tab){this.icon=_Tab;this.icon.wz(this.id);this.icon.qc(this);if(xv3){this.paint()}}};this.setLabel=function(S424c,xv3){if(typeof xv3!="boolean"){xv3=true}if(this.label){this.label.remove();this.label=null}if(S424c){this.label=S424c;this.label.wz(this.id);this.label.qc(this);if(xv3){this.paint()}}};this.setShadow=function(dG043,xv3){if(typeof xv3!="boolean"){xv3=true}if(this.shadow){this.shadow.remove();this.shadow=null}if(dG043){this.shadow=dG043;this.shadow.wz(this.id);this.shadow.qc(this);if(xv3){this.paint()}}};this.setInfoWindow=function(tYqW){if(this.info){if(avBubble.uX&&avBubble.uX.id==this.id&&ContentInfo&&avBubble.isVisible()){this.maplet.hideBubble()}this.info=null}if(tYqW){this.info=tYqW;this.info.setOverlay(this)}};this.setPoint=function(o3RI8,xv3){if(typeof xv3!="boolean"){xv3=true}this.pt=o3RI8;if(xv3){this.paint()}};var M96=null;var Q95=function(){if(this.ls){var F2i=this.maplet.$gdE;var rt=this.icon.RC9P4();var vj=0,vk=0;if(rt.min.x<F2i){vj=50}if(rt.min.y<F2i){vk=50}if(rt.max.x>this.maplet.width-F2i){vj=-50}if(rt.max.y+this.maplet.Y60x.height+this.maplet.Y60x.offsetY>this.maplet.height-F2i){vk=-50}if((vj!=0||vk!=0)){this.maplet.panTo(vj,vk);return}}window.clearInterval(M96);M96=null};Ru8A=null;var C61v=function(){window.clearTimeout(Ru8A);this.maplet.Y60x.uX=this;var yw=0,Ey5$=50;var U9c4={b:parseInt(this.icon.ld.style.top),fw:0};U9c4.fw=this.pt.sV-this.icon.anchorY-U9c4.b;var kjh4=null,ydho=null;if(this.shadow){var kjh4={b:parseInt(this.shadow.ld.style.left),fw:0};kjh4.fw=this.pt.sU-this.shadow.anchorX-kjh4.b;var ydho={b:parseInt(this.shadow.ld.style.top),fw:0};ydho.fw=this.pt.sV-this.shadow.anchorY-ydho.b}function o208(){if(yw<Ey5$){yw++;this.icon.zI(this.maplet,this.pt.sU,Math.ceil(v4y7(yw,U9c4.b,U9c4.fw,Ey5$))+this.icon.anchorY);if(this.shadow){this.shadow.zI(this.maplet,Math.ceil(v4y7(yw,kjh4.b,kjh4.fw,Ey5$))+this.shadow.anchorX,Math.ceil(v4y7(yw,ydho.b,ydho.fw,Ey5$))+this.shadow.anchorY)}Ru8A=getTimeout(this,o208,10)}else{this.maplet.Ovt5Q(false)}}o208.apply(this)};this.k2qg3=function(){if(Ru8A){window.clearTimeout(Ru8A);Ru8A=null}this.paint()};var v4y7=function(yw,b,fw,Ey5$){if((yw/=Ey5$)<(1/2.75)){return fw*(7.5625*yw*yw)+b}else{if(yw<(2/2.75)){return fw*(7.5625*(yw-=(1.5/2.75))*yw+0.75)+b}else{if(yw<(2.5/2.75)){return fw*(7.5625*(yw-=(2.25/2.75))*yw+0.9375)+b}else{return fw*(7.5625*(yw-=(2.625/2.75))*yw+0.984375)+b}}}}};var MPolyline=function(pts,brush,info,label){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._HO39=new Object();this.isRefreshMkIndex=rmi;this.maplet=null;this.bEditable=false;this._wm=true;this.w7Y=true;this.setEditable=function(cs){if(cs=="traffic"){this.bEditable=true;this.G_B5P=true}else{this.bEditable=(typeof cs=="undefined")?false:cs;this.G_B5P=false}if(this.maplet!=null){this.zI()}};this.setEditMode=function(mode){if(mode=="path"){this.setEditable("traffic")}else{if(mode=="default"){this.setEditable(true)}}};this.qc=function(maplet){this.maplet=maplet;if(typeof this.contextmenu=="object"&&this.contextmenu){this.contextmenu.qc(this.maplet)}this.um.qc(this.maplet);if(this.info){this.ao.click=MEvent.bindDom(this.maplet.map,"click",this,this.openInfoWindow)}if(this.G_B5P){this.ao.mouseover=MEvent.bindDom(this.maplet.map,"mouseover",this,this.uG);this.ao.mousemove=MEvent.bindDom(this.maplet.map,"mousemove",this,this.uG);this.ao.mousedown=MEvent.bindDom(this.maplet.map,"mousedown",this,this.ok0m);this.ao.mousemove=MEvent.bindDom(this.maplet.map,"mousemove",this,this.hJqw3);this.ao.mouseup=MEvent.bindDom(this.maplet.map,"mouseup",this,this.q_x)}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)}this.ao.mouseout=MEvent.bindDom(this.maplet.map,"mouseout",this,function(lM){var M12D8={min:{x:0,y:0},max:{x:0,y:0}};M12D8.min.x=3;M12D8.min.y=3;M12D8.max.x=this.maplet.width-3;M12D8.max.y=this.maplet.height-3;var Mnh0=lM.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var ev9=lM.clientY-this.maplet.offsetY-this.maplet.top-this.na;if(!e2K({x:Mnh0,y:ev9},M12D8)){this.l1(lM)}});if(this.brush.fill&&this.pts[0].pid!=this.pts[this.pts.length-1].pid){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 xU=this.brush.filled?"2":"0";var xT=this.brush.stroke+","+xU+","+this.brush.color+":";for(var i=0;i<this.pts.length;i++){xT+=this.pts[i].pid+","}return xT}};this.paint=function(){this.zX=this.maplet.Hg2();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.maplet.Mu408("pointer",this.z0);this.z0.contextmenu=this.contextmenu;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)}}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:10,15":"");this.Ad.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.Ad.setAttribute("fill",(this.brush.fill)?this.brush.bgcolor:"none");if(typeof this.contextmenu=="object"&&this.contextmenu){this.Ad.contextmenu=this.contextmenu}this.z0.appendChild(this.Ad)}}this.zI()};this.setContextMenu=function(menu){this.contextmenu=menu;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.qc(this.maplet)}};this.setBrush=function(yQ9){if(!(yQ9 instanceof MBrush)){return}this.brush=yQ9;if(px){if(this.z0&&this.Ad&&this.zY){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.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":"";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(tYqW){if(this.info){if(avBubble.uX&&avBubble.uX.id==this.id&&ContentInfo&&avBubble.isVisible()){this.maplet.hideBubble()}this.info=null}if(tYqW){this.info=tYqW;this.info.setOverlay(this)}};this.G95c6=function(pt){if(typeof pt!="object"||!pt){return false}return(pt.sU>-this.maplet.width/3&&pt.sU<this.maplet.width*1.33)&&(pt.sV>-this.maplet.height/3&&pt.sV<this.maplet.height*1.33)};this.zI=function(){this.z9=document.getElementById(this.id+"vNodeLayer");if(this.z9){this.c07u()}if(this.bEditable||this.maplet.sS==ts.tu){this.z9=document.createElement("div");this.z9.vb=this;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;if(this.G_B5P){var $0v=document.getElementById(this.id+"_node_traffic");if($0v==null){$0v=new Image();$0v.id="_node_traffic";$0v.vv=this;$0v.src=iXH1;$0v.unselectable="on";$0v.alt=lt;$0v.title=lt;$0v.style.position="absolute";$0v.onmousedown=function(){return false}}this.z9.appendChild($0v)}this.zX.appendChild(this.z9)}this.pu=new Array();this.aP=new Array();this.aR=new Array();var pg=0;var us=10;if(this.pts==null||this.pts.length<2){return}var cY=false;var tn=this.maplet.width;var to=this.maplet.height;for(var qC=0;qC<this.pts.length;qC++){if(!this.pts[qC].maplet){this.pts[qC].qc(this.maplet)}if(this.maplet.csJ3){if(this.maplet.h04V!=this.pts[qC].h04V){this.pts[qC].sU+=this.maplet.q3p7;this.pts[qC].sV+=this.maplet.VV4;this.pts[qC].h04V=this.maplet.h04V}}else{this.pts[qC].jI4()}if(this.bEditable&&!this.G95c6(this.pts[qC])&&!this.G95c6(this.pts[qC+1])&&!this.G95c6(this.pts[qC-1])){continue}if(this.pts[qC].sU&&this.pts[qC].sV){this.aR[pg]=this.pts[qC].sV;this.aP[pg]=this.pts[qC].sU;this.pu[pg]=qC;if(tn>this.aP[pg]){tn=this.aP[pg]}if(to>this.aR[pg]){to=this.aR[pg]}if(!cY&&(this.aR[pg]<0||this.aR[pg]>this.maplet.height||this.aP[pg]<0||this.aP[pg]>this.maplet.width)){cY=true}if(pg>0&&(Math.abs(this.aP[pg]-this.aP[pg-1])+Math.abs(this.aR[pg]-this.aR[pg-1]))>us){pg++}if(pg==0){pg++}}}if(!(this.bEditable||this.maplet.sS==ts.tu)&&cY){var aQ=new Array();var aS=new Array();var pv=new Array();pg=0;for(var tm4y=1;tm4y<this.aP.length;tm4y++){if((this.aR[tm4y]<-this.maplet.height&&this.aR[tm4y-1]<-this.maplet.height)||(this.aR[tm4y]>this.maplet.height*2&&this.aR[tm4y-1]>this.maplet.height*2)||(this.aP[tm4y]>this.maplet.width*2&&this.aP[tm4y-1]>this.maplet.width*2)||(this.aP[tm4y]<-this.maplet.width&&this.aP[tm4y-1]<-this.maplet.width)){continue}if(aQ.length==0||(aQ[pg]!=this.aP[tm4y-1]&&aS[pg]!=this.aR[tm4y-1])){aQ[pg]=this.aP[tm4y-1];aS[pg]=this.aR[tm4y-1];pv[pg]=this.pu[tm4y-1];pg++}aQ[pg]=this.aP[tm4y];aS[pg]=this.aR[tm4y];pv[pg]=this.pu[tm4y];pg++}this.aP=aQ;this.aR=aS;this.pu=pv;aQ=null;aS=null;pv=null}var Aa=[];this.Aa=[];for(var i=0;i<this.aP.length;i++){if(px){Aa.push(this.aP[i]+","+this.aR[i])}else{Aa.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.G_B5P){var z7=document.getElementById(this.id+"_node_"+this.pu[i]);if(z7==null){z7=new Image();z7.id=this.id+"_node_"+this.pu[i];z7.qf=i;z7.vv=this;z7.qk=this.pu[i];z7.src=ul;z7.unselectable="on";z7.alt=lt;z7.title=lt;z7.style.position="absolute";z7.style.filter="alpha(opacity=80);";z7.style.MozOpacity=0.8;z7.style.opacity=0.8;z7.onmousedown=function(){return false};z7.contextmenu=this.um}z7.style.left=(parseInt(this.aP[i])-5)+"px";z7.style.top=(parseInt(this.aR[i])-5)+"px";this.z9.appendChild(z7);if(i>0){var z8=document.getElementById(this.id+"_midnode_"+this.pu[i]);if(z8==null){z8=new Image();z8.id=this.id+"_midnode_"+this.pu[i];z8.qf=i;z8.qk=this.pu[i];z8.unselectable="on";z8.src=ul;z8.alt=lt;z8.title=lt;z8.style.position="absolute";z8.style.filter="alpha(opacity=60);";z8.style.MozOpacity=0.6;z8.style.opacity=0.6;z8.onmousedown=function(){return false};z8.contextmenu=this.um}z8.style.left=((parseInt(this.aP[i])+parseInt(this.aP[i-1]))/2-5)+"px";z8.style.top=((parseInt(this.aR[i])+parseInt(this.aR[i-1]))/2-5)+"px";this.z9.appendChild(z8)}}}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.style.display="none";this.z0.points.value=Aa.join(",");this.z0.style.display=""}else{if(px){var _v207=document.getElementById("fix_id");if(_v207){_v207.parentNode.removeChild(_v207)}var s=document.createElement("script");s.id="fix_id";document.body.insertBefore(s,document.body.firstChild);this.z0.style.display="none";this.z0.points.value=Aa.join(",");this.z0.style.display=""}else{this.Ad.setAttribute("d",Aa.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.C6$()||!this.maplet){return}var $3i=this.maplet.getMarkersInPolygon(this);var Xj7=new Object();if($3i.length>0){for(var i=0;i<$3i.length;i++){if(this.bEditable&&!$3i[i].bEditable){$3i[i].N07b(-1)}else{if($3i[i].icon&&$3i[i].icon.ld.style.zIndex<0){$3i[i].WyD6()}}Xj7[$3i[i].id]=$3i[i]}}for(var qC in this._HO39){if(!Xj7[this._HO39[qC].id]){if(typeof this._HO39[qC].WyD6=="function"){this._HO39[qC].WyD6()}}}this._HO39=Xj7};this.C6$=function(){if(!this.Ad){return false}return this.Ad.getAttribute("fill")!="none"||this.Ad.getAttribute("fill")==eval(true)};this.H384=function(m$15){if(!this._HO39[m$15.id]){this._HO39[m$15.id]=m$15}};this.c07u=function(){if(this.z9){var vgxgs=this.z9.childNodes;for(var i=0;i<vgxgs.length;i++){vgxgs[i].onmousedown=null;vgxgs[i].contextmenu=null}this.z9.contextmenu=null;_removeNode(this.z9);this.z9=null}};this.finalize=function(){this.remove(true)};this.remove=function(finalize){if(typeof finalize!="boolean"){finalize=false}if(this.C6$()&&this.bEditable){this.bEditable=false;this.refreshMarkerZIndex();if(!finalize){this.bEditable=true}}for(var l8 in this.ao){if(l8.substring(0,8)=="vstroke_"){if(this.Ad){MEvent.removeBuiltInListener(this.Ad,l8.substring(8),this.ao[l8])}}else{if(l8.substring(0,10)=="vpolyline_"){if(this.z0){MEvent.removeBuiltInListener(this.z0,l8.substring(10),this.ao[l8])}}else{if(this.maplet){MEvent.removeBuiltInListener(this.maplet.map,l8,this.ao[l8])}}}this.ao[l8]=null;if(finalize){delete this.ao[l8]}}if(finalize){this.ao=null;this.removeContextMenu();this.um.remove();this.um=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]}}if(finalize){this.c07u();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.g5gXu=function(){var hn6Y3=0;var FU6=0;if(this.brush.fill){hn6Y3=this.tn+(this.Q0cmv-this.tn)/2;FU6=this.to+(this.f9$17-this.to)/2}else{var pn=Math.ceil(this.pts.length/2)-(this.pts.length%2);if(pn<this.pts.length){hn6Y3=this.pts[pn].sU;FU6=this.pts[pn].sV}}return{x:hn6Y3,y:FU6}};this.openInfoWindow=function(lM){if(this.maplet){if(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu){return}if(this.info&&!this.info.getOverlay()){this.info.setOverlay(this)}if(typeof lM=="undefined"){if(this.info!=null&&this.pts.length>=2){var Ao=0;var Au=0;for(var i=1;i<this.pts.length;i++){var zh=cq.vp(this.pts[i].pid);Au=this.maplet.zm(zh[1],zh[0]);Ao=this.maplet.zl(zh[0],zh[1]);if(Ao>this.maplet.width*2||Ao<-this.maplet.width||Au<-this.maplet.height||Au>this.maplet.height*2){this.maplet.setCenter(this.pts[i].pid);Ao=this.maplet.width/2;Au=this.maplet.height/2}else{if(iToolTipStyle==2){this.x=Ao;this.y=Au;MEvent.trigger(this,"click",this)}else{hideBubble(this.maplet);avBubble.iKT29=true;avBubble.uX=this;avBubble.x8257=this.maplet.toMapCoordinate(Ao,Au);this.maplet.wN(Ao,Au,this.info.title,this.info.content)}break}}}}else{if(lM.target.id==this.id&&!this.maplet.JE03){var x=lM.clientX-this.maplet.offsetX-this.maplet.left;var y=lM.clientY-this.maplet.offsetY-this.maplet.top+6;if(iToolTipStyle==2){this.x=x;this.y=y;MEvent.trigger(this,"click",this)}else{MEvent.trigger(this,"click",this);if(this.info){hideBubble(this.maplet);avBubble.S04="polyline";if(!this.info.getOverlay()){this.info.setOverlay(this)}avBubble.uX=this;this.maplet.e025(this,30,30);avBubble.x8257=this.maplet.toMapCoordinate(x,y);this.maplet.wN(x,y,this.info,false);avBubble.$Xv_=true}}}else{if(lM.target.id==this.id&&this.maplet.JE03){this.maplet.JE03=false}}}}};this.wQ=function(fg){if(this.z9!=null){if(fg){this.z9.style.display="block";this.z9.style.zIndex=10}else{this.z9.style.display="none";this.z9.style.zIndex=0}}};this.uG=function(lM){if(!this.maplet){return}if(this.G_B5P){if(this.bEditable||this.maplet.sS==ts.tu&&!this.qo){if(this.ls||this.zX!=null&&this.maplet&&fJ(lM.target,px?this.zX:this.Ad)||fJ(lM.target,this.z9)){this.wQ(true);var k6Cj=this.HGV([lM.clientX-this.maplet.offsetX,lM.clientY-this.maplet.offsetY],this.Aa);var mQGm=[-10,-10];if(k6Cj!=null&&this.maplet){mQGm=this.h22(k6Cj[0],k6Cj[1],[lM.clientX-this.maplet.offsetX,lM.clientY-this.maplet.offsetY]);this.k6Cj=k6Cj}this.z9.style.left=(mQGm[0]-5)+"px";this.z9.style.top=(mQGm[1]-5)+"px"}else{this.wQ(false)}}else{if(this.qo){this.hJqw3(lM)}}}else{if(this.bEditable||this.maplet.sS==ts.tu){if(this.ls||this.zX!=null&&this.maplet&&fJ(lM.target,px?this.z0:this.Ad)||fJ(lM.target,this.z9)){if(px){this.Ad.opacity=parseInt(this.brush.stroke)==0?0:1}else{this.Ad.setAttribute("stroke-opacity",1)}this.wQ(true)}else{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(lM){if(this.zX!=null&&this.maplet&&(px&&lM.button==1||!px&&lM.button==0)&&(this.bEditable||this.maplet.sS==ts.tu)&&(fJ(lM.target,px?this.z9:this.Ad)||!px&&fJ(lM.target,this.z9))&&lM.target.id.indexOf("node")!=-1){hideBubble(this.maplet);this.qo=true;this.maplet.l6=lM.target.id;this.l0=px?lM.offsetX:lM.layerX;this.na=px?lM.offsetY:lM.layerY;EN43t=lM.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 Ab=document.createElement("v:fill");Ab.opacity=((this.brush.bgtransparency)/100);Ab.color=this.brush.bgcolor;this.wk.appendChild(Ab)}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(lM){if(EN43t!=null&&(this.bEditable||this.maplet.sS==ts.tu)&&EN43t.id.indexOf("node")>0&&this.qo){if(EN43t!=null){var x=lM.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var y=lM.clientY-this.maplet.offsetY-this.maplet.top-this.na;EN43t.style.left=(parseInt(x))+"px";EN43t.style.top=(parseInt(y))+"px";this.lw=new Date().getTime();this.ls=true;var ps=parseInt(EN43t.qf);var Aa=new String(px?"":"M");if(EN43t.id.indexOf("_midnode_")>0){Aa+=this.aP[ps-1]+","+this.aR[ps-1];Aa+=(px?",":"L")+(x+5)+","+(y+5);Aa+=(px?",":"L")+this.aP[ps]+","+this.aR[ps]}else{if(ps>0){Aa+=this.aP[ps-1]+","+this.aR[ps-1]+(px?",":"")}Aa+=((ps>0&&!px)?"L":"")+(x+5)+","+(y+5);if(ps<this.aP.length-1){Aa+=(px?",":"L")+this.aP[ps+1]+","+this.aR[ps+1]}}if(this.wk!=null){if(this.wk.points){this.wk.points.value=Aa}else{if(px){this.wk.value=Aa}else{this.Ac.setAttribute("d",Aa)}}}}}};this.l1=function(lM){if(this.zX!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo){if(EN43t!=null&&this.ls){var x=parseInt(lM.clientX)-parseInt(this.maplet.offsetX)-parseInt(this.maplet.left)-this.l0;var y=parseInt(lM.clientY)-parseInt(this.maplet.offsetY)-parseInt(this.maplet.top)-this.na;var ps=parseInt(EN43t.qk);var ud=this.maplet.toMapCoordinate(x+5,y+5);if(EN43t.id.indexOf("_midnode_")>0){this.pts.splice(ps,0,new MPoint(ud))}else{this.pts.splice(ps,1,new MPoint(ud))}this.lw=new Date().getTime();this.ls=false;EN43t=null;this.zI();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(qf){if(typeof qf!="undefined"){if(qf.toString().indexOf(this.id)>=0&&qf.toString().lastIndexOf("_")>=0){qf=qf.toString().substring(qf.toString().lastIndexOf("_")+1)}qf=parseInt(qf);if(!isNaN(qf)&&qf<this.pts.length){this.pts.splice(qf,1);MEvent.trigger(this,"edit",this);MEvent.trigger(this.maplet,"edit",this);if(typeof this.z9!="undefined"&&this.z9!=null){for(var uy in this.z9){if(typeof uy=="object"){_removeNode(uy)}}}if(this.wk!=null&&this.wk.parentNode!=null){_removeNode(this.wk);this.wk=null}this.maplet.refresh()}}};MEvent.bind(this.un,"select",this,this.removeNode);this.V7n=function(AI5,p86L,nc,AVYgp){this.$NIP5=function(rr38H){var Cni=Math.atan2(p86L-rr38H.p9PHf,AI5-rr38H.DNg)-rr38H.Qb6N1;var ort22=Math.atan2(AVYgp-rr38H.p9PHf,nc-rr38H.DNg)-rr38H.Qb6N1;while(Cni<0){Cni+=2*Math.PI}while(ort22<0){ort22+=2*Math.PI}while(Cni>2*Math.PI){Cni-=2*Math.PI}while(ort22>2*Math.PI){ort22-=2*Math.PI}return(Cni-Math.PI)*(ort22-Math.PI)<0&&(Cni>Math.PI?2*Math.PI-Cni:Cni)+(ort22>Math.PI?2*Math.PI-ort22:ort22)<Math.PI}};this.QW$3=function(DNg,p9PHf,Qb6N1){this.DNg=DNg;this.p9PHf=p9PHf;this.Qb6N1=Qb6N1};this.E6A=function($wH){var v6=null;$wH=$wH.toString().split(",");var i4dn=parseInt($wH[0]);var XM858=parseInt($wH[1]);var rvhE6=parseInt($wH[2]);var qI55=parseInt($wH[3]);var J4me=Math.abs(i4dn-rvhE6);var oGS=Math.abs(XM858-qI55);var F_L=parseInt(this.brush.stroke);var g4=F_L*oGS/Math.sqrt(Math.pow(J4me,2)+Math.pow(oGS,2));var g5=g4*J4me/oGS;if(i4dn==rvhE6){v6=[[i4dn-F_L,XM858],[i4dn+F_L,XM858],[rvhE6+F_L,qI55],[rvhE6-F_L,qI55]]}else{if(XM858==qI55){v6=[[i4dn,XM858+F_L],[rvhE6,qI55+F_L],[rvhE6,qI55-F_L],[i4dn,XM858-F_L]]}else{if((XM858<qI55&&i4dn<rvhE6)||(XM858>qI55&&i4dn<rvhE6)){v6=[[i4dn-g4,XM858+g5],[rvhE6-g4,qI55+g5],[rvhE6+g4,qI55-g5],[i4dn+g4,XM858-g5]]}else{if((XM858>qI55&&i4dn>rvhE6)||(XM858<qI55&&i4dn>rvhE6)){v6=[[parseInt(i4dn-g4),parseInt(XM858+g5)],[parseInt(i4dn+g4),parseInt(XM858-g5)],[parseInt(rvhE6+g4),parseInt(qI55-g5)],[parseInt(rvhE6-g4),parseInt(qI55+g5)]]}}}}return v6};this.npFcM=[];this.M0f=function(h2SL,$wH){var ub=this.E6A($wH);for(var i=0;i<ub.length;i++){this.npFcM.push(new this.V7n(ub[i][0],ub[i][1],ub[(i+1)%ub.length][0],ub[(i+1)%ub.length][1]))}var mU3_o=new this.QW$3(h2SL[0],h2SL[1],parseFloat("0.523112313123"));var hFRb=0;for(var qC=0;qC<this.npFcM.length;qC++){if(this.npFcM[qC].$NIP5(mU3_o)){hFRb++}}this.npFcM=[];return hFRb%2!=0};this.HGV=function(coords,k02Y8){for(var i=0;i<k02Y8.length-1;i++){if(this.M0f(coords,[k02Y8[i],[k02Y8[i+1]]])){return[k02Y8[i],[k02Y8[i+1]]]}}return null};this.h22=function(uY5bE,l3C,_j8G7){uY5bE=uY5bE.toString().split(",");l3C=l3C.toString().split(",");var e43=[parseInt(l3C[0])-parseInt(uY5bE[0]),parseInt(l3C[1])-parseInt(uY5bE[1])];var bj4X5=[parseInt(_j8G7[0])-parseInt(uY5bE[0]),parseInt(_j8G7[1])-parseInt(uY5bE[1])];var I387U=bj4X5[0]*e43[0]+bj4X5[1]*e43[1];if(I387U<=0){return uY5bE}var hj6Ac=e43[0]*e43[0]+e43[1]*e43[1];if(hj6Ac<=I387U){return l3C}return[parseInt(uY5bE[0])+e43[0]*I387U/hj6Ac,parseInt(uY5bE[1])+e43[1]*I387U/hj6Ac]};this.ok0m=function(lM){if(this.zX!=null&&this.maplet&&(px&&lM.button==1||!px&&lM.button==0)&&(this.bEditable||this.maplet.sS==ts.tu)&&(fJ(lM.target,px?this.zX:this.Ad)||!px&&fJ(lM.target,this.z9))){this.qo=true;this.maplet.l6=lM.target.id;this.l0=px?lM.offsetX:lM.layerX;this.na=px?lM.offsetY:lM.layerY;EN43t=lM.target}};this.q_x=function(lM){if(this.zX!=null&&this.maplet&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo){this.qo=false;var x=parseInt(lM.clientX)-parseInt(this.maplet.offsetX)-parseInt(this.maplet.left)-this.l0;var y=parseInt(lM.clientY)-parseInt(this.maplet.offsetY)-parseInt(this.maplet.top)-this.na;if(x>0&&y>0){MEvent.trigger(this,"nodedrag",this,new MMarker(new MPoint(this.maplet.toMapCoordinate(x+5,y+5))),(this.S9T0(this,this.k6Cj)).slice(0,2))}}if(this.maplet&&this.maplet.l6==this.id){this.maplet.l6=null}};this.S9T0=function($50,_PRc){var v6=[];var pts=$50.pts;for(var i=0;i<pts.length;i++){if(pts[i].sU+","+pts[i].sV==_PRc[0].toString()||pts[i].sU+","+pts[i].sV==_PRc[1].toString()){v6.push(i)}}return v6};this.hJqw3=function(lM){if(EN43t!=null&&(this.bEditable||this.maplet.sS==ts.tu)&&this.qo){if(EN43t!=null){var x=lM.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var y=lM.clientY-this.maplet.offsetY-this.maplet.top-this.na;EN43t.style.left=(parseInt(x)+16)+"px";EN43t.style.top=(parseInt(y)+16)+"px";this.lw=new Date().getTime();this.ls=true}}};this.appendPoint=function(o3RI8,xv3){if(typeof o3RI8!="object"||!(o3RI8 instanceof MPoint)||!o3RI8){throw new Error("para new_pt is not a valid MPoint object.")}this.pts.push(o3RI8);if(!this.pts[this.pts.length-1].maplet){this.pts[this.pts.length-1].qc(this.maplet)}if(typeof xv3!="boolean"){xv3=true}if(xv3){this.zI()}}};var MLabel=function(d,e,f,c,b){this.label=d;if(typeof e=="object"&&e){b=e}if(typeof b!="object"||!b){b={}}if(typeof e=="object"&&e){if("number,string".indexOf(typeof b.xoffset)==-1){b.xoffset=undefined}if("number,string".indexOf(typeof b.yoffset)==-1){b.yoffset=undefined}if("number,string".indexOf(typeof b.opacity)==-1){b.opacity=undefined}}else{b.xoffset=e;b.yoffset=f;b.opacity=c}if(typeof b.enableStyle!="boolean"){b.enableStyle=true}if(typeof b.visible!="boolean"){b.visible=true}var a=false;this.visible=b.visible;this.xoffset=(typeof b.xoffset=="undefined")?null:parseInt(b.xoffset);this.yoffset=(typeof b.yoffset=="undefined")?null:parseInt(b.yoffset);this.opacity=typeof b.opacity!="undefined";this.ld=document.createElement("div");if(b.enableStyle){this.ld.className="tiplabel"}this.ld.style.left="-1000px";this.ld.style.top="-1000px";this.ld.unselectable="on";this.ld.style.zIndex=1000;this.ld.style.position="absolute";this.ld.style.visibility="visible";if(px&&typeof b.opacity!="undefined"){this.ld.style.filter="alpha( opacity = "+parseInt(b.opacity)+" )"}else{if(!px&&typeof b.opacity!="undefined"){this.ld.style.MozOpacity=parseInt(b.opacity)/100}}this.sW=null;this.wz=function(g){this.ld.id="mk_label_"+g};this.setContextMenu=function(g){this.contextmenu=g;if(this.ld){this.ld.contextmenu=g}};this.qc=function(g){this.sW=g;this.setContextMenu(g.contextmenu)};this.zI=function(g,i,h){if(this.ld.parentNode!=g.lA.ld&&!this.sW.ls){this.ld.innerHTML=this.label;g.lA.appendChild(this.ld)}if(this.xoffset==null){this.xoffset=this.sW.icon.width}if(this.yoffset==null){this.yoffset=this.sW.icon.height/2-this.ld.offsetHeight/2}if(!a){this.ld.style.display=this.visible?"":"none";a=true}this.ld.style.left=(parseInt(i)+this.xoffset)+"px";this.ld.style.top=(parseInt(h)+this.yoffset)+"px"};this.finalize=function(){this.remove(true)};this.remove=function(g){if(typeof g!="boolean"){g=false}if(this.ld){if(!g){if(this.ld.parentNode){this.ld.parentNode.removeChild(this.ld)}}else{_removeNode(this.ld);this.ld=null}}if(g){this.sW=null}};this.toString=function(){return"com.mapbar.maplet.MLabel"};this.f7l=this.ld.style.zIndex;this.N07b=function(g){if(this.ld&&this.ld.parentNode&&g!=this.ld.style.zIndex){this.f7l=this.ld.style.zIndex;this.ld.style.zIndex=g}};this.WyD6=function(){if(!this.ld){return}if(this.f7l!=this.ld.style.zIndex){this.N07b(this.f7l)}};this.setVisible=function(g){if(g!=(this.ld.style.display=="none"?false:true)){this.ld.style.display=g?"":"none";this.visible=g}};this.resetLabel=function(g){if(typeof g!="object"||!g){return}var i=parseInt(this.ld.style.left);var h=parseInt(this.ld.style.top);if(typeof g.content=="string"){this.label=g.content;this.ld.innerHTML=this.label}if(typeof g.enableStyle=="boolean"){this.ld.className=g.enableStyle?"tiplabel":""}if("number,string".indexOf(typeof g.xoffset)!=-1){this.xoffset=parseInt(g.xoffset)}else{if(typeof g.xoffset=="object"&&g.xoffset==null){this.xoffset=null}}if("number,string".indexOf(typeof g.yoffset)!=-1){this.yoffset=parseInt(g.yoffset)}else{if(typeof g.yoffset=="object"&&g.yoffset==null){this.yoffset=null}}if("number,string".indexOf(typeof g.opacity)!=-1){if(px&&typeof g.opacity!="undefined"){this.ld.style.filter="alpha( opacity = "+parseInt(g.opacity)+" )"}else{if(!px&&typeof g.opacity!="undefined"){this.ld.style.MozOpacity=parseInt(g.opacity)/100}}}this.zI(this.sW.maplet,this.sW.icon.left,this.sW.icon.top)};this.getText=function(){var g="";if(this.label.indexOf(Maplet.MLABEL_TEXT_FLAG)!=-1){var h=new RegExp(Maplet.MLABEL_TEXT_FLAG+'="?([^"\t ]*)',"gi");var i=h.exec(this.label);if(i!=null){g=i[1]}}else{if(this.label!=""){g=n08H2(this.label)}else{g=this.label}}return g}};var MInfoWindow=function(b,a,e,c){this.title=b;this.content=a;this.yd=(typeof e!="undefined"&&"mouseover"==e.toLowerCase())?"mouseover":"click";this.gv=function(f,g){avBubble.uX=this.getOverlay();return gp(this.title,f,g,this.content,c)};var d=null;this.setOverlay=function(f){d=f};this.getOverlay=function(){return d};this.toString=function(){return"com.mapbar.maplet.MInfoWindow"};this.setTitle=function(f){if(ContentInfo){this.title=f;ContentInfo.SetTitle(f)}};this.setContent=function(f){if(ContentInfo){this.content=f;ContentInfo.SetContent(f)}};this.zoomTo=function(f){if(f=="zoomin"){this.zoomOut()}else{if(f=="zoomout"){this.zoomIn()}}};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 f={width:0,height:0};if(ContentInfo){f.width=ContentInfo.Aj;f.height=ContentInfo.c1}return f};this.setZMBtnVisible=function(f){if(ContentInfo){ContentInfo.NGPf9(f)}else{avBubble.l7O=f}};this.getZMBtnVisible=function(){if(ContentInfo){return ContentInfo.tm3()}return false}};var ContentInfo=null;var gp=function(f,e,d,c){var b=(maplet.width>700)?650:maplet.width-50;var a=(maplet.height>600)?550:maplet.height-50;avBubble.left=parseInt(e)-(parseInt(avBubble.width)/2-avBubble.arrow_tip_xoffset);avBubble.top=parseInt(d)-(parseInt(avBubble.height)+avBubble.arrow_tip_yoffset);avBubble.head=f;avBubble.body=c;avBubble.calcLatLon();if(ContentInfo==null){ContentInfo=new CornerTip("mybubble",avBubble.left,avBubble.top,avBubble.width,avBubble.height,100);ContentInfo.onClosed=function(){var h=ContentInfo.q3+ContentInfo.cb.q3;var g=ContentInfo.zt+ContentInfo.nV;var j=0,i=0;if(h<0){j=Math.abs(h)+50}if(g>maplet.height){i=-(g-maplet.height+50)}hideBubble(maplet);maplet.e025(avBubble.uX,50,50)};ContentInfo.onZoomOut=function(){MEvent.trigger(avBubble.uX,"bubble_zoomout",avBubble.uX);var i=maplet.p2p();ContentInfo.ag(i.width,i.height);ContentInfo.ys(za.AW);ContentInfo.LayoutContent();avBubble.syncContentInfoPosition();avBubble.calcLatLon();var h=ContentInfo.q3-((maplet.width-i.width)/2);var g=ContentInfo.zt-((maplet.height-i.height)/2);maplet.panTo(-h,-g)};ContentInfo.onZoomIn=function(){MEvent.trigger(avBubble.uX,"bubble_zoomin",avBubble.uX);ContentInfo.af(avBubble.width,avBubble.height);ContentInfo.ys(za.AX);ContentInfo.LayoutContent();avBubble.syncContentInfoPosition();avBubble.calcLatLon();var h=ContentInfo.q3+ContentInfo.cb.q3;var g=ContentInfo.zt+ContentInfo.nV;var j=0,i=0;if(h<0){j=Math.abs(h)+50}if(g>maplet.height){i=-(g-maplet.height+50)}maplet.panTo(j,i)};ContentInfo.CG0=function(g){MEvent.trigger(avBubble.uX,"bubble_zoomend",g);MEvent.trigger(maplet,"iw_zoomend",avBubble.uX.info,g=="out"?"zoomin":"zoomout")};ContentInfo.Show(avBubble.l7O);ContentInfo.SetTitle(avBubble.head);ContentInfo.SetContent(avBubble.body)}else{ContentInfo.zoomTo(parseInt(avBubble.width),parseInt(avBubble.height));ContentInfo.wA(avBubble.top,avBubble.left);ContentInfo.SetTitle(avBubble.head);ContentInfo.SetContent(avBubble.body);ContentInfo.LayoutContent()}return document.getElementById("bubble")};function hideBubble(a){var c=document.getElementById("bubble");if(c&&c.style.display!="none"){avBubble.S04="";c.style.display="none";c.style.visibility="hidden";var b=document.getElementById("mybubble_shadow");if(b){b.style.visibility=""}MEvent.trigger(a,"iw_hide")}if(typeof a!="undefined"&&a.L231!=null){a.L231=null;a.refresh()}else{if(document["mapbar-maplet"]!="undefined"&&document["mapbar-maplet"].L231!=null){document["mapbar-maplet"].L231=null;document["mapbar-maplet"].refresh()}}if(c&&c.style.display!="none"){c.style.display="none";c.style.visibility="hidden"}if(ContentInfo){ContentInfo.ys(za.AX)}}var Bubble=function(){this.xR="";this.l7O=false;this.Obti=false;this.left=0;this.top=0;this.head=new String();this.body=new String();this.width=300;this.height=300;this.openInfoWindow=null;this.v97=false;this.B364=false;this.$Xv_=false;this.l782k=0;this._898$=0;this.o7v7K=0;this.iKT29=false;this.offsetX=0;this.offsetY=0;this.QG7=false;this.wxL0=false;this.uX=null;this.x8257="";this.S04="";this.xX2F=false;this.arrow_tip_xoffset=27;this.arrow_tip_yoffset=3;this.xoffset=0;this.g61rN=function(a){this.head=a};this.x73K=function(a){this.body=a};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.isVisible=function(){var a=document.getElementById("bubble");return a&&a.style.display!="none"};this.i73=function(){if(this.S04=="marker"&&this.xX2F){this.xX2F=false;this.xR=maplet.toMapCoordinate(ContentInfo.q3,ContentInfo.zt);return}if(ContentInfo&&this.xR&&document.getElementById("bubble").style.display!="none"&&!this.iKT29){var b=cq.vp(this.xR);var a=maplet.zl(b[0],b[1]);var c=maplet.zm(b[1],b[0]);if(maplet.getZoomLevel()==0){c-=94}ContentInfo.wA(c,a);this.xR=maplet.toMapCoordinate(ContentInfo.q3,ContentInfo.zt)}};this.Gh9L=function(){var a=document.getElementById("bubble");if(a){if(a.style.display!="none"){return true}else{return false}}else{return false}}};var avBubble=new Bubble();function aj(a){if(!_Qf37){a=a.replace(new RegExp("(\\[imgsrc\\])","g"),"src='"+strImgsvrUrl+"images/mapbar31/context.png' onmousedown='return false;' unselectable='on' contenteditable='false' onmousemove='return false;' ");a=a.replace(new RegExp("(\\[imgfilter\\])","g"),"");a=a.replace(new RegExp("(\\[shadowsrc\\])","g"),"src='"+strImgsvrUrl+"images/mapbar31/context.png' onmousedown='return false;' unselectable='on' contenteditable='false' onmousemove='return false;' ");a=a.replace(new RegExp("(\\[shadowfilter\\])","g"),"")}else{a=a.replace(new RegExp("(\\[imgsrc\\])","g"),"src='"+strImgsvrUrl+"images/newbubbleimg/mbblank.gif'");a=a.replace(new RegExp("(\\[imgfilter\\])","g"),"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+strImgsvrUrl+"images/mapbar31/context.png,sizingMethod=scale);");a=a.replace(new RegExp("(\\[shadowsrc\\])","g"),"src='"+strImgsvrUrl+"images/newbubbleimg/mbblank.gif' ondragstart='return false;' ");a=a.replace(new RegExp("(\\[shadowfilter\\])","g"),"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+strImgsvrUrl+"images/mapbar31/context.png,sizingMethod=scale);")}return a}var gh=new function(){this._62=640;this.HYc7=590;this.i58e=250;this.SK2A1=150;this.pD="[imgsrc]";this.pK="[imgfilter]position:absolute;width:1044px;height:1155px;";this.wH="[shadowsrc]";this.wI="[shadowfilter]position:absolute;width:1044px;height:1155px;";this.gj=30;this.gf=30;this.cd=84;this.ck=97;this.le="position:absolute;overflow:hidden;";this.sq="left:0px;top:0px;"+this.pK;this.qY="left:0px;top:-660px;"+this.pK;this.wj="left:-660px;top:0px;"+this.pK;this.vN="left:-660px;top:-660px;"+this.pK;this.sp=56;this.sn=26;this.qX=34;this.qV=27;this.wi=33;this.wg=26;this.vM=50;this.vK=27;this.so="left:-9px;top:-790px;"+this.wI;this.qW="left:-30px;top:-1096px;"+this.wI;this.wh="left:-743px;top:-790px;"+this.wI;this.vL="left:-382px;top:-1096px;"+this.wI;this.yE="left:-31px;top:0px;"+this.pK;this.cD="left:-31px;top:-660px;"+this.pK;this.st="left:0px;top:-31px;"+this.pK;this.wo="left:-660px;top:-31px;"+this.pK;this.yD="left:-64px;top:-790px;"+this.wI;this.cC="left:-130px;top:-1096px;"+this.wI;this.cj="left:0px;top:-700px;"+this.pK;this.ci=140;this.cg=60;this.ch="left:-473px;top:-1096px;"+this.wI;this.fZ=12;this.fX=12;this.fY="position:absolute;";this.AR=12;this.AQ=12;this.AM="position:absolute;";this.Ay="position:absolute;";this.f7="left:-294px;top:-816px;"+this.wI};var yY={q7:1,q5:2,v8:3,v7:4};function yX(a,b){this.pj=a;this.g6=b;this.q3=0;this.zt=0;this.nA=function(){var c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+gh.gj+"px;height:"+gh.gf+"px;'><img id='"+this.pj+"_Img' "+gh.pD+" style='-moz-user-select: none;";switch(b){case yY.q7:c+=gh.sq;break;case yY.q5:c+=gh.qY;break;case yY.v8:c+=gh.wj;break;case yY.v7:c+=gh.vN;break;default:break}return c+"'></div>"}}function yZ(a,b){this.pj=a;this.g6=b;this.q3=0;this.zt=0;this.nA=function(){var c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;";switch(b){case yY.q7:c+="width:"+gh.sp+"px;height:"+gh.sn+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='"+gh.so;break;case yY.q5:c+="width:"+gh.qX+"px;height:"+gh.qV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='"+gh.qW;break;case yY.v8:c+="width:"+gh.wi+"px;height:"+gh.wg+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='"+gh.wh;break;case yY.v7:c+="width:"+gh.vM+"px;height:"+gh.vK+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='"+gh.vL;break;default:break}return c+"-moz-user-select: none;'></div>"}}var yR={zv:1,c6:2,q8:3,v9:4};function yQ(a,b){this.pj=a;this.g6=b;this.zt=0;this.q3=0;this.Aj=0;this.nV=0;this.nA=function(){var c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.pD+" style='-moz-user-select: none;";switch(b){case yR.zv:c+=gh.yE;break;case yR.c6:c+=gh.cD;break;case yR.q8:c+=gh.st;break;case yR.v9:c+=gh.wo;break;default:break}return c+"'></div>"}}function yS(a,b){this.pj=a;this.g6=b;this.zt=0;this.q3=0;this.Aj=0;this.nV=0;this.nA=function(){var c="";switch(b){case yR.zv:c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='-moz-user-select: none;"+gh.yD+"'></div>";break;case yR.c6:c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='-moz-user-select: none;"+gh.cC+"'></div>";break;case yR.q8:c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='-moz-user-select: none;"+gh.wI+"top:-"+(280-this.nV+24+786)+"px;'></div>";break;case yR.v9:c="<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='-moz-user-select: none;"+gh.wI+"left:-758px;top:-"+(280-this.Aj+41+786)+"px;'></div>";break;default:break}return c}}function yO(a){this.pj=a;this.q3=0;this.zt=0;this.Aj=0;this.nV=0;this.nA=function(){return"<div id='"+this.pj+"' unselectable='on' "+(px?"ondragstart='return false;'":"")+" style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.pD+" style='"+gh.cj+"-moz-user-select: none;'></div>"}}function yP(a){this.pj=a;this.q3=0;this.zt=0;this.Aj=0;this.nV=0;this.nA=function(){return"<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='"+gh.ch+"-moz-user-select: none;'></div>"}}function y7(a,b){this.pj=a;this.zd=a+"_TitleTd";this.q3=0;this.zt=0;this.Aj=0;this.nV=0;this.ze=b;this.nA=function(){return"<table id='"+this.pj+"' unselectable='on' style='position:absolute; top:"+this.zt+"px;left:"+this.q3+"px;width:"+this.Aj+"px;height:"+this.nV+"px;background-color:white;z-Index:"+this.ze+"'><tr><td id='"+this.zd+"'></td><td style='width:20px;'></td></tr></table><div id='bubbleTitleBG' unselectable='on' style='z-index:0;position:absolute;overflow:hidden;top:"+this.zt+"px;left:"+this.q3+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img onmousedown='return false;' onmousemove='return false;' src='"+strImgsvrUrl+"images/mapbar31/context.png' style='-moz-user-select: none;left:-30px;top:-30px;width:1044px;height:1155px;position:absolute;'/></div>"};this.SetTitle=function(c){if(aa(this.zd)!=undefined){aa(this.zd).innerHTML="<strong style='font-size:14px'>"+c+"</strong>"}};this.nw=function(){if(aa(this.pj)!=undefined){return aa(this.pj).clientHeight}else{return this.nV}}}function yV(a){this.pj=a;this.f3="";this.q3=0;this.zt=0;this.Aj=0;this.nV=0;this.nA=function(){return"<div id='"+this.pj+"' unselectable='on' style='z-index:1;overflow:auto;position:absolute; top:"+this.zt+"px;left:"+this.q3+"px;width:"+this.Aj+"px;height:"+this.nV+"px;background-color:white;'>"+this.f3+"</div><div id='bubbleContentBG' unselectable='on' style='z-index:0;position:absolute;overflow:hidden;top:"+this.zt+"px;left:"+this.q3+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img onmousedown='return false;' onmousemove='return false;' src='"+strImgsvrUrl+"images/mapbar31/context.png' style='-moz-user-select: none;left:-30px;top:-30px;width:1044px;height:1155px;position:absolute;'/></div>"}}function yW(a){this.pj=a;this.q3=0;this.zt=0;this.Aj=0;this.nV=0;this.nA=function(){return"<div id='"+this.pj+"' unselectable='on' style='"+gh.le+"left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;'><img id='"+this.pj+"_Img' "+gh.wH+" style='-moz-user-select: none;"+gh.f7+"'></div>"}}function yT(a,b){this.pj=a;this.zt=0;this.q3=0;this.Aj=0;this.nV=0;this.fn=b;this.nA=function(){return"<div id='"+this.pj+"' unselectable='on'style='overflow:hidden;"+gh.fY+" width:"+this.Aj+"px; height:"+this.nV+"px; top:"+this.zt+"px;left:"+this.q3+"px;z-index:"+this.fn+";cursor:pointer;'><img src='"+strImgsvrUrl+"images/mapbar31/maplet31.gif' style='-moz-user-select: none;position:absolute;width:320px;height:336px;left:-150px;top:0px;'/></div>"}}var za={AX:1,AW:2};function y0(d,c,a,b,e){this.pj=d;this.ft=c;this.q3=0;this.zt=0;this.Aj=0;this.nV=0;this.onZoomOut=a;this.onZoomIn=b;this.fn=e;this.nA=function(g){var h="";var f="<div id='"+this.pj+"' unselectable='on' style='overflow:hidden;left:"+this.q3+"px;top:"+this.zt+"px;width:"+this.Aj+"px;height:"+this.nV+"px;z-index:"+this.fn+";cursor:pointer;";if(!g){f+="display:none"}f+=";";switch(this.ft){case za.AX:f+=gh.AM+"'";h="-110";break;case za.AW:f+=gh.Ay+"'";h="-130";break;default:break}return f+"><img src='"+strImgsvrUrl+"images/mapbar31/maplet31.gif' style='-moz-user-select: none;position:absolute;width:320px;height:336px;left:"+h+"px;top:0px;'/></div>"};this.yr=function(f){if(aa(this.pj)!=undefined&&this.ft!=f){this.ft=f;if(this.ft==za.AW&&this.onZoomIn!=null){aa(this.pj).firstChild.style.left="-130px";if(window.HTMLElement){aa(this.pj).removeEventListener("click",this.onZoomOut,false);aa(this.pj).addEventListener("click",this.onZoomIn,false)}else{aa(this.pj).detachEvent("onclick",this.onZoomOut);aa(this.pj).attachEvent("onclick",this.onZoomIn)}}else{if(this.onZoomOut!=null){aa(this.pj).firstChild.style.left="-800px";if(window.HTMLElement){aa(this.pj).removeEventListener("click",this.onZoomIn,false);aa(this.pj).addEventListener("click",this.onZoomOut,false)}else{aa(this.pj).detachEvent("onclick",this.onZoomIn);aa(this.pj).attachEvent("onclick",this.onZoomOut)}}}}}}function CornerTip(uH,left,top,width,height,AA){this.TipId=uH;this.sk=null;this.qT=null;this.we=null;this.vH=null;this.yB=null;this.cy=null;this.sr=null;this.wl=null;this.cb=null;this.AD=null;this.zb=null;this.f3=null;this.wD=null;this.zt=top;this.q3=left;this.Aj=width;this.nV=height;this.c1=height-gh.cd+15;this.y3="";this.fW=null;this.onZoomOut=null;this.onZoomIn=null;this.CG0=null;this.onClosed=null;this.y9=AA;this.wA=function(top,left){if(aa(this.TipId)!=null){var offsetY=this.wD.zt-(this.zt-top);var offsetX=this.wD.q3-(this.q3-left);this.wD.wA(offsetY,offsetX);this.zt=top;aa(this.TipId).style.top=this.zt+"px";this.q3=left;aa(this.TipId).style.left=this.q3+"px"}};this.Show=function(mbo){this.y3="<div id='"+this.TipId+"' unselectable='on' style='position:absolute; top:"+this.zt+"px;left:"+this.q3+"px;width:"+this.Aj+"px;height:"+this.nV+"px;z-index:"+this.y9+";'>";this.sk=new yX(uH+"_LTCorner",yY.q7);this.qT=new yX(uH+"_LBCorner",yY.q5);this.qT.zt=this.c1-gh.gf;this.we=new yX(uH+"_RTCorner",yY.v8);this.we.q3=this.Aj-gh.gj;this.vH=new yX(uH+"_RBCorner",yY.v7);this.vH.zt=this.qT.zt;this.vH.q3=this.we.q3;this.y3+=this.sk.nA()+this.qT.nA()+this.we.nA()+this.vH.nA();this.yB=new yQ(uH+"_THBorder",yR.zv);this.yB.q3=gh.gj;this.yB.Aj=this.Aj-gh.gj*2;this.yB.nV=gh.gf;this.cy=new yQ(uH+"_BHBorder",yR.c6);this.cy.zt=this.c1-gh.gf;this.cy.q3=gh.gj;this.cy.Aj=this.Aj-gh.gj*2;this.cy.nV=gh.gf;this.sr=new yQ(uH+"_LVBorder",yR.q8);this.sr.zt=gh.gf;this.sr.Aj=gh.gj;this.sr.nV=this.c1-gh.gf*2;this.wl=new yQ(uH+"_RVBorder",yR.v9);this.wl.zt=gh.gf;this.wl.q3=this.Aj-gh.gj;this.wl.Aj=gh.gj;this.wl.nV=this.c1-gh.gf*2;this.y3+=this.yB.nA()+this.cy.nA()+this.sr.nA()+this.wl.nA();this.cb=new yO(uH+"_Bar");this.cb.zt=this.c1-15;var pA=Math.round((this.Aj-gh.gj-gh.ck)/2);this.cb.q3=gh.gj+pA;this.cb.Aj=gh.ck;this.cb.nV=gh.cd;this.y3+=this.cb.nA();this.AD=new y0(uH+"_ZMBtn",za.AX,this.onZoomOut,this.onZoomIn,this.y9+1);this.AD.zt=10;this.AD.q3=this.Aj-45;this.AD.Aj=gh.AR;this.AD.nV=gh.AQ;this.y3+=this.AD.nA(mbo);this.fW=new yT(uH+"_CBtn",this.y9+1);this.fW.zt=10;this.fW.q3=this.Aj-30;this.fW.Aj=gh.fZ;this.fW.nV=gh.fX;this.y3+=this.fW.nA();this.zb=new y7(uH+"_Title",this.y9);this.zb.zt=this.fW.zt;this.zb.q3=10;this.zb.Aj=this.fW.q3;this.zb.nV=30;this.y3+=this.zb.nA();this.f3=new yV(this.TipId+"_Content");this.f3.q3=10;this.f3.Aj=this.Aj-20;this.y3+=this.f3.nA();this.y3+="</div>";var yp=this.Aj*1.3;var ym=Math.round(this.nV*0.6);var yo=this.zt+Math.round(this.nV*0.4);var yn=this.q3+Math.round(this.Aj*0.3);this.wD=new gi(this.TipId+"_Shadow",yn,yo,yp,ym,this.y9-1);this.y3+=this.wD.nA();this.y3=aj(this.y3);var uB=document.createElement("DIV");uB.innerHTML=this.y3;uB.id="bubble";uB.style.display="none";uB.unselectable="on";document.body.appendChild(uB);this.LayoutContent();var wE=this.q3+this.cb.q3+this.cb.Aj-60;yn=wE-parseInt(aa(this.wD.cA.pj).style.width)-gh.qX;aa(this.wD.pj).style.left=this.wD.q3=yn;aa(this.wD.pj).style.visibility="visible";if(this.onZoomOut!=null&&aa(this.AD.pj)!=undefined){if(window.HTMLElement){aa(this.AD.pj).addEventListener("click",this.onZoomOut,false)}else{aa(this.AD.pj).attachEvent("onclick",this.onZoomOut)}}if(aa(this.fW.pj)!=undefined){if(window.HTMLElement){aa(this.fW.pj).addEventListener("click",this.ah,false);if(this.onClosed!=null){aa(this.fW.pj).addEventListener("click",this.onClosed,false)}}else{aa(this.fW.pj).attachEvent("onclick",this.ah);if(this.onClosed!=null){aa(this.fW.pj).attachEvent("onclick",this.onClosed)}}}};this.SetContent=function(content){if(aa(this.f3.pj)){if(typeof(content)=="string"||content instanceof String){aa(this.f3.pj).innerHTML="<div style='font-size:13px'>"+content+"</div>"}else{if(typeof(content)=="object"&&content.tagName){aa(this.f3.pj).appendChild(content)}}}};this.SetTitle=function(title){if(this.zb&&aa(this.zb.pj)){this.zb.SetTitle(title);this.LayoutContent()}};this.nx=function(){if(this.f3&&aa(this.f3.pj)){if(aa(this.f3.pj).style.display!="none"){return true}}return false};this.wx=function(visible){if(this.f3&&aa(this.f3.pj)){if(visible&&!this.nx()){aa(this.f3.pj).style.display=""}else{if(this.nx()){aa(this.f3.pj).style.display="none"}}}};this.NGPf9=function(visible){if(this.AD){aa(this.AD.pj).style.display=visible?"":"none"}};this.tm3=function(){if(this.AD){return aa(this.AD.pj).style.display!="none"?true:false}return false};this.LayoutContent=function(){aa(this.f3.pj).style.width=(this.Aj-20)+"px";this.f3.zt=this.zb.zt+this.zb.nw();this.f3.nV=this.c1-this.zb.nw()-20;aa("bubbleContentBG").style.width=(this.Aj-20)+"px";aa("bubbleContentBG").style.top=this.f3.zt+"px";aa("bubbleContentBG").style.height=this.f3.nV+"px";aa(this.f3.pj).style.height=this.f3.nV+"px";aa(this.f3.pj).style.top=this.f3.zt+"px"};this.ys=function(type){if(this.AD!=undefined){this.AD.yr(type)}};this.zoomTo=function(gZ,gY){this.ag(gZ,gY);this.af(gZ,gY)};this.af=function(gZ,gY){if(aa(this.TipId)!=undefined){if(this.Aj>gZ){var gS=this.Aj-gZ;var nd=this.q3+(gS/2);aa(this.TipId).style.left=nd+"px";this.q3=nd;aa(this.TipId).style.width=(parseInt(aa(this.TipId).style.width)-gS)+"px";aa(this.yB.pj).style.width=(parseInt(aa(this.yB.pj).style.width)-gS)+"px";aa(this.we.pj).style.left=(parseInt(aa(this.we.pj).style.left)-gS)+"px";aa(this.wl.pj).style.left=(parseInt(aa(this.wl.pj).style.left)-gS)+"px";aa(this.vH.pj).style.left=(parseInt(aa(this.vH.pj).style.left)-gS)+"px";aa(this.cy.pj).style.width=(parseInt(aa(this.cy.pj).style.width)-gS)+"px";aa(this.AD.pj).style.left=(parseInt(aa(this.AD.pj).style.left)-gS)+"px";this.AD.q3=parseInt(aa(this.AD.pj).style.left);aa(this.fW.pj).style.left=(parseInt(aa(this.fW.pj).style.left)-gS)+"px";this.fW.q3=parseInt(aa(this.fW.pj).style.left);aa(this.cb.pj).style.left=(parseInt(aa(this.cb.pj).style.left)-(gS/2))+"px";aa(this.zb.pj).style.width=(this.zb.Aj=this.fW.q3)+"px";aa("bubbleTitleBG").style.width=this.zb.Aj+"px";this.Aj=gZ}if(this.nV>gY){var gR=this.nV-gY;var ne=this.zt+gR;aa(this.TipId).style.top=ne+"px";this.zt=ne;aa(this.TipId).style.height=(parseInt(aa(this.TipId).style.height)-gR)+"px";aa(this.sr.pj).style.height=(parseInt(aa(this.sr.pj).style.height)-gR)+"px";aa(this.qT.pj).style.top=(parseInt(aa(this.qT.pj).style.top)-gR)+"px";aa(this.wl.pj).style.height=(parseInt(aa(this.wl.pj).style.height)-gR)+"px";aa(this.vH.pj).style.top=(parseInt(aa(this.vH.pj).style.top)-gR)+"px";aa(this.cy.pj).style.top=(parseInt(aa(this.cy.pj).style.top)-gR)+"px";aa(this.cb.pj).style.top=(parseInt(aa(this.cb.pj).style.top)-gR)+"px";this.nV=gY;this.c1=this.nV-gh.cd+15}var yp=this.Aj*1.3;var ym=Math.round(this.nV*0.6);this.wD.wU(yp,ym);if(typeof this.CG0=="function"){this.CG0("in")}}};this.ag=function(gZ,gY){if(aa(this.TipId)!=undefined){if(this.Aj<gZ){var al=gZ-this.Aj;var nd=this.q3-(al/2);aa(this.TipId).style.left=nd+"px";this.q3=nd;aa(this.TipId).style.width=(parseInt(aa(this.TipId).style.width)+al)+"px";aa(this.yB.pj).style.width=(parseInt(aa(this.yB.pj).style.width)+al)+"px";aa(this.we.pj).style.left=(parseInt(aa(this.we.pj).style.left)+al)+"px";aa(this.wl.pj).style.left=(parseInt(aa(this.wl.pj).style.left)+al)+"px";aa(this.vH.pj).style.left=(parseInt(aa(this.vH.pj).style.left)+al)+"px";aa(this.cy.pj).style.width=(parseInt(aa(this.cy.pj).style.width)+al)+"px";this.AD.q3=parseInt(aa(this.AD.pj).style.left)+al;aa(this.AD.pj).style.left=this.AD.q3+"px";this.fW.q3=parseInt(aa(this.fW.pj).style.left)+al;aa(this.fW.pj).style.left=this.fW.q3+"px";aa(this.cb.pj).style.left=(parseInt(aa(this.cb.pj).style.left)+(al/2))+"px";this.zb.Aj=this.fW.q3;aa(this.zb.pj).style.width=this.zb.Aj+"px";aa("bubbleTitleBG").style.width=this.zb.Aj+"px";this.Aj=gZ}if(this.nV<gY){var ak=gY-this.nV;var ne=this.zt-ak;aa(this.TipId).style.top=ne+"px";this.zt=ne;aa(this.TipId).style.height=(parseInt(aa(this.TipId).style.height)+ak)+"px";aa(this.sr.pj).style.height=(parseInt(aa(this.sr.pj).style.height)+ak)+"px";aa(this.qT.pj).style.top=(parseInt(aa(this.qT.pj).style.top)+ak)+"px";aa(this.wl.pj).style.height=(parseInt(aa(this.wl.pj).style.height)+ak)+"px";aa(this.vH.pj).style.top=(parseInt(aa(this.vH.pj).style.top)+ak)+"px";aa(this.cy.pj).style.top=(parseInt(aa(this.cy.pj).style.top)+ak)+"px";aa(this.cb.pj).style.top=(parseInt(aa(this.cb.pj).style.top)+ak)+"px";this.nV=gY;this.c1=this.nV-gh.cd+15}var yp=this.Aj*1.3;var ym=Math.round(this.nV*0.6);this.wD.wU(yp,ym);if(typeof this.CG0=="function"){this.CG0("out")}}};this.ah=function(){return false};this.fV=function(){if(!document.all){var l8=document.gr("MouseEvents");l8.qb("click",true,true);aa(this.fW.pj).g9(l8)}else{aa(this.fW.pj).eval('fireEvent("onclick")')}}}CornerTip.ZoomOutTo=function(h,d,g,a){var b=false;if(h.Aj<d||h.nV<g){h.wx(false);var c=h.Aj+100;c=c>=d?d:c;var f=h.nV+100;f=f>=g?g:f;h.ag(c,f);var e=function(){CornerTip.ZoomOutTo.call(null,h,d,g,a)};window.setTimeout(e,a);return}h.ys(za.AW);h.LayoutContent();h.wx(true)};CornerTip.ZoomInTo=function(g,c,f,a){if(g.Aj>c||g.nV>f){g.wx(false);var b=g.Aj-100;b=b<=c?c:b;var e=g.nV-100;e=e<=f?f:e;g.af(b,e);var d=function(){CornerTip.ZoomInTo.call(null,g,c,f,a)};window.setTimeout(d,a);return}g.ys(za.AX);g.LayoutContent();g.wx(true)};function gi(b,e,d,c,a,f){this.pj=b;this.sm=null;this.wf=null;this.qU=null;this.vJ=null;this.yC=null;this.cA=null;this.cB=null;this.ss=null;this.wn=null;this.cf=null;this.f6=null;this.zt=d;this.q3=e;this.Aj=c;this.nV=a;this.c1=this.nV-30;this.wJ=f;this.wF="";this.wA=function(h,g){this.zt=h;this.q3=g;aa(this.pj).style.top=this.zt+"px";aa(this.pj).style.left=this.q3+"px"};this.nA=function(){this.wF="<div id='"+this.pj+"' unselectable='on' style='position:absolute; top:"+this.zt+"px;left:"+this.q3+"px;width:"+this.Aj+"px;height:"+this.nV+"px; overflow:hidden;z-index:"+this.wJ+"; visibility:hidden;'>";var i=this.c1-gh.wg-gh.vK;var j=this.Aj-i-gh.vM-6;var g=i+11;var h=j+gh.vM;var k=Math.ceil(((h-gh.qX-gh.vM-gh.ci)/2));this.yC=new yS(this.pj+"_THBorder",yR.zv);this.yC.q3=g+gh.sp;this.yC.Aj=this.Aj-this.yC.q3-gh.wi;this.yC.nV=gh.sn;this.wn=new yS(this.pj+"_RVBorder",yR.v9);this.wn.Aj=i+18;this.wn.nV=i;this.wn.zt=gh.wg;this.wn.q3=this.Aj-this.wn.Aj;this.ss=new yS(this.pj+"_LVBorder",yR.q8);this.ss.Aj=i+18;this.ss.nV=i;this.ss.zt=gh.sn;this.ss.q3=3;this.cA=new yS(this.pj+"_BHBorder1",yR.c6);this.cA.Aj=k;this.cA.nV=30;this.cA.zt=this.ss.zt+this.ss.nV;this.cA.q3=gh.qX;this.cB=new yS(this.pj+"_BHBorder2",yR.c6);this.cB.Aj=k;this.cB.nV=30;this.cB.zt=this.ss.zt+this.ss.nV;this.cB.q3=j-this.cB.Aj;this.wF+=this.yC.nA()+this.ss.nA()+this.wn.nA()+this.cA.nA()+this.cB.nA();this.cf=new yP(this.pj+"_BarShadow");this.cf.zt=this.cA.zt;this.cf.q3=this.cA.q3+k;this.cf.Aj=gh.ci-((this.cf.q3+gh.ci)-this.cB.q3);this.cf.nV=gh.cg;this.wF+=this.cf.nA();this.sm=new yZ(this.pj+"_LTCorner",yY.q7);this.sm.zt=0;this.sm.q3=g;this.wf=new yZ(this.pj+"_RTCorner",yY.v8);this.wf.q3=this.Aj-gh.wi;this.qU=new yZ(this.pj+"_LBCorner",yY.q5);this.qU.zt=this.c1-gh.qV;this.vJ=new yZ(this.pj+"_RBCorner",yY.v7);this.vJ.q3=j;this.vJ.zt=this.c1-gh.vK;this.wF+=this.sm.nA()+this.wf.nA()+this.vJ.nA()+this.qU.nA();this.f6=new yW(this.pj+"_Content");this.f6.zt=this.ss.zt;this.f6.q3=this.ss.q3+this.ss.Aj;this.f6.Aj=this.wn.q3-this.f6.q3;this.f6.nV=this.ss.nV;this.wF+=this.f6.nA();this.wF+="</div>";return this.wF};this.wU=function(i,k){if(aa(this.pj)!=undefined){var h=this.cf.q3;var r=this.pj;var n=i-this.Aj;var o=k-this.nV;var l=this.zt-o;this.zt-=o;aa(r).style.top=this.zt+"px";this.Aj=i;aa(r).style.width=this.Aj+"px";this.nV=k;aa(r).style.height=this.nV+"px";this.c1=this.nV-30;var q=this.c1-gh.wg-gh.vK;var p=this.Aj-q-gh.vM-6;var j=q+11;var m=p+gh.vM;var g=Math.ceil(((m-gh.qX-gh.vM-gh.ci)/2));r=this.yC.pj;this.yC.q3=j+gh.sp;aa(r).style.left=this.yC.q3+"px";this.yC.Aj=this.Aj-this.yC.q3-gh.wi;aa(r).style.width=this.yC.Aj+"px";this.yC.nV=gh.sn;aa(r).style.height=this.yC.nV+"px";r=this.wn.pj;this.wn.Aj=q+18;aa(r).style.width=this.wn.Aj+"px";this.wn.nV=q;aa(r).style.height=this.wn.nV+"px";this.wn.zt=gh.wg;aa(r).style.top=this.wn.zt+"px";this.wn.q3=this.Aj-this.wn.Aj;aa(r).style.left=this.wn.q3+"px";r=r+"_Img";aa(r).style.top=(-(280-this.wn.Aj+41+786))+"px";r=this.ss.pj;this.ss.Aj=q+18;aa(r).style.width=this.ss.Aj+"px";this.ss.nV=q;aa(r).style.height=this.ss.nV+"px";this.ss.zt=gh.sn;aa(r).style.top=this.ss.zt+"px";this.ss.q3=3;aa(r).style.left=this.ss.q3+"px";r=r+"_Img";aa(r).style.top=(-(280-this.ss.nV+24+786))+"px";r=this.cA.pj;this.cA.Aj=g;aa(r).style.width=this.cA.Aj+"px";this.cA.nV=30;aa(r).style.height=this.cA.nV+"px";this.cA.zt=this.ss.zt+this.ss.nV;aa(r).style.top=this.cA.zt+"px";this.cA.q3=gh.qX;aa(r).style.left=this.cA.q3+"px";r=this.cB.pj;this.cB.Aj=g;aa(r).style.width=this.cB.Aj+"px";this.cB.nV=30;aa(r).style.height=this.cB.nV+"px";this.cB.zt=this.ss.zt+this.ss.nV;aa(r).style.top=this.cB.zt+"px";this.cB.q3=p-this.cB.Aj;aa(r).style.left=this.cB.q3+"px";r=this.sm.pj;this.sm.q3=j;aa(r).style.left=this.sm.q3+"px";r=this.wf.pj;this.wf.q3=this.Aj-gh.wi;aa(r).style.left=this.wf.q3+"px";r=this.qU.pj;this.qU.zt=this.c1-gh.qV;aa(r).style.top=this.qU.zt+"px";r=this.vJ.pj;this.vJ.q3=p;aa(r).style.left=this.vJ.q3+"px";this.vJ.zt=this.c1-gh.vK;aa(r).style.top=this.vJ.zt+"px";r=this.f6.pj;this.f6.zt=this.ss.zt;aa(r).style.top=this.f6.zt+"px";this.f6.q3=this.ss.q3+this.ss.Aj;aa(r).style.left=this.f6.q3+"px";this.f6.Aj=this.wn.q3-this.f6.q3;aa(r).style.width=this.f6.Aj+"px";this.f6.nV=this.ss.nV;aa(r).style.height=this.f6.nV+"px";r=this.cf.pj;this.cf.zt=this.cA.zt;aa(r).style.top=this.cf.zt+"px";this.cf.q3=this.cA.q3+g;aa(r).style.left=this.cf.q3+"px";this.cf.Aj=gh.ci-((this.cf.q3+gh.ci)-this.cB.q3);aa(r).style.width=this.cf.Aj+"px";this.cf.nV=gh.cg;aa(r).style.height=this.cf.nV+"px";r=this.pj;this.q3-=this.cf.q3-h;aa(r).style.left=this.q3+"px"}}}function M82(a){this.maplet=a;document["mapbar-overview"]=this;this.yl="mapbar";this.ca=otp;this.vb=document.createElement("div");this.vb.unselectable="on";this.vb.style.position="absolute";this.vb.style.visibility="visible";this.vb.style.zIndex=1000;this.vb.style.backgroundColor="white";this.vb.style.borderLeftStyle="solid";this.vb.style.borderLeftWidth="1px";this.vb.style.borderLeftColor="#949694";if(this.ca){this.vb.style.borderBottomStyle="solid";this.vb.style.borderBottomWidth="1px";this.vb.style.borderBottomColor="#949694"}else{this.vb.style.borderTopStyle="solid";this.vb.style.borderTopWidth="1px";this.vb.style.borderTopColor="#949694"}this.vb.style.overflow="hidden";this.c3=oo;if(this.ca){this.vb.style.top="0px"}else{if(this.c3){this.vb.style.top=(this.maplet.height-owh-1)+"px"}else{this.vb.style.top=(this.maplet.height-uS)+"px"}}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;if(this.ca){this.fC.style.top="0px"}else{this.fC.style.top=(uU-2)+"px"}this.fC.style.left=(px)?"5px":"7px";this.fC.style.backgroundColor=MapBackgroundColor;this.fC.style.borderStyle="solid";this.fC.style.borderWidth="1px";this.fC.style.overflow="hidden";this.fC.style.borderColor="#949694";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";this.z2.unselectable="on";if(!px){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.show=function(){this.vb.style.visibility="visible";this.vb.style.display="block"};this.hide=function(){this.close();this.vb.style.visibility="hidden";this.vb.style.display="none"};this.nF=function(){return parseInt(this.vb.style.top)};this.Q53i=function(){return parseInt(this.vb.style.left)};this.nz=function(){return parseInt(this.vb.style.height)};this.w0=function(c){if(this.cW!=0){return}if(c.target.id==this.z2.id||A0F2N==this.z2.id){A0F2N=this.z2.id;this.z2.selected=true;this.lq=(px)?event.clientX:c.clientX;this.lr=(px)?event.clientY:c.clientY;this.xa=this.lq;this.xb=this.lr}else{if(fJ(c.target,this.fC)||A0F2N==this.fC.id){A0F2N=this.fC.id;this.fC.selected=true;this.lq=(px)?event.clientX:c.clientX;this.lr=(px)?event.clientY:c.clientY;this.xa=this.lq;this.xb=this.lr}}};this.f9=function(f){if(f.target.id==this.z2.id||A0F2N==this.z2.id){if(this.z2.selected){var e=(px)?event.clientX:f.clientX;var d=(px)?event.clientY:f.clientY;var h=(e-this.lq);var g=(d-this.lr);this.lq=e;this.lr=d;if(this.z2.style.top){this.z2.style.top=(parseInt(this.z2.style.top)+g)+"px";this.z2.style.left=(parseInt(this.z2.style.left)+h)+"px"}}}else{if(fJ(f.target,this.fC)||A0F2N==this.fC.id){if(this.fC.selected){var e=(px)?event.clientX:f.clientX;var d=(px)?event.clientY:f.clientY;var h=(e-this.lq);var g=(d-this.lr);this.lq=e;this.lr=d;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)+g)+"px";this.pU[c].style.left=(parseInt(this.pU[c].style.left)+h)+"px"}}if(this.z3.style.top){this.z3.style.top=(parseInt(this.z3.style.top)+g)+"px";this.z3.style.left=(parseInt(this.z3.style.left)+h)+"px";this.z1.style.top=(parseInt(this.z1.style.top)+g)+"px";this.z1.style.left=(parseInt(this.z1.style.left)+h)+"px"}}}}};this.l1=function(g){hideBubble(this.maplet);if(this.z2.selected){A0F2N=null;this.z2.selected=false;var f=(px)?event.clientX:g.clientX;var e=(px)?event.clientY:g.clientY;var i=(f-this.xa);var h=(e-this.xb);var d=-h*this.xf/this.maplet.pN;var c=i*this.xg/this.maplet.pZ;this.gK=this.maplet.gx+d;this.gL=this.maplet.gA+c;this.cW=1;this.vh=getTimeout(this,this.vO,20)}else{if(this.fC.selected){A0F2N=null;this.fC.selected=false;var f=(px)?event.clientX:g.clientX;var e=(px)?event.clientY:g.clientY;var i=-(f-this.xa);var h=-(e-this.xb);var d=-h*this.xf/this.maplet.pN;var c=i*this.xg/this.maplet.pZ;this.gK=this.maplet.gx+d;this.gL=this.maplet.gA+c;this.cW=2;this.vh=getTimeout(this,this.vO,20)}}};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 f=parseInt(this.z2.style.top)-parseInt(this.z3.style.top);var g=parseInt(this.z2.style.left)-parseInt(this.z3.style.left);var e=Math.round(g);var d=Math.round(f);if((Math.abs(g)+Math.abs(f))>=10){var e=Math.round(g*10/(Math.abs(g)+Math.abs(f)));var d=Math.round(f*10/(Math.abs(g)+Math.abs(f)))}if(this.cW==2){if((Math.abs(g)+Math.abs(f))==0){this.maplet.setCenter(this.gK,this.gL,true);this.cW=0}else{this.z3.style.top=(parseInt(this.z3.style.top)+d)+"px";this.z3.style.left=(parseInt(this.z3.style.left)+e)+"px";this.z1.style.top=(parseInt(this.z1.style.top)+d)+"px";this.z1.style.left=(parseInt(this.z1.style.left)+e)+"px";this.vh=getTimeout(this,this.vO,20)}}else{if(this.cW==1){e=-e;d=-d;if((Math.abs(g)+Math.abs(f))==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)+d)+"px";this.pU[c].style.left=(parseInt(this.pU[c].style.left)+e)+"px"}}this.z2.style.top=(parseInt(this.z2.style.top)+d)+"px";this.z2.style.left=(parseInt(this.z2.style.left)+e)+"px";this.vh=getTimeout(this,this.vO,20)}}}};this.pU=new Array();this.yN=null;this.c4=false;this.cl=false;if(this.c3){var b=(px)?0:2;this.vb.style.left=(parseInt(this.maplet.width)-oww)+"px";this.vb.style.width=oww+"px";this.vb.style.height=owh+"px";this.fC.style.width=(oww-8-b)+"px";this.fC.style.height=(owh-8)+"px"}else{var b=(px)?0:1;this.vb.style.left=(parseInt(this.maplet.width)-uS)+"px";this.vb.style.width=(uS)+"px";this.vb.style.height=(uS-b)+"px";this.fC.style.width=(uS-4)+"px";this.fC.style.height=(uS-4)+"px"}this.sa=new Array();this.nH=function(){return parseInt(this.vb.style.width)};this.addListener=function(c){this.sa[c.id]=c};this.removeListener=function(c){this.sa[c.id]=null};this.uq=function(){for(var c in this.sa){if(this.sa[c]&&this.sa[c].onresize){this.sa[c].onresize()}}this.maplet.onresize()};this.g1=function(){for(var c in this.sa){if(this.sa[c]){this.sa[c]=null}this.sa=null}for(var d in this.pU){try{if(this.pU[d]!=null){if(this.pU[d].parentNode!=null){this.pU[d].parentNode.removeChild(this.pU[d])}this.pU[d].onmousedown=null;this.pU[d].onerror=null;this.pU[d].onload=null;this.pU[d]=null}}catch(f){}this.pU=null}for(var e in this.ao){try{if(this.ao[e]!=null){MEvent.removeBuiltInListener(this.fC,e,this.ao[e]);this.ao[e]=null}}catch(f){}this.ao=null}this.img.ovw=null;this.img.onclick=null;this.z2.w0=null;this.z2.f9=null;if(this.vb.parentNode!=null){this.vb.parentNode.removeChild(this.vb)}this.maplet=null};this.onresize=function(){if(this.c3){this.vb.style.left=(parseInt(this.maplet.width)-oww)+"px";this.img.style.top=(parseInt(this.vb.style.height)-uS)+"px"}else{this.vb.style.left=(parseInt(this.maplet.width)-uS)+"px";this.img.style.top=(parseInt(this.vb.style.height)-uS-(px?0:0))+"px"}if(!this.ca){this.vb.style.top=(this.maplet.height-parseInt(this.vb.style.height)-1)+"px"}this.uq()};this.close=function(){if(this.c4){return}this.um$Xp.style.left="-1px";this.um$Xp.style.top="0px";var c=(px)?0:1;if(this.yN){clearTimeout(this.yN)}this.yN=null;if(parseInt(this.vb.style.width)>2*uS){this.vb.style.left=(parseInt(this.vb.style.left)+uS)+"px";this.vb.style.width=(parseInt(this.vb.style.width)-uS)+"px";this.vb.style.height=(parseInt(this.vb.style.height)-(uS-5))+"px";this.fC.style.width=(parseInt(this.vb.style.width)-uS-4)+"px";this.fC.style.height=(parseInt(this.vb.style.height)-(uS-5)-4)+"px";this.img.style.left=(parseInt(this.vb.style.width)-uS-1+c)+"px";this.cl=true;this.yN=getTimeout(this,this.close,10)}else{this.vb.style.left=(parseInt(this.maplet.width-uS))+"px";this.vb.style.width=(uS)+"px";this.vb.style.height=(uS-c)+"px";this.fC.style.width=(uS-4)+"px";this.fC.style.height=(uS-4)+"px";this.img.style.left="-1px";this.cl=false}if(!this.ca){this.vb.style.top=(this.maplet.height-parseInt(this.vb.style.height))+"px";this.img.style.top=(parseInt(this.vb.style.height)-uS-1)+"px"}this.uq()};this.open=function(){if(this.cl){return}var c=(px)?0:2;this.um$Xp.style.left="-17px";this.um$Xp.style.top="0px";if(this.yN){clearTimeout(this.yN)}this.yN=null;if(parseInt(this.vb.style.width)<(oww-2*uS)){this.vb.style.left=(parseInt(this.vb.style.left)-uS)+"px";this.vb.style.width=(parseInt(this.vb.style.width)+uS)+"px";this.vb.style.height=(parseInt(this.vb.style.height)+(uS-5))+"px";this.fC.style.width=(parseInt(this.vb.style.width)-4-c)+"px";this.fC.style.height=(parseInt(this.vb.style.height)-8-4)+"px";this.img.style.left=(parseInt(this.vb.style.width)-uS-1)+"px";this.c4=true;this.yN=getTimeout(this,this.open,10)}else{this.vb.style.left=(parseInt(this.maplet.width)-oww)+"px";this.vb.style.width=(oww)+"px";this.vb.style.height=(owh)+"px";this.fC.style.width=(oww-10)+"px";this.fC.style.height=(owh-10)+"px";this.img.style.left=(oww-uS-1)+"px";this.paint();this.c4=false}if(!this.ca){this.vb.style.top=(this.maplet.height-parseInt(this.vb.style.height)+1)+"px";this.fC.style.left="7px";this.img.style.top=(parseInt(this.vb.style.height)-uS-2)+"px"}this.uq()};this.qa=function(d){var c=(px)?0:2;this.img=document.createElement("div");this.img.unselectable="on";this.img.style.position="absolute";this.img.style.zIndex=1000;this.img.style.left="-1px";this.img.width=uS+"px";this.img.height=uS+"px";this.img.style.width=uS+"px";this.img.style.height=uS+"px";this.img.ovw=this;this.img.style.cursor=(px)?"hand":"pointer";this.img.style.overflow="hidden";this.um$Xp=document.createElement("img");this.um$Xp.unselectable="on";this.um$Xp.style.width="320px";this.um$Xp.style.height="336px";this.um$Xp.style.position="absolute";this.um$Xp.src=strImgsvrUrl+"images/mapbar31/maplet31.gif";this.img.onclick=function(){if(this.ovw.c3){this.ovw.close()}else{this.ovw.open()}this.ovw.c3=!this.ovw.c3};if(this.c3){this.um$Xp.style.left="-17px";this.um$Xp.style.top="0px"}else{this.um$Xp.style.left="-1px";this.um$Xp.style.top="0px"}if(this.ca){this.img.style.top="0px"}else{if(this.c3){this.img.style.top=(parseInt(this.vb.style.height)-uS)+"px"}else{this.img.style.top=(parseInt(this.vb.style.height)-uS-(px?1:0))+"px"}}this.img.style.left=(parseInt(this.vb.style.width)-uS-1)+"px";this.vb.appendChild(this.img);this.img.appendChild(this.um$Xp);d.appendChild(this.vb);this.ao.mousedown=MEvent.bindDom(this.fC,"mousedown",this,this.w0);this.ao.mousemove=MEvent.bindDom(this.fC,"mousemove",this,this.f9);this.ao.mouseup=MEvent.bindDom(this.fC,"mouseup",this,this.l1);this.ao.mouseout=MEvent.bindDom(this.fC,"mouseout",this,function(g){if(A0F2N){var h={min:{x:0,y:0},max:{x:0,y:0}};h.min.x=this.Q53i()+parseInt(this.fC.style.left)+3;h.min.y=this.nF()+parseInt(this.fC.style.top)+3;h.max.x=h.min.x+this.fC.clientWidth;h.max.y=h.min.y+this.fC.clientHeight;var f=((px)?event.clientX:g.clientX)-this.maplet.offsetX;var e=((px)?event.clientY:g.clientY)-this.maplet.offsetY;if(!e2K({x:f,y:e},h)){this.l1(g)}}})};this.paint=function(){if(!this.c3){return}this.width=oww-10;this.height=owh-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.pZ=this.maplet.pZ;this.pN=this.maplet.pN;this.xK=this.maplet.xK;if(this.yl!=this.maplet.yl){this.yl=this.maplet.yl;for(var n in this.pU){try{if(this.pU[n]!=null){if(this.pU[n].parentNode!=null){this.pU[n].parentNode.removeChild(this.pU[n])}this.pU[n].onmousedown=null;this.pU[n].onerror=null;this.pU[n].onload=null;this.pU[n]=null}}catch(j){}}}var s=this.yl;this.z4=Math.ceil((this.width)/(this.pZ)/2);this.z5=Math.ceil((this.height)/(this.pN)/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.sU=this.width/2-Math.round(((this.gA*wp)%(this.xg*wp))*this.pZ/(this.xg*wp));if(this.gx>=0){this.sV=this.height/2-this.pN+Math.round(((this.gx*wp)%(this.xf*wp))*this.pN/(this.xf*wp))}else{this.sV=this.height/2+Math.round(((this.gx*wp)%(this.xf*wp))*this.pN/(this.xf*wp))}var o=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=(360/sj[this.AG]);this.gk=1;this.wT=0;for(var n in this.pU){if(this.pU[n]!=null){this.pU[n].c2=false}}for(qx=-this.z4-1;qx<=this.z4;qx++){for(qz=-this.z5-1;qz<=this.z5;qz++){try{var l=this.maplet.xL+"mapbank/"+s+"/"+this.sR;var r=parseInt(this.gD+qx);var g=parseInt(this.gE+qz);r=(r)%t;if(r>=(t/2)){r-=t}if(r<(-t/2)){r+=t}var q=parseInt(Math.floor((r)/o));var p=parseInt(Math.floor((g)/o));if(q<0){q+=1}if(p<0){p+=1}var k=(r)-q*o;var h=(g)-p*o;l+=q+"_"+p+"/";l+=k+"_"+h+"."+this.xK;var f=(qx*this.pZ)+parseInt(this.sU);var d=(-(qz*this.pN)+parseInt(this.sV));var c=d;if(this.yl!="aerial"&&this.yl.indexOf("aerial")<0){d=d+w8[this.AG]}if(f<-this.pZ||f>this.width||d>this.height||d<-this.pN){continue}if(this.sZ<(f+this.pZ)){this.sZ=(f+this.pZ);this.s2=parseInt(this.gD)+parseInt(qx)}if(this.s1<(d+this.pN)){this.s1=(d+this.pN);this.ti=parseInt(this.gE)+parseInt(qz)}if(this.tf1>f){this.tf1=f;this.th=parseInt(this.gD)+parseInt(qx)}if(this.tg>d){this.tg=d;this.s3=parseInt(this.gE)+parseInt(qz)}var u="__ov_"+((this.AG).toString(16)+(this.gD+qx).toString(16)+"l"+(this.gE+qz).toString(16)).toLowerCase();if(l&&l.indexOf("NaN")<0){if(this.pU[u]==null){this.pU[u]=new Image();this.pU[u].id=u;this.pU[u].name=u;this.pU[u].ntry="0";this.pU[u].unselectable="on";this.pU[u].style.position="absolute";this.pU[u].onmousedown=function(){return false};this.pU[u].src=l}var e=(f+this.pZ/2-this.width/2)*this.gk-(d+this.pN/2-this.height/2)*this.wT+this.width/2;var w=(f+this.pZ/2-this.width/2)*this.wT+(d+this.pN/2-this.height/2)*this.gk+this.height/2;this.pU[u].style.top=parseInt(w-this.pN/2)+"px";this.pU[u].style.left=parseInt(e-this.pZ/2)+"px";this.pU[u].c2=true}l=null;u=null}catch(j){}}}for(var n in this.pU){try{if(this.pU[n]!=null){if(this.pU[n].c2==true){if(this.pU[n].parentNode!=this.fC){this.fC.appendChild(this.pU[n])}}else{if(this.pU[n].parentNode!=null){this.pU[n].parentNode.removeChild(this.pU[n])}this.pU[n].onmousedown=null;this.pU[n].onerror=null;this.pU[n].onload=null;this.pU[n]=null}}}catch(j){}}var v=parseInt(this.maplet.width*this.maplet.xg/this.xg);var m=parseInt(this.maplet.height*this.maplet.xf/this.xf);if(v>this.width&&m>this.height){this.z3.style.visibility="hidden";this.z1.style.visibility="hidden";this.z2.style.visibility="hidden"}else{this.z3.style.left=parseInt(this.width-v)/2+"px";this.z3.style.top=parseInt(this.height-m)/2+"px";this.z3.style.width=(v)+"px";this.z3.style.height=(m)+"px";this.z3.style.visibility="visible";this.z1.style.left=parseInt(this.width-v)/2+"px";this.z1.style.top=parseInt(this.height-m)/2+"px";this.z1.style.width=(v)+"px";this.z1.style.height=(m)+"px";this.z1.style.visibility="visible";this.z2.style.left=parseInt(this.width-v)/2+"px";this.z2.style.top=parseInt(this.height-m)/2+"px";this.z2.style.width=(v)+"px";this.z2.style.height=(m)+"px";this.z2.style.visibility="visible"}};this.RC9P4=function(){var c={min:{x:this.vb.offsetLeft,y:this.vb.offsetTop},max:{x:0,y:0}};c.max.x=c.min.x+this.vb.offsetWidth;c.max.y=c.min.y+this.vb.offsetHeight;return c}}var MStandardControl=function(c,b,a,d){this.x6=(typeof c=="undefined")?"mapbar":c;this.left=(typeof b=="undefined")?0:parseInt(b);this.top=(typeof a=="undefined")?0:parseInt(a);this.fi=(typeof d=="undefined")?0:parseInt(d);this.id=new Date().getTime()+parseInt(Math.random()*1000);this.nR=null;this.qc=function(e){this.maplet=e;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(this.x6,this.maplet.AG,this.left,this.top,70,120,true,3,this.maplet.vb,this.maplet,this.fi);if(this.maplet.ga==null){this.maplet.ga=this.nR}}};this.remove=function(){this.maplet=null;if(this.nR){if(this.nR==this.maplet.ga){this.maplet.ga=null}this.nR.g1();this.nR=null}};this.toString=function(){return"com.mapbar.maplet.MStandardControl"}};var MEllipse=function(b,d,e,a,c){this.id=new Date().getTime()+""+parseInt(Math.random()*10000)+"Ellipse";this.gC=b;this.JgM=typeof d!="undefined"&&!isNaN(d)?parseInt(d):300;this.Wu25=typeof e!="undefined"&&!isNaN(e)?parseInt(e):null;this.brush=(typeof a=="undefined")?new MBrush():a;this.info=(typeof c=="undefined")?null:c;this.ao=new Array();this.zX=null;this.n21=null;this._wm=true;this.w7Y=true;this.data={qx:0,qz:0,DLtW:0,LOkW:0,JgM:0,Wu25:0};this._S7=false;this.C9bR8=false;this.qc=function(f){this.maplet=f;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.n21){this.zX=this.maplet.Hg2();if(px){this.n21=document.createElement("v:oval");this.n21.strokecolor=this.brush.color;this.n21.strokeweight=this.brush.stroke+"px";this.n21.filled=this.brush.fill;var g=document.createElement("v:stroke");g.opacity=(this.brush.transparency/100);var f=document.createElement("v:fill");f.opacity=((this.brush.bgtransparency)/100);f.color=this.brush.bgcolor;this.n21.appendChild(g);this.n21.appendChild(f);this.zX.appendChild(this.n21)}else{this.n21=document.createElementNS("http://www.w3.org/2000/svg","ellipse");this.n21.setAttribute("stroke",this.brush.color);this.n21.setAttribute("fill",this.brush.bgcolor);this.n21.setAttribute("stroke-width",this.brush.stroke);this.n21.setAttribute("stroke-opacity",this.brush.transparency/100);this.n21.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.zX.firstChild.appendChild(this.n21)}this.n21.id=this.id;this.n21.style.position="absolute";this.n21.unselectable="on";this.ao.ellipse_mouseover=MEvent.bindDom(this.n21,"mouseover",this,function(){if(this.maplet.sS==ts.tz||this.maplet.sS==ts.tA||this.maplet.sS==ts.l2lg){this.maplet.Mu408("crosshair",this.n21)}else{if(this.info||MEvent.contains(this,"click")){this.maplet.Mu408("pointer",this.n21)}else{this.maplet.Mu408("default",this.n21)}}});this.ao.ellipse_mouseout=MEvent.bindDom(this.n21,"mouseout",this,function(){if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.l2lg){this.maplet.Mu408("default",this.n21)}});this.ao.ellipse_mousedown=MEvent.bindDom(this.n21,"mousedown",this,function(){this._S7=true;this.C9bR8=false;if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.l2lg){this.maplet.Mu408("move",this.n21)}});this.ao.ellipse_mouseup=MEvent.bindDom(this.n21,"mouseup",this,function(h){this._S7=false;this.ao.ellipse_mouseover(h)});this.ao.ellipse_mousemove=MEvent.bindDom(this.n21,"mousemove",this,function(){if(this._S7&&!this.C9bR8){this.C9bR8=true}})}this.zI()};this.zI=function(){if(this.n21){if(!this.gC.maplet){this.gC.qc(this.maplet)}if(this.maplet.csJ3){if(this.maplet.h04V!=this.gC.h04V){this.gC.sU+=this.maplet.q3p7;this.gC.sV+=this.maplet.VV4;this.gC.h04V=this.maplet.h04V}}else{this.gC.jI4()}var h=this.gC.sU;var f=this.gC.sV;var i=parseInt(this.JgM/111111/this.maplet.xg*this.maplet.pZ/0.8);var g=i;if(this.Wu25){g=parseInt(this.Wu25/111111/this.maplet.xf*this.maplet.pN)}this.data.qx=h-i;this.data.qz=f-g;this.data.DLtW=h+i;this.data.LOkW=f+g;this.data.JgM=i;this.data.Wu25=g;if(px){this.n21.style.left=this.data.qx+"px";this.n21.style.top=this.data.qz+"px";this.n21.style.width=i*2+"px";this.n21.style.height=g*2+"px"}else{this.n21.setAttribute("cx",h+"px");this.n21.setAttribute("cy",f+"px");this.n21.setAttribute("rx",i+"px");this.n21.setAttribute("ry",g+"px")}}};this.finalize=function(){this.remove(true)};this.remove=function(g){for(var f in this.ao){if(f.substring(0,8)=="ellipse_"){if(this.n21){MEvent.removeBuiltInListener(this.n21,f.substring(8),this.ao[f])}}else{if(this.maplet){MEvent.removeBuiltInListener(this.maplet.map,f,this.ao[f])}}this.ao[f]=null;delete this.ao[f]}if(typeof this.n21=="object"&&this.n21&&this.n21.parentNode){_removeNode(this.n21);this.n21=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(g){this.ao=null;this.maplet=null}};this.openInfoWindow=function(h){if(this.maplet!=null){if(this.C9bR8){if(h.target.id==this.id&&this.maplet.JE03){this.maplet.JE03=false}return}if(!this.info||(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu)){return}var f=this.gC.sU;var i=this.gC.sV;if(!this.info.getOverlay()){this.info.setOverlay(this)}var g=true;if(typeof h=="undefined"){}else{if(h.target.id==this.id&&!this.maplet.JE03){MEvent.trigger(this,"click",this);f=h.clientX-this.maplet.offsetX-this.maplet.left;i=h.clientY-this.maplet.offsetY-this.maplet.top+6}else{if(h.target.id==this.id&&this.maplet.JE03){this.maplet.JE03=false;g=false}else{g=false}}}if(g){hideBubble(this.maplet);avBubble.x8257=this.maplet.toMapCoordinate(f,i);this.maplet.wN(f,i,this.info)}}}};var MRoundRect=function(b,a,c,d,e){this.id=new Date().getTime()+""+parseInt(Math.random()*10000)+"RRect";this.jvK=b;this._X_dQ=a;this.arcsize=typeof c=="number"?c:0.1;this.width=0;this.height=0;this.brush=(typeof d=="undefined")?new MBrush():d;this.info=(typeof e=="undefined")?null:e;this.ao=new Array();this.zX=null;this.M87V3=null;this._wm=true;this.w7Y=true;this._S7=false;this.C9bR8=false;this.qc=function(f){this.maplet=f;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.M87V3){this.zX=this.maplet.Hg2();if(px){this.M87V3=document.createElement("v:roundrect");this.M87V3.strokecolor=this.brush.color;this.M87V3.strokeweight=this.brush.stroke+"px";this.M87V3.filled=this.brush.fill;this.M87V3.arcsize=this.arcsize;var g=document.createElement("v:stroke");g.opacity=(this.brush.transparency/100);var f=document.createElement("v:fill");f.opacity=((this.brush.bgtransparency)/100);f.color=this.brush.bgcolor;this.M87V3.appendChild(g);this.M87V3.appendChild(f);this.zX.appendChild(this.M87V3)}else{this.M87V3=document.createElementNS("http://www.w3.org/2000/svg","rect");this.M87V3.setAttribute("stroke",this.brush.color);this.M87V3.setAttribute("fill",this.brush.bgcolor);this.M87V3.setAttribute("stroke-width",this.brush.stroke);this.M87V3.setAttribute("stroke-opacity",this.brush.transparency/100);this.M87V3.setAttribute("fill-opacity",this.brush.bgtransparency/100);this.zX.firstChild.appendChild(this.M87V3)}this.M87V3.id=this.id;this.M87V3.style.position="absolute";this.M87V3.unselectable="on";this.ao.rect_mouseover=MEvent.bindDom(this.M87V3,"mouseover",this,function(){if(this.maplet.sS==ts.tz||this.maplet.sS==ts.tA||this.maplet.sS==ts.l2lg){this.maplet.Mu408("crosshair",this.M87V3)}else{if(this.info||MEvent.contains(this,"click")){this.maplet.Mu408("pointer",this.M87V3)}else{this.maplet.Mu408("default",this.M87V3)}}});this.ao.rect_mouseout=MEvent.bindDom(this.M87V3,"mouseout",this,function(){if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.l2lg){this.maplet.Mu408("default",this.M87V3)}});this.ao.rect_mousedown=MEvent.bindDom(this.M87V3,"mousedown",this,function(){this._S7=true;this.C9bR8=false;if(this.maplet.sS!=ts.tz&&this.maplet.sS!=ts.tA&&this.maplet.sS!=ts.l2lg){this.maplet.Mu408("move",this.M87V3)}});this.ao.rect_mouseup=MEvent.bindDom(this.M87V3,"mouseup",this,function(h){this._S7=false;this.ao.rect_mouseover(h)});this.ao.rect_mousemove=MEvent.bindDom(this.M87V3,"mousemove",this,function(){if(this._S7&&!this.C9bR8){this.C9bR8=true}})}this.zI()};this.zI=function(){if(this.M87V3){if(!this.jvK.maplet){this.jvK.qc(this.maplet)}if(!this._X_dQ.maplet){this._X_dQ.qc(this.maplet)}if(this.maplet.csJ3){if(this.maplet.h04V!=this.jvK.h04V){this.jvK.sU+=this.maplet.q3p7;this.jvK.sV+=this.maplet.VV4;this.jvK.h04V=this.maplet.h04V}if(this.maplet.h04V!=this._X_dQ.h04V){this._X_dQ.sU+=this.maplet.q3p7;this._X_dQ.sV+=this.maplet.VV4;this._X_dQ.h04V=this.maplet.h04V}}else{this.jvK.jI4();this._X_dQ.jI4()}var f=this.jvK.sU;var g=this.jvK.sV;this.width=Math.abs(this._X_dQ.sU-f);this.height=Math.abs(this._X_dQ.sV-g);if(px){this.M87V3.style.left=f+"px";this.M87V3.style.top=g+"px";this.M87V3.style.width=this.width+"px";this.M87V3.style.height=this.height+"px"}else{this.M87V3.setAttribute("x",f+"px");this.M87V3.setAttribute("y",g+"px");this.M87V3.setAttribute("width",this.width+"px");this.M87V3.setAttribute("height",this.height+"px");this.M87V3.setAttribute("rx",this.width*this.arcsize);this.M87V3.setAttribute("ry",this.height*this.arcsize)}}};this.finalize=function(){this.remove(true)};this.remove=function(g){for(var f in this.ao){if(f.substring(0,5)=="rect_"){if(this.M87V3){MEvent.removeBuiltInListener(this.M87V3,f.substring(5),this.ao[f])}}else{if(this.maplet){MEvent.removeBuiltInListener(this.maplet.map,f,this.ao[f])}}this.ao[f]=null;delete this.ao[f]}if(typeof this.M87V3=="object"&&this.M87V3&&this.M87V3.parentNode){_removeNode(this.M87V3);this.M87V3=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(g){this.ao=null;this.maplet=null}};this.openInfoWindow=function(h){if(this.maplet!=null){if(this.C9bR8){if(h.target.id==this.id&&this.maplet.JE03){this.maplet.JE03=false}return}if(!this.info||(this.maplet.sS!=ts.ty&&this.maplet.sS!=ts.tu)){return}var f=0;var i=0;if(!this.info.getOverlay()){this.info.setOverlay(this)}var g=true;if(typeof h=="undefined"){f=this.jvK.sU+this.width/2;i=this.jvK.sV+this.height/2}else{if(h.target.id==this.id&&!this.maplet.JE03){MEvent.trigger(this,"click",this);f=h.clientX-this.maplet.offsetX-this.maplet.left;i=h.clientY-this.maplet.offsetY-this.maplet.top+6}else{if(h.target.id==this.id&&this.maplet.JE03){this.maplet.JE03=false;g=false}else{g=false}}}if(g){hideBubble(this.maplet);avBubble.x8257=this.maplet.toMapCoordinate(f,i);this.maplet.wN(f,i,this.info)}}};this.g5gXu=function(){var g=this.jvK.sU+this.width/2;var f=this.jvK.sV+this.height/2;return{x:g,y:f}}};function MZoomControl(c,b,a,d){this.x6=(typeof c=="undefined")?"jongo":c;this.left=(typeof b=="undefined")?0:parseInt(b);this.top=(typeof a=="undefined")?0:parseInt(a);this.id=new Date().getTime()+parseInt(Math.random()*1000);this.fi=(typeof d=="undefined")?false:d;this.cx=strImgsvrUrl+"images/"+this.x6+"/"+((!this.fi)?"bg.png":"bgsmall.png");this.cw=28;this.cu=(!this.fi)?241:155;this.cv=this.cu-91;this.ao=new Array();this.onresize=function(e){this.tY.style.left=(this.maplet.width-40+this.left)+"px"};this.qc=function(e){this.maplet=e;if(this.maplet.gc[this.id]==null){this.maplet.gc[this.id]=this;this.tY=document.createElement("div");this.tY.unselectable="on";this.tY.style.position="relative";this.tY.style.left=(this.maplet.width-40+this.left)+"px";this.tY.style.top=(this.maplet.height/2-this.cu/2)+"px";this.tY.style.width=(this.cw)+"px";this.tY.style.height=(this.cu)+"px";this.tY.style.zIndex=10;this.tY.style.visibility="visible";this.tY.style.cursor="default";this.tY.maplet=this.maplet;this.tY.cu=this.cu;this.tY.innerHTML='<img unselectable="on" id="'+this.id+'" border=0 src="'+this.cx+'" onmousedown="javascript:return false;">';this.ao.mousedown=MEvent.bindDom(this.maplet.map,"mousedown",this,this.w0);this.ao.mousemove=MEvent.bindDom(this.maplet.map,"mousemove",this,this.f9);this.ao.mouseup=MEvent.bindDom(this.maplet.map,"mouseup",this,this.l1);this.tY.onmouseover=function(h){var g=parseInt((px)?event.clientX:h.clientX)-parseInt(this.style.left)-parseInt(this.maplet.left)-this.maplet.offsetX;var f=parseInt((px)?event.clientY:h.clientY)-parseInt(this.style.top)-parseInt(this.maplet.top)-this.maplet.offsetY;if(!px&&this.maplet.vb.style.position!="absolute"){}if(g>=6&&g<=22){if(f>=18&&f<=34){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=(en)?"Click to Zoom In":tX("%u70BD%uC2B4%uB739%uBE65")}else{if(f>=(this.cu-42)&&f<=(this.cu-26)){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=(en)?"Click to Zoom Out":tX("%u70BD%uC2B4%uD124%uDB38")}else{if(f>=(this.cu-21)&&f<=(this.cu-5)){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=(en)?"Help":tX("%u5E32%uB0D7%uA28A%uB050")}else{if(f<18){this.style.cursor="move";this.firstChild.alt=(en)?"Drag":tX("%u9F24%u0727%uCADD%uC5D3")}else{if(f>34&&f<(this.cu-42)){this.style.cursor="default";this.firstChild.alt=(en)?"Click to Zoom":tX("%u70BD%uC2B4%uD124%uE467")}else{this.style.cursor="default";this.firstChild.alt=""}}}}}}else{this.style.cursor="default"}};this.tY.onmousemove=this.tY.onmouseover;this.tY.onclick=function(h){var g=parseInt((px)?event.clientX:h.clientX)-parseInt(this.style.left)-parseInt(this.maplet.left)-this.maplet.offsetX;var f=parseInt((px)?event.clientY:h.clientY)-parseInt(this.style.top)-parseInt(this.maplet.top)-this.maplet.offsetY;if(!px&&this.maplet.vb.style.position!="absolute"){}if(g>=6&&g<=22){if(f>=18&&f<=34){this.maplet.zoomIn()}else{if(f>=(this.cu-42)&&f<=(this.cu-26)){this.maplet.zoomOut()}else{if(f>=(this.cu-21)&&f<=(this.cu-5)){if(typeof callback=="function"){callback("&act=help")}}else{if(f>34&&f<(this.cu-42)){var j=150;var k=Math.max(38,Math.min((this.cu-53),f));var i=sY-Math.max(0,Math.min(sY,parseInt((parseInt(k)-38)/(j/(sY)))));this.maplet.setZoomLevel(parseInt(i))}}}}}this.lp=0;this.style.cursor="default";return false};this.maplet.map.appendChild(this.tY);this.wW=document.createElement("div");this.wW.id="slider"+this.id;this.wW.unselectable="on";this.wW.innerHTML='<IMG id="sliderimg'+this.id+'" src='+strImgsvrUrl+"images/"+this.x6+"/slider.png>";this.wW.style.position="absolute";this.wW.style.top="100px";this.wW.style.left="5px";this.wW.style.width="18px";this.wW.style.height="9px";this.wW.maplet=this.maplet;this.wW.cu=this.cu;this.tY.wW=this.wW;this.wW.lp=0;this.tY.appendChild(this.wW);this.wW.firstChild.onmousedown=function(f){return false};this.wW.onmousedown=function(f){if(this.lp==0||!this.selected){this.selected=true;this.lp=parseInt((px)?event.clientY:f.clientY);if(this.setCapture){this.setCapture()}this.style.cursor="move"}else{this.lp=0}return true};this.wW.ondrag=function(g){if(this.lp>0&&this.selected){this.style.cursor="move";var f=parseInt((px)?event.clientY:g.clientY)-this.maplet.offsetY-this.maplet.top-parseInt(this.parentNode.style.top);f=Math.max(38,Math.min((this.cu-53),f));this.style.top=((px)?f:(f-5))+"px";var i=150;if(px){var j=parseInt((px)?event.clientY:g.clientY)-this.maplet.offsetY-this.maplet.top-parseInt(this.parentNode.style.top);var h=sY-Math.max(0,Math.min(sY,parseInt(((parseInt(j)-38)/(sY-1))*(i/(sY-1)))/(i/(sY-1))));this.maplet.AN(h);this.style.cursor="move";this.parentNode.style.cursor="move"}return true}return false};this.wW.ondragend=function(f){this.selected=false;if(this.lp>0){var h=150;var i=parseInt((px)?event.clientY:f.clientY)-parseInt(this.maplet.offsetY)-parseInt(this.maplet.top)-parseInt(this.parentNode.style.top);var g=sY-Math.max(0,Math.min(sY,parseInt((parseInt(i)-38)/(h/(sY)))));this.maplet.sF.ld.style.zoom=1;this.maplet.setZoomLevel(parseInt(g));this.lp=0;if(this.releaseCapture){this.releaseCapture()}}this.lp=0;this.style.cursor="default";return true};this.wW.setZoomLevel=function(f){var g=f.toString().split("zm=");if(g.length==2){f=parseInt(g[1])}f=parseInt(f);this.style.top=((sY-Math.min(sY,Math.max(f,te)))*150/(sY)+38)+"px"};MEvent.bind(this.maplet,"zoom",this.wW,this.wW.setZoomLevel);this.wW.setZoomLevel(this.maplet.getZoomLevel())}};this.w0=function(e){if(this.maplet&&e.target.id==this.id){this.qo=true;A0F2N=this.id;this.l0=(e.offsetX)?e.offsetX:parseInt(e.clientX-this.maplet.offsetX-this.maplet.left)-parseInt(this.tY.style.left);this.na=(e.offsetY)?e.offsetY:parseInt(e.clientY-this.maplet.offsetY-this.maplet.top)-parseInt(this.tY.style.top)}};this.f9=function(f){if(this.maplet&&(f.target.id==this.id||A0F2N==this.id)){if(this.qo){var e=f.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var g=f.clientY-this.maplet.offsetY-this.maplet.top-this.na;e=Math.max(0,Math.min(this.maplet.width-this.cw,e));g=Math.max(0,Math.min(this.maplet.height-this.cu,g));this.tY.style.left=e+"px";this.tY.style.top=g+"px";this.lw=new Date().getTime();this.ls=true}}this.wW.ondrag(f)};this.l1=function(f){if(this.maplet&&this.qo){this.qo=false;var e=f.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var g=f.clientY-this.maplet.offsetY-this.maplet.top-this.na;if(this.ls){this.lw=new Date().getTime();this.ls=false}}if(A0F2N==this.id){A0F2N=null}this.wW.ondragend()};this.remove=function(){for(var e in this.ao){try{if(this.ao[e]!=null){MEvent.removeBuiltInListener(this.maplet.map,e,this.ao[e]);this.ao[e]=null}}catch(f){}this.ao=null}this.maplet=null;if(this.tY!=null&&this.tY.parentNode!=null){this.tY.parentNode.removeChild(this.tY);this.tY=null}};this.toString=function(){return"com.mapbar.maplet.MJongoControl"}}MJongoControl=MZoomControl;function MMSNControl(c,b,a){this.x6=(typeof c=="undefined")?"msn":c;this.left=(typeof b=="undefined")?20:b;this.top=(typeof a=="undefined")?20:a;this.id=new Date().getTime()+parseInt(Math.random()*1000);this.cw=65;this.cu=221;this.ao=new Array();this.onresize=function(d){this.tY.style.left=this.left+"px"};this.qc=function(d){this.maplet=d;if(this.maplet.gc[this.id]==null){this.maplet.gc[this.id]=this;this.tY=document.createElement("div");this.tY.unselectable="on";this.tY.style.position="absolute";this.tY.style.left=this.left+"px";this.tY.style.top=this.top+"px";this.tY.style.width=this.cw+"px";this.tY.style.height=this.cu+"px";this.tY.style.zIndex=10;this.tY.style.visibility="visible";this.tY.style.overflow="hidden";this.tY.style.filter="alpha(opacity=80);";this.tY.style.MozOpacity=(80/100);this.tY.style.opacity=(80/100);this.tY.style.qK=(80/100);this.tY.style.cursor="default";this.tY.maplet=this.maplet;var e='<img unselectable="on" id="'+this.id+'" border=0 src="'+strImgsvrUrl+"images/"+this.x6+'/bg.png" style="position:absolute;left:0px;top:0px;z-index:0;" onmousedown="javascript:return false;">';this.tY.innerHTML=e;e=null;this.tV=new Image();this.tV.x6=this.x6;this.tV.unselectable="on";this.tV.border=0;this.tV.style.cursor=(px)?"hand":"point";this.tV.style.zIndex=1;this.tV.style.position="absolute";this.tV.style.left="50px";this.tV.style.top="4px";this.tV.mode=1;this.tV.setMode=function(){this.mode=!this.mode;if(this.mode==0){this.alt=(en)?"Close":tX("%u5175%uE760");this.src=strImgsvrUrl+"images/"+this.x6+"/close.png"}else{this.alt=(en)?"Open":("\u6253\u5F00");this.src=strImgsvrUrl+"images/"+this.x6+"/open.png"}};this.yN=null;this.setMode=function(){this.tV.setMode();this.zO()};this.zO=function(){if(this.yN!=null){clearTimeout(this.yN);this.yN=null}if(this.tV.mode==0){this.tY.style.height=(parseInt(this.tY.style.height)+10)+"px";if(parseInt(this.tY.style.height)>this.cu-10){this.tY.style.height=this.cu+"px"}else{this.yN=getTimeout(this,this.zO,10)}}else{this.tY.style.height=(parseInt(this.tY.style.height)-10)+"px";if(parseInt(this.tY.style.height)<25){this.tY.style.height="15px"}else{this.yN=getTimeout(this,this.zO,10)}}};this.ao.click=MEvent.bindDom(this.tV,"click",this,this.setMode);this.tV.setMode();this.tY.appendChild(this.tV);this.ao.mousedown=MEvent.bindDom(this.maplet.map,"mousedown",this,this.w0);this.ao.mousemove=MEvent.bindDom(this.maplet.map,"mousemove",this,this.f9);this.ao.mouseup=MEvent.bindDom(this.maplet.map,"mouseup",this,this.l1);this.tY.onmouseover=function(h){var g=parseInt((px)?event.clientX:h.clientX)-parseInt(this.style.left)-parseInt(this.maplet.left)-this.maplet.offsetX;var f=parseInt((px)?event.clientY:h.clientY)-parseInt(this.style.top)-parseInt(this.maplet.top)-this.maplet.offsetY;if(f<16){this.style.cursor="move";this.firstChild.alt=(en)?"Drag":tX("%u9F24%u0727%uCADD%uC5D3")}else{if(f>21&&f<75){if(f>20&&f<40&&g>20&&g<45){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=xN[1]}else{if(f>55&&f<75&&g>20&&g<45){this.firstChild.alt=xN[3];this.style.cursor=(px)?"hand":"pointer"}else{if(f>36&&f<58&&g>6&&g<24){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=xN[0]}else{if(f>38&&f<58&&g>42&&g<60){this.firstChild.alt=xN[2];this.style.cursor=(px)?"hand":"pointer"}else{this.firstChild.alt=""}}}}}else{if(g>=19&&g<=49){if(f>=81&&f<=100){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=(en)?"Click to Zoom In":tX("%u70BD%uC2B4%uB739%uBE65")}else{if(f>=208&&f<=221){this.style.cursor=(px)?"hand":"pointer";this.firstChild.alt=(en)?"Click to Zoom Out":tX("%u70BD%uC2B4%uD124%uDB38")}else{if(f>100&&f<208){this.style.cursor="default";this.firstChild.alt=(en)?"Click to Zoom":tX("%u70BD%uC2B4%uD124%uE467")}else{this.style.cursor="default";this.firstChild.alt=""}}}}else{this.style.cursor="default"}}}};this.tY.onmousemove=this.tY.onmouseover;this.tY.onclick=function(h){var g=parseInt((px)?event.clientX:h.clientX)-parseInt(this.style.left)-parseInt(this.maplet.left)-this.maplet.offsetX;var f=parseInt((px)?event.clientY:h.clientY)-parseInt(this.style.top)-parseInt(this.maplet.top)-this.maplet.offsetY;if(f>21&&f<75){if(f>20&&f<40&&g>20&&g<45){this.maplet.panTo(0,this.maplet.height/2)}else{if(f>55&&f<75&&g>20&&g<45){this.maplet.panTo(0,-this.maplet.height/2)}else{if(f>36&&f<58&&g>6&&g<24){this.maplet.panTo(this.maplet.width/2,0)}else{if(f>38&&f<58&&g>42&&g<60){this.maplet.panTo(-this.maplet.width/2,0)}}}}}else{if(f>80&&g>=19&&g<=49){if(f>=81&&f<=100){this.maplet.zoomIn()}else{if(f>=208&&f<=221){this.maplet.zoomOut()}else{if(f>100&&f<208){var j=100;var k=Math.max(100,Math.min(200,f));var i=sY-Math.max(0,Math.min(sY,parseInt((parseInt(k)-100)/(j/(sY)))));this.maplet.setZoomLevel(parseInt(i))}}}}}this.lp=0;this.style.cursor="default";return false};this.maplet.map.appendChild(this.tY);this.wW=document.createElement("div");this.wW.id="slider"+this.id;this.wW.unselectable="on";this.wW.innerHTML='<IMG id="sliderimg'+this.id+'" src='+strImgsvrUrl+"images/"+this.x6+"/slider.png>";this.wW.style.position="absolute";this.wW.style.width="20px";this.wW.style.height="7px";this.wW.style.top="100px";this.wW.style.left=((this.cw+1)/2-10)+"px";this.wW.maplet=this.maplet;this.tY.wW=this.wW;this.wW.lp=0;this.tY.appendChild(this.wW);this.wW.firstChild.onmousedown=function(f){return false};this.wW.onmousedown=function(f){if(this.lp==0||!this.selected){this.selected=true;this.lp=parseInt((px)?event.clientY:f.clientY);if(this.setCapture){this.setCapture()}this.style.cursor="move"}else{this.lp=0}return true};this.wW.ondrag=function(g){if(this.lp>0&&this.selected){this.style.cursor="move";var f=parseInt((px)?event.clientY:g.clientY)-this.maplet.offsetY-this.maplet.top-parseInt(this.parentNode.style.top);f=Math.max(100,Math.min(200,f));this.style.top=((px)?f:(f-5))+"px";var i=100;if(px){var j=parseInt((px)?event.clientY:g.clientY)-this.maplet.offsetY-this.maplet.top-parseInt(this.parentNode.style.top);var h=sY-Math.max(0,Math.min(sY,(parseInt(j)-100)/(i/sY)));this.maplet.AN(h);this.style.cursor="move";this.parentNode.style.cursor="move"}return true}return false};this.wW.ondragend=function(f){this.selected=false;if(this.lp>0){var h=100;var i=parseInt((px)?event.clientY:f.clientY)-parseInt(this.maplet.offsetY)-parseInt(this.maplet.top)-parseInt(this.parentNode.style.top);var g=sY-Math.max(0,Math.min(sY,parseInt((parseInt(i)-100)/(h/(sY)))));this.maplet.sF.ld.style.zoom=1;this.maplet.setZoomLevel(parseInt(g));this.lp=0;if(this.releaseCapture){this.releaseCapture()}}this.lp=0;this.style.cursor="default";return true};this.wW.setZoomLevel=function(f){var g=f.toString().split("zm=");if(g.length==2){f=parseInt(g[1])}f=parseInt(f);this.style.top=((sY-Math.min(sY,Math.max(f,te)))*100/(sY)+100)+"px"};MEvent.bind(this.maplet,"zoom",this.wW,this.wW.setZoomLevel);this.wW.setZoomLevel(this.maplet.getZoomLevel())}};this.w0=function(d){if(this.maplet&&d.target.id==this.id){this.qo=true;A0F2N=this.id;this.l0=(d.offsetX)?d.offsetX:parseInt(d.clientX-this.maplet.offsetX-this.maplet.left)-parseInt(this.tY.style.left);this.na=(d.offsetY)?d.offsetY:parseInt(d.clientY-this.maplet.offsetY-this.maplet.top)-parseInt(this.tY.style.top)}};this.f9=function(e){if(this.maplet&&(e.target.id==this.id||A0F2N==this.id)){if(this.qo){var d=e.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var f=e.clientY-this.maplet.offsetY-this.maplet.top-this.na;d=Math.max(0,Math.min(this.maplet.width-this.cw,d));f=Math.max(0,Math.min(this.maplet.height-this.cu,f));this.tY.style.left=d+"px";this.tY.style.top=f+"px";this.lw=new Date().getTime();this.ls=true}}this.wW.ondrag(e)};this.l1=function(e){if(this.maplet&&this.qo){this.qo=false;var d=e.clientX-this.maplet.offsetX-this.maplet.left-this.l0;var f=e.clientY-this.maplet.offsetY-this.maplet.top-this.na;if(this.ls){this.lw=new Date().getTime();this.ls=false}}if(A0F2N==this.id){A0F2N=null}this.wW.ondragend()};this.remove=function(){for(var d in this.ao){try{if(this.ao[d]!=null){MEvent.removeBuiltInListener(this.maplet.map,d,this.ao[d]);this.ao[d]=null}}catch(e){}this.ao=null}this.maplet=null;if(this.tY!=null&&this.tY.parentNode!=null){this.tY.parentNode.removeChild(this.tY);this.tY=null}};this.toString=function(){return"com.mapbar.maplet.MMSNControl"}}function MLookupControl(a,c,b){this.ya=(typeof a=="undefined")?tX("%u62CD%uCB0F%uD02B%uF3C7"):a;this.left=(typeof c=="undefined")?0:parseInt(c);this.top=(typeof b=="undefined")?0:parseInt(b);this.id=new Date().getTime()+parseInt(Math.random()*1000);this.onresize=function(d){if(this.maplet.ovw.nF()<=37){this.tY.style.left=(this.maplet.width-132+this.left-this.maplet.ovw.nH())+"px"}else{this.tY.style.left=(this.maplet.width-132+this.left)+"px"}};this.qc=function(d){this.maplet=d;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"}}function MStyleControl(b,a){this.left=(typeof b=="undefined")?0:parseInt(b);this.top=(typeof a=="undefined")?0:parseInt(a);this.id=new Date().getTime()+parseInt(Math.random()*1000);this.onresize=function(c){this.tY.style.left=(this.maplet.width-132+this.left-this.maplet.ovw.nH())+"px";this.tZ.style.left=(this.maplet.width-70+this.left-this.maplet.ovw.nH())+"px"};this.qc=function(c){this.maplet=c;if(this.maplet.gc[this.id]==null){this.maplet.gc[this.id]=this;this.tY=document.createElement("div");this.tY.id="stylelabel";this.tY.style.position="absolute";this.tY.style.left=(this.maplet.width-132+this.left-this.maplet.ovw.nH())+"px";this.tY.style.top=(10+this.top)+"px";this.tY.style.zIndex=10;this.tY.style.visibility="visible";this.tY.unselectable="on";this.tY.alt=tX("%u6672%uF688%uE74A%uAE2E");this.tY.style.cursor=(px)?"hand":"pointer";this.tY.maplet=this.maplet;this.tY.innerHTML=tX("%u6672%uF688%uE74A%uAE2E");this.tY.style.backgroundColor="#FFFFFF";this.tY.onclick=function(){this.maplet.setStyle("mapbar")};this.tZ=document.createElement("div");this.tZ.id="stylelabel";this.tZ.style.position="absolute";this.tZ.style.left=(this.maplet.width-70+this.left-this.maplet.ovw.nH())+"px";this.tZ.style.top=(10+this.top)+"px";this.tZ.style.zIndex=10;this.tZ.style.visibility="visible";this.tZ.unselectable="on";this.tZ.alt=tX("%u536F%uB98A%uC590%uB040");this.tZ.style.cursor=(px)?"hand":"pointer";this.tZ.maplet=this.maplet;this.tZ.innerHTML=tX("%u536F%uB98A%uC590%uB040");this.tZ.style.backgroundColor="#FFFFFF";this.tZ.onclick=function(){this.maplet.setStyle("aerial")};this.maplet.vb.appendChild(this.tY);this.maplet.vb.appendChild(this.tZ)}};this.remove=function(){if(this.tY!=null&&this.tY.parentNode!=null){this.tY.parentNode.removeChild(this.tY);this.maplet=null;this.tY.onclick=null;this.tY.maplet=null;this.tY=null}if(this.tZ!=null&&this.tZ.parentNode!=null){this.tZ.parentNode.removeChild(this.tZ);this.maplet=null;this.tZ.onclick=null;this.tZ.maplet=null;this.tZ=null}};this.toString=function(){return"com.mapbar.maplet.MStyleControl"}}var MContextMenuItem=function(title,fy,unit){this.ao=[];this.title=title;this.callback=(typeof fy=="undefined")?null:fy;this.t6=document.createElement("tr");this.t6.style.backgroundColor="#eef5ff";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.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(lM){this.t6.style.backgroundColor="#d2e1ff"};this.uJ=function(lM){this.t6.style.backgroundColor="#e8f2fd"};this.paint=function(vb){this.vb=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 l8 in this.ao){MEvent.removeBuiltInListener(this.t6,l8,this.ao[l8]);delete this.ao[l8]}this.ao=null;if(this.t6){if(this.t6.parentNode){_removeNode(this.t6)}this.t6=null}}};var 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.t7.setAttribute("cellspacing","0");this.t8=document.createElement("tbody");this.t7.appendChild(this.t8);this.tY.appendChild(this.t7);this.qc=function(a){this.maplet=a;this.maplet.sF.appendChild(this.tY)};this.zI=function(){for(var b in this.t8.childNodes){if(typeof this.t8.childNodes[b]=="object"){if(this.t8.childNodes[b].vb!=null){this.t8.childNodes[b].vb=null}this.t8.removeChild(this.t8.childNodes[b])}}for(var a=0;a<this.qt.length;a++){this.qt[a].paint(this)}};this.addItem=function(b,a){if(typeof a=="undefined"){this.qt[this.qt.length]=b}else{a=parseInt(a);this.qt.splice(a,0,b)}this.zI()};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.disableItem=function(b){var a=this.qt[b];if(b<this.qt.length){a.t6.firstChild.style.color="#999999";a.t6.firstChild.style.cursor="default";this.fns[b]=a.ao.click;MEvent.removeBuiltInListener(a.t6,"click",a.ao.click);MEvent.removeBuiltInListener(a.t6,"mouseover",a.ao.mouseover);MEvent.removeBuiltInListener(a.t6,"mouseout",a.ao.mouseout);a.ao.click=MEvent.bindDom(a.t6,"click",a,function(){return false})}};this.enableItem=function(b,c){var a=this.qt[b];if(b<this.qt.length&&typeof this.fns[b]!="undefined"){a.t6.firstChild.style.color="#000000";a.t6.firstChild.style.cursor="pointer";MEvent.removeBuiltInListener(a.t6,"click",a.ao.click);a.ao.click=MEvent.bindDom(a.t6,"click",a,c);a.ao.mouseover=MEvent.bindDom(a.t6,"mouseover",a,a.uG);a.ao.mouseout=MEvent.bindDom(a.t6,"mouseout",a,a.uJ)}};this.modifyItem=function(b,c){var a=this.qt[b];if(b<this.qt.length){a.t6.firstChild.innerHTML=c}};this.removeItem=function(a){if(a<this.qt.length){this.qt[a].remove()}this.qt.splice(a,1);this.update()};this.vU=function(a){if(a<this.qt.length){this.qt[a].remove()}this.qt.splice(a,1);this.zI()};this.clear=function(){for(var a=0;a<this.qt.length;a++){this.qt[a].remove()}this.qt=new Array();this.zI()};this.show=function(a,e){var b=$(".mapcontextmenu");var d=b.height();var c=b.width();d+e>maplet.height?e-=(d+6):null;c+a>maplet.width?a-=(c+6):null;this.tY.style.left=parseInt(a)+"px";this.tY.style.top=parseInt(e)+"px";this.tY.style.visibility="visible"};this.hide=function(){this.tY.style.visibility="hidden"};this.toString=function(){return"[MapbarContextMenu]"+this.qt.length}};var MSnapshotBox=function($x507,style){if(!($x507 instanceof Maplet)&&!$x507){throw new Error("parameter para_maplet is invalid Maplet object.")}var x6=(typeof style!="string"||!style)?"":style+"/";var Xxux=SNAPSHOT_SERVER;var b52el=SNAPSHOT_SERVER+"get";var maplet=$x507;var rQLW4=new Date().getTime();var ao=[];var JG8=strImgsvrUrl+"images/"+x6+"preview.gif";var bJdU=strImgsvrUrl+"images/"+x6+"close2.gif";var mo7=strImgsvrUrl+"images/"+x6+"save.gif";var Oyu="MSnapshotSizeTip"+rQLW4;var U71=Oyu+"_td";var VU5__='<table cellpadding="2" cellspacing="0" style="background-color:#333;color:#ff0;font-size:14px;font-family:Arial;"><tr><td id="'+U71+'"></td></tr></table>';var ai5W4=new fD(Oyu,0,0,0,0,false,24,VU5__,maplet.vb);ai5W4.ld.style.width="auto";ai5W4.ld.style.height="auto";var g30n="MSnapshotBox"+rQLW4;var $96FC='<table width="100%" height="100%" style="border:2px solid #06c;" cellpadding="0" cellspacing="0"><tr><td style="background-color:#6cf;filter:alpha(opacity=20);opacity:0.2;">&nbsp;</td></tr></table>';var l8aL=new fD(g30n,0,0,0,0,false,24,$96FC,maplet.vb);l8aL.ld.style.overflow="hidden";var c362G=73;var $gA0p=24;dMn="MSnapshotBar"+rQLW4;Ll0="MSnapshotBtn_preview_"+rQLW4;QX33="MSnapshotBtn_download_"+rQLW4;f2R96="MSnapshotBtn_cancel_"+rQLW4;var j_CeT="";j_CeT='<table cellspacing="1" style="border:1px solid #06c;background-color:white;"><tr valign="middle" align="center" style="background-color:#CCFFFF;"><td id="'+Ll0+'" 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="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-190px;top:0px;"></div></td><td id="'+QX33+'" 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="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;left:-210px;top:0px;width:320px;height:336px;"/></div></td><td id="'+f2R96+'" 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="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-170px;top:0px;"></div></td></tr></table>';var O9gId=new fD(dMn,0,0,0,0,false,24,j_CeT,maplet.vb);var $5qb="mapbar_snapshot_iframe";var iframe=null;var X33="mapbar_snapshot_frm";var A35$=null;var m0158=0;var rb$={x:0,y:0,width:0,height:0,M87V3:{min:{x:0,y:0},max:{x:0,y:0}}};this.Qh0M9=false;this.show=function(){if(ao.length==0){ao.push(MEvent.bindDom(document.getElementById(dMn),"mousedown",this,N44));ao.push(MEvent.bindDom(document.getElementById(Ll0),"click",this,uk3));ao.push(MEvent.bindDom(document.getElementById(QX33),"click",this,GB$));ao.push(MEvent.bindDom(document.getElementById(f2R96),"click",this,this.hide))}bj80();this.hide();l8aL.show();ai5W4.show()};this.hide=function(){var l8=l5h(this.hide);if(typeof l8!="undefined"&&l8){if(l8.type=="click"){setMoveMode();var target=typeof l8.target!="undefined"?l8.target:l8.srcElement;var id=target.parentNode.id+target.id;if(id==f2R96){MEvent.trigger(maplet,"snapshot_done","cancel")}else{if(id==Ll0){MEvent.trigger(maplet,"snapshot_done","preview")}else{if(id==QX33){MEvent.trigger(maplet,"snapshot_done","download")}}}}}E5_();t30();iX35g()};var E5_=function(){l8aL.hide();l8aL.resize(0,0)};var t30=function(){ai5W4.hide();ai5W4.moveTo(-1000,-1000)};var iX35g=function(){O9gId.hide();O9gId.resize(0,0)};this.moveTo=function(x,y){l8aL.moveTo(x,y);var tFU=y-ai5W4.ld.firstChild.clientHeight-2;ai5W4.moveTo(x,tFU)};this.resize=function(Af,nN){l8aL.resize(Af,nN);this.$i_7(Af+" x "+nN)};this.$i_7=function(text){document.getElementById(U71).innerHTML=text};this.isVisible=function(){return document.getElementById(g30n).style.visibility!="hidden"?true:false};this.VL4p=function(){this.Qh0M9=true;TD039();var x=rb$.x+rb$.width-c362G-3;var y=rb$.y+rb$.height+2;if(y+$gA0p>maplet.height){y-=$gA0p+6}O9gId.resize(c362G,$gA0p);O9gId.moveTo(x,y);O9gId.show();maplet.Mu408("pointer",document.getElementById(Ll0));maplet.Mu408("pointer",document.getElementById(QX33));maplet.Mu408("pointer",document.getElementById(f2R96));MEvent.trigger(maplet,"snapshot_select",{x:rb$.x,y:rb$.y,width:rb$.width,height:rb$.height})};this.snapshot=function(options){if(typeof options!="object"){options={}}if(typeof options.mode!="string"||(options.mode!="fullscreen"&&options.mode!="custom")){options.mode=SNAPSHOT_OPTIONS.mode}if(typeof options.x=="undefined"||isNaN(options.x)){options.x=0}if(typeof options.y=="undefined"||isNaN(options.y)){options.y=0}if(typeof options.width=="undefined"||isNaN(options.width)){options.width=maplet.width}if(typeof options.height=="undefined"||isNaN(options.height)){options.height=maplet.height}if(typeof options.zoom=="undefined"||isNaN(options.zoom)){options.zoom=maplet.getZoomLevel()}if(typeof options.format!="string"){options.format=SNAPSHOT_OPTIONS.format}if(typeof options.depth=="undefined"||isNaN(options.depth)){options.depth=SNAPSHOT_OPTIONS.depth}if(options.processMode!="string"&&(options.processMode!="event"&&options.processMode!="download")){options.processMode=SNAPSHOT_OPTIONS.processMode}TD039.apply(this,[options]);BQd6.apply(this,[options])};var BQd6=function(options){var v8bQ=I31();if(v8bQ.length<=0){return}var K136H={};K136H.Q264=[];K136H.point="";K136H.QBt="";K136H.area="";K136H.min="0,0";K136H.max=rb$.width+","+rb$.height;K136H.width=rb$.width;K136H.height=rb$.height;K136H.zoom=typeof options.zoom=="undefined"?maplet.getZoomLevel():options.zoom;K136H.format=typeof options.format=="undefined"?SNAPSHOT_OPTIONS.format:options.format;K136H.depth=typeof options.depth=="undefined"?SNAPSHOT_OPTIONS.depth:options.depth;K136H.processMode=typeof options.processMode=="undefined"?SNAPSHOT_OPTIONS.processMode:options.processMode;K136H.n21="";K136H.f2178="";var VS9=new RegExp(SNAPSHOT_MAPIMG_URI_PREFIX,"ig");for(var i=0;i<v8bQ.length;i++){var x=parseInt(v8bQ[i].style.left)-rb$.x;var y=parseInt(v8bQ[i].style.top)-rb$.y;var SE308=(K136H.zoom>=12&&K136H.zoom<=13)?","+v8bQ[i].id:"";K136H.Q264.push(v8bQ[i].src.replace(VS9,"").replace(".png","")+","+x+","+y+SE308)}K136H.Q264=K136H.Q264.join("|");var AKga=getMarkers();if(AKga.length>0){K136H.point=[];VS9=new RegExp(SNAPSHOT_MARKER_URI_PREFIX,"ig");for(var i=0;i<AKga.length;i++){var lBV2W=AKga[i];var x=lBV2W.x-rb$.x;var y=lBV2W.y-rb$.y;K136H.point.push(x+"@"+y+","+lBV2W.text+","+lBV2W.y75C+","+lBV2W.cj_4+",,,"+lBV2W.src.replace(VS9,""))}K136H.point=K136H.point.join("|")}var vw=getPolylines();if(vw.length>0){K136H.QBt=[];K136H.area=[];for(var i=0;i<vw.length;i++){var $15=[];var pts=vw[i].pts;for(var _A4=0;_A4<pts.length;_A4++){$15.push((pts[_A4].sU-rb$.x)+"@"+(pts[_A4].sV-rb$.y))}var brush=vw[i].brush;if(vw[i].brush.fill){K136H.area.push($15.join(",")+";"+E85(brush.bgcolor)+";"+(parseFloat(brush.bgtransparency)/100)+";"+E85(brush.color)+";"+brush.stroke+";"+brush.style+";"+(parseFloat(brush.transparency)/100))}else{K136H.QBt.push($15.join(",")+";"+E85(brush.color)+";"+brush.stroke+";"+brush.style+";"+(parseFloat(brush.transparency)/100))}}if(K136H.QBt.length>0){K136H.QBt=K136H.QBt.join("|")}else{K136H.QBt=""}if(K136H.area.length>0){K136H.area=K136H.area.join("|")}else{K136H.area=""}}var n21=F7sk();if(n21.length>0){K136H.n21=[];for(var i=0;i<n21.length;i++){var item=n21[i];var brush=item.n21.brush;K136H.n21.push((item.qx-rb$.x)+"@"+(item.qz-rb$.y)+","+item.JgM+"px,"+item.Wu25+"px,"+E85(brush.bgcolor)+","+(parseFloat(brush.bgtransparency)/100)+","+E85(brush.color)+","+brush.stroke+","+brush.style+","+(parseFloat(brush.transparency)/100))}if(K136H.n21.length>0){K136H.n21=K136H.n21.join("|")}else{K136H.n21=""}}var pn3=F8u();if(pn3.length>0){K136H.f2178=[];for(var i=0;i<pn3.length;i++){var item=pn3[i];var brush=item.f2178.brush;K136H.f2178.push((item.qx-rb$.x)+"@"+(item.qz-rb$.y)+","+(item.DLtW-rb$.x)+"@"+(item.LOkW-rb$.y)+","+item.gns+","+item.N90+","+E85(brush.bgcolor)+","+(parseFloat(brush.bgtransparency)/100)+","+E85(brush.color)+","+brush.stroke+","+brush.style+","+(parseFloat(brush.transparency)/100))}if(K136H.f2178.length>0){K136H.f2178=K136H.f2178.join("|")}else{K136H.f2178=""}}$D2Bm.apply(this,[K136H])};var asJ=function(){if(m0158>=3){return}var taskId=A35$.taskId.value;if(typeof _snapshot_result=="object"&&_snapshot_result){if(_snapshot_result.url!="inexistence"){switch(_snapshot_result.processMode){case"event":case"preview":MEvent.trigger(maplet,"snapshot",_snapshot_result.url);break;default:break}return}}window.setTimeout(function(YA462){return function(){m0158++;new Tl9RR(b52el+"?taskId="+taskId,function(){asJ.apply(YA462)}).B18()}}.apply(this,[this]),1000)};var E85=function(color){if(color.substring(0,3).toLowerCase()=="rgb"){return color.replace(new RegExp(",","g"),"@")}return color};var uk3=function(){this.hide();var options={};options.processMode="preview";BQd6.apply(this,[options])};var GB$=function(){this.hide();var options={};options.processMode="download";BQd6.apply(this,[options])};var N44=function(lM){R4_0(lM)};var I31=function(){var v6=[];var O179=maplet.sE.ld.childNodes;for(var i=0;i<O179.length;i++){var img=O179[i];var LY8=parseInt(img.style.left);var K98D3=parseInt(img.style.top);if(va_(rb$.M87V3,{min:{x:LY8,y:K98D3},max:{x:LY8+maplet.pZ,y:K98D3+maplet.pN}})){v6.push(img)}}return v6};var getMarkers=function(){var v6=[];var $3i=maplet.getMarkers();if($3i.length>0){for(var i=0;i<$3i.length;i++){if(!$3i[i].icon){continue}if(!$3i[i].icon.isVisible()){continue}var m$15=$3i[i];var icon=m$15.icon;var jv_=0,O071=0,NM370=0,SPw=0;var $E0Q=0,N18O=0;$E0Q=jv_=parseInt(icon.ld.style.left);N18O=O071=parseInt(icon.ld.style.top);NM370=icon.ld.clientWidth;SPw=icon.ld.clientHeight;var U6B33="",c89="",I1f="";if($3i[i].label){var o00w=m$15.label;U6B33=o00w.getText();c89=parseInt(o00w.ld.style.left);I1f=parseInt(o00w.ld.style.top);var $5173=o00w.ld.clientWidth;var P7Y=o00w.ld.clientHeight;if(c89<jv_){jv_=c89}if(I1f<O071){O071=I1f}if((c89+$5173)>(jv_+NM370)){NM370=c89+$5173}if((I1f+P7Y)>(O071+SPw)){SPw=I1f+P7Y}}if(va_(rb$.M87V3,{min:{x:jv_,y:O071},max:{x:jv_+NM370,y:O071+SPw}})){v6.push({x:$E0Q,y:N18O,src:icon.getImgUrl(),text:U6B33,y75C:$3i[i].label?$3i[i].label.xoffset:0,cj_4:$3i[i].label?$3i[i].label.yoffset:0,sW:$3i[i]})}}}return v6};var getPolylines=function(){var v6=[];var vw=maplet.getPolylines();if(vw.length>0){for(var i=0;i<vw.length;i++){var pts=vw[i].pts;var ix4te=false;for(var _A4=0;_A4<pts.length;_A4++){var _I36$x=pts[_A4].sU;var _I36$y=pts[_A4].sV;if(e2K({x:_I36$x,y:_I36$y},rb$.M87V3)){ix4te=true;break}if(_A4>0){var _I36$$St42=pts[_A4-1].sU;var _I36$XnP=pts[_A4-1].sV;var $$a70={start:{x:rb$.M87V3.max.x,y:rb$.M87V3.max.y},end:{x:rb$.M87V3.max.x,y:rb$.M87V3.min.y}};var p$v04={start:{x:_I36$$St42,y:_I36$XnP},end:{x:_I36$x,y:_I36$y}};if(p4E4($$a70,p$v04)){ix4te=true;break}$$a70={start:{x:rb$.M87V3.max.x,y:rb$.M87V3.min.y},end:{x:rb$.M87V3.min.x,y:rb$.M87V3.min.y}};if(p4E4($$a70,p$v04)){ix4te=true;break}$$a70={start:{x:rb$.M87V3.min.x,y:rb$.M87V3.min.y},end:{x:rb$.M87V3.min.x,y:rb$.M87V3.max.y}};if(p4E4($$a70,p$v04)){ix4te=true;break}$$a70={start:{x:rb$.M87V3.min.x,y:rb$.M87V3.max.y},end:{x:rb$.M87V3.max.x,y:rb$.M87V3.max.y}};if(p4E4($$a70,p$v04)){ix4te=true;break}}}if(!ix4te&&vw[i].brush.fill){var s429=vw[i].pts;var lX6=[];for(var _A4=0;_A4<s429.length;_A4++){lX6.push({x:s429[_A4].sU,y:s429[_A4].sV})}var Js7=[{x:rb$.M87V3.max.x,y:rb$.M87V3.max.y},{x:rb$.M87V3.max.x,y:rb$.M87V3.min.y},{x:rb$.M87V3.min.x,y:rb$.M87V3.min.y},{x:rb$.M87V3.min.x,y:rb$.M87V3.max.y}];for(var _A4=0;_A4<lX6.length;_A4++){if(EU6(lX6[_A4],Js7)){ix4te=true}}if(!ix4te){for(var _A4=0;_A4<Js7.length;_A4++){if(EU6(Js7[_A4],lX6)){ix4te=true}}}}if(ix4te){v6.push(vw[i])}}}return v6};var F7sk=function(){var v6=[];var n21=maplet.F7sk();if(n21.length>0){for(var i=0;i<n21.length;i++){var item=n21[i];var JM7={min:{x:item.data.qx,y:item.data.qz},max:{x:item.data.DLtW,y:item.data.LOkW}};if(va_(rb$.M87V3,JM7)){v6.push({qx:JM7.min.x,qz:JM7.min.y,JgM:item.data.JgM,Wu25:item.data.Wu25,n21:item})}}}return v6};var F8u=function(){var v6=[];var pn3=maplet.F8u();if(pn3.length>0){for(var i=0;i<pn3.length;i++){var item=pn3[i];var JM7={min:{x:item.jvK.sU,y:item.jvK.sV},max:{x:item._X_dQ.sU,y:item._X_dQ.sV}};if(va_(rb$.M87V3,JM7)){v6.push({qx:JM7.min.x,qz:JM7.min.y,DLtW:JM7.max.x,LOkW:JM7.max.y,gns:parseInt(item.width*item.arcsize)*2,N90:parseInt(item.height*item.arcsize)*2,f2178:item})}}}return v6};var FRy1=function(_80x9){var _6Ke=null;if(px){_6Ke=document.createElement("<input name='"+_80x9+"'>")}else{_6Ke=document.createElement("input");_6Ke.name=_80x9}_6Ke.type="hidden";return _6Ke};var $D2Bm=function(yM0){try{m0158=0;if(typeof _snapshot_result=="object"&&_snapshot_result){_snapshot_result=null}if(!iframe){if(px){iframe=document.createElement("<IFRAME name='"+$5qb+"'>")}else{iframe=document.createElement("IFRAME");iframe.name=$5qb}iframe.id=$5qb;iframe.frameBorder="0";iframe.style.width="0px";iframe.style.height="0px";iframe.style.zIndex=-1;maplet.vb.appendChild(iframe);var $rL3=function(YA462){return function(){a714e.apply(YA462)}};if(px){iframe.attachEvent("onreadystatechange",$rL3(this))}else{iframe.addEventListener("load",$rL3(this),false)}A35$=document.createElement("FORM");A35$.id=X33;A35$.method="POST";A35$.target=$5qb;A35$.action=Xxux;maplet.vb.appendChild(A35$);A35$.appendChild(FRy1("mapimgs"));A35$.appendChild(FRy1("max"));A35$.appendChild(FRy1("min"));A35$.appendChild(FRy1("size"));A35$.appendChild(FRy1("markers"));A35$.appendChild(FRy1("polylines"));A35$.appendChild(FRy1("polygons"));A35$.appendChild(FRy1("format"));A35$.appendChild(FRy1("depth"));A35$.appendChild(FRy1("processMode"));A35$.appendChild(FRy1("taskId"));A35$.appendChild(FRy1("codeform"));A35$.appendChild(FRy1("zoom"));A35$.appendChild(FRy1("ellipse"));A35$.appendChild(FRy1("roundrect"))}A35$.mapimgs.value=yM0.Q264;A35$.max.value=yM0.max;A35$.min.value=yM0.min;A35$.size.value=yM0.width+"x"+yM0.height;A35$.markers.value=yM0.point;A35$.polylines.value=yM0.QBt;A35$.polygons.value=yM0.area;A35$.format.value=yM0.format;A35$.depth.value=yM0.depth;A35$.processMode.value=yM0.processMode;A35$.taskId.value=new Date().getTime();A35$.codeform.value="1";A35$.zoom.value=yM0.zoom;A35$.ellipse.value=yM0.n21;A35$.roundrect.value=yM0.f2178;if(!px){A35$.target=$5qb}A35$.submit()}catch(nc){iframe=null;A35$=null}};var a714e=function(){if(px&&iframe.readyState!="complete"){return}asJ.apply(this)};var TD039=function(options){if(typeof options=="undefined"){with(rb$){x=parseInt(l8aL.ld.style.left);y=parseInt(l8aL.ld.style.top);width=l8aL.ld.clientWidth;height=l8aL.ld.clientHeight}}else{if(options.mode=="fullscreen"){options.width=maplet.width;options.height=maplet.height}with(rb$){x=options.x;y=options.y;width=options.width;height=options.height}}with(rb$){M87V3={min:{x:x,y:y},max:{x:x+width,y:y+height}}}};var bj80=function(){with(rb$){x=0;y=0;width=0;height=0;M87V3=null}};this.finalize=function(){for(var i=0;i<ao.length;i++){MEvent.removeBuiltInListener(ao[i]);ao[i]=null}ao=null;maplet.vb.removeChild(ai5W4.ld);ai5W4=null;maplet.vb.removeChild(l8aL.ld);l8aL=null;maplet.vb.removeChild(O9gId.ld);O9gId=null;maplet.vb.removeChild(iframe);iframe=null;maplet.vb.removeChild(A35$);A35$=null;maplet=null};this.toString=function(){return"com.mapbar.maplet.MSnapshotBox"}};var MIconShadow=function(c,d,b,a,e){this.f7l=0;this.ld=document.createElement("div");this.ld.unselectable="on";this.ld.style.zIndex=this.f7l;this.ld.style.position="absolute";d=(typeof d=="undefined")?16:d;b=(typeof b=="undefined")?16:b;this.img=(_Qf37)?document.createElement("v:Image"):new Image();this.img.unselectable="on";this.img.style.MozUserSelect="none";this.img.style.zIndex=this.f7l;this.img.style.position="absolute";this.img.style.top="0px";this.img.style.left="0px";this.img.src=(typeof c=="undefined")?strImgsvrUrl+"images/Shadow.png":c;this.ld.appendChild(this.img);this.width=(typeof d=="undefined")?parseInt(this.img.width):parseInt(d);this.height=(typeof b=="undefined")?parseInt(this.img.height):parseInt(b);this.img.style.width=this.width+"px";this.img.style.height=this.height+"px";this.ld.style.width=this.width+"px";this.ld.style.height=this.height+"px";this.anchorX=this.width/2;this.anchorY=this.height/2;this.anchorX=parseInt((typeof a=="undefined")?this.anchorX-16:this.anchorX+a);this.anchorY=parseInt((typeof e=="undefined")?this.anchorY:this.anchorY+e);this.left=0;this.top=0;this.wz=function(f){this.ld.id="mk_shadow_c_"+f;this.img.id="mk_shadow_"+f};this.qc=function(f){this.sW=f;if(px){this.img.ondragstart=function(){return false}}this.img.onmousedown=function(){return false}};this.zI=function(g,j,i){var f=parseInt(j)-parseInt(this.anchorX);var h=parseInt(i)-parseInt(this.anchorY);if(!this.sW.ls&&(f>g.width||f<-this.width||h>g.height||h<-this.height)){if(this.ld.parentNode){this.ld.parentNode.removeChild(this.ld);this.fu=false}}else{if(this.ld.parentNode!=g.lA.ld&&!this.sW.ls){g.lA.appendChild(this.ld);this.ld.style.width=this.width+"px";this.ld.style.height=this.height+"px";this.img.style.width=this.width+"px";this.img.style.height=this.height+"px";this.fu=true}this.ld.style.top=h+"px";this.ld.style.left=f+"px";this.top=h;this.left=f}};this.isVisible=function(){return(this.fu)};this.zq=function(){return(this.img.src)+","+this.width+","+this.height};this.hilite=function(){if(this.ld){if(this.ld.style.zIndex<pF){pF++}this.N07b(pF)}};this.finalize=function(){this.remove(true)};this.remove=function(f){if(typeof f!="boolean"){f=false}if(this.img){if(px){this.img.ondragstart=null}this.img.onmousedown=null}if(this.ld){if(!f){if(this.ld.parentNode){this.ld.parentNode.removeChild(this.ld)}}else{_removeNode(this.ld);this.ld=null}}if(f){this.sW=null}};this.N07b=function(f){if(this.ld&&this.ld.parentNode&&f!=this.ld.style.zIndex){this.f7l=this.ld.style.zIndex;this.ld.style.zIndex=f}};this.WyD6=function(){if(!this.ld){return}if(this.f7l!=this.ld.style.zIndex){this.N07b(this.f7l)}};this.toString=function(){return"com.mapbar.maplet.MIconShadow"}};window.MVersion={version:"31",build:"0905272141"};var Maplet=function(o,d,h,p,c,k,j,m,n){if(px){try{document.execCommand("BackgroundImageCache",false,true)}catch(f){}}this.lq=0;this.lr=0;this.tR=0;this.tS=0;this.fS=0;this.fT=0;this.offsetX=0;this.offsetY=0;ac=new Date();this.pZ=300;this.pN=300;this.clickToCenter=true;this.csJ3=false;this.JE03=false;this.XpGS5=false;this.h04V=null;this.q3p7=null;this.VV4=null;this.tmx=[];h1gj8=[];this.CrE="";this.xI1=-1;this.$465=-1;this.o$2p="";this.p39V={f2:null,b91_:[],yN:null,xd:0.12,RV85:4,gP79:1,qh:150,le87:{width:85,height:68},q159:{width:35,height:27}};this.Y60x={fC:null,width:16,height:16,offsetY:5,rEJ6w:3,$63U:4,uX:null};this.f0I4=-1;this.y5Yf=true;this.$gdE=5;this.markerDragAnimation=true;this.Nbs37=null;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 k=="undefined")?0:parseInt(k);this.top=(typeof j=="undefined")?0:parseInt(j);this.width=(typeof p=="undefined")?600.00001:parseInt(p);this.height=(typeof c=="undefined")?400.00001:parseInt(c);if(isNaN(parseFloat(o))){this.id=o;this.vb=(typeof o=="object")?o:document.getElementById(o);if(d!=null&&d!="undefined"){var a=cq.vp(d);this.gx=Math.min(sy[1],Math.max(sy[0],parseFloat(a[1])));this.gA=Math.min(sz[1],Math.max(sz[0],parseFloat(a[0])%360));a=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=d;this.gx=o}this.xL=strImgsvrUrl;this.AG=(typeof h=="undefined")?0:parseInt(h);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=(m=="undefined")?"":m;this.pU=new Array();this.qE=new Array();this.yl=(typeof n=="undefined"||n==null)?ds:n;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.XWt1=[["",1],[2,3]];this.bp=true;this.ff=false;this.$9J07=bpp[0];this.fe=true;this.sf=null;this.fj=(typeof bDefaultControlOn=="undefined")?true:bDefaultControlOn;this.fa=false;this.z4=Math.ceil((this.width)/(this.pZ)/2);this.z5=Math.ceil((this.height)/(this.pN)/2);this.aO=new Array();this.aN=new Array();this.yG=new Array();this.L231=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.P1x8=null;this.tD=0;this.gM=1;this.xc=null;this.mapContextMenu=null;if(this.width>480){oww=210;owh=140}this.ovw=new M82(this);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;var g="<div id='fixNoImage'>";for(var e=0;e<Math.ceil(parseInt(this.map.style.height)/300);e++){for(var l=0;l<Math.ceil(parseInt(this.map.style.width)/300);l++){g+="<div style='overflow:hidden;position:absolute;top:"+(e*300)+"px;left:"+(l*300)+"px;width:300px;height:300px;'><img src='"+strImgsvrUrl+"images/mapbar31/maplet31.gif' style='position:absolute;width:320px;height:336px;left:0px;top:-16px;'/></div>"}}g+="</div>";if(this.map){this.map.innerHTML=g;this.map.setAttribute("align","left");if(this.map.style.position!="absolute"){this.map.style.position="relative"}var b="http://www.mapbar.com/ApiCopyrightLink.html?referrer="+window.location.host;this.o2L=document.createElement("a");this.o2L.setAttribute("target","_blank");this.o2L.setAttribute("href",b);this.o2L.innerHTML="&copy;&nbsp;Mapbar";this.o2L.style.position="absolute";this.o2L.style.zIndex=3;this.o2L.style.fontSize="12px";this.o2L.style.color="blue";this.o2L.style.fontFamily="arial";this.o2L.style.top=(this.height-25)+"px";this.o2L.setAttribute("whohide","");this.E2e=document.createElement("div");this.E2e.style.width=42+"px";this.E2e.style.height=20+"px";this.E2e.style.overflow="hidden";this.E2e.innerHTML="<img src='"+strImgsvrUrl+"images/mapbar31/maplet31.gif' style='position:absolute;width:320px;height:336px;left:1px;top:-315px;' />";this.E2e.id="ImgCopyright";this.E2e.style.position="absolute";this.E2e.style.zIndex=3;this.E2e.style.top=(this.height-22)+"px";this.E2e.setAttribute("whohide","");this.E2e.style.cursor="pointer";this.E2e.onclick=function(){window.open(b)};this.P0GpQ=document.createElement("a");this.P0GpQ.setAttribute("target","_blank");this.P0GpQ.setAttribute("href","http://www.navinfo.com.cn");this.P0GpQ.innerHTML="&copy;&nbsp;NavInfo";this.P0GpQ.style.position="absolute";this.P0GpQ.style.zIndex=3;this.P0GpQ.style.fontSize="12px";this.P0GpQ.style.color="blue";this.P0GpQ.style.fontFamily="arial";this.P0GpQ.style.textDecoration="none";this.P0GpQ.style.top=(this.height-25)+"px";this.P0GpQ.style.left=(this.width-70)+"px";if(this.ovw.nH()>30){this.o2L.style.left=(this.width-this.ovw.nH()-85)+"px";this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}else{this.o2L.style.left=(this.width-155)+"px";this.E2e.style.left=(this.width-118)+"px"}if(this.width<400){this.P0GpQ.style.display="none";this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px";this.y5Yf=false}this.map.appendChild(this.E2e);this.map.appendChild(this.P0GpQ)}vZ(this);this.KOv=false;this.uw=0;this.t9=0;this.xe=10;if(bp){this.setOverlay("base")}this.fM=null;MEvent.bind(f1,"clean",this,this.fL);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.prototype={onresize:function(){if(this.ovw.nH()>75){this.o2L.style.left=(this.width-this.ovw.nH()-85)+"px";this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}else{if(!this.y5Yf){this.o2L.style.left=(this.width-this.ovw.nH()-85)+"px";this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}else{this.E2e.style.left=(parseInt(this.P0GpQ.style.left)-48)+"px"}}this.o2L.style.top=(this.height-22)+"px";this.E2e.style.top=(this.height-22)+"px";this.P0GpQ.style.top=(this.height-20)+"px";this.P0GpQ.style.left=(this.width-78)+"px";if(LOGO_AUTOZOOM){this.autoZoomLogo()}},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){MEvent.trigger(this,"contextmenu");var b=document["mapbar-maplet"];MEvent.trigger(b,"contextmenu");var e=(px)?event.srcElement.id:d.target.id;var f=(px)?event.srcElement:d.target;var c=parseInt((px)?event.clientX:d.clientX)-b.offsetX;var a=parseInt((px)?event.clientY:d.clientY)-b.offsetY;b.l6=e;b.f8=e;b.fS=c-b.left;b.fT=a-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();sqzd.geo=b.fP;if(sqzd.mark!=""){maplet.removeOverlay(sqzd.mark)}if(maplet.getContextMenu()){sqzd.mark=new MMarker(new MPoint(sqzd.geo),new MIcon("/images/wpoint.gif",6,6));maplet.addOverlay(sqzd.mark)}if(b.xc){b.xc.hide()}if(typeof f.contextmenu!="undefined"&&f.contextmenu!=null){b.xc=f.contextmenu;f.contextmenu.show(b.fS,b.fT)}else{if(b.mapContextMenu!=null){b.xc=b.mapContextMenu;b.mapContextMenu.show(b.fS,b.fT)}}return false},lxlbiaozhu:function(d){var b=document["mapbar-maplet"];var e=d.target.id;var f=d.target;var c=parseInt(d.clientX)-b.offsetX;var a=parseInt(d.clientY)-b.offsetY;b.l6=e;b.f8=e;b.fS=c-b.left;b.fT=a-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();return b.fP},getContextMenu:function(){return this.mapContextMenu},setContextMenu:function(a){if(this.mapContextMenu!=a){this.removeContextMenu()}this.mapContextMenu=a;if(this.mapContextMenu!=null){this.mapContextMenu.qc(this)}},setStandardContextMenu:function(a){this.xc=a},removeContextMenu:function(){if(this.mapContextMenu!=null){if(this.xc==this.mapContextMenu){this.xc=null}this.sF.ld.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 gV=new MStandardControl();this.addControl(gV);this.ga=gV.nR}this.wq=new fD("LayerScale",1,this.height-24,100,24,this.fe,3,"",this.vb);var content='<table bordercolor="#4444EE" border="2" width="100%" height="100%"><tr><td></td></tr></table>';this.sD=new fD("LayerBorder",1,1,1,1,false,6,content,this.vb);this.snapshotBox=new MSnapshotBox(this);content='<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.p39V.f2=new fD("_mapbar_mw_indicator",0,0,this.p39V.q159.width,this.p39V.q159.height,true,100,content,this.vb).ld;this.p39V.f2.style.display="none";this.p39V.b91_=this.p39V.f2.getElementsByTagName("div");var An=(navigator.appVersion.match(new RegExp("6.","i"))=="6.")?0:2;this.sO=new fD("LayerMask",0,0,this.width-An,this.height-An,true,2,"",this.sF);if(px){this.sO.style.backgroundImage="url("+strImgsvrUrl+"images/mask.gif)"}this.sM=new fD("mapbar-bordertop",0,0,this.width,0,true,6,"",this.vb);this.sK=new fD("mapbar-borderlft",0,0,0,this.height,true,6,"",this.vb);this.sJ=new fD("mapbar-borderbtm",0,this.height-3+An,this.width,0,true,6,"",this.vb);this.sL=new fD("mapbar-borderrgt",this.width-1,0,0,this.height,true,6,"",this.vb);this.lA=new fD("LayerDrawMap",0,0,this.width,this.height,true,4,"",this.sF);if(px){this.lA.style.backgroundImage="url("+strImgsvrUrl+"images/mask.gif)"}if(!px){this.lA.style.MozUserSelect="none"}this.Y60x.fC=new fD("_mapbar_drag_cross",0,0,this.Y60x.width,this.Y60x.height,true,2,"",this.vb);with(this.Y60x.fC.ld){style.width=this.Y60x.width+"px";style.height=this.Y60x.height+"px";style.display="none";style.overflow="hidden"}this.Y60x.fC.ld.innerHTML='<img src="'+strImgsvrUrl+'images/mapbar31/maplet31.gif" style="position:absolute;width:320px;height:336px;left:-247px;top:0px;">';this.ovw.qa(this.vb);var rightMargin=15;var ui=0;this.sg=(this.width>360)?150:73;if((this.ovw.nF()+this.ovw.nz())>(this.height-23)){ui+=Math.max(0,this.ovw.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(mw){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(d,a){if(this.yl!=d){this.yl=d;if("aerial"==this.yl||this.yl.indexOf("aerial")>=0){this.xK="jpg"}else{this.xK="png"}if(typeof a!="undefined"){this.xK=a}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(c){}}this.refresh();MEvent.trigger(this,"style",d)}}},setRotation:function(a){if(px&&rs){this.rotation=a;this.gk=Math.cos(this.rotation/180*Math.PI);this.wT=Math.sin(this.rotation/180*Math.PI)}},setHeadMode:function(a){this.nT=a},setOverlay:function(b,a){if(typeof a=="string"){this.u3=a}if(this.u2!=b){this.u2=b}if(typeof this.sF!="undefined"){this.refresh()}},zN:function(){var a=sj[this.AG]*this.width/this.pZ;this.c8.tl=(this.gA-a/2);this.c8.s6=(this.gA+a/2);var b=qP[this.AG]*this.height/this.pN;this.c8.tj=(this.gx-b/2);this.c8.s4=(this.gx+b/2)},fI:function(f){if(this.w3!=null&&this.w3.length>0){sY=this.c8.s0;te=this.c8.tp;var e=sj[f]*this.width/this.pZ;var b=(this.gA-e/2);var h=(this.gA+e/2);var g=qP[f]*this.height/this.pN;var d=(this.gx-g/2);var a=(this.gx+g/2);for(var c=0;c<this.w3.length;c++){if(this.w3[c].qn(d,b)&&this.w3[c].qn(a,h)){sY=this.w3[c].s0;te=this.w3[c].tp;break}}}},setBound:function(a){this.c8=a},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 b=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];b++}}}catch(c){}}this.sG.ld.style.zoom=1;this.sG.ld.style.left="0px";this.sG.ld.style.top="0px";this.sG.ld.style.visibility="hidden"},zL:function(){if(this.fs==true||this.c0==true||(typeof this.Ai!="undefined"&&this.Ai!=0)){return}var b=parseInt(this.sF.style.left);var a=parseInt(this.sF.style.top);if((b+this.tf1)>=0||(b+this.sZ-this.width)<=0||(a+this.tg)>=0||(a+this.s1-this.height)<=0){this.fs=true;this.zA()}},zA:function(){if(this.fs==false){return}var h=parseInt(this.sF.style.left);var g=parseInt(this.sF.style.top);if((h+this.tf1)>=0||(h+this.sZ-this.width)<=0){if(this.c0==true){return}this.c0=true;try{var d=0;var l=0;if((h+this.tf1)>=0){this.th--;this.tf1-=parseInt(this.pZ);d=this.th;l=this.tf1}if((h+this.sZ-this.width)<=0){this.s2++;l=this.sZ;this.sZ+=parseInt(this.pZ);d=this.s2}var f=d;var e=nM[this.AG];var i=parseInt(360/sj[this.AG]);d=(d)%i;if(d>=(i/2)){d-=i}if(d<(-i/2)){d+=i}var b=this.yl;for(var c=this.ti;c<=this.s3;c++){var k=c;var j=(-(c-this.ti+1)*this.pN)+this.s1;this.aA(l,j,d,k,f,c,b)}this.c0=false}catch(a){}}if((g+this.tg)>=0||(g+this.s1-this.height)<=0){if(this.c0==true){return}this.c0=true;try{var k=0;var j=0;if((g+this.tg)>=0){this.s3++;this.tg-=parseInt(this.pN);k=this.s3;j=this.tg}if((g+this.s1-this.height)<=0){this.ti--;j=this.s1;this.s1+=parseInt(this.pN);k=this.ti}var c=k;var e=nM[this.AG];var i=parseInt(360/sj[this.AG]);var b=this.yl;for(var f=this.th;f<=this.s2;f++){var d=f;d=(d)%i;if(d>=(i/2)){d-=i}if(d<(-i/2)){d+=i}var l=((f-this.th)*this.pZ)+this.tf1;this.aA(l,j,d,k,f,c,b)}this.c0=false}catch(a){}}this.fs=false},aA:function(o,l,e,n,g,d,b){var f=nM[this.AG];var k=parseInt(Math.floor((e)/f));var j=parseInt(Math.floor((n)/f));if(k<0){k+=1}if(j<0){j+=1}var a=(e)-k*f;var p=(n)-j*f;var h=this.xL.replace("img","img"+this.y273(a,p))+"mapbank/"+b+"/"+this.sR;var c=((this.AG).toString(16)+g.toString(16)+"l"+d.toString(16)).toLowerCase();if(this.AG>=14){h+=k+"/"}h+=k+"_"+j+"/";h+=a+"_"+p+"."+this.xK;if(h&&h.indexOf("NaN")<0){if(this.pU[c]==null){if(rs==0||!px){this.pU[c]=new Image();this.pU[c].id=c;this.pU[c].name=c;this.pU[c].ntry="0";this.pU[c].unselectable="on";this.pU[c].style.position="absolute"}else{this.pU[c]=document.createElement("v:Image");this.pU[c].id=c;this.pU[c].name=c;this.pU[c].ntry="0";this.pU[c].unselectable="on";this.pU[c].style.position="absolute";this.pU[c].cE="f";this.pU[c].style.rotation=this.rotation;this.pU[c].style.width=this.pZ+"px";this.pU[c].style.height=this.pN+"px"}f1.nk(this.pU[c],h,this.pZ,this.pN,true);this.sE.ld.appendChild(this.pU[c])}else{if(px&&rs){this.pU[c].style.rotation=this.rotation}}var m=(o+this.pZ/2-this.width/2)*this.gk-(l+this.pN/2-this.height/2)*this.wT+this.width/2;var i=(o+this.pZ/2-this.width/2)*this.wT+(l+this.pN/2-this.height/2)*this.gk+this.height/2;this.pU[c].style.top=parseInt(i-this.pN/2)+"px";this.pU[c].style.left=parseInt(m-this.pZ/2)+"px";this.pU[c].c2=true;c=null}h=null;this.no()},u8:function(h,f){if(this.fe){var a=(this.xg*100*81/parseInt(this.pZ))*this.gM;var b=strImgsvrUrl+"images/scale.gif";var d="#FFFFBB";var g=4;var e=(en)?"km":tX("%u516E%uE338");var c=(en)?"mi":tX("%u54EA");if(this.x4!="undefined"&&this.x4!=null){a=(this.xg*100*60/parseInt(this.pZ))*this.gM;b=strImgsvrUrl+"images/"+this.x4+"/scale.gif";d="#000000";g=0}if(typeof h!="undefined"){this.x3=h}if(typeof f!="undefined"){this.uu=f}if(this.x3!=null){d=this.x3}if(this.uu!=null){g=this.uu}if(en==1){b=strImgsvrUrl+"images/scale2.gif";g=-1}a=(a<10)?(a).toPrecision(1):parseInt(a);if(this.wq.ld.innerHTML==""){x2='<div unselectable="on" style="overflow:hidden;position:absolute;top:12px;left:1px;z-Index:0;width:67px;height:3px;border-left:1px solid black;border-bottom:3px solid black;border-right:1px solid black;"></div>';x2+='<div unselectable="on" style="position:absolute;top:'+g+'px;left:1px;z-Index:1"><TABLE cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD ID="_tdScale" unselectable="on" style="z-Index:1; font-family: arial;FONT-SIZE: 12px; color:'+d+';FONT-WEIGHT: bold;" width="100%">&nbsp;'+a+" "+e+"</TD></TR></TBODY></TABLE></div>";if(en==1){x2+='<div unselectable="on" style="position:absolute;top:'+(g+13)+'px;left:1px;z-Index:1px;"><TABLE cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD unselectable="on" style="z-Index:1; font-family: arial;FONT-SIZE: 12px; color:'+d+';FONT-WEIGHT: bold;" width="100%">&nbsp;'+a+" "+c+"</TD></TR></TBODY></TABLE></div>"}this.wq.ld.innerHTML=x2;this.wq.ld.style.margin="2px 2px 2px 2px"}else{if(en==1){aa("_tdScale").innerHTML="&nbsp;"+a+" "+c}else{aa("_tdScale").innerHTML="&nbsp;"+a+" "+e}}}else{this.wq.ld.innerHTML=""}},showSmallLogo:function(a){if(a){this.E2e.style.display="none";this.map.appendChild(this.o2L)}else{this.E2e.style.display="block";this.map.removeChild(this.o2L)}},showNavLogo:function(a){if(!a){this.P0GpQ.style.display="none";this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px";if(this.ovw){if(this.ovw.nH()>30){this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}}}else{this.E2e.style.left=(parseInt(this.P0GpQ.style.left)-48)+"px";if(this.ovw){if(this.ovw.nH()>30){this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}}this.P0GpQ.style.display="block"}this.y5Yf=a},waitPan:function(a,c,b){if(this.Ah){clearTimeout(this.Ah)}this.Ah=null;if(a&&c){if(this.vi==0){this.vi=1;this.vc=a;this.vd=c;this.fy=b;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.XpGS5=true;if(this.markerDragAnimation){with(this.Y60x){if(uX!=null&&!uX.ls){this.Ovt5Q(false)}}}var tN=parseInt(Math.sqrt(this.Aq*this.Aq+this.Aw*this.Aw));if(this.vh){clearTimeout(this.vh)}this.vh=null;if((this.va-tN)<=(1.2*this.vg)){this.Aq=this.xoffset;this.Aw=this.yoffset;this.sF.moveTo(this.Aq,this.Aw);if(!px){var L231=document.getElementById("mybubble_Content");if(this.L231&&L231){L231.style.overflow="auto"}}this.vh=getTimeout(this,this.finishupPan,10)}else{var lJ=this.xoffset*this.vg/this.va;var lL=this.yoffset*this.vg/this.va;this.Aq+=lJ;this.Aw+=lL;this.sF.moveTo(this.Aq,this.Aw);this.vh=getTimeout(this,this.doPan,10)}},finishupPan:function(){this.fa=false;this.csJ3=true;this.h04V=new Date().getTime();this.q3p7=this.Aq;this.VV4=this.Aw;if(this.vh){clearTimeout(this.vh)}this.vh=null;this.setCenter(this.ve,this.vf,true,false);this.csJ3=false;MEvent.trigger(this,"pan","&act=pan&zm="+this.AG+"&ctr="+this.toMapCoordinate(this.width/2,this.height/2));if(this.L231&&this.L231.parentNode!=this.sF.ld){this.sF.ld.appendChild(this.L231)}else{}if(this.fy!=null&&this.fy!="undefined"){eval(this.fy);if(avBubble.uX&&avBubble.isVisible()){var dI4y4=cq.vp(avBubble.x8257);var anchorX=this.zl(dI4y4[0],dI4y4[1]);var anchorY=this.zm(dI4y4[1],dI4y4[0]);anchorX=parseInt(anchorX)-(parseInt(avBubble.width)/2-avBubble.arrow_tip_xoffset);anchorY=parseInt(anchorY)-(parseInt(avBubble.height)+avBubble.arrow_tip_yoffset);if((anchorX+2)!=avBubble.left||anchorY!=avBubble.top){avBubble.left=anchorX;avBubble.top=anchorY;if(ContentInfo){ContentInfo.wA(avBubble.top,avBubble.left)}avBubble.calcLatLon()}}}this.XpGS5=false},AN:function(b,a,d){if(typeof a=="undefined"){a=0}if(typeof d=="undefined"){d=0}var c=Math.pow(2,parseFloat(b))/Math.pow(2,this.AG);this.sF.ld.style.zoom=c;this.sF.ld.style.left=(this.width/2-this.width*c/2+a)+"px";this.sF.ld.style.top=(this.height/2-this.height*c/2+d)+"px"},vQ:function(a){while(a!=null&&a.length>0){a[a.length-1]=null;a.length--}},vS:function(c,a){if(a>=0&&c.length>a){c[a]=null;for(var b=a;b<c.length-1;b++){c[b]=c[b+1]}c[c.length-1]=null;c.length--}},getElementById:function(c,b){var a=this.p8(c,b);if(a>=0&&c.length>a){return c[a]}return null},p8:function(c,d){var a=-1;for(var b=0;b<c.length;b++){if(c[b].id==d){a=b;break}}return a},removePointAt:function(a){this.vS(this.aO,a)},vX:function(a){this.vS(this.aO,this.p8(this.aO,a))},removeAllPoints:function(){this.vQ(this.aO)},removeLabelAt:function(a){this.vS(this.yG,a)},vV:function(a){this.vS(this.yG,this.p8(this.yG,a))},removeAllLabels:function(){this.vQ(this.yG)},removeLineAt:function(a){this.vS(this.aN,a)},vW:function(a){this.vS(this.aN,this.p8(this.aN,a))},removeAllLines:function(){this.vQ(this.aN)},addHotspot:function(d,b,f,h,e){var a="hotspot"+this.aE.length;if(typeof b=="object"&&b.toString()=="com.mapbar.maplet.MPoint"){d=b.lat;b=b.lon}else{var g=cq.vp(b);d=Math.min(sy[1],Math.max(sy[0],parseFloat(g[1])));b=Math.min(sz[1],Math.max(sz[0],parseFloat(g[0])%360))}var c=new a8(a,"","",parseFloat(d),parseFloat(b),f,"","0");c.fl=false;c.AJ=h;c.AI=e;this.aE[this.aE.length]=c},addPointWithSwapImage:function(e,b,g,a,h,d,c,f){this.aO[this.aO.length]=new a8("point"+this.sv,e,b,parseFloat(g),parseFloat(a),h,d,c,f);this.sv++},addPointWithId:function(g,e,a,f,c,b,d){this.aO[this.aO.length]=new a8(g,pc[g],pb[g],parseFloat(e),parseFloat(a),f,c,b,d)},addIcon:function(b,d,e,f,a,c){var g=cq.vp(d);this.addPoint(b,g[1],g[0],e,f,a,c)},nC:function(){return this.c8},zp:function(b,e){var d=(b-this.width/2);if(this.rotation!=0){var c=(e-this.height/2);d=d*this.gk+c*this.wT}var a=this.gA+d*this.xg/this.pZ;a=Math.min(sz[1],Math.max(sz[0],a%360));return a},zo:function(a,e){var b=(e-this.height/2);if(this.rotation!=0){var d=(a-this.width/2);b=-d*this.wT+b*this.gk}var c=this.gx-b*this.xf/this.pN;c=Math.min(sy[1],Math.max(sy[0],c));return c},zl:function(a,c){var b=((parseFloat(a)-this.gA)%360);if(b>180){b-=360}if(b<-180){b+=360}var e=Math.round(this.width/2+b/sj[this.AG]*this.pZ);if(this.rotation!=0){var d=Math.round(this.height/2-((parseFloat(c)-this.gx)%360)/qP[this.AG]*this.pN);e=(e-this.width/2)*this.gk-(d-this.height/2)*this.wT+this.width/2}return e},zm:function(c,a){var d=Math.round(this.height/2-((parseFloat(c)-this.gx)%360)/qP[this.AG]*this.pN);if(this.rotation!=0){var b=((parseFloat(a)-this.gA)%360);if(b>180){b-=360}if(b<-180){b+=360}var e=Math.round(this.width/2+b/sj[this.AG]*this.pZ);d=(e-this.width/2)*this.wT+(d-this.height/2)*this.gk+this.height/2}return d},setMode:function(d,b){d=d.toString().toLowerCase();d=(this.tB[d])?parseInt(this.tB[d]):parseInt(d);if((d!=3&&d!=23)&&this.sS==d){return null}if(this.sS==3||this.sS==23){this.vA=this.sS}this.sS=parseInt(d);this.cS=false;this.cO=false;this.v2();var a=null;switch(d){case"zoomin":case"1":case 1:this.cS=true;this.Mu408("crosshair",this.map);this.sS=1;a="zoomin";break;case"zoomout":case"2":case 2:this.cS=true;this.sS=2;this.Mu408("crosshair",this.map);a="zoomout";break;case ts.ty:case"pan":case 3:this.sS=3;a="pan";d=null;case ts.l3:case 13:case"erase":if(d){this.sS=13;a="erase";d=null}case ts.tu:case"edit":case 23:if(d){this.sS=23;a="edit";d=null}this.cO=true;this.Mu408("default",this.map);break;case ts.tv:case"lookup":case 5:this.cS=true;this.Mu408("crosshair",this.map);this.sS=5;a="lookup";break;case"6":case 6:case"bookmark":this.Mu408("default",this.map);a="bookmark";this.sS=6;break;case"7":case 7:this.Mu408("default",this.map);break;case"8":case 8:this.Mu408("default",this.map);break;case"9":case 9:case"drawline":this.Mu408("default",this.map);this.po=-1;this.sS=9;a="drawline";break;case"10":case 10:case"drawarea":this.Mu408("default",this.map);this.po=-1;this.sS=10;a="drawarea";break;case"11":case 11:case"measure":maplet.setCursorStyle("measure","http://a.pojaaimg.cn/ditu/1/images/ruler.cur");this.Mu408("measure",this.map);a="measure";this.sS=11;break;case"15":case 15:case"measarea":this.Mu408("default",this.map);a="measarea";this.sS=15;break;case"24":case 24:case"snapshot":this.cS=true;this.Mu408("crosshair",this.map);a="snapshot";this.sS=24;break;default:break}var c=null;if(a!=null&&typeof b=="function"){c=MEvent.addListener(this,a,b)}if(a!=null){MEvent.trigger(this,"setmode",a)}return c},setCursorStyle:function(b,a){if(typeof b=="string"&&typeof a=="string"&&b){if("default,pointer,move,crosshair,measure".indexOf(b)!=-1){h1gj8[b]=a}}},Mu408:function(d,a){var b=h1gj8[d];var c="";if(typeof b=="string"&&b){c="url('"+b+"'),auto"}else{c=d}if(a.style.cursor!=c){a.style.cursor=c}},wN:function(i,h,g,a,f){avBubble.$Xv_=false;if(this.fa){return}if(typeof g=="undefined"||g==null){return}if(iToolTipStyle=="undefined"||iToolTipStyle==1){var j=(typeof g=="object")?g:null;if(j){avBubble.gl(j.title,j.content);f=a}else{avBubble.gl(g,a)}if(f==true||(((i>avBubble.width/2-avBubble.arrow_tip_xoffset+60)&&(i<this.width-(avBubble.width/2+avBubble.arrow_tip_xoffset)))&&(h>avBubble.height&&h<this.height))){if(j){this.L231=j.gv(i,h)}else{this.L231=gp(g,i,h,a)}this.sF.ld.appendChild(this.L231);document.getElementById("bubble").style.display="block";document.getElementById("bubble").style.visibility="visible";ContentInfo.LayoutContent()}else{var c=new Number();var b=new Number();if(i<avBubble.width/2-avBubble.arrow_tip_xoffset+60){if(this.ga){if((h-avBubble.height-10)<42){c=avBubble.width/2-avBubble.arrow_tip_xoffset+10+56}else{c=avBubble.width/2-avBubble.arrow_tip_xoffset+10+34}}else{c=avBubble.width/2-avBubble.arrow_tip_xoffset+10}}else{if(i>this.width-(avBubble.width/2+avBubble.arrow_tip_xoffset)){c=this.width-(avBubble.width/2+avBubble.arrow_tip_xoffset)-10}else{c=i}}if(h>avBubble.height&&h<this.height){b=h}else{b=avBubble.height+10}var e=c-i;var d=b-h;if(j){this.L231=j.gv(c+2,b,true)}else{this.L231=gp(g,c,b,a,true)}this.sF.ld.appendChild(this.L231);this.panTo(e,d,'document.getElementById("bubble").style.display = "block";document.getElementById("bubble").style.visibility = "visible";ContentInfo.LayoutContent();avBubble.syncContentInfoPosition();avBubble.calcLatLon();')}}else{var j=(typeof g=="object")?g:null;if(j){setToolTipMenu(i,h,j.title,j.content)}else{setToolTipMenu(i,h,g,a)}}},hideBubble:function(){hideBubble(this);if(this.L231){if(this.L231.parentNode){this.L231.parentNode.removeChild(this.L231)}this.L231=null}},aY:function(){if((this.tR>0)&&(this.tR<this.width)&&(this.tS>0)&&(this.tS<this.height)&&(this.lq>0)&&(this.lq<this.width)&&(this.lr>0)&&(this.lr<this.height)){return true}else{return false}},lu:function(){var b=0,c=0,a=0,d=0;if(this.tR<this.lq&&this.tS<this.lr){b=this.lq-this.tR;c=this.lr-this.tS;a=this.tR;d=this.tS}else{if(this.tR>this.lq&&this.tS<this.lr){b=this.tR-this.lq;c=this.lr-this.tS;a=this.lq;d=this.tS}else{if(this.tR<this.lq&&this.tS>this.lr){b=this.lq-this.tR;c=this.tS-this.lr;a=this.tR;d=this.lr}else{if(this.tR>this.lq&&this.tS>this.lr){b=parseInt(this.tR)-this.lq;c=parseInt(this.tS)-this.lr;a=this.lq;d=this.lr}else{b=this.tR-this.lq;c=this.tS-this.lr;a=this.lq;d=this.lr}}}}if(this.sS==ts.l2lg){this.snapshotBox.resize(b,c);this.snapshotBox.moveTo(a,d)}else{this.sD.resize(b,c);this.sD.moveTo(a,d)}},v2:function(){if(this.zy&&this.zy.zX.parentNode==this.lA.ld){this.zy.remove()}if(this.tG&&this.tG.zX.parentNode==this.lA.ld){this.tG.remove()}this.zy=null;this.tG=null},addPolyline:function(g,f,c,b,a,e){var d=new a9("pline"+this.sv,g,f,c,b,a,e);d.maplet=this;this.aN[this.aN.length]=d;this.sv++},addPolylineString:function(e,a,c){var d=e.split(",");var b=new a9("pline"+this.sv,null,null,(d.length>2)?d[2]:null,(d.length>0)?parseInt(d[0]):0,(d.length>1)?d[1]:1,c);b.maplet=this;this.sv++;b.vp(a);this.aN[this.aN.length]=b},addLabelString:function(b,a,d){var c=cq.vp(a);this.addLabel((b==null)?"http://map.mapbar.com/maplite/images/marker.gif":b,c[1],c[0],d)},addOrigin:function(b,a){aC.setOrigin(parseFloat(b),parseFloat(a))},addDestination:function(b,a){aC.setDestination(parseFloat(b,a))},clean:function(){this.hideBubble();this.removeAllPoints();this.removeAllLabels();this.removeAllLines();pd=new Array();pa=new Array();this.refresh()},showBasePois:function(a){this.bp=a;this.refresh()},showZoomBar:function(a,b){this.ff=a;if(typeof b!="undefined"&&b!=null){if(this.yh!=b){this.yh=b;this.nI().setStyle(this.yh)}}if(this.ff){this.ovw.hide();this.nI().show();this.AP.setZoomLevel(this.getZoomLevel())}else{if(this.AP!=null){this.AP.hide()}}},addControl:function(d,e,b,a){if(typeof d=="string"||(typeof d=="object"&&d.toString().indexOf("MStandardControl")>0)){if(this.ga){this.ga.g1();this.ga=null}var c=null;if(typeof d=="string"){if(b==null||b=="undefined"){b=0}if(a==null||a=="undefined"){a=0}c=new MStandardControl(d,b,a,e)}else{if(typeof d=="object"){c=d}}if(c){c.qc(this)}}else{if(typeof d=="object"){if(this.gc[d.id]){return}d.qc(this);this.gc[d.id]=d;this.ovw.addListener(this.gc[d.id])}}},removeControl:function(a){if(typeof a=="object"&&this.gc[a.id]){this.gc[a.id].remove();this.gc[a.id]=null}},addBound:function(a){if(typeof a!="undefined"){this.w3[this.w3.length]=a}},clearAllBounds:function(){for(var a=0;a<this.w3.length;a++){this.w3[a]=null}this.w3.length=0},setScaleBarValue:function(a){},getCurrentMap:function(){var a=this.width*sj[this.AG]/this.pZ;cq.lf=this.gx;cq.li=this.gA;var e=cq.zn();var c=(this.aO.length>0)?"&pois="+this.aO.length+",":"";for(var b=0;b<this.aO.length;b++){c+=this.aO[b].zn()+","+this.aO[b].xP+","}var d=(this.aN.length>0)?"&plines="+this.aN.length+",":"";for(var b=0;b<this.aN.length;b++){d+=this.aN[b].zn()+";"}var f="";for(var b in this.u5){if(typeof this.u5[b]=="object"&&this.u5[b]!=null&&this.u5[b].zq){if(f.length==0){f="&overlays="}f+=this.u5[b].zq()+";"}}return"&map="+this.AG+","+e+","+this.width+","+this.height+"&zm="+(Math.round(parseFloat(a)*1000)/10)+"&width="+this.width+"&height="+this.height+"&ctr="+e+c+d+"&client="+strLicenseKey+f},getLastPoint:function(){var a="&poi=";if(this.aO.length>0){a+=this.aO[this.aO.length-1].zn()+","+this.aO[this.aO.length-1].xP}return a},getLastLine:function(){var a="&pline=";if(this.aN.length>0){a+=this.aN[this.aN.length-1].zn()}return a},setCursorIcon:function(a){this.gJ=a;this.gI.src=a;nX()},v1:function(){this.gJ=null;this.gI.src=null},setBgColor:function(a){this.vb.style.backgroundColor=a},setTransparency:function(a){this.sE.ld.style.filter="alpha(opacity="+a+");";this.sE.ld.style.MozOpacity=(a/100);this.sE.ld.style.opacity=(a/100);this.sE.ld.style.qK=(a/100)},getFitZoomLevel:function(a,c){var b=1;while(a<=c[b]&&b<(c.length)){b++}return(b-1)},setBrushStyle:function(b,a){this.brush.color=b;this.brush.stroke=a},ql:function(){return this.cI},setActive:function(a){this.cI=a},onkeydown:function(b){var a=(b)?b:(window.event)?window.event:null;if(a){var c=(a.fG)?a.fG:((a.keyCode)?a.keyCode:((a.which)?a.which:0));if(c=="37"||c=="38"||c=="39"||c=="40"){if(this.ql()){if(a.target&&((a.target.nodeName=="INPUT"&&a.target.getAttribute("type").toLowerCase()=="text")||a.target.nodeName=="TEXTAREA")){return}if(a.srcElement&&((a.srcElement.tagName=="INPUT"&&a.srcElement.type=="text")||a.srcElement.tagName=="TEXTAREA")){return}if(a.shiftKey||a.ctrlKey){if(c=="37"){this.setRotation(this.rotation-15);this.refresh()}if(c=="39"){this.setRotation(this.rotation+15);this.refresh()}}else{if(c=="37"){this.panTo(this.width/2,0)}if(c=="38"){this.panTo(0,this.height/2)}if(c=="39"){this.panTo(-this.width/2,0)}if(c=="40"){this.panTo(0,-this.height/2)}}}}}},showDiy:function(j){var c=(typeof j=="undefined")?new Array():sdc(j).split(",");var e=(c.length>0);var h=c[0];x6=c[1];var b=c[2];var f=c[3];var g=c[4];var i=c[5];var k=c[6];var d=c[7];if(e){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 h=="undefined"){te=0}else{te=parseInt(h)}if(typeof x6=="undefined"){this.setStyle("mapbar")}else{this.setStyle(x6,b)}if(typeof f=="undefined"){this.gM=1}else{this.gM=parseFloat(f)}if(typeof d=="undefined"){if(e){this.xL="http://diyimg.mapbar.com/maplite/"}else{this.xL=strImgsvrUrl}}else{this.xL=d}if(typeof k=="undefined"){sz=new Array(-360,360);sy=new Array(-90,90)}else{var a=cq.vp(g);sz=new Array(a[0]-parseFloat(i)/2,a[0]+parseFloat(i)/2);sy=new Array(a[1]-parseFloat(k)/2,a[1]+parseFloat(k)/2)}if(typeof g!="undefined"){this.centerAndZoom(new MPoint(g),sY-1)}},p2p:function(){var a=this.width-120;var b=this.height-100;if(a>gh._62){a=gh._62}else{if(a<gh.i58e){a=gh.i58e}}if(b>gh.HYc7){b=gh.HYc7}else{if(b<gh.SK2A1){b=gh.SK2A1}}if(a>590&&b<290){b=290}if(a<b){a=0;b=0}return{width:a,height:b}},r29U5:function(a){new Tl9RR(strImgsvrUrl+"mapbank/base/poireport.txt?"+a,function(){document["mapbar-maplet"].refresh();document["mapbar-maplet"].$13()}).B18()},$13:function(){if(typeof basepoilist!="object"){this.r29U5(Math.random())}},setTrajectory:function(h,a,c,d){this.ux=(c==null||c=="undefined")?5:parseInt(c);this.pid=h;this.lX=d;var g=a.pts;if(g!=null&&g.length>0){var f=0;this.zf=new Array();this.zg=new Array();this.p9=0;for(var b=0;b<g.length;b++){var e=cq.vp(g[b].pid);this.zg[f]=parseFloat(e[0]);this.zf[f]=parseFloat(e[1]);f++;e=null}g=null}},rotate:function(a){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(a,100)}else{setTimeout('maplet.rotate("'+a+'")',100)}},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.pid.icon.ld.parentNode!=this.lA){this.lA.appendChild(this.pid.icon.ld.parentNode);this.pid.icon.ld.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.ld.style.width)+"px";this.lY.style.height=parseFloat(this.pid.icon.ld.style.height)+"px";this.lY.style.left=(this.width/2-parseFloat(this.pid.icon.ld.style.width)/2)+"px";this.lY.style.top=(this.height/2-parseFloat(this.pid.icon.ld.style.height)/2)+"px";this.lY.innerHTML="<img src='"+this.pid.icon.imgUrl+"' width='"+parseFloat(this.pid.icon.ld.style.width)+"px' height='"+this.pid.icon.ld.style.height+"px'>";this.map.appendChild(this.lY)}var j=-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(j<0){j+=360}j=j%360;if((Math.abs(j-this.rotation)%360)>180){this.rotation+=360}if(this.rotation-180-360>0){this.rotation=(this.rotation-720)}this.uw=this.rotation;this.t9=j;if(this.p9==1){this.setRotation(j);this.setCenter(this.wY,this.wZ)}else{this.setCenter(this.wY,this.wZ);setTimeout('maplet.rotate("maplet.doEmulation()")',500);return}}var f=this.zl(this.zg[this.p9-1],this.zf[this.p9-1]);var e=this.zm(this.zf[this.p9-1],this.zg[this.p9-1]);var b=this.zl(this.zg[this.p9],this.zf[this.p9]);var a=this.zm(this.zf[this.p9],this.zg[this.p9]);var i=this.zl(this.wZ,this.wY);var h=this.zm(this.wY,this.wZ);var g=parseFloat(Math.sqrt((b-f)*(b-f)+(a-e)*(a-e)));var c=parseFloat(Math.sqrt((i-f)*(i-f)+(h-e)*(h-e)))+this.ux;if(c<=(g-this.ux)){i=f+c*(b-f)/g;h=e+c*(a-e)/g;this.wZ=this.zg[this.p9-1]+c*(this.zg[this.p9]-this.zg[this.p9-1])/g;this.wY=this.zf[this.p9-1]+c*(this.zf[this.p9]-this.zf[this.p9-1])/g}else{i=b;h=a;this.wZ=this.zg[this.p9];this.wY=this.zf[this.p9];this.p9++}if(this.nT==0){this.pid.icon.ld.style.top=(h-parseFloat(this.pid.icon.ld.style.height))+"px";this.pid.icon.ld.style.left=(i-parseFloat(this.pid.icon.ld.style.width)/2)+"px"}if(this.nT==1&&rs){this.sF.ld.style.top=parseFloat(this.sF.ld.style.top)+this.ux;this.vh=getTimeout(this,this.doEmulation,100)}else{if(i<0){this.panTo(this.width/2,this.height/2-h,"maplet.doEmulation()")}else{if(i>this.width){this.panTo(-this.width/2,this.height/2-h,"maplet.doEmulation()")}else{if(h<0){this.panTo(this.width/2-i,this.height/2,"maplet.doEmulation()")}else{if(h>this.height){this.panTo(this.width/2-i,-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.ld.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){}},getMarkersInPolygon:function(b){var a=[];var f=[];for(var c=0;c<b.pts.length;c++){f.push({x:b.pts[c].sU,y:b.pts[c].sV})}var d=this.getMarkers();for(var c=0;c<d.length;c++){var e={x:d[c].pt.sU,y:d[c].pt.sV};if(EU6(e,f)){a.push(d[c])}}return a},getMarkerPolygons:function(f){var b=this.getPolylines(2);var a=[];if(b.length>0){var g={x:f.pt.sU,y:f.pt.sV};for(var d=0;d<b.length;d++){var h=[];var c=b[d];for(var e=0;e<c.pts.length;e++){h.push({x:c.pts[e].sU,y:c.pts[e].sV})}if(EU6(g,h)){a.push(c)}}}return a},y273:function(a,b){return this.XWt1[(a%2)<0?0:a%2][(b%2)<0?0:b%2]},qep:function(e){var d=parseInt(this.p39V.b91_[0].style.borderTopWidth);if(this.p39V.yN!=null&&((e<0&&d==0)||(e>0&&d==2))){return}var b={left:this.tR,top:this.tS};var c=null;var a=null;if(e<0){a=this.L8p6G;c=this.p39V.le87;this.CTe(true)}else{a=this.r_32;c=this.p39V.q159;this.CTe(false)}b.left-=c.width/2;b.top-=c.height/2;this.KiH3(true,c,b);this.p39V.yN=getTimeout(this,a,this.p39V.qh)},CTe:function(a){var b=this.p39V.b91_;if(a){b[0].style.borderWidth="0px 2px 2px 0px";b[1].style.borderWidth="0px 0px 2px 2px";b[2].style.borderWidth="2px 2px 0px 0px";b[3].style.borderWidth="2px 0px 0px 2px"}else{b[0].style.borderWidth="2px 0px 0px 2px";b[1].style.borderWidth="2px 2px 0px 0px";b[2].style.borderWidth="0px 0px 2px 2px";b[3].style.borderWidth="0px 2px 2px 0px"}},r_32:function(){this.ib8(false)},L8p6G:function(){this.ib8(true)},ib8:function(a){if(this.p39V.gP79<=this.p39V.RV85){var c=this.p39V.f2;var b=this.p39V.xd*this.p39V.gP79;var d=c.offsetWidth*b;c.style.left=(a?c.offsetLeft+d/2:c.offsetLeft-d/2)+"px";c.style.width=(a?c.offsetWidth-d:c.offsetWidth+d)+"px";d=c.offsetHeight*b;c.style.top=(a?c.offsetTop+d/2:c.offsetTop-d/2)+"px";c.style.height=(a?c.offsetHeight-d:c.offsetHeight+d)+"px";this.df7F9();this.p39V.gP79++;this.p39V.yN=getTimeout(this,(a?this.L8p6G:this.r_32),this.p39V.qh-this.p39V.qh*this.p39V.xd)}else{this.KiH3(false)}},df7F9:function(){var c=this.p39V.f2;var a=4;var b=c.offsetWidth;var d=c.offsetHeight;this.p39V.b91_[1].style.left=b-a+"px";this.p39V.b91_[2].style.top=d-a+"px";this.p39V.b91_[3].style.left=b-a+"px";this.p39V.b91_[3].style.top=d-a+"px"},KiH3:function(d,b,a){var c=this.p39V.f2;c.style.left="100px";c.style.top="100px";if(this.p39V.yN){window.clearTimeout(this.p39V.yN);this.p39V.yN=null}this.p39V.gP79=1;this.p39V.f2.style.display=d?"":"none";var c=this.p39V.f2;if(typeof a=="object"&&a){c.style.left=a.left+"px";c.style.top=a.top+"px"}if(typeof b=="object"&&b){c.style.width=b.width+"px";c.style.height=b.height+"px";this.df7F9()}},myp:function(){if(typeof this.ga!="undefined"&&this.ga){return this.ga.RC9P4()}else{return{min:{x:0,y:0},max:{x:0,y:0}}}},H3$7R:function(){var a={min:{x:0,y:0},max:{x:0,y:0}};if(this.ovw){a=this.ovw.RC9P4()}if(a.min.x==0&&a.max.x==0){a={min:{x:this.width,y:this.height},max:{x:this.width,y:this.height}}}return a},HX6SR:function(k,f,b,n){if(typeof f!="boolean"){f=true}if(typeof b!="boolean"){b=true}if(typeof n!="boolean"){n=true}var j=k.oFt;var i=k.my_9I;var m=k.N$im;var g=k._lq8$;var e=0;var d=0;var l=0;var o=0;var p=this.width;var h=this.height;if(f||b){var c={min:{x:k.oFt,y:k.my_9I},max:{x:k.N$im,y:k._lq8$}};if(b&&typeof this.ga!="undefined"&&this.ga){var q=this.myp();if(n){if(va_(c,q)){l=q.max.x}else{if(c.min.x<=0&&c.min.y<=q.max.y){l=q.max.x}}}else{if(l<q.max.x){l=q.max.x}}}if(f&&this.ovw){var a=this.H3$7R();if(n){if(va_(c,a)){p=a.min.x}else{if(c.max.x>=a.max.x&&c.max.y>=a.min.y){p=a.min.x}}}else{if(p>a.min.x){p=a.min.x}}}}if(j<l){e=j-l}if(i<o){d=i-o}if(m>p){if(e==0){e=m-p}else{e=0}}if(g>h){if(d==0){d=g-h}else{d=0}}return{i60:e,dr0:d}},oR33b:function(d,a){if(typeof a!="object"||!a){a={PJ5:true,Iq1D0:true,V83a$:true}}var b=this.HX6SR(d,a.PJ5,a.Iq1D0,a.V83a$);var e=b.i60;var c=b.dr0;if(e!=0||c!=0){if(typeof d.v74!="number"){d.v74=0}if(typeof d.YF4!="number"){d.YF4=0}if(e!=0){e=(e<0?e-d.v74:e+d.v74)}if(c!=0){c=(c<0?c-d.YF4:c+d.YF4)}maplet.panTo(-e,-c)}return b},e025:function(h,f,o){var n=h.toString();var b=n.indexOf("MMarker")!=-1;var m=n.indexOf("MPolyline")!=-1;var e=n.indexOf("MEllipse")!=-1;var i=n.indexOf("MRoundRect")!=-1;var g=0,d=0,j=0,c=0;if(b&&h.icon){var a=h;g=a.pt.sU-a.icon.anchorX;d=a.pt.sV-a.icon.anchorY;j=g+parseInt(a.icon.ld.style.width);c=d+parseInt(a.icon.ld.style.height)}else{if(m){var l=h.g5gXu();g=l.x-16;d=l.y-16;j=g+32;c=d+32}else{if(e){g=h.gC.sU-16;d=h.gC.sV-16;j=g+32;c=d+32}else{if(i){var k=h.g5gXu();g=k.x-16;d=k.y-16;j=g+32;c=d+32}}}}return this.oR33b({oFt:g,my_9I:d,N$im:j,_lq8$:c,v74:f,YF4:o})},Ovt5Q:function(visible,left,top){with(this.Y60x){if(typeof left!="undefined"){fC.ld.style.left=left+"px"}if(typeof top!="undefined"){fC.ld.style.top=top+"px"}if(fC.ld.parentNode!=this.vb){this.vb.appendChild(fC.ld);fC.ld.style.zIndex=2}if(fC.ld.style.display!=(visible?"":"none")){fC.ld.style.display=(visible?"":"none")}if(uX){uX.k2qg3();uX=null}}},Hg2:function(){if(!this.Nbs37){this.Nbs37=document.createElement("div");this.Nbs37.id=px?"vCanvasVML":"vCanvasSVG";this.Nbs37.style.position="absolute";this.Nbs37.unselectable="on";this.Nbs37.style.zIndex=0;this.Nbs37.style.MozUserSelect="none";this.lA.appendChild(this.Nbs37);if(!px){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("id","LayerDrawSVG");b.setAttribute("version","1.1");b.setAttribute("overflow","visible");b.setAttribute("viewBox","-"+this.width+" -"+this.height+" "+this.width*3+" "+this.height*3);b.setAttribute("style","position: absolute; left: -"+this.width+"px; top: -"+this.height+"px; z-index: 0;");b.setAttribute("height",this.height*3+"px");b.setAttribute("width",this.width*3+"px");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("d","M 0 0 L 10 5 L 0 10 L 4 5 z");c.setAttribute("fill",this.brush.color);c.setAttribute("fill-opacity",this.brush.bgtransparency/100+0.3);var a=document.createElementNS("http://www.w3.org/2000/svg","marker");a.setAttribute("id","svgArrow");a.setAttribute("viewBox","0 0 10 10");a.setAttribute("refX","6");a.setAttribute("refY","5");a.setAttribute("markerUnits","strokeWidth");a.setAttribute("orient","auto");a.appendChild(c);b.appendChild(a);this.Nbs37.appendChild(b)}}return this.Nbs37},autoZoomLogo:function(){var n_1E=this.E2e;var F95h=n_1E.getAttribute("whohide");if(n_1E.clientWidth<=0&&F95h!="prog"){return}if(!n_1E.getAttribute("orig_width")){n_1E.setAttribute("orig_width",n_1E.clientWidth);n_1E.setAttribute("orig_height",n_1E.clientHeight);n_1E.setAttribute("size_changed","false")}if(n_1E.style.display!="none"||F95h=="prog"){if(this.width<LOGO_AUTOHIDE_MAPSIZE.width||this.height<LOGO_AUTOHIDE_MAPSIZE.height){n_1E.setAttribute("whohide","prog");this.showLogo(false);return}else{if(F95h=="prog"){n_1E.setAttribute("whohide","");this.showLogo(true)}}if(this.width<LOGO_AUTOZOOM_MAPSIZE.width&&this.height<LOGO_AUTOZOOM_MAPSIZE.height){with(this.o2L){if(style.display!="none"){style.display="none";setAttribute("whohide","prog")}}var j565r=Math.min((this.width/LOGO_AUTOZOOM_MAPSIZE.width),(this.height/LOGO_AUTOZOOM_MAPSIZE.height));var Af=parseInt(n_1E.getAttribute("orig_width"))*j565r;var nN=parseInt(n_1E.getAttribute("orig_height"))*j565r;n_1E.style.width=Af+"px";n_1E.style.height=nN+"px";n_1E.style.left=this.width-(this.ovw.nH()>30?this.ovw.nH()+5:this.P0GpQ.clientWidth+30)-Af+"px";n_1E.style.top=this.height-nN-5+"px";n_1E.setAttribute("size_changed","true")}else{if(n_1E.getAttribute("size_changed")=="true"){n_1E.style.width=parseInt(n_1E.getAttribute("orig_width"))+"px";n_1E.style.height=parseInt(n_1E.getAttribute("orig_height"))+"px";n_1E.setAttribute("size_changed","false");with(this.o2L){if(style.display=="none"&&getAttribute("whohide")=="prog"){style.display="";setAttribute("whohide","")}}}}}}};Maplet.prototype.toString=function(){return"com.mapbar.maplet.Maplet"};Maplet.prototype.addOverlay=function(a){if(typeof a=="object"){if(this.u5[a.id]){return}a.qc(this);this.u5[a.id]=a}};Maplet.prototype.getZoomLevel=function(){return this.AG};Maplet.prototype.clearOverlays=function(a){if(typeof a!="boolean"){a=false}this.hideBubble(this);for(var b in this.u5){if(this.u5[b]&&this.u5[b].remove){this.u5[b].remove(a);this.u5[b]=null;delete this.u5[b]}}};Maplet.prototype.removeOverlay=function(a,b){if(typeof b!="boolean"){b=false}if(typeof a=="object"){if(this.u5[a.id]){this.u5[a.id].remove(b);this.u5[a.id]=null;delete this.u5[a.id]}else{if(typeof a.remove=="function"){a.remove(b)}}}else{if(typeof a=="string"){if(this.u5[a]){this.u5[a].remove(b);this.u5[a]=null;delete this.u5[a]}}}};Maplet.prototype.clearCache=function(){cq.pu=null;cq.pu={}};Maplet.prototype.setAutoZoom=function(b,p,m,l){var c=[];if(this.setAutoZoom.arguments.length==0){for(var h in this.u5){if(this.u5[h]&&this.u5[h].remove){if(this.u5[h].toString()=="com.mapbar.maplet.MMarker"){if(this.u5[h].pt.pid!="IAJRSGZVVDJBAJ"){c.push(cq.vp(this.u5[h].pt.pid))}}else{if(this.u5[h].toString()=="com.mapbar.maplet.MPolyline"){var a=this.u5[h].pts;for(var n=0;n<a.length;n++){c.push(cq.vp(a[n].pid))}}}}}if(c.length==0){return false}else{b=90;p=180;m=-90;l=-180;for(var k=0;k<c.length;k++){b=Math.min(parseFloat(c[k][1]),b);p=Math.min(parseFloat(c[k][0]),p);m=Math.max(parseFloat(c[k][1]),m);l=Math.max(parseFloat(c[k][0]),l)}}}if(isNaN(parseFloat(b))){var q=cq.vp(b);var o=cq.vp(p);b=q[1];p=q[0];m=o[1];l=o[0]}var j=1.1*(m-b)*this.pZ/this.height;var g=1.1*(l-p)*this.pZ/this.width;var e=this.getFitZoomLevel(j,qP);var d=this.getFitZoomLevel(g,sj);var f=Math.min(e,d);cq.lf=(m+b)/2;cq.li=(l+p)/2;this.centerAndZoom(new MPoint(cq.zn()),f);return true};Maplet.prototype.setZoomLevel=function(AB,fb){this.fI(AB);AB=parseInt(AB);if(AB<te){AB=te}if(AB>sY){AB=sY}if(fb!=undefined&&!fb){return AB}if(this.markerDragAnimation){with(this.Y60x){if(uX!=null&&!uX.ls){this.Ovt5Q(false)}}}if(AB!=this.AG){if(apiType==1){MEvent.trigger(this,"zoom",AB)}else{MEvent.trigger(this,"zoom","&act=zoom&zm="+AB)}}if(this.AG!=AB&&AB>3){if(iToolTipStyle==0){hideToolTipMenu()}if(!px){}else{this.sG.ld.style.zoom=this.sF.ld.style.zoom;this.sG.ld.style.left=this.sF.ld.style.left;this.sG.ld.style.top=this.sF.ld.style.top;this.sG.ld.style.visibility="visible";for(var i in this.pU){if(this.pU[i]!=null&&typeof this.pU[i]=="object"){if(this.pU[i].parentNode!=null){this.pU[i].parentNode.removeChild(this.pU[i]);this.sG.ld.appendChild(this.pU[i])}}}}}else{this.no()}if(this.ga!=null){this.ga.zI(AB)}if(this.gc!=null){for(var n8 in this.gc){if(this.gc[n8].nR){this.gc[n8].nR.ga.ld.zI(AB)}}}if(this.ff){this.nI().setZoomLevel(AB)}if(this.L231&&avBubble.isVisible()&&avBubble.uX instanceof MMarker&&(AB!=this.AG)){avBubble.xX2F=true;this.CrE="infowindow";this.o$2p=avBubble.x8257;var C88=this.toScreenCoordinate(this.o$2p);this.xI1=C88[0];this.$465=C88[1]}else{avBubble.xX2F=false;if(AB!=this.AG){this.hideBubble()}}this.f0I4=this.AG;this.AG=AB;this.xg=sj[this.AG];this.xf=qP[this.AG];this.sR=sI[this.AG]+"/";if(this.o$2p!=""){var g4=this.xI1-this.width/2;var g5=this.$465-this.height/2;var C88=this.toScreenCoordinate(this.o$2p);var K26=C88[0]-g4;var $FK=C88[1]-g5;this.gA=this.zp(K26,$FK);this.gx=this.zo(K26,$FK);this.xI1=-1;this.$465=-1;this.o$2p="";this.CrE=""}this.gD=Math.floor((this.gA)/this.xg);this.gE=Math.floor((this.gx)/this.xf);if(this.gD<0){this.gD+=1}this.sU=this.width/2-Math.round(((this.gA*wp)%(this.xg*wp))*this.pZ/(this.xg*wp));if(this.gx>=0){this.sV=this.height/2-this.pN+Math.round(((this.gx*wp)%(this.xf*wp))*this.pN/(this.xf*wp))}else{this.sV=this.height/2+Math.round(((this.gx*wp)%(this.xf*wp))*this.pN/(this.xf*wp))}this.zN();this.refresh();this.f0I4=this.AG};Maplet.prototype.setCenter=function(d,a,f,e){var c=d;if(typeof d=="object"){c=d.pid}if(isNaN(parseFloat(c))||(typeof c=="string"&&c.indexOf(",")>0)){var b=cq.vp(c);d=b[1];a=b[0]}this.gx=Math.min(sy[1],Math.max(sy[0],parseFloat(d)));this.gA=Math.min(sz[1],Math.max(sz[0],parseFloat(a)%360));if(f==undefined||f){this.setZoomLevel(this.AG)}if(e==undefined||e){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(b,a){this.top=parseInt(a);this.left=parseInt(b);this.vb.style.top=parseInt(a)+"px";this.vb.style.left=parseInt(b)+"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.resize=function(b,d){b=parseInt(b);d=parseInt(d);if(b<0||d<0){return}if(b==this.width&&d==this.height){return}this.hideBubble();this.width=b;this.height=d;vZ(this);if(this.height>=300){if(document.getElementById("ctrlbg")){document.getElementById("ctrlbg").style.display="";document.getElementById("ctrlslider").style.display="";document.getElementById("ctrlzmout").style.top=(parseInt(document.getElementById("ctrlzmin").style.top)+174)+"px"}}else{if(document.getElementById("ctrlbg")){document.getElementById("ctrlbg").style.display="none";document.getElementById("ctrlslider").style.display="none";document.getElementById("ctrlzmout").style.top=(parseInt(document.getElementById("ctrlzmin").style.top)+20)+"px"}}this.z4=Math.ceil((this.width)/(this.pZ)/2);this.z5=Math.ceil((this.height)/(this.pN)/2);this.vb.style.width=b+"px";this.vb.style.height=d+"px";this.vb.style.clip="rect(0px,"+this.width+"px,"+this.height+"px, 0px)";this.sF.resize(b,d);this.sE.resize(b,d);this.vx.resize(b,d);if(this.ff){this.nI().resize(d);this.nI().moveTo(this.width-16,0)}if(this.fe){this.wq.moveTo(0,this.height-24)}this.onresize();var c=(navigator.appVersion.match(new RegExp("6.","i"))=="6.")?0:2;this.sO.resize(b-c,d-c);this.sM.resize(this.width,0);this.sJ.resize(this.width,0);this.sK.resize(0,this.height);this.sL.resize(0,this.height);this.sL.moveTo(this.width-1,0);this.sJ.moveTo(0,this.height-3+c);this.lA.resize(b,d);this.setZoomLevel(this.AG);for(var a in this.gc){if(this.gc[a]&&this.gc[a].onresize){this.gc[a].onresize(this)}}if(this.ovw.nH()<30){this.ovw.c3=false}this.ovw.onresize();if(LOGO_AUTOZOOM){this.autoZoomLogo()}};Maplet.prototype.zoomIn=function(){if(this.XpGS5){return}if(this.L231&&avBubble.isVisible()){this.setZoomLevel(this.AG+1)}else{this.zoomTo(Math.min(sY,this.AG+1))}};Maplet.prototype.zoomOut=function(){if(this.XpGS5){return}if(this.L231&&avBubble.isVisible()){this.setZoomLevel(this.AG-1)}else{this.zoomTo(Math.max(0,this.AG-1))}};Maplet.prototype.centerAndZoom=function(b,a){this.setCenter(b,"",false);hideBubble(this);if(typeof this.sF=="undefined"){this.AG=this.setZoomLevel(a,false);this.showMap()}else{this.setZoomLevel(a)}};Maplet.prototype.zoomTo=function(qB,fy,x,y){var nN=document.getElementById("bubble");if(this.L231&&this.L231.parentNode==this.sF.ld){this.hideBubble()}if(fy){this.fy=fy}if(px&&bzt){if(this.AZ!=null){clearTimeout(this.AZ)}this.AZ=null;this.Ai=1;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(nN&&nN.style.display!="none"){nN.style.display=avBubble.Gh9L()?"block":"none";nN.style.visibility=avBubble.Gh9L()?"visible":"hidden";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);this.Ai=0;if(this.fy){if(nN&&nN.style.display!="none"){nN.style.display=avBubble.Gh9L()?"block":"none";nN.style.visibility=avBubble.Gh9L()?"visible":"hidden";eval(this.fy)}}}}}}}else{this.setZoomLevel(qB)}};Maplet.prototype.panTo=function(a,d,b){if(this.fa){return}this.xoffset=parseFloat(a);this.yoffset=parseFloat(d);this.Aq=0;this.Aw=0;this.fy=b;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){if(!px){var c=document.getElementById("mybubble_Content");if(this.L231&&c){c.style.overflow="hidden"}}this.doPan()}};Maplet.prototype.toMapCoordinate=function(a,b){cq.li=this.zp(a,b);cq.lf=this.zo(a,b);return cq.zn()};Maplet.prototype.toScreenCoordinate=function(b){var d=[null,null];try{var a=cq.vp(b);d[0]=this.zl(a[0],a[1]);d[1]=this.zm(a[1],a[0])}catch(c){throw c}return d};Maplet.prototype.showLogo=function(a){if(a){this.E2e.style.display="block";if(this.P0GpQ.style.display!="none"){this.E2e.style.left=(parseInt(this.P0GpQ.style.left)-48)+"px"}else{this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}if(this.ovw){if(this.ovw.nH()>30){this.E2e.style.left=(this.width-this.ovw.nH()-48)+"px"}}if(LOGO_AUTOZOOM){this.autoZoomLogo()}}else{this.E2e.style.display="none"}};Maplet.prototype.showScale=function(d,b,c,a){this.fe=d;if(this.fe){if(typeof b=="undefined"||!b){b="mapbar"}this.x4=b;this.u8(c,a);this.wq.show()}else{if(this.wq!=null){this.wq.hide()}}};Maplet.prototype.showOverview=function(b,a){if(b){if(a){this.ovw.open();this.ovw.c3=true}else{this.ovw.close();this.ovw.c3=false}this.ovw.show()}else{this.ovw.close();this.ovw.c3=false;this.ovw.hide()}};Maplet.prototype.showControl=function(a){this.fj=a;if(this.fj){if(this.ga){this.ga.show()}}else{if(this.ga){this.ga.hide()}}};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.u0=function(){if(this.c0){return}if(this.fs){return}this.c0=true;this.fs=true;sb=0;if(this.tmx.length>0){if(((this.u2!=null&&this.u2=="traffic")||this.AG!=this.f0I4)||bpp[0]!=this.$9J07){for(var K=0;K<this.tmx.length;K++){this.tmx[K].onmousedown=null;_removeNode(this.tmx[K])}this.tmx=[]}this.$9J07=bpp[0]}this.sF.ld.style.zoom=1;var u="";for(var o in this.pU){if(this.pU[o]!=null){this.pU[o].c2=false}}var f=0;var n=this.yl;var Q=(this.u2=="undefined"||this.u2==null)?"poi":this.u2;var 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 O=new Array();var j=new Array();var A=parseInt(new Date().getTime()/60000);var P=(360/sj[this.AG]);var H=this.getZoomLevel()-1;if(this.AG==this.f0I4){this.sE.clean()}for(var N=-this.z4-1;N<=this.z4;N++){for(var L=-this.z5-1;L<=this.z5;L++){try{var M=parseInt(this.gD+N);var r=parseInt(this.gE+L);M=(M)%P;if(M>=(P/2)){M-=P}if(M<(-P/2)){M+=P}var J=parseInt(Math.floor((M)/k));var G=parseInt(Math.floor((r)/k));if(J<0){J+=1}if(G<0){G+=1}var af=(M)-J*k;var ae=(r)-G*k;var B=this.xL.replace("img","img"+this.y273(af,ae))+"mapbank/"+n+"/"+this.sR;var v=this.xL+"mapbank/"+Q+"/"+this.sR;var E=this.xL+"mapbank/base/"+this.sR;var E=this.strImgUrl+"mapbank/base/"+this.sR;if(this.AG>=14){B+=J+"/"}v+=J+"_"+G+"/";E+=J+"_"+G+"/";B+=J+"_"+G+"/";v+=af+"_"+ae+".png";E+=af+"_"+ae+".js";B+=af+"_"+ae+"."+this.xK;this.wyqid=this.AG+"_"+J+"_"+G+"_"+af+"_"+ae;var Z=(N*this.pZ)+parseInt(this.sU);var W=(-(L*this.pN)+parseInt(this.sV));var U=W;if(this.yl!="aerial"&&this.yl.indexOf("aerial")<0){W=W+w8[this.AG]}if(Z<-this.pZ*1.5||Z>this.width*1.5||W>this.height*1.5||W<-this.pN*1.5){continue}if(this.sZ<(Z+this.pZ)){this.sZ=(Z+this.pZ);this.s2=parseInt(this.gD)+parseInt(N)}if(this.s1<(W+this.pN)){this.s1=(W+this.pN);this.ti=parseInt(this.gE)+parseInt(L)}if(this.tf1>Z){this.tf1=Z;this.th=parseInt(this.gD)+parseInt(N)}if(this.tg>W){this.tg=W;this.s3=parseInt(this.gE)+parseInt(L)}var T=((this.AG).toString(16)+(this.gD+N).toString(16)+"l"+(this.gE+L).toString(16)).toLowerCase();if(f==0){f=1}if(B&&B.indexOf("NaN")<0){if(this.pU[T]==null){if(!rs||!px){this.pU[T]=new Image();this.pU[T].id=T;this.pU[T].name=T;this.pU[T].ntry="0";this.pU[T].wyq=this.wyqid;this.pU[T].unselectable="on";this.pU[T].style.position="absolute";this.pU[T].style.MozUserSelect="none"}else{this.pU[T]=document.createElement("v:Image");this.pU[T].id=T;this.pU[T].name=T;this.pU[T].ntry="0";this.pU[T].unselectable="on";this.pU[T].wyq=this.wyqid;this.pU[T].style.position="absolute";this.pU[T].cE="f";this.pU[T].style.rotation=this.rotation;this.pU[T].style.width=this.pZ;this.pU[T].style.height=this.pN}f1.nk(this.pU[T],B,this.pZ,this.pN)}else{if(px&&rs){this.pU[T].style.rotation=this.rotation}}var X=(Z+this.pZ/2-this.width/2)*this.gk-(W+this.pN/2-this.height/2)*this.wT+this.width/2;var S=(Z+this.pZ/2-this.width/2)*this.wT+(W+this.pN/2-this.height/2)*this.gk+this.height/2;this.pU[T].style.top=parseInt(S-this.pN/2)+"px";this.pU[T].style.left=parseInt(X-this.pZ/2)+"px";this.pU[T].c2=true}if(this.u2!=null&&this.u2=="traffic"){if(!__mapbar_magic_id){__mapbar_magic_id=""}var t=bpp[0]+__mapbar_magic_id+"/"+H+"/o"+T+".png";if(_Qf37){var d=document.createElement("v:image");d.setAttribute("unselectable","on");d.id="o"+T;d.setAttribute("name",T);d.setAttribute("traffic","yes");d.style.cssText="position:absolute;top:"+U+"px;left:"+Z+"px;width:300px;height:300px";d.src=t;this.tmx.push(d)}else{var e=document.createElement("IMG");e.id="o"+T;e.setAttribute("name",T);e.src=t;e.ntry="0";e.unselectable="on";e.onerror=function(){imageTileError(this)};e.onload=function(){imageTileOk(this)};e.onmousedown=function(){return false};e.style.cssText="position:absolute;top:"+U+"px;left:"+Z+"px;-moz-user-select: none;";e.setAttribute("traffic","yes");this.tmx.push(e)}O[O.length]="o"+T;j[j.length]=J+"_"+G+"/"}else{if(this.u2!=null&&this.u2!="undefined"&&v&&v.indexOf("NaN")<0){if(this.pU[T]){var C="o"+this.pU[T].wyq;var b=J+"_"+G+"/";if(bpp[0]!=xl+"mapbank/base/"||(typeof basepoilist=="object"&&basepoilist[C])){var D=aa(C);if(!D){D=document.createElement("DIV");D.setAttribute("unselectable","on");D.id=C;D.setAttribute("name",T);D.style.cssText="position:absolute;width:0px;height:0px;";this.tmx.push(D)}D.style.left=Z+"px";D.style.top=U+"px";O[O.length]=C;j[j.length]=b}}}}B=null;v=null}catch(ab){throw (ab)}}}for(var m in this.pU){try{if(this.pU[m]!=null&&typeof this.pU[m]=="object"){if((typeof this.pU[m].c2=="boolean"&&this.pU[m].c2)||this.pU[m].c2=="true"){if(this.pU[m].parentNode!=this.sE.ld){if(this.pU[m].parentNode!=null){this.pU[m].parentNode.removeChild(this.pU[m])}this.sE.ld.appendChild(this.pU[m])}}}}catch(ab){throw (ab)}}if(!(this.u2!=null&&this.u2=="traffic")&&this.tmx.length>0){var F=O.join(",");for(var h=this.tmx.length-1;h>=0;h--){if(F.indexOf(this.tmx[h].id)==-1){if(this.tmx[h].parentNode){_removeNode(this.tmx[h])}this.tmx.splice(h,1)}}for(var h=O.length-1;h>=0;h--){if(aa(O[h])){O.splice(h,1)}}}if(this.tmx.length>0){for(var I=0;I<this.tmx.length;I++){this.lA.ld.appendChild(this.tmx[I])}}u=null;if(this.sE.ld.parentNode!=this.sF.ld){this.sF.ld.appendChild(this.sE.ld)}if(this.vx.ld.parentNode!=this.sF.ld){this.sF.ld.appendChild(this.vx.ld)}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 ag=0;ag<this.aN.length;ag++){this.aN[ag].paint()}}if(this.zy!=null){this.zy.paint();if(this.tG!=null){this.tG.paint()}}if(this.aO.length>0){for(ag=0;ag<this.aO.length;ag++){this.aO[ag].u9(this.vx.ld);this.aO[ag].paint(this.lA.ld)}}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.ld.parentNode!=this.sF.ld){this.sF.ld.appendChild(this.lA.ld)}if(this.aE.length>0){this.aG=null;this.aH=null;this.aF=null;for(ag=0;ag<this.aE.length;ag++){if(this.AG>=this.aE[ag].AJ&&this.AG<=this.aE[ag].AI){var z=this.zl(this.aE[ag].li,this.aE[ag].lf);var w=this.zm(this.aE[ag].lf,this.aE[ag].li);if(z>=0&&z<=this.width&&w>=0&&w<=this.height){if(this.aG==null){this.aG=new Array();this.aH=new Array();this.aF=new Array()}this.aG[this.aG.length]=z;this.aH[this.aH.length]=w;this.aF[this.aF.length]=ag}}}}if(!this.cH){this.cH=true}if(this.u2!=null&&this.u2!="undefined"){if(this.u2=="base"){if(this.AG>=2&&this.AG<=13){if(!this.KOv){this.KOv=true}var R=0;for(var l in O){try{if(typeof O[l]=="string"&&typeof basepoilist=="object"){if(bpp[0]!=xl+"mapbank/base/"||basepoilist[O[l]]){new Tl9RR(ADURL+O[l],parseInt,false,true).B18()}R++}else{if(document.getElementById(O[l])&&document.getElementById(O[l]).parentNode){_removeNode(aa(O[l]))}}}catch(Y){throw (Y)}O[l]=null;j[l]=null}}else{for(var g in O){try{if(typeof O[g]=="string"&&document.getElementById(O[g])&&document.getElementById(O[g]).parentNode){_removeNode(aa(O[g]))}}catch(ab){throw (ab)}O[g]=null;j[g]=null}}}O.length=0;O=null;j.length=0;j=null}this.c0=false;this.fs=false;for(var R=0;R<2;R++){for(var a in this.u5){if(this.u5[a]&&this.u5[a].paint){if(R==0&&this.u5[a] instanceof MMarker&&!this.u5[a].ls){this.u5[a].paint()}else{if(R==1&&this.u5[a]._wm){this.u5[a].paint()}}}}}avBubble.i73();if(this.ovw){this.ovw.paint()}cq.lf=this.gx;cq.li=this.gA;var c=cq.zn();this.yu=c+"@"+this.AG;this.fL();if(ALLOW_MV){try{var V="@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:"")+V}catch(ab){throw (ab)}}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.F7sk=function(){var b=[];for(var a in this.u5){if(this.u5[a] instanceof MEllipse){b.push(this.u5[a])}}return b};Maplet.prototype.F8u=function(){var b=[];for(var a in this.u5){if(this.u5[a] instanceof MRoundRect){b.push(this.u5[a])}}return b};Maplet.prototype.getMarkers=function(){var b=[];for(var a in this.u5){if(this.u5[a] instanceof MMarker){b.push(this.u5[a])}}return b};Maplet.prototype.getPolylines=function(c){if(typeof c!="number"){c=1}var b=[];for(var a in this.u5){if(this.u5[a] instanceof MPolyline){if(c==2&&!this.u5[a].C6$()){continue}else{if(c==3&&this.u5[a].C6$()){continue}}b.push(this.u5[a])}}return b};Maplet.prototype.equalsLLCoords=function(f,e,b){if(typeof f=="string"&&f&&typeof e=="string"&&e){try{if(f==e){return true}if(typeof b!="number"){b=0}var c=maplet.toScreenCoordinate(f);var a=maplet.toScreenCoordinate(e);if((c[0]==a[0]||Math.abs(c[0]-a[0])<=b)&&(c[1]==a[1]||Math.abs(c[1]-a[1])<=b)){return true}}catch(d){}}return false};Maplet.prototype.measDistance=function(g){try{var d=0;var f=g.length;var e=[],c=0,a=0;for(var b=1;b<f;b++){e.push(cq.vp(g[b-1].pid));e.push(cq.vp(g[b].pid));c=e[1][1]-e[0][1];a=e[1][0]-e[0][0];d+=Math.sqrt(c*c+a*a*0.64);e.length=0}return parseInt(d*this.gM*111111)}catch(h){return 0}};Maplet.prototype.measArea=function(m){try{var c=0;var e=m.length;var l=2;var h=0;for(var g=1;g<=e;g++){var b=(l%e);var d=(h%e);var a=parseFloat(cq.vp(m[(g%e)].pid)[0]);var j=parseFloat(cq.vp(m[b].pid)[1]);var k=parseFloat(cq.vp(m[d].pid)[1]);c+=a*(j-k);l++;h++}return parseInt(Math.abs(c/2)*this.gM*this.gM*100000*100000)}catch(f){return 0}};var I_5={wB:function(a){this.fo=(a)?true:false},addLabel:function(c,e,a,f,g,b,d){if(!g){g=""}this.yG[this.yG.length]=new a8("label"+this.sv,c,c,parseFloat(e),parseFloat(a),f,g,b,d);this.sv++},addPoint:function(d,f,a,g,c,b,e){if(!c){c=""}this.aO[this.aO.length]=new a8("point"+this.sv,d,d,parseFloat(f),parseFloat(a),g,c,b,e);this.sv++},updatePointAt:function(e,d,c,b,a){if(e>=0&&this.aO.length>e){if(!c){c=""}this.aO[e].zM(d,c);if(typeof b!="undefined"){if(typeof a=="undefined"){a=b}this.aO[e].setIcon(b,a)}}},updateLineAt:function(d,c,b,a){if(d>=0&&this.aN.length>d){this.po=d;if(c!="undefined"&&c!=null){this.aN[d].cK=(a=="false"||a=="0")?false:true;this.aN[d].xP=c}if(b!="undefined"&&b!=null){this.aN[d].xu=b}if(this.aN[d].cK){this.aN[d].zM(c,b)}}},showTipOf:function(b,a,c){if(c==null||c==false||c=="undefined"||c=="false"){if(b>=0&&this.aO.length>b){if(this.aO[b].pO){this.aO[b].pO.onmouseover();this.aO[b].pO.wR(a)}}}else{if(b>=0&&this.aN.length>b){this.aN[b].wN()}}}};function a8(id,xI,xJ,lf,li,xP,xu,cK,vD){this.lf=lf;this.li=li;this.setIcon=function(xI,xJ){if(xI!="undefined"&&xI!=""){this.xI=xI;this.pO.src=xI;this.pO.up=xI}if(xJ!="undefined"&&xJ!=""){this.xJ=xJ;this.pO.n1=xJ}};this.zM=function(title,content){this.xP=title;this.xu=content;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 f2=this.n2.parentNode;if(f2!=null){f2.removeChild(this.n2)}var left=parseInt(this.n2.style.left);var top=parseInt(this.n2.style.top);this.n2=gu(this.xP,this.color);this.n2.style.left=left+"px";this.n2.style.top=top+"px";if(f2!=null){f2.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 maplet=document["mapbar-maplet"];if(maplet.sS==ts.tb||maplet.sS==ts.ta||maplet.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 x=parseInt(this.style.left)+parseInt(this.width)/2;var y=parseInt(this.style.top)+parseInt(this.height)/2;setToolTipMenu(x,y,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 maplet=document["mapbar-maplet"];if(maplet.sS==ts.tb||maplet.sS==ts.ta||maplet.sS==ts.tw||maplet.sS==ts.ly||maplet.sS==ts.lz||maplet.sS==ts.np){return}if(maplet.sS==ts.l3){var pn=maplet.p8(maplet.aO,this.id);maplet.removePointAt(pn);maplet.refresh();if(callback){callback("&act=del&pid="+pn)}return}if(this.lI==0&&this.lK==0){this.wR()}};this.pO.onmousemove=function(lM){if(document["mapbar-maplet"].sS==ts.tu&&this.cm){var Ap=parseInt((px)?event.clientX:lM.clientX);var Av=parseInt((px)?event.clientY:lM.clientY);this.lK+=(Av-this.As);this.lI+=(Ap-this.x0);this.style.top=(parseInt(this.style.top)+(Av-this.As))+"px";this.style.left=(parseInt(this.style.left)+(Ap-this.x0))+"px";this.x0=Ap;this.As=Av}};this.pO.onmousedown=function(lM){var Ap=parseInt((px)?event.clientX:lM.clientX);var Av=parseInt((px)?event.clientY:lM.clientY);this.cm=true;this.x0=Ap;this.As=Av;this.lI=0;this.lK=0};this.pO.onmouseup=function(lM){if(document["mapbar-maplet"].sS==ts.tu){this.uI(lM)}};this.pO.uI=function(lM){if(this.cm&&(this.lI!=0||this.lK!=0)){this.cm=false;var maplet=document["mapbar-maplet"];var pt=maplet.getElementById(maplet.aO,this.id);if(pt!=null){pt.lf+=(maplet.zo(this.lI+maplet.width/2,this.lK+maplet.height/2)-maplet.gx);pt.li+=(maplet.zp(this.lI+maplet.width/2,this.lK+maplet.height/2)-maplet.gA);cq.lf=pt.lf;cq.li=pt.li;var fQ=cq.zn();var pn=maplet.p8(maplet.aO,this.id);maplet.refresh();if(callback){callback("&act=move&pid="+pn+"&latlon="+fQ)}}this.lI=0;this.lK=0}else{this.cm=false}};this.pO.wR=function(ct){var x=parseInt(this.style.left)+parseInt(this.width)/2;var y=parseInt(this.style.top)+parseInt(this.height)/2;var maplet=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(ct.toString()=="true"||((x>avBubble.xoffset)&&(x<(maplet.width-avBubble.width))&&(y>avBubble.height)&&(y<(maplet.height)))){maplet.L231=gp(pe[this.id],x,y,pa[this.id]);maplet.sF.ld.appendChild(maplet.L231)}else{maplet.L231=gp(pe[this.id],maplet.width/2+2,avBubble.height+10,pa[this.id]);var vj=maplet.width/2-x;var vk=avBubble.height+10-y;maplet.panTo(vj,vk)}}else{if(iToolTipStyle==2){var pn=maplet.p8(maplet.aO,this.id);if(callback){callback("&act=click&pid="+pn)}}}}}this.lx=function(g){var maplet=document["mapbar-maplet"];var width=(this.pO!=null)?parseInt(this.pO.width):16;var height=(this.pO!=null)?parseInt(this.pO.height):16;var left=maplet.zl(this.li,this.lf)-width/2;var top=maplet.zm(this.lf,this.li)-height;if(this.xP&&this.cK){g.setColor(this.color);g.lC(this.xP,maplet.zl(this.li,this.lf)+width/2,maplet.zm(this.lf,this.li)-12)}if(this.xI){g.lB(this.xI,left,top,width,height)}};this.paint=function(f2){if(this.xI){var maplet=document["mapbar-maplet"];var width=(this.pO!=null)?parseInt(this.pO.width):16;var height=(this.pO!=null)?parseInt(this.pO.height):16;var left=maplet.zl(this.li,this.lf)-width/2;var 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"];var width=(this.pO!=null)?parseInt(this.pO.width):16;var height=(this.pO!=null)?parseInt(this.pO.height):16;var left=maplet.zl(this.li,this.lf)-width/2;var 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(li){return this.pu[li]||function(pu,xT){var pk=-1;var fE=0;var ub="";var fH="";if(xT!=null&&parseInt(xT.charAt(0),36)>=33){fH=xT.charAt(0);xT=xT.substring(1)}for(var i=0;i<(xT.length-(c75?1:0));i++){var n8=parseInt(xT.charAt(i),36)-10;if(n8>=17){n8=n8-7}ub+=(n8).toString(36);if(n8>fE){pk=i;fE=n8}}var n9=parseInt(ub.substring(0,pk),16);var n0=parseInt(ub.substring(pk+1),16);if("X"==fH){n9=-n9}if("Y"==fH){n0=-n0}var v6=new Array();v6[0]=(n9+n0-parseInt(strLicenseKey))/2;v6[1]=(n0-v6[0])/100000;v6[0]/=100000;if(v6[0]>180){v6[0]-=360}pu[xT]=v6;return v6}(this.pu,li)};this.zn=function(li,lf){if(typeof li!="undefined"&&typeof lf!="undefined"){this.lf=parseFloat(lf);this.li=parseFloat(li)}var v6="";var uh=parseInt(parseFloat(Math.max(-90,Math.min(90,this.lf)))*100000);var uj=parseInt(parseFloat((this.li<0)?(this.li+360):this.li)*100000);var pl=uj-uh+parseInt(strLicenseKey);var pm=uj+uh;if(pl<0){v6="X";pl=-pl}if(pm<0){v6="Y";pm=-pm}var ph=(pl).toString(16);var pi=(pm).toString(16);for(var i=0;i<ph.length;i++){var qv=parseInt(ph.charAt(i),16);v6+=(((qv>=10)?(qv+7):qv)+10).toString(36)}v6+="z";for(var qC=0;qC<pi.length;qC++){var m02tV=parseInt(pi.charAt(qC),16);v6+=(((m02tV>=10)?(m02tV+7):m02tV)+10).toString(36)}if(c75){v6+=v6.charAt(c75)}return v6.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(xT){var aU=xT.split(",");var qI=0;for(var i=0;i<aU.length;i++){if(aU[i]!=null&&aU[i].length>0){var pt=cq.vp(aU[i]);this.aM[qI]=parseFloat(pt[0]);this.aK[qI]=parseFloat(pt[1]);qI++}}};this.zn=function(){var xU=(this.cr.toString()=="true"||this.cr=="true")?"2":"0";var xT=this.stroke+","+xU+","+this.color+":";for(var i=0;i<this.aK.length;i++){cq.lf=parseFloat(this.aK[i]);cq.li=parseFloat(this.aM[i]);xT+=cq.zn()+","}return xT};this.zM=function(title,content){this.xP=title;this.xu=content;if(this.cK){if(typeof this.n2!="undefined"){var f2=this.n2.parentNode;if(f2!=null){f2.removeChild(this.n2)}var left=parseInt(this.n2.style.left);var top=parseInt(this.n2.style.top);this.n2=gu(this.xP,this.color);this.n2.style.left=left+"px";this.n2.style.top=top+"px";if(f2!=null){f2.appendChild(this.n2)}}else{this.n2=gu(this.xP,this.color)}}};this.lx=function(g){var aP=new Array();var aR=new Array();var pg=0;var 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.zI();if(this.xP&&this.cK&&this.aK.length>=2){var Ao=0;var 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(lM){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);var Ap;var Av;if(pn>=0){if(this.maplet.sS==ts.l3){var gF=this.maplet.aN[pn];var fc=true;var 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;var qL=0;var gH=0;var 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;var 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.zI=function(){var aP=new Array();var aR=new Array();var pg=0;var us=10;if(this.aK==null||this.aK.length<2){return}var cY=false;var tn=this.maplet.width;var 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();var 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;var 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(c){if(typeof sqzd!="undefined"&&sqzd.mark!=""){maplet.removeOverlay(sqzd.mark)}if(maplet.snapshotBox.Qh0M9){maplet.snapshotBox.Qh0M9=false;return}if(this.xc){this.xc.hide()}var b=(px)?event.srcElement.id:c.target.id;var l=(px)?event.srcElement:c.target;var j=parseInt((px)?event.clientX:c.clientX)-this.offsetX;var h=parseInt((px)?event.clientY:c.clientY)-this.offsetY;this.l6=b;this.fS=j-this.left;this.fT=h-this.top;if(this.l6!=null&&this.l6.indexOf("ctrl")>=0){return false}if(px){this.JE03=false}else{if(this.l6.indexOf("MPolyline")<0&&this.l6.indexOf("Ellipse")<0&&this.l6.indexOf("RRect")<0){this.JE03=false}}if(this.ff&&this.nI().qn(this.fS,this.fT)){this.AP.tC(this.fS,this.fT);return}if(this.aY()){var o=this.zp(this.fS,this.fT);var d=this.zo(this.fS,this.fT);if(apiType==1){MEvent.trigger(this,"click",c,new MPoint(cq.zn(o,d)))}else{MEvent.trigger(this,"click",c,cq.zn(o,d))}var m=false;if((this.sS==7)){this.addOrigin(d,o)}else{if((this.sS==8)){this.addDestination(d,o)}else{if((this.sS==6)){cq.lf=d;cq.li=o;var p=cq.zn();nX();if(apiType==1){MEvent.trigger(this,"bookmark",{action:"add",point:new MPoint(p),zoom:this.AG})}else{MEvent.trigger(this,"bookmark","&act=add&latlon="+p+"&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"||l.parentNode.id=="LayerMap"||l.id.indexOf("OverlayBg")>=0){if(this.XpGS5){return}if(this.L231!=null){hideBubble(maplet)}if(iToolTipStyle==0){hideToolTipMenu()}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 f=(en)?"Double click to finish":tX("%u8BFC%uDFC3%uA5C7%uD0CE%uE632");document.getElementById("pjlxl").innerHTML=f;if(this.l6!=null&&this.l6.indexOf("ctrl")>=0){return false}if(!this.zy){var k=this.sS==ts.ly||this.sS==ts.ta;var n=new MBrush(this.brush.color,this.brush.stroke,this.brush.style,k,this.brush.bgcolor,this.brush.transparency,this.brush.bgtransparency,this.brush.arrow);var g=new MPoint(cq.zn(o,d));this.zy=new MPolyline([g],n,null,null);this.zy.qc(this);this.sv++;this.tG=new MPolyline([g,g],n,null,null);this.tG.qc(this);this.sv++}else{var e=new MPoint(cq.zn(o,d));this.zy.pts.push(e);this.zy.zI();this.tG.pts[0]=this.tG.pts[1];this.tG.pts[1]=e;this.tG.zI()}m=true}}}}}if(b=="LayerDrawMap"&&!m){if(this.aG!=null&&this.aH!=null){for(var a=0;a<this.aG.length;a++){if(Math.abs(this.aG[a]-this.fS)<8&&Math.abs(this.aH[a]-this.fT)<8){var i="";if(apiType==1){i=this.aE[this.aF[a]].xP}else{i="&hotspot="+this.aE[this.aF[a]].xP}this.vi=0;MEvent.trigger(this,"hotspot",i);if(hs){this.setCenter(this.aE[this.aF[a]].lf,this.aE[this.aF[a]].li);this.setZoomLevel(8)}break}}}}}};Maplet.prototype.a1=function(lM){var l6=(px)?event.srcElement.id:lM.target.id;var 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()){this.Mu408("default",this.map);if(this.sS==ts.tb||this.sS==ts.ta){var g0=0;var 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.ld){this.zy.remove(true)}}if(this.tG&&this.tG.zX.parentNode==this.lA.ld){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 c5I4_=this.zy.pts.length;if(!px){c5I4_=c5I4_-1}this.zy.pts.length=c5I4_;if(this.zy.zX.parentNode==this.lA.ld){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.ld){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!=null&&this.l6!=""){if(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_"||document.getElementById(this.l6).getAttribute("traffic")=="yes"||this.l6.substring(0,"mybubble_Shadow".length)=="mybubble_Shadow"){if(px){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)}}}else{this.xoffset=this.width/2-this.fS;this.yoffset=-this.fT+this.height/2;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.setCenter(this.ve,this.vf);if(this.getZoomLevel()<sY){this.setZoomLevel(this.getZoomLevel()+1)}}}}}}}}};Maplet.prototype.a2=function(lM){if(this.sS!=ts.ty){this.hideBubble()}if(this.markerDragAnimation){this.Ovt5Q(false)}MEvent.trigger(this,"mousedown",lM);var Ap=parseInt((px)?event.clientX:lM.clientX)-this.offsetX;var 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.lq=Ap-this.left;this.lr=Av-this.top;if(this.l6!=null&&this.l6.indexOf("ctrl")>=0&&this.ga!=null){this.ga.onmousedown(lM);return}this.tQ="";if(this.ff&&this.nI().qn(this.lq,this.lr)){this.AP.tE(this.lq,this.lr);return false}else{var jJx7=this.u5[this.l6];this.cL=(typeof this.l6=="string"&&this.l6)&&(this.l6=="LayerMask"||this.l6=="LayerDrawMap"||this.l6=="LayerDrawSVG"||this.l6.substring(0,"mk_shadow_".length)=="mk_shadow_"||aa(this.l6).getAttribute("traffic")=="yes"||this.l6.indexOf("iw_shadow")!=-1||this.l6.indexOf("mybubble_Shadow_")!=-1||this.l6.indexOf("mybubble_Bar_")!=-1||this.l6=="mybubble"||(typeof jJx7!="undefined"&&jJx7&&typeof jJx7.w7Y!="undefined"&&jJx7.w7Y));if(this.aY()&&this.cS){if(this.sS==ts.l2lg){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.Mu408("move",event.srcElement)}else{eval(document.body.scrollTop);this.Mu408("move",this.map)}}}}};Maplet.prototype.a5=function(b){var a=EonW(this.map);var d=0;var c=0;if(document.body&&(parseInt(document.documentElement.scrollTop)!=0||parseInt(document.documentElement.scrollLeft)!=0)){d=document.documentElement.scrollTop;c=document.documentElement.scrollLeft}else{d=document.body.scrollTop;c=document.body.scrollLeft}this.offsetX=a[0]-parseInt(c)-this.left;this.offsetY=a[1]-parseInt(d)-this.top};Maplet.prototype.a4=function(c){MEvent.trigger(this,"mouseout",c);this.l6=(px)?event.srcElement.id:c.target.id;if(!px||(px&&event.clientX!=-1)){var b=parseInt((px)?event.clientX:c.clientX)-this.offsetX;var a=parseInt((px)?event.clientY:c.clientY)-this.offsetY;this.tR=b-this.left;this.tS=a-this.top;this.q3p7=this.tR-this.lq;this.VV4=this.tS-this.lr}this.cI=false;if((px&&event.clientX==-1)||!this.aY()){if(this.ga!=null){this.ga.onmouseout(c)}this.a6((px)?event:c)}if(px){document.onmousewheel=new Function("return true")}};Maplet.prototype.a3=function(b){if(this.cL&&this.xc){this.xc.hide()}this.cI=true;if(!this.cL){this.a5(b)}this.l6=(px)?event.srcElement.id:b.target.id;var j=parseInt((px)?event.clientX:b.clientX)-this.offsetX;var h=parseInt((px)?event.clientY:b.clientY)-this.offsetY;this.tR=(j)-this.left;this.tS=(h)-this.top;if(this.ga!=null){if(this.ga.onmousemove(b)){return}}if(this.gc!=null){for(var i in this.gc){if(this.gc[i].toString().indexOf("MStandardControl")>0&&this.gc[i].nR&&this.gc[i].nR.onmousemove(b)){return}}}if(this.sS==ts.tb||this.sS==ts.ta||this.sS==ts.lz||this.sS==ts.ly){var e=(en)?"Click to start":"\u8bf7\u5355\u51fb\u5f00\u59cb";showMouseTipBox(this.tR,this.tS,e,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{nX()}}if(this.ff&&this.nI().tF(this.l6,this.tR,this.tS)){return}if(this.sS==ts.ty){var k=false;if(this.aG!=null&&this.aH!=null){for(var a=0;a<this.aG.length;a++){if(Math.abs(this.aG[a]-this.tR)<8&&Math.abs(this.aH[a]-this.tS)<8){k=true;break}}}if(k){this.Mu408("pointer",this.map)}else{if(!this.cL){this.Mu408("default",this.map)}}}if(this.cO&&this.cL){if(avBubble.iKT29){avBubble.iKT29=false}if(this.XpGS5){return}if(px){if(!document.getElementById("_map_marker_speeder")){var g=document.createElement("DIV");g.id="_map_marker_speeder";document.body.appendChild(g)}document.getElementById("_map_marker_speeder").innerHTML=""}else{var d=document.getElementById("mybubble_Content");if(d&&this.L231){d.style.overflow="hidden"}}if(iToolTipStyle==0){hideToolTipMenu()}if(iToolTipStyle==0){hideToolTipMenu()}this.q3p7=this.tR-this.lq;this.VV4=this.tS-this.lr;this.sF.moveTo(this.q3p7,this.VV4);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 c=this.zp(this.tR,this.tS);var f=this.zo(this.tR,this.tS);if(this.zy!=null){this.tG.pts[1]=new MPoint(cq.zn(c,f));this.tG.zI()}}else{if(this.l6=="LayerDrawMap"&&iToolTipStyle==0){hideToolTipMenu()}}}}};Maplet.prototype.a6=function(c,o,p,n){var r=0;var q=0;var l=0;var m=0;MEvent.trigger(this,"mouseup",c);this.l6=(px)?event.srcElement.id:c.target.id;this.zQ=this.tR;this.zR=this.tS;if(!px){var j=document.getElementById("mybubble_Content");if(this.L231&&j){j.style.overflow="auto"}}this.cL=false;if(this.l6.indexOf("MPolyline")!=-1){this.cn=false}if(this.ga!=null){this.ga.onmouseup(c)}if(this.l6!=null&&this.l6.indexOf("ctrl")>=0){this.sD.hide();return false}if(this.sS==ts.ty||this.sS==ts.tu||this.sS==ts.l3){this.Mu408("default",this.map);if(px&&(this.l6.indexOf("MPolyline")==this.l6.length-9)){this.Mu408("default",event.srcElement)}}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){r=-(this.zQ-this.lq);q=(this.zR-this.lr);l=this.zp(r+this.width/2,-q+this.height/2);m=this.zo(r+this.width/2,-q+this.height/2);this.gA=l;this.gx=m}var k=this.u5[this.l6];if(typeof k!="undefined"&&k&&typeof k.w7Y!="undefined"&&k.w7Y){this.JE03=true}this.csJ3=true;this.h04V=new Date().getTime();maplet.setZoomLevel(maplet.AG);this.csJ3=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))}}else{var f=1;var h=Math.max(1,Math.abs(this.zQ-this.lq));if(this.sS==1){r=(this.zQ+this.lq)/2;q=(this.zR+this.lr)/2;l=this.zp(r,q);m=this.zo(r,q);this.gA=l;this.gx=m;if(h<this.pZ){f=Math.min(sY-this.AG,Math.max(1,parseInt(Math.log(this.pZ/h)/Math.log(2))))}this.setZoomLevel(this.AG+f);if(apiType==1){MEvent.trigger(this,"zoomin",this.AG)}else{MEvent.trigger(this,"zoomin","&act=zoomin&zm="+this.AG)}}else{if(this.sS==2){r=(this.zQ+this.lq)/2;q=(this.zR+this.lr)/2;l=this.zp(r,q);m=this.zo(r,q);this.gA=l;this.gx=m;if(h<this.pZ){f=Math.min(this.AG,Math.max(1,parseInt(Math.log(this.pZ/h)/Math.log(2))))}this.setZoomLevel(this.AG-f);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 u=this.gA+(Math.max(this.zQ,this.lq)-this.width/2)*this.xg/this.pZ;var b=this.gx-(Math.min(this.zR,this.lr)-this.height/2)*this.xf/this.pN;cq.li=u;cq.lf=b;var a=cq.zn();var e=this.gA+(Math.min(this.zQ,this.lq)-this.width/2)*this.xg/this.pZ;var i=this.gx-(Math.max(this.zR,this.lr)-this.height/2)*this.xf/this.pN;cq.li=e;cq.lf=i;var g=cq.zn();cq.li=e;cq.lf=b;var d=cq.zn();cq.li=u;cq.lf=i;var s=cq.zn();var t="&act=lookup&max="+a+"&min="+g+"&mmx="+d+"&mxm="+s;if(this.vA!="undefined"){this.setMode(this.vA)}this.cQ=true;if(apiType==1){MEvent.trigger(this,"lookup",{action:"lookup",max:new MPoint(a),min:new MPoint(g),mmx:new MPoint(d),mxm:new MPoint(s)})}else{MEvent.trigger(this,"lookup",t)}}else{if(this.sS==ts.l2lg){this.snapshotBox.VL4p()}}}}this.sD.hide();this.sD.resize(1,1);this.sD.moveTo(-10,-10)}}};Maplet.prototype.a7=function(){if(this.XpGS5){return}document.onmousewheel=new Function("return false");var e=window.event;var d=Maplet.prototype.a7.arguments;if(!px&&typeof d!="undefined"&&d.length>0){e=d[0];e.wheelDelta=-e.detail;e.srcElement=e.target}if(e){if(this.getZoomLevel()==te&&e.wheelDelta<0){return}if(this.getZoomLevel()==sY&&e.wheelDelta>0){return}if(this.tL){return}}if(typeof this.tK=="undefined"){this.tK=0}if(typeof this.Ai=="undefined"||(e&&this.Ai)){this.Ai=0}if(e!=null&&!this.Ai){var c=e.srcElement.id;var g=this.u5[c];if((typeof c=="string"&&c)&&((typeof g!="undefined"&&g&&typeof g.w7Y!="undefined"&&g.w7Y)||c=="LayerDrawSVG"||c=="LayerMask"||c=="LayerDrawMap"||c.substring(0,"mk_shadow_".length)=="mk_shadow_"||aa(c).getAttribute("traffic")=="yes"||c.substring(0,"mybubble_Shadow".length)=="mybubble_Shadow"||c==this.p39V.f2.id)){if(!(avBubble.uX instanceof MMarker)){maplet.hideBubble()}if(!(this.L231)||!(avBubble.isVisible())){this.CrE="wheel";this.xI1=this.tR;this.$465=this.tS;this.o$2p=this.toMapCoordinate(this.xI1,this.$465)}this.tK+=e.wheelDelta>0?1:-1;if(!this.L231||!avBubble.isVisible()){this.qep(e.wheelDelta)}if(bzt&&(!(this.L231)||!(avBubble.isVisible())||!(avBubble.uX instanceof MMarker))&&px){var b=0;var a=0;if(this.tK<0){var f=Math.pow(2,parseFloat(this.AG+this.tK))/Math.pow(2,this.AG);b=this.xI1*f-(this.width/2-this.width*f/2);a=(this.$465*f-(this.height/2-this.height*f/2))}else{b=-(this.xI1-(this.width/2));a=-(this.$465-(this.height/2))}this.AN(this.getZoomLevel()+this.tK,b,a)}this.Ai=parseInt(this.getZoomLevel()+this.tK);if(this.Ai<te){this.Ai=te}if(this.Ai>sY){this.Ai=sY}this.tL=getTimeout(this,this.a7,200)}}else{this.tK=0;this.setZoomLevel(this.Ai);this.Ai=0;if(this.tL){clearTimeout(this.tL)}this.tL=null}};var px=navigator.appVersion.match(new RegExp("\\bMSIE\\b"));var _Qf37=window.navigator.userAgent.split("(").toString().split(";")[1].indexOf("6")>0;var ut=document.qS?1:0;var lm=(px)?"document.all.":"document.";var 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(" z-index: 0; /*white-space: nowrap;*/ ");document.write(" display: block; ");document.write(" visibility: visible; ");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 = 20 );")}else{document.write(" opacity: 0.2; ")}document.write(" background-color: #00f; ");document.write(" border: 2px solid #00f; ");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 #11d; ");document.write(" visibility: visible; ");document.write("} ");document.write("");document.write("#mapbar-overview-viewpad { ");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 #11d; ");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(" color: #414141; ");document.write(" background-color: #eef5ff; ");document.write(" text-decoration: none;");document.write(" cursor: pointer;");document.write(" font-family: Arial, Helvetica, sans-serif; ");document.write(" font-size: 12px; ");document.write(" width: 120px; ");document.write(" border-spacing:0px;");if(px){document.write(" cellpadding: 0px; ");document.write(" cellspacing: 0px; ")}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 mw=="undefined"){var mw=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 bzt=="undefined"){var bzt=true}if(typeof bsc=="undefined"){var bsc=true}if(typeof __mapbar_magic_id=="undefined"){var __mapbar_magic_id=""}if(typeof rmi!="boolean"){var rmi=true}if(typeof SNAPSHOT_SERVER!="string"){var SNAPSHOT_SERVER="http://staticmap.mapbar.com/staticmap/"}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 LOGO_AUTOZOOM!="boolean"){var LOGO_AUTOZOOM=false}if(typeof LOGO_AUTOZOOM_MAPSIZE!="object"){var LOGO_AUTOZOOM_MAPSIZE={width:600,height:400}}if(typeof LOGO_AUTOHIDE_MAPSIZE!="object"){var LOGO_AUTOHIDE_MAPSIZE={width:400,height:300}}if(typeof ALLOW_MV!="boolean"){var ALLOW_MV=true}var c75=2;var ac=null;var 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 STD_BUBBLE_WIDTH=="undefined"){var STD_BUBBLE_WIDTH=217}if(typeof MIN_BUBBLE_HEIGHT=="undefined"){var MIN_BUBBLE_HEIGHT=120}if(typeof oww=="undefined"){var oww=150}if(typeof owh=="undefined"){var owh=100}if(typeof MAX_BUBBLE_HEIGHT=="undefined"){var MAX_BUBBLE_HEIGHT=380}var sX=strImgsvrUrl+"images/mask.gif";var ul=strImgsvrUrl+"images/node.gif";var iXH1=strImgsvrUrl+"images/dragnode.png";var lV=strImgsvrUrl+"images/wmk.gif";var EN43t=null;if(typeof gQ=="undefined"){gQ=0}var xz="";var 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=90);-moz-opacity:0.9;visibility:hidden;"></div>');var sb=0;var sc='<div id="loading" unselectable = "on"><img src="'+strImgsvrUrl+'images/loading.gif"></div>';if(typeof bArrow=="undefined"){var bArrow=0}var sB=new Image();var qc=0;var 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");var lt=(en==0)?"\u62D6\u62FD\u6B64\u70B9":"drag to move this point";var pe=new Array();var pa=new Array();var pF=2;var sI=new Array("W","0","1","2","3","4","5","6","7","8","9","10","11","12","13","14");var 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);var 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);var nM=new Array(10,10,10,10,10,10,10,10,10,10,50,50,50,50,50,50);var w8=new Array(0,0,0,0,0,0,0,0,75,0,0,-150,0,0,0,0);var DEFAULT_MAX_ZOOM_LEVEL=14;var DEFAULT_MIN_ZOOM_LEVEL=0;var sY=DEFAULT_MAX_ZOOM_LEVEL;var te=DEFAULT_MIN_ZOOM_LEVEL;var wp=100000;var sw=105;var sx=35;var sz=new Array(-360,360);var sy=new Array(-90,90);var A0F2N=null;var uU=8;var uS=15;var uT=strImgsvrUrl+"images/overclose.gif";var 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];var bpp=[xl+"mapbank/base/",12,13];var vs=strMapsvrUrl+"images/done.gif";var vt=strMapsvrUrl+"images/edit.gif";var v3=strMapsvrUrl+"images/stretch.gif";var at=0;var as=1;var au=2;var av=0;var ar=2;var s9=1001;
