var ChizulogShapeMap="http://map.chizulog.com/mapfiles1/map/";
var ZDC_KEY="aoyama_test_key";var ZDC_ENC="SJIS";var ZDC_DATUM="TOKYO";var ZDC_OPT="12345";var ZDC_MAP="20070308";var ZDC_RETURN="10200000";var ZdcMapServer="http://www.chizulog.com/mapapi/";var ZdcTileServer="http://map.e-map.ne.jp/";var ZdcTilePath1=ZDC_MAP+"/1/";var ZdcTilePath2=ZDC_MAP+"/2/";var ZdcTilePath3=ZDC_MAP+"/3/";var ZdcTilePath4=ZDC_MAP+"/4/";var ZdcTilePath5=ZDC_MAP+"/5/";var ZdcTilePath6=ZDC_MAP+"/6/";var ZdcTilePath7=ZDC_MAP+"/7/";var ZdcTilePath8=ZDC_MAP+"/8/";var ZdcMapCgi="http://218.225.89.28/jsapi/cgi/map.cgi";var ZdcMapLog="http://www.chizulog.com/mapapi/img/back-logo.gif";var ZdcMapAccess="http://218.225.89.28/";var ChizulogMap="http://map.chizulog.com/mapfiles/";if(!window.ZDC){window.ZDC={};}(function(){function ZdcCommon(){}ZdcCommon.ZdcMapServer=ZdcMapServer;ZdcCommon.ZdcTileServer=ZdcTileServer;ZdcCommon.ZdcTilePath1=ZdcTilePath1;ZdcCommon.ZdcTilePath2=ZdcTilePath2;ZdcCommon.ZdcTilePath3=ZdcTilePath3;ZdcCommon.ZdcTilePath4=ZdcTilePath4;ZdcCommon.ZdcTilePath5=ZdcTilePath5;ZdcCommon.ZdcTilePath6=ZdcTilePath6;ZdcCommon.ZdcTilePath7=ZdcTilePath7;ZdcCommon.ZdcTilePath8=ZdcTilePath8;ZdcCommon.ZdcMapCgi=ZdcMapCgi;ZdcCommon.ZdcMapLog=ZdcMapLog;ZdcCommon.ZdcMapAccess=ZdcMapAccess;ZdcCommon.ChizulogMap=ChizulogShapeMap;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<ZdcZoom.OX){_6=_6+1;}if(_2<ZdcZoom.OY){_7=_7+1;}var _8=_6*ZdcZoom.map_defw[_3]*ZdcZoom.PX;var _9=_7*ZdcZoom.map_defh[_3]*ZdcZoom.PY;var _a=Math.abs(_8-_4)/ZdcZoom.map_defw[_3];var _b=ZdcZoom.PY-(Math.abs(_9-_5)/ZdcZoom.map_defh[_3]);if(_1<ZdcZoom.OX){_6="m"+_6;}if(_2<ZdcZoom.OY){_7="m"+_7;}var _c=_3+"_"+_6+"_"+_7;var _d=new Object();_d.mesh=_c;_d.offx=Math.round(_a);_d.offy=Math.round(_b);return _d;};ZdcCommon.pixel2ll=function(_e,_f,_10){mesh_list=_10.split("_");var _11=mesh_list[0];if(_10==""){return;}if(mesh_list[1]==null){return;}if(StrCmp(mesh_list[1].substr(0,1),"m")==0){var _12=mesh_list[1].substr(1,StrLen(mesh_list[1])-1);_12=(-1)*_12;}else{var _12=mesh_list[1];}if(StrCmp(mesh_list[2].substr(0,1),"m")==0){var _13=mesh_list[2].substr(1,StrLen(mesh_list[2])-1);_13=(-1)*_13;}else{var _13=mesh_list[2];}var _14=Math.round(_12*ZdcZoom.PX*ZdcZoom.map_defw[_11]);var _15=Math.round(_13*ZdcZoom.PY*ZdcZoom.map_defh[_11]);var lon=ZdcZoom.OX+_14+(_e*ZdcZoom.map_defw[_11]);var lat=ZdcZoom.OY+_15+((256-_f)*ZdcZoom.map_defh[_11]);var _18=new Object();_18.mx=Math.round(lon);_18.my=Math.round(lat);return _18;};ZdcCommon.StrLen=function(str){var ct;var _1b=0;for(ct=0;ct<str.length;ct++){var c=str.charCodeAt(ct);if(c>=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.ConvertMSXY2LL=function(x,y,f){var _26=new Object();var dx=x/3600/1000;var dy=y/3600/1000;switch(f){case 1:default:_26.lon=Math.round(dx*10000000)/10000000;_26.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){_26.lon=Math.floor(dx)+"<sup>o</sup> "+Math.floor(fx)+"<sup>'</sup>"+sx+"<sup>\"</sup>";_26.lat=Math.floor(dy)+"<sup>o</sup> "+Math.floor(fy)+"<sup>'</sup>"+sy+"<sup>\"</sup>";}else{_26.lon=Math.floor(dx)+"<sub><sup>o</sup></sub> "+Math.floor(fx)+"'"+sx+"\"";_26.lat=Math.floor(dy)+"<sub><sup>o</sup></sub> "+Math.floor(fy)+"'"+sy+"\"";}break;}return _26;};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.UserAgentIsSafari=function(){var ua=navigator.userAgent;if(ua.match(/Safari\/([\.\d]+)/)){return true;}return false;};ZdcCommon.ConvertLL2XY=function(x,y,f){var _33=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 _36=x.split(".");var _37=y.split(".");var dx=_36[0]*3600;var dy=_37[0]*3600;var fx=_36[1]*60;var fy=_37[1]*60;var sx=Number(_36[2].toString+"."+_36[3].toString);var sy=Number(_37[2].toString+"."+_37[3].toString);dx=Math.round((dx+fx+sx)*1000);dy=Math.round((dy+fy+sy)*1000);break;}_33.mx=dx;_33.my=dy;return _33;};ZdcCommon.cnv_llh2xyz=function(l,b,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 _45=new Array();_45[0]=(rn+h)*cb*Math.sin(l);_45[1]=(rn+h)*cb*Math.cos(l);_45[2]=(rn*(1-e2)+h)*sb;return _45;};ZdcCommon.cnv_xyz2llh=function(y,x,z,a,e2){var rd=Math.PI/180;var bda=Math.sqrt(1-e2);var p=Math.sqrt(eval(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 _56=new Array();_56[0]=l/rd;_56[1]=b/rd;_56[2]=h;return _56;};ZdcCommon.WGS2TKY=function(lon,lat){var a_w=6378137;var f_w=1/298.257223;var _5b=2*f_w-f_w*f_w;var a_t=6377397.155;var f_t=1/299.152813;var _5e=2*f_t-f_t*f_t;var _5f=-148;var _60=507;var _61=681;var h=0;var _63=ZdcCommon.cnv_llh2xyz(lon,lat,h,a_w,_5b);_63=ZdcCommon.cnv_xyz2llh(_63[0]-_5f,_63[1]-_60,_63[2]-_61,a_t,_5e);var p=new ZdcPoint(_63[0],_63[1]);return p;};ZdcCommon.TKY2WGS=function(lon,lat){var a_w=6378137;var f_w=1/298.257223;var _69=2*f_w-f_w*f_w;var a_t=6377397.155;var f_t=1/299.152813;var _6c=2*f_t-f_t*f_t;var _6d=-148;var _6e=507;var _6f=681;var h=0;var _71=ZdcCommon.cnv_llh2xyz(lon,lat,h,a_t,_6c);_71=ZdcCommon.cnv_xyz2llh(_71[0]+_6d,_71[1]+_6e,_71[2]+_6f,a_w,_69);var p=new ZdcWGSPoint(_71[0],_71[1]);return p;};ZdcCommon.Math_mod=function(a,b){var c=(a/b)-Math.floor(a/b);return c;};window.ZdcCommon=ZdcCommon;window.ZDC.ZdcCommon=ZdcCommon;})();(function(){function ZdcXmlHttp(){}ZdcXmlHttp.create=function(){try{if(typeof ActiveXObject!="undefined"){return new ActiveXObject("Microsoft.XMLHTTP");}else{if(window.XMLHttpRequest){return new XMLHttpRequest();}}}catch(a){}return null;};function ZdcXml(){}ZdcXml.parse=function(a){if(typeof ActiveXObject!="undefined"&&typeof GetObject!="undefined"){var b=new ActiveXObject("Microsoft.XMLDOM");b.loadXML(a);return b;}if(typeof DOMParser!="undefined"){var _78=(new DOMParser()).parseFromString(a,"text/xml");if(_78&&_78.normalize){_78.normalize();}return _78;}return null;};ZdcXml.value=function(a){if(!a){return "";}var b="";if(a.nodeType==3||a.nodeType==4||a.nodeType==2){b+=a.nodeValue;}else{if(a.nodeType==1||a.nodeType==9||a.nodeType==11){for(var c=0;c<a.childNodes.length;++c){b+=arguments.callee(a.childNodes[c]);}}}return b;};window.ZdcXmlHttp=ZdcXmlHttp;window.ZDC.ZdcXmlHttp=ZdcXmlHttp;window.ZdcXml=ZdcXml;window.ZDC.ZdcXml=ZdcXml;})();(function(){function ZdcDrag(){}ZdcDrag._grabObj=null;ZdcDrag._mousemove=null;ZdcDrag._mouseup=null;ZdcDrag.StartDragging=function(obj,_7d,_7e){document.onmousemove=ZdcDrag.z_mousemove;document.onmouseup=ZdcDrag.z_mouseup;ZdcDrag._grabObj=obj;ZdcDrag._mousemove=_7d;ZdcDrag._mouseup=_7e;};ZdcDrag.z_mousemove=function(e){if(document.all){var _80=window.event;}else{var _80=e;}if(ZdcDrag._grabObj&&ZdcDrag._mousemove){ZdcDrag._mousemove(_80);}};ZdcDrag.z_mouseup=function(e){if(document.all){var _82=window.event;}else{var _82=e;}if(ZdcDrag._grabObj&&ZdcDrag._mouseup){ZdcDrag._mouseup(_82);}};ZdcDrag.ClearDraging=function(){ZdcDrag._grabObj=null;ZdcDrag._mousemove=null;ZdcDrag._mouseup=null;document.onmousemove=null;document.onmouseup=null;};ZdcDrag.IsDragging=function(){return ZdcDrag._grabObj?true:false;};window.ZdcDrag=ZdcDrag;window.ZDC.ZdcDrag=ZdcDrag;})();(function(){var Ta=[];var w;var Gc=["opera","msie","safari","firefox","mozilla"];var Tc=["x11;","macintosh","windows"];var ua="dblclick";var Fd="unload";function jc(a){this.type=-1;this.os=-1;this.version=0;this.revision=0;var a=a.toLowerCase();for(var b=0;b<Gc.length;b++){var c=Gc[b];if(a.indexOf(c)!=-1){this.type=b;var d=new RegExp(c+"[ /]?([0-9]+(.[0-9]+)?)");if(d.exec(a)!=null){this.version=parseFloat(RegExp.$1);}break;}}for(var b=0;b<Tc.length;b++){var c=Tc[b];if(a.indexOf(c)!=-1){this.os=b;break;}}if(this.type==4||this.type==3){if(/\brv:\s*(\d+\.\d+)/.exec(a)){this.revision=parseFloat(RegExp.$1);}}}jc.prototype.r=function(){return this.type==3||this.type==4;};jc.prototype.fc=function(){return this.type==4&&this.revision<1.7;};w=new jc(navigator.userAgent);function wc(a,b){var c=a["__e_"];if(!c){if(b){c=(a["__e_"]=[]);}else{c=[];}}return c;}function db(a,b,c){var d=0;for(var e=0;e<a.length;++e){if(a[e]===b||c&&a[e]==b){a.splice(e--,1);d++;}}return d;}function Ea(a,b,c,d){var e=this;e.ga=a;e.wb=b;e.$b=c;e.Vg=d;wc(a,true).push(e);}Ea.prototype.remove=function(){var a=this;switch(a.Vg){case 1:a.ga.removeEventListener(a.wb,a.$b,false);break;case 2:a.ga.detachEvent("on"+a.wb,a.$b);break;case 3:a.ga["on"+a.wb]=null;break;}db(wc(a.ga),a);};Ea.prototype.Rd=function(a){return this.wb==a;};Ea.prototype.apply=function(a,b){return this.$b.apply(a,b);};Ea.prototype.Ff=function(){return this.ga;};function Hb(a,b,c,d){var e=c||0;var f=d||b.length;for(var g=e;g<f;++g){a.push(b[g]);}}function dd(a){var b=[];if(a["__e_"]){Hb(b,a["__e_"]);}return b;}function ab(a,b){for(var c=0;c<a.length;++c){b.call(a[c]);}}function fc(a,b){return function(c){if(!c){c=window.event;}if(c&&!c.target){c.target=c.srcElement;}b.call(a,c,this);};}function ZdcEvent(){}ZdcEvent.addListener=function(a,b,c){var d=new Ea(a,b,c,0);Ta.push(d);return d;};ZdcEvent.addDomListener=function(a,b,c){var d;if(w.type==2&&b==ua){a["on"+b]=c;d=new Ea(a,b,c,3);}else{if(a.addEventListener){a.addEventListener(b,c,false);d=new Ea(a,b,c,1);}else{if(a.attachEvent){var e=ZdcEvent.callback(a,c);a.attachEvent("on"+b,e);d=new Ea(a,b,e,2);}else{a["on"+b]=c;d=new Ea(a,b,c,3);}}}if(a!=window||b!=Fd){Ta.push(d);}return d;};ZdcEvent.removeListener=function(a){a.remove();db(Ta,a);};ZdcEvent.clearListeners=function(a,b){ab(dd(a),function(){if(this.Rd(b)){this.remove();db(Ta,this);}});};ZdcEvent.clearInstanceListeners=function(a){ab(dd(a),function(){this.remove();db(Ta,this);});};ZdcEvent.trigger=function(a,b,c,d){var e=[];Hb(e,arguments,2);ab(wc(a),function(){if(this.Rd(b)){try{this.apply(a,e);}catch(f){}}});};ZdcEvent.bind=function(a,b,c,d){return ZdcEvent.addListener(a,b,ZdcEvent.callback(c,d));};ZdcEvent.bindDom=function(a,b,c,d){var e=fc(c,d);return ZdcEvent.addDomListener(a,b,e);};ZdcEvent.callback=function(a,b){return function(){return b.apply(a,arguments);};};ZdcEvent.callbackArgs=function(a,b,c,d){var e=[];Hb(e,arguments,2);return function(){return b.apply(a,e);};};ZdcEvent.stopPropagation=function(e){if(document.all){if(window.event){window.event.cancelBubble=true;}}else{if(e.stopPropagation){e.stopPropagation();}}};ZdcEvent.Client2DivPixelIE=function(_d0,obj){var p=new ZdcPixel(_d0.clientX,_d0.clientY);while(obj){p.x-=obj.clientLeft;p.y-=obj.clientTop;if(obj.nodeName=="BODY"){break;}p.x-=parseInt(obj.offsetLeft);p.y-=parseInt(obj.offsetTop);obj=obj.offsetParent;}p.x+=document.body.scrollLeft;p.y+=document.body.scrollTop;return p;};ZdcEvent.GetEventPosition=function(_d3,obj){var p=new ZdcPixel(_d3.clientX,_d3.clientY);var a=ZdcEvent._getClientPosition(obj);p.x-=a.x;p.y-=a.y;return p;};ZdcEvent.GetDivClientRect=function(obj){var p=new ZdcPixel(0,0);if(!obj){return p;}if(obj.clientWidth||obj.clientHeight){return new ZdcPixel(obj.clientWidth,obj.clientHeight);}var a=ZdcEvent._getBorderValue(obj);p.x=obj.offsetWidth;p.y=obj.offsetHeight;p.x-=2*a.x;p.y-=2*a.y;return p;};ZdcEvent._checkPositionType=function(a){if(a.offsetParent&&a.offsetParent.nodeName=="BODY"&&ZdcEvent._getPropertyValue(a.offsetParent,"position")=="static"){if(w.type==0&&ZdcEvent._getPropertyValue(a,"position")!="static"){return true;}else{if(w.type!=0&&ZdcEvent._getPropertyValue(a,"position")=="absolute"){return true;}}}return false;};ZdcEvent._getBorderValue=function(a){var b,c;var d=ZdcEvent._getPropertyValue(a,"border-left-width");if(isNaN(parseInt(d))){b=0;}else{b=ZdcEvent._getMarginValue(a,"border-left-width",d);}var e=ZdcEvent._getPropertyValue(a,"border-top-width");if(isNaN(parseInt(e))){c=0;}else{c=ZdcEvent._getMarginValue(a,"border-top-width",e);}return new ZdcPixel(b,c);};var Hc="__zdc_map_div_dummy__";ZdcEvent._getMarginValue=function(a,b,c){var d;if(c){d=c;}else{d=ZdcEvent._getPropertyValue(a,b);}if(typeof d=="number"){return d;}else{if(isNaN(parseInt(d))){return d;}else{if(d.length>2&&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;c.y-=self.pageYOffset;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,_fa,_fb,_fc){if(top!=null&&_fa!=null&&_fb!=null&&_fc!=null){this.top=top;this.left=_fa;this.widht=_fb;this.height=_fc;}}function ZdcPixel(x,y){this.x=x;this.y=y;}function ZdcPixelBox(_ff,pxl2){this.pxl1=_ff;this.pxl2=pxl2;}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){y=503156063;x=128422368;this.type=1;}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<p2.mx){this.minx=p1.mx;this.minlon=p1.lon;this.maxx=p2.mx;this.maxlon=p2.lon;}else{this.minx=p2.mx;this.minlon=p2.lon;this.maxx=p1.mx;this.maxlon=p1.lon;}if(p1.my<p2.my){this.miny=p1.my;this.minlat=p1.lat;this.maxy=p2.my;this.maxlat=p2.lat;}else{this.miny=p2.my;this.minlat=p2.lat;this.maxy=p1.my;this.maxlat=p1.lat;}this.p1=p1;this.p2=p2;}}ZdcBox.prototype.getBoxCenter=function(){var pt=new ZdcPoint((this.maxlon+this.minlon)/2,(this.maxlat+this.minlat)/2);return pt;};ZdcBox.prototype.isContainBox=function(box){var _121=new ZdcPoint(box.minx,box.miny,2);var _122=new ZdcPoint(box.minx,box.maxy,2);var _123=new ZdcPoint(box.maxx,box.maxy,2);var _124=new ZdcPoint(box.maxx,box.miny,2);var _125=0;if(this.isContainPoint(_121)){_125=_125+1;}if(this.isContainPoint(_122)){_125=_125+1;}if(this.isContainPoint(_123)){_125=_125+1;}if(this.isContainPoint(_124)){_125=_125+1;}if(_125==4){return 1;}else{if(0<_125&&_125<4){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;})();
