var err_msg = "";var ZDC_KEY = "53nQAzBTnwEzAynweXBHnQpnCUmgOPCZidb5SzXvDKAtfxizTurxpzTDrxWzTOZsWi4PXwPLEjo71W7BWBP9Ooodo5SIXxI9Fyahm9JXXxxLTQ";var ZDC_ENC = "EUC";var ZDC_DATUM = "TOKYO";var ZDC_OPT = "tkrkjp";var ZDC_MAP = new Object;var ZDC_MAP_FTYPE = new Object;ZDC_MAP[1] = "4/20200213/";ZDC_MAP_FTYPE[1] = "png";ZDC_MAP[2] = "6/20200213/";ZDC_MAP_FTYPE[2] = "png";ZDC_MAP[3] = "4/20200213/";ZDC_MAP_FTYPE[3] = "png";ZDC_MAP[4] = "4/20200213/";ZDC_MAP_FTYPE[4] = "png";ZDC_MAP[5] = "ond/20/20191126/";ZDC_MAP_FTYPE[5] = "png";ZDC_MAP[9] = "9/20200213/";ZDC_MAP_FTYPE[9] = "png";var ZDC_SSL = "0";var ZdcMapServer="http://api.e-map.ne.jp/mapapi/";if(ZDC_SSL==1){ZdcMapServer="https://api.e-map.ne.jp/mapapi/";}var ZdcTileServer="http://mapcache.e-map.ne.jp/";if(ZDC_SSL==1){ZdcTileServer="https://mapcache.e-map.ne.jp/";}var ZdcMapCgi="http://api.e-map.ne.jp/jsapi/cgi/map.cgi";if(ZDC_SSL==1){ZdcMapCgi="https://api.e-map.ne.jp/jsapi/cgi/map.cgi";}var ZdcMapLog="http://api.e-map.ne.jp/mapapi/img/back-logo.gif";if(ZDC_SSL==1){ZdcMapLog="https://api.e-map.ne.jp/mapapi/img/back-logo.gif";}var ZdcMapAccess="http://api.e-map.ne.jp/";if(ZDC_SSL==1){ZdcMapAccess="https://api.e-map.ne.jp/";}var ChizulogMap="http://map.chizulog.com/mapfiles/";var ZdcTileServers="mapcache.e-map.ne.jp";if(ZDC_SSL==1){ZdcTileServers="mapcache.e-map.ne.jp";}if(!window.ZDC){window.ZDC={};}(function(){function ZdcCommon(){}ZdcCommon.ZdcMapServer=ZdcMapServer;ZdcCommon.ZdcTileServer=ZdcTileServer;ZdcCommon.ZdcTilePath=new Object();for(nm in ZDC_MAP){ZdcCommon.ZdcTilePath[nm]=ZDC_MAP[nm];}ZdcCommon.ZdcTileFtype=new Object();ZdcCommon.ZdcTileFtype=ZDC_MAP_FTYPE;for(nm in ZdcCommon.ZdcTilePath){ZdcCommon.ZdcDefaultMapType=nm;break;}ZdcCommon.ZdcMapCgi=ZdcMapCgi;ZdcCommon.ZdcMapLog=ZdcMapLog;ZdcCommon.ZdcMapAccess=ZdcMapAccess;ZdcCommon.ChizulogMap=ChizulogMap;ZdcCommon.ZDC_KEY=ZDC_KEY;ZdcCommon.ZDC_OPT=ZDC_OPT;ZdcCommon.ZDC_ENC=ZDC_ENC;ZdcCommon.ZDC_DATUM=ZDC_DATUM;if(typeof ZDC_RETURN!="undefined"){ZdcCommon.ZDC_RETURN=ZDC_RETURN;}else{ZdcCommon.ZDC_RETURN=null;}ZdcCommon.ll2pixel=function(_1,_2,_3){var _4=Math.abs(_1-ZdcZoom.OX);var _5=Math.abs(_2-ZdcZoom.OY);var _6=_4/(ZdcZoom.map_defw[_3]*ZdcZoom.PX);var _7=_5/(ZdcZoom.map_defh[_3]*ZdcZoom.PY);_6=Math.floor(_6);_7=Math.floor(_7);if(_1=128){_1b++;}_1b++;}return _1b;};ZdcCommon.StrCmp=function(_1d,_1e){var ct;var cmp;if((cmp=_1d.length-_1e.length)!=0){return cmp;}for(ct=0;ct<_1d.length;ct++){var c1=_1d.charCodeAt(ct);var c2=_1e.charCodeAt(ct);if((cmp=(c1-c2))!=0){break;}}return cmp;};ZdcCommon.strRight=function(str,n){var l=str.length;if(n>l){n=l;}return (str.substring(l-n,l));};ZdcCommon.strLeft=function(str,n){var l=str.length;if(n>l){n=l;}return (str.substring(0,n));};ZdcCommon.ConvertMSXY2LL=function(x,y,f){var _2c=new Object();var dx=x/3600/1000;var dy=y/3600/1000;switch(f){case 1:default:_2c.lon=Math.round(dx*10000000)/10000000;_2c.lat=Math.round(dy*10000000)/10000000;break;case 2:var fx=Math.abs(Math.floor(dx)*60-dx*60);var fy=Math.abs(Math.floor(dy)*60-dy*60);var sx=Math.abs(Math.floor(fx)*60-fx*60);var sy=Math.abs(Math.floor(fy)*60-fy*60);sx=Math.round(sx*1000)/1000;sy=Math.round(sy*1000)/1000;if(document.all){_2c.lon=Math.floor(dx)+"o "+Math.floor(fx)+"'"+sx+"\"";_2c.lat=Math.floor(dy)+"o "+Math.floor(fy)+"'"+sy+"\"";}else{_2c.lon=Math.floor(dx)+"o "+Math.floor(fx)+"'"+sx+"\"";_2c.lat=Math.floor(dy)+"o "+Math.floor(fy)+"'"+sy+"\"";}break;}return _2c;};ZdcCommon.UserAgentIsIE=function(){var ua=navigator.userAgent;if(ua.match(/MSIE (\d\.\d+)/)){return true;}return false;};ZdcCommon.UserAgentIsFireFox=function(){var ua=navigator.userAgent;if(ua.match(/Gecko/)){if(ua.match(/(Firebird|Firefox)\/([\.\d]+)/)){return true;}return false;}return false;};ZdcCommon.IsIE=function(){var _35,v=3,div=document.createElement("div");while(div.innerHTML="",div.getElementsByTagName("i")[0]){}return v>4?v:false;};ZdcCommon.isiPhone=function(){return RegExp(" AppleWebKit/").test(navigator.userAgent)&&RegExp(" Mobile/").test(navigator.userAgent);};ZdcCommon.UserAgentIsSafari=function(){var ua=navigator.userAgent;if(ua.match(/Safari\/([\.\d]+)/)){return true;}return false;};ZdcCommon.UserAgentIsFireFoxVer2=function(){var ua=navigator.userAgent;if(ua.match(/Gecko/)){if(ua.match(/(Firebird|Firefox)\/([\.2]+)/)){return true;}return false;}return false;};ZdcCommon.UserAgentIsFireFoxVer3=function(){var ua=navigator.userAgent;if(ua.match(/Gecko/)){if(ua.match(/(Firebird|Firefox)\/([\.3]+)/)){return true;}return false;}return false;};ZdcCommon.ConvertLL2XY=function(x,y,f){var _3e=new Object();switch(f){case 1:default:var dx=Math.round(x*3600*1000);var dy=Math.round(y*3600*1000);break;case 2:var _41=x.split(".");var _42=y.split(".");var dx=_41[0]*3600;var dy=_42[0]*3600;var fx=_41[1]*60;var fy=_42[1]*60;var sx=Number(_41[2].toString+"."+_41[3].toString);var sy=Number(_42[2].toString+"."+_42[3].toString);dx=Math.round((dx+fx+sx)*1000);dy=Math.round((dy+fy+sy)*1000);break;}_3e.mx=dx;_3e.my=dy;return _3e;};ZdcCommon.cnv_llh2xyz=function(b,l,h,a,e2){var rd=Math.PI/180;var b=b*rd;var l=l*rd;var sb=Math.sin(b);var cb=Math.cos(b);var rn=a/Math.sqrt(1-e2*sb*sb);var _50=new Array();_50[0]=(rn+h)*cb*Math.cos(l);_50[1]=(rn+h)*cb*Math.sin(l);_50[2]=(rn*(1-e2)+h)*sb;return _50;};ZdcCommon.cnv_xyz2llh=function(x,y,z,a,e2){var rd=Math.PI/180;var bda=Math.sqrt(1-e2);var p=Math.sqrt((x*x+y*y));var t=Math.atan2(z,p*bda);var st=Math.sin(t);var ct=Math.cos(t);var b=Math.atan2(z+e2*a/bda*st*st*st,p-e2*a*ct*ct*ct);var l=Math.atan2(y,x);var sb=Math.sin(b);var rn=a/Math.sqrt(1-e2*sb*sb);var h=p/Math.cos(b)-rn;var _61=new Array();_61[0]=b/rd;_61[1]=l/rd;_61[2]=h;return _61;};ZdcCommon.WGS2TKY=function(lon,lat){var a_w=6378137;var f_w=1/298.257223;var _66=2*f_w-f_w*f_w;var a_t=6377397.155;var f_t=1/299.152813;var _69=2*f_t-f_t*f_t;var _6a=-148;var _6b=507;var _6c=681;var h=0;var _6e=ZdcCommon.cnv_llh2xyz(lat,lon,h,a_w,_66);_6e=ZdcCommon.cnv_xyz2llh(_6e[0]-_6a,_6e[1]-_6b,_6e[2]-_6c,a_t,_69);_6e[0]=Math.round(_6e[0]*10000000)/10000000;_6e[1]=Math.round(_6e[1]*10000000)/10000000;var p=new ZdcPoint(_6e[1],_6e[0]);return p;};ZdcCommon.TKY2WGS=function(lon,lat){var a_w=6378137;var f_w=1/298.257223;var _74=2*f_w-f_w*f_w;var a_t=6377397.155;var f_t=1/299.152813;var _77=2*f_t-f_t*f_t;var _78=-148;var _79=507;var _7a=681;var h=0;var _7c=ZdcCommon.cnv_llh2xyz(lat,lon,h,a_t,_77);_7c=ZdcCommon.cnv_xyz2llh(_7c[0]+_78,_7c[1]+_79,_7c[2]+_7a,a_w,_74);_7c[0]=Math.round(_7c[0]*10000000)/10000000;_7c[1]=Math.round(_7c[1]*10000000)/10000000;var p=new ZdcWGSPoint(_7c[1],_7c[0]);return p;};ZdcCommon.Math_mod=function(a,b){var c=(a/b)-Math.floor(a/b);return c;};ZdcCommon.DEG2MS=function(deg){var ms=deg*3600*1000;return Math.round(ms);};ZdcCommon.DEG2DMS=function(deg){var DMS=new Object();DMS.deg=Math.floor(deg);DMS.min=Math.floor((deg-DMS.deg)*60);DMS.sec=Math.round(((deg-DMS.deg)*60-DMS.min)*60*1000)/1000;return DMS;};ZdcCommon.MS2DEG=function(ms){return Math.round((ms/3600000)*10000000)/10000000;};ZdcCommon.MS2DMS=function(ms){return ZdcCommon.DEG2DMS(ZdcCommon.MS2DEG(ms));};ZdcCommon.DMS2DEG=function(deg,min,sec){return (Math.round((deg+(min/60)+(sec/3600))*10000000))/10000000;};ZdcCommon.DMS2MS=function(deg,min,sec){return Math.round((deg+(min/60)+(sec/3600))*3600000);};ZdcCommon.prototype.showWholeRoute=function(){ZdcEvent.addListener(this,"end",function(){ZdcCommon.prototype.reviseBox(this);var map=this.objMap;var rE=this.getResult().routeExtent;var p=new ZdcPoint(Math.round((rE.maxx+rE.minx)/2),Math.round((rE.maxy+rE.miny)/2),2);map.setMapLocation(p,map.getMapBoxScale(rE));});};ZdcCommon.prototype.reviseBox=function modify(_90){var re=_90.result.routeExtent;var lv=_90.objMap.getMapBoxScale(re);var _93=36*ZdcZoom.map_defw[lv];var _94=25*ZdcZoom.map_defh[lv];var db,ap;if(_90.options.departurePoint.point){dp=_90.options.departurePoint.point;ap=_90.options.arrivalPoint.point;}else{dp=new ZdcPoint(_90.options.departurePoint.mx,_90.options.departurePoint.my,2);ap=new ZdcPoint(_90.options.arrivalPoint.mx,_90.options.arrivalPoint.my,2);}if(re.maxx2&&d.substring(d.length-2)=="px"){return parseInt(d);}else{var e=a.ownerDocument.getElementById(Hc);if(!e){var e=ZdcEvent._getOwnerDocument(a).createElement("div");e.style.position="absolute";e.style.left="0px";e.style.top="0px";e.style.width="0px";e.style.height="0px";a.appendChild(e);e.id=Hc;e.style.visibility="hidden";}else{a.parentNode.appendChild(e);}e.style.width="0px";e.style.width=d;return e.offsetWidth;}}}};ZdcEvent._regPropertyName=function(a){return a.replace(/-(\w)/g,function(b,c){return (""+c).toUpperCase();});};ZdcEvent._getOwnerDocument=function(a){return (a?a.ownerDocument:null)||document;};ZdcEvent._getPropertyValue=function(a,b){var c=ZdcEvent._getOwnerDocument(a);if(a.currentStyle){var d=ZdcEvent._regPropertyName(b);return a.currentStyle[d];}else{if(c.defaultView&&c.defaultView.getComputedStyle){var e=c.defaultView.getComputedStyle(a,"");return e?e.getPropertyValue(b):"";}else{var d=ZdcEvent._regPropertyName(b);return a.style[d];}}};ZdcEvent._offsetPoint=function(a,b){var c=false;if(w.r()){c=ZdcEvent._getPropertyValue(b,"overflow")!="visible"&&ZdcEvent._getPropertyValue(b.parentNode,"overflow")!="visible";var d=ZdcEvent._getPropertyValue(b,"position")!="static";if(d||c){a.x+=ZdcEvent._getMarginValue(b,"margin-left");a.y+=ZdcEvent._getMarginValue(b,"margin-top");var e=ZdcEvent._getBorderValue(b.parentNode);a.x+=e.x;a.y+=e.y;}if(d){a.x+=ZdcEvent._getMarginValue(b,"left");a.y+=ZdcEvent._getMarginValue(b,"top");}}if((w.r()||w.type==1)&&document.compatMode!="BackCompat"||c){if(self.pageYOffset){a.x-=self.pageXOffset;a.y-=self.pageYOffset;}else{a.x-=document.documentElement.scrollLeft;a.y-=document.documentElement.scrollTop;}}};ZdcEvent._getClientPosition=function(a){var oa=a;var c=new ZdcPixel(0,0);if(a&&typeof a.getBoundingClientRect!="undefined"){var box=a.getBoundingClientRect();c.x+=box.left;c.y+=box.top;var d=ZdcEvent._getBorderValue(a);c.x+=d.x;c.y+=d.y;c.x+=document.body.clientLeft;c.y+=document.body.clientTop;return c;}while(a){if(a.nodeName=="BODY"){ZdcEvent._offsetPoint(c,a);}var d=ZdcEvent._getBorderValue(a);c.x+=d.x;c.y+=d.y;if(a.nodeName!="BODY"||!w.r()){c.x+=a.offsetLeft;c.y+=a.offsetTop;}if(w.type==1&&a!=oa&&a.nodeName!="BODY"&&ZdcEvent._getPropertyValue(a,"position")=="relative"&&(a.style.width==""&&a.currentStyle.width=="auto")){c.x-=d.x;c.x-=a.offsetLeft;}if(w.type==1&&a.offsetParent&&a.offsetParent.nodeName!="BODY"&&ZdcEvent._getPropertyValue(a.offsetParent,"position")=="relative"&&(a.offsetParent.style.width==""&&a.offsetParent.currentStyle.width=="auto")){d=ZdcEvent._getBorderValue(a.offsetParent);c.y-=d.y;}if(w.r()&&w.revision>=1.8&&a.offsetParent&&a.offsetParent.nodeName!="BODY"&&ZdcEvent._getPropertyValue(a.offsetParent,"overflow")!="visible"){var d=ZdcEvent._getBorderValue(a.offsetParent);c.x+=d.x;c.y+=d.y;}if(a.offsetParent){c.x-=a.offsetParent.scrollLeft;c.y-=a.offsetParent.scrollTop;}if(w.type!=1&&ZdcEvent._checkPositionType(a)){if(w.r()){c.x-=self.pageXOffset-document.body.scrollLeft;c.y-=self.pageYOffset-document.body.scrollTop;var e=ZdcEvent._getBorderValue(a.offsetParent.parentNode);c.x+=e.x;c.y+=e.y;}break;}if(w.type==2&&a.offsetParent){var d=ZdcEvent._getBorderValue(a.offsetParent);c.x-=d.x;c.y-=d.y;}a=a.offsetParent;}if(w.type==1&&document.documentElement){c.x+=document.documentElement.clientLeft;c.y+=document.documentElement.clientTop;}if(w.type==1){c.x+=document.body.clientLeft;c.y+=document.body.clientTop;}return c;};window.ZdcEvent=ZdcEvent;window.ZDC.ZdcEvent=ZdcEvent;})();(function(){function ZdcWindow(top,left,_11d,_11e){if(top!=null&&left!=null&&_11d!=null&&_11e!=null){this.top=top;this.left=left;this.width=_11d;this.height=_11e;}}function ZdcPixel(x,y){this.x=x;this.y=y;}function ZdcPixelBox(pxl1,pxl2){this.pxl1=pxl1;this.pxl2=pxl2;this.pxl1.x=eval(this.pxl1.x);this.pxl1.y=eval(this.pxl1.y);this.pxl2.x=eval(this.pxl2.x);this.pxl2.y=eval(this.pxl2.y);}ZdcPixelBox.prototype.isContainPixel=function(x,y){var flg;if(this.pxl1.x<=this.pxl2.x){if(this.pxl1.x<=x&&x<=this.pxl2.x){flg=true;}else{return false;}}else{if(this.pxl2.x<=x&&x<=this.pxl1.x){flg=true;}else{return false;}}if(this.pxl1.y<=this.pxl2.y){if(this.pxl1.y<=y&&y<=this.pxl2.y){flg=true;}else{return false;}}else{if(this.pxl2.y<=y&&y<=this.pxl1.y){flg=true;}else{return false;}}return true;};function ZdcSize(w,h){this.width=w;this.height=h;}function ZdcPoint(x,y,f){if(f!=null){this.type=f;}else{this.type=1;}if(y==null&&x==null){x=503156063;y=128422368;this.type=2;}else{if(x==null){return -1;}if(y==null){return -1;}}switch(this.type){case 1:default:this.lon=x;this.lat=y;var p=ZdcCommon.ConvertLL2XY(x,y,1);this.mx=Number(p.mx);this.my=Number(p.my);break;case 2:this.mx=Number(x);this.my=Number(y);var p=ZdcCommon.ConvertMSXY2LL(x,y,1);this.lon=p.lon;this.lat=p.lat;break;}}ZdcPoint.prototype.setZxy=function(x,y){this.mx=Number(x);this.my=Number(y);var p=ZdcCommon.ConvertMSXY2LL(x,y,1);this.lon=p.lon;this.lat=p.lat;};ZdcPoint.prototype.setLonLat=function(x,y){this.lon=x;this.lat=y;var p=ZdcCommon.ConvertLL2XY(x,y,1);this.mx=Number(p.mx);this.my=Number(p.my);};ZdcPoint.prototype.getDistanceFromPoint=function(p){var pi=Math.PI/180;var R=6370000;var a=R*Math.cos(this.lat*pi)*Math.cos(this.lon*pi);var b=R*Math.cos(this.lat*pi)*Math.sin(this.lon*pi);var c=R*Math.sin(this.lat*pi);var d=R*Math.cos(p.lat*pi)*Math.cos(p.lon*pi);var e=R*Math.cos(p.lat*pi)*Math.sin(p.lon*pi);var f=R*Math.sin(p.lat*pi);var g=a*d+b*e+c*f;var h=Math.acos(g/(R*R));return R*h;};function ZdcWGSPoint(lon,lat){if(lon==null&&lat==null){lat=139.4546063;lon=35.4022368;}else{if(lon==null){return -1;}if(lat==null){return -1;}}this.lat=lat;this.lon=lon;}function ZdcBox(p1,p2){if(p1!=null&&p2!=null){if(p1.mx=box.minx&&this.miny<=box.maxy&&this.maxy>=box.miny){return 2;}return 3;};ZdcBox.prototype.isContainPoint=function(p){if(this.minx<=p.mx&&p.mx<=this.maxx&&this.miny<=p.my&&p.my<=this.maxy){return true;}return false;};window.ZdcSize=ZdcSize;window.ZdcPixel=ZdcPixel;window.ZdcPixelBox=ZdcPixelBox;window.ZdcWindow=ZdcWindow;window.ZdcPoint=ZdcPoint;window.ZdcWGSPoint=ZdcWGSPoint;window.ZdcBox=ZdcBox;window.ZDC.ZdcSize=ZdcSize;window.ZDC.ZdcPixel=ZdcPixel;window.ZDC.ZdcWindow=ZdcWindow;window.ZDC.ZdcPixelBox=ZdcPixelBox;window.ZDC.ZdcPoint=ZdcPoint;window.ZDC.ZdcWGSPoint=ZdcWGSPoint;window.ZDC.ZdcBox=ZdcBox;})();(function(){var _149=50;var _14a="ZdcAjax";var _14b="http://api.e-map.ne.jp/jsapi/cgi/call.cgi";if(ZDC_SSL==1){_14b="https://api.e-map.ne.jp/jsapi/cgi/call.cgi";}var _14c="";var _14d=0;var _14e=new Array();var _14f=new Array();var _150=new Array();var _151=new Array();ZdcHttpGetResult=function(cnt){if(_14f[cnt]=="domain error"){_150[cnt](null,9);ZdcHttpClear(cnt);return;}if(_14f[cnt]=="no file"){_150[cnt](null,9);ZdcHttpClear(cnt);return;}if(_14f[cnt]=="abort"){_150[cnt](null,4);ZdcHttpClear(cnt);return;}_14f[cnt]--;if(_14f[cnt]<0){_150[cnt](null,3);ZdcHttpClear(cnt);return;}if(!_14e[cnt]){setTimeout("ZdcHttpGetResult("+cnt+")",_149);return;}if(_151[cnt]){_150[cnt](decodeURIComponent(_14e[cnt]),0);}else{_150[cnt](_14e[cnt],0);}ZdcHttpClear(cnt);};ZdcHttpClear=function(cnt){var elm=document.getElementById(_14a+cnt);if(elm){document.body.removeChild(elm);}delete elm;delete _14e[cnt];delete _150[cnt];delete _151[cnt];};ZdcHttpRequest=function(_155,enc,_157){this.cnt=0;this.aborted=false;this.charset=_155||"SJIS";this.enc=enc||"";this.encodeflg=(_157==undefined)?0:_157;};ZdcHttpRequest.prototype.request=function(_158,_159,_15a){var _15b;try{_15b=document.createElement("script");switch(this.charset){case "SJIS":_15b.charset="Shift_JIS";break;case "UTF8":_15b.charset="UTF-8";break;case "EUC":_15b.charset="EUC-JP";break;default:_15b.charset=this.charset;break;}}catch(e){_15b=false;}if(!_15b){this.httpObjGenerateFail();}if(_15a==undefined){_15a=5*1000;}_14d++;_15b.id=_14a+_14d;_15b.setAttribute("type","text/javascript");_15b.src=_14b+"?target="+encodeURIComponent(_158)+"&zdccnt="+_14d+"&enc="+this.enc+"&encodeflg="+this.encodeflg;_150[_14d]=_159;_14f[_14d]=_15a/_149;_14e[_14d]="";_151[_14d]=this.encodeflg;document.body.appendChild(_15b);setTimeout("ZdcHttpGetResult("+_14d+")",_149);this.cnt=_14d;return;};ZdcHttpRequest.prototype.httpObjGenerateFail=function(){alert("No Support on your Browser.");return false;};ZdcHttpRequest.prototype.abort=function(){_14f[this.cnt]="abort";};ZdcHttpRequest.prototype.setInterval=function(val){_149=val;};var _15d={0:"Success",1:"Parameter Error",2:"Server Error",3:"Timeout",4:"Abort",5:"No Hit Data",6:"Auth Error",9:"Error"};ZdcHttpRequest.setProxyDomain=function(_15e){_14c=_15e;_14b="http://"+_15e+"/jsapi/cgi/call.cgi";if(ZDC_SSL==1){_14b="https://"+_15e+"/jsapi/cgi/call.cgi";}};ZdcHttpRequest.getProxyDomain=function(){return _14c;};window.ZdcHttpTimeoutCnt=_14f;window.ZdcHttpRequest=ZdcHttpRequest;window.ZdcHttpResult=_14e;window.ZdcStatusCode=_15d;})();if(!window.ZDC){window.ZDC={};}(function(){function ZdcZoom(){}ZdcZoom.OY=35*3600*1000;ZdcZoom.OX=135*3600*1000;ZdcZoom.PX=256;ZdcZoom.PY=256;ZdcZoom.map_defw=new Array();ZdcZoom.map_defh=new Array();ZdcZoom.map_defs=new Array();ZdcZoom.map_defd=new Array();ZdcZoom.map_emag=new Array();ZdcZoom.map_defw[18]=19.30147059;ZdcZoom.map_defh[18]=15.72712418;ZdcZoom.map_defs[18]="1,500";ZdcZoom.map_defd[18]="40m";ZdcZoom.map_emag[18]=39;ZdcZoom.map_defw[17]=33.08823529;ZdcZoom.map_defh[17]=26.96078431;ZdcZoom.map_defs[17]="2,500";ZdcZoom.map_defd[17]="70m";ZdcZoom.map_emag[17]=42;ZdcZoom.map_defw[16]=41.36029412;ZdcZoom.map_defh[16]=33.70098039;ZdcZoom.map_defs[16]="3,500";ZdcZoom.map_defd[16]="100m";ZdcZoom.map_emag[16]=44;ZdcZoom.map_defw[15]=57.90441176;ZdcZoom.map_defh[15]=47.18137255;ZdcZoom.map_defs[15]="5,000";ZdcZoom.map_defd[15]="150m";ZdcZoom.map_emag[15]=46;ZdcZoom.map_defw[14]=90.99264706;ZdcZoom.map_defh[14]=74.14215686;ZdcZoom.map_defs[14]="7,500";ZdcZoom.map_defd[14]="230m";ZdcZoom.map_emag[14]=50;ZdcZoom.map_defw[13]=121.3235294;ZdcZoom.map_defh[13]=98.85620915;ZdcZoom.map_defs[13]="10,000";ZdcZoom.map_defd[13]="300m";ZdcZoom.map_emag[13]=52;ZdcZoom.map_defw[12]=187.5;ZdcZoom.map_defh[12]=152.7777778;ZdcZoom.map_defs[12]="15,000";ZdcZoom.map_defd[12]="450m";ZdcZoom.map_emag[12]=55;ZdcZoom.map_defw[11]=253.6764706;ZdcZoom.map_defh[11]=206.6993464;ZdcZoom.map_defs[11]="20,000";ZdcZoom.map_defd[11]="600m";ZdcZoom.map_emag[11]=56;ZdcZoom.map_defw[10]=661.7647059;ZdcZoom.map_defh[10]=539.2156863;ZdcZoom.map_defs[10]="50,000";ZdcZoom.map_defd[10]="1.5km";ZdcZoom.map_emag[10]=62;ZdcZoom.map_defw[9]=1411.764706;ZdcZoom.map_defh[9]=1150.326797;ZdcZoom.map_defs[9]="100,000";ZdcZoom.map_defd[9]="3.0km";ZdcZoom.map_emag[9]=67;ZdcZoom.map_defw[8]=1941.176471;ZdcZoom.map_defh[8]=1581.699346;ZdcZoom.map_defs[8]="150,000";ZdcZoom.map_defd[8]="4.5km";ZdcZoom.map_emag[8]=70;ZdcZoom.map_defw[7]=3176.470588;ZdcZoom.map_defh[7]=2588.235294;ZdcZoom.map_defs[7]="250,000";ZdcZoom.map_defd[7]="7.7km";ZdcZoom.map_emag[7]=72;ZdcZoom.map_defw[6]=7058.823529;ZdcZoom.map_defh[6]=5751.633987;ZdcZoom.map_defs[6]="500,000";ZdcZoom.map_defd[6]="15km";ZdcZoom.map_emag[6]=77;ZdcZoom.map_defw[5]=12705.88235;ZdcZoom.map_defh[5]=10352.94118;ZdcZoom.map_defs[5]="1,000,000";ZdcZoom.map_defd[5]="30km";ZdcZoom.map_emag[5]=81;ZdcZoom.map_defw[4]=18352.94118;ZdcZoom.map_defh[4]=14954.24837;ZdcZoom.map_defs[4]="1,500,000";ZdcZoom.map_defd[4]="45km";ZdcZoom.map_emag[4]=82;ZdcZoom.map_defw[3]=34588.23529;ZdcZoom.map_defh[3]=28183.00654;ZdcZoom.map_defs[3]="3,000,000";ZdcZoom.map_defd[3]="90km";ZdcZoom.map_emag[3]=85;ZdcZoom.map_defw[2]=79058.82353;ZdcZoom.map_defh[2]=64418.30065;ZdcZoom.map_defs[2]="6,500,000";ZdcZoom.map_defd[2]="200km";ZdcZoom.map_emag[2]=87;ZdcZoom.map_defw[1]=158117.6471;ZdcZoom.map_defh[1]=128836.6013;ZdcZoom.map_defs[1]="13,000,000";ZdcZoom.map_defd[1]="400km";ZdcZoom.map_emag[1]=89;ZdcZoom.map_defw[0]=410694.1874;ZdcZoom.map_defh[0]=334640.5229;ZdcZoom.map_defs[0]="35,000,000";ZdcZoom.map_defd[0]="1000km";ZdcZoom.map_emag[0]=100;window.ZdcZoom=ZdcZoom;window.ZDC.ZdcZoom=ZdcZoom;})();var ZDC_SEARCHCGI="http://api.e-map.ne.jp/ssapi";if(ZDC_SSL==1){ZDC_SEARCHCGI="https://api.e-map.ne.jp/ssapi";}var Zdc_railway_D_PATH="http://api.e-map.ne.jp/jsapi/searchrosenzu";if(ZDC_SSL==1){Zdc_railway_D_PATH="https://api.e-map.ne.jp/jsapi/searchrosenzu";}var Zdc_smap_D_PATH="http://api.e-map.ne.jp/jsapi/searchmap.v12";if(ZDC_SSL==1){Zdc_smap_D_PATH="https://api.e-map.ne.jp/jsapi/searchmap.v12";}var ZDC_EVENT_LOG_CGI="http://api.e-map.ne.jp/log/event_log.cgi";if(ZDC_SSL==1){ZDC_EVENT_LOG_CGI="https://api.e-map.ne.jp/log/event_log.cgi";}var URL_TRAFFIC=ZDC_SEARCHCGI+"/gettrafficimg.cgi";var ZDC_CORPID="ZDC";var ZDC_GENRETBL_SID={"":"API001",jpn:"API001",eng:"EIJI"};var ZDC_TIMEOUT_MIN=1000;var ZDC_TIMEOUT_MAX=300000;var ZDC_CHARSET_STR={"SJIS":"Shift_JIS","UTF8":"UTF-8","EUC":"EUC-JP"};var ZDC_ENC_STR={"SJIS":"SJIS","UTF8":"UTF-8","EUC":"EUC-JP"};var ZDC_HTTP_DMT={"SJIS":"\r\n","UTF8":"\r\n","EUC":"\n"};ZdcSetErrorStatus=function(_15f,st){var _161;if(st==undefined){var _162=_15f.charAt(4);var _163=_15f.slice(3,5);if(_162=="9"){_161=1;}else{if(_15f.substr(4,4)=="1009"){_161=5;}else{if(_162=="2"){_161=6;}else{if(_162=="6"||_162=="7"||_162=="8"||_163=="15"){_161=2;}else{_161=9;}}}}}else{_161=st;}this.retCode=_15f||"";this.type="";this.status=_161;this.recCount=0;this.hitCount=0;this.rest=false;this.items=[];};function ZdcCnvSymbolsS2M(str){var _165="\uff01\u201d\uff03\uff04\uff05\uff06\u2019\uff08\uff09\uff0a\uff0b\uff0c\uff0d\uff0e\uff0f\uff1a\uff1b\uff1c\uff1d\uff1e\uff1f\uff20\uff3b\uffe5\uff3d\uff3e\uff3f\uff40\uff5b\uff5c\uff5d\uff5e";var _166="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";var _167="";for(var i=0;i=0){_167+=_165.charAt(pos);continue;}}_167+=chr;}return _167;} var err_msg = "";var ZdcObjArray=[];window.onunload=function(){ZUnload();};function ZUnload(){for(var i=0;i=10){ZDC.isIE10=true;}else{ZDC.isIE10=false;}}(function(){ZdcMap.getZdcMapAccesslog=function(_3,_4){if(_4==0){if(ZdcCommon.ZDC_RETURN==null){ZdcMap.AccessText=_3;}else{ZdcMap.AccessText=ZdcCommon.ZDC_RETURN;}}else{return -1;}};var $A=function(_6){if(!_6){return [];}if(_6.toArray){return _6.toArray();}else{var _7=[];for(var i=0;i<_6.length;i++){_7.push(_6[i]);}return _7;}};Function.prototype._bind=function(){var _9=this,_a=$A(arguments),_b=_a.shift();return function(){return _9.apply(_b,_a.concat($A(arguments)));};};Function.prototype._bindAsEventListener=function(_c){var _d=this;return function(_e){return _d.call(_c,_e||window.event);};};function ZdcMapType(){this.usrtileurl=null;this.usrtiletype=null;this.usrtilecod=null;this.server=new Object();this.ext=new Object();for(nm in ZdcCommon.ZdcTilePath){this.server[nm]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath[nm];this.ext[nm]=ZdcCommon.ZdcTileFtype[nm];}}function ZdcCopyright(){this.doc=document.createElement("DIV");this.doc.style.zIndex="0";this.doc.style.position="absolute";this.doc.style.width="271px";this.doc.style.height="15px";this.copyrightimg=ZdcCommon.ZdcMapServer+"/usrimg/copyright_pr_emap.gif";this.doc.innerHTML="";ZdcObjArray.push(this);this.doc.onmousedown=this.forbidDrag._bindAsEventListener(this);this.doc.onmousemove=this.forbidDrag._bindAsEventListener(this);}ZdcCopyright.prototype.forbidDrag=function(_f){ZdcEvent.stopPropagation(_f);return false;};function ZdcWait(){this.doc=document.createElement("DIV");this.doc.style.zIndex="10110";this.doc.style.position="absolute";this.doc.style.width="121px";this.doc.style.height="31px";this.backdoc=document.createElement("DIV");this.doc.appendChild(this.backdoc);this.backdoc.image=ZdcCommon.ZdcMapServer+"img/load-back.png";this.backdoc.innerHTML="";this.movedoc=document.createElement("DIV");this.doc.appendChild(this.movedoc);this.movedoc.image=ZdcCommon.ZdcMapServer+"img/load.gif";this.movedoc.style.position="absolute";this.movedoc.style.left="4px";this.movedoc.style.top="4px";this.movedoc.innerHTML="";this.textdoc=document.createElement("DIV");this.doc.appendChild(this.textdoc);this.textdoc.style.position="absolute";this.textdoc.style.left="24px";this.textdoc.style.top="8px";this.showtext="Now Loading...";ZdcObjArray.push(this);}function ZdcTooltip(){this.doc=document.createElement("DIV");this.doc.style.zIndex="-1";this.doc.style.position="absolute";this.doc.style.width="121px";this.doc.style.height="31px";this.doc.style.top="0px";this.doc.style.left="0px";this.offset=new ZdcPixel(-11,-11);this.width="121px";this.height="31px";this.zIndex=0;this.firstwidth="121px";this.firstheight="31px";this.scrollflg=false;this.textdoc=document.createElement("DIV");this.doc.appendChild(this.textdoc);this.doc.style.display="none";this.textdoc.style.position="absolute";this.textdoc.style.left="0px";this.textdoc.style.top="0px";this.textdoc.innerHTML="";ZdcObjArray.push(this);}ZdcTooltip.prototype.setZdcTooltip=function(_10,_11,_12,_13,_14,_15,_16){if(_15!=null){this.doc.style.zIndex=_15;this.zIndex=_15;}if(_12!=null){this.doc.style.width=_12+"px";this.width=_12+"px";this.firstwidth=_12+"px";}if(_13!=null){this.doc.style.height=_13+"px";this.height=_13+"px";this.firstheight=_13+"px";}if(_14!=null){this.offset=_14;}this.Point=_10;if(_11!=null){this.textdoc.innerHTML=_11;}if(_16==true){this.scrollflg=true;}else{this.scrollflg=false;}};ZdcTooltip.prototype.setZdcTooltipZindex=function(_17){if(_17>10209){return;}this.doc.style.zIndex=_17;this.zIndex=_17;};ZdcTooltip.prototype.MouseOut=function(e){ZdcEvent.trigger(this,"mouseouttooltip");};ZdcTooltip.prototype.MouseClick=function(e){ZdcEvent.trigger(this,"mouseclicktooltip");ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseDblClickTooltip=function(e){ZdcEvent.trigger(this,"mousedblclicktooltip");ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseDown=function(e){ZdcEvent.trigger(this,"mousedowntooltip");ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseUp=function(e){ZdcEvent.trigger(this,"mouseuptooltip");if(ZdcCommon.UserAgentIsFireFox()&&this.parentLayer.pMap.ZdcDragStatus){return;}ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseOver=function(e){ZdcEvent.trigger(this,"mouseovertooltip");};ZdcTooltip.prototype.ConTextMenu=function(e){ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.AddMouseWheelListener=function(_1f,cap){if(this.scrollflg==true){if(this.doc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_1f,cap);this.doc.addEventListener("mousewheel",_1f,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_1f);}}}};ZdcTooltip.prototype.WheelStop=function(e){if(this.scrollflg==true){ZdcEvent.stopPropagation(e);}};function ZdcIcon(_22,img,_24){if(img==null){this.image=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.png";}else{this.image=img;}this.printimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.gif";this.changeimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageLarge.png";if(_24!=null){this.shadowimage=_24;}this.printsize=new ZdcSize(24,24);this.shadowsize=new ZdcSize(20,20);this.changesize=new ZdcSize(36,36);this.changeoffset=new ZdcPixel(0,0);if(_22==null){this.size=new ZdcSize(24,24);this.offset=new ZdcPixel(-11,-11);this.msgoffset=new ZdcPixel(0,-10);this.shdoffset=new ZdcPixel(0,0);}else{this.size=_22.size;this.offset=_22.offset;this.msgoffset=_22.msgoffset;this.shdoffset=_22.shdoffset;}this.id=0;ZdcObjArray.push(this);}function ZdcMarker(p,_26,_27,opt){this.Point=p;this.opt=opt;this.constopt=opt;this.dragopt=null;if(_27==null){this.type="dynamic";}else{if(_27!="dynamic"&&_27!="static"){this.type="dynamic";}else{this.type=_27;}}if(_26!=null){this.icon=_26;}else{this.icon=new ZdcIcon();}this.doc=document.createElement("DIV");this.doc.style.position="absolute";this.icondoc=document.createElement("DIV");this.iconimgdoc=document.createElement("IMG");if(this.type=="dynamic"){if(document.all&&!ZDC.isIE10){this.icondoc.style.cursor="hand";}else{this.icondoc.style.cursor="pointer";}}if(this.icon.image.substr(this.icon.image.length-4,4)==".gif"){this.icongif=true;}else{this.icongif=false;}if(this.icon.changeimage.substr(this.icon.changeimage.length-4,4)==".gif"){this.changeicongif=true;}else{this.changeicongif=false;}if(this.icon.printimage.substr(this.icon.printimage.length-4,4)==".gif"){this.printicongif=true;}else{this.printicongif=false;}if(document.all&&!this.icongif&&!ZDC.isIE10){this.iconimgdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+this.icon.image+"\")";this.iconimgdoc.src=ZdcCommon.ZdcMapServer+"/img/blank.gif";this.iconimgdoc.style.width=this.icon.size.width+"px";this.iconimgdoc.style.height=this.icon.size.height+"px";}else{this.iconimgdoc.style.filter=null;this.iconimgdoc.src=this.icon.image;}this.icondoc.style.width=this.icon.size.width+"px";this.icondoc.style.height=this.icon.size.height+"px";this.icondoc.style.left="0px";this.icondoc.style.top="0px";this.icondoc.style.position="absolute";this.doc.style.width=this.icon.size.width+"px";this.doc.style.height=this.icon.size.height+"px";this.icondoc.style.zIndex="3";this.icondoc.style.position="absolute";this.doc.appendChild(this.icondoc);this.icondoc.appendChild(this.iconimgdoc);this.shadowdoc=document.createElement("DIV");if(this.icon.shadowimage!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.shadowimage+")";if(document.all&&!ZDC.isIE10){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}this.shadowdoc.style.width=this.icon.shadowsize.width+"px";this.shadowdoc.style.height=this.icon.shadowsize.height+"px";this.shadowdoc.style.zIndex="2";this.shadowdoc.style.position="absolute";this.doc.appendChild(this.shadowdoc);if(this.icon.shdoffset!=null){this.shadowdoc.style.top=this.icon.shdoffset.y+"px";this.shadowdoc.style.left=this.icon.shdoffset.x+"px";}}ZdcObjArray.push(this);}ZdcMarker.prototype.MouseOver=function(e){ZdcEvent.trigger(this,"mouseovermarker");};ZdcMarker.prototype.MouseOut=function(e){ZdcEvent.trigger(this,"mouseoutmarker");};ZdcMarker.prototype.setTopZIndex=function(){if(this.parentLayer.addmapstatus){for(var i=0;i";}else{this.shadowdoc.innerHTML="";}this.shadowdoc.style.width=this.icon.shadowsize.width+"px";this.shadowdoc.style.height=this.icon.shadowsize.height+"px";this.shadowdoc.style.zIndex="2";this.shadowdoc.style.position="absolute";if(this.icon.shdoffset!=null){this.shadowdoc.style.top=this.icon.shdoffset.y+"px";this.shadowdoc.style.left=this.icon.shdoffset.x+"px";}}};ZdcMarker.prototype.dragOn=function(){this.dragopt=true;};ZdcMarker.prototype.dragOff=function(){this.dragopt=null;};function ZdcUserLayer(opt){this.doc=document.createElement("DIV");this.doc.style.position="absolute";this.doc.style.left="0px";this.doc.style.top="0px";this.markers=new Array();this.tooltips=new Array();this.markercount=0;this.minzoom=1;this.maxzoom=18;if(opt==null){this.type="manual";}else{this.type=opt;}this.addmapstatus=false;this.canvasWidth=2048;this.canvasHeight=2048;this.layerID=-1;ZdcObjArray.push(this);}ZdcUserLayer.prototype.getMarkerCount=function(){this.markercount=0;for(var i=0;i=0;i--){if(this.markers[i]!=null){if(_4b==false&&this.addmapstatus){try{this.doc.removeChild(this.markers[i].doc);}catch(e){}}this.markers[i].icondoc.onmouseover=null;this.markers[i].icondoc.onmouseout=null;this.markers[i].icondoc.onclick=null;this.markers[i].icondoc.ondblclick=null;this.markers[i].icondoc.onmousedown=null;this.markers[i].icondoc.onmouseup=null;this.markers[i].icondoc.oncontextmenu=null;if(ZdcCommon.isiPhone()){this.markers[i].icondoc.ontouchstart=null;this.markers[i].icondoc.ontouchend=null;}ZdcEvent.clearInstanceListeners(this.markers[i]);this.markers[i]=null;}}if(this.pMap){this.pMap.ClickUserLayerId=-1;this.pMap.ClickMarkerId=-1;}};ZdcUserLayer.prototype.removeMarkerById=function(id){if(this.markers[id]!=null){if(this.addmapstatus){this.doc.removeChild(this.markers[id].doc);}this.markers[id].icondoc.onmouseover=null;this.markers[id].icondoc.onmouseout=null;this.markers[id].icondoc.onclick=null;this.markers[id].icondoc.ondblclick=null;this.markers[id].icondoc.onmousedown=null;this.markers[id].icondoc.onmouseup=null;this.markers[id].icondoc.oncontextmenu=null;if(ZdcCommon.isiPhone()){this.markers[id].icondoc.ontouchstart=null;this.markers[id].icondoc.ontouchend=null;}ZdcEvent.clearInstanceListeners(this.markers[id]);this.markers[id]=null;if(this.pMap){this.pMap.ClickUserLayerId=-1;this.pMap.ClickMarkerId=-1;}}};ZdcUserLayer.prototype.removeMarker=function(mrk){var id=0;if(!mrk){return -1;}for(id=this.markers.length-1;id>=0;id--){if(this.markers[id]==mrk){break;}}if(id<0){return -1;}if(this.markers[id]==mrk){if(this.addmapstatus){this.doc.removeChild(this.markers[id].doc);}this.markers[id].icondoc.onmouseover=null;this.markers[id].icondoc.onmouseout=null;this.markers[id].icondoc.onclick=null;this.markers[id].icondoc.ondblclick=null;this.markers[id].icondoc.onmousedown=null;this.markers[id].icondoc.onmouseup=null;this.markers[id].icondoc.oncontextmenu=null;if(ZdcCommon.isiPhone()){this.markers[id].icondoc.ontouchstart=null;this.markers[id].icondoc.ontouchend=null;}ZdcEvent.clearInstanceListeners(this.markers[id]);this.markers[id]=null;if(this.pMap){this.pMap.ClickUserLayerId=-1;this.pMap.ClickMarkerId=-1;}return;}else{return -1;}};ZdcUserLayer.prototype.setLayerType=function(opt){if(opt!=null){this.type=opt;}};ZdcUserLayer.prototype.setLayerScale=function(s1,s2){var vs1=parseInt(s1);var vs2=parseInt(s2);if(vs1<=vs2&&Number(vs1)>=0&&Number(vs2)<19){this.minzoom=vs1;this.maxzoom=vs2;}else{return -1;}};ZdcUserLayer.prototype.getMarkerById=function(id){if(this.markers[id]!=null){return this.markers[id];}else{return null;}};ZdcUserLayer.prototype.addZdcTooltip=function(t){var _57=parseInt(this.doc.style.left);var _58=parseInt(this.doc.style.top);t.parentLayer=this;var id=0;while(this.tooltips[id]!=null){id++;}this.tooltips[id]=t;this.tooltips[id].id=id;if(this.addmapstatus){var pxy=this.pMap.convertPoint2Pixel(t.Point);this.tooltips[id].doc.style.left=parseInt(pxy.x)+parseInt(this.tooltips[id].offset.x)-parseInt(_57)+"px";this.tooltips[id].doc.style.top=parseInt(pxy.y)+parseInt(this.tooltips[id].offset.y)-parseInt(_58)+"px";this.doc.appendChild(this.tooltips[id].doc);}this.tooltips[id].doc.onmouseout=this.tooltips[id].MouseOut._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onclick=this.tooltips[id].MouseClick._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.ondblclick=this.tooltips[id].MouseDblClickTooltip._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onmousedown=this.tooltips[id].MouseDown._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onmouseup=this.tooltips[id].MouseUp._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onmouseover=this.tooltips[id].MouseOver._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.oncontextmenu=this.tooltips[id].ConTextMenu._bindAsEventListener(this.tooltips[id]);this.tooltips[id].AddMouseWheelListener(this.tooltips[id].WheelStop._bindAsEventListener(this.tooltips[id]),false);if(ZdcCommon.isiPhone()){this.tooltips[id].doc.ontouchstart=this.tooltips[id].MouseDown._bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.ontouchend=this.tooltips[id].MouseClick._bindAsEventListener(this.tooltips[id]);}return id;};ZdcUserLayer.prototype.hiddenZdcTooltipById=function(id){if(this.tooltips[id]){this.tooltips[id].doc.style.width="0px";this.tooltips[id].doc.style.height="0px";this.tooltips[id].doc.style.display="none";}};ZdcUserLayer.prototype.visibleZdcTooltipById=function(id){if(this.tooltips[id]){this.tooltips[id].doc.style.width=this.tooltips[id].firstwidth;this.tooltips[id].doc.style.height=this.tooltips[id].firstheight;this.tooltips[id].doc.style.display="block";}};ZdcUserLayer.prototype.removeZdcTooltipById=function(id){if(this.tooltips[id]!=null){if(this.addmapstatus){this.doc.removeChild(this.tooltips[id].doc);}this.tooltips[id].doc.onmouseover=null;this.tooltips[id].doc.onmouseout=null;this.tooltips[id].doc.onclick=null;this.tooltips[id].doc.ondblclick=null;this.tooltips[id].doc.onmousedown=null;this.tooltips[id].doc.onmouseup=null;this.tooltips[id].doc.oncontextmenu=null;if(ZdcCommon.isiPhone()){this.tooltips[id].doc.ontouchstart=null;this.tooltips[id].doc.ontouchend=null;}ZdcEvent.clearInstanceListeners(this.tooltips[id]);this.tooltips[id]=null;}};ZdcUserLayer.prototype.removeZdcTooltip=function(_5e){var id=0;if(!_5e){return -1;}for(id=this.tooltips.length-1;id>=0;id--){if(this.tooltips[id]==_5e){break;}}if(id<0){return -1;}if(this.tooltips[id]==_5e){if(this.addmapstatus){this.doc.removeChild(this.tooltips[id].doc);}this.tooltips[id].doc.onmouseover=null;this.tooltips[id].doc.onmouseout=null;this.tooltips[id].doc.onclick=null;this.tooltips[id].doc.ondblclick=null;this.tooltips[id].doc.onmousedown=null;this.tooltips[id].doc.onmouseup=null;this.tooltips[id].doc.oncontextmenu=null;if(ZdcCommon.isiPhone()){this.tooltips[id].doc.ontouchstart=null;this.tooltips[id].doc.ontouchend=null;}ZdcEvent.clearInstanceListeners(this.tooltips[id]);this.tooltips[id]=null;return;}else{return -1;}};ZdcUserLayer.prototype.clearZdcTooltip=function(){for(var i=this.tooltips.length-1;i>=0;i--){if(this.tooltips[i]!=null){this.doc.removeChild(this.tooltips[i].doc);this.tooltips[i].doc.onmouseover=null;this.tooltips[i].doc.onmouseout=null;this.tooltips[i].doc.onclick=null;this.tooltips[i].doc.ondblclick=null;this.tooltips[i].doc.onmousedown=null;this.tooltips[i].doc.onmouseup=null;this.tooltips[i].doc.oncontextmenu=null;if(ZdcCommon.isiPhone()){this.tooltips[i].doc.ontouchstart=null;this.tooltips[i].doc.ontouchend=null;}ZdcEvent.clearInstanceListeners(this.tooltips[i]);this.tooltips[i]=null;}}};ZdcUserLayer.prototype.getTooltipById=function(id){if(this.tooltips[id]!=null){return this.tooltips[id];}else{return null;}};ZdcUserLayer.prototype.getTooltipCount=function(){this.tooltipcount=0;for(var i=0;i10209){return false;}this.doc.style.zIndex=idx;return true;};function ZdcUserMsgWindow(){this.openstatus=false;this.msgoffset=new ZdcPixel(0,0);this.msgpixel=new ZdcPixel(0,0);this.doc=document.createElement("DIV");this.doc.style.zIndex="10100";this.doc.style.position="absolute";this.basex=0;this.basey=0;this.baseoffsetx=0;this.baseoffsety=0;this.basedoc=document.createElement("DIV");this.basedoc.style.zIndex="3";this.basedoc.style.top=this.basex+"px";this.basedoc.style.left=this.basey+"px";this.basedoc.style.position="absolute";this.shadowdoc=document.createElement("DIV");this.shadowdoc.style.zIndex="2";this.shadowdoc.style.position="absolute";this.textbkdoc=document.createElement("DIV");this.textbkdoc.style.zIndex="4";this.textbkdoc.style.position="absolute";this.textdoc=document.createElement("DIV");this.textdoc.style.zIndex="6";this.textdoc.style.position="absolute";this.textdoc.style.top="0px";this.textdoc.style.left="0px";this.closedoc=document.createElement("DIV");this.closedoc.style.zIndex="5";this.closedoc.style.position="absolute";this.changedoc=document.createElement("DIV");this.changedoc.style.zIndex="5";this.changedoc.style.position="absolute";this.textdoc.onmousedown=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.textdoc.onmousemove=this.MouseMoveMsgWindow._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.textdoc.ontouchstart=this.MouseDblClickMsgWindow._bindAsEventListener(this);}this.textbkdoc.onmousedown=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.textbkdoc.onmousemove=this.MouseMoveMsgWindow._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.textbkdoc.ontouchstart=this.MouseDblClickMsgWindow._bindAsEventListener(this);}this.doc.ondblclick=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.doc.onclick=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.doc.oncontextmenu=this.MouseMoveMsgWindow._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.doc.ontouchend=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.doc.ongesturestart=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.doc.ongesturechange=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.doc.ongestureend=this.MouseDblClickMsgWindow._bindAsEventListener(this);this.doc.ontouchmove=this.MouseDblClickMsgWindow._bindAsEventListener(this);}this.closedoc.onclick=this.MouseCloseMsgWindow._bindAsEventListener(this);this.closedoc.onmouseover=this.MouseCloseOver._bindAsEventListener(this);this.closedoc.onmouseout=this.MouseCloseOut._bindAsEventListener(this);this.closedoc.onmousedown=this.MouseMoveMsgWindow._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.closedoc.ontouchstart=this.MouseMoveMsgWindow._bindAsEventListener(this);this.closedoc.ontouchend=this.MouseCloseMsgWindow._bindAsEventListener(this);}this.changedoc.onclick=this.MouseChangeMsgWindow._bindAsEventListener(this);this.changedoc.onmouseover=this.MouseChangeOver._bindAsEventListener(this);this.changedoc.onmouseout=this.MouseChangeOut._bindAsEventListener(this);this.changedoc.onmousedown=this.MouseMoveMsgWindow._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.changedoc.ontouchstart=this.MouseMoveMsgWindow._bindAsEventListener(this);this.changedoc.ontouchend=this.MouseChangeMsgWindow._bindAsEventListener(this);}this.doc.appendChild(this.basedoc);this.doc.appendChild(this.shadowdoc);this.doc.appendChild(this.textbkdoc);this.doc.appendChild(this.closedoc);this.doc.appendChild(this.changedoc);this.doc.appendChild(this.textdoc);this.AddMouseWheelListener(this.MouseDblClickMsgWindow._bindAsEventListener(this),false);ZdcObjArray.push(this);}ZdcUserMsgWindow.prototype.AddMouseWheelListener=function(_66,cap){if(this.textbkdoc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_66,cap);this.doc.addEventListener("mousewheel",_66,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_66);}}};ZdcUserMsgWindow.prototype.setImage=function(_68,_69,_6a,_6b,_6c,_6d,_6e,_6f,_70,_71,_72){this.baseimage=_68;this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_68+")";this.basedoc.style.width=_69.width+"px";this.basedoc.style.height=_69.height+"px";if(document.all&&!ZDC.isIE10){this.basedoc.innerHTML="";}else{this.basedoc.innerHTML="";}if(_6e!=null&&_6f!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_6e+")";this.shadowdoc.style.width=_6f.width+"px";this.shadowdoc.style.height=_6f.height+"px";if(document.all&&!ZDC.isIE10){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}}if(_6c!=null&&_6d!=null){this.closedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_6c+")";this.closedoc.style.width=_6d.width+"px";this.closedoc.style.height=_6d.height+"px";if(document.all&&!ZDC.isIE10){this.closedoc.innerHTML="";}else{this.closedoc.innerHTML="";}}if(_71!=null&&_72!=null){this.changedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_71+")";this.changedoc.style.width=_72.width+"px";this.changedoc.style.height=_72.height+"px";if(document.all&&!ZDC.isIE10){this.changedoc.innerHTML="";}else{this.changedoc.innerHTML="";}}if(_6a!=null&&_6b!=null){this.textbkdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_6a+")";this.textbkdoc.style.width=_6b.width+"px";this.textbkdoc.style.height=_6b.height+"px";this.textdoc.style.width=_6b.width+"px";this.textdoc.style.height=_6b.height+"px";if(document.all&&!ZDC.isIE10){this.textbkdoc.innerHTML="";}else{this.textbkdoc.innerHTML="";}}if(_70!=null){this.printimage=_70;}};ZdcUserMsgWindow.prototype.setTextClass=function(cls){this.textdoc.setAttribute("className",cls);this.textdoc.setAttribute("class",cls);};ZdcUserMsgWindow.prototype.setDocOffset=function(x,y){this.baseoffsetx=x;this.baseoffsety=y;};ZdcUserMsgWindow.prototype.setDocPosition=function(_76,_77,_78,_79,_7a,_7b,_7c,_7d,_7e,_7f){this.basedoc.style.top=_76+"px";this.basedoc.style.left=_77+"px";if(_7a!=null&&_7b!=null){this.closedoc.style.top=_7a+"px";this.closedoc.style.left=_7b+"px";}if(_7e!=null&&_7f!=null){this.changedoc.style.top=_7e+"px";this.changedoc.style.left=_7f+"px";}if(_7c!=null&&_7d!=null){this.shadowdoc.style.top=_7c+"px";this.shadowdoc.style.left=_7d+"px";}if(_78!=null&&_79!=null){this.textdoc.style.top=_78+"px";this.textdoc.style.left=_79+"px";this.textbkdoc.style.top=_78+"px";this.textbkdoc.style.left=_79+"px";}};ZdcUserMsgWindow.prototype.MouseChangeOver=function(e){if(document.all&&!ZDC.isIE10){this.changedoc.style.cursor="hand";}else{this.changedoc.style.cursor="pointer";}};ZdcUserMsgWindow.prototype.MouseChangeOut=function(e){this.changedoc.style.cursor="default";};ZdcUserMsgWindow.prototype.MouseChangeMsgWindow=function(e){this.pMap.usermsgwindowchangeflg=true;ZdcEvent.trigger(this.pMap,"usermsgclickwins");ZdcEvent.stopPropagation(e);};ZdcUserMsgWindow.prototype.MouseDblClickMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcUserMsgWindow.prototype.MouseMoveMsgWindow=function(_84){ZdcEvent.stopPropagation(_84);return false;};ZdcUserMsgWindow.prototype.MouseCloseMsgWindow=function(_85){this.closedoc.style.cursor="default";this.doc.style.visibility="hidden";this.pMap.closeUserMsgWindow();ZdcEvent.stopPropagation(_85);ZdcEvent.trigger(this.pMap,"usermsgclickclose");};ZdcUserMsgWindow.prototype.MouseCloseOver=function(_86){if(document.all&&!ZDC.isIE10){this.closedoc.style.cursor="hand";}else{this.closedoc.style.cursor="pointer";}};ZdcUserMsgWindow.prototype.MouseCloseOut=function(_87){this.closedoc.style.cursor="default";};ZdcUserMsgWindow.prototype.MouseDownDocNotPropaReturnFalse=function(_88){return false;};function ZdcMsgWindow(t){if(t!=null){this.type=Number(t);}else{this.type=99;}this.largeopen=false;this.largeonly=false;this.smallonly=false;this.openstatus=false;this.msgoffset=new ZdcPixel(0,0);this.doc=document.createElement("DIV");this.doc.style.zIndex="10100";this.doc.style.position="absolute";this.doclarge=document.createElement("DIV");this.doclarge.style.position="absolute";this.doclarge.style.width="247px";this.doclarge.style.height="154px";this.docsmall=document.createElement("DIV");this.docsmall.style.position="absolute";this.docsmall.style.width="247px";this.docsmall.style.height="54px";this.docchange=document.createElement("DIV");this.docchange.style.position="absolute";this.docclose=document.createElement("DIV");this.docclose.style.position="absolute";this.doctextlarge=document.createElement("DIV");this.doctextlarge.style.position="absolute";this.doctextsmall=document.createElement("DIV");this.doctextsmall.style.position="absolute";this.title=new Object();this.node=new Object();if(this.type!=99){if(this.type!=0){this.LargeImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large"+this.type+".png";this.SmallImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small"+this.type+".png";}else{this.LargeImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large"+this.type+".gif";this.SmallImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small"+this.type+".gif";}}else{this.LargeImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large.png";this.SmallImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small.png";}this.LargePrintImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large0.gif";this.SmallPrintImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small0.gif";this.CloseImage=ZdcCommon.ZdcMapServer+"/img/MsgWindowClose.png";this.ChgLargeImage=ZdcCommon.ZdcMapServer+"/img/MsgWindowChgLarge.png";this.ChgSmallImage=ZdcCommon.ZdcMapServer+"/img/MsgWindowChgSmall.png";if(document.all&&!ZDC.isIE10){if(this.type!=0){this.doclarge.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.LargeImage+")";this.docsmall.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.SmallImage+")";this.doclarge.innerHTML="";this.docsmall.innerHTML="";}else{this.doclarge.innerHTML="";this.docsmall.innerHTML="";}this.docclose.innerHTML="";}else{this.doclarge.innerHTML="";this.docsmall.innerHTML="";this.docclose.innerHTML="";}this.BaseX=0;this.BaseY=0;this.doclarge.style.left=this.BaseX+"px";this.doclarge.style.top=(this.BaseY-150)+"px";this.docsmall.style.left=this.BaseX+"px";this.docsmall.style.top=(this.BaseY-50)+"px";this.doctextlarge.style.left=(this.BaseX+7)+"px";this.doctextsmall.style.left=(this.BaseX+7)+"px";this.doctextlarge.style.top=(this.BaseY-140)+"px";this.doctextsmall.style.top=(this.BaseY-39)+"px";this.doctextsmall.style.clip="rect(-39px "+"240px "+"16px "+"0px)";this.docclose.style.left=(this.BaseX+217)+"px";if(this.largeopen){this.docclose.style.top=(this.BaseY-140)+"px";this.docchange.innerHTML="";this.docchange.style.top=(this.BaseY-127)+"px";this.docchange.style.left=(this.BaseX+217)+"px";}else{this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.innerHTML="";this.docchange.style.top=(this.BaseY-37)+"px";this.docchange.style.left=(this.BaseX+205)+"px";}this.Point=new ZdcPoint();this.doc.appendChild(this.doclarge);this.doc.appendChild(this.docsmall);this.doc.appendChild(this.docclose);this.doc.appendChild(this.docchange);this.doc.onmousedown=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.onclick=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.ondblclick=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.oncontextmenu=this.MouseDownCloseMsgWindow._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.doc.ontouchstart=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.ontouchend=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.ongesturestart=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.ongesturechange=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.ongestureend=this.MouseDownMsgWindow._bindAsEventListener(this);this.doc.ontouchmove=this.MouseDownMsgWindow._bindAsEventListener(this);}this.docclose.onmousedown=this.MouseDownCloseMsgWindow._bindAsEventListener(this);this.docclose.onclick=this.MouseCloseMsgWindow._bindAsEventListener(this);this.docclose.onmouseover=this.MouseCloseOver._bindAsEventListener(this);this.docclose.onmouseout=this.MouseCloseOut._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.docclose.ontouchstart=this.MouseDownCloseMsgWindow._bindAsEventListener(this);this.docclose.ontouchend=this.MouseCloseMsgWindow._bindAsEventListener(this);}this.docchange.onmousedown=this.MouseDownCloseMsgWindow._bindAsEventListener(this);this.docchange.onclick=this.MouseChangeMsgWindow._bindAsEventListener(this);this.docchange.onmouseover=this.MouseChangeOver._bindAsEventListener(this);this.docchange.onmouseout=this.MouseChangeOut._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.docchange.ontouchstart=this.MouseDownCloseMsgWindow._bindAsEventListener(this);this.docchange.ontouchend=this.MouseChangeMsgWindow._bindAsEventListener(this);}this.docsmall.onmousedown=this.MouseDownDocNotPropaReturnFalse._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.docsmall.ontouchstart=this.MouseDownDocNotPropaReturnFalse._bindAsEventListener(this);}this.doclarge.onmousedown=this.MouseDownDocNotPropaReturnFalse._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.doclarge.ontouchstart=this.MouseDownDocNotPropaReturnFalse._bindAsEventListener(this);}this.AddMouseWheelListener(this.MouseDownMsgWindow._bindAsEventListener(this),true);ZdcObjArray.push(this);}ZdcMsgWindow.prototype.AddMouseWheelListener=function(_8a,cap){if(this.doc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_8a,cap);this.doc.addEventListener("mousewheel",_8a,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_8a);}}};ZdcMsgWindow.prototype.MouseDownDocNotPropaReturnFalse=function(e){return false;};ZdcMsgWindow.prototype.MouseDownMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseCloseOver=function(e){if(document.all&&!ZDC.isIE10){this.docclose.style.cursor="hand";}else{this.docclose.style.cursor="pointer";}};ZdcMsgWindow.prototype.MouseChangeOver=function(e){if(document.all&&!ZDC.isIE10){this.docchange.style.cursor="hand";}else{this.docchange.style.cursor="pointer";}};ZdcMsgWindow.prototype.MouseCloseOut=function(e){this.docclose.style.cursor="default";};ZdcMsgWindow.prototype.MouseChangeOut=function(e){this.docchange.style.cursor="default";};ZdcMsgWindow.prototype.MouseDownCloseMsgWindow=function(e){ZdcEvent.stopPropagation(e);return false;};ZdcMsgWindow.prototype.MouseCloseMsgWindow=function(e){this.pMap.msgopenstatus=false;if(ZdcCommon.UserAgentIsFireFox()){this.pMap.SetMsgWindowOnDrag();}this.openstatus=false;this.hiddenMsg();ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseChangeMsgWindow=function(e){if(this.largeopen){this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.style.top=(this.BaseY-37)+"px";this.docchange.style.left=(this.BaseX+205)+"px";this.visibleSmallMsg();this.largeopen=false;}else{this.docclose.style.top=(this.BaseY-140)+"px";this.docchange.style.top=(this.BaseY-127)+"px";this.docchange.style.left=(this.BaseX+217)+"px";this.visibleLargeMsg();this.largeopen=true;}ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.visibleMsg=function(){if(this.largeopen){this.doclarge.style.visibility="visible";this.doctextlarge.style.visibility="visible";this.docchange.innerHTML="";}else{this.docsmall.style.visibility="visible";this.doctextsmall.style.visibility="visible";if(!this.smallonly){this.docchange.innerHTML="";}}if(this.largeonly||this.smallonly){this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docclose.style.visibility="visible";};ZdcMsgWindow.prototype.hiddenMsg=function(){this.doclarge.style.visibility="hidden";this.docsmall.style.visibility="hidden";this.docchange.style.visibility="hidden";this.docclose.style.visibility="hidden";this.doctextsmall.style.visibility="hidden";this.doctextlarge.style.visibility="hidden";while(this.doctextlarge.lastChild!=null){this.doctextlarge.removeChild(this.doctextlarge.lastChild);}while(this.doctextsmall.lastChild!=null){this.doctextsmall.removeChild(this.doctextsmall.lastChild);}if(!this.largeonly){this.largeopen=false;this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.style.top=(this.BaseY-37)+"px";this.docchange.style.left=(this.BaseX+217)+"px";}ZdcEvent.trigger(this.pMap,"closemsgwindow");};ZdcMsgWindow.prototype.visibleLargeMsg=function(){this.doclarge.style.visibility="visible";this.docsmall.style.visibility="hidden";this.doctextlarge.style.visibility="visible";this.doctextsmall.style.visibility="hidden";this.docclose.style.visibility="visible";if(this.largeonly){this.docclose.style.top=(this.BaseY-140)+"px";this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docchange.innerHTML="";this.largeopen=true;};ZdcMsgWindow.prototype.visibleSmallMsg=function(){this.doclarge.style.visibility="hidden";this.docsmall.style.visibility="visible";this.doctextlarge.style.visibility="hidden";this.doctextsmall.style.visibility="visible";this.docclose.style.visibility="visible";this.docchange.style.left=(this.BaseX+205)+"px";if(this.smallonly){this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docchange.innerHTML="";this.largeopen=false;};ZdcMsgWindow.prototype.getStatus=function(){return this.openstatus;};function ZdcMapCenter(_95){this.doc=document.createElement("DIV");this.doc.setAttribute("id","mapcenter");this.doc.style.position="absolute";this.doc.style.zIndex="10040";this.doc.style.filter="alpha(opacity=100)";this.doc.style.mozOpacity="1.0";this.doc.style.opacity="1.0";if(_95==null){this.type=1;}else{this.type=Number(_95);}switch(this.type){case 1:default:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter.gif";this.offset=new ZdcPixel(-11,-11);this.doc.style.width="22px";this.doc.style.height="22px";break;case 2:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter1.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter1.gif";this.offset=new ZdcPixel(-7,-7);this.doc.style.width="14px";this.doc.style.height="14px";break;case 3:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter2.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter2.gif";this.offset=new ZdcPixel(-15,-15);this.doc.style.width="30px";this.doc.style.height="30px";break;case 4:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter3.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter3.gif";this.offset=new ZdcPixel(-13,-13);this.doc.style.width="26px";this.doc.style.height="26px";break;case 5:this.image=ZdcCommon.ZdcMapServer+"/img/icon-center.gif";this.printimage=ZdcCommon.ZdcMapServer+"/img/icon-center.gif";this.offset=new ZdcPixel(-5,-5);this.doc.style.width="10px";this.doc.style.height="10px";break;case 6:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter4.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter4.gif";this.offset=new ZdcPixel(-11,-11);this.doc.style.width="22px";this.doc.style.height="22px";break;}if(typeof (_95)=="object"){if(_95.image!=""&&_95.offset!=""){this.type=null;this.image=_95.image;this.offset=_95.offset;}}if(document.all&&!ZDC.isIE10){this.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.image+")";this.doc.innerHTML="";}else{this.doc.innerHTML="";}this.id="Center_1_1";ZdcObjArray.push(this);}function ZdcMapCenterInfoBox(f){if(f!=null){if(f<3){this.type=f;}else{this.type=1;}}else{this.type=1;}this.doc1=document.createElement("DIV");this.doc1.setAttribute("id","infobox1");this.doc2=document.createElement("DIV");this.doc2.setAttribute("id","infobox2");this.doc1.style.zIndex="10050";this.doc2.style.zIndex="10050";this.id="CenterInfo_1_1";if(this.type==1){this.doc1.style.filter="alpha(opacity=75)";this.doc1.style.mozOpacity="0.75";this.doc1.style.opacity="0.75";}else{this.doc1.style.filter="alpha(opacity=50)";this.doc1.style.mozOpacity="0.5";this.doc1.style.opacity="0.5";}this.doc2.style.filter="alpha(opacity=100)";this.doc2.style.mozOpacity="1.0";this.doc2.style.opacity="1.0";if(this.type==1){this.ZdcCenterInfoImage=ZdcCommon.ZdcMapServer+"/img/CenterInfoBox.png";}else{this.ZdcCenterInfoImage=ZdcCommon.ZdcMapServer+"/img/CenterInfoBox2.png";}ZdcObjArray.push(this);}ZdcMapCenterInfoBox.prototype.OnMouseDownDoc=function(_97){ZdcEvent.stopPropagation(_97);return false;};ZdcMapCenterInfoBox.prototype.OnMouseDblClickDoc=function(_98){ZdcEvent.stopPropagation(_98);return false;};function ZdcScaleBar(f){if(f!=null){if(f==1||f==2||f==3){this.type=f;}else{this.type=1;}}else{this.type=1;}this.doc1=document.createElement("DIV");this.doc2=document.createElement("DIV");this.doc1.setAttribute("id","scalebar1");this.doc2.setAttribute("id","scalebar2");this.doc1.style.zIndex="10030";this.doc2.style.zIndex="10030";if(this.type==1){this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase.gif";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase";}else{if(this.type==2){this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBar2.png";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase";}else{if(this.type==3){this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase.gif";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBar3_";}else{this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase.gif";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase";}}}this.id="ScaleBar_1_1";if(this.type==1){this.doc1.style.filter="alpha(opacity=75)";this.doc1.style.mozOpacity="0.75";this.doc1.style.opacity="0.75";}else{this.doc1.style.filter="alpha(opacity=100)";this.doc1.style.mozOpacity="1.0";this.doc1.style.opacity="1.0";}this.doc2.style.filter="alpha(opacity=100)";this.doc2.style.mozOpacity="1.0";this.doc2.style.opacity="1.0";ZdcObjArray.push(this);}ZdcScaleBar.prototype.OnMouseDownDoc=function(_9a){ZdcEvent.stopPropagation(_9a);return false;};ZdcScaleBar.prototype.OnMouseDblClickDoc=function(_9b){ZdcEvent.stopPropagation(_9b);return false;};function ZdcUserControl(){this.basetop=0;this.baseleft=0;this.doc=document.createElement("DIV");this.doc.setAttribute("id","usercontrol");this.doc.style.zIndex="10200";this.doc.style.position="absolute";this.doc.style.webkitUserSelect="none";this.basedoc=document.createElement("DIV");this.basedoc.style.position="absolute";this.basedoc.style.zIndex="2";this.shadowdoc=document.createElement("DIV");this.shadowdoc.style.position="absolute";this.shadowdoc.style.zIndex="1";this.doc.appendChild(this.shadowdoc);this.doc.appendChild(this.basedoc);if(ZdcCommon.UserAgentIsSafari()){this.mousecursor="default";this.basedoc.style.cursor="default";}else{this.mousecursor="hand";if(document.all&&!ZDC.isIE10){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}}this.actionid=0;this.aid=1;this.action=new Array();for(var i=1;i<10;i++){var _9d=new ZdcPixel(0,0);var _9e=new ZdcPixel(0,0);this.action[i]=new Object();this.action[i].box=new ZdcPixelBox(_9d,_9e);}this.doc.onmousedown=this.OnMouseDownDoc._bindAsEventListener(this);this.doc.onmouseup=this.OnMouseUpDoc._bindAsEventListener(this);this.doc.onclick=this.OnMouseClickDoc._bindAsEventListener(this);this.doc.ondblclick=this.OnMouseDblClickDoc._bindAsEventListener(this);this.doc.onmousemove=this.OnMouseMoveDoc._bindAsEventListener(this);this.doc.onmouseover=this.OnMouseOverDoc._bindAsEventListener(this);this.doc.onmouseout=this.OnMouseOutDoc._bindAsEventListener(this);this.doc.oncontextmenu=this.ConTextMenu._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.doc.ontouchstart=this.OnMouseUpDoc._bindAsEventListener(this);this.doc.ontouchend=this.OnMouseDownDoc._bindAsEventListener(this);}ZdcObjArray.push(this);}ZdcUserControl.prototype.setMouseCursor=function(_9f,_a0,_a1){if(ZdcCommon.UserAgentIsSafari()){return -1;}if(_9f=="users"){this.cursorflg=true;this.usercursor1=_a0;this.usercursor2=_a1;this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(_9f!="default"&&_9f!="hand"){return -1;}this.cursorflg=false;this.mousecursor=_9f;if(this.mousecursor=="hand"){if(document.all&&!ZDC.isIE10){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}}if(this.mousecursor=="default"){this.basedoc.style.cursor="default";}}};ZdcUserControl.prototype.setImage=function(_a2,_a3,_a4,_a5){this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_a2+")";this.basedoc.style.width=_a3.width+"px";this.basedoc.style.height=_a3.height+"px";if(document.all&&!ZDC.isIE10){this.basedoc.innerHTML="";}else{this.basedoc.innerHTML="";}if(_a4!=null&&_a5!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_a4+")";this.shadowdoc.style.width=_a5.width+"px";this.shadowdoc.style.height=_a5.height+"px";if(document.all&&!ZDC.isIE10){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}}};ZdcUserControl.prototype.setDocPosition=function(_a6,_a7,_a8,_a9){this.basedoc.style.left=(this.baseleft+_a7)+"px";this.basedoc.style.top=(this.basetop+_a6)+"px";if(_a8!=null&&_a9!=null){this.shadowdoc.style.left=(this.baseleft+Number(_a9))+"px";this.shadowdoc.style.top=(this.baseleft+Number(_a8))+"px";}};ZdcUserControl.prototype.OnMouseMoveDoc=function(_aa){ZdcEvent.stopPropagation(_aa);};ZdcUserControl.prototype.OnMouseOverDoc=function(_ab){ZdcEvent.stopPropagation(_ab);ZdcEvent.trigger(this,"mouseover");};ZdcUserControl.prototype.OnMouseOutDoc=function(_ac){ZdcEvent.stopPropagation(_ac);if(!ZdcCommon.isiPhone()){ZdcEvent.trigger(this,"mouseout");}};ZdcUserControl.prototype.OnMouseUpDoc=function(_ad){if(_ad.button==2){return;}this.actionid=0;if(document.all){var x=_ad.offsetX;var y=_ad.offsetY;}else{if(ZdcCommon.isiPhone()){var x=_ad.touches[0].clientX-parseInt(this.pMap.ZdcMapBase.style.left)-(parseInt(this.doc.style.left)+this.pMap.ZdcMapTileLeftpx);var y=_ad.touches[0].clientY-parseInt(this.pMap.ZdcMapBase.style.top)-(parseInt(this.doc.style.top)+this.pMap.ZdcMapTileToppx);ZdcEvent.trigger(this,"clickend");ZdcEvent.trigger(this,"mouseover");}else{if(_ad.offsetX==null){var x=_ad.layerX;var y=_ad.layerY;}else{var x=_ad.offsetX;var y=_ad.offsetY;}}}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.trigger(this,"mouseup");};ZdcUserControl.prototype.OnMouseDownDoc=function(_b1){if(_b1.button==2){return;}this.actionid=0;if(_b1.offsetX==null){var x=_b1.layerX;var y=_b1.layerY;}else{var x=_b1.offsetX;var y=_b1.offsetY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_b1);ZdcEvent.trigger(this,"mousedown");return false;};ZdcUserControl.prototype.OnMouseDblClickDoc=function(_b5){this.actionid=0;if(_b5.offsetX==null){var x=_b5.layerX;var y=_b5.layerY;}else{var x=_b5.offsetX;var y=_b5.offsetY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_b5);ZdcEvent.trigger(this,"dblclickend");};ZdcUserControl.prototype.OnMouseClickDoc=function(_b9){this.actionid=0;if(_b9.offsetX==null){var x=_b9.layerX;var y=_b9.layerY;}else{var x=_b9.offsetX;var y=_b9.offsetY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_b9);ZdcEvent.trigger(this,"clickend");};ZdcUserControl.prototype.ConTextMenu=function(_bd){ZdcEvent.stopPropagation(_bd);return false;};ZdcUserControl.prototype.setAction=function(_be,px1,py1,px2,py2){this.action[this.aid].box.pxl1.x=px1;this.action[this.aid].box.pxl1.y=py1;this.action[this.aid].box.pxl2.x=px2;this.action[this.aid].box.pxl2.y=py2;this.action[this.aid].act=_be;this.aid++;};function ZdcUserZoomControl(){this.basetop=0;this.baseleft=0;this.doc=document.createElement("DIV");this.doc.setAttribute("id","userzoomcontrol");this.doc.style.zIndex="10200";this.doc.style.position="absolute";this.basedoc=document.createElement("DIV");this.basedoc.style.position="absolute";this.basedoc.id="basedoc";this.shadowdoc=document.createElement("DIV");this.shadowdoc.style.position="absolute";this.shadowdoc.id="shadowdoc";this.griddoc=document.createElement("DIV");this.griddoc.style.position="absolute";this.griddoc.id="griddoc";if(ZdcCommon.UserAgentIsSafari()){this.mousecursor="default";this.doc.style.cursor="default";}else{this.mousecursor="hand";if(document.all&&!ZDC.isIE10){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}this.doc.appendChild(this.shadowdoc);this.doc.appendChild(this.basedoc);this.doc.appendChild(this.griddoc);this.actionid="none";this.actionx=0;this.actiony=0;this.aid=1;this.setDocPositionX=0;this.setDocPositionY=0;this.gridBasePositionX=0;this.gridBasePositionY=0;this.ToolTipBasePositionX=0;this.ToolTipBasePositionY=0;this.addPositionX=0;this.addPositionY=0;this.zoomstart=0;this.zoomend=0;this.zoomslithersize=0;this.slithertype=1;this.zoomMax=18;this.zoomMin=1;this.zoomLimit=this.zoomMax-this.zoomMin+1;this.dragx=0;this.dragy=0;this.dragscreenx=0;this.dragscreeny=0;this.newscreenx=0;this.newscreeny=0;this.slithermovestatus=false;this.dragstatus=false;this.dragtype=1;this.tooltipimg=null;this.tootipsize=null;this.doctooltip=null;this.tooltipid=null;this.action=new Array();for(var i=1;i<5;i++){var _c4=new ZdcPixel(0,0);var _c5=new ZdcPixel(0,0);this.action[i]=new Object();this.action[i].box=new ZdcPixelBox(_c4,_c5);}this.doc.onmousedown=this.OnMouseDownDoc._bindAsEventListener(this);this.doc.onclick=this.OnMouseClickDoc._bindAsEventListener(this);this.doc.ondblclick=this.OnMouseDblClickDoc._bindAsEventListener(this);this.doc.onmouseup=this.OnMouseUpDoc._bindAsEventListener(this);this.doc.onmousemove=this.OnMouseMoveDoc._bindAsEventListener(this);this.doc.onmouseover=this.MouseOver._bindAsEventListener(this);this.doc.onmouseout=this.MouseOut._bindAsEventListener(this);this.griddoc.onclick=this.OnMouseClickGridDoc._bindAsEventListener(this);this.griddoc.onmousedown=this.OnMouseDownGridDoc._bindAsEventListener(this);this.griddoc.onmousemove=this.OnMouseMoveGridDoc._bindAsEventListener(this);this.griddoc.onmouseup=this.OnMouseUpGridDoc._bindAsEventListener(this);this.doc.oncontextmenu=this.ConTextMenu._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.doc.ontouchstart=this.OnMouseUpDoc._bindAsEventListener(this);}ZdcObjArray.push(this);}ZdcUserZoomControl.prototype.setMouseCursor=function(_c6,_c7,_c8){if(ZdcCommon.UserAgentIsSafari()){return -1;}if(_c6=="users"){this.cursorflg=true;this.usercursor1=_c7;this.usercursor2=_c8;this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(_c6!="default"&&_c6!="hand"){return -1;}this.cursorflg=false;this.mousecursor=_c6;if(this.mousecursor=="hand"){if(document.all&&!ZDC.isIE10){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}if(this.mousecursor=="default"){this.basedoc.style.cursor="default";this.griddoc.style.cursor="default";}}};ZdcUserZoomControl.prototype.SetZoomTipImage=function(_c9,_ca,_cb){this.setZoomTipImage(_c9,_ca,_cb);};ZdcUserZoomControl.prototype.setZoomTipImage=function(_cc,_cd,_ce){this.tootipimg=_cc;this.tooltipsize=new ZdcSize(_cd.width,_cd.height);this.tooltipoffset=_ce;this.doctooltip=document.createElement("DIV");this.doctooltip.id="userzoomcontroltooltip";this.doctooltip.style.zIndex=10090;this.doctooltip.style.position="absolute";this.doctooltip.style.visibility="hidden";this.doctooltip.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_cc+")";this.doctooltip.style.width=_cd.width;this.doctooltip.style.height=_cd.height;if(document.all&&!ZDC.isIE10){this.doctooltip.innerHTML="";}else{this.doctooltip.innerHTML="";}};ZdcUserZoomControl.prototype.setImage=function(_cf,_d0,_d1,_d2,_d3,_d4){this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_cf+")";this.basedoc.style.width=_d0.width+"px";this.basedoc.style.height=_d0.height+"px";if(document.all&&!ZDC.isIE10){this.basedoc.innerHTML="";}else{this.basedoc.innerHTML="";}if(_d1!=null&&_d2!=null){if(document.all&&!ZDC.isIE10){this.griddoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d1+")";this.griddoc.style.width=_d2.width+"px";this.griddoc.style.height=_d2.height+"px";this.griddoc.innerHTML="";}else{this.griddoc.style.width=_d2.width+"px";this.griddoc.style.height=_d2.height+"px";this.griddoc.innerHTML="";}}if(_d3!=null&&_d4!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d3+")";this.shadowdoc.style.width=_d4.width+"px";this.shadowdoc.style.height=_d4.height+"px";if(document.all&&!ZDC.isIE10){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}}};ZdcUserZoomControl.prototype.setZoomLimit=function(s1,s2){var vs1=parseInt(s1);var vs2=parseInt(s2);if(vs1=0&&Number(vs2)<19){this.zoomMin=vs1;this.zoomMax=vs2;this.zoomLimit=this.zoomMax-this.zoomMin+1;}else{return -1;}};ZdcUserZoomControl.prototype.setDocPosition=function(_d9,_da,_db,_dc){this.basedoc.style.left=_da+"px";this.basedoc.style.top=_d9+"px";if(_db!=null&&_dc!=null){this.shadowdoc.style.left=_dc+"px";this.shadowdoc.style.top=_db+"px";}this.setDocPositionY=_d9;this.setDocPositionX=_da;if(this.slithertype==1){this.griddoc.style.left=parseInt(this.gridBasePositionX)+(_da)+"px";this.griddoc.style.top=parseInt(this.addPositionY)+parseInt(this.gridBasePositionY)+(_d9)+"px";}else{this.griddoc.style.left=parseInt(this.addPositionX)+parseInt(this.gridBasePositionX)+(_da)+"px";this.griddoc.style.top=parseInt(this.gridBasePositionY)+(_d9)+"px";}if(this.doctooltip!=null){this.doctooltip.style.top=parseInt(this.ToolTipBasePositionY)+_d9+"px";this.doctooltip.style.left=parseInt(this.ToolTipBasePositionX)+_da+"px";}this.setSlitherPosition();};ZdcUserZoomControl.prototype.setAction=function(_dd,px1,py1,px2,py2){this.action[this.aid].box.pxl1.x=px1;this.action[this.aid].box.pxl1.y=py1;this.action[this.aid].box.pxl2.x=px2;this.action[this.aid].box.pxl2.y=py2;this.action[this.aid].act=_dd;if(_dd=="slither"){if(Math.abs(py2-py1)>Math.abs(px2-px1)){this.slithertype=1;this.zoomstart=py1;this.zoomend=py2;this.zoomslithersize=Math.abs(py2-py1);this.griddoc.style.left=px1+"px";this.gridBasePositionX=px1+"px";this.gridBasePositionY="0px";this.griddoc.style.top="0px";}else{this.slithertype=2;this.zoomstart=px1;this.zoomend=px2;this.zoomslithersize=Math.abs(px2-px1);this.griddoc.style.top=py1+"px";this.gridBasePositionX="0px";this.gridBasePositionY=py1+"px";this.griddoc.style.left="0px";}this.setSlitherPosition();}this.aid++;};ZdcUserZoomControl.prototype.OnMouseMoveGridDoc=function(_e2){if(ZdcDrag.IsDragging()){if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}return false;}ZdcEvent.stopPropagation(_e2);ZdcEvent.trigger(this,"mousemovegrid");return false;};ZdcUserZoomControl.prototype.OnMouseClickGridDoc=function(_e3){ZdcEvent.stopPropagation(_e3);ZdcEvent.trigger(this,"mouseclickgrid");return false;};ZdcUserZoomControl.prototype.OnMouseDownGridDoc=function(_e4){if(!this.dragstatus){this.actionid="slither";this.dragscreenx=_e4.screenX;this.dragscreeny=_e4.screenY;if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor2+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";}}}ZdcEvent.stopPropagation(_e4);ZdcEvent.trigger(this,"mousedowngrid");return false;};ZdcUserZoomControl.prototype.OnMouseUpGridDoc=function(_e5){if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}ZdcEvent.trigger(this,"mouseup");return false;};ZdcUserZoomControl.prototype.OnMouseDblClickDoc=function(_e6){ZdcEvent.stopPropagation(_e6);ZdcEvent.trigger(this,"dblclickend");};ZdcUserZoomControl.prototype.OnMouseMoveDoc=function(_e7){if(ZdcDrag.IsDragging()){return false;}return false;};ZdcUserZoomControl.prototype.MouseOver=function(_e8){if(this.doctooltip){this.doctooltip.style.visibility="visible";}ZdcEvent.stopPropagation(_e8);ZdcEvent.trigger(this,"mouseover");};ZdcUserZoomControl.prototype.MouseOut=function(_e9){if(this.doctooltip){if(document.all){if(!window.event||window.event.type!="mouseout"){return;}var t=window.event.toElement;var _eb=false;while(t){if(t==this.doc){_eb=true;break;}t=t.parentElement;}if(!_eb){this.doctooltip.style.visibility="hidden";}}else{this.doctooltip.style.visibility="hidden";}}ZdcEvent.stopPropagation(_e9);if(!ZdcCommon.isiPhone()){ZdcEvent.trigger(this,"mouseout");}};ZdcUserZoomControl.prototype.OnMouseDownDoc=function(_ec){if(_ec.button==2){return;}ZdcEvent.stopPropagation(_ec);if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}this.zomDownflg=true;ZdcEvent.trigger(this,"mousedown");return false;};ZdcUserZoomControl.prototype.OnMouseUpDoc=function(_ed){if(_ed.button==2){return;}if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}if(ZdcCommon.isiPhone()){var x=_ed.touches[0].clientX-parseInt(this.pMap.ZdcMapBase.style.left)-(parseInt(this.doc.style.left)+this.pMap.ZdcMapTileLeftpx);var y=_ed.touches[0].clientY-parseInt(this.pMap.ZdcMapBase.style.top)-(parseInt(this.doc.style.top)+this.pMap.ZdcMapTileToppx);this.actionx=x;this.actiony=y;for(var i=1;i<5;i++){if(this.action[i].box.isContainPixel(x,y)&&this.action[i].act!="slither"){this.actionid=this.action[i].act;break;}}}else{if(this.zomDownflg){this.actionid="none";if(_ed.offsetX==null){var x=_ed.layerX;var y=_ed.layerY;}else{var x=_ed.offsetX;var y=_ed.offsetY;}this.actionx=x;this.actiony=y;for(var i=1;i<5;i++){if(this.action[i].box.isContainPixel(x,y)&&this.action[i].act!="slither"){this.actionid=this.action[i].act;break;}}this.zomDownflg=false;}}ZdcEvent.stopPropagation(_ed);ZdcEvent.trigger(this,"mouseup");};ZdcUserZoomControl.prototype.OnMouseClickDoc=function(_f1){ZdcEvent.stopPropagation(_f1);ZdcEvent.trigger(this,"clickend");};ZdcUserZoomControl.prototype.getZoom=function(){if(this.slithertype==1){var s=Math.floor((this.actiony-this.zoomstart)/(this.zoomslithersize/this.zoomLimit));}else{var s=Math.floor((this.actionx-this.zoomstart)/(this.zoomslithersize/this.zoomLimit));}if(this.dragtype==1){s=s+this.zoomMin;}else{s=this.zoomMax-s;}if(s>this.zoomMax){s=this.zoomMax;}if(s_f8){this.griddoc.style.top=this.zoomstart+this.setDocPositionY+"px";this.dragy=this.zoomstart;this.dragscreeny=this.zoomstart;this.zoomImage();}else{if(this.zoomlim<_f8){this.griddoc.style.top=this.zoomlim+this.setDocPositionY+"px";this.dragy=this.zoomlim;this.dragscreeny=this.zoomlim;this.zoomImage();}else{if(Math.abs(this.dragscreeny-this.newscreeny)>=this.zoomheight){heightcnt=Math.round((_f8-this.zoomstart)/(this.zoomheight));heightpx=this.zoomstart+Math.round(heightcnt*this.zoomheight);this.griddoc.style.top=heightpx+this.setDocPositionY+"px";this.dragy=_f8;this.dragscreeny=this.newscreeny;this.zoomImage();}}}}else{this.newscreenx=e.screenX;if(this.dragflg){this.dragscreenfrom=e.screenX;this.dragflg=false;}var _f8=this.dragfrom-(this.dragscreenfrom-this.newscreenx);if(this.zoomstart>_f8){this.griddoc.style.left=this.zoomstart+this.setDocPositionX+"px";this.dragx=this.zoomstart;this.dragscreenx=this.zoomstart;this.zoomImage();}else{if(this.zoomlim<_f8){this.griddoc.style.left=this.zoomlim+this.setDocPositionX+"px";this.dragx=this.zoomlim;this.dragscreenx=this.zoomlim;this.zoomImage();}else{if(Math.abs(this.dragscreenx-this.newscreenx)>=this.zoomheight){heightcnt=Math.round((_f8-this.zoomstart)/(this.zoomheight));heightpx=this.zoomstart+Math.round(heightcnt*this.zoomheight);this.griddoc.style.left=heightpx+this.setDocPositionX+"px";this.dragx=_f8;this.dragscreenx=this.newscreenx;this.zoomImage();}}}}}};ZdcUserZoomControl.prototype.zoomImage=function(){this.pMap.ZdcZoomChangeImage.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner1.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner2.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner3.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner4.style.visibility="visible";this.pMap.ZdcZoomChangeImage.style.filter="alpha(opacity=99)";this.pMap.ZdcZoomChangeImage.style.mozOpacity="0.99";this.pMap.ZdcZoomChangeImage.style.opacity="0.99";if(this.slithertype==1){var s=Math.floor((this.dragy-this.zoomstart)/(this.zoomslithersize/this.zoomLimit));}else{var s=Math.floor((this.dragx-this.zoomstart)/(this.zoomslithersize/this.zoomLimit));}if(this.dragtype==1){s=s+this.zoomMin;}else{s=this.zoomMax-s;}if(s>this.zoomMax){s=this.zoomMax;}if(s";this.pMap.ZdcZoomChangeImage.style.position="absolute";if(document.all&&!ZDC.isIE10){this.pMap.ZdcZoomChangeImageCorner1.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_101+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_102+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_101+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_102+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_fd+")";this.pMap.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_fe+")";this.pMap.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_ff+")";this.pMap.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img4+")";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}else{this.pMap.ZdcZoomChangeImageCorner1.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_101+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_102+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_101+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_102+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}this.pMap.ZdcZoomChangeImageCorner1.style.width="20px";this.pMap.ZdcZoomChangeImageCorner1.style.height="20px";this.pMap.ZdcZoomChangeImageCorner1.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner2.style.width="20px";this.pMap.ZdcZoomChangeImageCorner2.style.height="20px";this.pMap.ZdcZoomChangeImageCorner2.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner3.style.width="20px";this.pMap.ZdcZoomChangeImageCorner3.style.height="20px";this.pMap.ZdcZoomChangeImageCorner3.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner4.style.width="20px";this.pMap.ZdcZoomChangeImageCorner4.style.height="20px";this.pMap.ZdcZoomChangeImageCorner4.style.position="absolute";};function ZdcControl(f,opts){if(f!=null){this.type=Number(f);if(this.type>3||this.type<1){this.type=3;}}else{this.type=3;}this.largeonly=false;this.smallonly=false;this.BaseX=5;this.BaseY=0;this.Slither=false;this.SlitherPixelY=0;this.zoomstart=74;this.zoomheight=13;this.zoomend=307;this.doc=document.createElement("DIV");this.doc.setAttribute("id","control");this.doc.style.zIndex="10200";this.doc.style.position="absolute";this.mousecursor="default";this.doc.style.cursor="default";this.doc.style.webkitUserSelect="none";this.basedoc=document.createElement("DIV");this.basedoc.style.zIndex="10";this.basedoc.style.filter="alpha(opacity=100)";this.scaledoc=document.createElement("DIV");this.scaledoc.style.zIndex="80";this.scaledoc.style.width="62px";this.scaledoc.style.height="34px";this.scaledoc.style.filter="alpha(opacity=100)";this.scaleseldoc=document.createElement("DIV");this.scaleseldoc.style.zIndex="50";this.scaleslitherdoc=document.createElement("DIV");this.scaleslitherdoc.style.zIndex="50";this.changedoc=document.createElement("DIV");this.changedoc.style.zIndex="90";this.changedoc.style.filter="alpha(opacity=100)";this.basedoc.style.mozOpacity="1.0";this.basedoc.style.opacity="1.0";this.scaledoc.style.mozOpacity="1.0";this.scaledoc.style.opacity="1.0";this.changedoc.style.mozOpacity="1.0";this.changedoc.style.opacity="1.0";this.shadowlargedoc=document.createElement("DIV");this.shadowsmalldoc=document.createElement("DIV");switch(this.type){case 1:this.CtlImage=ZdcCommon.ZdcMapServer+"/img/Control1.png";this.CtlSmallImage=ZdcCommon.ZdcMapServer+"/img/ControlSmall1.png";this.CtlChgImage=ZdcCommon.ZdcMapServer+"/img/ControlChange1.png";this.CtlNoChgImage=ZdcCommon.ZdcMapServer+"/img/ControlNoChange1.png";this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/cursorscale0.png";this.CtlScaleSelImage=ZdcCommon.ZdcMapServer+"/img/ControlScaleSelect.png";this.CtlScaleSlitherImage=ZdcCommon.ZdcMapServer+"/img/ControlSlither1.png";this.id="Control_1_1";this.width=60;this.height=320;this.doc.style.width="70px";this.doc.style.height="92px";this.doc.style.filter="alpha(opacity=60)";this.doc.style.mozOpacity="0.6";this.doc.style.opacity="0.6";this.changedoc.style.left=(this.BaseX+48)+"px";this.changedoc.style.top=(this.BaseY+66)+"px";this.scaledoc.style.left=(this.BaseX-3)+"px";this.scaledoc.style.top=(this.BaseY+100)+"px";this.scaleseldoc.style.left=(this.BaseX+1)+"px";this.scaleslitherdoc.style.left=(this.BaseX+53)+"px";break;case 2:this.CtlImage=ZdcCommon.ZdcMapServer+"/img/Control2.png";this.CtlSmallImage=ZdcCommon.ZdcMapServer+"/img/ControlSmall2.png";this.CtlChgImage=ZdcCommon.ZdcMapServer+"/img/ControlChange2.png";this.CtlNoChgImage=ZdcCommon.ZdcMapServer+"/img/ControlNoChange2.png";this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/cursorscale0.png";this.CtlScaleSelImage=ZdcCommon.ZdcMapServer+"/img/ControlScaleSelect2.png";this.CtlScaleSlitherImage=ZdcCommon.ZdcMapServer+"/img/ControlSlither2.png";this.id="Control_1_2";this.width=60;this.height=320;this.changedoc.style.left=(this.BaseX+48)+"px";this.changedoc.style.top=(this.BaseY+62)+"px";this.scaledoc.style.left=(this.BaseX+2)+"px";this.scaledoc.style.top=(this.BaseY+100)+"px";this.scaleseldoc.style.left=(this.BaseX+9)+"px";this.scaleseldoc.style.width="45px";this.scaleslitherdoc.style.left=(this.BaseX+44)+"px";break;case 3:default:this.CtlImage=ZdcCommon.ZdcMapServer+"/img/Control3.png";this.CtlSmallImage=ZdcCommon.ZdcMapServer+"/img/ControlSmall3.png";this.CtlChgImage=ZdcCommon.ZdcMapServer+"/img/ControlChange3.png";this.CtlNoChgImage=ZdcCommon.ZdcMapServer+"/img/ControlNoChange3.png";this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/ControlScale.png";this.CtlScaleSelImage=ZdcCommon.ZdcMapServer+"/img/scrollredline3.png";this.CtlScaleSlitherImage=ZdcCommon.ZdcMapServer+"/img/scrollbutton3.png";this.CtlShadowLargeImage=ZdcCommon.ZdcMapServer+"/img/Control-shadow.png";this.CtlShadowSmallImage=ZdcCommon.ZdcMapServer+"/img/Control-shadow-small.png";this.shadowlargedoc.style.position="absolute";this.shadowsmalldoc.style.position="absolute";this.shadowlargedoc.style.zIndex="1";this.shadowsmalldoc.style.zIndex="1";if(document.all&&!ZDC.isIE10){this.shadowlargedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.CtlShadowLargeImage+")";this.shadowsmalldoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.CtlShadowSmallImage+")";this.shadowsmalldoc.innerHTML="";this.shadowlargedoc.innerHTML="";}else{this.shadowsmalldoc.innerHTML="";this.shadowlargedoc.innerHTML="";}this.shadowlargedoc.style.width="64px";this.shadowlargedoc.style.height="324px";this.shadowsmalldoc.style.width="64px";this.shadowsmalldoc.style.height="92px";this.id="Control_1_3";this.width=64;this.height=324;this.changedoc.style.left=(this.BaseX+47)+"px";this.changedoc.style.top=(this.BaseY+66)+"px";this.scaledoc.style.left=(this.BaseX)+"px";this.scaledoc.style.top=(this.BaseY+100)+"px";this.scaleseldoc.style.left=(this.BaseX+3)+"px";this.scaleslitherdoc.style.left=(this.BaseX+49)+"px";this.shadowlargedoc.style.left=(this.BaseX+2)+"px";this.shadowlargedoc.style.top=(this.BaseY+2)+"px";this.shadowsmalldoc.style.left=(this.BaseX+2)+"px";this.shadowsmalldoc.style.top=(this.BaseY+2)+"px";break;}this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaledoc.innerHTML="";this.scaleseldoc.innerHTML="";this.scaleslitherdoc.innerHTML="";this.basedoc.style.width="0px";this.basedoc.style.height="0px";this.basedoc.style.left=this.BaseX+"px";this.basedoc.style.top=this.BaseY+"px";this.basedoc.style.position="absolute";this.changedoc.style.width="12px";this.changedoc.style.height="12px";this.changedoc.style.position="absolute";this.scaledoc.style.position="absolute";this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.width="58px";this.scaleseldoc.style.height="12px";this.scaleseldoc.style.top=this.BaseY+"px";this.scaleseldoc.style.position="absolute";this.scaleseldoc.style.filter="alpha(opacity=60)";this.scaleseldoc.style.opacity="0.6";this.scaleseldoc.style.mozOpacity="0.6";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.width="12px";this.scaleslitherdoc.style.height="16px";this.scaleslitherdoc.style.top=this.BaseY+"px";this.scaleslitherdoc.style.position="absolute";this.scaleslitherdoc.style.filter="alpha(opacity=100)";this.scaleslitherdoc.style.mozOpacity="1.0";this.scaleslitherdoc.style.opacity="1.0";this.scaleslitherdoc.style.visibility="hidden";ZdcObjArray.push(this);if(ZdcCommon.UserAgentIsSafari()){this.mousecursor="default";this.basedoc.style.cursor="default";}else{this.mousecursor="hand";if(document.all&&!ZDC.isIE10){this.basedoc.style.cursor="hand";this.changedoc.style.cursor="hand";this.shadowsmalldoc.style.cursor="hand";this.shadowlargedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";this.shadowsmalldoc.style.cursor="pointer";this.shadowlargedoc.style.cursor="pointer";}this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}if(opts=="large"){this.deflargeflg=true;this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaleseldoc.style.visibility="visible";this.scaleslitherdoc.style.visibility="visible";if(this.type==3){this.shadowsmalldoc.style.visibility="hidden";this.shadowlargedoc.style.visibility="visible";}this.zoomlistopen=true;}else{this.zoomlistopen=false;this.changedoc.style.visibility="hidden";if(this.type==3){this.shadowlargedoc.style.visibility="hidden";this.shadowsmalldoc.style.visibility="visible";}}if(this.type==3){this.doc.appendChild(this.shadowlargedoc);this.doc.appendChild(this.shadowsmalldoc);if(this.zoomlistopen){this.shadowsmalldoc.style.visibility="hidden";}else{this.shadowlargedoc.style.visibility="hidden";}}this.doc.appendChild(this.basedoc);this.doc.appendChild(this.scaleseldoc);this.doc.appendChild(this.scaleslitherdoc);this.doc.appendChild(this.scaledoc);this.doc.appendChild(this.changedoc);this.doc.onmousedown=this.OnMouseDownDoc._bindAsEventListener(this);this.basedoc.onmousedown=this.OnMouseDownBaseDoc._bindAsEventListener(this);this.changedoc.onmousedown=this.OnMouseDownDoc._bindAsEventListener(this);this.scaleslitherdoc.onmousedown=this.OnMouseDownSlither._bindAsEventListener(this);this.scaleslitherdoc.onmouseup=this.OnMouseUpSlither._bindAsEventListener(this);this.doc.onmouseup=this.OnMouseUp._bindAsEventListener(this);this.doc.onclick=this.OnMouseDownDoc._bindAsEventListener(this);this.basedoc.onclick=this.MouseOnClick._bindAsEventListener(this);this.changedoc.onclick=this.MouseOnClickChg._bindAsEventListener(this);this.doc.onmousemove=this.OnMouseMoveDoc._bindAsEventListener(this);this.basedoc.onmousemove=this.OnMouseMoveBaseDoc._bindAsEventListener(this);this.scaleseldoc.onmousemove=this.OnMouseMoveSel._bindAsEventListener(this);this.scaleslitherdoc.onmousemove=this.OnMouseMoveSlither._bindAsEventListener(this);this.doc.onmouseover=this.OnMouseOver._bindAsEventListener(this);this.doc.onmouseout=this.OnMouseOut._bindAsEventListener(this);this.doc.ondblclick=this.OnMouseDblClick._bindAsEventListener(this);this.doc.oncontextmenu=this.ConTextMenu._bindAsEventListener(this);if(ZdcCommon.isiPhone()){this.basedoc.ontouchstart=this.OnMouseDownBaseDoc._bindAsEventListener(this);this.changedoc.ontouchstart=this.MouseOnClickChg._bindAsEventListener(this);}}ZdcControl.prototype.setMouseCursor=function(type,url1,url2){if(ZdcCommon.UserAgentIsSafari()){return -1;}if(type=="users"){this.cursorflg=true;this.usercursor1=url1;this.usercursor2=url2;this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";this.changedoc.style.cursor="url("+this.usercursor1+"), pointer";this.scaleslitherdoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowsmalldoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowlargedoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(type!="default"&&type!="hand"){return -1;}this.cursorflg=false;this.mousecursor=type;if(this.mousecursor=="hand"){if(document.all&&!ZDC.isIE10){this.basedoc.style.cursor="hand";this.changedoc.style.cursor="hand";this.shadowsmalldoc.style.cursor="hand";this.shadowlargedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";this.shadowsmalldoc.style.cursor="pointer";this.shadowlargedoc.style.cursor="pointer";}this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}if(this.mousecursor=="default"){this.basedoc.style.cursor="default";this.changedoc.style.cursor="default";this.scaleslitherdoc.style.cursor="default";this.shadowsmalldoc.style.cursor="default";this.shadowlargedoc.style.cursor="default";}}};ZdcControl.prototype.setLargeOnly=function(){this.largeonly=true;if(this.type!=3){this.scaledoc.style.visibility="visible";}else{this.shadowsmalldoc.style.visibility="hidden";this.shadowlargedoc.style.visibility="visible";}this.scaleseldoc.style.visibility="visible";this.scaleslitherdoc.style.visibility="visible";this.changedoc.style.visibility="hidden";this.basedoc.innerHTML="";this.changedoc.innerHTML="";y=73+(this.pMap.s-1)*13;this.scaleseldoc.style.top=y+"px";if(this.type==3){this.scaleslitherdoc.style.top=y+"px";}else{this.scaleslitherdoc.style.top=(y-2)+"px";}this.doc.style.height="330px";this.basedoc.style.height="320px";this.zoomlistopen=true;this.scaledoc.style.visibility="hidden";};ZdcControl.prototype.setSmallOnly=function(){this.smallonly=true;if(this.smallonly){this.zoomlistopen=false;this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";this.changedoc.style.visibility="hidden";if(this.type==3){this.shadowlargedoc.style.visibility="hidden";this.shadowsmalldoc.style.visibility="visible";}this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.doc.style.height="92px";}};ZdcControl.prototype.OnMouseDblClick=function(_10b){ZdcEvent.stopPropagation(_10b);};ZdcControl.prototype.OnMouseDownDoc=function(_10c){ZdcEvent.stopPropagation(_10c);return false;};ZdcControl.prototype.OnMouseDownBaseDoc=function(_10d){if(ZdcCommon.isiPhone()){var x=_10d.touches[0].clientX-parseInt(this.pMap.ZdcMapBase.style.left)-(parseInt(this.doc.style.left)+this.pMap.ZdcMapTileLeftpx);var y=_10d.touches[0].clientY-parseInt(this.pMap.ZdcMapBase.style.top)-(parseInt(this.doc.style.top)+this.pMap.ZdcMapTileToppx);var s;if(y<60){if(y<20){if(x<20){this.pMap.ScrollMapByDirection(1,1);}else{if(x>=20&&x<=40){this.pMap.ScrollMapByDirection(0,1);}else{this.pMap.ScrollMapByDirection(-1,1);}}}else{if(y>=20&&y<=40){if(x<20){this.pMap.ScrollMapByDirection(1,0);}else{if(x>=20&&x<=40){this.pMap.restoreMapLocation();}else{this.pMap.ScrollMapByDirection(-1,0);}}}else{if(x<20){this.pMap.ScrollMapByDirection(1,-1);}else{if(x>=20&&x<=40){this.pMap.ScrollMapByDirection(0,-1);}else{this.pMap.ScrollMapByDirection(-1,-1);}}}}}else{if(this.zoomlistopen){if(y<73){this.pMap.mapZoomOut(1,"zoom");s=73+(this.pMap.s-1)*13;}else{if(73<=y&&y<=307){s=73+Math.floor((y-73)/13)*13;this.pMap.setMapScale(Math.floor((y-73)/13)+1);}else{if(y>307){this.pMap.mapZoomIn(1,"zoom");s=73+(this.pMap.s-1)*13;}}}this.scaleseldoc.style.top=s+"px";if(this.type==3){this.scaleslitherdoc.style.top=s+"px";}else{this.scaleslitherdoc.style.top=(s-2)+"px";}}else{if(y<73){this.pMap.mapZoomOut(1,"zoom");}else{this.pMap.mapZoomIn(1,"zoom");}}}}ZdcEvent.stopPropagation(_10d);return false;};ZdcControl.prototype.OnMouseDownSlither=function(_111){if(document.all){this.SlitherPixelY=this.scaleslitherdoc.style.pixelTop;}else{this.SlitherPixelY=parseInt(this.scaleslitherdoc.style.top);}this.dragscreeny=_111.screenY;this.dragy=this.zoomstart+Math.floor((this.pMap.s-1)*this.zoomheight);this.Slither=true;this.dragfrom=this.dragy;this.dragscreenfrom=_111.screenY;this.zoomlim=this.zoomend-this.zoomheight;if(this.cursorflg==true){this.scaleslitherdoc.style.cursor="url("+this.usercursor2+"), pointer";}else{if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";}}ZdcDrag.StartDragging(this.scaleslitherdoc,this.dragging._bindAsEventListener(this),this.dragend._bindAsEventListener(this));ZdcEvent.stopPropagation(_111);return false;};ZdcControl.prototype.MouseOnClick=function(_112){var _113=this.pMap;if(_112.offsetX==null){var x=_112.layerX;var y=_112.layerY;}else{var x=_112.offsetX;var y=_112.offsetY;}var s;if(y<60){if(y<20){if(x<20){_113.ScrollMapByDirection(1,1);}else{if(x>=20&&x<=40){_113.ScrollMapByDirection(0,1);}else{_113.ScrollMapByDirection(-1,1);}}}else{if(y>=20&&y<=40){if(x<20){_113.ScrollMapByDirection(1,0);}else{if(x>=20&&x<=40){_113.restoreMapLocation();}else{_113.ScrollMapByDirection(-1,0);}}}else{if(x<20){_113.ScrollMapByDirection(1,-1);}else{if(x>=20&&x<=40){_113.ScrollMapByDirection(0,-1);}else{_113.ScrollMapByDirection(-1,-1);}}}}}else{if(this.zoomlistopen){if(y<73){_113.mapZoomOut(1,"zoom");s=73+(this.pMap.s-1)*13;}else{if(73<=y&&y<307){s=73+Math.floor((y-73)/13)*13;_113.setMapScale(Math.floor((y-73)/13)+1);}else{if(y>=307){_113.mapZoomIn(1,"zoom");s=73+(this.pMap.s-1)*13;}}}this.scaleseldoc.style.top=s+"px";if(this.type==3){this.scaleslitherdoc.style.top=s+"px";}else{this.scaleslitherdoc.style.top=(s-2)+"px";}}else{if(y<73){_113.mapZoomOut(1,"zoom");}else{_113.mapZoomIn(1,"zoom");}}}ZdcEvent.stopPropagation(_112);return false;};ZdcControl.prototype.MouseOnClickChg=function(_117){var y;this.Slither=false;if(this.zoomlistopen){this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";if(this.type==3){this.shadowlargedoc.style.visibility="hidden";this.shadowsmalldoc.style.visibility="visible";}this.zoomlistopen=false;this.doc.style.height="92px";this.basedoc.style.height="92px";}else{this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaleseldoc.style.visibility="visible";this.scaleslitherdoc.style.visibility="visible";if(this.type==3){this.shadowsmalldoc.style.visibility="hidden";this.shadowlargedoc.style.visibility="visible";}y=73+(this.pMap.s-1)*13;this.scaleseldoc.style.top=y+"px";if(this.type==3){this.scaleslitherdoc.style.top=y+"px";}else{this.scaleslitherdoc.style.top=(y-2)+"px";}this.doc.style.height="330px";this.basedoc.style.height="320px";this.zoomlistopen=true;}ZdcEvent.stopPropagation(_117);return false;};ZdcControl.prototype.OnMouseMoveDoc=function(_119){if(ZdcDrag.IsDragging()){return false;}ZdcEvent.stopPropagation(_119);return false;};ZdcControl.prototype.ConTextMenu=function(_11a){ZdcEvent.stopPropagation(_11a);return false;};ZdcControl.prototype.dragging=function(e){if(this.cursorflg==true){this.scaleslitherdoc.style.cursor="url("+this.usercursor2+"), pointer";this.basedoc.style.cursor="url("+this.usercursor2+"), pointer";this.changedoc.style.cursor="url("+this.usercursor2+"), pointer";this.scaleseldoc.style.cursor="url("+this.usercursor2+"), pointer";this.shadowsmalldoc.style.cursor="url("+this.usercursor2+"), pointer";this.shadowlargedoc.style.cursor="url("+this.usercursor2+"), pointer";}else{if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.basedoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.changedoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.scaleseldoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.shadowsmalldoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.shadowlargedoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";}}this.newscreeny=e.screenY;if(this.zoomlistopen){var _11c=this.dragfrom-(this.dragscreenfrom-this.newscreeny);if(this.zoomstart>_11c){if(this.type==3){this.scaleslitherdoc.style.top=73+"px";}else{this.scaleslitherdoc.style.top=73-2+"px";}this.scaleseldoc.style.top=73+"px";this.dragy=73;this.dragscreeny=73;this.zoomImage();}else{if(this.zoomlim<_11c){if(this.type==3){this.scaleslitherdoc.style.top=this.zoomlim+"px";}else{this.scaleslitherdoc.style.top=this.zoomlim-2+"px";}this.scaleseldoc.style.top=this.zoomlim+"px";this.dragy=this.zoomlim;this.dragscreeny=this.zoomlim;this.zoomImage();}else{if(Math.abs(this.dragscreeny-this.newscreeny)>=this.zoomheight){heightcnt=Math.round((_11c-this.zoomstart)/(this.zoomheight));heightpx=73+Math.round(heightcnt*this.zoomheight);if(this.type==3){this.scaleslitherdoc.style.top=heightpx+"px";}else{this.scaleslitherdoc.style.top=heightpx-2+"px";}this.scaleseldoc.style.top=heightpx+"px";this.dragy=_11c;this.dragscreeny=this.newscreeny;this.zoomImage();}}}}};ZdcControl.prototype.zoomImage=function(){this.pMap.ZdcZoomChangeImage.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner1.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner2.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner3.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner4.style.visibility="visible";this.pMap.ZdcZoomChangeImage.style.filter="alpha(opacity=50)";this.pMap.ZdcZoomChangeImage.style.mozOpacity="0.5";this.pMap.ZdcZoomChangeImage.style.opacity="0.5";var s=Math.floor((this.dragy-this.zoomstart)/this.zoomheight)+2;var _11e=this.pMap.s;var _11f=s;if(_11e<_11f){var img=this.pMap.ZoomChangeImageIn;var img1=this.pMap.ZoomChangeImageCorner1;var img2=this.pMap.ZoomChangeImageCorner2;var img3=this.pMap.ZoomChangeImageCorner3;var img4=this.pMap.ZoomChangeImageCorner4;}else{if(_11e==_11f){var img=this.pMap.ZoomChangeImageClear;var img1=this.pMap.ZoomChangeImageCorner4;var img2=this.pMap.ZoomChangeImageCorner3;var img3=this.pMap.ZoomChangeImageCorner2;var img4=this.pMap.ZoomChangeImageCorner1;}else{var img=this.pMap.ZoomChangeImageOut;var img1=this.pMap.ZoomChangeImageCorner4;var img2=this.pMap.ZoomChangeImageCorner3;var img3=this.pMap.ZoomChangeImageCorner2;var img4=this.pMap.ZoomChangeImageCorner1;}}if(_11e==_11f){var _125=this.pMap.ZdcMapWpx-6;var _126=this.pMap.ZdcMapHpx-6;}else{if(_11e<_11f){var _125=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_11f]/ZdcZoom.map_defw[_11e]));var _126=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_11f]/ZdcZoom.map_defh[_11e]));}else{var _125=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_11e]/ZdcZoom.map_defw[_11f]));var _126=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_11e]/ZdcZoom.map_defh[_11f]));}}if(this.pMap.CenterFirst){var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}else{if(this.pMap.msgopenstatus){if(this.pMap.getMapBoundBox(null,_11e).isContainPoint(this.pMap.ZdcMsgWindowObj.Point)){if(_11e<_11f){var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_11e,_11f);}else{var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_11f,_11e);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((newp.mx-this.pMap.mx)/ZdcZoom.map_defw[_11e]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-newp.my)/ZdcZoom.map_defh[_11e]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.usermsgopenstatus){if(this.pMap.getMapBoundBox(null,_11e).isContainPoint(this.pMap.ZdcUserMsgWindow.Point)){if(_11e<_11f){var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_11e,_11f);}else{var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_11f,_11e);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((newp.mx-this.pMap.mx)/ZdcZoom.map_defw[_11e]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-newp.my)/ZdcZoom.map_defh[_11e]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.htmlopenstatus){if(this.pMap.getMapBoundBox(null,_11e).isContainPoint(this.pMap.ZdcMsgHtml.Point)){if(_11e<_11f){var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_11e,_11f);}else{var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_11f,_11e);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((newp.mx-this.pMap.mx)/ZdcZoom.map_defw[_11e]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-newp.my)/ZdcZoom.map_defh[_11e]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}}}this.pMap.ZdcZoomChangeImage.style.left=(cx-Math.floor(_125/2)-3)+"px";this.pMap.ZdcZoomChangeImage.style.top=(cy-Math.floor(_126/2)-3)+"px";this.pMap.ZdcZoomChangeImage.style.width=(_125+6)+"px";this.pMap.ZdcZoomChangeImage.style.height=(_126+6)+"px";this.pMap.ZdcZoomChangeImage.innerHTML="
";this.pMap.ZdcZoomChangeImage.style.position="absolute";if(document.all&&!ZDC.isIE10){this.pMap.ZdcZoomChangeImageCorner1.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_125+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_126+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_125+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_126+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img1+")";this.pMap.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img2+")";this.pMap.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img3+")";this.pMap.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img4+")";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}else{this.pMap.ZdcZoomChangeImageCorner1.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_125+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_126+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_125+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_126+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}this.pMap.ZdcZoomChangeImageCorner1.style.width="20px";this.pMap.ZdcZoomChangeImageCorner1.style.height="20px";this.pMap.ZdcZoomChangeImageCorner1.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner2.style.width="20px";this.pMap.ZdcZoomChangeImageCorner2.style.height="20px";this.pMap.ZdcZoomChangeImageCorner2.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner3.style.width="20px";this.pMap.ZdcZoomChangeImageCorner3.style.height="20px";this.pMap.ZdcZoomChangeImageCorner3.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner4.style.width="20px";this.pMap.ZdcZoomChangeImageCorner4.style.height="20px";this.pMap.ZdcZoomChangeImageCorner4.style.position="absolute";};ZdcControl.prototype.OnMouseMoveBaseDoc=function(_12a){if(_12a.offsetX==null){var x=_12a.layerX;var y=_12a.layerY;}else{var x=_12a.offsetX;var y=_12a.offsetY;}var s,sl;if(this.zoomlistopen&&this.type!=3){if(this.type!=3){this.scaledoc.style.visibility="visible";}if(73";}else{this.scaledoc.innerHTML="";}}else{this.scaledoc.style.visibility="hidden";}}return false;};ZdcControl.prototype.OnMouseMoveSel=function(_12f){if(document.all){var id=Math.floor((this.scaleseldoc.style.pixelTop-73)/13)+1;var s="1/"+ZdcZoom.map_defs[id];var y=this.scaleseldoc.style.pixelTop;}else{var id=Math.floor((parseInt(this.scaleseldoc.style.top)-73)/13)+1;var s="1/"+ZdcZoom.map_defs[id];var y=parseInt(this.scaleseldoc.style.top);}if(this.type!=3){this.scaledoc.style.visibility="visible";}this.scaledoc.style.top=(y+4)+"px";return false;};ZdcControl.prototype.OnMouseUp=function(_133){if(this.cursorflg==true){this.scaleslitherdoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}if(ZdcDrag.IsDragging()){return false;}ZdcEvent.stopPropagation(_133);};ZdcControl.prototype.OnMouseUpSlither=function(_134){if(ZdcDrag.IsDragging()){return false;}};ZdcControl.prototype.dragend=function(){this.scaleseldoc.style.cursor="default";if(this.cursorflg==true){this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";this.changedoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowsmalldoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowlargedoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.basedoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";this.shadowsmalldoc.style.cursor="pointer";this.shadowlargedoc.style.cursor="pointer";if(!ZdcCommon.UserAgentIsSafari()){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}}var s=Math.round((this.dragy-this.zoomstart)/(this.zoomheight))+1;this.pMap.setMapScale(s);this.Slither=false;ZdcDrag.ClearDraging();this.pMap.ZdcZoomChangeImage.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner1.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner2.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner3.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner4.style.visibility="hidden";};ZdcControl.prototype.OnMouseMoveSlither=function(_136){if(document.all){var y=this.scaleslitherdoc.style.pixelTop;}else{var y=parseInt(this.scaleslitherdoc.style.top);}if(73