if(!window.ZDC){window.ZDC={};}(function(){ZdcMap.getZdcMapAccesslog=function(_1,_2){if(_2==0){if(ZdcCommon.ZDC_RETURN==null){ZdcMap.AccessText=_1;}else{ZdcMap.AccessText=ZdcCommon.ZDC_RETURN;}}else{return -1;}};var $A=function(_4){if(!_4){return [];}if(_4.toArray){return _4.toArray();}else{var _5=[];for(var i=0;i<_4.length;i++){_5.push(_4[i]);}return _5;}};Function.prototype.bind=function(){var _7=this,args=$A(arguments),object=args.shift();return function(){return _7.apply(object,args.concat($A(arguments)));};};Function.prototype.bindAsEventListener=function(_8){var _9=this;return function(_a){return _9.call(_8,_a||window.event);};};function ZdcMapType(){this.usrtileurl=null;this.usrtiletype=null;this.usrtilecod=null;this.server=new Array();this.ext=new Array();this.cgi=new Array();this.server[1]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath1;this.ext[1]="gif";this.server[2]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath2;this.ext[2]="gif";this.server[3]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath3;this.ext[3]="gif";this.server[4]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath4;this.ext[4]="gif";this.server[5]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath5;this.ext[5]="gif";this.server[6]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath6;this.ext[6]="gif";this.server[7]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath7;this.ext[7]="gif";this.server[8]=ZdcCommon.ZdcTileServer+ZdcCommon.ZdcTilePath8;this.ext[8]="gif";this.server[9]=ZdcCommon.ChizulogMap;this.ext[9]="png";this.server[10]=ZdcCommon.ZdcMapCgi;this.ext[10]="cgi";}function ZdcCopyright(){this.doc=document.createElement("DIV");this.doc.style.zIndex=10060;this.doc.style.position="absolute";this.doc.style.width=94;this.doc.style.height=12;this.copyrightimg=ZdcCommon.ZdcMapServer+"/img/c-zenrin.gif";this.doc.innerHTML="<IMG src='"+this.copyrightimg+"' style='background-color:#FFFFFF'/>";}function ZdcWait(){this.doc=document.createElement("DIV");this.doc.style.zIndex=10110;this.doc.style.position="absolute";this.doc.style.width=121;this.doc.style.height=31;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=4;this.movedoc.style.top=4;this.movedoc.innerHTML="";this.textdoc=document.createElement("DIV");this.doc.appendChild(this.textdoc);this.textdoc.style.position="absolute";this.textdoc.style.left=24;this.textdoc.style.top=8;this.showtext="Now Loading...";}function ZdcIcon(_b,_c,_d){if(_b==null){if(_c==null){this.image=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.gif";this.changeimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageLarge.png";}else{this.image=_c;}if(_d!=null){this.shadowimage=_d;}this.size=new ZdcSize(22,22);this.shadowsize=new ZdcSize(22,22);this.changesize=new ZdcSize(32,32);this.offset=new ZdcPixel(-11,-11);this.msgoffset=new ZdcPixel(0,-10);this.shdoffset=new ZdcPixel(0,0);this.changeoffset=new ZdcPixel(0,0);}else{if(_c==null){this.image=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.gif";this.changeimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageLarge.png";}else{this.image=_c;}if(_d!=null){this.shadowimage=_d;}this.size=_b.size;this.shadowsize=new ZdcSize(22,22);this.changesize=new ZdcSize(32,32);this.offset=_b.offset;this.msgoffset=_b.msgoffset;this.shdoffset=_b.shdoffset;this.changeoffset=new ZdcPixel(0,0);}this.class1=null;this.class2=null;this.shadowclass1=null;this.shadowclass2=null;this.id=0;}function ZdcMarker(p,_f,_10){this.Point=p;if(_10==null){this.type="dynamic";}else{if(_10!="dynamic"&&_10!="static"){this.type="dynamic";}else{this.type=_10;}}if(_f!=null){this.icon=_f;}else{this.icon=new ZdcIcon();}this.doc=document.createElement("DIV");this.doc.style.position="absolute";this.icondoc=document.createElement("DIV");if(this.type=="dynamic"){if(document.all){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.icongif){this.icondoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.image+")";}this.icondoc.style.width=this.icon.size.width;this.icondoc.style.height=this.icon.size.height;this.icondoc.style.left=0;this.icondoc.style.top=0;this.icondoc.style.position="absolute";this.doc.style.width=this.icon.size.width;this.doc.style.height=this.icon.size.height;if(document.all){if(!this.icongif){this.icondoc.innerHTML="<IMG src="+this.icon.image+" style='display:none' />";}else{this.icondoc.innerHTML="<IMG src="+this.icon.image+" >";}}else{this.icondoc.innerHTML="<IMG src="+this.icon.image+" />";}this.icondoc.style.zIndex=3;this.icondoc.style.position="absolute";this.doc.appendChild(this.icondoc);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){this.icondoc.innerHTML="<IMG src="+this.icon.shadowimage+" style='display:none' />";}else{this.shadowdoc.innerHTML="<IMG src="+this.icon.shadowimage+" >";}this.shadowdoc.style.width=this.icon.shadowsize.width;this.shadowdoc.style.height=this.icon.shadowsize.height;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;this.shadowdoc.style.left=this.icon.shdoffset.x;}}this.changedoc=document.createElement("DIV");if(this.type=="dynamic"){if(document.all){this.changedoc.style.cursor="hand";}else{this.changedoc.style.cursor="pointer";}}if(this.icon.changeimage!=null){if(document.all){if(!this.icongif){this.changedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.changeimage+")";this.changedoc.innerHTML="<IMG src="+this.icon.changeimage+" style='display:none' />";}else{this.changedoc.innerHTML="<IMG src="+this.icon.changeimage+" >";}}else{this.changedoc.innerHTML="<IMG src="+this.icon.changeimage+" >";}this.changedoc.style.width=this.icon.changesize.width;this.changedoc.style.height=this.icon.changesize.height;this.changedoc.style.zIndex=4;this.changedoc.style.position="absolute";this.doc.appendChild(this.changedoc);if(this.icon.changeoffset!=null){this.changedoc.style.top=this.icon.changeoffset.y;this.changedoc.style.left=this.icon.changeoffset.x;}this.changedoc.style.visibility="hidden";}this.doc.onmouseover=this.MouseOver.bindAsEventListener(this);this.doc.onmouseout=this.MouseOut.bindAsEventListener(this);this.doc.onclick=this.MouseClick.bindAsEventListener(this);this.doc.ondblclick=this.MouseDblClickMarker.bindAsEventListener(this);this.doc.onmousedown=this.MouseDown.bindAsEventListener(this);this.doc.onmouseup=this.MouseUp.bindAsEventListener(this);}ZdcMarker.prototype.MouseOver=function(e){ZdcEvent.trigger(this,"mouseovermarker");};ZdcMarker.prototype.MouseOut=function(e){ZdcEvent.trigger(this,"mouseoutmarker");};ZdcMarker.prototype.setChangeVisible=function(){this.changedoc.style.visibility="visible";};ZdcMarker.prototype.setChangeHidden=function(){this.changedoc.style.visibility="hidden";};ZdcMarker.prototype.openMsgWindow=function(p,_14,_15,_16,_17){this.parentLayer.pMap.openMsgWindow(p,_14,_15,this.icon.msgoffset,_16,_17);};ZdcMarker.prototype.openUserMsgWindow=function(_18,p,_1a,opt){this.parentLayer.pMap.openUserMsgWindow(_18,p,_1a,this.icon.msgoffset,opt);};ZdcMarker.prototype.MouseClick=function(e){ZdcEvent.trigger(this,"mouseclickmarker");if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}};ZdcMarker.prototype.MouseDblClickMarker=function(e){ZdcEvent.trigger(this,"mousedblclickmarker");if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}};ZdcMarker.prototype.MouseDown=function(e){ZdcEvent.trigger(this,"mousedownmarker");if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}};ZdcMarker.prototype.MouseUp=function(e){ZdcEvent.trigger(this,"mouseupmarker");if(ZdcCommon.UserAgentIsFireFox()){if(this.parentLayer.pMap.ZdcDragStatus){return;}}if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}};ZdcMarker.prototype.getPoint=function(){return this.Point;};ZdcMarker.prototype.getIcon=function(){return this.icon;};ZdcMarker.prototype.setType=function(_20){if(_20!=null){if(_20!="dynamic"&&_20!="static"){this.type=this.type;}else{this.type=_20;}}if(this.type=="dynamic"){if(document.all){this.icondoc.style.cursor="hand";this.changedoc.style.cursor="hand";}else{this.icondoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";}}else{if(document.all){this.icondoc.style.cursor="default";this.changedoc.style.cursor="default";}else{this.icondoc.style.cursor="default";this.changedoc.style.cursor="default";}}};ZdcMarker.prototype.setPoint=function(p){this.Point=p;};ZdcMarker.prototype.redraw=function(){if(this.parentLayer.addmapstatus){var pxy=this.parentLayer.pMap.convertPoint2Pixel(this.Point);this.doc.style.left=pxy.x+this.markers[id].icon.offset.x-offsetx;this.doc.style.top=pxy.y+this.markers[id].icon.offset.y-offsety;}};ZdcMarker.prototype.setIcon=function(ic){this.icon=ic;if(this.icon.image.substr(this.icon.image.length-4,4)==".gif"){this.icongif=true;}else{this.icongif=false;}if(!this.icongif){this.icondoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.image+")";}this.icondoc.style.width=this.icon.size.width;this.icondoc.style.height=this.icon.size.height;this.doc.style.width=this.icon.size.width;this.doc.style.height=this.icon.size.height;if(document.all){if(!this.icongif){this.icondoc.innerHTML="<IMG src="+this.icon.image+" style='display:none' />";}else{this.icondoc.innerHTML="<IMG src="+this.icon.image+" >";}}else{this.icondoc.innerHTML="<IMG src="+this.icon.image+" />";}this.icondoc.style.zIndex=3;this.icondoc.style.position="absolute";if(this.icon.shadowimage!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.shadowimage+")";if(document.all){this.icondoc.innerHTML="<IMG src="+this.icon.shadowimage+" style='display:none' />";}else{this.shadowdoc.innerHTML="<IMG src="+this.icon.shadowimage+" >";}this.shadowdoc.style.width=this.icon.shadowsize.width;this.shadowdoc.style.height=this.icon.shadowsize.height;this.shadowdoc.style.zIndex=2;this.shadowdoc.style.position="absolute";if(this.icon.shdoffset!=null){this.shadowdoc.style.top=this.icon.shdoffset.y;this.shadowdoc.style.left=this.icon.shdoffset.x;}}if(this.icon.changeimage!=null){if(document.all){if(!this.icongif){this.changedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.changeimage+")";this.changedoc.innerHTML="<IMG src="+this.icon.changeimage+" style='display:none' />";}else{this.changedoc.innerHTML="<IMG src="+this.icon.changeimage+" >";}}else{this.changedoc.innerHTML="<IMG src="+this.icon.changeimage+" >";}this.changedoc.style.width=this.icon.changesize.width;this.changedoc.style.height=this.icon.changesize.height;this.changedoc.style.zIndex=4;this.changedoc.style.position="absolute";this.doc.appendChild(this.changedoc);if(this.icon.changeoffset!=null){this.changedoc.style.top=this.icon.changeoffset.y;this.changedoc.style.left=this.icon.changeoffset.x;}this.changedoc.style.visibility="hidden";}this.doc.onmouseover=this.MouseOver.bindAsEventListener(this);this.doc.onmouseout=this.MouseOut.bindAsEventListener(this);this.doc.onclick=this.MouseClick.bindAsEventListener(this);this.doc.ondblclick=this.MouseDblClickMarker.bindAsEventListener(this);this.doc.onmousedown=this.MouseDown.bindAsEventListener(this);this.doc.onmouseup=this.MouseUp.bindAsEventListener(this);};function ZdcUserLayer(opt){this.doc=document.createElement("DIV");this.doc.style.position="absolute";this.doc.style.left=0;this.doc.style.top=0;this.doc.style.width=2048;this.doc.style.height=2048;this.markers=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;}ZdcUserLayer.prototype.getMarkerCount=function(){this.markercount=0;for(var i=0;i<this.markers.length;i++){if(this.markers[i]!=null){this.markercount++;}}return this.markercount;};ZdcUserLayer.prototype.addMarker=function(m){var _27=parseInt(this.doc.style.left);var _28=parseInt(this.doc.style.top);m.parentLayer=this;var id=0;while(this.markers[id]!=null){id++;}this.markers[id]=m;if(this.addmapstatus){var pxy=this.pMap.convertPoint2Pixel(this.markers[id].Point);this.markers[id].doc.style.left=pxy.x+this.markers[id].icon.offset.x-_27;this.markers[id].doc.style.top=pxy.y+this.markers[id].icon.offset.y-_28;this.doc.appendChild(this.markers[id].doc);}return id;};ZdcUserLayer.prototype.clearMarker=function(flg){for(var i=this.markers.length-1;i>=0;i--){if(this.markers[i]!=null){if(flg==null&&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;ZdcEvent.clearInstanceListeners(this.markers[i]);this.markers[i]=null;}}};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;ZdcEvent.clearInstanceListeners(this.markers[id]);this.markers[id]=null;}};ZdcUserLayer.prototype.removeMarker=function(mrk){var id=0;while(this.markers[id]!=mrk){id++;}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;ZdcEvent.clearInstanceListeners(this.markers[id]);this.markers[id]=null;return;}else{return -1;}};ZdcUserLayer.prototype.setLayerType=function(opt){if(opt!=null){this.type=opt;}};ZdcUserLayer.prototype.setLayerScale=function(min,max){if(min==null||max==null){return -1;}this.minzoom=min;this.maxzoom=max;};ZdcUserLayer.prototype.getMarkerById=function(id){if(this.markers[id]!=null){return this.markers[id];}else{return null;}};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;this.basedoc.style.left=this.basey;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=0;this.textdoc.style.left=0;this.closedoc=document.createElement("DIV");this.closedoc.style.zIndex=5;this.closedoc.style.position="absolute";this.textdoc.onmousedown=this.MouseDownMsgWindow.bindAsEventListener(this);this.textdoc.onmousemove=this.MouseMoveMsgWindow.bindAsEventListener(this);this.textbkdoc.onmousedown=this.MouseDownMsgWindow.bindAsEventListener(this);this.textbkdoc.onmousemove=this.MouseMoveMsgWindow.bindAsEventListener(this);this.doc.ondblclick=this.MouseDblClickMsgWindow.bindAsEventListener(this);this.doc.onclick=this.MouseClickMsgWindowBase.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.MouseCloseDown.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.textdoc);this.AddMouseWheelListener(this.WheelStop.bindAsEventListener(this),false);}ZdcUserMsgWindow.prototype.AddMouseWheelListener=function(_34,cap){if(this.textbkdoc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_34,cap);this.doc.addEventListener("mousewheel",_34,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_34);}}};ZdcUserMsgWindow.prototype.WheelStop=function(e){if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}};ZdcUserMsgWindow.prototype.setImage=function(_37,_38,_39,_3a,_3b,_3c,_3d,_3e,_3f){this.baseimage=_37;this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_37+")";this.basedoc.style.width=_38.width;this.basedoc.style.height=_38.height;if(document.all){this.basedoc.innerHTML="<IMG src="+_37+"  style='display:none' />";}else{this.basedoc.innerHTML="<IMG src="+_37+" />";}if(_3d!=null&&_3e!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_3d+")";this.shadowdoc.style.width=_3e.width;this.shadowdoc.style.height=_3e.height;if(document.all){this.shadowdoc.innerHTML="<IMG src="+_3d+" style='display:none' />";}else{this.shadowdoc.innerHTML="<IMG src="+_3d+" />";}}if(_3b!=null&&_3c!=null){this.closedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_3b+")";this.closedoc.style.width=_3c.width;this.closedoc.style.height=_3c.height;if(document.all){this.closedoc.innerHTML="<IMG src="+_3b+" style='display:none' />";}else{this.closedoc.innerHTML="<IMG src="+_3b+" />";}}if(_39!=null&&_3a!=null){this.textbkdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_39+")";this.textbkdoc.style.width=_3a.width;this.textbkdoc.style.height=_3a.height;this.textdoc.style.width=_3a.width;this.textdoc.style.height=_3a.height;if(document.all){this.textbkdoc.innerHTML="<IMG src="+_39+" style='display:none' />";}else{this.textbkdoc.innerHTML="<IMG src="+_39+" />";}}if(_3f!=null){this.printimage=_3f;}};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(_43,_44,_45,_46,_47,_48,_49,_4a){this.basedoc.style.top=_43;this.basedoc.style.left=_44;if(_45!=null&&_46!=null){this.textdoc.style.top=_45;this.textdoc.style.left=_46;}if(_47!=null&&_48!=null){this.closedoc.style.top=_47;this.closedoc.style.left=_48;}if(_49!=null&&_4a!=null){this.shadowdoc.style.top=_49;this.shadowdoc.style.left=_4a;}if(_45!=null&&_46!=null){this.textdoc.style.top=_45;this.textdoc.style.left=_46;this.textbkdoc.style.top=_45;this.textbkdoc.style.left=_46;}};ZdcUserMsgWindow.prototype.MouseDownMsgWindow=function(_4b){if(document.all){window.event.cancelBubble=true;return false;}else{_4b.stopPropagation();}};ZdcUserMsgWindow.prototype.MouseDblClickMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcUserMsgWindow.prototype.MouseMoveMsgWindow=function(_4d){if(document.all){window.event.cancelBubble=true;}else{_4d.stopPropagation();}return false;};ZdcUserMsgWindow.prototype.MouseClickMsgWindowBase=function(_4e){if(document.all){window.event.cancelBubble=true;}else{if(navigator.userAgent.indexOf("Safari")>=0){_4e.stopPropagation();}else{}}};ZdcUserMsgWindow.prototype.MouseCloseMsgWindow=function(_4f){this.doc.style.visibility="hidden";this.pMap.closeUserMsgWindow();if(document.all){window.event.cancelBubble=true;}else{_4f.stopPropagation();}ZdcEvent.trigger(this,"usermsgcloseclick");};ZdcUserMsgWindow.prototype.MouseCloseOver=function(_50){if(document.all){this.closedoc.style.cursor="hand";}else{this.closedoc.style.cursor="pointer";}};ZdcUserMsgWindow.prototype.MouseCloseOut=function(_51){this.closedoc.style.cursor="default";};ZdcUserMsgWindow.prototype.MouseCloseDown=function(_52){if(document.all){window.event.cancelBubble=true;}else{_52.stopPropagation();}};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=247;this.doclarge.style.height=154;this.docsmall=document.createElement("DIV");this.docsmall.style.position="absolute";this.docsmall.style.width=247;this.docsmall.style.height=54;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){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="<IMG src="+this.LargeImage+"  style='display:none'>";this.docsmall.innerHTML="<IMG src="+this.SmallImage+"   style='display:none'>";}else{this.doclarge.innerHTML="<IMG src="+this.LargeImage+" >";this.docsmall.innerHTML="<IMG src="+this.SmallImage+" >";}this.docclose.innerHTML="<IMG src="+this.CloseImage+">";}else{this.doclarge.innerHTML="<IMG src="+this.LargeImage+">";this.docsmall.innerHTML="<IMG src="+this.SmallImage+">";this.docclose.innerHTML="<IMG src="+this.CloseImage+">";}this.BaseX=0;this.BaseY=0;this.doclarge.style.left=this.BaseX;this.doclarge.style.top=this.BaseY-150;this.docsmall.style.left=this.BaseX;this.docsmall.style.top=this.BaseY-50;this.doctextlarge.style.left=this.BaseX+7;this.doctextsmall.style.left=this.BaseX+7;this.doctextlarge.style.top=this.BaseY-140;this.doctextsmall.style.top=this.BaseY-39;this.docclose.style.left=this.BaseX+217;if(this.largeopen){this.docclose.style.top=this.BaseY-140;this.docchange.innerHTML="<IMG src="+this.ChgSmallImage+">";this.docchange.style.top=this.BaseY-127;this.docchange.style.left=this.BaseX+217;}else{this.docclose.style.top=this.BaseY-37;this.docchange.innerHTML="<IMG src="+this.ChgLargeImage+">";this.docchange.style.top=this.BaseY-37;this.docchange.style.left=this.BaseX+205;}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.MouseClickMsgWindow.bindAsEventListener(this);this.docclose.onmousedown=this.MouseDownCloseMsgWindow.bindAsEventListener(this);this.docclose.onclick=this.MouseCloseMsgWindow.bindAsEventListener(this);this.docchange.onclick=this.MouseChangeMsgWindow.bindAsEventListener(this);this.docclose.onmouseover=this.MouseCloseOver.bindAsEventListener(this);this.docchange.onmouseover=this.MouseChangeOver.bindAsEventListener(this);this.docclose.onmouseout=this.MouseCloseOut.bindAsEventListener(this);this.docchange.onmouseout=this.MouseChangeOut.bindAsEventListener(this);this.AddMouseWheelListener(this.WheelStop.bindAsEventListener(this),true);}ZdcMsgWindow.prototype.AddMouseWheelListener=function(_54,cap){if(this.doc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_54,cap);this.doc.addEventListener("mousewheel",_54,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_54);}}};ZdcMsgWindow.prototype.WheelStop=function(e){if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}};ZdcMsgWindow.prototype.MouseClickMsgWindow=function(e){};ZdcMsgWindow.prototype.MouseDownMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseCloseOver=function(e){if(document.all){this.docclose.style.cursor="hand";}else{this.docclose.style.cursor="pointer";}};ZdcMsgWindow.prototype.MouseChangeOver=function(e){if(document.all){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);};ZdcMsgWindow.prototype.MouseCloseMsgWindow=function(e){this.pMap.msgopenstatus=false;if(ZdcCommon.UserAgentIsFireFox()){this.pMap.SetMsgWindowOnDrag();}this.openstatus=false;this.hiddenMsg();ZdcEvent.stopPropagation(e);ZdcEvent.trigger(this,"msgcloseclick");};ZdcMsgWindow.prototype.MouseChangeMsgWindow=function(e){if(this.largeopen){this.docclose.style.top=this.BaseY-37;this.docchange.style.top=this.BaseY-37;this.docchange.style.left=this.BaseX+205;this.visibleSmallMsg();this.largeopen=false;}else{this.docclose.style.top=this.BaseY-140;this.docchange.style.top=this.BaseY-127;this.docchange.style.left=this.BaseX+217;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="<IMG src="+this.ChgLargeImage+">";}else{this.docsmall.style.visibility="visible";this.doctextsmall.style.visibility="visible";if(!this.smallonly){this.docchange.innerHTML="<IMG src="+this.ChgSmallImage+">";}}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;this.docchange.style.top=this.BaseY-37;this.docchange.style.left=this.BaseX+217;}};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;this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docchange.innerHTML="<IMG src="+this.ChgSmallImage+">";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;if(this.smallonly){this.docclose.style.top=this.BaseY-37;this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docchange.innerHTML="<IMG src="+this.ChgLargeImage+">";this.largeopen=false;};ZdcMsgWindow.prototype.getStatus=function(){return this.openstatus;};function ZdcMapCenter(_60){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=100/100;this.doc.style.opacity=100/100;if(_60==null){this.type=1;}else{this.type=Number(_60);}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=22;this.doc.style.height=22;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=14;this.doc.style.height=14;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=30;this.doc.style.height=30;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=26;this.doc.style.height=26;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=10;this.doc.style.height=10;break;}if(typeof (_60)=="object"){if(_60.image!=""&&_60.offset!=""){this.type=null;this.image=_60.image;this.offset=_60.offset;}}if(document.all){this.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.image+")";this.doc.innerHTML="<IMG src="+this.image+" style='display:none' />";}else{this.doc.innerHTML="<IMG src="+this.image+">";}this.id="Center_1_1";}function ZdcMapCenterInfoBox(f){if(f!=null){if(f<3){this.type=f;}}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=75/100;this.doc1.style.opacity=75/100;}else{this.doc1.style.filter="alpha(opacity=50)";this.doc1.style.mozOpacity=50/100;this.doc1.style.opacity=50/100;}this.doc2.style.filter="alpha(opacity=100)";this.doc2.style.mozOpacity=100/100;this.doc2.style.opacity=100/100;if(this.type==1){this.ZdcCenterInfoImage=ZdcCommon.ZdcMapServer+"/img/CenterInfoBox.png";}else{this.ZdcCenterInfoImage=ZdcCommon.ZdcMapServer+"/img/CenterInfoBox2.png";}}function ZdcScaleBar(f){if(f!=null){if(f==1||f==2||f==9){this.type=f;}}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==9){this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase.gif";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBar_";}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=75/100;this.doc1.style.opacity=75/100;}else{this.doc1.style.filter="alpha(opacity=100)";this.doc1.style.mozOpacity=100/100;this.doc1.style.opacity=100/100;}this.doc2.style.filter="alpha(opacity=100)";this.doc2.style.mozOpacity=100/100;this.doc2.style.opacity=100/100;}function ZdcUserControl(){this.basetop=0;this.baseleft=0;this.doc=document.createElement("DIV");this.doc.setAttribute("id","usercontrol");this.doc.style.zIndex=10090;this.doc.style.position="absolute";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);this.mousecursor="default";this.basedoc.style.cursor="default";this.actionid=0;this.aid=1;this.action=new Array();for(var i=1;i<10;i++){var _64=new ZdcPixel(0,0);var _65=new ZdcPixel(0,0);this.action[i]=new Object();this.action[i].box=new ZdcPixelBox(_64,_65);}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);}ZdcUserControl.prototype.setMouseCursor=function(_66){if(_66!="default"&&_66!="hand"){return -1;}this.mousecursor=_66;if(this.mousecursor=="hand"){if(document.all){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}}if(this.mousecursor=="default"){this.basedoc.style.cursor="default";}};ZdcUserControl.prototype.setImage=function(_67,_68,_69,_6a){this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_67+")";this.basedoc.style.width=_68.width;this.basedoc.style.height=_68.height;if(document.all){this.basedoc.innerHTML="<IMG src="+_67+"  style='display:none' />";}else{this.basedoc.innerHTML="<IMG src="+_67+" />";}if(_69!=null&&_6a!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_69+")";this.shadowdoc.style.width=_6a.width;this.shadowdoc.style.height=_6a.height;if(document.all){this.shadowdoc.innerHTML="<IMG src="+_69+" style='display:none' />";}else{this.shadowdoc.innerHTML="<IMG src="+_69+" />";}}};ZdcUserControl.prototype.setDocPosition=function(_6b,_6c,_6d,_6e){this.basedoc.style.left=this.baseleft+_6c;this.basedoc.style.top=this.basetop+_6b;if(_6d!=null&&_6e!=null){this.shadowdoc.style.left=this.baseleft+Number(_6e);this.shadowdoc.style.top=this.baseleft+Number(_6d);}};ZdcUserControl.prototype.OnMouseMoveDoc=function(_6f){if(document.all){window.event.cancelBubble=true;}else{_6f.stopPropagation();}};ZdcUserControl.prototype.OnMouseUpDoc=function(_70){this.actionid=0;if(document.all){var x=_70.offsetX;var y=_70.offsetY;}else{var x=_70.layerX;var y=_70.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}if(document.all){window.event.cancelBubble=true;}else{_70.stopPropagation();}ZdcEvent.trigger(this,"mouseup");};ZdcUserControl.prototype.OnMouseDownDoc=function(_74){this.actionid=0;if(document.all){var x=_74.offsetX;var y=_74.offsetY;}else{var x=_74.layerX;var y=_74.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}if(document.all){window.event.cancelBubble=true;}else{_74.stopPropagation();}ZdcEvent.trigger(this,"mousedown");};ZdcUserControl.prototype.OnMouseDblClickDoc=function(_78){this.actionid=0;if(document.all){var x=_78.offsetX;var y=_78.offsetY;}else{var x=_78.layerX;var y=_78.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}if(document.all){window.event.cancelBubble=true;}else{_78.stopPropagation();}ZdcEvent.trigger(this,"dblclickend");};ZdcUserControl.prototype.OnMouseClickDoc=function(_7c){this.actionid=0;if(document.all){var x=_7c.offsetX;var y=_7c.offsetY;}else{var x=_7c.layerX;var y=_7c.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}if(document.all){window.event.cancelBubble=true;}else{_7c.stopPropagation();}ZdcEvent.trigger(this,"clickend");};ZdcUserControl.prototype.setAction=function(_80,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=_80;this.aid++;};function ZdcUserZoomControl(){this.tooltipimg=null;this.tootipsize=null;this.doctooltip=null;this.tooltipid=null;this.basetop=0;this.baseleft=0;this.doc=document.createElement("DIV");this.doc.setAttribute("id","userzoomcontrol");this.doc.style.zIndex=10090;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";this.mousecursor="default";this.doc.style.cursor="default";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.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.action=new Array();for(var i=1;i<5;i++){var _86=new ZdcPixel(0,0);var _87=new ZdcPixel(0,0);this.action[i]=new Object();this.action[i].box=new ZdcPixelBox(_86,_87);}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.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.onmouseover=this.MouseOver.bindAsEventListener(this);this.doc.onmouseout=this.MouseOut.bindAsEventListener(this);}ZdcUserZoomControl.prototype.setMouseCursor=function(_88){if(_88!="default"&&_88!="hand"){return -1;}this.mousecursor=_88;if(this.mousecursor=="hand"){if(document.all){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.MouseOver=function(){if(this.doctooltip){this.doctooltip.style.visibility="visible";}};ZdcUserZoomControl.prototype.MouseOut=function(){if(this.doctooltip){if(document.all){if(!window.event||window.event.type!="mouseout"){return;}var t=window.event.toElement;var _8a=false;while(t){if(t==this.doc){_8a=true;break;}t=t.parentElement;}if(!_8a){this.doctooltip.style.visibility="hidden";}}else{this.doctooltip.style.visibility="hidden";}}};ZdcUserZoomControl.prototype.SetZoomTipImage=function(_8b,_8c){this.tootipimg=_8b;this.tooltipsize=new ZdcSize(_8c.width,_8c.height);this.doctooltip=document.createElement("DIV");this.doctooltip.setAttribute("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="+_8b+")";this.doctooltip.style.width=_8c.width;this.doctooltip.style.height=_8c.height;if(document.all){this.doctooltip.innerHTML="<IMG src="+_8b+" style='display:none' />";}else{this.doctooltip.innerHTML="<IMG src="+_8b+" />";}};ZdcUserZoomControl.prototype.setImage=function(_8d,_8e,_8f,_90,_91,_92){this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_8d+")";this.basedoc.style.width=_8e.width;this.basedoc.style.height=_8e.height;if(document.all){this.basedoc.innerHTML="<IMG src="+_8d+"  style='display:none' />";}else{this.basedoc.innerHTML="<IMG src="+_8d+" />";}if(_8f!=null&&_90!=null){this.griddoc.style.width=_90.width;this.griddoc.style.height=_90.height;this.griddoc.innerHTML="<IMG src='"+_8f+"'>";}if(_91!=null&&_92!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_91+")";this.shadowdoc.style.width=_92.width;this.shadowdoc.style.height=_92.height;if(document.all){this.shadowdoc.innerHTML="<IMG src="+_91+" style='display:none' />";}else{this.shadowdoc.innerHTML="<IMG src="+_91+" />";}}};ZdcUserZoomControl.prototype.setZoomLimit=function(s1,s2){var vs1=parseInt(s1);var vs2=parseInt(s2);if(vs1<vs2&&Number(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(_97,_98,_99,_9a){this.basedoc.style.left=this.baseleft+_98;this.basedoc.style.top=this.basetop+_97;if(_99!=null&&_9a!=null){this.shadowdoc.style.left=this.baseleft+_9a;this.shadowdoc.style.top=this.baseleft+_99;}};ZdcUserZoomControl.prototype.OnMouseMoveGridDoc=function(_9b){if(ZdcDrag.IsDragging()){if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}return false;}if(document.all){window.event.cancelBubble=true;}else{_9b.stopPropagation();}ZdcEvent.trigger(this,"mousemovegrid");return false;};ZdcUserZoomControl.prototype.OnMouseClickGridDoc=function(_9c){if(document.all){window.event.cancelBubble=true;}else{_9c.stopPropagation();}ZdcEvent.trigger(this,"mouseclickgrid");return false;};ZdcUserZoomControl.prototype.OnMouseDownGridDoc=function(_9d){if(!this.dragstatus){this.actionid="slither";this.dragscreenx=_9d.screenX;this.dragscreeny=_9d.screenY;if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"),pointer";}}if(document.all){window.event.cancelBubble=true;}else{_9d.stopPropagation();}ZdcEvent.trigger(this,"mousedowngrid");return false;};ZdcUserZoomControl.prototype.OnMouseUpGridDoc=function(_9e){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(_9f){if(document.all){window.event.cancelBubble=true;}else{_9f.stopPropagation();}ZdcEvent.trigger(this,"dblclickend");};ZdcUserZoomControl.prototype.OnMouseUpDoc=function(_a0){if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}ZdcEvent.trigger(this,"mouseup");return false;};ZdcUserZoomControl.prototype.OnMouseMoveDoc=function(_a1){if(ZdcDrag.IsDragging()){return false;}return false;};ZdcUserZoomControl.prototype.OnMouseDownDoc=function(_a2){if(document.all){window.event.cancelBubble=true;}else{_a2.stopPropagation();}if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}ZdcEvent.trigger(this,"mousedown");return false;};ZdcUserZoomControl.prototype.OnMouseClickDoc=function(_a3){this.actionid="none";if(document.all){var x=_a3.offsetX;var y=_a3.offsetY;}else{var x=_a3.layerX;var y=_a3.layerY;}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;}}if(document.all){window.event.cancelBubble=true;}else{_a3.stopPropagation();}ZdcEvent.trigger(this,"clickend");return false;};ZdcUserZoomControl.prototype.setAction=function(_a7,px1,py1,px2,py2,_ac){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=_a7;if(_a7=="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;}else{this.slithertype=2;this.zoomstart=px1;this.zoomend=px2;this.zoomslithersize=Math.abs(px2-px1);this.griddoc.style.top=py1;}this.setSlitherPosition();}this.aid++;};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<this.zoomMin){s=this.zoomMin;}return s;};ZdcUserZoomControl.prototype.setSlitherPosition=function(){if(this.pMap!=null){if(this.slithertype==1){if(this.dragtype==1){this.griddoc.style.top=Math.round(this.zoomstart+((this.pMap.s-this.zoomMin)*this.zoomslithersize/this.zoomLimit));}else{this.griddoc.style.top=Math.round(this.zoomstart+((this.zoomMax-this.pMap.s)*this.zoomslithersize/this.zoomLimit));}}else{if(this.dragtype==1){this.griddoc.style.left=Math.round(this.zoomstart+((this.pMap.s-this.zoomMin)*this.zoomslithersize/this.zoomLimit));}else{this.griddoc.style.left=Math.round(this.zoomstart+((this.zoomMax-this.pMap.s)*this.zoomslithersize/this.zoomLimit));}}}};ZdcUserZoomControl.prototype.setDragType=function(_ae){if(_ae!=null){if(_ae!=1&&_ae!=2){return -1;}this.dragtype=_ae;}};ZdcUserZoomControl.prototype.dragstart=function(){if(!this.dragstatus){this.dragstatus=true;if(this.slithertype==1){if(this.dragtype==1){this.dragtop=Math.round(this.zoomstart+((this.pMap.s-this.zoomMin)*this.zoomslithersize/this.zoomLimit));}else{this.dragtop=Math.round(this.zoomstart+((this.zoomMax-this.pMap.s)*this.zoomslithersize/this.zoomLimit));}this.dragy=this.dragtop;}else{if(this.dragtype==1){this.dragleft=Math.round(this.zoomstart+((this.pMap.s-this.zoomMin)*this.zoomslithersize/this.zoomLimit));}else{this.dragleft=Math.round(this.zoomstart+((this.zoomMax-this.pMap.s)*this.zoomslithersize/this.zoomLimit));}this.dragx=this.dragleft;}this.slithermovestatus=false;ZdcDrag.StartDragging(this.griddoc,this.dragging.bindAsEventListener(this),this.dragend.bindAsEventListener(this));return false;}else{return false;}};ZdcUserZoomControl.prototype.dragend=function(e){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;}this.pMap.setMapScale(s);this.dragstatus=false;this.actionid=0;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";return false;};ZdcUserZoomControl.prototype.dragging=function(e){if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"),pointer";}this.newscreenx=e.screenX;this.newscreeny=e.screenY;if(this.slithermovestatus){return;}if(this.dragstatus){if(this.slithertype==1){if(Math.abs(this.dragscreeny-this.newscreeny)>=Math.floor(this.zoomslithersize/this.zoomLimit)){this.slithermovestatus=true;var _b2=Math.round((this.newscreeny-this.dragscreeny)/Math.round(this.zoomslithersize/this.zoomLimit));var mvy=this.dragy+_b2*Math.round(this.zoomslithersize/this.zoomLimit);if(this.zoomstart<=mvy&&mvy<this.zoomend&&mvy!=this.dragy){this.griddoc.style.top=mvy;this.dragscreeny=this.newscreeny;this.dragy=mvy;this.zoomImage();}this.slithermovestatus=false;}}else{if(Math.abs(this.dragscreenx-this.newscreenx)>=Math.floor(this.zoomslithersize/this.zoomLimit)){this.slithermovestatus=true;var _b2=Math.round((this.newscreenx-this.dragscreenx)/Math.round(this.zoomslithersize/this.zoomLimit));var mvx=this.dragx+_b2*Math.round(this.zoomslithersize/this.zoomLimit);if(this.zoomstart<=mvx&&mvx<this.zoomend&&mvx!=this.dragx){this.griddoc.style.left=mvx;this.dragscreenx=this.newscreenx;this.dragx=mvx;this.zoomImage();}this.slithermovestatus=false;}}}};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=99/100;this.pMap.ZdcZoomChangeImage.style.opacity=99/100;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.zoomMin){s=this.zoomMin;}var _b6=this.pMap.s;var _b7=s;if(_b6<=_b7){var img=this.pMap.ZoomChangeImageClear;var _b9=this.pMap.ZoomChangeImageCorner1;var _ba=this.pMap.ZoomChangeImageCorner2;var _bb=this.pMap.ZoomChangeImageCorner3;var _bc=this.pMap.ZoomChangeImageCorner4;}else{var img=this.pMap.ZoomChangeImageClear;var _b9=this.pMap.ZoomChangeImageCorner4;var _ba=this.pMap.ZoomChangeImageCorner3;var _bb=this.pMap.ZoomChangeImageCorner2;var _bc=this.pMap.ZoomChangeImageCorner1;}if(_b6==_b7){var _bd=this.pMap.ZdcMapWpx-6;var _be=this.pMap.ZdcMapHpx-6;}else{if(_b6<_b7){var _bd=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_b7]/ZdcZoom.map_defw[_b6]));var _be=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_b7]/ZdcZoom.map_defh[_b6]));}else{var _bd=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_b6]/ZdcZoom.map_defw[_b7]));var _be=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_b6]/ZdcZoom.map_defh[_b7]));}}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,_b6).isContainPoint(this.pMap.ZdcMsgWindowObj.Point)){if(_b6<_b7){var _c1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_b6,_b7);}else{var _c1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_b7,_b6);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((_c1.mx-this.pMap.mx)/ZdcZoom.map_defw[_b6]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-_c1.my)/ZdcZoom.map_defh[_b6]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.usermsgopenstatus){if(this.pMap.getMapBoundBox(null,_b6).isContainPoint(this.pMap.ZdcUserMsgWindow.Point)){if(_b6<_b7){var _c1=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_b6,_b7);}else{var _c1=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_b7,_b6);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((_c1.mx-this.pMap.mx)/ZdcZoom.map_defw[_b6]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-_c1.my)/ZdcZoom.map_defh[_b6]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.htmlopenstatus){if(this.pMap.getMapBoundBox(null,_b6).isContainPoint(this.pMap.ZdcMsgHtml.Point)){if(_b6<_b7){var _c1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_b6,_b7);}else{var _c1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_b7,_b6);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((_c1.mx-this.pMap.mx)/ZdcZoom.map_defw[_b6]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-_c1.my)/ZdcZoom.map_defh[_b6]);}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(_bd/2)-3;this.pMap.ZdcZoomChangeImage.style.top=cy-Math.floor(_be/2)-3;this.pMap.ZdcZoomChangeImage.style.width=_bd+6;this.pMap.ZdcZoomChangeImage.style.height=_be+6;this.pMap.ZdcZoomChangeImage.innerHTML="<DIV style='border:2px solid #007eca'><IMG  style='border:1px solid #007eca' src="+img+" width="+_bd+" height="+_be+"></DIV>";this.pMap.ZdcZoomChangeImage.style.position="absolute";if(document.all){this.pMap.ZdcZoomChangeImageCorner1.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft-16;this.pMap.ZdcZoomChangeImageCorner1.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop-16;this.pMap.ZdcZoomChangeImageCorner2.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft+_bd+2;this.pMap.ZdcZoomChangeImageCorner2.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop-16;this.pMap.ZdcZoomChangeImageCorner3.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft-16;this.pMap.ZdcZoomChangeImageCorner3.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop+_be+2;this.pMap.ZdcZoomChangeImageCorner4.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft+_bd+2;this.pMap.ZdcZoomChangeImageCorner4.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop+_be+2;this.pMap.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_b9+")";this.pMap.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_ba+")";this.pMap.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_bb+")";this.pMap.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_bc+")";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+_b9+" style='display:none'>";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+_ba+" style='display:none'>";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+_bb+" style='display:none'>";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+_bc+" style='display:none'>";}else{this.pMap.ZdcZoomChangeImageCorner1.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16;this.pMap.ZdcZoomChangeImageCorner1.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16;this.pMap.ZdcZoomChangeImageCorner2.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_bd+2;this.pMap.ZdcZoomChangeImageCorner2.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16;this.pMap.ZdcZoomChangeImageCorner3.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16;this.pMap.ZdcZoomChangeImageCorner3.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_be+2;this.pMap.ZdcZoomChangeImageCorner4.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_bd+2;this.pMap.ZdcZoomChangeImageCorner4.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_be+2;this.pMap.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+_b9+">";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+_ba+">";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+_bb+">";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+_bc+">";}this.pMap.ZdcZoomChangeImageCorner1.style.width="20";this.pMap.ZdcZoomChangeImageCorner1.style.height="20";this.pMap.ZdcZoomChangeImageCorner1.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner2.style.width="20";this.pMap.ZdcZoomChangeImageCorner2.style.height="20";this.pMap.ZdcZoomChangeImageCorner2.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner3.style.width="20";this.pMap.ZdcZoomChangeImageCorner3.style.height="20";this.pMap.ZdcZoomChangeImageCorner3.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner4.style.width="20";this.pMap.ZdcZoomChangeImageCorner4.style.height="20";this.pMap.ZdcZoomChangeImageCorner4.style.position="absolute";};function ZdcControl(f){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;if(this.samllonly){this.zoomlistopen=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=10090;this.doc.style.position="absolute";this.mousecursor="default";this.doc.style.cursor="default";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=62;this.scaledoc.style.height=34;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=100/100;this.basedoc.style.opacity=100/100;this.scaledoc.style.mozOpacity=100/100;this.scaledoc.style.opacity=100/100;this.changedoc.style.mozOpacity=100/100;this.changedoc.style.opacity=100/100;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.doc.style.width="70";this.doc.style.height="330";this.height=320;this.doc.style.filter="alpha(opacity=60)";this.doc.style.mozOpacity=60/100;this.doc.style.opacity=60/100;this.basedoc.style.left=this.BaseX;this.basedoc.style.top=this.BaseY;this.changedoc.style.left=this.BaseX+48;this.changedoc.style.top=this.BaseY+66;this.scaledoc.style.left=this.BaseX-3;this.scaledoc.style.top=this.BaseY+100;this.scaleseldoc.style.left=this.BaseX+1;this.scaleseldoc.style.top=this.BaseY;this.scaleslitherdoc.style.left=this.BaseX+53;this.scaleslitherdoc.style.top=this.BaseY;this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";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.basedoc.style.left=this.BaseX;this.basedoc.style.top=this.BaseY;this.changedoc.style.left=this.BaseX+48;this.changedoc.style.top=this.BaseY+62;this.scaledoc.style.left=this.BaseX+2;this.scaledoc.style.top=this.BaseY+100;this.scaleseldoc.style.left=this.BaseX+9;this.scaleseldoc.style.width=45;this.scaleseldoc.style.top=this.BaseY;this.scaleslitherdoc.style.left=this.BaseX+44;this.scaleslitherdoc.style.top=this.BaseY;this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";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=document.createElement("DIV");this.shadowsmalldoc=document.createElement("DIV");this.shadowlargedoc.style.position="absolute";this.shadowsmalldoc.style.position="absolute";this.shadowlargedoc.style.zIndex=1;this.shadowsmalldoc.style.zIndex=1;if(document.all){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="<IMG src="+this.CtlShadowSmallImage+" style='display:none'>";this.shadowlargedoc.innerHTML="<IMG src="+this.CtlShadowLargeImage+" style='display:none'>";}else{this.shadowsmalldoc.innerHTML="<IMG src="+this.CtlShadowSmallImage+">";this.shadowlargedoc.innerHTML="<IMG src="+this.CtlShadowLargeImage+">";}this.shadowlargedoc.style.width=64;this.shadowlargedoc.style.height=324;this.shadowsmalldoc.style.width=64;this.shadowsmalldoc.style.height=324;this.id="Control_1_3";this.width=64;this.height=324;this.basedoc.style.left=this.BaseX;this.basedoc.style.top=this.BaseY;this.changedoc.style.left=this.BaseX+47;this.changedoc.style.top=this.BaseY+66;this.scaledoc.style.left=this.BaseX;this.scaledoc.style.top=this.BaseY+100;this.scaleseldoc.style.left=this.BaseX+3;this.scaleseldoc.style.top=this.BaseY;this.scaleslitherdoc.style.left=this.BaseX+49;this.scaleslitherdoc.style.top=this.BaseY;this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";this.shadowlargedoc.style.left=this.BaseX+2;this.shadowlargedoc.style.top=this.BaseY+2;this.shadowsmalldoc.style.left=this.BaseX+2;this.shadowsmalldoc.style.top=this.BaseY+2;break;}this.basedoc.innerHTML="<IMG src="+this.CtlSmallImage+">";this.changedoc.innerHTML="<IMG src="+this.CtlChgImage+">";this.scaledoc.innerHTML="<IMG src="+this.CtlScaleImage+">";this.scaleseldoc.innerHTML="<IMG src="+this.CtlScaleSelImage+">";this.scaleslitherdoc.innerHTML="<IMG src="+this.CtlScaleSlitherImage+">";this.basedoc.style.width="0";this.basedoc.style.height="0";this.basedoc.style.position="absolute";this.changedoc.style.width="12";this.changedoc.style.height="12";this.changedoc.style.position="absolute";this.scaledoc.style.position="absolute";this.scaledoc.style.lineHeight="16";this.scaleseldoc.style.width="58";this.scaleseldoc.style.height="12";this.scaleseldoc.style.position="absolute";this.scaleseldoc.style.filter="alpha(opacity=60)";this.scaleseldoc.style.mozOpacity=60/100;this.scaleseldoc.style.opacity=60/100;this.scaleseldoc.lineHeight="16";this.scaleslitherdoc.style.width="12";this.scaleslitherdoc.style.height="16";this.scaleslitherdoc.style.position="absolute";this.scaleslitherdoc.style.filter="alpha(opacity=100)";this.scaleslitherdoc.style.mozOpacity=100/100;this.scaleslitherdoc.style.opacity=100/100;this.mousecursor="default";this.basedoc.style.cursor="default";this.zoomlistopen=false;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.OnMouseDownChgDoc.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.OnMouseClickDoc.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);}ZdcControl.prototype.setMouseCursor=function(_c3){if(_c3!="default"&&_c3!="hand"){return -1;}this.mousecursor=_c3;if(this.mousecursor=="hand"){if(document.all){this.basedoc.style.cursor="hand";this.changedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";this.changedoc.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.scaleslitherdoc.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";};ZdcControl.prototype.setSmallOnly=function(){this.smallonly=true;if(this.samllonly){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";}}};ZdcControl.prototype.OnMouseDblClick=function(_c4){if(document.all){window.event.cancelBubble=true;}else{_c4.stopPropagation();}};ZdcControl.prototype.OnMouseDownDoc=function(_c5){if(document.all){window.event.cancelBubble=true;}else{_c5.stopPropagation();}if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"),pointer";}return false;};ZdcControl.prototype.OnMouseDownBaseDoc=function(_c6){if(document.all){window.event.cancelBubble=true;}else{_c6.stopPropagation();}return false;};ZdcControl.prototype.OnMouseDownChgDoc=function(_c7){if(document.all){window.event.cancelBubble=true;}else{_c7.stopPropagation();}return false;};ZdcControl.prototype.OnMouseDownSlither=function(_c8){if(document.all){this.SlitherPixelY=this.scaleslitherdoc.style.pixelTop;}else{this.SlitherPixelY=parseInt(this.scaleslitherdoc.style.top);}this.dragscreeny=_c8.screenY;this.dragy=this.zoomstart+Math.floor((this.pMap.s-1)*this.zoomheight);this.Slither=true;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));if(document.all){window.event.cancelBubble=true;}else{_c8.stopPropagation();}return false;};ZdcControl.prototype.OnMouseClickDoc=function(_c9){if(document.all){window.event.cancelBubble=true;}else{_c9.stopPropagation();}return false;};ZdcControl.prototype.MouseOnClick=function(_ca){var _cb=this.pMap;if(document.all){var x=_ca.offsetX;var y=_ca.offsetY;}else{var x=_ca.layerX;var y=_ca.layerY;}var s;if(y<60){if(y<20){if(x<20){_cb.ScrollMapByDirection(1,1);}else{if(x>20&&x<40){_cb.ScrollMapByDirection(0,1);}else{_cb.ScrollMapByDirection(-1,1);}}}else{if(y>20&&y<40){if(x<20){_cb.ScrollMapByDirection(1,0);}else{if(x>20&&x<40){_cb.restoreMapLocation();}else{_cb.ScrollMapByDirection(-1,0);}}}else{if(x<20){_cb.ScrollMapByDirection(1,-1);}else{if(x>20&&x<40){_cb.ScrollMapByDirection(0,-1);}else{_cb.ScrollMapByDirection(-1,-1);}}}}}else{if(this.zoomlistopen){if(y<73){_cb.mapZoomOut(1,"zoom");s=73+(this.pMap.s-1)*13;}else{if(73<y&&y<307){s=73+Math.floor((y-73)/13)*13;_cb.setMapScale(Math.floor((y-73)/13)+1);}else{if(y>307){_cb.mapZoomIn(1,"zoom");s=73+(this.pMap.s-1)*13;}}}this.scaleseldoc.style.top=s;if(this.type==3){this.scaleslitherdoc.style.top=s;}else{this.scaleslitherdoc.style.top=s-2;}}else{if(y<73){_cb.mapZoomOut(1,"zoom");}else{_cb.mapZoomIn(1,"zoom");}}}if(document.all){window.event.cancelBubble=true;}else{_ca.stopPropagation();}return false;};ZdcControl.prototype.MouseOnClickChg=function(_cf){var y;this.Slither=false;if(this.zoomlistopen){this.basedoc.innerHTML="<IMG src="+this.CtlSmallImage+">";this.changedoc.innerHTML="<IMG src="+this.CtlChgImage+">";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;}else{this.basedoc.innerHTML="<IMG src="+this.CtlImage+">";this.changedoc.innerHTML="<IMG src="+this.CtlNoChgImage+">";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;if(this.type==3){this.scaleslitherdoc.style.top=y;}else{this.scaleslitherdoc.style.top=y-2;}this.zoomlistopen=true;}if(document.all){window.event.cancelBubble=true;}else{_cf.stopPropagation();}return false;};ZdcControl.prototype.OnMouseMoveDoc=function(_d1){if(ZdcDrag.IsDragging()){return false;}if(document.all){window.event.cancelBubble=true;}else{_d1.stopPropagation();}return false;};ZdcControl.prototype.dragging=function(e){if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"),pointer";}this.newscreeny=e.screenY;if(this.zoomlistopen){if(Math.abs(this.dragscreeny-this.newscreeny)>=this.zoomheight){var _d3=this.dragy+this.newscreeny-this.dragscreeny;var mvy=Math.floor((_d3*1/this.zoomheight)+1)*Math.floor(this.zoomheight);if(this.zoomstart<mvy&&mvy<this.zoomend){this.dragy=mvy-5;if(this.type==3){this.scaleslitherdoc.style.top=mvy-5;}else{this.scaleslitherdoc.style.top=mvy-5-2;}this.scaleseldoc.style.top=mvy-5;this.dragscreeny=this.newscreeny;this.zoomImage();}else{this.dragscreeny=this.newscreeny;}}}};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=50/100;this.pMap.ZdcZoomChangeImage.style.opacity=50/100;var s=Math.floor((this.dragy-this.zoomstart)/this.zoomheight)+2;var _d6=this.pMap.s;var _d7=s;if(_d6<_d7){var img=this.pMap.ZoomChangeImageIn;var _d9=this.pMap.ZoomChangeImageCorner1;var _da=this.pMap.ZoomChangeImageCorner2;var _db=this.pMap.ZoomChangeImageCorner3;var _dc=this.pMap.ZoomChangeImageCorner4;}else{if(_d6==_d7){var img=this.pMap.ZoomChangeImageClear;var _d9=this.pMap.ZoomChangeImageCorner4;var _da=this.pMap.ZoomChangeImageCorner3;var _db=this.pMap.ZoomChangeImageCorner2;var _dc=this.pMap.ZoomChangeImageCorner1;}else{var img=this.pMap.ZoomChangeImageOut;var _d9=this.pMap.ZoomChangeImageCorner4;var _da=this.pMap.ZoomChangeImageCorner3;var _db=this.pMap.ZoomChangeImageCorner2;var _dc=this.pMap.ZoomChangeImageCorner1;}}if(_d6==_d7){var _dd=this.pMap.ZdcMapWpx-6;var _de=this.pMap.ZdcMapHpx-6;}else{if(_d6<_d7){var _dd=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_d7]/ZdcZoom.map_defw[_d6]));var _de=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_d7]/ZdcZoom.map_defh[_d6]));}else{var _dd=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_d6]/ZdcZoom.map_defw[_d7]));var _de=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_d6]/ZdcZoom.map_defh[_d7]));}}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,_d6).isContainPoint(this.pMap.ZdcMsgWindowObj.Point)){if(_d6<_d7){var _e1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_d6,_d7);}else{var _e1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_d7,_d6);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((_e1.mx-this.pMap.mx)/ZdcZoom.map_defw[_d6]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-_e1.my)/ZdcZoom.map_defh[_d6]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.usermsgopenstatus){if(this.pMap.getMapBoundBox(null,_d6).isContainPoint(this.pMap.ZdcUserMsgWindow.Point)){if(_d6<_d7){var _e1=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_d6,_d7);}else{var _e1=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_d7,_d6);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((_e1.mx-this.pMap.mx)/ZdcZoom.map_defw[_d6]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-_e1.my)/ZdcZoom.map_defh[_d6]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.htmlopenstatus){if(this.pMap.getMapBoundBox(null,_d6).isContainPoint(this.pMap.ZdcMsgHtml.Point)){if(_d6<_d7){var _e1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_d6,_d7);}else{var _e1=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_d7,_d6);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((_e1.mx-this.pMap.mx)/ZdcZoom.map_defw[_d6]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-_e1.my)/ZdcZoom.map_defh[_d6]);}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(_dd/2)-3;this.pMap.ZdcZoomChangeImage.style.top=cy-Math.floor(_de/2)-3;this.pMap.ZdcZoomChangeImage.style.width=_dd+6;this.pMap.ZdcZoomChangeImage.style.height=_de+6;this.pMap.ZdcZoomChangeImage.innerHTML="<DIV style='border:2px solid #007eca'><IMG  style='border:1px solid #007eca' src="+img+" width="+_dd+" height="+_de+"></DIV>";this.pMap.ZdcZoomChangeImage.style.position="absolute";if(document.all){this.pMap.ZdcZoomChangeImageCorner1.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft-16;this.pMap.ZdcZoomChangeImageCorner1.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop-16;this.pMap.ZdcZoomChangeImageCorner2.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft+_dd+2;this.pMap.ZdcZoomChangeImageCorner2.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop-16;this.pMap.ZdcZoomChangeImageCorner3.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft-16;this.pMap.ZdcZoomChangeImageCorner3.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop+_de+2;this.pMap.ZdcZoomChangeImageCorner4.style.left=this.pMap.ZdcZoomChangeImage.style.pixelLeft+_dd+2;this.pMap.ZdcZoomChangeImageCorner4.style.top=this.pMap.ZdcZoomChangeImage.style.pixelTop+_de+2;this.pMap.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d9+")";this.pMap.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_da+")";this.pMap.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_db+")";this.pMap.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_dc+")";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+_d9+" style='display:none'>";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+_da+" style='display:none'>";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+_db+" style='display:none'>";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+_dc+" style='display:none'>";}else{this.pMap.ZdcZoomChangeImageCorner1.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16;this.pMap.ZdcZoomChangeImageCorner1.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16;this.pMap.ZdcZoomChangeImageCorner2.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_dd+2;this.pMap.ZdcZoomChangeImageCorner2.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16;this.pMap.ZdcZoomChangeImageCorner3.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16;this.pMap.ZdcZoomChangeImageCorner3.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_de+2;this.pMap.ZdcZoomChangeImageCorner4.style.left=parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_dd+2;this.pMap.ZdcZoomChangeImageCorner4.style.top=parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_de+2;this.pMap.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+_d9+">";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+_da+">";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+_db+">";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+_dc+">";}this.pMap.ZdcZoomChangeImageCorner1.style.width="20";this.pMap.ZdcZoomChangeImageCorner1.style.height="20";this.pMap.ZdcZoomChangeImageCorner1.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner2.style.width="20";this.pMap.ZdcZoomChangeImageCorner2.style.height="20";this.pMap.ZdcZoomChangeImageCorner2.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner3.style.width="20";this.pMap.ZdcZoomChangeImageCorner3.style.height="20";this.pMap.ZdcZoomChangeImageCorner3.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner4.style.width="20";this.pMap.ZdcZoomChangeImageCorner4.style.height="20";this.pMap.ZdcZoomChangeImageCorner4.style.position="absolute";};ZdcControl.prototype.OnMouseMoveBaseDoc=function(_e2){if(document.all){var x=_e2.offsetX;var y=_e2.offsetY;}else{var x=_e2.layerX;var y=_e2.layerY;}var s;var sl;if(this.zoomlistopen){if(this.type!=3){this.scaledoc.style.visibility="visible";}if(73<y&&y<307&&!this.Slither){this.scaledoc.style.top=y+4;s="1/"+ZdcZoom.map_defs[Math.abs(Math.floor((y-73)/13))+1];sl=Math.abs(Math.floor((y-73)/13))+1;this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/cursorscale"+sl+".png";if(document.all){this.scaledoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.CtlScaleImage+")";this.scaledoc.innerHTML="<IMG src="+this.CtlScaleImage+" style='display:none'>";}else{this.scaledoc.innerHTML="<IMG src="+this.CtlScaleImage+">";}}else{this.scaledoc.style.visibility="hidden";}}return false;};ZdcControl.prototype.OnMouseMoveSel=function(_e7){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;return false;};ZdcControl.prototype.OnMouseUp=function(_eb){if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}if(ZdcDrag.IsDragging()){return false;}};ZdcControl.prototype.OnMouseUpSlither=function(_ec){if(ZdcDrag.IsDragging()){return false;}};ZdcControl.prototype.dragend=function(){s=Math.floor((this.dragy-this.zoomstart)/(this.zoomheight))+2;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(_ed){if(document.all){var y=this.scaleslitherdoc.style.pixelTop;}else{var y=parseInt(this.scaleslitherdoc.style.top);}if(73<y&&y<307){if(document.all){var id=Math.floor((this.scaleslitherdoc.style.pixelTop-73)/13)+1;var s="1/"+ZdcZoom.map_defs[id];var y=this.scaleslitherdoc.style.pixelTop;}else{var id=Math.floor((parseInt(this.scaleslitherdoc.style.top)-73)/13)+1;var s="1/"+ZdcZoom.map_defs[id];var y=parseInt(this.scaleslitherdoc.style.top);}if(this.type!=3){this.scaledoc.style.visibility="visible";}this.scaledoc.style.top=y+4;var sl=Math.abs(Math.floor((y-73)/13))+1;this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/cursorscale"+sl+".png";if(document.all){this.scaledoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.CtlScaleImage+")";this.scaledoc.innerHTML="<IMG src="+this.CtlScaleImage+" style='display:none'>";}else{this.scaledoc.innerHTML="<IMG src="+this.CtlScaleImage+">";}}};ZdcControl.prototype.OnMouseOver=function(_f2){if(document.all){var x=_f2.offsetX;var y=_f2.offsetY;}else{var x=_f2.layerX;var y=_f2.layerY;}if(this.type==1&&this.pMap.mediamode=="screen"){this.doc.style.filter="alpha(opacity=100)";this.doc.style.mozOpacity=100/100;this.doc.style.opacity=100/100;}};ZdcControl.prototype.OnMouseOut=function(_f5){if(this.type==1&&this.pMap.mediamode=="screen"){this.doc.style.filter="alpha(opacity=60)";this.doc.style.mozOpacity=60/100;this.doc.style.opacity=60/100;}this.scaledoc.style.visibility="hidden";};ZdcControl.prototype.OnMouseOverChg=function(_f6){if(this.type==1&&this.pMap.mediamode=="screen"){this.changedoc.style.filter="alpha(opacity=100)";this.changedoc.style.mozOpacity=100/100;this.changedoc.style.opacity=100/100;}};ZdcControl.prototype.OnMouseOutChg=function(_f7){if(this.type==1&&this.pMap.mediamode=="screen"){this.changedoc.style.filter="alpha(opacity=60)";this.changedoc.style.mozOpacity=60/100;this.changedoc.style.opacity=60/100;}};function ZdcMsgHtml(_f8,w,h){this.openstatus=false;this.htmloffset=new ZdcPixel(0,0);this.doc=document.createElement("DIV");this.doc.style.zIndex=10100;this.doc.style.position="absolute";this.doc.style.backgroundColor="#FFFFFF";this.doc.id="msghtmldoc";this.arrowtype="center";this.wintype="small";this.htmltype="url";this.doctitle=document.createElement("DIV");this.doctitle.style.position="absolute";this.doctitle.img=ZdcCommon.ZdcMapServer+"/usrimg/BorderTitle.png";this.doctitle.style.top=0;this.doctitle.style.left=0;this.doctitle.style.zIndex=2;this.docb_left=document.createElement("DIV");this.docb_left.style.position="absolute";this.docb_left.img=ZdcCommon.ZdcMapServer+"/usrimg/Border.png";this.docb_left.style.top=0;this.docb_left.style.left=0;this.docb_left.style.zIndex=2;this.docb_right=document.createElement("DIV");this.docb_right.style.position="absolute";this.docb_right.img=ZdcCommon.ZdcMapServer+"/usrimg/Border.png";this.docb_right.style.top=0;this.docb_right.style.left=0;this.docb_right.style.zIndex=2;this.docb_top_left=document.createElement("DIV");this.docb_top_left.style.position="absolute";this.docb_top_left.img=ZdcCommon.ZdcMapServer+"/usrimg/Border_top_left.png";this.docb_top_left.style.top=0;this.docb_top_left.style.left=0;this.docb_top_left.style.zIndex=3;this.docb_top_right=document.createElement("DIV");this.docb_top_right.style.position="absolute";this.docb_top_right.img=ZdcCommon.ZdcMapServer+"/usrimg/Border_top_right.png";this.docb_top_right.style.top=0;this.docb_top_right.style.left=0;this.docb_top_right.style.zIndex=3;this.docb_bot_left=document.createElement("DIV");this.docb_bot_left.style.position="absolute";this.docb_bot_left.img=ZdcCommon.ZdcMapServer+"/usrimg/Border_bot_left.png";this.docb_bot_left.style.top=0;this.docb_bot_left.style.left=0;this.docb_bot_left.style.zIndex=3;this.docb_bot_right=document.createElement("DIV");this.docb_bot_right.style.position="absolute";this.docb_bot_right.img=ZdcCommon.ZdcMapServer+"/usrimg/Border_bot_right.png";this.docb_bot_right.style.top=0;this.docb_bot_right.style.left=0;this.docb_bot_right.style.zIndex=3;this.docbottom=document.createElement("DIV");this.docbottom.style.position="absolute";this.docbottom.img=ZdcCommon.ZdcMapServer+"/usrimg/Bottom.png";this.docbottom.style.top=0;this.docbottom.style.left=0;this.docbottom.style.zIndex=2;this.docbarrow=document.createElement("DIV");this.docbarrow.style.position="absolute";this.docbarrow.img=ZdcCommon.ZdcMapServer+"/usrimg/bottom_arrow.png";this.docbarrow.pntimg=ZdcCommon.ZdcMapServer+"/usrimg/bottom_arrow.gif";this.docbarrow.style.top=0;this.docbarrow.style.left=0;this.docbarrow.style.zIndex=3;this.doctext=document.createElement("DIV");this.doctext.style.position="absolute";this.doctext.text="";this.doctext.style.top=0;this.doctext.style.left=0;this.doctext.style.zIndex=4;this.docclose=document.createElement("DIV");this.docclose.style.position="absolute";this.docclose.img=ZdcCommon.ZdcMapServer+"/usrimg/windows_close.png";this.docclose.style.top=3;this.docclose.style.left=3;this.docclose.style.zIndex=5;this.docclose.status=true;if(document.all){this.docclose.style.cursor="hand";}else{this.docclose.style.cursor="pointer";}this.docwins=document.createElement("DIV");this.docwins.style.position="absolute";this.docwins.img=ZdcCommon.ZdcMapServer+"/usrimg/windows.png";this.docwins.style.top=3;this.docwins.style.left=3;this.docwins.style.zIndex=5;this.docwins.status=true;if(document.all){this.docwins.style.cursor="hand";}else{this.docwins.style.cursor="pointer";}this.shddoc=document.createElement("DIV");this.shdhtmloffset=new ZdcPixel(0,0);this.shddoc.style.zIndex=10099;this.shddoc.style.position="absolute";this.shddoc.id="msghtmlshddoc";this.shddocbase=document.createElement("DIV");this.shddocbase.style.position="absolute";this.shddocbase.img=ZdcCommon.ZdcMapServer+"/usrimg/bottom_shadow.png";this.shddocbase.style.top=0;this.shddocbase.style.left=0;this.shddocbase.style.zIndex=2;this.shddocarrow=document.createElement("DIV");this.shddocarrow.style.position="absolute";this.shddocarrow.img=ZdcCommon.ZdcMapServer+"/usrimg/bottom_arrow_shadow.png";this.shddocarrow.style.top=0;this.shddocarrow.style.left=0;this.shddocarrow.style.zIndex=2;this.shddoc.appendChild(this.shddocbase);this.shddoc.appendChild(this.shddocarrow);this.doc.appendChild(this.doctitle);this.doc.appendChild(this.docbottom);this.doc.appendChild(this.docb_left);this.doc.appendChild(this.docb_right);this.doc.appendChild(this.docb_top_left);this.doc.appendChild(this.docb_top_right);this.doc.appendChild(this.docb_bot_left);this.doc.appendChild(this.docb_bot_right);this.doc.appendChild(this.docbarrow);this.doc.appendChild(this.doctext);this.doc.appendChild(this.docclose);this.doc.appendChild(this.docwins);this.dochtml=document.createElement("DIV");this.dochtml.style.position="absolute";this.dochtml.style.top=24;this.dochtml.style.left=0;this.doc.appendChild(this.dochtml);this.docclose.onclick=this.MouseClickClose.bindAsEventListener(this);this.docwins.onclick=this.MouseClickWins.bindAsEventListener(this);this.doc.onmousedown=this.MouseDownDoc.bindAsEventListener(this);this.doc.ondblclick=this.MouseDblClickDoc.bindAsEventListener(this);this.shddoc.onclick=this.MouseClickShadowDoc.bindAsEventListener(this);}ZdcMsgHtml.prototype.MouseClickClose=function(e){ZdcEvent.trigger(this.pMap,"htmlmsgclickclose");this.pMap.closeZdcMsgHtml();ZdcEvent.stopPropagation(e);};ZdcMsgHtml.prototype.MouseClickWins=function(e){ZdcEvent.trigger(this.pMap,"htmlmsgclickwins");ZdcEvent.stopPropagation(e);};ZdcMsgHtml.prototype.MouseDownDoc=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgHtml.prototype.MouseDblClickDoc=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgHtml.prototype.MouseClickShadowDoc=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgHtml.prototype.setHtml=function(html,_101,w,h,opt){var ww=w+Number(8);this.doctitle.style.width=w+Number(4);this.doctitle.style.height=24;this.doctitle.style.top=0;this.doctitle.style.left=0;this.doctitle.innerHTML="<IMG  src="+this.doctitle.img+" width="+ww+" height="+24+">";this.docbottom.style.width=w+Number(4);this.docbottom.style.height=16;this.docbottom.style.top=h+Number(24);this.docbottom.style.left=0;this.docbottom.innerHTML="<IMG  src="+this.docbottom.img+" width="+ww+" height="+16+">";var hh=h+Number(40);this.docb_left.style.width=4;this.docb_left.style.height=h;this.docb_left.style.top=24;this.docb_left.style.left=0;this.docb_left.innerHTML="<IMG  style='border:0px' src="+this.docb_left.img+" width="+4+" height="+h+">";this.docb_right.style.width=4;this.docb_right.style.height=h;this.docb_right.style.top=24;this.docb_right.style.left=w+Number(4);this.docb_right.innerHTML="<IMG  style='border:0px' src="+this.docb_right.img+" width="+4+" height="+h+">";this.docb_top_left.style.width=9;this.docb_top_left.style.height=24;this.docb_top_left.style.top=0;this.docb_top_left.style.left=0;this.docb_top_left.innerHTML="<IMG  style='border:0px' src="+this.docb_top_left.img+" width="+9+" height="+24+">";this.docb_top_right.style.width=9;this.docb_top_right.style.height=24;this.docb_top_right.style.top=0;this.docb_top_right.style.left=w+Number(4)-Number(5);this.docb_top_right.innerHTML="<IMG  style='border:0px' src="+this.docb_top_right.img+" width="+9+" height="+24+">";this.docb_bot_left.style.width=9;this.docb_bot_left.style.height=16;this.docb_bot_left.style.top=h+Number(24);this.docb_bot_left.style.left=0;this.docb_bot_left.innerHTML="<IMG  style='border:0px' src="+this.docb_bot_left.img+" width="+9+" height="+16+">";this.docbarrow.style.width=32;this.docbarrow.style.height=32;this.docbarrow.style.top=h+Number(24)+Number(14);if(this.arrowtype=="left"){this.docbarrow.img=ZdcCommon.ZdcMapServer+"/usrimg/bottom_arrow.png";this.docbarrow.pntimg=ZdcCommon.ZdcMapServer+"/usrimg/bottom_arrow.gif";this.docbarrow.style.left=0;}else{if(this.arrowtype=="center"){this.docbarrow.img=ZdcCommon.ZdcMapServer+"/usrimg/bottom_center_arrow.png";this.docbarrow.pntimg=ZdcCommon.ZdcMapServer+"/usrimg/bottom_center_arrow.gif";this.docbarrow.style.left=Math.round(w/2)+Number(4);}}if(this.pMap.mediamode=="screen"){if(document.all){this.docbarrow.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.docbarrow.img+")";this.docbarrow.innerHTML="<IMG src="+this.docbarrow.img+" style='display:none' />";}else{this.docbarrow.innerHTML="<IMG  style='border:0px' src="+this.docbarrow.img+" width="+32+" height="+32+">";}}else{this.docbarrow.innerHTML="<IMG  style='border:0px' src="+this.docbarrow.pntimg+" width="+32+" height="+32+">";}this.docb_bot_right.style.width=9;this.docb_bot_right.style.height=16;this.docb_bot_right.style.top=h+Number(24);this.docb_bot_right.style.left=w+Number(4)-Number(5);this.docb_bot_right.innerHTML="<IMG  style='border:0px' src="+this.docb_bot_right.img+" width="+9+" height="+16+">";this.doctext.style.width=w-20;this.doctext.style.height=24;this.doctext.style.top=4;this.doctext.style.left=4;this.doctext.innerHTML="<DIV align='center'><span style='font-size:16px;font-family:monospace'>"+_101+"</span></DIV>";this.doctext.text=_101;this.docclose.style.width=20;this.docclose.style.height=20;this.docclose.style.top=4;this.docclose.style.left=w-14;this.docclose.innerHTML="<IMG  style='border:0px' src="+this.docclose.img+" width="+16+" height="+16+">";this.docwins.style.width=20;this.docwins.style.height=20;this.docwins.style.top=4;this.docwins.style.left=w-34;if(this.wintype=="small"){this.docwins.img=ZdcCommon.ZdcMapServer+"/usrimg/windows_open.png";}else{if(this.wintype=="large"){this.docwins.img=ZdcCommon.ZdcMapServer+"/usrimg/windows.png";}}this.docwins.innerHTML="<IMG  style='border:0px' src="+this.docwins.img+" width="+16+" height="+16+">";this.dochtml.style.width=w;this.dochtml.style.height=h;this.dochtml.style.top=24;this.dochtml.style.left=4;if(this.htmltype=="url"){this.dochtml.innerHTML="<iframe name=\"msghtml\" style=\"border:0px;width:100%;height:100%\" src=\""+html+"\"></iframe>";}else{if(this.htmltype=="tag"){this.dochtml.innerHTML="<div id=\"msghtml\" class=\"msghtml\">"+html+"</div>";}}this.html=html;var www=Math.round(ww*297/193);var hhh=Math.round(hh/1.8);this.shddocbase.style.width=www;this.shddocbase.style.height=hhh;this.shddocbase.style.top=hh-hhh+22;this.shddocbase.style.left=10;if(document.all){this.shddocbase.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.shddocbase.img+" sizingMethod='scale' )";this.shddocbase.style.height=hhh;this.shddocbase.style.width=www;this.shddocbase.innerHTML="<IMG  src="+this.shddocbase.img+" width="+www+" height="+hhh+" style='display:none'/>";}else{this.shddocbase.innerHTML="<IMG  src="+this.shddocbase.img+" width="+www+" height="+hhh+">";}this.shddocarrow.style.width=80;this.shddocarrow.style.height=55;if(this.arrowtype=="left"){this.shddocarrow.style.top=hh-10;this.shddocarrow.style.left=0;}else{if(this.arrowtype=="center"){this.shddocarrow.style.top=hh-10;this.shddocarrow.style.left=Math.round(ww/2);}}if(document.all){this.shddocarrow.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.shddocarrow.img+" sizingMethod='scale' )";this.shddocarrow.innerHTML="<IMG  src="+this.shddocarrow.img+" style='display:none'/>";}else{this.shddocarrow.innerHTML="<IMG  src="+this.shddocarrow.img+" >";}this.htmloffset.x=0;this.htmloffset.y=0-h-Number(24)-Number(16)-Number(30);if(!this.docclose.status){this.docclose.style.visibility="hidden";}if(!this.docwins.status){this.docwins.style.visibility="hidden";}};ZdcMsgHtml.prototype.setPoint=function(p){this.Point=p;};function ZdcMap(_10a,opts){this.ZdcMapBase=_10a;if(this.ZdcMapBase.style.position!="absolute"){this.ZdcMapBase.style.position="relative";}this.ZdcMapClass=document.createElement("div");this.ZdcMapClass.style.position="absolute";this.ZdcMapBase.style.backgroundImage="url("+ZdcCommon.ZdcMapLog+")";this.ZdcMapBase.appendChild(this.ZdcMapClass);this.ZdcMapBase.style.overflow="hidden";this.mx=503156063;this.my=128422368;var p=new ZdcPoint(this.mx,this.my,2);this.lon=p.lon;this.lat=p.lat;this.s=7;this.SavePoint=new ZdcPoint(this.mx,this.my,2);this.ControlOpen=false;this.ZdcUserControlOpen=false;this.ZdcUserZoomControlOpen=false;this.ScaleBarOpen=false;this.CenterOpen=false;this.CenterInfoBoxOpen=false;this.msgopenstatus=false;this.usermsgopenstatus=false;this.mediamode="screen";this.zoomMax=18;this.zoomMin=1;this.ZdcCopyrightObj=new ZdcCopyright();this.ZdcWaitObj=new ZdcWait();this.ZdcUserLayers=new Array();this.ZdcDragStatus=true;this.ZdcMsgStatus=true;this.OnScroll=false;this.OnSetMapBase=false;this.WheelType=1;this.WheelStatus=true;this.CenterFirst=false;this.markerworkpixel1=new ZdcPixel(0,0);this.markerworkpixel2=new ZdcPixel(0,0);this.markerworkbox=new ZdcPixelBox(this.markerworkpixel1,this.markerworkpixel2);this.ZdcCtrObj=new Object();this.ZdcRouteLayer=null;this.ZdcShapeLayer=[];this.ZdcTileLayer=new Array();this.ZdcTransparent=new Object();this.ZdcTransparent=document.createElement("DIV");this.ZdcTransparentImage=ZdcCommon.ZdcMapServer+"/img/transparent.gif";this.mousecursor="default";this.ZdcMapAccess=ZdcCommon.ZdcMapAccess+"/log/event_log.cgi?key="+ZdcCommon.ZDC_KEY+"&event=mapapi_";ZdcMap.AccessText="10200000";this.ZdcMapType=1;this.ZdcMapTypeOpt=1;this.ZdcMapTypeObj=new ZdcMapType();this.ZdcUserTile=false;this.ZdcUserTileBox=new ZdcBox();this.ZdcMapRasterEngine=false;this.ZdcZoomChangeImage=new Object();this.ZdcZoomChangeImageCorner1=new Object();this.ZdcZoomChangeImageCorner2=new Object();this.ZdcZoomChangeImageCorner3=new Object();this.ZdcZoomChangeImageCorner4=new Object();this.ZoomChangeImageClear=ZdcCommon.ZdcMapServer+"/img/clear.gif";this.ZoomChangeImageIn=ZdcCommon.ZdcMapServer+"/img/ZoomChangeImageIn.png";this.ZoomChangeImageOut=ZdcCommon.ZdcMapServer+"/img/ZoomChangeImageOut.png";this.ZoomChangeImageCorner1=ZdcCommon.ZdcMapServer+"/img/ya-left-up.png";this.ZoomChangeImageCorner2=ZdcCommon.ZdcMapServer+"/img/ya-right-up.png";this.ZoomChangeImageCorner3=ZdcCommon.ZdcMapServer+"/img/ya-left-down.png";this.ZoomChangeImageCorner4=ZdcCommon.ZdcMapServer+"/img/ya-right-down.png";this.ZdcZoomChangeImage=document.createElement("DIV");this.ZdcZoomChangeImageCorner1=document.createElement("DIV");this.ZdcZoomChangeImageCorner2=document.createElement("DIV");this.ZdcZoomChangeImageCorner3=document.createElement("DIV");this.ZdcZoomChangeImageCorner4=document.createElement("DIV");this.ScrSpeed=0;this.ZdcMapLeftpx=0;this.ZdcMapToppx=0;this.ZdcMapWpx=0;this.ZdcMapHpx=0;this.ZdcMapCenterpx=new ZdcPixel();this.ZdcMapCenterInfopx=new ZdcPixel();this.ZdcScaleBarpx=new ZdcPixel();this.ZdcMapControlpx=new ZdcPixel();this.ZdcMapCopyrightpx=new ZdcPixel();this.ZdcMapClipRect=new Object;this.ZdcTileWpx=256;this.ZdcTileHpx=256;this.ZdcBaseXpx=0;this.MaddX=0;this.MaddY=0;this.ZdcCenter=new Object();this.ZdcCenter.px=this.ZdcMapCenterpx.x;this.ZdcCenter.py=this.ZdcMapCenterpx.y;this.CountScr=0;this.CountScrMax=9;this.ZdcDragOx=0;this.ZdcDragOy=0;this.ZdcDragMx=0;this.ZdcDragMy=0;this.ZdcDragEx=0;this.ZdcDragEy=0;this.MoveSumX=0;this.MoveSumY=0;this.MouseMoveX=0;this.MouseMoveY=0;this.MouseLon=0;this.MouseLat=0;this.MouseMx=0;this.MouseMy=0;this.MouseClickX=0;this.MouseClickY=0;this.MouseCLon=0;this.MouseCLat=0;this.MouseCx=0;this.MouseCy=0;this.FirstInitMap=true;this.ZdcMsgHtml=new ZdcMsgHtml();this.htmlopenstatus=false;this.InitMap(this.mx,this.my,this.s);this.ZdcMapClass.ondblclick=this.MouseDblClick.bindAsEventListener(this);this.ZdcMapClass.onmousemove=this.MouseMove.bindAsEventListener(this);this.ZdcMapClass.onmousedown=this.MouseDown.bindAsEventListener(this);this.ZdcMapClass.onmouseup=this.MouseUp.bindAsEventListener(this);this.ZdcMapClass.onclick=this.MouseClick.bindAsEventListener(this);this.ZdcMapClass.onmouseover=this.MouseOver.bindAsEventListener(this);this.ZdcMapClass.onmouseout=this.MouseOut.bindAsEventListener(this);this.AddMouseWheelListener(this.WheelZoom.bindAsEventListener(this),false);}ZdcMap.prototype.AddMouseWheelListener=function(func,cap){if(this.ZdcMapClass.addEventListener){this.ZdcMapClass.addEventListener("DOMMouseScroll",func,false);this.ZdcMapClass.addEventListener("mousewheel",func,cap);}else{if(this.ZdcMapClass.attachEvent){this.ZdcMapClass.attachEvent("onmousewheel",func);}}};ZdcMap.prototype.WheelZoom=function(e){if(!this.WheelStatus){return;}var _110;if(window.event&&window.event.wheelDelta){_110=window.event.wheelDelta;}else{if(e.wheelDelta){_110=e.wheelDelta;}else{_110=e.detail;_110=_110*-1;}}if(_110>0){if(this.WheelType==1){this.mapZoomOut(1,"wheel");}else{this.mapZoomIn(1,"wheel");}}else{if(this.WheelType==1){this.mapZoomIn(1,"wheel");}else{this.mapZoomOut(1,"wheel");}}if(document.all){window.event.cancelBubble=true;window.event.returnValue=false;}else{e.stopPropagation();e.preventDefault();}return false;};ZdcMap.prototype.setWheelType=function(t){if(t==null){return -1;}if(t!=1&&t!=2){return -1;}this.WheelType=t;};ZdcMap.prototype.getWheelStatus=function(){return this.WheelStatus;};ZdcMap.prototype.setWheelOn=function(){this.WheelStatus=true;};ZdcMap.prototype.setWheelOff=function(){this.WheelStatus=false;};ZdcMap.prototype.setZdcMsgHtmlOption=function(opt1,opt2,opt3,opt4,opt5,w,h){if(opt1!=null){this.ZdcMsgHtml.docclose.status=opt1;}if(opt2!=null){this.ZdcMsgHtml.docwins.status=opt2;}if(opt3!=null){if(opt3=="left"||opt3=="center"){this.ZdcMsgHtml.arrowtype=opt3;}}if(opt4!=null){if(opt4=="small"||opt4=="large"){this.ZdcMsgHtml.wintype=opt4;}}if(opt5!=null){if(opt5=="url"||opt5=="tag"){this.ZdcMsgHtml.htmltype=opt5;}}var _119=this.getMapWindowSize();if(w!=null&&h!=null){var ww=w;var hh=h;if((ww+Number(28))>parseInt(_119.width)){ww=parseInt(_119.width)-64;}if((hh+Number(72))>parseInt(_119.height)){hh=parseInt(_119.height)-136;}this.ZdcMsgHtml.doc.style.width=ww+Number(8);this.ZdcMsgHtml.doc.style.height=hh+Number(24)+Number(16);this.ZdcMsgHtml.w=ww;this.ZdcMsgHtml.h=hh;}else{if(this.ZdcMsgHtml.wintype=="small"){var ww=Math.round(parseInt(_119.width)/3);var hh=Math.round(parseInt(_119.height)/3);}else{var ww=parseInt(_119.width)-34;var hh=parseInt(_119.height)-136;}this.ZdcMsgHtml.doc.style.width=ww+Number(8);this.ZdcMsgHtml.doc.style.height=hh+Number(24)+Number(16);this.ZdcMsgHtml.w=ww;this.ZdcMsgHtml.h=hh;}};ZdcMap.prototype.reflashZdcMsgHtml=function(html,opt){if(html!=null){this.ZdcMsgHtml.html=html;}if(this.htmlopenstatus){this.closeZdcMsgHtml();if(opt!=null){this.openZdcMsgHtml(this.ZdcMsgHtml.html,this.ZdcMsgHtml.Point,this.ZdcMsgHtml.title,this.ZdcMsgHtml.w,this.ZdcMsgHtml.h,this.ZdcMsgHtml.mrkoffset,opt);}else{this.openZdcMsgHtml(this.ZdcMsgHtml.html,this.ZdcMsgHtml.Point,this.ZdcMsgHtml.title,this.ZdcMsgHtml.w,this.ZdcMsgHtml.h,this.ZdcMsgHtml.mrkoffset,1);}}};ZdcMap.prototype.getZdcMsgHtmlWinType=function(){return this.ZdcMsgHtml.wintype;};ZdcMap.prototype.openZdcMsgHtml=function(html,p,_120,w,h,_123,opt){this.ZdcMapClass.appendChild(this.ZdcMsgHtml.doc);this.ZdcMapClass.appendChild(this.ZdcMsgHtml.shddoc);this.ZdcMsgHtml.pMap=this;var _125=this.getMapWindowSize();if(w!=null&&h!=null){var ww=w;var hh=h;if((ww+Number(28))>parseInt(_125.width)){ww=parseInt(_125.width)-64;}if((hh+Number(72))>parseInt(_125.height)){hh=parseInt(_125.height)-136;}this.ZdcMsgHtml.doc.style.width=ww+Number(8);this.ZdcMsgHtml.doc.style.height=hh+Number(24)+Number(16);this.ZdcMsgHtml.w=w;this.ZdcMsgHtml.h=h;}else{if(this.ZdcMsgHtml.wintype=="small"){var ww=Math.round(parseInt(_125.width)/3);var hh=Math.round(parseInt(_125.height)/3);}else{var ww=parseInt(_125.width)-34;var hh=parseInt(_125.height)-136;}this.ZdcMsgHtml.doc.style.width=ww+Number(8);this.ZdcMsgHtml.doc.style.height=hh+Number(24)+Number(16);this.ZdcMsgHtml.w=ww;this.ZdcMsgHtml.h=hh;}this.ZdcMsgHtml.setHtml(html,_120,ww,hh);this.ZdcMsgHtml.setPoint(p);this.ZdcMsgHtml.openstatus=true;this.htmlopenstatus=true;if(this.ZdcMsgHtml.arrowtype=="left"){this.ZdcMsgHtml.htmloffset.x=0;}else{if(this.ZdcMsgHtml.arrowtype=="center"){this.ZdcMsgHtml.htmloffset.x=(-1)*(Math.round(ww/2)+Number(4));}}var pxy=this.convertPoint2Pixel(p);if(_123!=null){this.ZdcMsgHtml.doc.style.left=pxy.x+this.ZdcMsgHtml.htmloffset.x+_123.x;this.ZdcMsgHtml.doc.style.top=pxy.y+this.ZdcMsgHtml.htmloffset.y+_123.y;this.ZdcMsgHtml.shddoc.style.left=pxy.x+this.ZdcMsgHtml.htmloffset.x+_123.x;this.ZdcMsgHtml.shddoc.style.top=pxy.y+this.ZdcMsgHtml.htmloffset.y+_123.y;this.ZdcMsgHtml.mrkoffset=_123;}else{this.ZdcMsgHtml.doc.style.left=pxy.x+this.ZdcMsgHtml.htmloffset.x;this.ZdcMsgHtml.doc.style.top=pxy.y+this.ZdcMsgHtml.htmloffset.y;this.ZdcMsgHtml.shddoc.style.left=pxy.x+this.ZdcMsgHtml.htmloffset.x;this.ZdcMsgHtml.shddoc.style.top=pxy.y+this.ZdcMsgHtml.htmloffset.y;this.ZdcMsgHtml.mrkoffset.x=0;this.ZdcMsgHtml.mrkoffset.y=0;}this.ZdcMsgHtml.doc.style.visibility="visible";if(this.mediamode=="screen"){this.ZdcMsgHtml.shddoc.style.visibility="visible";}else{this.ZdcMsgHtml.shddoc.style.visibility="hidden";}if(_120!=null){this.ZdcMsgHtml.title=_120;}else{this.ZdcMsgHtml.title="";}if(opt!=null){this.ZdcMsgHtml.movestatus=opt;switch(opt){case 1:default:this.ScrollMsgHtml(p);break;case 2:this.scrollToCenter(p);break;case 3:break;}}};ZdcMap.prototype.closeZdcMsgHtml=function(){this.ZdcMapClass.removeChild(this.ZdcMsgHtml.doc);this.ZdcMapClass.removeChild(this.ZdcMsgHtml.shddoc);this.ZdcMsgHtml.openstatus=false;this.htmlopenstatus=false;};ZdcMap.prototype.ScrollMsgHtml=function(p){var box=this.getMapBoundBox();var _12b=Math.floor((box.maxx-p.mx)/ZdcZoom.map_defw[this.s]);var _12c=Math.floor((p.mx-box.minx)/ZdcZoom.map_defw[this.s]);var _12d=Math.floor((box.maxy-p.my)/ZdcZoom.map_defh[this.s]);var _12e=this.ZdcMsgHtml.h+Number(72)-this.ZdcMsgHtml.mrkoffset.y;if(this.ZdcMsgHtml.arrowtype=="left"){var _12f=this.ZdcMsgHtml.w+Number(8)+this.ZdcMsgHtml.mrkoffset.x+20;var _130=0;}else{if(this.ZdcMsgHtml.arrowtype=="center"){var _12f=Math.round(this.ZdcMsgHtml.w/2)+Number(8)+this.ZdcMsgHtml.mrkoffset.x+10;var _130=Math.round(this.ZdcMsgHtml.w/2)+Number(4)+this.ZdcMsgHtml.mrkoffset.x+20;}}var scrx=0;var scry=0;if(_12b<_12f){scrx=_12b-_12f;}else{if(_12c<_130){scrx=_130-_12c;}}if(_12d<_12e){scry=_12e-_12d+Number(10);}if(!this.OnScroll&&(scrx!=0||scry!=0)){this.scrollMap(scrx,scry);return;}};ZdcMap.prototype.setBackGroundImage=function(_133){this.ZdcMapBase.style.backgroundImage="url("+_133+")";};ZdcMap.prototype.setMapZoomLimit=function(s1,s2){var vs1=parseInt(s1);var vs2=parseInt(s2);if(vs1<vs2&&Number(vs1)>=0&&Number(vs2)<19){this.zoomMin=vs1;this.zoomMax=vs2;}else{return -1;}};ZdcMap.prototype.InitMap=function(x,y,s){this.mx=x;this.my=y;this.s=s;this.InitMapBox();for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){this.ZdcTileLayer[j]=new Array(this.ZdcTileLayerMaxI);for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i]=document.createElement("DIV");this.ZdcTileLayer[j][i].style.position="absolute";this.ZdcTileLayer[j][i].style.zIndex=10;this.ZdcMapClass.appendChild(this.ZdcTileLayer[j][i]);}}this.SetTransparentOnMap();this.SetZoomChangeImageOnMap();this.ChgPg=0;this.AddCopyrightOnMap();this.SetMapLocationAndScale(this.mx,this.my,this.s);if(this.ControlOpen){this.SetControlOnMap();}if(this.CenterOpen){this.SetMapCenterOnMap();}if(this.CenterInfoBoxOpen){this.SetMapCenterInfoOnMap();}if(this.ScaleBarOpen){this.SetMapScaleOnMap();}if(this.msgopenstatus){this.reflashMsgWindow();}if(this.ZdcUserControl!=null){this.ZdcUserControlpx=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+this.ZdcUserControlBaseleft;this.ZdcUserControlpy=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+this.ZdcUserControlBasetop;this.ZdcUserControl.doc.style.left=this.ZdcUserControlpx;this.ZdcUserControl.doc.style.top=this.ZdcUserControlpy;}if(this.ZdcUserZoomControl!=null){this.ZdcUserZoomControlpx=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+this.ZdcUserZoomControlBaseleft;this.ZdcUserZoomControlpy=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+this.ZdcUserZoomControlBasetop;this.ZdcUserZoomControl.doc.style.left=this.ZdcUserZoomControlpx;this.ZdcUserZoomControl.doc.style.top=this.ZdcUserZoomControlpy;if(this.ZdcUserZoomControl.doctooltip){this.ZdcUserZoomControl.doctooltip.style.visibility="hidden";}}};ZdcMap.prototype.resizeMapWindow=function(_13d,_13e,_13f,_140){this.ZdcMapBase.style.top=_13d;this.ZdcMapBase.style.left=_13e;if(_13f<0){_13f=0;}if(_140<0){_140=0;}this.ZdcMapBase.style.width=_13f;this.ZdcMapBase.style.height=_140;if(_13f>2048||_140>2048||_13d<0||_13e<0){return (-1);}this.ZdcMapWpx=_13f;this.ZdcMapHpx=_140;this.ZdcMapToppx=_13d;this.ZdcMapLeftpx=_13e;for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcMapClass.removeChild(this.ZdcTileLayer[j][i]);}}this.ZdcMapClass.removeChild(this.ZdcZoomChangeImage);this.ZdcMapClass.removeChild(this.ZdcZoomChangeImageCorner1);this.ZdcMapClass.removeChild(this.ZdcZoomChangeImageCorner2);this.ZdcMapClass.removeChild(this.ZdcZoomChangeImageCorner3);this.ZdcMapClass.removeChild(this.ZdcZoomChangeImageCorner4);this.ZdcMapClass.removeChild(this.ZdcCopyrightObj.doc);this.ZdcMapClass.removeChild(this.ZdcTransparent);this.InitMap(this.mx,this.my,this.s);if(this.usermsgopenstatus){this.reflashUserMsgWindow();}ZdcEvent.trigger(this,"resizeend");};ZdcMap.prototype.InitMapBox=function(){this.ZdcMapLeftpx=0;this.ZdcMapToppx=0;var dr=ZdcEvent.GetDivClientRect(this.ZdcMapBase);if(this.ZdcMapClass.style.width!=null){if(this.ZdcMapWpx==0){this.ZdcMapWpx=dr.x;}this.ZdcTileLayerMaxI=Math.floor(this.ZdcMapWpx/256)+1+2;this.ZdcMapTileWpx=this.ZdcTileLayerMaxI*this.ZdcTileWpx;this.ZdcMapTileLeftpx=(-1)*(Math.floor((this.ZdcMapTileWpx-this.ZdcMapWpx)/2)-this.ZdcMapLeftpx);this.ZdcMapCenterpx.x=Math.floor(this.ZdcMapTileWpx/2);this.ZdcMapCenterInfopx.x=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+10;this.ZdcScaleBarpx.x=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+10;this.ZdcMapControlpx.x=this.ZdcMapCenterpx.x+Math.floor(this.ZdcMapWpx/2)-80;this.ZdcMapCopyrightpx.x=this.ZdcMapCenterpx.x+Math.floor(this.ZdcMapWpx/2)-100;this.ZdcMapClipRect.Left=Math.floor((this.ZdcMapTileWpx-this.ZdcMapWpx)/2);this.ZdcMapClipRect.Width=this.ZdcMapWpx;}else{this.ZdcMapWpx=512;this.ZdcMapTileWpx=1280;this.ZdcMapTileLeftpx=-320;this.ZdcMapCenterpx.x=640;this.ZdcMapCenterInfopx.x=340;this.ZdcScaleBarpx.x=340;this.ZdcMapControlpx.x=820;this.ZdcMapCopyrightpx.x=620;this.ZdcMapClipRect.Left=384;this.ZdcMapClipRect.Width=512;}if(this.ZdcMapClass.style.height!=null){if(this.ZdcMapHpx==0){this.ZdcMapHpx=dr.y;}this.ZdcTileLayerMaxJ=Math.floor(this.ZdcMapHpx/256)+1+2;this.ZdcMapTileHpx=this.ZdcTileLayerMaxJ*this.ZdcTileHpx;this.ZdcMapTileToppx=(-1)*(Math.floor((this.ZdcMapTileHpx-this.ZdcMapHpx)/2)-this.ZdcMapToppx);this.ZdcMapCenterpx.y=Math.floor(this.ZdcMapTileHpx/2);this.ZdcMapCenterInfopx.y=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+10;this.ZdcScaleBarpx.y=this.ZdcMapCenterpx.y+Math.floor(this.ZdcMapHpx/2)-45;this.ZdcMapControlpx.y=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+10;this.ZdcMapCopyrightpx.y=this.ZdcMapCenterpx.y+Math.floor(this.ZdcMapHpx/2)-13;this.ZdcMapClipRect.Top=Math.floor((this.ZdcMapTileHpx-this.ZdcMapHpx)/2);this.ZdcMapClipRect.Height=this.ZdcMapHpx;}else{this.ZdcMapHpx=512;this.ZdcMapTileHpx=1280;this.ZdcMapTileToppx=-320;this.ZdcMapCenterpx.y=640;this.ZdcMapCenterInfopx.y=340;this.ZdcScaleBarpx.y=600;this.ZdcMapControlpx.y=400;this.ZdcMapCopyrightpx.y=600;this.ZdcMapClipRect.Top=384;this.ZdcMapClipRect.Height=512;}this.ZdcMapClass.style.left=this.ZdcMapTileLeftpx;this.ZdcMapClass.style.top=this.ZdcMapTileToppx;this.ZdcMapClass.style.width=this.ZdcMapTileWpx;this.ZdcMapClass.style.height=this.ZdcMapTileHpx;var _144=Number(this.ZdcMapClipRect.Left)+Number(this.ZdcMapClipRect.Width);var _145=Number(this.ZdcMapClipRect.Top)+Number(this.ZdcMapClipRect.Height);this.ZdcMapClass.style.clip="rect("+this.ZdcMapClipRect.Top+"px "+_144+"px "+_145+"px "+this.ZdcMapClipRect.Left+"px)";if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)!=0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)!=0){this.ZdcMapMode=1;}if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)==0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)==0){this.ZdcMapMode=2;}if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)!=0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)==0){this.ZdcMapMode=3;}if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)==0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)!=0){this.ZdcMapMode=4;}};ZdcMap.prototype.SetTransparentOnMap=function(){this.ZdcTransparent.style.zIndex=20;this.ZdcTransparent.style.position="absolute";this.ZdcTransparent.innerHTML="<IMG src="+this.ZdcTransparentImage+" galleryimg='no'>";this.ZdcTransparent.style.left=this.ZdcMapCenterpx.x-Math.round(this.ZdcMapWpx/2);this.ZdcTransparent.style.top=this.ZdcMapCenterpx.y-Math.round(this.ZdcMapHpx/2);this.ZdcMapClass.appendChild(this.ZdcTransparent);};ZdcMap.prototype.SetZoomChangeImageOnMap=function(){this.ZdcZoomChangeImage.style.zIndex=10010;this.ZdcMapClass.appendChild(this.ZdcZoomChangeImage);this.ZdcZoomChangeImage.style.filter="alpha(opacity=50)";this.ZdcZoomChangeImage.style.mozOpacity=50/100;this.ZdcZoomChangeImage.style.opacity=50/100;this.ZdcZoomChangeImage.style.left=this.ZdcMapCenterpx.x;this.ZdcZoomChangeImage.style.top=this.ZdcMapCenterpx.y;this.ZdcZoomChangeImage.style.width=154;this.ZdcZoomChangeImage.style.height=154;this.ZdcZoomChangeImage.innerHTML="<IMG style='border:3px solid #CC0000' src="+this.ZoomChangeImageIn+" width=148 height=148>";this.ZdcZoomChangeImage.style.visibility="hidden";this.ZdcZoomChangeImageCorner1.style.zIndex=10011;this.ZdcZoomChangeImageCorner2.style.zIndex=10012;this.ZdcZoomChangeImageCorner3.style.zIndex=10013;this.ZdcZoomChangeImageCorner4.style.zIndex=10014;this.ZdcZoomChangeImageCorner1.style.width="20";this.ZdcZoomChangeImageCorner1.style.height="20";this.ZdcZoomChangeImageCorner1.style.position="absolute";this.ZdcZoomChangeImageCorner2.style.width="20";this.ZdcZoomChangeImageCorner2.style.height="20";this.ZdcZoomChangeImageCorner2.style.position="absolute";this.ZdcZoomChangeImageCorner3.style.width="20";this.ZdcZoomChangeImageCorner3.style.height="20";this.ZdcZoomChangeImageCorner3.style.position="absolute";this.ZdcZoomChangeImageCorner4.style.width="20";this.ZdcZoomChangeImageCorner4.style.height="20";this.ZdcZoomChangeImageCorner4.style.position="absolute";this.ZdcMapClass.appendChild(this.ZdcZoomChangeImageCorner1);this.ZdcMapClass.appendChild(this.ZdcZoomChangeImageCorner2);this.ZdcMapClass.appendChild(this.ZdcZoomChangeImageCorner3);this.ZdcMapClass.appendChild(this.ZdcZoomChangeImageCorner4);this.ZdcZoomChangeImageCorner1.style.left=this.ZdcMapCenterpx.x-20;this.ZdcZoomChangeImageCorner1.style.top=this.ZdcMapCenterpx.y-20;this.ZdcZoomChangeImageCorner2.style.left=this.ZdcMapCenterpx.x+20;this.ZdcZoomChangeImageCorner2.style.top=this.ZdcMapCenterpx.y-20;this.ZdcZoomChangeImageCorner3.style.left=this.ZdcMapCenterpx.x-20;this.ZdcZoomChangeImageCorner3.style.top=this.ZdcMapCenterpx.y+20;this.ZdcZoomChangeImageCorner4.style.left=this.ZdcMapCenterpx.x+20;this.ZdcZoomChangeImageCorner4.style.top=this.ZdcMapCenterpx.y+20;this.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+this.ZoomChangeImageCorner1+">";this.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+this.ZoomChangeImageCorner2+">";this.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+this.ZoomChangeImageCorner3+">";this.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+this.ZoomChangeImageCorner4+">";this.ZdcZoomChangeImageCorner1.style.width="20";this.ZdcZoomChangeImageCorner1.style.height="20";this.ZdcZoomChangeImageCorner1.style.position="absolute";this.ZdcZoomChangeImageCorner2.style.width="20";this.ZdcZoomChangeImageCorner2.style.height="20";this.ZdcZoomChangeImageCorner2.style.position="absolute";this.ZdcZoomChangeImageCorner3.style.width="20";this.ZdcZoomChangeImageCorner3.style.height="20";this.ZdcZoomChangeImageCorner3.style.position="absolute";this.ZdcZoomChangeImageCorner4.style.width="20";this.ZdcZoomChangeImageCorner4.style.height="20";this.ZdcZoomChangeImageCorner4.style.position="absolute";this.ZdcZoomChangeImageCorner1.style.visibility="hidden";this.ZdcZoomChangeImageCorner2.style.visibility="hidden";this.ZdcZoomChangeImageCorner3.style.visibility="hidden";this.ZdcZoomChangeImageCorner4.style.visibility="hidden";};ZdcMap.prototype.SetMapLocationAndScale=function(_146,_147,_148){var obj=ZdcCommon.ll2pixel(_146,_147,_148);var _14a=obj.mesh;objlist=_14a.split("_");this.SetMapImage(objlist[1],objlist[2],objlist[0]);var _14b;var _14c;switch(this.ZdcMapMode){case 1:_14b=(this.ZdcTileWpx/2)-Number(obj.offx);_14c=(this.ZdcTileHpx/2)-Number(obj.offy);break;case 2:_14b=this.ZdcTileWpx-Number(obj.offx);_14c=this.ZdcTileHpx-Number(obj.offy);break;case 3:_14b=(this.ZdcTileWpx/2)-Number(obj.offx);_14c=this.ZdcTileHpx-Number(obj.offy);break;case 4:_14b=this.ZdcTileWpx-Number(obj.offx);_14c=(this.ZdcTileHpx/2)-Number(obj.offy);break;default:_14b=(this.ZdcTileWpx/2)-Number(obj.offx);_14c=(this.ZdcTileHpx/2)-Number(obj.offy);break;}this.ZdcCenter.px=this.ZdcMapCenterpx.x-_14b;this.ZdcCenter.py=this.ZdcMapCenterpx.y-_14c;this.mx=_146;this.my=_147;this.s=_148;this.SetCenterLL(this.mx,this.my);this.ZdcBaseXpx=_14b;this.ZdcBaseYpx=_14c;this.SetMapLayerPos(_14b,_14c);if(this.ZdcUserLayers.length>0){this.InitUserLayer();}this.ResetRouteLayer();this.RedrawShapeLayer();if(this.FirstInitMap){this.FirstInitMap=false;}else{this.ZdcMapAccessLog("ChangeLocation");}ZdcEvent.trigger(this,"scrollmapend");if(this.msgopenstatus){this.reflashMsgWindow();if(ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOffDrag();}}if(this.usermsgopenstatus){this.reflashUserMsgWindow();}if(this.htmlopenstatus){this.closeZdcMsgHtml();this.openZdcMsgHtml(this.ZdcMsgHtml.html,this.ZdcMsgHtml.Point,this.ZdcMsgHtml.title,this.ZdcMsgHtml.w,this.ZdcMsgHtml.h,this.ZdcMsgHtml.mrkoffset);}};ZdcMap.prototype.SetControlOnMap=function(){this.ZdcMapClass.appendChild(this.ZdcCtrObj.doc);this.ZdcCtrObj.doc.style.left=this.ZdcMapControlpx.x-Number(this.ZdcCtrObj.BaseX);this.ZdcCtrObj.doc.style.top=this.ZdcMapControlpx.y;this.ZdcCtrObj.changedoc.style.width="12";this.ZdcCtrObj.changedoc.style.height="12";this.ZdcCtrObj.changedoc.style.position="absolute";if(this.ZdcCtrObj.zoomlistopen){this.ZdcCtrObj.basedoc.innerHTML="<IMG src="+this.ZdcCtrObj.CtlImage+">";if(document.all){this.ZdcCtrObj.basedoc.style.width="60";this.ZdcCtrObj.basedoc.style.height="320";this.ZdcCtrObj.basedoc.style.position="absolute";}this.ZdcCtrObj.changedoc.innerHTML="<IMG src="+this.ZdcCtrObj.CtlNoChgImage+">";}else{this.ZdcCtrObj.basedoc.innerHTML="<IMG src="+this.ZdcCtrObj.CtlSmallImage+">";if(document.all){this.ZdcCtrObj.basedoc.style.width="60";this.ZdcCtrObj.basedoc.style.height="120";this.ZdcCtrObj.basedoc.style.position="absolute";}this.ZdcCtrObj.changedoc.innerHTML="<IMG src="+this.ZdcCtrObj.CtlChgImage+">";}if(this.ZdcMapHpx<=350){this.ZdcCtrObj.zoomlistopen=false;this.ZdcCtrObj.changedoc.style.visibility="hidden";if(this.ZdcCtrObj.type==3){this.ZdcCtrObj.shadowlargedoc.style.visibility="hidden";this.ZdcCtrObj.shadowsmalldoc.style.visibility="visible";}this.ZdcCtrObj.scaledoc.style.visibility="hidden";this.ZdcCtrObj.scaleseldoc.style.visibility="hidden";this.ZdcCtrObj.scaleslitherdoc.style.visibility="hidden";}else{if(this.ZdcCtrObj.smallonly){this.ZdcCtrObj.changedoc.style.visibility="hidden";}else{if(this.ZdcCtrObj.largeonly){this.ZdcCtrObj.changedoc.style.visibility="hidden";}else{this.ZdcCtrObj.changedoc.style.visibility="visible";}}}};ZdcMap.prototype.SetMapCenterOnMap=function(){this.ZdcMapClass.appendChild(this.ZdcCenterObj.doc);this.ZdcCenterObj.doc.style.left=this.ZdcMapCenterpx.x+this.ZdcCenterObj.offset.x;this.ZdcCenterObj.doc.style.top=this.ZdcMapCenterpx.y+this.ZdcCenterObj.offset.y;};ZdcMap.prototype.SetMapCenterInfoOnMap=function(){this.ZdcMapClass.appendChild(this.ZdcCenterInfoObj.doc1);this.ZdcMapClass.appendChild(this.ZdcCenterInfoObj.doc2);this.ZdcCenterInfoObj.doc1.style.left=this.ZdcMapCenterInfopx.x;this.ZdcCenterInfoObj.doc1.style.top=this.ZdcMapCenterInfopx.y;this.ZdcCenterInfoObj.doc2.style.left=this.ZdcMapCenterInfopx.x;this.ZdcCenterInfoObj.doc2.style.top=this.ZdcMapCenterInfopx.y;this.ZdcCenterInfoObj.doc1.innerHTML="<IMG src="+this.ZdcCenterInfoObj.ZdcCenterInfoImage+">";this.ZdcCenterInfoObj.doc1.style.position="absolute";var pts=ZdcCommon.ConvertMSXY2LL(this.mx,this.my,2);this.ZdcCenter.e=" E "+pts.lon;this.ZdcCenter.n=" N "+pts.lat;this.ZdcCenter.scale="1/"+ZdcZoom.map_defs[this.s];if(this.ZdcCenterInfoObj.type==1){this.ZdcCenterInfoObj.doc2.innerHTML="<DIV align='center'><span style='font-size:12px;font-family:monospace'>"+this.ZdcCenter.e+"<br>"+this.ZdcCenter.n+"<br>"+this.ZdcCenter.scale+"</span></DIV>";}else{this.ZdcCenterInfoObj.doc2.innerHTML="<DIV align='center'><span style='font-size:12px;font-family:monospace;color:#ffffff;'>"+this.ZdcCenter.e+"<br>"+this.ZdcCenter.n+"<br>"+this.ZdcCenter.scale+"</span></DIV>";}};ZdcMap.prototype.SetMapScaleOnMap=function(){this.ZdcMapClass.appendChild(this.ZdcScaleBarObj.doc1);this.ZdcMapClass.appendChild(this.ZdcScaleBarObj.doc2);this.ZdcScaleText=ZdcZoom.map_defd[this.s];this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleImage+">";this.ZdcScaleBarObj.doc1.style.position="absolute";this.ZdcScaleBarObj.doc2.style.position="absolute";if(this.ZdcScaleBarObj.type==1){this.ZdcScaleBarObj.doc2.style.visible="hidden";this.ZdcScaleBarObj.doc1.style.width="120";this.ZdcScaleBarObj.doc1.style.height="15";this.ZdcScaleBarObj.doc1.style.left=this.ZdcScaleBarpx.x-2;this.ZdcScaleBarObj.doc1.style.top=this.ZdcScaleBarpx.y+22;this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".gif"+">";}else{if(this.ZdcScaleBarObj.type==2){this.ZdcScaleBarObj.doc1.style.width="105";this.ZdcScaleBarObj.doc1.style.height="15";this.ZdcScaleBarObj.doc2.style.width="30";this.ZdcScaleBarObj.doc2.style.height="15";this.ZdcScaleBarObj.doc1.style.left=this.ZdcScaleBarpx.x;this.ZdcScaleBarObj.doc1.style.top=this.ZdcScaleBarpx.y+14;this.ZdcScaleBarObj.doc2.style.left=this.ZdcScaleBarpx.x+108;this.ZdcScaleBarObj.doc2.style.top=this.ZdcScaleBarpx.y+12;this.ZdcScaleBarObj.doc2.innerHTML="<table width=30 height=15><tr><td align='center' bgcolor=#444444>"+"<span style='font-size:12px;font-family:monospace;color:#ffffff;'>"+this.ZdcScaleText+"</span>"+"</td></tr></table>";}else{if(this.ZdcScaleBarObj.type==9){this.ZdcScaleBarObj.doc2.style.visible="hidden";this.ZdcScaleBarObj.doc1.style.width="120";this.ZdcScaleBarObj.doc1.style.height="15";this.ZdcScaleBarObj.doc1.style.left=this.ZdcScaleBarpx.x-5;this.ZdcScaleBarObj.doc1.style.top=this.ZdcScaleBarpx.y+22;if(this.mediamode=="screen"){if(this.s<10){this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+")";if(document.all){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+" style='display:none' />";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+">";}}else{this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+")";if(document.all){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+" style='display:none' />";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+">";}}}else{if(this.s<10){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"pr_0"+this.s+".gif"+">";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"pr_"+this.s+".gif"+">";}}}}}};ZdcMap.prototype.SetCopyrightOnMap=function(){this.ZdcMapClass.removeChild(this.ZdcCopyrightObj.doc);this.AddCopyrightOnMap();};ZdcMap.prototype.AddCopyrightOnMap=function(){this.ZdcCopyrightObj.doc.style.left=this.ZdcMapCopyrightpx.x;this.ZdcCopyrightObj.doc.style.top=this.ZdcMapCopyrightpx.y-2;if(this.ZdcMapType==9){this.ZdcCopyrightObj.doc.style.left=this.ZdcMapCopyrightpx.x-25-14;this.ZdcCopyrightObj.doc.style.top=this.ZdcMapCopyrightpx.y-22;if(this.mediamode=="screen"){this.ZdcCopyrightObj.copyrightimg=ZdcCommon.ZdcMapServer+"/usrimg/chizulog_copyright.png";this.ZdcCopyrightObj.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcCopyrightObj.copyrightimg+")";if(document.all){this.ZdcCopyrightObj.doc.innerHTML="<IMG src="+this.ZdcCopyrightObj.copyrightimg+"  style='display:none'>";}else{this.ZdcCopyrightObj.doc.innerHTML="<IMG src="+this.ZdcCopyrightObj.copyrightimg+">";}}else{this.ZdcCopyrightObj.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled = '0' src='')";this.ZdcCopyrightObj.copyrightimg=ZdcCommon.ZdcMapServer+"/usrimg/chizulog_copyright.gif";this.ZdcCopyrightObj.doc.innerHTML="<IMG src="+this.ZdcCopyrightObj.copyrightimg+">";}}this.ZdcMapClass.appendChild(this.ZdcCopyrightObj.doc);if(this.cMap!=null){var p1=ZdcEvent._getClientPosition(this.cMap.ZdcSubMapBase);var p3=ZdcEvent._getClientPosition(this.ZdcCopyrightObj.doc);var p2=new Object();var p4=new Object();p2.x=p1.x+parseInt(this.cMap.ZdcSubMapWpx);p2.y=p1.y+parseInt(this.cMap.ZdcSubMapHpx);p4.x=p3.x+137;p4.y=p3.y+28;if(p1.x<p3.x&&p3.x<p2.x&&p1.y<p3.y&&p3.y<p2.y){if(this.ZdcMapType==9){this.ZdcCopyrightObj.doc.style.left=this.ZdcMapCopyrightpx.x-this.cMap.ZdcSubMapWpx-25;this.ZdcCopyrightObj.doc.style.top=this.ZdcMapCopyrightpx.y-22;}else{this.ZdcCopyrightObj.doc.style.left=this.ZdcMapCopyrightpx.x-this.cMap.ZdcSubMapWpx;}}else{if(p1.x<p4.x&&p4.x<p2.x&&p1.y<p4.y&&p4.y<p2.y){if(this.ZdcMapType==9){this.ZdcCopyrightObj.doc.style.left=this.ZdcMapCopyrightpx.x-35;this.ZdcCopyrightObj.doc.style.top=this.ZdcMapCopyrightpx.y-22;}else{this.ZdcCopyrightObj.doc.style.left=this.ZdcMapCopyrightpx.x-8;}}}}};ZdcMap.prototype.SetMsgWindowOnMap=function(){this.ZdcMsgWindowObj.Pixel=this.convertPoint2Pixel(this.ZdcMsgWindowObj.Point);this.ZdcMsgWindowObj.doc.style.left=parseInt(this.ZdcMsgWindowObj.Pixel.x)+parseInt(this.ZdcMsgWindowObj.msgoffset.x);this.ZdcMsgWindowObj.doc.style.top=parseInt(this.ZdcMsgWindowObj.Pixel.y)+parseInt(this.ZdcMsgWindowObj.msgoffset.y);if(this.ZdcMsgWindowObj.Point==null){this.ZdcMsgWindowObj.doc.style.left=this.ZdcMapCenterpx.x;this.ZdcMsgWindowObj.doc.style.top=this.ZdcMapCenterpx.y;}if(this.ZdcMsgWindowObj.title!=null){this.ZdcMsgWindowObj.doctextsmall.appendChild(this.ZdcMsgWindowObj.title);this.ZdcMsgWindowObj.doc.appendChild(this.ZdcMsgWindowObj.doctextsmall);this.ZdcMsgWindowObj.doctextsmall.style.width="200";this.ZdcMsgWindowObj.doctextsmall.style.position="absolute";this.ZdcMsgWindowObj.doctextsmall.style.overflow="hidden";this.ZdcMsgWindowObj.doctextsmall.style.fontSize="12";if(document.all){this.ZdcMsgWindowObj.doctextsmall.style.lineHeight="1.25";}else{this.ZdcMsgWindowObj.doctextsmall.style.lineHeight="1.2";}}if(this.ZdcMsgWindowObj.node!=null){this.ZdcMsgWindowObj.doctextlarge.appendChild(this.ZdcMsgWindowObj.node);this.ZdcMsgWindowObj.doc.appendChild(this.ZdcMsgWindowObj.doctextlarge);this.ZdcMsgWindowObj.doctextlarge.style.width="207";this.ZdcMsgWindowObj.doctextlarge.style.height="120";this.ZdcMsgWindowObj.doctextlarge.style.overflow="auto";this.ZdcMsgWindowObj.doctextlarge.style.overflowY="auto";this.ZdcMsgWindowObj.doctextlarge.style.overflowX="hidden";this.ZdcMsgWindowObj.doctextlarge.style.position="absolute";this.ZdcMsgWindowObj.doctextlarge.style.fontSize="12";if(document.all){this.ZdcMsgWindowObj.doctextlarge.style.lineHeight="1.25";}else{this.ZdcMsgWindowObj.doctextlarge.style.lineHeight="1.2";}}if(this.ZdcMsgStatus){if(this.ZdcMsgWindowObj.largeopen){this.ZdcMsgWindowObj.visibleLargeMsg();}else{this.ZdcMsgWindowObj.visibleSmallMsg();}this.ZdcMapClass.appendChild(this.ZdcMsgWindowObj.doc);}};ZdcMap.prototype.SetMsgWindowOnDrag=function(){this.ZdcMsgWindowObj.doctextlarge.style.overflow="hidden";this.ZdcMsgWindowObj.doctextlarge.style.overflowY="hidden";this.ZdcMsgWindowObj.doctextlarge.style.overflowX="hidden";};ZdcMap.prototype.SetMsgWindowOffDrag=function(){this.ZdcMsgWindowObj.doctextlarge.style.overflow="auto";this.ZdcMsgWindowObj.doctextlarge.style.overflowY="auto";this.ZdcMsgWindowObj.doctextlarge.style.overflowX="hidden";};ZdcMap.prototype.InitUserLayer=function(){for(var j=this.ZdcUserLayers.length-1;j>=0;j--){if(this.ZdcUserLayers[j].addmapstatus){this.ClearUserLayerMarker(this.ZdcUserLayers[j].layerID);this.ZdcMapClass.removeChild(this.ZdcUserLayers[j].doc);this.ZdcUserLayers[j].addmapstatus=false;}this.ZdcUserLayers[j].doc.style.left=0;this.ZdcUserLayers[j].doc.style.top=0;if(this.ZdcUserLayers[j].minzoom<=this.s&&this.s<=this.ZdcUserLayers[j].maxzoom&&!this.ZdcUserLayers[j].addmapstatus&&this.ZdcUserLayers[j].type!="auto"){this.ZdcMapClass.appendChild(this.ZdcUserLayers[j].doc);this.ZdcUserLayers[j].addmapstatus=true;}if(this.ZdcUserLayers[j].markers.length>0){if(this.ZdcUserLayers[j].type!="auto"){this.InitUserLayerMarker(this.ZdcUserLayers[j].layerID);}}if(this.ZdcUserLayers[j].type=="auto"){this.removeUserLayerById(this.ZdcUserLayers[j].layerID);}this.SetLayerBoundBox(this.ZdcUserLayers[j]);}};ZdcMap.prototype.ClearUserLayerMarker=function(id){for(var k=0;k<this.ZdcUserLayers.length;k++){if(this.ZdcUserLayers[k].layerID==id){for(var i=0;i<this.ZdcUserLayers[k].markers.length;i++){if(this.ZdcUserLayers[k].markers[i]!=null){try{this.ZdcUserLayers[k].doc.removeChild(this.ZdcUserLayers[k].markers[i].doc);}catch(e){}}}if(this.ZdcUserLayers[k].type=="auto"){this.ZdcUserLayers[k].clearMarker(1);}break;}}};ZdcMap.prototype.InitUserLayerMarker=function(_156){for(var j=0;j<this.ZdcUserLayers.length;j++){if(this.ZdcUserLayers[j].layerID==_156){break;}}if(j>=this.ZdcUserLayers.length){return;}var id=j;var _159=parseInt(this.ZdcUserLayers[id].doc.style.left);var _15a=parseInt(this.ZdcUserLayers[id].doc.style.top);var pxy;if(this.ZdcUserLayers[id].markers!=null&&this.ZdcUserLayers[id].addmapstatus){for(var i=0;i<this.ZdcUserLayers[id].markers.length;i++){if(this.ZdcUserLayers[id].markers[i]!=null){pxy=this.convertPoint2Pixel(this.ZdcUserLayers[id].markers[i].Point);this.ZdcUserLayers[id].markers[i].doc.style.left=pxy.x+this.ZdcUserLayers[id].markers[i].icon.offset.x-_159;this.ZdcUserLayers[id].markers[i].doc.style.top=pxy.y+this.ZdcUserLayers[id].markers[i].icon.offset.y-_15a;this.ZdcUserLayers[id].doc.appendChild(this.ZdcUserLayers[id].markers[i].doc);}}}};ZdcMap.prototype.SetZoomPointVisible=function(mx,my,sflg){if(sflg!=0){this.ZdcZoomChangeImageCorner1.style.visibility="visible";this.ZdcZoomChangeImageCorner2.style.visibility="visible";this.ZdcZoomChangeImageCorner3.style.visibility="visible";this.ZdcZoomChangeImageCorner4.style.visibility="visible";}if(sflg<0){var img1=this.ZoomChangeImageCorner1;var img2=this.ZoomChangeImageCorner2;var img3=this.ZoomChangeImageCorner3;var img4=this.ZoomChangeImageCorner4;}else{var img1=this.ZoomChangeImageCorner4;var img2=this.ZoomChangeImageCorner3;var img3=this.ZoomChangeImageCorner2;var img4=this.ZoomChangeImageCorner1;}var _164=20;var _165=20;var pxl=this.convertPoint2Pixel(new ZdcPoint(mx,my,2));var plx=pxl.x-15;var ply=pxl.y-15;if(document.all){this.ZdcZoomChangeImageCorner1.style.left=plx-16;this.ZdcZoomChangeImageCorner1.style.top=ply-16;this.ZdcZoomChangeImageCorner2.style.left=plx+_164+2;this.ZdcZoomChangeImageCorner2.style.top=ply-16;this.ZdcZoomChangeImageCorner3.style.left=plx-16;this.ZdcZoomChangeImageCorner3.style.top=ply+_165+2;this.ZdcZoomChangeImageCorner4.style.left=plx+_164+2;this.ZdcZoomChangeImageCorner4.style.top=ply+_165+2;this.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img1+")";this.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img2+")";this.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img3+")";this.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img4+")";this.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+img1+" style='display:none'>";this.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+img2+" style='display:none'>";this.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+img3+" style='display:none'>";this.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+img4+" style='display:none'>";}else{this.ZdcZoomChangeImageCorner1.style.left=plx-16;this.ZdcZoomChangeImageCorner1.style.top=ply-16;this.ZdcZoomChangeImageCorner2.style.left=plx+_164+2;this.ZdcZoomChangeImageCorner2.style.top=ply-16;this.ZdcZoomChangeImageCorner3.style.left=plx-16;this.ZdcZoomChangeImageCorner3.style.top=ply+_165+2;this.ZdcZoomChangeImageCorner4.style.left=plx+_164+2;this.ZdcZoomChangeImageCorner4.style.top=ply+_165+2;this.ZdcZoomChangeImageCorner1.innerHTML="<IMG src="+img1+">";this.ZdcZoomChangeImageCorner2.innerHTML="<IMG src="+img2+">";this.ZdcZoomChangeImageCorner3.innerHTML="<IMG src="+img3+">";this.ZdcZoomChangeImageCorner4.innerHTML="<IMG src="+img4+">";}this.ZdcZoomChangeImageCorner1.style.width="20";this.ZdcZoomChangeImageCorner1.style.height="20";this.ZdcZoomChangeImageCorner1.style.position="absolute";this.ZdcZoomChangeImageCorner2.style.width="20";this.ZdcZoomChangeImageCorner2.style.height="20";this.ZdcZoomChangeImageCorner2.style.position="absolute";this.ZdcZoomChangeImageCorner3.style.width="20";this.ZdcZoomChangeImageCorner3.style.height="20";this.ZdcZoomChangeImageCorner3.style.position="absolute";this.ZdcZoomChangeImageCorner4.style.width="20";this.ZdcZoomChangeImageCorner4.style.height="20";this.ZdcZoomChangeImageCorner4.style.position="absolute";this.overtime=0;return;};ZdcMap.prototype.SetZoomPointHidden=function(){if(this.overtime>32){this.overtime=0;this.ZdcZoomChangeImageCorner1.style.visibility="hidden";this.ZdcZoomChangeImageCorner2.style.visibility="hidden";this.ZdcZoomChangeImageCorner3.style.visibility="hidden";this.ZdcZoomChangeImageCorner4.style.visibility="hidden";clearTimeout(this.TimeID);return;}else{if(ZdcCommon.Math_mod(this.overtime,16)==0){this.ZdcZoomChangeImageCorner1.style.visibility="hidden";this.ZdcZoomChangeImageCorner2.style.visibility="hidden";this.ZdcZoomChangeImageCorner3.style.visibility="hidden";this.ZdcZoomChangeImageCorner4.style.visibility="hidden";}else{this.ZdcZoomChangeImageCorner1.style.visibility="visible";this.ZdcZoomChangeImageCorner2.style.visibility="visible";this.ZdcZoomChangeImageCorner3.style.visibility="visible";this.ZdcZoomChangeImageCorner4.style.visibility="visible";}this.overtime++;}this.TimeID=setTimeout((function(){this.SetZoomPointHidden();}).bind(this),this.ScrSpeed);};ZdcMap.prototype.GetNewCenterPoint=function(mx,my,orgs,news){if(orgs==null){orgs=this.s;}if(news==null){news=this.s;}var w=(this.mx-mx)/ZdcZoom.map_defw[orgs];var h=(this.my-my)/ZdcZoom.map_defh[orgs];var newx=mx+Math.round(w*ZdcZoom.map_defw[news]);var newy=my+Math.round(h*ZdcZoom.map_defh[news]);var pt=new ZdcPoint(newx,newy,2);return pt;};ZdcMap.prototype.SetScale=function(opt){if(this.CenterFirst){var obj=ZdcCommon.ll2pixel(this.mx,this.my,this.s);var _174=obj.mesh;objlist=_174.split("_");}else{if(this.CenterFirst!=null){if(this.msgopenstatus){if(this.getMapBoundBox(null,this.orgs).isContainPoint(this.ZdcMsgWindowObj.Point)){var p=this.GetNewCenterPoint(this.ZdcMsgWindowObj.Point.mx,this.ZdcMsgWindowObj.Point.my,this.orgs);this.mx=p.mx;this.my=p.my;}}else{if(this.usermsgopenstatus){if(this.getMapBoundBox(null,this.orgs).isContainPoint(this.ZdcUserMsgWindow.Point)){var p=this.GetNewCenterPoint(this.ZdcUserMsgWindow.Point.mx,this.ZdcUserMsgWindow.Point.my,this.orgs);this.mx=p.mx;this.my=p.my;}}else{if(this.htmlopenstatus){if(this.getMapBoundBox(null,this.orgs).isContainPoint(this.ZdcMsgHtml.Point)){var p=this.GetNewCenterPoint(this.ZdcMsgHtml.Point.mx,this.ZdcMsgHtml.Point.my,this.orgs);this.mx=p.mx;this.my=p.my;}}else{if(opt=="wheel"){var p=this.GetNewCenterPoint(this.MouseMx,this.MouseMy,this.orgs);this.mx=p.mx;this.my=p.my;this.SetZoomPointVisible(this.MouseMx,this.MouseMy,(this.orgs-this.s));}}}}}var obj=ZdcCommon.ll2pixel(this.mx,this.my,this.s);var _174=obj.mesh;objlist=_174.split("_");}this.SetMapImage(objlist[1],objlist[2],objlist[0]);var _176;var _177;switch(this.ZdcMapMode){case 1:_176=(this.ZdcTileWpx/2)-Number(obj.offx);_177=(this.ZdcTileHpx/2)-Number(obj.offy);break;case 2:_176=this.ZdcTileWpx-Number(obj.offx);_177=this.ZdcTileHpx-Number(obj.offy);break;case 3:_176=(this.ZdcTileWpx/2)-Number(obj.offx);_177=this.ZdcTileHpx-Number(obj.offy);break;case 4:_176=this.ZdcTileWpx-Number(obj.offx);_177=(this.ZdcTileHpx/2)-Number(obj.offy);break;default:_176=(this.ZdcTileWpx/2)-Number(obj.offx);_177=(this.ZdcTileHpx/2)-Number(obj.offy);break;}this.ZdcCenter.px=this.ZdcMapCenterpx.x-_176;this.ZdcCenter.py=this.ZdcMapCenterpx.y-_177;this.SetCenterLL(this.mx,this.my);this.ZdcBaseXpx=_176;this.ZdcBaseYpx=_177;this.SetMapLayerPos(_176,_177);if(this.ZdcUserLayers.length>0){this.InitUserLayer();}if(this.msgopenstatus){this.reflashMsgWindow();}if(this.usermsgopenstatus){this.reflashUserMsgWindow();}if(this.htmlopenstatus){this.closeZdcMsgHtml();this.openZdcMsgHtml(this.ZdcMsgHtml.html,this.ZdcMsgHtml.Point,this.ZdcMsgHtml.title,this.ZdcMsgHtml.w,this.ZdcMsgHtml.h,this.ZdcMsgHtml.mrkoffset);}this.ResetRouteLayer();this.RedrawShapeLayer();ZdcEvent.trigger(this,"changezoomend");this.ZdcMapAccessLog("ChangeZoom");if(opt=="wheel"&&!this.CenterFirst&&!this.msgopenstatus&&!this.usermsgopenstatus&&!this.htmlopenstatus){this.SetZoomPointHidden();}};ZdcMap.prototype.SetMapImage=function(_178,_179,_17a){_178=String(_178);_179=String(_179);if(ZdcCommon.StrCmp(_178.substr(0,1),"m")==0){var msw=_178.substr(1,ZdcCommon.StrLen(_178)-1);_178=(-1)*msw;}if(ZdcCommon.StrCmp(_179.substr(0,1),"m")==0){var msh=_179.substr(1,ZdcCommon.StrLen(_179)-1);_179=(-1)*msh;}this.ZdcTileCodeX=Number(_178);this.ZdcTileCodeY=Number(_179);var mx;var my;var _17f;switch(this.ZdcMapMode){case 1:var lx=Math.floor(this.ZdcTileLayerMaxI/2)+1;var ly=Math.floor(this.ZdcTileLayerMaxJ/2)+1;break;case 2:var lx=Math.floor(this.ZdcTileLayerMaxI/2);var ly=Math.floor(this.ZdcTileLayerMaxJ/2);break;case 3:var lx=Math.floor(this.ZdcTileLayerMaxI/2)+1;var ly=Math.floor(this.ZdcTileLayerMaxJ/2);break;case 4:var lx=Math.floor(this.ZdcTileLayerMaxI/2);var ly=Math.floor(this.ZdcTileLayerMaxJ/2)+1;break;default:var lx=Math.floor(this.ZdcTileLayerMaxI/2)+1;var ly=Math.floor(this.ZdcTileLayerMaxJ/2)+1;break;}for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){mx=_178-lx+i;my=_179-j+ly;if(mx<0){mx="m"+Math.abs(mx);}if(my<0){my="m"+Math.abs(my);}_17f=_17a+"_"+mx+"_"+my+"_"+0+"_"+this.ZdcMapTypeOpt;if(ZdcMap.AccessText=="10200000"){if(this.ZdcMapRasterEngine){if(this.ZdcUserTile){this.ZdcTileLayer[j][i].innerHTML="<IMG style='border:1px solid #666666' src="+this.ZdcUserTilePath+"&mesh="+_17f+" >";}else{this.ZdcTileLayer[j][i].innerHTML="<IMG style='border:1px solid #666666' src="+this.ZdcMapTypeObj.server[this.ZdcMapType]+"?mesh="+_17f+" >";}}else{var _184=this.GetImageUrl(mx,my,_17a);if(document.all){this.ZdcTileLayer[j][i].innerHTML="<IMG src="+_184+" galleryimg='no' alt='' >";}else{this.ZdcTileLayer[j][i].innerHTML="<IMG src="+_184+" galleryimg='no' alt='' >";}}}else{this.ZdcTileLayer[j][i].innerHTML="<IMG src="+ZdcCommon.ZdcMapLog+" galleryimg='no' alt='' >";}this.ZdcTileLayer[j][i].id=_17f;}}};ZdcMap.prototype.SetCenterLL=function(x,y){var zpt=ZdcCommon.ConvertMSXY2LL(x,y,1);this.ZdcCenter.lon=zpt.lon;this.ZdcCenter.lat=zpt.lat;var pts=ZdcCommon.ConvertMSXY2LL(x,y,2);if(this.CenterInfoBoxOpen){this.ZdcCenter.e=" E "+pts.lon;this.ZdcCenter.n=" N "+pts.lat;this.ZdcCenter.scale="1/"+ZdcZoom.map_defs[this.s];if(this.ZdcCenterInfoObj.type==1){this.ZdcCenterInfoObj.doc2.innerHTML="<DIV align='center'><span style='font-size:12px;font-family:monospace'>"+this.ZdcCenter.e+"<br>"+this.ZdcCenter.n+"<br>"+this.ZdcCenter.scale+"</span></DIV>";}else{this.ZdcCenterInfoObj.doc2.innerHTML="<DIV align='center'><span style='font-size:12px;font-family:monospace;color:#ffffff;'>"+this.ZdcCenter.e+"<br>"+this.ZdcCenter.n+"<br>"+this.ZdcCenter.scale+"</span></DIV>";}}};ZdcMap.prototype.SetMapLayerPos=function(_189,_18a){for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i].style.left=_189-(1*this.ZdcTileWpx)+(i*this.ZdcTileWpx);this.ZdcTileLayer[j][i].style.top=_18a-(1*this.ZdcTileHpx)+(j*this.ZdcTileHpx);}}return;};ZdcMap.prototype.ScrollMapByDirection=function(mx,my){if(this.OnScroll){return;}var px=mx*Math.round(this.ZdcMapWpx*3/5);var py=my*Math.round(this.ZdcMapHpx*3/5);ZdcEvent.trigger(this,"scrollmapstart");if(this.msgopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOnDrag();}if(this.htmlopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.ZdcMsgHtml.doc.style.visibility="hidden";this.ZdcMsgHtml.shddoc.style.visibility="hidden";}this.CountScr=0;this.PanTo(px,py);};ZdcMap.prototype.scrollMap=function(px,py,setp){if(this.OnScroll){return;}if(Math.abs(px)>2048||Math.abs(py)>2048){return -1;}ZdcEvent.trigger(this,"scrollmapstart");if(this.msgopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOnDrag();}if(this.htmlopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.ZdcMsgHtml.doc.style.visibility="hidden";this.ZdcMsgHtml.shddoc.style.visibility="hidden";}this.CountScr=0;this.PanTo(px,py,setp);return 1;};ZdcMap.prototype.PanTo=function(px,py,setp){this.OnScroll=true;var _197=0;switch(this.CountScr){case 0:this.MoveSumX=0;this.MoveSumY=0;_197=16;break;case 1:_197=8;break;case 2:_197=4;break;case 3:_197=4;break;case 4:_197=8;break;case 5:_197=16;break;case 6:_197=16;break;case 7:_197=32;break;case 8:_197=64;break;case 9:_197=64;break;default:_197=0;break;}var nx=Math.round(px/_197);var ny=Math.round(py/_197);if(nx==0){var _19a=1;}else{var _19a=Math.abs(nx)/nx;}if(ny==0){var _19b=1;}else{var _19b=Math.abs(ny)/ny;}if(Math.abs(nx)>Math.abs(px)-Math.abs(this.MoveSumX)){nx=(Math.abs(px)-Math.abs(this.MoveSumX))*_19a;}if(Math.abs(ny)>Math.abs(py)-Math.abs(this.MoveSumY)){ny=(Math.abs(py)-Math.abs(this.MoveSumY))*_19b;}if(this.CountScr==9){nx=(Math.abs(px)-Math.abs(this.MoveSumX))*_19a;ny=(Math.abs(py)-Math.abs(this.MoveSumY))*_19b;}this.MoveSumX+=nx;this.MoveSumY+=ny;this.ZdcMapTileMoveX=Math.round((Math.abs(nx)))*_19a;this.ZdcMapTileMoveY=Math.round((Math.abs(ny)))*_19b;this.ZdcMoveX=this.ZdcMapTileMoveX;this.ZdcMoveY=this.ZdcMapTileMoveY;ZdcEvent.trigger(this,"scrollmap");this.MoveMapByXY(this.ZdcMoveX,this.ZdcMoveY);this.ReSetMapBase();this.CountScr++;if(this.CountScr>this.CountScrMax){clearTimeout(this.TimeID);this.CountScr=0;this.OnScroll=false;if(setp!=null){this.mx=setp.mx;this.my=setp.my;this.SetCenterLL(this.mx,this.my);}this.RedrawRouteLayer();this.RedrawShapeLayer();ZdcEvent.trigger(this,"scrollmapend");if(this.msgopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOffDrag();}if(this.htmlopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.ZdcMsgHtml.doc.style.visibility="visible";this.ZdcMsgHtml.shddoc.style.visibility="visible";}this.ZdcMapAccessLog("scrollTo");return;}this.TimeID=setTimeout((function(){this.PanTo(px,py,setp);}).bind(this),this.ScrSpeed);};ZdcMap.prototype.SetZoom=function(zm,opt){this.orgs=this.s;this.s=Number(this.s)+zm;if(this.s<this.zoomMin){this.s=this.zoomMin;}if(this.s>this.zoomMax){this.s=this.zoomMax;}if(this.orgs!=this.s){this.SetScale(opt);this.ShowScaleInfo();}};ZdcMap.prototype.ShowScaleInfo=function(){var pts=ZdcCommon.ConvertMSXY2LL(this.mx,this.my,2);if(this.CenterInfoBoxOpen){this.ZdcCenter.e=" E "+pts.lon;this.ZdcCenter.n=" N "+pts.lat;this.ZdcCenter.scale="1/"+ZdcZoom.map_defs[this.s];if(this.ZdcCenterInfoObj.type==1){this.ZdcCenterInfoObj.doc2.innerHTML="<DIV align='center'><span style='font-size:12px;font-family:monospace;'>"+this.ZdcCenter.e+"<br>"+this.ZdcCenter.n+"<br>"+this.ZdcCenter.scale+"</span></DIV>";}else{this.ZdcCenterInfoObj.doc2.innerHTML="<DIV align='center'><span style='font-size:12px;font-family:monospace;color:#ffffff;'>"+this.ZdcCenter.e+"<br>"+this.ZdcCenter.n+"<br>"+this.ZdcCenter.scale+"</span></DIV>";}this.ZdcCenterInfoObj.doc2.style.position="absolute";this.ZdcCenterInfoObj.doc2.style.width="120";this.ZdcCenterInfoObj.doc2.style.height="45";if(document.all){this.ZdcCenterInfoObj.doc2.style.lineHeight="1.25";}else{this.ZdcCenterInfoObj.doc2.style.lineHeight="1.05";}if(navigator.userAgent.indexOf("Safari")>=0){this.ZdcCenterInfoObj.doc2.style.lineHeight="1.2";}}if(this.ScaleBarOpen){this.ZdcScaleText=ZdcZoom.map_defd[this.s];if(this.ZdcScaleBarObj.type==1){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".gif"+">";}else{if(this.ZdcScaleBarObj.type==2){this.ZdcScaleBarObj.doc2.innerHTML="<table width=30 height=15><tr><td align='center' bgcolor=#444444>"+"<span style='font-size:12px;font-family:monospace;color:#ffffff;'>"+this.ZdcScaleText+"</span>"+"</td></tr></table>";this.ZdcScaleBarObj.doc2.style.width="30";this.ZdcScaleBarObj.doc2.style.height="15";}else{if(this.ZdcScaleBarObj.type==9){if(this.mediamode=="screen"){if(this.s<10){this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+")";if(document.all){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+" style='display:none' />";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+">";}}else{this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+")";if(document.all){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+" style='display:none' />";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+">";}}}else{if(this.s<10){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"pr_0"+this.s+".gif"+">";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"pr_"+this.s+".gif"+">";}}}}}this.ZdcScaleBarObj.doc2.style.position="absolute";}};ZdcMap.prototype.MoveMapByXY=function(_19f,_1a0){while(this.OnSetMapBase){}if(document.all){for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i].style.top=this.ZdcTileLayer[j][i].style.pixelTop+_1a0;this.ZdcTileLayer[j][i].style.left=this.ZdcTileLayer[j][i].style.pixelLeft+_19f;}}for(var i=0;i<this.ZdcUserLayers.length;i++){this.ZdcUserLayers[i].doc.style.top=this.ZdcUserLayers[i].doc.style.pixelTop+_1a0;this.ZdcUserLayers[i].doc.style.left=this.ZdcUserLayers[i].doc.style.pixelLeft+_19f;}this.MoveShapeLayerByXY(_19f,_1a0);if(this.ZdcMsgWindowObj!=null){this.ZdcMsgWindowObj.doc.style.top=this.ZdcMsgWindowObj.doc.style.pixelTop+_1a0;this.ZdcMsgWindowObj.doc.style.left=this.ZdcMsgWindowObj.doc.style.pixelLeft+_19f;}if(this.usermsgopenstatus){this.ZdcUserMsgWindow.doc.style.top=this.ZdcUserMsgWindow.doc.style.pixelTop+_1a0;this.ZdcUserMsgWindow.doc.style.left=this.ZdcUserMsgWindow.doc.style.pixelLeft+_19f;}if(this.htmlopenstatus){this.ZdcMsgHtml.doc.style.top=this.ZdcMsgHtml.doc.style.pixelTop+_1a0;this.ZdcMsgHtml.doc.style.left=this.ZdcMsgHtml.doc.style.pixelLeft+_19f;this.ZdcMsgHtml.shddoc.style.top=this.ZdcMsgHtml.shddoc.style.pixelTop+_1a0;this.ZdcMsgHtml.shddoc.style.left=this.ZdcMsgHtml.shddoc.style.pixelLeft+_19f;}}else{for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i].style.top=parseInt(this.ZdcTileLayer[j][i].style.top)+_1a0;this.ZdcTileLayer[j][i].style.left=parseInt(this.ZdcTileLayer[j][i].style.left)+_19f;}}for(var i=0;i<this.ZdcUserLayers.length;i++){this.ZdcUserLayers[i].doc.style.top=parseInt(this.ZdcUserLayers[i].doc.style.top)+_1a0;this.ZdcUserLayers[i].doc.style.left=parseInt(this.ZdcUserLayers[i].doc.style.left)+_19f;}this.MoveShapeLayerByXY(_19f,_1a0);if(this.ZdcMsgWindowObj!=null){this.ZdcMsgWindowObj.doc.style.top=parseInt(this.ZdcMsgWindowObj.doc.style.top)+_1a0;this.ZdcMsgWindowObj.doc.style.left=parseInt(this.ZdcMsgWindowObj.doc.style.left)+_19f;}if(this.usermsgopenstatus){this.ZdcUserMsgWindow.doc.style.top=parseInt(this.ZdcUserMsgWindow.doc.style.top)+_1a0;this.ZdcUserMsgWindow.doc.style.left=parseInt(this.ZdcUserMsgWindow.doc.style.left)+_19f;}if(this.htmlopenstatus){this.ZdcMsgHtml.doc.style.top=parseInt(this.ZdcMsgHtml.doc.style.top)+_1a0;this.ZdcMsgHtml.doc.style.left=parseInt(this.ZdcMsgHtml.doc.style.left)+_19f;this.ZdcMsgHtml.shddoc.style.top=parseInt(this.ZdcMsgHtml.shddoc.style.top)+_1a0;this.ZdcMsgHtml.shddoc.style.left=parseInt(this.ZdcMsgHtml.shddoc.style.left)+_19f;}}};ZdcMap.prototype.ReSetMapBase=function(){var Xx;var Yy;var ratx=1;var raty=1;this.OnSetMapBase=true;if(this.ZdcMoveY!=0){this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcMoveY;this.ZdcCenter.py=this.ZdcCenter.py+this.ZdcMoveY;raty=Math.floor(Math.abs(this.ZdcBaseYpx/this.ZdcTileHpx))+1;}if(this.ZdcMoveX!=0){this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcMoveX;this.ZdcCenter.px=this.ZdcCenter.px+this.ZdcMoveX;ratx=Math.floor(Math.abs(this.ZdcBaseXpx/this.ZdcTileWpx))+1;}if(this.CountScr==this.CountScrMax){if(this.ZdcBaseYpx>=this.ZdcTileHpx&&this.ZdcBaseXpx>=this.ZdcTileWpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX-1*ratx;Yy=this.ZdcTileCodeY+1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx-this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx-this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx<=(-1*this.ZdcTileHpx)&&this.ZdcBaseXpx<=(-1*this.ZdcTileWpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX+1*ratx;Yy=this.ZdcTileCodeY-1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx>=this.ZdcTileHpx&&this.ZdcBaseXpx<=(-1*this.ZdcTileWpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX+1*ratx;Yy=this.ZdcTileCodeY+1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx-this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx<=(-1*this.ZdcTileHpx)&&this.ZdcBaseXpx>=this.ZdcTileWpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX-1*ratx;Yy=this.ZdcTileCodeY-1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx-this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx<=(-1*this.ZdcTileHpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX;Yy=this.ZdcTileCodeY-1*raty;this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx>=this.ZdcTileHpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX;Yy=this.ZdcTileCodeY+1*raty;this.ZdcBaseYpx=this.ZdcBaseYpx-this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseXpx<=(-1*this.ZdcTileWpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX+1*ratx;Yy=this.ZdcTileCodeY;this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcTileWpx*ratx;this.ChgPg=1;}if(this.ZdcBaseXpx>=this.ZdcTileWpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX-1*ratx;Yy=this.ZdcTileCodeY;this.ZdcBaseXpx=this.ZdcBaseXpx-this.ZdcTileWpx*ratx;this.ChgPg=1;}}if(this.ChgPg!=0){this.ChgPg=0;this.mx=Math.round(this.mx-this.ZdcMoveX*(ZdcZoom.map_defw[this.s]));this.my=Math.round(Number(this.my)+Number(this.ZdcMoveY*(ZdcZoom.map_defh[this.s])));this.SetCenterLL(this.mx,this.my);this.SetMapImage(Xx,Yy,this.s);this.SetMapLayerPos(this.ZdcBaseXpx,this.ZdcBaseYpx);}else{this.mx=Math.round(this.mx-this.ZdcMoveX*(ZdcZoom.map_defw[this.s]));this.my=Math.round(Number(this.my)+Number(this.ZdcMoveY*(ZdcZoom.map_defh[this.s])));this.SetCenterLL(this.mx,this.my);}this.OnSetMapBase=false;};ZdcMap.prototype.setMapLocation=function(p,s){if(s==null){s=this.s;}else{var orgs=this.s;}if(s<this.zoomMin||s>this.zoomMax){return -1;}if(p.mx==this.mx&&p.my==this.my&&s==null){return -1;}if(p.mx==this.mx&&p.my==this.my&&s==this.s){return -1;}if(p.mx!=this.mx||p.my!=this.my){var sfw=Math.round((this.mx-p.mx)/ZdcZoom.map_defw[this.s]);var sfh=Math.round((p.my-this.my)/ZdcZoom.map_defh[this.s]);this.lon=p.lon;this.lat=p.lat;this.mx=p.mx;this.my=p.my;this.s=s;this.SetMapLocationAndScale(p.mx,p.my,s);}this.ShowScaleInfo();if(this.ControlOpen){if(this.ZdcCtrObj.zoomlistopen){var y=73+(this.s-1)*13;this.ZdcCtrObj.scaleseldoc.style.top=y;if(this.ZdcCtrObj.type==3){this.ZdcCtrObj.scaleslitherdoc.style.top=y;}else{this.ZdcCtrObj.scaleslitherdoc.style.top=y-2;}}}if(this.ZdcUserZoomControl!=null){this.ZdcUserZoomControl.setSlitherPosition();}if(this.usermsgopenstatus){this.reflashUserMsgWindow();}if(this.htmlopenstatus){this.closeZdcMsgHtml();this.openZdcMsgHtml(this.ZdcMsgHtml.html,this.ZdcMsgHtml.Point,this.ZdcMsgHtml.title,this.ZdcMsgHtml.w,this.ZdcMsgHtml.h,this.ZdcMsgHtml.mrkoffset);}if(orgs!=null){if(this.s!=orgs){ZdcEvent.trigger(this,"changezoomend");}}};ZdcMap.prototype.setMapScale=function(s){if(s<this.zoomMin||s>this.zoomMax){return (-1);}if(this.s!=s){this.orgs=this.s;this.s=s;this.SetScale("zoom");this.ShowScaleInfo();if(this.ControlOpen){if(this.ZdcCtrObj.zoomlistopen){var y=73+(this.s-1)*13;this.ZdcCtrObj.scaleseldoc.style.top=y;if(this.ZdcCtrObj.type==3){this.ZdcCtrObj.scaleslitherdoc.style.top=y;}else{this.ZdcCtrObj.scaleslitherdoc.style.top=y-2;}}}if(this.ZdcUserZoomControl!=null){this.ZdcUserZoomControl.setSlitherPosition();}return 1;}else{return -1;}};ZdcMap.prototype.getMapWindowSize=function(){var _1af=new ZdcWindow();if(document.all){_1af.top=this.ZdcMapBase.style.pixelTop;_1af.left=this.ZdcMapBase.style.pixelLeft;}else{_1af.top=parseInt(this.ZdcMapBase.style.top);_1af.left=parseInt(this.ZdcMapBase.style.left);}_1af.width=this.ZdcMapBase.style.width;_1af.height=this.ZdcMapBase.style.height;return _1af;};ZdcMap.prototype.getMapLocation=function(){var p=new ZdcPoint(this.mx,this.my,2);return p;};ZdcMap.prototype.getMapScale=function(){return this.s;};ZdcMap.prototype.getMapBoxScale=function(box,pt){var s=-1;if(pt==null){var w=Math.abs(box.maxx-box.minx);var h=Math.abs(box.maxy-box.miny);for(var i=this.zoomMax;i>=this.zoomMin;i--){if(w<(this.ZdcMapWpx*ZdcZoom.map_defw[i])&&h<(this.ZdcMapHpx*ZdcZoom.map_defh[i])){s=i;break;}}}else{var mx1;var mx2;var my1;var my2;for(var i=this.zoomMax;i>=this.zoomMin;i--){mx1=pt.mx-Math.floor((this.ZdcMapWpx*ZdcZoom.map_defw[i])/2);my1=pt.my-Math.floor((this.ZdcMapHpx*ZdcZoom.map_defh[i])/2);mx2=pt.mx+Math.floor((this.ZdcMapWpx*ZdcZoom.map_defw[i])/2);my2=pt.my+Math.floor((this.ZdcMapHpx*ZdcZoom.map_defh[i])/2);var ckbx=new ZdcBox(new ZdcPoint(mx1,my1,2),new ZdcPoint(mx2,my2,2));if(ckbx.isContainBox(box)==1){s=i;break;}}}return s;};ZdcMap.prototype.getMapBoundBox=function(p,s){var box=new ZdcBox();if(p!=null&&s!=null){if(s<this.zoomMin||s>this.zoomMax){s=this.s;}box.minx=p.mx-Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[s]);box.maxx=p.mx+Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[s]);box.miny=p.my-Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[s]);box.maxy=p.my+Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}else{if(p!=null&&s==null){box.minx=p.mx-Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[this.s]);box.maxx=p.mx+Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[this.s]);box.miny=p.my-Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[this.s]);box.maxy=p.my+Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[this.s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}else{if(p==null&&s!=null){box.minx=this.mx-Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[s]);box.maxx=this.mx+Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[s]);box.miny=this.my-Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[s]);box.maxy=this.my+Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}else{box.minx=this.mx-Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[this.s]);box.maxx=this.mx+Math.round((this.ZdcMapWpx/2)*ZdcZoom.map_defw[this.s]);box.miny=this.my-Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[this.s]);box.maxy=this.my+Math.round((this.ZdcMapHpx/2)*ZdcZoom.map_defh[this.s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}}}box.p1=p1;box.p2=p2;return box;};ZdcMap.prototype.mapZoomIn=function(gap,opt){if(this.s==this.zoomMax){return -1;}if(gap==null){gap=1;}if(opt==null){opt="zoom";}this.SetZoom(gap,opt);this.ShowScaleInfo();if(this.ControlOpen){if(this.ZdcCtrObj.zoomlistopen){var y=73+(this.s-1)*13;this.ZdcCtrObj.scaleseldoc.style.top=y;if(this.ZdcCtrObj.type==3){this.ZdcCtrObj.scaleslitherdoc.style.top=y;}else{this.ZdcCtrObj.scaleslitherdoc.style.top=y-2;}}}if(this.ZdcUserZoomControl!=null){this.ZdcUserZoomControl.setSlitherPosition();}return this.s;};ZdcMap.prototype.mapZoomOut=function(gap,opt){if(this.s==this.zoomMin){return -1;}if(gap==null){gap=1;}if(opt==null){opt="zoom";}this.SetZoom(-1*gap,opt);this.ShowScaleInfo();if(this.ControlOpen){if(this.ZdcCtrObj.zoomlistopen){var y=73+(this.s-1)*13;this.ZdcCtrObj.scaleseldoc.style.top=y;if(this.ZdcCtrObj.type==3){this.ZdcCtrObj.scaleslitherdoc.style.top=y;}else{this.ZdcCtrObj.scaleslitherdoc.style.top=y-2;}}}if(this.ZdcUserZoomControl!=null){this.ZdcUserZoomControl.setSlitherPosition();}return this.s;};ZdcMap.prototype.saveMapLocation=function(){this.SavePoint.mx=this.mx;this.SavePoint.my=this.my;this.SavePoint.lon=this.lon;this.SavePoint.lat=this.lat;};ZdcMap.prototype.restoreMapLocation=function(){var p=new ZdcPoint(this.SavePoint.lon,this.SavePoint.lat);this.scrollToCenter(p);if(this.usermsgopenstatus){this.closeUserMsgWindow();}if(this.msgopenstatus){this.closeMsgWindow();}};ZdcMap.prototype.openUserMsgWindow=function(msgw,p,node,_1cb,opt){if(this.usermsgopenstatus){return -1;}if(msgw==null){return -1;}if(!this.ZdcMsgStatus){return -1;}this.ZdcUserMsgWindow=msgw;if(_1cb!=null){this.ZdcUserMsgWindow.msgoffset.x=_1cb.x;this.ZdcUserMsgWindow.msgoffset.y=_1cb.y;}if(node!=null){this.ZdcUserMsgWindow.textdoc.appendChild(node);}if(opt==null){opt=1;}switch(opt){case 1:default:this.ScrollUserMsgWindow(p);break;case 2:this.ScrollUserMsgToCenter(p);break;case 3:break;}this.ZdcMapClass.appendChild(msgw.doc);this.ZdcUserMsgWindow.Point=p;this.ZdcUserMsgWindow.msgpixel=this.convertPoint2Pixel(p);this.ZdcUserMsgWindow.doc.style.left=this.ZdcUserMsgWindow.msgpixel.x+this.ZdcUserMsgWindow.baseoffsetx+this.ZdcUserMsgWindow.msgoffset.x;this.ZdcUserMsgWindow.doc.style.top=this.ZdcUserMsgWindow.msgpixel.y+this.ZdcUserMsgWindow.baseoffsety+this.ZdcUserMsgWindow.msgoffset.y;this.ZdcUserMsgWindow.pMap=this;this.ZdcUserMsgWindow.doc.style.visibility="visible";this.usermsgopenstatus=true;this.ZdcUserMsgWindow.openstatus=true;if(this.mediamode=="print"){this.SetMsgPrintMode();}else{this.SetMsgScreenMode();}return 1;};ZdcMap.prototype.reflashUserMsgWindow=function(){if(this.usermsgopenstatus){if(this.ZdcUserMsgWindow.doc.style.visibility=="visible"){this.ZdcUserMsgWindow.msgpixel=this.convertPoint2Pixel(this.ZdcUserMsgWindow.Point);this.ZdcUserMsgWindow.doc.style.left=this.ZdcUserMsgWindow.msgpixel.x+this.ZdcUserMsgWindow.baseoffsetx+this.ZdcUserMsgWindow.msgoffset.x;this.ZdcUserMsgWindow.doc.style.top=this.ZdcUserMsgWindow.msgpixel.y+this.ZdcUserMsgWindow.baseoffsety+this.ZdcUserMsgWindow.msgoffset.y;}}};ZdcMap.prototype.closeUserMsgWindow=function(msgw){if(this.usermsgopenstatus){this.ZdcUserMsgWindow.doc.style.visibility="hidden";if(msgw!=null){this.ZdcMapClass.removeChild(msgw.doc);while(msgw.textdoc.lastChild!=null){msgw.textdoc.removeChild(msgw.textdoc.lastChild);}}else{this.ZdcMapClass.removeChild(this.ZdcUserMsgWindow.doc);while(this.ZdcUserMsgWindow.textdoc.lastChild!=null){this.ZdcUserMsgWindow.textdoc.removeChild(this.ZdcUserMsgWindow.textdoc.lastChild);}}this.usermsgopenstatus=false;this.ZdcUserMsgWindow.openstatus=false;}else{this.usermsgopenstatus=false;this.ZdcUserMsgWindow.openstatus=false;return -1;}};ZdcMap.prototype.ScrollUserMsgWindow=function(p){var box=this.getMapBoundBox();var _1d0=Math.floor((box.maxx-p.mx)/ZdcZoom.map_defw[this.s]);var _1d1=Math.floor((p.mx-box.minx)/ZdcZoom.map_defw[this.s]);var _1d2=Math.floor((box.maxy-p.my)/ZdcZoom.map_defh[this.s]);var scrx=0;var scry=0;if((_1d0)<Math.round(parseInt(this.ZdcUserMsgWindow.basedoc.style.width)/2)&&this.ZdcMapWpx>parseInt(this.ZdcUserMsgWindow.basedoc.style.width)){scrx=_1d0-Math.round(parseInt(this.ZdcUserMsgWindow.basedoc.style.width)/2)-this.ZdcUserMsgWindow.msgoffset.x-10;}if((_1d2-this.ZdcUserMsgWindow.msgoffset.y-25)<parseInt(this.ZdcUserMsgWindow.basedoc.style.height)&&this.ZdcMapHpx>parseInt(this.ZdcUserMsgWindow.basedoc.style.height)){scry=parseInt(this.ZdcUserMsgWindow.basedoc.style.height)-_1d2-this.ZdcUserMsgWindow.msgoffset.y+15;}if(_1d1<Math.round(parseInt(this.ZdcUserMsgWindow.basedoc.style.width)/2)&&this.ZdcMapWpx>parseInt(this.ZdcUserMsgWindow.basedoc.style.width)){scrx=Math.round(parseInt(this.ZdcUserMsgWindow.basedoc.style.width)/2)-_1d1+10;}if(!this.OnScroll&&(scrx!=0||scry!=0)){this.scrollMap(scrx,scry);return;}var _1d0=Math.floor((p.mx-box.minx)/ZdcZoom.map_defw[this.s]);var _1d2=Math.floor((p.my-box.miny)/ZdcZoom.map_defh[this.s]);if(_1d0<30&&this.ZdcMapWpx>300){scrx=50;}if(_1d2<30&&this.ZdcMapHpx>200){scry=-50;}if(!this.OnScroll&&(scrx!=0||scry!=0)){this.scrollMap(scrx,scry);return;}};ZdcMap.prototype.ScrollUserMsgToCenter=function(p){var w=Math.floor((this.mx-p.mx)/ZdcZoom.map_defw[this.s]);var h=Math.floor((p.my-this.my)/ZdcZoom.map_defh[this.s]);this.scrollMap(w,h);};ZdcMap.prototype.checkUserMsgWindow=function(){if(this.usermsgopenstatus){var p1=this.ZdcUserMsgWindow.Point;var w=Math.floor(parseInt(this.ZdcUserMsgWindow.basedoc.style.width)*ZdcZoom.map_defw[this.s]);var h=Math.floor(parseInt(this.ZdcUserMsgWindow.basedoc.style.height)*ZdcZoom.map_defh[this.s]);var p2=new ZdcPoint(p1.mx+w,p1.my+h,2);var _1dc=new ZdcBox(p1,p2);var _1dd=this.getMapBoundBox();return _1dd.isContainBox(_1dc);}else{return -1;}};ZdcMap.prototype.addZdcWait=function(wtop,_1df,str){this.ZdcMapClass.appendChild(this.ZdcWaitObj.doc);this.ZdcWaitpx=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+_1df;this.ZdcWaitpy=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+wtop;this.ZdcWaitObj.doc.style.left=this.ZdcWaitpx;this.ZdcWaitObj.doc.style.top=this.ZdcWaitpy;if(str!=null){this.ZdcWaitObj.showtxt=String(str);}return true;};ZdcMap.prototype.hiddenZdcWait=function(){this.ZdcWaitObj.backdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled='0' src='')";this.ZdcWaitObj.backdoc.innerHTML="";this.ZdcWaitObj.movedoc.innerHTML="";this.ZdcWaitObj.textdoc.innerHTML="";};ZdcMap.prototype.visibleZdcWait=function(){if(document.all){this.ZdcWaitObj.backdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcWaitObj.backdoc.image+")";this.ZdcWaitObj.backdoc.style.width=121;this.ZdcWaitObj.backdoc.style.height=31;this.ZdcWaitObj.backdoc.innerHTML="<IMG src="+this.ZdcWaitObj.backdoc.image+" style='display:none' />";}else{this.ZdcWaitObj.backdoc.innerHTML="<IMG src="+this.ZdcWaitObj.backdoc.image+" />";}this.ZdcWaitObj.movedoc.innerHTML="<IMG src="+this.ZdcWaitObj.movedoc.image+" />";this.ZdcWaitObj.textdoc.innerHTML="<span style='font-size:12px;font-family:monospace; color:#888888;'>"+String(this.ZdcWaitObj.showtxt)+"</span>";};ZdcMap.prototype.removeZdcWait=function(){this.ZdcMapClass.removeChild(this.ZdcWaitObj.doc);return;};ZdcMap.prototype.addUserControl=function(udoc,ctop,_1e3){if(this.ZdcUserControlOpen){return -1;}this.ZdcUserControl=udoc;this.ZdcMapClass.appendChild(this.ZdcUserControl.doc);this.ZdcUserControlpx=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+_1e3;this.ZdcUserControlpy=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+ctop;this.ZdcUserControl.doc.style.left=this.ZdcUserControlpx;this.ZdcUserControl.doc.style.top=this.ZdcUserControlpy;this.ZdcUserControlBaseleft=_1e3;this.ZdcUserControlBasetop=ctop;this.ZdcUserControl.pMap=this;this.ZdcUserControlOpen=true;return 1;};ZdcMap.prototype.removeUserControl=function(){if(this.ZdcUserControlOpen){if(this.ZdcMapClass.removeChild(this.ZdcUserControl.doc)){this.ZdcUserControlOpen=false;return 1;}}else{return -1;}};ZdcMap.prototype.addUserZoomControl=function(udoc,ztop,_1e6){if(this.ZdcUserZoomControlOpen){return -1;}this.ZdcUserZoomControl=udoc;this.ZdcMapClass.appendChild(this.ZdcUserZoomControl.doc);this.ZdcUserZoomControlpx=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+_1e6;this.ZdcUserZoomControlpy=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+ztop;this.ZdcUserZoomControl.doc.style.left=this.ZdcUserZoomControlpx;this.ZdcUserZoomControl.doc.style.top=this.ZdcUserZoomControlpy;this.ZdcUserZoomControlBaseleft=_1e6;this.ZdcUserZoomControlBasetop=ztop;this.ZdcUserZoomControl.pMap=this;this.ZdcUserZoomControlOpen=true;if(udoc.doctooltip){this.ZdcMapClass.appendChild(udoc.doctooltip);udoc.doctooltip.style.left=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+_1e6-udoc.tooltipsize.width;var h=parseInt(this.ZdcUserZoomControl.basedoc.style.height);udoc.doctooltip.style.top=this.ZdcUserZoomControlpy+(h-udoc.tooltipsize.height)/2;}return 1;};ZdcMap.prototype.removeUserZoomControl=function(){if(this.ZdcUserZoomControlOpen){if(this.ZdcMapClass.removeChild(this.ZdcUserZoomControl.doc)){this.ZdcUserZoomControlOpen=false;return 1;}if(this.ZdcUserZoomControl.doctooltip){this.ZdcMapClass.removeChild(this.ZdcUserZoomControl.doctooltip);}}else{return -1;}};ZdcMap.prototype.addMapControl=function(cdoc,x,y){if(this.ControlOpen){return -1;}else{this.ZdcCtrObj=cdoc;if(x!=null&&y!=null){this.ZdcMapControlpx.x=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+x;this.ZdcMapControlpx.y=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+y;}cdoc.pMap=this;this.SetControlOnMap();this.ControlOpen=true;return 1;}};ZdcMap.prototype.removeMapControl=function(){if(this.ControlOpen){this.ZdcMapClass.removeChild(this.ZdcCtrObj.doc);this.ControlOpen=false;return 1;}else{return -1;}};ZdcMap.prototype.addMapScaleBar=function(sdoc,x,y){if(this.ScaleBarOpen){return -1;}else{if(x!=null&&y!=null){this.ZdcScaleBarpx.x=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+x;this.ZdcScaleBarpx.y=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+y;}this.ZdcScaleBarObj=sdoc;sdoc.pMap=this;this.SetMapScaleOnMap();this.ScaleBarOpen=true;return 1;}};ZdcMap.prototype.removeMapScaleBar=function(){if(this.ScaleBarOpen){this.ZdcMapClass.removeChild(this.ZdcScaleBarObj.doc1);this.ZdcMapClass.removeChild(this.ZdcScaleBarObj.doc2);this.ScaleBarOpen=false;return 1;}else{return -1;}};ZdcMap.prototype.addMapCenter=function(cdoc){if(this.CenterOpen){return -1;}else{this.ZdcCenterObj=cdoc;cdoc.pMap=this;this.SetMapCenterOnMap();this.CenterOpen=true;return 1;}};ZdcMap.prototype.removeMapCenter=function(){if(this.CenterOpen){this.ZdcMapClass.removeChild(this.ZdcCenterObj.doc);this.CenterOpen=false;return 1;}else{return -1;}};ZdcMap.prototype.addMapCenterInfoBox=function(cdoc,x,y){if(this.CenterInfoBoxOpen){return -1;}else{if(x!=null&&y!=null){this.ZdcMapCenterInfopx.x=this.ZdcMapCenterpx.x-Math.floor(this.ZdcMapWpx/2)+x;this.ZdcMapCenterInfopx.y=this.ZdcMapCenterpx.y-Math.floor(this.ZdcMapHpx/2)+y;}this.ZdcCenterInfoObj=cdoc;cdoc.pMap=this;this.SetMapCenterInfoOnMap();this.CenterInfoBoxOpen=true;this.ShowScaleInfo();return 1;}};ZdcMap.prototype.removeMapCenterInfoBox=function(){if(this.CenterInfoBoxOpen){this.ZdcMapClass.removeChild(this.ZdcCenterInfoObj.doc1);this.ZdcMapClass.removeChild(this.ZdcCenterInfoObj.doc2);this.CenterInfoBoxOpen=false;return 1;}else{return -1;}};ZdcMap.prototype.reflashMsgWindow=function(){if(!this.msgopenstatus){return -1;}this.ZdcMsgWindowObj.Pixel=this.convertPoint2Pixel(this.ZdcMsgWindowObj.Point);this.ZdcMsgWindowObj.doc.style.left=parseInt(this.ZdcMsgWindowObj.Pixel.x)+parseInt(this.ZdcMsgWindowObj.msgoffset.x);this.ZdcMsgWindowObj.doc.style.top=parseInt(this.ZdcMsgWindowObj.Pixel.y)+parseInt(this.ZdcMsgWindowObj.msgoffset.y);};ZdcMap.prototype.createMsgWindow=function(t){if(0<=t&&t<19){this.ZdcMsgWindowObj=new ZdcMsgWindow(t);this.ZdcMsgWindowObj.doc.style.position="absolute";}else{this.ZdcMsgWindowObj=new ZdcMsgWindow();this.ZdcMsgWindowObj.doc.style.position="absolute";}};ZdcMap.prototype.openMsgWindow=function(p,_1f4,node,ofxy,opt1,opt2){if(this.msgopenstatus){return -1;}else{if(this.ZdcMsgStatus){if(this.ZdcMsgWindowObj==null){this.ZdcMsgWindowObj=new ZdcMsgWindow();this.ZdcMsgWindowObj.doc.style.position="absolute";}if(p!=null){this.ZdcMsgWindowObj.Point=new ZdcPoint(p.mx,p.my,2);}if(_1f4!=null){this.ZdcMsgWindowObj.title=_1f4;}if(node!=null){this.ZdcMsgWindowObj.node=node;}if(opt1!=null){this.ZdcMsgWindowObj.largeonly=opt1;if(opt1){this.ZdcMsgWindowObj.largeopen=opt1;}}if(ofxy!=null){this.ZdcMsgWindowObj.msgoffset=ofxy;}this.ZdcMsgWindowObj.pMap=this;this.SetMsgWindowOnMap();this.msgopenstatus=true;this.ZdcMsgWindowObj.openstatus=true;if(opt2==null){opt2=1;}switch(opt2){case 1:default:this.ScrollMsgWindow(p);break;case 2:this.ScrollMsgWindowToCenter(p);break;case 3:break;}if(this.mediamode=="print"){this.SetMsgPrintMode();}else{this.SetMsgScreenMode();}}return 1;}};ZdcMap.prototype.ScrollMsgWindow=function(p){var box=this.getMapBoundBox();var _1fb=Math.floor((box.maxx-p.mx)/ZdcZoom.map_defw[this.s]);var _1fc=Math.floor((box.maxy-p.my)/ZdcZoom.map_defh[this.s]);var scrx=0;var scry=0;if((_1fb-this.ZdcMsgWindowObj.msgoffset.x)<240&&this.ZdcMapWpx>250){scrx=_1fb-240-this.ZdcMsgWindowObj.msgoffset.x;}if((_1fc-this.ZdcMsgWindowObj.msgoffset.y)<160&&this.ZdcMapHpx>170){scry=160-_1fc-this.ZdcMsgWindowObj.msgoffset.y;}if(!this.OnScroll&&(scrx!=0||scry!=0)){this.scrollMap(scrx,scry);return;}var _1fb=Math.floor((p.mx-box.minx)/ZdcZoom.map_defw[this.s]);var _1fc=Math.floor((p.my-box.miny)/ZdcZoom.map_defh[this.s]);if(_1fb<30&&this.ZdcMapWpx>300){scrx=50;}if(_1fc<30&&this.ZdcMapHpx>200){scry=-50;}if(!this.OnScroll&&(scrx!=0||scry!=0)){this.scrollMap(scrx,scry);return;}};ZdcMap.prototype.closeMsgWindow=function(){if(this.msgopenstatus){this.ZdcMsgWindowObj.hiddenMsg();this.ZdcMapClass.removeChild(this.ZdcMsgWindowObj.doc);this.msgopenstatus=false;this.ZdcMsgWindowObj.openstatus=false;if(ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOnDrag();}return 1;}else{return -1;}};ZdcMap.prototype.ScrollMsgWindowToCenter=function(p){var w=Math.floor((this.mx-p.mx)/ZdcZoom.map_defw[this.s]);var h=Math.floor((p.my-this.my)/ZdcZoom.map_defh[this.s]);this.scrollMap(w,h);};ZdcMap.prototype.checkMsgWindow=function(){if(this.msgopenstatus){var p1=this.ZdcMsgWindowObj.Point;var w=Math.floor(parseInt(this.ZdcMsgWindowObj.doclarge.style.width)*ZdcZoom.map_defw[this.s]);var h=Math.floor(parseInt(this.ZdcMsgWindowObj.doclarge.style.height)*ZdcZoom.map_defh[this.s]);var p2=new ZdcPoint(p1.mx+w,p1.my+h,2);var _206=new ZdcBox(p1,p2);var _207=this.getMapBoundBox();return _207.isContainBox(_206);}else{return -1;}};ZdcMap.prototype.scrollToCenter=function(p){if(this.getMapBoundBox().isContainPoint(p)){var _209=Math.round((this.mx-p.mx)/ZdcZoom.map_defw[this.s]);var _20a=Math.round((p.my-this.my)/ZdcZoom.map_defh[this.s]);this.scrollMap(_209,_20a,p);}else{this.SetMapLocationAndScale(p.mx,p.my,this.s);}return;};ZdcMap.prototype.convertPoint2Pixel=function(p,opt){if(opt==null){opt=1;}if(opt==1){var _20d=Math.round((p.mx-this.mx)/ZdcZoom.map_defw[this.s]);var _20e=Math.round((p.my-this.my)/ZdcZoom.map_defh[this.s]);var pxy=new ZdcPixel();pxy.x=this.ZdcMapCenterpx.x+_20d;pxy.y=this.ZdcMapCenterpx.y-_20e;return pxy;}else{if(opt==2){var _20d=Math.round((p.mx-this.mx)/ZdcZoom.map_defw[this.s]);var _20e=Math.round((p.my-this.my)/ZdcZoom.map_defh[this.s]);var pxy=new ZdcPixel();pxy.x=Math.round(this.ZdcMapWpx/2)+_20d;pxy.y=Math.round(this.ZdcMapHpx/2)-_20e;return pxy;}}};ZdcMap.prototype.convertPixel2Point=function(p,opt){if(opt==null){opt=1;}if(opt==1){distpw=Math.round((p.x-this.ZdcMapCenterpx.x)*ZdcZoom.map_defw[this.s]);distph=Math.round((p.y-this.ZdcMapCenterpx.y)*ZdcZoom.map_defh[this.s]);var pmxy=new ZdcPoint();pmxy.mx=this.mx+distpw;pmxy.my=this.my-distph;var pts=ZdcCommon.ConvertMSXY2LL(pmxy.mx,pmxy.my,1);return pts;}else{if(opt==2){distpw=Math.round((p.x-this.ZdcMapWpx/2)*ZdcZoom.map_defw[this.s]);distph=Math.round((p.y-this.ZdcMapHpx/2)*ZdcZoom.map_defh[this.s]);var pmxy=new ZdcPoint();pmxy.mx=this.mx+distpw;pmxy.my=this.my-distph;var pts=ZdcCommon.ConvertMSXY2LL(pmxy.mx,pmxy.my,1);return pts;}}};ZdcMap.prototype.checkLayerBoxById=function(id){var i=-1;for(var k=0;k<this.ZdcUserLayers.length;k++){if(this.ZdcUserLayers[k].layerID==id){i=k;break;}}if(i!=-1){return this.ZdcUserLayers[i].boundBox.isContainBox(this.getMapBoundBox());}else{return 0;}};ZdcMap.prototype.SetLayerBoundBox=function(lyr){if(lyr!=null){var px1=new ZdcPixel(0,lyr.canvasHeight);var px2=new ZdcPixel(lyr.canvasWidth,0);var ptx1=this.mx-Math.round((this.ZdcMapCenterpx.x-px1.x)*ZdcZoom.map_defw[this.s]);var pty1=this.my-Math.round((px1.y-this.ZdcMapCenterpx.y)*ZdcZoom.map_defh[this.s]);var ptx2=this.mx+Math.round((px2.x-this.ZdcMapCenterpx.x)*ZdcZoom.map_defw[this.s]);var pty2=this.my+Math.round((this.ZdcMapCenterpx.y-px2.y)*ZdcZoom.map_defh[this.s]);var pt1=new ZdcPoint(ptx1,pty1,2);var pt2=new ZdcPoint(ptx2,pty2,2);lyr.boundBox=new ZdcBox(pt1,pt2);}};ZdcMap.prototype.addUserLayer=function(lyr){var l=-1;if(lyr.layerID!=-1){return lyr.layerID;}lyr.layerID=0;for(var k=0;k<this.ZdcUserLayers.length;k++){if(this.ZdcUserLayers[k].layerID+1>lyr.layerID){lyr.layerID=this.ZdcUserLayers[k].layerID+1;}}var k=this.ZdcUserLayers.length;this.ZdcUserLayers[k]=lyr;this.ZdcMapClass.appendChild(this.ZdcUserLayers[k].doc);this.ZdcUserLayers[k].addmapstatus=true;this.ZdcUserLayers[k].doc.style.left=0;this.ZdcUserLayers[k].doc.style.top=0;this.ZdcUserLayers[k].doc.style.zIndex=3000+k;if(this.ZdcUserLayers[k].markers.length>0){this.InitUserLayerMarker(lyr.layerID);}this.SetLayerBoundBox(this.ZdcUserLayers[k]);this.ZdcUserLayers[k].pMap=this;ZdcEvent.trigger(this,"adduserlayer");return lyr.layerID;};ZdcMap.prototype.removeUserLayer=function(lyr){return this.removeUserLayerById(lyr.layerID);};ZdcMap.prototype.removeUserLayerById=function(id){var lyr=null;for(var k=0;k<this.ZdcUserLayers.length;k++){if(this.ZdcUserLayers[k].layerID==id){lyr=this.ZdcUserLayers[k];break;}}if(!lyr){return -1;}if(this.ZdcUserLayers[k].markers.length>0){this.ClearUserLayerMarker(this.ZdcUserLayers[k].layerID);}if(this.ZdcUserLayers[k].addmapstatus){this.ZdcMapClass.removeChild(this.ZdcUserLayers[k].doc);this.ZdcUserLayers[k].addmapstatus=false;}this.ZdcUserLayers[k].layerID=-1;this.ZdcUserLayers[k]=null;var _227=this.ZdcUserLayers;this.ZdcUserLayers=new Array();for(var k=0;k<_227.length;k++){if(_227[k]){this.ZdcUserLayers[this.ZdcUserLayers.length]=_227[k];}}_227=null;ZdcEvent.trigger(this,"removeuserlayer");return 1;};ZdcMap.prototype.clearUserLayer=function(){if(this.ZdcUserLayers.length==0){return -1;}for(var i=0;i<this.ZdcUserLayers.length;i++){if(this.ZdcUserLayers[i].addmapstatus){if(this.ZdcUserLayers[i].markers.length>0){this.ClearUserLayerMarker(this.ZdcUserLayers[i].layerID);}this.ZdcMapClass.removeChild(this.ZdcUserLayers[i].doc);this.ZdcUserLayers[i].addmapstatus=false;this.ZdcUserLayers[i].status=false;this.ZdcUserLayers[i].layerID=-1;}}ZdcEvent.trigger(this,"clearuserlayer");return 1;};ZdcMap.prototype.getUserLayerById=function(id){for(var i=0;i<this.ZdcUserLayers.length;i++){if(this.ZdcUserLayers[i].layerID==id&&this.ZdcUserLayers[i].addmapstatus==true){return this.ZdcUserLayers[i].doc;}}return null;};ZdcMap.prototype.MouseOverMarker=function(){var ox=Math.round(this.ZdcMapWpx/2);var oy=Math.round(this.ZdcMapHpx/2);for(var j=this.ZdcUserLayers.length-1;j>=0;j--){for(var i=this.ZdcUserLayers[j].markers.length-1;i>=0;i--){if(this.ZdcUserLayers[j].markers[i]!=null){this.markerworkpixel1.x=ox-Math.round((this.mx-this.ZdcUserLayers[j].markers[i].Point.mx)/ZdcZoom.map_defw[this.s])+this.ZdcUserLayers[j].markers[i].icon.offset.x;this.markerworkpixel1.y=oy-Math.round((this.ZdcUserLayers[j].markers[i].Point.my-this.my)/ZdcZoom.map_defh[this.s])+this.ZdcUserLayers[j].markers[i].icon.offset.y;this.markerworkpixel2.x=this.markerworkpixel1.x+parseInt(this.ZdcUserLayers[j].markers[i].icondoc.style.width);this.markerworkpixel2.y=this.markerworkpixel1.y+parseInt(this.ZdcUserLayers[j].markers[i].icondoc.style.height);this.markerworkbox.pxl1=this.markerworkpixel1;this.markerworkbox.pxl2=this.markerworkpixel2;if(this.markerworkbox.isContainPixel(this.MouseMoveX,this.MouseMoveY)){this.ClickUserLayerId=j;this.ClickMarkerId=i;return;break;}}}}return 0;};ZdcMap.prototype.dragOn=function(){this.ZdcDragStatus=true;};ZdcMap.prototype.dragOff=function(){this.ZdcDragStatus=false;};ZdcMap.prototype.getDragStatus=function(){return this.ZdcDragStatus;};ZdcMap.prototype.msgOn=function(){this.ZdcMsgStatus=true;};ZdcMap.prototype.msgOff=function(){this.ZdcMsgStatus=false;};ZdcMap.prototype.getMsgStatus=function(){return this.ZdcMsgStatus;};ZdcMap.prototype.getUserMsgOpenStatus=function(){return this.usermsgopenstatus;};ZdcMap.prototype.getMsgOpenStatus=function(){return this.msgopenstatus;};ZdcMap.prototype.MouseClick=function(_22f){var p=ZdcEvent.GetEventPosition(_22f,this.ZdcMapBase);var x=p.x;var y=p.y;var dr=ZdcEvent.GetDivClientRect(this.ZdcMapBase);var _234=x-Math.floor(dr.x/2);var _235=Math.floor(dr.y/2)-y;var mx=Math.round(_234*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.round(_235*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseClickX=x;this.MouseClickY=y;this.MouseCLon=pt.lon;this.MouseCLat=pt.lat;this.MouseCx=mx;this.MouseCy=my;this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;this.ClickUserLayerId=-1;this.ClickMarkerId=-1;this.MouseOverMarker();if(this.ClickUserLayerId!=-1&&this.ClickMarkerId!=-1){ZdcEvent.trigger(this.ZdcUserLayers[this.ClickUserLayerId].markers[this.ClickMarkerId],"mouseclickmarker");}ZdcEvent.trigger(this,"clickmap");if(!this.ZdcDragStatus){ZdcEvent.trigger(this,"clickmapnodrag");}};ZdcMap.prototype.MouseMove=function(_239){if(ZdcDrag.IsDragging()){ZdcEvent.trigger(this,"dragmap");return false;}var p=ZdcEvent.GetEventPosition(_239,this.ZdcMapBase);var x=p.x;var y=p.y;var dr=ZdcEvent.GetDivClientRect(this.ZdcMapBase);var _23e=x-Math.floor(dr.x/2);var _23f=Math.floor(dr.y/2)-y;var mx=Math.round(_23e*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.round(_23f*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;ZdcEvent.trigger(this,"mousemove");return false;};ZdcMap.prototype.MouseOver=function(){ZdcEvent.trigger(this,"mouseovermap");};ZdcMap.prototype.MouseOut=function(){ZdcEvent.trigger(this,"mouseoutmap");};ZdcMap.prototype.MouseDown=function(_243){var p=ZdcEvent.GetEventPosition(_243,this.ZdcMapBase);var x=p.x;var y=p.y;var dr=ZdcEvent.GetDivClientRect(this.ZdcMapBase);var _248=x-Math.floor(dr.x/2);var _249=Math.floor(dr.y/2)-y;var mx=Math.round(_248*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.round(_249*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseClickX=x;this.MouseClickY=y;this.MouseCLon=pt.lon;this.MouseCLat=pt.lat;this.MouseCx=mx;this.MouseCy=my;this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;this.ClickUserLayerId=-1;this.ClickMarkerId=-1;this.MouseOverMarker();if(this.ClickUserLayerId!=-1&&this.ClickMarkerId!=-1){ZdcEvent.trigger(this.ZdcUserLayers[this.ClickUserLayerId].markers[this.ClickMarkerId],"mouseclickmarker");return false;}if(this.ZdcDragStatus){ZdcEvent.trigger(this,"dragmapstart");if(this.msgopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOnDrag();}if(this.htmlopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.ZdcMsgHtml.doc.style.visibility="hidden";this.ZdcMsgHtml.shddoc.style.visibility="hidden";}if(this.mousecursor=="hand"){this.ZdcMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"),pointer";if(ZdcCommon.UserAgentIsSafari()){this.ZdcMapClass.style.cursor="move";}}else{if(document.all){this.ZdcMapClass.style.cursor="all-scroll";}else{this.ZdcMapClass.style.cursor="move";}}this.MaddX=0;this.MaddY=0;if(this.ZdcDragOx==0&&this.ZdcDragOy==0){this.ZdcDragOx=_243.screenX;this.ZdcDragOy=_243.screenY;}this.ZdcDragMx=_243.screenX;this.ZdcDragMy=_243.screenY;this.ZdcDragEx=_243.screenX;this.ZdcDragEy=_243.screenY;var now=new Date();this.ZdcDragTime=now.getTime();ZdcDrag.StartDragging(this,this.DraggingMap.bindAsEventListener(this),this.DraggingMapEnd.bindAsEventListener(this));}else{ZdcEvent.trigger(this,"mousedownmap");}return false;};ZdcMap.prototype.MouseUp=function(_24e){if(ZdcDrag.IsDragging()){return false;}else{ZdcEvent.trigger(this,"mouseupmap");}return false;};ZdcMap.prototype.MouseDblClick=function(_24f){if(this.OnScroll){return;}var p=ZdcEvent.GetEventPosition(_24f,this.ZdcMapBase);var x=p.x;var y=p.y;var d=ZdcEvent.GetDivClientRect(this.ZdcMapBase);var _254=x-Math.floor(d.x/2);var _255=Math.floor(d.y/2)-y;var mx=Math.round(_254*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.round(_255*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseClickX=x;this.MouseClickY=y;this.MouseCLon=pt.lon;this.MouseCLat=pt.lat;this.MouseCx=mx;this.MouseCy=my;this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;_254=Math.floor(d.x/2)-x;_255=Math.floor(d.y/2)-y;if(this.ZdcDragStatus){this.scrollMap(_254,_255);}ZdcEvent.trigger(this,"dblclickend");return;};ZdcMap.prototype.DraggingMap=function(e){var now=new Date();var _25b=now.getTime();var _25c=Math.abs(this.ZdcDragTime-_25b);this.ZdcDragTime=_25b;if(document.all){this.ZdcDragMx=event.screenX;this.ZdcDragMy=event.screenY;}else{if(e){this.ZdcDragMx=e.screenX;this.ZdcDragMy=e.screenY;}}var _25d;if(_25c>15){_25d=1;}if(_25c<=15&&_25c>12){_25d=32;}if(_25c<=12&&_25c>10){_25d=64;}if(_25c<=10&&_25c>8){_25d=128;}if(_25c<=8&&_25c>5){_25d=356;}if(_25c<=5&&_25c>3){_25d=368;}if(_25c<=3){_25d=512;}if(Math.abs(this.ZdcDragEx-this.ZdcDragMx)>_25d||Math.abs(this.ZdcDragEy-this.ZdcDragMy)>_25d){var sX=this.ZdcDragMx-this.ZdcDragEx;var sY=this.ZdcDragMy-this.ZdcDragEy;this.ZdcDragEx=this.ZdcDragMx;this.ZdcDragEy=this.ZdcDragMy;this.OnScroll=true;this.MoveMapByXY(sX,sY);this.OnScroll=false;this.MaddX=this.MaddX+sX;this.MaddY=this.MaddY+sY;if(Math.abs(this.MaddX)>(this.ZdcTileWpx)||Math.abs(this.MaddY)>(this.ZdcTileHpx)){this.MaddX=0;this.MaddY=0;this.ZdcMoveX=this.ZdcDragEx-this.ZdcDragOx;this.ZdcMoveY=this.ZdcDragEy-this.ZdcDragOy;this.CountScr=this.CountScrMax;this.ReSetMapBase();this.ZdcDragOx=this.ZdcDragEx;this.ZdcDragOy=this.ZdcDragEy;}this.DraggingMap();}return false;};ZdcMap.prototype.DraggingMapEnd=function(e){ZdcDrag.ClearDraging();if(document.all){this.ZdcDragMx=event.screenX;this.ZdcDragMy=event.screenY;}else{if(e){this.ZdcDragMx=e.screenX;this.ZdcDragMy=e.screenY;}else{return;}}var sX=this.ZdcDragMx-this.ZdcDragEx;var sY=this.ZdcDragMy-this.ZdcDragEy;this.ZdcDragEx=this.ZdcDragMx;this.ZdcDragEy=this.ZdcDragMy;this.MoveMapByXY(sX,sY);this.ZdcMoveX=this.ZdcDragEx-this.ZdcDragOx;this.ZdcMoveY=this.ZdcDragEy-this.ZdcDragOy;this.CountScr=this.CountScrMax;this.ReSetMapBase();if(this.mousecursor=="hand"){if(ZdcCommon.UserAgentIsFireFox()){this.ZdcMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}else{this.ZdcMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}}else{this.ZdcMapClass.style.cursor="default";}this.RedrawRouteLayer();this.UpdateShapeLayer();if(this.ZdcDragOx!=this.ZdcDragEx||this.ZdcDragOy!=this.ZdcDragEy){this.ZdcMapAccessLog("DragMap");ZdcEvent.trigger(this,"dragmapend");if(this.msgopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.SetMsgWindowOffDrag();}if(this.htmlopenstatus&&ZdcCommon.UserAgentIsFireFox()){this.ZdcMsgHtml.doc.style.visibility="visible";this.ZdcMsgHtml.shddoc.style.visibility="visible";}}else{ZdcEvent.trigger(this,"clickmapnodrag");}this.ZdcDragOx=0;this.ZdcDragOy=0;return false;};ZdcMap.prototype.getMousePoint=function(){var p=new ZdcPoint(this.MouseLon,this.MouseLat);return p;};ZdcMap.prototype.ZdcMapAccessLog=function(txt){var _265=this.ZdcMapAccess+txt+"_lon"+this.mx+"_lat"+this.my+"_scale"+this.s+"_mtype"+this.ZdcMapType+"&opt="+ZdcCommon.ZDC_OPT;return;};ZdcMap.prototype.getMousePixel=function(){var p=new ZdcPixel(this.MouseMoveX,this.MouseMoveY);return p;};ZdcMap.prototype.GetImageUrl=function(_267,_268,zoom){function FloatToInt(a){var b=1;if(a<0){b=-1;}return b*Math.floor(Math.abs(a));}G_LevelToTreeLevel=new Array();G_LevelToTreeLevel[18]=3;G_LevelToTreeLevel[17]=3;G_LevelToTreeLevel[16]=3;G_LevelToTreeLevel[15]=2;G_LevelToTreeLevel[14]=2;G_LevelToTreeLevel[13]=2;G_LevelToTreeLevel[12]=2;G_LevelToTreeLevel[11]=2;G_LevelToTreeLevel[10]=2;G_LevelToTreeLevel[9]=1;G_LevelToTreeLevel[8]=1;G_LevelToTreeLevel[7]=1;G_LevelToTreeLevel[6]=1;G_LevelToTreeLevel[5]=0;G_LevelToTreeLevel[4]=0;G_LevelToTreeLevel[3]=0;G_LevelToTreeLevel[2]=0;G_LevelToTreeLevel[1]=0;var _26c,sMeshY;_26c=String(_267);sMeshY=String(_268);if(ZdcCommon.StrCmp(_26c.substr(0,1),"m")==0){var msw=_26c.substr(1,ZdcCommon.StrLen(_26c)-1);_26c=(-1)*msw;}if(ZdcCommon.StrCmp(sMeshY.substr(0,1),"m")==0){var msh=sMeshY.substr(1,ZdcCommon.StrLen(sMeshY)-1);sMeshY=(-1)*msh;}var _26f=new Number(_26c);var _270=new Number(sMeshY);var nX=FloatToInt(ZdcZoom.OX+(_26f+0.5)*ZdcZoom.PX*ZdcZoom.map_defw[zoom]);var nY=FloatToInt(ZdcZoom.OY+(_270+0.5)*ZdcZoom.PY*(ZdcZoom.map_defh[zoom]));var nX1=FloatToInt(nX/3600/1000-100);nX-=FloatToInt((100+nX1)*3600*1000);var nX2=FloatToInt(nX*8/3600/1000);nX-=FloatToInt(nX2*3600*1000/8);var nX3=FloatToInt(nX*8*10/3600/1000);var nY1=FloatToInt(nY*3/2/3600/1000);nY-=FloatToInt(nY1*3600*1000*2/3);var nY2=FloatToInt(nY*3*8/2/3600/1000);nY-=FloatToInt(nY2*2*3600*1000/3/8);var nY3=FloatToInt(nY*3*8*10/2/3600/1000);var _279=""+nY1+nX1+nY2+nX2+nY3+nX3;var _27a=G_LevelToTreeLevel[zoom];var _27b=this.ZdcMapTypeObj.server[this.ZdcMapType]+zoom;if(_27a>0){_27b+="/"+_279.substr(0,4);if(_27a>1){_27b+="/"+_279.substr(4,2);if(_27a>2){_27b+="/"+_279.substr(6,2);}}}_27b+="/";_27b=_27b+zoom+"_"+_267+"_"+_268+"."+this.ZdcMapTypeObj.ext[this.ZdcMapType];return _27b;};ZdcMap.prototype.SetMsgPrintMode=function(){if(this.msgopenstatus){this.ZdcMsgWindowObj.doclarge.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled = '0' src='')";this.ZdcMsgWindowObj.doclarge.innerHTML="<IMG src="+this.ZdcMsgWindowObj.LargePrintImage+" />";this.ZdcMsgWindowObj.docsmall.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled = '0' src='')";this.ZdcMsgWindowObj.docsmall.innerHTML="<IMG src="+this.ZdcMsgWindowObj.SmallPrintImage+" />";}if(this.usermsgopenstatus){this.ZdcUserMsgWindow.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled = '0' src='')";this.ZdcUserMsgWindow.basedoc.innerHTML="<IMG src="+this.ZdcUserMsgWindow.printimage+" />";this.ZdcUserMsgWindow.shadowdoc.style.visibility="hidden";}if(this.htmlopenstatus){this.ZdcMsgHtml.docbarrow.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled = '0' src='')";this.ZdcMsgHtml.docbarrow.innerHTML="<IMG src="+this.ZdcMsgHtml.docbarrow.pntimg+">";this.ZdcMsgHtml.shddoc.style.visibility="hidden";}};ZdcMap.prototype.SetMsgScreenMode=function(){if(this.msgopenstatus){if(document.all){this.ZdcMsgWindowObj.doclarge.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcMsgWindowObj.LargeImage+" Enabled = '1')";this.ZdcMsgWindowObj.doclarge.innerHTML="<IMG src="+this.ZdcMsgWindowObj.LargeImage+" style='display:none'/>";this.ZdcMsgWindowObj.docsmall.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcMsgWindowObj.SmallImage+" Enabled = '1' )";this.ZdcMsgWindowObj.docsmall.innerHTML="<IMG src="+this.ZdcMsgWindowObj.SmallImage+" style='display:none'/>";}else{this.ZdcMsgWindowObj.doclarge.innerHTML="<IMG src="+this.ZdcMsgWindowObj.LargeImage+" />";this.ZdcMsgWindowObj.docsmall.innerHTML="<IMG src="+this.ZdcMsgWindowObj.SmallImage+" />";}}if(this.usermsgopenstatus){this.ZdcUserMsgWindow.basedoc.innerHTML="<IMG src="+this.ZdcUserMsgWindow.baseimage+" />";this.ZdcUserMsgWindow.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcUserMsgWindow.baseimage+" Enabled = '1')";if(document.all){this.ZdcUserMsgWindow.basedoc.innerHTML="<IMG src="+this.ZdcUserMsgWindow.baseimage+"  style='display:none' />";}else{this.ZdcUserMsgWindow.basedoc.innerHTML="<IMG src="+this.ZdcUserMsgWindow.baseimage+" />";}this.ZdcUserMsgWindow.shadowdoc.style.visibility="visible";}if(this.htmlopenstatus){if(document.all){this.ZdcMsgHtml.docbarrow.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.ZdcMsgHtml.docbarrow.img+"')";this.ZdcMsgHtml.docbarrow.innerHTML="<IMG src="+this.ZdcMsgHtml.docbarrow.img+" style='display:none' />";}else{this.ZdcMsgHtml.docbarrow.innerHTML="<IMG src="+this.ZdcMsgHtml.docbarrow.img+">";}this.ZdcMsgHtml.shddoc.style.visibility="visible";}};ZdcMap.prototype.setPrintMode=function(){this.mediamode="print";this.SetMsgPrintMode();for(var i=0;i<this.ZdcUserLayers.length;i++){if(this.ZdcUserLayers[i].addmapstatus){for(var j=0;j<this.ZdcUserLayers[i].markers.length;j++){if(this.ZdcUserLayers[i].markers[j].icon.printimage!=null){if(!this.ZdcUserLayers[i].markers[j].icongif){this.ZdcUserLayers[i].markers[j].icondoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled='0' src='')";}this.ZdcUserLayers[i].markers[j].icondoc.innerHTML="<IMG src="+this.ZdcUserLayers[i].markers[j].icon.printimage+" />";}this.ZdcUserLayers[i].markers[j].shadowdoc.style.visibility="hidden";}}}if(this.CenterInfoBoxOpen){this.ZdcCenterInfoObj.doc1.style.filter="alpha(opacity=100)";this.ZdcCenterInfoObj.doc1.style.mozOpacity=100/100;this.ZdcCenterInfoObj.doc1.style.opacity=100/100;}if(this.ScaleBarOpen){if(this.ZdcScaleBarObj.type==1||this.ZdcScaleBarObj.type==9){if(this.ZdcScaleBarObj.type==1){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".gif"+">";}else{this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(Enabled='0' src='')";if(this.s<10){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"pr_0"+this.s+".gif"+">";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"pr_"+this.s+".gif"+">";}}this.ZdcScaleBarObj.doc1.style.filter="alpha(opacity=100)";this.ZdcScaleBarObj.doc1.style.mozOpacity=100/100;this.ZdcScaleBarObj.doc1.style.opacity=100/100;}}if(this.CenterOpen){if(document.all){this.ZdcCenterObj.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcCenterObj.image+" Enabled ='0')";}this.ZdcCenterObj.doc.innerHTML="<IMG src="+this.ZdcCenterObj.printimage+">";}if(this.ControlOpen){if(this.ZdcCtrObj.type==1){this.ZdcCtrObj.doc.style.width="";this.ZdcCtrObj.doc.style.height="";this.ZdcCtrObj.doc.style.filter="";this.ZdcCtrObj.doc.style.mozOpacity="";this.ZdcCtrObj.doc.style.opacity="";}}if(this.ZdcMapType==9){this.SetCopyrightOnMap();}if(!document.all){this.ZdcTransparent.style.visibility="hidden";}};ZdcMap.prototype.setScreenMode=function(){this.mediamode="screen";this.SetMsgScreenMode();for(var i=0;i<this.ZdcUserLayers.length;i++){if(this.ZdcUserLayers[i].addmapstatus){for(var j=0;j<this.ZdcUserLayers[i].markers.length;j++){if(this.ZdcUserLayers[i].markers[j].icon.printimage!=null){if(document.all){if(!this.ZdcUserLayers[i].markers[j].icongif){this.ZdcUserLayers[i].markers[j].icondoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcUserLayers[i].markers[j].icon.image+" Enabled='1' )";this.ZdcUserLayers[i].markers[j].icondoc.innerHTML="<IMG src="+this.ZdcUserLayers[i].markers[j].icon.image+" style='display:none' />";}else{this.ZdcUserLayers[i].markers[j].icondoc.innerHTML="<IMG src="+this.ZdcUserLayers[i].markers[j].icon.image+" />";}}else{this.ZdcUserLayers[i].markers[j].icondoc.innerHTML="<IMG src="+this.ZdcUserLayers[i].markers[j].icon.image+" />";}}this.ZdcUserLayers[i].markers[j].shadowdoc.style.visibility="visible";}}}if(this.ScaleBarOpen){if(this.ZdcScaleBarObj.type==1||this.ZdcScaleBarObj.type==9){if(this.ZdcScaleBarObj.type==1){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".gif"+">";this.ZdcScaleBarObj.doc1.style.filter="alpha(opacity=75)";this.ZdcScaleBarObj.doc1.style.mozOpacity=75/100;this.ZdcScaleBarObj.doc1.style.opacity=75/100;}else{if(this.s<10){this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+")";if(document.all){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+" style='display:none' />";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+"0"+this.s+".png"+">";}}else{this.ZdcScaleBarObj.doc1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+")";if(document.all){this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+" style='display:none' />";}else{this.ZdcScaleBarObj.doc1.innerHTML="<IMG src="+this.ZdcScaleBarObj.ZdcScaleBaseImage+this.s+".png"+">";}}}}}if(this.CenterInfoBoxOpen){if(this.ZdcCenterInfoObj.type==1){this.ZdcCenterInfoObj.doc1.style.filter="alpha(opacity=75)";this.ZdcCenterInfoObj.doc1.style.mozOpacity=75/100;this.ZdcCenterInfoObj.doc1.style.opacity=75/100;}else{this.ZdcCenterInfoObj.doc1.style.filter="alpha(opacity=50)";this.ZdcCenterInfoObj.doc1.style.mozOpacity=50/100;this.ZdcCenterInfoObj.doc1.style.opacity=50/100;}}if(this.CenterOpen){if(document.all){this.ZdcCenterObj.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.ZdcCenterObj.image+" Enabled ='1')";this.ZdcCenterObj.doc.innerHTML="<IMG src="+this.ZdcCenterObj.image+" style='display:none' />";}else{this.ZdcCenterObj.doc.innerHTML="<IMG src="+this.ZdcCenterObj.image+">";}}if(this.ControlOpen){if(this.ZdcCtrObj.type==1){this.ZdcCtrObj.doc.style.width="70px";this.ZdcCtrObj.doc.style.height="330px";this.ZdcCtrObj.doc.style.filter="alpha(opacity=100)";this.ZdcCtrObj.doc.style.mozOpacity=100/100;this.ZdcCtrObj.doc.style.opacity=100/100;}}if(this.ZdcMapType==9){this.SetCopyrightOnMap();}if(!document.all){this.ZdcTransparent.style.visibility="visible";}};ZdcMap.prototype.addUserTile=function(path,box){this.ZdcUserTile=true;this.ZdcUserTileBox=box;this.ZdcUserTilePath=path;};ZdcMap.prototype.removeUserTile=function(){this.ZdcUserTile=false;};ZdcMap.prototype.setMouseCursor=function(type){if(type!="default"&&type!="hand"){return -1;}this.mousecursor=type;if(this.mousecursor=="hand"){this.ZdcMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}if(this.mousecursor=="default"){this.ZdcMapClass.style.cursor="default";}};ZdcMap.prototype.setMapType=function(t,opt){if(0<t&&t<11){this.ZdcMapType=t;if(this.ZdcMapType<10){this.ZdcMapRasterEngine=false;}else{this.ZdcMapRasterEngine=true;}if(opt!=null){this.ZdcMapTypeOpt=opt;}this.SetCopyrightOnMap();}else{return -1;}};ZdcMap.prototype.getMapType=function(){return this.ZdcMapType;};ZdcMap.prototype.reflashMap=function(){this.SetMapLocationAndScale(this.mx,this.my,this.s);};ZdcMap.prototype.EndSearchRouteHandler=function(){if(!this.objRouteSearch||!this.objRouteSearch.getResult()){return;}var _285=new ZdcUserRouteLayer();_285.SetRouteResult(this.objRouteSearch.getResult());this.AddRouteLayer(_285);};ZdcMap.prototype.addRouteSearch=function(rs){this.objRouteSearch=rs;this.objRouteSearch.objMap=this;};ZdcMap.prototype.removeRouteSearch=function(){if(this.objRouteSearch){this.objRouteSearch.objMap=null;}this.objRouteSearch=null;this.ClearRouteLayer();};ZdcMap.prototype.getRouteSearch=function(){if(!this.objRouteSearch){this.objRouteSearch=null;}return this.objRouteSearch;};ZdcMap.prototype.ClearRouteLayer=function(type){if(this.ZdcRouteLayer==null){return;}this.removeShapeLayer(this.ZdcRouteLayer.LinkLayer);this.ZdcRouteLayer.LinkLayer=null;if(!type){if(this.ZdcRouteLayer.IconLayer.LayerID>=0){this.removeUserLayerById(this.ZdcRouteLayer.IconLayer.LayerID);this.ZdcRouteLayer.IconLayer.LayerID=-1;}this.ZdcRouteLayer.result=null;if(this.objRouteSearch&&this.objRouteSearch.result){this.objRouteSearch.result.Clear();}}this.ZdcRouteLayer=null;return;};ZdcMap.prototype.AddRouteLayer=function(lyr){this.ZdcRouteLayer=lyr;this.addShapeLayer(this.ZdcRouteLayer.LinkLayer);this.ZdcRouteLayer.LinkLayer.doc.style.zIndex=3998;var k;var mt=this;var icon,mrk;if(this.ZdcRouteLayer.IconLayer.LayerID==-1){this.ZdcRouteLayer.IconLayer.clearMarker();if(this.ZdcRouteLayer.result.options.iconDeparture){icon=this.ZdcRouteLayer.result.options.iconDeparture;}else{icon=new ZdcIcon();icon.image=ZdcMapServer+"img/RouteStart.png";icon.size=new ZdcSize(54,36);icon.offset=new ZdcPixel(-4,-33);}mrk=new ZdcMarker(this.ZdcRouteLayer.result.options.departurePoint,icon);this.ZdcRouteLayer.IconLayer.addMarker(mrk);if(this.ZdcRouteLayer.result.options.iconArrival){icon=this.ZdcRouteLayer.result.options.iconArrival;}else{icon=new ZdcIcon();icon.image=ZdcMapServer+"img/RouteEnd.png";icon.size=new ZdcSize(54,36);icon.offset=new ZdcPixel(-4,-33);}mrk=new ZdcMarker(this.ZdcRouteLayer.result.options.arrivalPoint,icon);this.ZdcRouteLayer.IconLayer.addMarker(mrk);icon=new ZdcIcon();var _28c=new ZdcIcon();var _28d=new ZdcIcon();_28c.offset=new ZdcPixel(-12,-9);_28c.size=new ZdcSize(24,18);_28c.image=ZdcMapServer+"img/RouteJct.png";_28d.offset=new ZdcPixel(-8,-8);_28d.size=new ZdcSize(16,16);_28d.image=ZdcMapServer+"img/RouteIs.png";for(var k=1;k<this.ZdcRouteLayer.result.links.length-1;k++){if(this.ZdcRouteLayer.result.links[k].guidType==3){var x=this.ZdcRouteLayer.result.links[k].ld[0].x[0];var y=this.ZdcRouteLayer.result.links[k].ld[0].y[0];mrk=new ZdcMarker(new ZdcPoint(x,y,2),_28c);mrk.title=document.createTextNode(this.ZdcRouteLayer.result.links[k].crossName);mrk.node=document.createElement("DIV");mrk.node.innerHTML="<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\">"+"<TR><TD background=\""+this.getRouteSearch().urlRouteGetImage+"?key="+this.getRouteSearch().options.keyAPI+"&enc=SJIS&sid="+this.ZdcRouteLayer.result.searchID+"&rid="+Number(this.ZdcRouteLayer.result.links[k].id)+"&pid=0&type=3\">"+"<img name=\"image_guide\" border=\"0\" "+"src=\""+this.getRouteSearch().urlRouteGetImage+"?key="+this.getRouteSearch().options.keyAPI+"&enc=SJIS&sid="+this.ZdcRouteLayer.result.searchID+"&rid="+Number(this.ZdcRouteLayer.result.links[k].id)+"&pid=1&type=3\">"+"</TD></TR></TABLE>"+"<BR>"+"<TABLE border=\"1\">"+"<TR><TD width=35% style=\"font-size:10pt;\">"+lyr.result._road_name_jp+"</TD><TD style=\"font-size:10pt;\">"+this.ZdcRouteLayer.result.links[k].roadName+"</TD></TR>"+"<TR><TD style=\"font-size:10pt;\">"+lyr.result._cross_name_jp+"</TD><TD style=\"font-size:10pt;\">"+this.ZdcRouteLayer.result.links[k].crossName+"</TD></TR>"+"</TABLE>";ZdcEvent.addListener(mrk,"mouseclickmarker",function(){if(mt.msgopenstatus){mt.closeMsgWindow();}mrk.openMsgWindow(this.Point,this.title,this.node,true);});this.ZdcRouteLayer.IconLayer.addMarker(mrk);}else{if(this.ZdcRouteLayer.result.links[k].guidType==4){var x=this.ZdcRouteLayer.result.links[k].ld[0].x[0];var y=this.ZdcRouteLayer.result.links[k].ld[0].y[0];mrk=new ZdcMarker(new ZdcPoint(x,y,2),_28d);mrk.title=document.createTextNode(this.ZdcRouteLayer.result.links[k].crossName);mrk.node=document.createElement("DIV");mrk.node.innerHTML="<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\">"+"<TR><TD>"+"<img name=\"image_guide\" border=\"0\" "+"src=\""+this.getRouteSearch().urlRouteGetImage+"?key="+this.getRouteSearch().options.keyAPI+"&enc=SJIS&sid="+this.ZdcRouteLayer.result.searchID+"&rid="+Number(this.ZdcRouteLayer.result.links[k].id)+"&pid=0&type=4\">"+"</TD></TR></TABLE>"+"<BR>"+"<TABLE border=\"1\">"+"<TR><TD width=35% style=\"font-size:10pt;\">"+lyr.result._road_name_jp+"</TD><TD style=\"font-size:10pt;\">"+this.ZdcRouteLayer.result.links[k].roadName+"</TD></TR>"+"<TR><TD style=\"font-size:10pt;\">"+lyr.result._cross_name_jp+"</TD><TD style=\"font-size:10pt;\">"+this.ZdcRouteLayer.result.links[k].crossName+"</TD></TR>"+"</TABLE>";ZdcEvent.addListener(mrk,"mouseclickmarker",function(){if(mt.msgopenstatus){mt.closeMsgWindow();}mrk.openMsgWindow(this.Point,this.title,this.node,true);});this.ZdcRouteLayer.IconLayer.addMarker(mrk);}}}this.ZdcRouteLayer.IconLayer.LayerID=this.addUserLayer(this.ZdcRouteLayer.IconLayer);this.ZdcRouteLayer.IconLayer.doc.style.zIndex=3999;}this.RedrawRouteLayer();return;};ZdcMap.prototype.ResetRouteLayer=function(){if(this.ZdcRouteLayer==null){return;}var _290=this.ZdcRouteLayer.IconLayer;var k,j,i;var r=this.ZdcRouteLayer.result;this.ClearRouteLayer(1);for(k=0;k<r.links.length;k++){l=r.links[k];for(j=0;j<l.l2.length;j++){l.l2[j].idDom=-1;}for(j=0;j<l.l6.length;j++){l.l6[j].idDom=-1;}for(j=0;j<l.ld.length;j++){l.ld[j].idDom=-1;}}var _293=new ZdcUserRouteLayer();_293.SetRouteResult(r);_293.IconLayer=_290;_290=null;this.AddRouteLayer(_293);};ZdcMap.prototype.RedrawRouteLayer=function(){if(this.ZdcRouteLayer==null||this.ZdcRouteLayer.result==null||this.ZdcRouteLayer.LinkLayer==null){return;}var _294=this.ZdcRouteLayer.LinkLayer;var ptLB=new ZdcPixel(parseInt(_294.doc.style.left),parseInt(_294.doc.style.top)+_294.height);var ptRT=new ZdcPixel(parseInt(_294.doc.style.left)+_294.width,parseInt(_294.doc.style.top));var tpt=this.convertPixel2Point(ptLB);var _298=new ZdcPoint(tpt.lon,tpt.lat);tpt=this.convertPixel2Point(ptRT);var _299=new ZdcPoint(tpt.lon,tpt.lat);var _29a=new ZdcBox(_298,_299);if(_29a.isContainBox(this.getMapBoundBox())>1){this.ResetRouteLayer();return;}var _29b=this.ZdcRouteLayer.LinkLayer;var box=this.getMapBoundBox();var r;var p;var k,jj,i,j;var pxy;var _2a1=this.ZdcRouteLayer.result;r=_2a1.range;if(r.minx>box.maxx||r.maxx<box.minx||r.miny>box.maxy||r.maxy<box.miny){return;}for(k=0;k<_2a1.links.length;k++){r=_2a1.links[k].range;if(r.minx>box.maxx||r.maxx<box.minx||r.miny>box.maxy||r.maxy<box.miny){}else{l=_2a1.links[k];r=l.range;if(r.minx>box.maxx||r.maxx<box.minx||r.miny>box.maxy||r.maxy<box.miny){}else{if(this.getMapScale()<=2){for(j=0;j<l.l2.length;j++){r=l.l2[j].range;if(!l.l2[j].idDom){l.l2[j].idDom=-1;}if(l.l2[j].idDom>0||r.minx>box.maxx||r.maxx<box.minx||r.miny>box.maxy||r.maxy<box.miny){}else{p=new ZdcShape.Polyline();for(i=0;i<l.l2[j].x.length;i++){p.addPoint(new ZdcPoint(l.l2[j].x[i],l.l2[j].y[i],2));}p.strokeColor=this.objRouteSearch.routeColor;p.strokeWeight=this.objRouteSearch.routeWidth;p.opacity=this.objRouteSearch.routeOpacity;l.l2[j].idDom=this.ZdcRouteLayer.LinkLayer.addShape(p)+1;}}}else{if(this.getMapScale()<=6){for(j=0;j<l.l6.length;j++){r=l.l6[j].range;if(!l.l6[j].idDom){l.l6[j].idDom=-1;}if(l.l6[j].idDom>0||r.minx>box.maxx||r.maxx<box.minx||r.miny>box.maxy||r.maxy<box.miny){}else{p=new ZdcShape.Polyline();for(i=0;i<l.l6[j].x.length;i++){p.addPoint(new ZdcPoint(l.l6[j].x[i],l.l6[j].y[i],2));}p.strokeColor=this.objRouteSearch.routeColor;p.strokeWeight=this.objRouteSearch.routeWidth;p.opacity=this.objRouteSearch.routeOpacity;l.l6[j].idDom=this.ZdcRouteLayer.LinkLayer.addShape(p)+1;}}}else{for(j=0;j<l.ld.length;j++){r=l.ld[j].range;if(!l.ld[j].idDom){l.ld[j].idDom=-1;}if(l.ld[j].idDom>0||r.minx>box.maxx||r.maxx<box.minx||r.miny>box.maxy||r.maxy<box.miny){}else{p=new ZdcShape.Polyline();for(i=0;i<l.ld[j].x.length;i++){p.addPoint(new ZdcPoint(l.ld[j].x[i],l.ld[j].y[i],2));}p.strokeColor=this.objRouteSearch.routeColor;p.strokeWeight=this.objRouteSearch.routeWidth;p.opacity=this.objRouteSearch.routeOpacity;l.ld[j].idDom=this.ZdcRouteLayer.LinkLayer.addShape(p)+1;}}}}}}}};ZdcMap.prototype.setChildMap=function(cMap,opt1,opt2,opt3){var pMap=this;this.pMap=this;this.cMap=cMap;cMap.pMap=pMap;if(opt1==null){opt1=0;}cMap.zoomopt=opt1;if(opt2>=1&&opt2<=4){cMap.subzoomopt=opt2;}else{cMap.subzoomopt=0;}if(opt3>50){opt3=50;}if(opt3<0){opt3=0;}if(opt3>=0&&opt3<=50){}else{opt3=15;}cMap.subzoomopt2=opt3;this.pMap.SetZoomImage(this.cMap,opt1,opt2,opt3);var _2a7=eval(this.s)+eval(cMap.zoomopt);if(_2a7>this.zoomMax){_2a7=this.zoomMax;}if(_2a7<this.zoomMin){_2a7=this.zoomMin;}cMap.setMapScale(_2a7);ZdcEvent.addListener(cMap,"dblclickend",function(){pMap.setMapLocation(cMap.getMapLocation());});ZdcEvent.addListener(cMap,"dragmapend",function(){pMap.setMapLocation(cMap.getMapLocation());});ZdcEvent.addListener(cMap,"scrollmapend",function(){pMap.setMapLocation(cMap.getMapLocation());});ZdcEvent.addListener(cMap,"clickmap",function(){pMap.setMapLocation(cMap.getMapLocation());});ZdcEvent.addListener(cMap,"changezoomend",function(){if(!pMap.firstflg&&cMap.subonlyzoomin==false&&cMap.subonlyzoomout==false){this.pMap.SetZoomImage(cMap,cMap.zoomopt,opt2,cMap.subzoomopt2);cMap.firstflg=true;var _2a8=eval(cMap.getMapScale())-eval(cMap.zoomopt);var _2a9=pMap.CenterFirst;pMap.CenterFirst=null;pMap.setMapScale(_2a8);pMap.CenterFirst=_2a9;cMap.firstflg=false;}if(cMap.subonlyzoomin==true||cMap.subonlyzoomout==true){if(cMap.subonlyzoomin==true){cMap.zoomopt=eval(cMap.zoomopt)+1;}if(cMap.subonlyzoomout==true){cMap.zoomopt=eval(cMap.zoomopt)-1;}pMap.ChangeZoomSubMapOnly(cMap.zoomopt,cMap);cMap.subonlyzoomin=false;cMap.subonlyzoomout=false;}});this.SetCopyrightOnMap();};ZdcMap.prototype.SetZoomImage=function(cMap,opt1,opt2,opt3){cMap.ZdcpMapRangeImage.style.zIndex=19;cMap.ZdcSubMapClass.appendChild(cMap.ZdcpMapRangeImage);cMap.ZdcpMapRangeImage.style.visibility="visible";cMap.ZdcpMapRangeInnerImage.style.zIndex=18;cMap.ZdcSubMapClass.appendChild(cMap.ZdcpMapRangeInnerImage);cMap.ZdcpMapRangeInnerImage.style.visibility="visible";cMap.ZdcpMapRangeInnerImage.style.backgroundColor="7b68ff";cMap.ZdcpMapRangeInnerImage.style.filter="alpha(opacity=25)";cMap.ZdcpMapRangeInnerImage.style.mozOpacity=25/100;cMap.ZdcpMapRangeInnerImage.style.opacity=25/100;var img=cMap.pMapRangeImageClear;var _2af=cMap.pMapRangeInnerImageClear;var _2b0=cMap.ZdcSubMapZoomIn;var _2b1=cMap.ZdcSubMapZoomOut;var _2b2=cMap.ZdcSubMapOpen;var _2b3=cMap.ZdcSubMapClose;var _2b4=eval(this.getMapScale());var _2b5=eval(_2b4+opt1);if(_2b5>this.zoomMax){_2b5=this.zoomMax;}if(_2b5<this.zoomMin){_2b5=this.zoomMin;}if(_2b5>_2b4){_2b5=_2b4;}var _2b6=15-opt3;var _2b7=Math.floor(this.ZdcMapWpx*(ZdcZoom.map_defw[_2b4]/ZdcZoom.map_defw[_2b5]));var _2b8=Math.floor(this.ZdcMapHpx*(ZdcZoom.map_defh[_2b4]/ZdcZoom.map_defh[_2b5]));cMap.ZdcpMapRangeImage.style.left=cMap.ZdcSubMapCenterpx.x-Math.floor(_2b7/2)-3;cMap.ZdcpMapRangeImage.style.top=cMap.ZdcSubMapCenterpx.y-Math.floor(_2b8/2)-3;if(document.all){cMap.ZdcpMapRangeImage.innerHTML="<DIV style='border:1px outset #7b68ff'><IMG style='border:2px outset #7b68ff' src="+img+" width="+_2b7+" height="+_2b8+"></DIV>";}else{cMap.ZdcpMapRangeImage.innerHTML="<DIV style='border-color:#5050bb #390088 #390088 #5050bb;border-width:2px;border-style: solid;'><IMG style='border-color:#7b68ff #000000 #000000 #7b68ff;border-width:1px;border-style:solid;' src="+img+" width="+_2b7+" height="+_2b8+"></DIV>";}cMap.ZdcpMapRangeInnerImage.style.left=cMap.ZdcSubMapCenterpx.x-Math.floor(_2b7/2);cMap.ZdcpMapRangeInnerImage.style.top=cMap.ZdcSubMapCenterpx.y-Math.floor(_2b8/2);cMap.ZdcpMapRangeInnerImage.innerHTML="<IMG src="+_2af+" width="+_2b7+" height="+_2b8+">";if(opt2!=0){cMap.ZdcSubMapZoomInImage.style.zIndex=20011;cMap.ZdcSubMapClass.appendChild(cMap.ZdcSubMapZoomInImage);cMap.ZdcSubMapZoomOutImage.style.zIndex=20011;cMap.ZdcSubMapClass.appendChild(cMap.ZdcSubMapZoomOutImage);cMap.ZdcSubMapZoomInImage.style.visibility="visible";cMap.ZdcSubMapZoomOutImage.style.visibility="visible";if(document.all){switch(opt2){case 1:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+17;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+34;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 2:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-51;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-34;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 3:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+17;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-18;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+34;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-18;break;case 4:default:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-51;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-18;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-34;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-18;break;}}else{switch(opt2){case 1:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+17;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+34;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 2:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-49;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-32;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 3:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+17;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-16;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2+34;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-16;break;case 4:default:cMap.ZdcSubMapZoomInImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-49;cMap.ZdcSubMapZoomInImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-16;cMap.ZdcSubMapZoomOutImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-32;cMap.ZdcSubMapZoomOutImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-16;break;}}cMap.ZdcSubMapZoomInImage.innerHTML="<IMG src="+_2b0+" width="+cMap.StorageButtonSize+" height="+cMap.StorageButtonSize+">";cMap.ZdcSubMapZoomOutImage.innerHTML="<IMG src="+_2b1+" width="+cMap.StorageButtonSize+" height="+cMap.StorageButtonSize+">";cMap.ZdcSubMapZoomInImage.style.position="absolute";cMap.ZdcSubMapZoomOutImage.style.position="absolute";}else{cMap.ZdcSubMapZoomInImage.style.visibility="hidden";cMap.ZdcSubMapZoomOutImage.style.visibility="hidden";}this.WinSize=this.getMapWindowSize();this.Pnt=ZdcEvent._getClientPosition(this.ZdcMapBase);this.DocCenterX=parseInt(this.Pnt.x)+parseInt(this.WinSize.width)/2;this.DocCenterY=parseInt(this.Pnt.y)+parseInt(this.WinSize.height)/2;cMap.WinSize=cMap.getMapWindowSize();cMap.SubPnt=ZdcEvent._getClientPosition(cMap.ZdcSubMapBase);cMap.DocCenterX=parseInt(cMap.SubPnt.x)+parseInt(cMap.WinSize.width)/2;cMap.DocCenterY=parseInt(cMap.SubPnt.y)+parseInt(cMap.WinSize.height)/2;cMap.WinSize=cMap.getMapWindowSize();cMap.SubPnt=ZdcEvent._getClientPosition(cMap.ZdcSubMapBase);cMap.formatWidth=cMap.WinSize.width;cMap.formatHeight=cMap.WinSize.height;cMap.formatTop=cMap.WinSize.top;cMap.formatLeft=cMap.WinSize.left;if(this.DocCenterX>=cMap.DocCenterX&&this.DocCenterY>=cMap.DocCenterY){cMap.SubMapPosition=1;}if(this.DocCenterX<cMap.DocCenterX&&this.DocCenterY>=cMap.DocCenterY){cMap.SubMapPosition=2;}if(this.DocCenterX>=cMap.DocCenterX&&this.DocCenterY<cMap.DocCenterY){cMap.SubMapPosition=3;}if(this.DocCenterX<cMap.DocCenterX&&this.DocCenterY<cMap.DocCenterY){cMap.SubMapPosition=4;}if(cMap.SubMapPosition!=0){cMap.ZdcSubMapOpenImage.style.zIndex=20011;cMap.ZdcSubMapClass.appendChild(cMap.ZdcSubMapOpenImage);cMap.ZdcSubMapCloseImage.style.zIndex=20011;cMap.ZdcSubMapClass.appendChild(cMap.ZdcSubMapCloseImage);cMap.ZdcSubMapOpenImage.style.visibility="visible";cMap.ZdcSubMapCloseImage.style.visibility="visible";if(document.all){switch(cMap.SubMapPosition){case 1:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 2:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-18;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 3:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-18;break;case 4:default:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-18;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-18;break;}}else{switch(cMap.SubMapPosition){case 1:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 2:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-16;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;break;case 3:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-16;break;case 4:default:cMap.ZdcSubMapOpenImage.style.left=cMap.ZdcSubMapCenterpx.x-parseInt(cMap.ZdcSubMapBase.style.width)/2;cMap.ZdcSubMapOpenImage.style.top=cMap.ZdcSubMapCenterpx.y-parseInt(cMap.ZdcSubMapBase.style.height)/2;cMap.ZdcSubMapCloseImage.style.left=cMap.ZdcSubMapCenterpx.x+parseInt(cMap.ZdcSubMapBase.style.width)/2-16;cMap.ZdcSubMapCloseImage.style.top=cMap.ZdcSubMapCenterpx.y+parseInt(cMap.ZdcSubMapBase.style.height)/2-16;break;}}cMap.ZdcSubMapOpenImage.innerHTML="<IMG src="+_2b2+" width="+cMap.StorageButtonSize+" height="+cMap.StorageButtonSize+">";cMap.ZdcSubMapCloseImage.innerHTML="<IMG src="+_2b3+" width="+cMap.StorageButtonSize+" height="+cMap.StorageButtonSize+">";cMap.ZdcSubMapOpenImage.style.position="absolute";cMap.ZdcSubMapCloseImage.style.position="absolute";cMap.ZdcSubMapOpenImage.style.visibility="hidden";cMap.Sft_Width=-30;cMap.Sft_Height=-30;switch(cMap.SubMapPosition){case 1:cMap.Sft_Left=0;cMap.Sft_Top=0;break;case 2:cMap.Sft_Left=30;cMap.Sft_Top=0;break;case 3:cMap.Sft_Left=0;cMap.Sft_Top=30;break;case 4:default:cMap.Sft_Left=30;cMap.Sft_Top=30;break;}}else{cMap.ZdcSubMapOpenImage.style.visibility="hidden";cMap.ZdcSubMapCloseImage.style.visibility="hidden";}cMap.ZdcpMapRangeImage.style.position="absolute";cMap.ZdcpMapRangeInnerImage.style.position="absolute";var mapw=cMap.ZdcSubMapWpx/2;var maph=cMap.ZdcSubMapHpx/2;if(cMap.ZdcSubMapBox){cMap.ZdcSubMapClass.removeChild(cMap.ZdcSubMapBox);}if(cMap.ZdcSubMapBox1){cMap.ZdcSubMapClass.removeChild(cMap.ZdcSubMapBox1);}if(cMap.ZdcSubMapBox2){cMap.ZdcSubMapClass.removeChild(cMap.ZdcSubMapBox2);}cMap.ZdcSubMapBox=document.createElement("DIV");cMap.ZdcSubMapBox.id="box";cMap.ZdcSubMapBox.style.position="absolute";cMap.ZdcSubMapBox.style.top=cMap.ZdcSubMapCenterpx.y-Math.round(cMap.ZdcSubMapHpx/2);cMap.ZdcSubMapBox.style.left=cMap.ZdcSubMapCenterpx.x-Math.round(cMap.ZdcSubMapWpx/2);if(document.all){cMap.ZdcSubMapBox.style.width=cMap.ZdcSubMapWpx-2;cMap.ZdcSubMapBox.style.height=cMap.ZdcSubMapHpx-2;}else{cMap.ZdcSubMapBox.style.width=cMap.ZdcSubMapWpx-30+_2b6*2;cMap.ZdcSubMapBox.style.height=cMap.ZdcSubMapHpx-30+_2b6*2;}cMap.ZdcSubMapBox.style.zIndex=20;cMap.ZdcSubMapBox.style.borderWidth=opt3;cMap.ZdcSubMapBox.style.borderStyle="solid";cMap.ZdcSubMapBox.style.borderColor="#ffffff";cMap.ZdcSubMapClass.appendChild(cMap.ZdcSubMapBox);cMap.ZdcSubMapBox2=document.createElement("DIV");cMap.ZdcSubMapBox2.id="box2";cMap.ZdcSubMapBox2.style.position="absolute";cMap.ZdcSubMapBox2.style.top=cMap.ZdcSubMapCenterpx.y-Math.round(cMap.ZdcSubMapHpx/2)+15-_2b6-1;cMap.ZdcSubMapBox2.style.left=cMap.ZdcSubMapCenterpx.x-Math.round(cMap.ZdcSubMapWpx/2)+15-_2b6-1;cMap.ZdcSubMapBox2.style.width=cMap.ZdcSubMapWpx-32+_2b6*2+2;cMap.ZdcSubMapBox2.style.height=cMap.ZdcSubMapHpx-32+_2b6*2+2;cMap.ZdcSubMapBox2.style.zIndex=21;cMap.ZdcSubMapBox2.style.borderWidth="1";cMap.ZdcSubMapBox2.style.borderStyle="solid";cMap.ZdcSubMapBox2.style.borderColor="#777777";cMap.ZdcSubMapClass.appendChild(cMap.ZdcSubMapBox2);};ZdcMap.prototype.ChangeZoomSubMapOnly=function(opt,cMap){var img=cMap.pMapRangeImageClear;var _2be=cMap.pMapRangeInnerImageClear;var _2bf=eval(this.pMap.getMapScale()-cMap.getMapScale());var _2c0=this.pMap.getMapScale();var _2c1=_2c0-_2bf;if(_2c1>_2c0){_2c1=_2c0;}var _2c2=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_2c0]/ZdcZoom.map_defw[_2c1]));var _2c3=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_2c0]/ZdcZoom.map_defh[_2c1]));cMap.ZdcpMapRangeImage.style.left=cMap.ZdcSubMapCenterpx.x-Math.floor(_2c2/2)-3;cMap.ZdcpMapRangeImage.style.top=cMap.ZdcSubMapCenterpx.y-Math.floor(_2c3/2)-3;if(document.all){cMap.ZdcpMapRangeImage.innerHTML="<DIV style='border:1px outset #7b68ff'><IMG style='border:2px outset #7b68ff' src="+img+" width="+_2c2+" height="+_2c3+"></DIV>";}else{cMap.ZdcpMapRangeImage.innerHTML="<DIV style='border-color:#5050bb #390088 #390088 #5050bb;border-width:2px;border-style:solid;'><IMG style='border-color:#7b68ff #000000 #000000 #7b68ff;border-width:1px;border-style:solid;' src="+img+" width="+_2c2+" height="+_2c3+"></DIV>";}cMap.ZdcpMapRangeInnerImage.style.left=cMap.ZdcSubMapCenterpx.x-Math.floor(_2c2/2);cMap.ZdcpMapRangeInnerImage.style.top=cMap.ZdcSubMapCenterpx.y-Math.floor(_2c3/2);cMap.ZdcpMapRangeInnerImage.innerHTML="<IMG src="+_2be+" width="+_2c2+" height="+_2c3+">";};function ZdcSubMap(_2c4,opts){this.ZdcSubMapBase=_2c4;if(this.ZdcSubMapBase.style.position!="absolute"){this.ZdcSubMapBase.style.position="relative";}this.ZdcSubMapBase.style.zIndex=20000;this.ZdcSubMapClass=document.createElement("div");this.ZdcSubMapClass.style.position="absolute";this.ZdcSubMapClass.style.zIndex=2;this.ZdcSubMapBase.style.backgroundImage="url("+ZdcCommon.ZdcMapLog+")";this.ZdcSubMapBase.appendChild(this.ZdcSubMapClass);this.ZdcSubMapBase.style.borderWidth="1";this.ZdcSubMapBase.style.borderStyle="solid";this.ZdcSubMapBase.style.borderColor="#777777";this.ZdcSubMapBase.style.overflow="hidden";this.mx=503156063;this.my=128422368;var p=new ZdcPoint(this.mx,this.my,2);this.lon=p.lon;this.lat=p.lat;this.s=7;this.SavePoint=new ZdcPoint(this.mx,this.my,2);this.zoomMax=18;this.zoomMin=1;this.ZdcDragStatus=true;this.OnScroll=false;this.WheelType=1;this.WheelStatus=true;this.OnSetMapBase=false;this.ZdcSubMapType=1;this.ZdcSubMapTypeOpt=1;this.ZdcSubMapTypeObj=new ZdcMapType();this.ZdcSubMapRasterEngine=false;this.ZdcCtlMode=2;this.ZdcCtrObj=new Object();this.ZdcTileLayer=new Array();this.mousecursor="default";this.StorageButtonSize=16;this.ZdcMapAccess=ZdcCommon.ZdcMapAccess+"/log/event_log.cgi?key="+ZdcCommon.ZDC_KEY+"&event=mapapi_";ZdcMap.AccessText="10200000";this.subonlyzoomin=false;this.subonlyzoomout=false;this.ZdcpMapRangeImage=new Object();this.ZdcpMapRangeImage=document.createElement("DIV");this.pMapRangeImageClear=ZdcCommon.ZdcMapServer+"/img/clear.gif";this.ZdcpMapRangeInnerImage=new Object();this.ZdcpMapRangeInnerImage=document.createElement("DIV");this.pMapRangeInnerImageClear=ZdcCommon.ZdcMapServer+"/img/clear.gif";this.ZdcSubMapZoomInImage=new Object();this.ZdcSubMapZoomInImage=document.createElement("DIV");this.ZdcSubMapZoomIn=ZdcCommon.ZdcMapServer+"/img/submapZoomIn.png";this.ZdcSubMapZoomOutImage=new Object();this.ZdcSubMapZoomOutImage=document.createElement("DIV");this.ZdcSubMapZoomOut=ZdcCommon.ZdcMapServer+"/img/submapZoomOut.png";this.ZdcSubMapOpenImage=new Object();this.ZdcSubMapOpenImage=document.createElement("DIV");this.ZdcSubMapOpen=ZdcCommon.ZdcMapServer+"/img/ControlChange3.png";this.ZdcSubMapCloseImage=new Object();this.ZdcSubMapCloseImage=document.createElement("DIV");this.ZdcSubMapClose=ZdcCommon.ZdcMapServer+"/img/ControlNoChange3.png";this.ScrSpeed=0;this.ZdcSubMapLeftpx=0;this.ZdcSubMapToppx=0;this.ZdcSubMapWpx=0;this.ZdcSubMapHpx=0;this.ZdcSubMapCenterpx=new ZdcPixel();this.ZdcSubMapCenterInfopx=new ZdcPixel();this.ZdcSubMapClipRect=new Object;this.ZdcTileWpx=256;this.ZdcTileHpx=256;this.ZdcBaseXpx=0;this.MaddY=0;this.ZdcCenter=new Object();this.ZdcCenter.px=this.ZdcSubMapCenterpx.x;this.ZdcCenter.py=this.ZdcSubMapCenterpx.y;this.CountScr=0;this.CountScrMax=7;this.ZdcDragOx=0;this.ZdcDragOy=0;this.ZdcDragMx=0;this.ZdcDragMy=0;this.ZdcDragEx=0;this.ZdcDragEy=0;this.MouseClickX=0;this.MouseClickY=0;this.MouseCLon=0;this.MouseCLat=0;this.MouseCx=0;this.MouseCy=0;this.MouseMoveX=0;this.MouseMoveY=0;this.MouseLon=0;this.MouseLat=0;this.MouseMx=0;this.MouseMy=0;this.InitMap(this.mx,this.my,this.s);this.ZdcSubMapClass.ondblclick=this.MouseDblClick.bindAsEventListener(this);this.ZdcSubMapClass.onmousemove=this.MouseMove.bindAsEventListener(this);this.ZdcSubMapClass.onmousedown=this.MouseDown.bindAsEventListener(this);this.ZdcSubMapClass.onmouseup=this.MouseUp.bindAsEventListener(this);this.ZdcSubMapClass.onclick=this.MouseClick.bindAsEventListener(this);this.ZdcSubMapClass.onmouseover=this.MouseOver.bindAsEventListener(this);this.ZdcSubMapClass.onmouseout=this.MouseOut.bindAsEventListener(this);this.AddMouseWheelListener(this.WheelZoom.bindAsEventListener(this),false);this.ZdcSubMapZoomInImage.ondblclick=this.MouseDblClickZoom.bindAsEventListener(this);this.ZdcSubMapZoomInImage.onclick=this.MouseClickZoomIn.bindAsEventListener(this);this.ZdcSubMapZoomInImage.onmousedown=this.MouseDownZoom.bindAsEventListener(this);this.ZdcSubMapZoomInImage.onmouseup=this.MouseUpZoom.bindAsEventListener(this);this.ZdcSubMapZoomInImage.onmouseover=this.MouseOverZoom.bindAsEventListener(this);this.ZdcSubMapZoomInImage.onmouseout=this.MouseOutZoom.bindAsEventListener(this);this.ZdcSubMapZoomOutImage.ondblclick=this.MouseDblClickZoom.bindAsEventListener(this);this.ZdcSubMapZoomOutImage.onclick=this.MouseClickZoomOut.bindAsEventListener(this);this.ZdcSubMapZoomOutImage.onmousedown=this.MouseDownZoom.bindAsEventListener(this);this.ZdcSubMapZoomOutImage.onmouseup=this.MouseUpZoom.bindAsEventListener(this);this.ZdcSubMapZoomOutImage.onmouseover=this.MouseOverZoom.bindAsEventListener(this);this.ZdcSubMapZoomOutImage.onmouseout=this.MouseOutZoom.bindAsEventListener(this);this.ZdcSubMapOpenImage.ondblclick=this.MouseDblClickZoom.bindAsEventListener(this);this.ZdcSubMapOpenImage.onclick=this.MouseClickOpen.bindAsEventListener(this);this.ZdcSubMapOpenImage.onmousedown=this.MouseDownZoom.bindAsEventListener(this);this.ZdcSubMapOpenImage.onmouseup=this.MouseUpZoom.bindAsEventListener(this);this.ZdcSubMapOpenImage.onmouseover=this.MouseOverZoom.bindAsEventListener(this);this.ZdcSubMapOpenImage.onmouseout=this.MouseOutZoom.bindAsEventListener(this);this.ZdcSubMapCloseImage.ondblclick=this.MouseDblClickZoom.bindAsEventListener(this);this.ZdcSubMapCloseImage.onclick=this.MouseClickClose.bindAsEventListener(this);this.ZdcSubMapCloseImage.onmousedown=this.MouseDownZoom.bindAsEventListener(this);this.ZdcSubMapCloseImage.onmouseup=this.MouseUpZoom.bindAsEventListener(this);this.ZdcSubMapCloseImage.onmouseover=this.MouseOverZoom.bindAsEventListener(this);this.ZdcSubMapCloseImage.onmouseout=this.MouseOutZoom.bindAsEventListener(this);}ZdcSubMap.prototype.MouseOverZoom=function(_2c7){if(document.all){this.ZdcSubMapZoomInImage.style.cursor="hand";this.ZdcSubMapZoomOutImage.style.cursor="hand";this.ZdcSubMapOpenImage.style.cursor="hand";this.ZdcSubMapCloseImage.style.cursor="hand";}else{this.ZdcSubMapZoomInImage.style.cursor="pointer";this.ZdcSubMapZoomOutImage.style.cursor="pointer";this.ZdcSubMapOpenImage.style.cursor="pointer";this.ZdcSubMapCloseImage.style.cursor="pointer";}};ZdcSubMap.prototype.MouseOutZoom=function(_2c8){if(ZdcDrag.IsDragging()){return false;}if(this.mousecursor=="hand"){if(ZdcCommon.UserAgentIsFireFox()){this.ZdcSubMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}else{this.ZdcSubMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}}else{this.ZdcSubMapClass.style.cursor="default";}};ZdcSubMap.prototype.AddMouseWheelListener=function(func,cap){if(this.ZdcSubMapClass.addEventListener){this.ZdcSubMapClass.addEventListener("DOMMouseScroll",func,cap);this.ZdcSubMapClass.addEventListener("mousewheel",func,cap);}else{if(this.ZdcSubMapClass.attachEvent){this.ZdcSubMapClass.attachEvent("onmousewheel",func);}}};ZdcSubMap.prototype.WheelZoom=function(e){if(!this.WheelStatus){return;}var _2cc;if(window.event&&window.event.wheelDelta){_2cc=window.event.wheelDelta;}else{if(e.wheelDelta){_2cc=e.wheelDelta;}else{_2cc=e.detail;_2cc=_2cc*-1;}}if(_2cc>0){if(this.WheelType==1){this.mapZoomOut(1,"wheel");}else{this.mapZoomIn(1,"wheel");}}else{if(this.WheelType==1){this.mapZoomIn(1,"wheel");}else{this.mapZoomOut(1,"wheel");}}if(document.all){window.event.cancelBubble=true;}else{e.stopPropagation();}return false;};ZdcSubMap.prototype.setWheelType=function(t){if(t==null){return -1;}if(t!=1&&t!=2){return -1;}this.WheelType=t;};ZdcSubMap.prototype.getWheelStatus=function(){return this.WheelStatus;};ZdcSubMap.prototype.setWheelOn=function(){this.WheelStatus=true;};ZdcSubMap.prototype.setWheelOff=function(){this.WheelStatus=false;};ZdcSubMap.prototype.setBackGroundImage=function(_2ce){this.ZdcSubMapBase.style.backgroundImage="url("+_2ce+")";};ZdcSubMap.prototype.setMapZoomLimit=function(s1,s2){if(s1<s2&&s1>=0&&s2<19){this.zoomMin=Number(s1);this.zoomMax=Number(s2);}else{return -1;}};ZdcSubMap.prototype.InitMap=function(x,y,s){this.mx=x;this.my=y;this.s=s;this.InitMapBox();for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){this.ZdcTileLayer[j]=new Array(this.ZdcTileLayerMaxI);for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i]=document.createElement("DIV");this.ZdcTileLayer[j][i].style.position="absolute";this.ZdcTileLayer[j][i].style.zIndex=10;this.ZdcSubMapClass.appendChild(this.ZdcTileLayer[j][i]);}}if(this.pMap!=null){this.pMap.SetZoomImage(this.cMap,this.zoomopt,this.subzoomopt,this.subzoomopt2);}this.ChgPg=0;this.SetMapLocationAndScale(this.mx,this.my,this.s);};ZdcSubMap.prototype.resizeMapWindow=function(_2d6,_2d7,_2d8,_2d9){this.ZdcSubMapBase.style.top=_2d6;this.ZdcSubMapBase.style.left=_2d7;if(_2d8<0){_2d8=0;}if(_2d9<0){_2d9=0;}this.ZdcSubMapBase.style.width=_2d8;this.ZdcSubMapBase.style.height=_2d9;if(_2d8>screen.width||_2d9>screen.height||_2d6<0||_2d7<0){return (-1);}this.ZdcSubMapWpx=_2d8;this.ZdcSubMapHpx=_2d9;this.ZdcSubMapToppx=_2d6;this.ZdcSubMapLeftpx=_2d7;for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcSubMapClass.removeChild(this.ZdcTileLayer[j][i]);}}this.InitMap(this.mx,this.my,this.s);if(this.pMap!=null){this.pMap.SetCopyrightOnMap();}};ZdcSubMap.prototype.InitMapBox=function(){this.ZdcSubMapLeftpx=0;this.ZdcSubMapToppx=0;if(this.ZdcSubMapClass.style.width!=null){if(this.ZdcSubMapWpx==0){this.ZdcSubMapWpx=parseInt(this.ZdcSubMapBase.style.width);}this.ZdcTileLayerMaxI=Math.floor(this.ZdcSubMapWpx/256)+1+2;this.ZdcSubMapTileWpx=this.ZdcTileLayerMaxI*this.ZdcTileWpx;this.ZdcSubMapTileLeftpx=(-1)*(Math.floor((this.ZdcSubMapTileWpx-this.ZdcSubMapWpx)/2)-this.ZdcSubMapLeftpx);this.ZdcSubMapCenterpx.x=Math.floor(this.ZdcSubMapTileWpx/2);this.ZdcSubMapCenterInfopx.x=this.ZdcSubMapCenterpx.x-Math.floor(this.ZdcSubMapWpx/2)+10;this.ZdcSubMapClipRect.Left=Math.floor((this.ZdcSubMapTileWpx-this.ZdcSubMapWpx)/2);this.ZdcSubMapClipRect.Width=this.ZdcSubMapWpx;}else{this.ZdcSubMapWpx=512;this.ZdcSubMapTileWpx=1280;this.ZdcSubMapTileLeftpx=-320;this.ZdcSubMapCenterpx.x=640;this.ZdcSubMapCenterInfopx.x=340;this.ZdcSubMapClipRect.Left=384;this.ZdcSubMapClipRect.Width=512;}if(this.ZdcSubMapClass.style.height!=null){if(this.ZdcSubMapHpx==0){this.ZdcSubMapHpx=parseInt(this.ZdcSubMapBase.style.height);}this.ZdcTileLayerMaxJ=Math.floor(this.ZdcSubMapHpx/256)+1+2;this.ZdcSubMapTileHpx=this.ZdcTileLayerMaxJ*this.ZdcTileHpx;this.ZdcSubMapTileToppx=(-1)*(Math.floor((this.ZdcSubMapTileHpx-this.ZdcSubMapHpx)/2)-this.ZdcSubMapToppx);this.ZdcSubMapCenterpx.y=Math.floor(this.ZdcSubMapTileHpx/2);this.ZdcSubMapCenterInfopx.y=this.ZdcSubMapCenterpx.y-Math.floor(this.ZdcSubMapHpx/2)+10;this.ZdcSubMapClipRect.Top=Math.floor((this.ZdcSubMapTileHpx-this.ZdcSubMapHpx)/2);this.ZdcSubMapClipRect.Height=this.ZdcSubMapHpx;}else{this.ZdcSubMapHpx=512;this.ZdcSubMapTileHpx=1280;this.ZdcSubMapTileToppx=-320;this.ZdcSubMapCenterpx.y=640;this.ZdcSubMapCenterInfopx.y=340;this.ZdcSubMapClipRect.Top=384;this.ZdcSubMapClipRect.Height=512;}this.ZdcSubMapClass.style.left=this.ZdcSubMapTileLeftpx;this.ZdcSubMapClass.style.top=this.ZdcSubMapTileToppx;this.ZdcSubMapClass.style.width=this.ZdcSubMapTileWpx;this.ZdcSubMapClass.style.height=this.ZdcSubMapTileHpx;var _2dc=Number(this.ZdcSubMapClipRect.Left)+Number(this.ZdcSubMapClipRect.Width);var _2dd=Number(this.ZdcSubMapClipRect.Top)+Number(this.ZdcSubMapClipRect.Height);this.ZdcSubMapClass.style.clip="rect("+this.ZdcSubMapClipRect.Top+"px "+_2dc+"px "+_2dd+"px "+this.ZdcSubMapClipRect.Left+"px)";if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)!=0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)!=0){this.ZdcSubMapMode=1;}if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)==0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)==0){this.ZdcSubMapMode=2;}if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)!=0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)==0){this.ZdcSubMapMode=3;}if(ZdcCommon.Math_mod(this.ZdcTileLayerMaxI,2)==0&&ZdcCommon.Math_mod(this.ZdcTileLayerMaxJ,2)!=0){this.ZdcSubMapMode=4;}};ZdcSubMap.prototype.SetMapLocationAndScale=function(_2de,_2df,_2e0){var obj=ZdcCommon.ll2pixel(_2de,_2df,_2e0);var _2e2=obj.mesh;objlist=_2e2.split("_");this.SetMapImage(objlist[1],objlist[2],objlist[0]);var _2e3;var _2e4;switch(this.ZdcSubMapMode){case 1:_2e3=(this.ZdcTileWpx/2)-Number(obj.offx);_2e4=(this.ZdcTileHpx/2)-Number(obj.offy);break;case 2:_2e3=this.ZdcTileWpx-Number(obj.offx);_2e4=this.ZdcTileHpx-Number(obj.offy);break;case 3:_2e3=(this.ZdcTileWpx/2)-Number(obj.offx);_2e4=this.ZdcTileHpx-Number(obj.offy);break;case 4:_2e3=this.ZdcTileWpx-Number(obj.offx);_2e4=(this.ZdcTileHpx/2)-Number(obj.offy);break;default:_2e3=(this.ZdcTileWpx/2)-Number(obj.offx);_2e4=(this.ZdcTileHpx/2)-Number(obj.offy);break;}this.ZdcCenter.px=this.ZdcSubMapCenterpx.x-_2e3;this.ZdcCenter.py=this.ZdcSubMapCenterpx.y-_2e4;this.mx=_2de;this.my=_2df;this.s=_2e0;this.SetCenterLL(this.mx,this.my);this.ZdcBaseXpx=_2e3;this.ZdcBaseYpx=_2e4;this.SetMapLayerPos(_2e3,_2e4);ZdcEvent.trigger(this,"scrollmapend");};ZdcSubMap.prototype.SetScale=function(opt){var obj=ZdcCommon.ll2pixel(this.mx,this.my,this.s);var _2e7=obj.mesh;objlist=_2e7.split("_");this.SetMapImage(objlist[1],objlist[2],objlist[0]);var _2e8;var _2e9;switch(this.ZdcSubMapMode){case 1:_2e8=(this.ZdcTileWpx/2)-Number(obj.offx);_2e9=(this.ZdcTileHpx/2)-Number(obj.offy);break;case 2:_2e8=this.ZdcTileWpx-Number(obj.offx);_2e9=this.ZdcTileHpx-Number(obj.offy);break;case 3:_2e8=(this.ZdcTileWpx/2)-Number(obj.offx);_2e9=this.ZdcTileHpx-Number(obj.offy);break;case 4:_2e8=this.ZdcTileWpx-Number(obj.offx);_2e9=(this.ZdcTileHpx/2)-Number(obj.offy);break;default:_2e8=(this.ZdcTileWpx/2)-Number(obj.offx);_2e9=(this.ZdcTileHpx/2)-Number(obj.offy);break;}this.ZdcCenter.px=this.ZdcSubMapCenterpx.x-_2e8;this.ZdcCenter.py=this.ZdcSubMapCenterpx.y-_2e9;this.SetCenterLL(this.mx,this.my);this.ZdcBaseXpx=_2e8;this.ZdcBaseYpx=_2e9;this.SetMapLayerPos(_2e8,_2e9);ZdcEvent.trigger(this,"changezoomend");this.ZdcMapAccessLog("ChangeZoom");};ZdcSubMap.prototype.SetMapImage=function(_2ea,_2eb,_2ec){_2ea=String(_2ea);_2eb=String(_2eb);if(ZdcCommon.StrCmp(_2ea.substr(0,1),"m")==0){var msw=_2ea.substr(1,ZdcCommon.StrLen(_2ea)-1);_2ea=(-1)*msw;}if(ZdcCommon.StrCmp(_2eb.substr(0,1),"m")==0){var msh=_2eb.substr(1,ZdcCommon.StrLen(_2eb)-1);_2eb=(-1)*msh;}this.ZdcTileCodeX=Number(_2ea);this.ZdcTileCodeY=Number(_2eb);var mx;var my;var _2f1;switch(this.ZdcSubMapMode){case 1:var lx=Math.floor(this.ZdcTileLayerMaxI/2)+1;var ly=Math.floor(this.ZdcTileLayerMaxJ/2)+1;break;case 2:var lx=Math.floor(this.ZdcTileLayerMaxI/2);var ly=Math.floor(this.ZdcTileLayerMaxJ/2);break;case 3:var lx=Math.floor(this.ZdcTileLayerMaxI/2)+1;var ly=Math.floor(this.ZdcTileLayerMaxJ/2);break;case 4:var lx=Math.floor(this.ZdcTileLayerMaxI/2);var ly=Math.floor(this.ZdcTileLayerMaxJ/2)+1;break;default:var lx=Math.floor(this.ZdcTileLayerMaxI/2)+1;var ly=Math.floor(this.ZdcTileLayerMaxJ/2)+1;break;}for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){mx=_2ea-lx+i;my=_2eb-j+ly;if(mx<0){mx="m"+Math.abs(mx);}if(my<0){my="m"+Math.abs(my);}_2f1=_2ec+"_"+mx+"_"+my+"_"+0+"_"+this.ZdcSubMapTypeOpt;if(ZdcMap.AccessText=="10200000"){if(this.ZdcSubMapRasterEngine){this.ZdcTileLayer[j][i].innerHTML="<IMG  style='border:1px solid #666666' src="+this.ZdcSubMapTypeObj.server[this.ZdcSubMapType]+"?mesh="+_2f1+" >";}else{var _2f6=this.GetImageUrl(mx,my,_2ec);this.ZdcTileLayer[j][i].innerHTML="<IMG src="+_2f6+">";}}else{this.ZdcTileLayer[j][i].innerHTML="<IMG src="+ZdcCommon.ZdcMapLog+">";}this.ZdcTileLayer[j][i].style.overflow="hidden";this.ZdcTileLayer[j][i].id=_2f1;}}};ZdcSubMap.prototype.SetCenterLL=function(x,y){var zpt=ZdcCommon.ConvertMSXY2LL(x,y,1);this.ZdcCenter.lon=zpt.lon;this.ZdcCenter.lat=zpt.lat;var pts=ZdcCommon.ConvertMSXY2LL(x,y,2);};ZdcSubMap.prototype.SetMapLayerPos=function(_2fb,_2fc){for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i].style.left=_2fb-(1*this.ZdcTileWpx)+(i*this.ZdcTileWpx);this.ZdcTileLayer[j][i].style.top=_2fc-(1*this.ZdcTileHpx)+(j*this.ZdcTileHpx);}}return;};ZdcSubMap.prototype.scrollMap=function(px,py,setp){if(this.OnScroll){return;}if(Math.abs(px)>2048||Math.abs(py)>2048){return -1;}ZdcEvent.trigger(this,"scrollmapstart");this.CountScr=0;this.panTo(px,py,setp);return 1;};ZdcSubMap.prototype.panTo=function(px,py,setp){if(setp==null){setp=null;}this.OnScroll=true;var _305=0;switch(this.CountScr){case 0:_305=4;break;case 1:_305=4;break;case 2:_305=4;break;case 3:_305=8;break;case 4:_305=16;break;case 5:_305=32;break;case 6:_305=64;break;case 7:_305=64;break;default:_305=0;break;}var nx=px/_305;var ny=py/_305;if(nx==0){var _308=1;}else{var _308=Math.abs(nx)/nx;}if(ny==0){var _309=1;}else{var _309=Math.abs(ny)/ny;}this.ZdcSubMapTileMoveX=Math.round((Math.abs(nx)))*_308;this.ZdcSubMapTileMoveY=Math.round((Math.abs(ny)))*_309;this.ZdcMoveX=this.ZdcSubMapTileMoveX;this.ZdcMoveY=this.ZdcSubMapTileMoveY;ZdcEvent.trigger(this,"scrollmap");this.MoveMapByXY(this.ZdcMoveX,this.ZdcMoveY);this.ReSetMapBase();this.CountScr++;if(this.CountScr>this.CountScrMax){clearTimeout(this.TimeID);this.CountScr=0;this.OnScroll=false;if(setp!=null){this.mx=setp.mx;this.my=setp.my;this.SetCenterLL(this.mx,this.my);}ZdcEvent.trigger(this,"scrollmapend");this.ZdcMapAccessLog("scrollTo");return;}this.TimeID=setTimeout((function(){this.panTo(px,py,setp);}).bind(this),this.ScrSpeed);};ZdcSubMap.prototype.SetZoom=function(zm,opt){this.orgs=this.s;this.s=Number(this.s)+zm;if(this.s<this.zoomMin){this.s=this.zoomMin;}if(this.s>this.zoomMax){this.s=this.zoomMax;}if(this.orgs!=this.s){this.SetScale(opt);this.ShowScaleInfo();}};ZdcSubMap.prototype.ShowScaleInfo=function(){var pts=ZdcCommon.ConvertMSXY2LL(this.mx,this.my,2);};ZdcSubMap.prototype.MoveMapByXY=function(_30d,_30e){while(this.OnSetMapBase){}if(document.all){for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i].style.top=this.ZdcTileLayer[j][i].style.pixelTop+_30e;this.ZdcTileLayer[j][i].style.left=this.ZdcTileLayer[j][i].style.pixelLeft+_30d;}}}else{for(var j=1;j<=this.ZdcTileLayerMaxJ;j++){for(var i=1;i<=this.ZdcTileLayerMaxI;i++){this.ZdcTileLayer[j][i].style.top=parseInt(this.ZdcTileLayer[j][i].style.top)+_30e;this.ZdcTileLayer[j][i].style.left=parseInt(this.ZdcTileLayer[j][i].style.left)+_30d;}}}};ZdcSubMap.prototype.ReSetMapBase=function(){var Xx;var Yy;var ratx=1;var raty=1;this.OnSetMapBase=true;if(this.ZdcMoveY!=0){this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcMoveY;this.ZdcCenter.py=this.ZdcCenter.py+this.ZdcMoveY;raty=Math.floor(Math.abs(this.ZdcBaseYpx/this.ZdcTileHpx))+1;}if(this.ZdcMoveX!=0){this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcMoveX;this.ZdcCenter.px=this.ZdcCenter.px+this.ZdcMoveX;ratx=Math.floor(Math.abs(this.ZdcBaseXpx/this.ZdcTileWpx))+1;}if(this.CountScr==this.CountScrMax){if(this.ZdcBaseYpx>=this.ZdcTileHpx&&this.ZdcBaseXpx>=this.ZdcTileWpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX-1*ratx;Yy=this.ZdcTileCodeY+1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx-this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx-this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx<=(-1*this.ZdcTileHpx)&&this.ZdcBaseXpx<=(-1*this.ZdcTileWpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX+1*ratx;Yy=this.ZdcTileCodeY-1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx>=this.ZdcTileHpx&&this.ZdcBaseXpx<=(-1*this.ZdcTileWpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX+1*ratx;Yy=this.ZdcTileCodeY+1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx-this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx<=(-1*this.ZdcTileHpx)&&this.ZdcBaseXpx>=this.ZdcTileWpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX-1*ratx;Yy=this.ZdcTileCodeY-1*raty;this.ZdcBaseXpx=this.ZdcBaseXpx-this.ZdcTileWpx*ratx;this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx<=(-1*this.ZdcTileHpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX;Yy=this.ZdcTileCodeY-1*raty;this.ZdcBaseYpx=this.ZdcBaseYpx+this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseYpx>=this.ZdcTileHpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX;Yy=this.ZdcTileCodeY+1*raty;this.ZdcBaseYpx=this.ZdcBaseYpx-this.ZdcTileHpx*raty;this.ChgPg=1;}if(this.ZdcBaseXpx<=(-1*this.ZdcTileWpx)&&this.ChgPg==0){Xx=this.ZdcTileCodeX+1*ratx;Yy=this.ZdcTileCodeY;this.ZdcBaseXpx=this.ZdcBaseXpx+this.ZdcTileWpx*ratx;this.ChgPg=1;}if(this.ZdcBaseXpx>=this.ZdcTileWpx&&this.ChgPg==0){Xx=this.ZdcTileCodeX-1*ratx;Yy=this.ZdcTileCodeY;this.ZdcBaseXpx=this.ZdcBaseXpx-this.ZdcTileWpx*ratx;this.ChgPg=1;}}if(this.ChgPg!=0){this.ChgPg=0;this.mx=Math.round(this.mx-this.ZdcMoveX*(ZdcZoom.map_defw[this.s]));this.my=Math.round(Number(this.my)+Number(this.ZdcMoveY*(ZdcZoom.map_defh[this.s])));this.SetCenterLL(this.mx,this.my);this.SetMapImage(Xx,Yy,this.s);this.SetMapLayerPos(this.ZdcBaseXpx,this.ZdcBaseYpx);}else{this.mx=Math.round(this.mx-this.ZdcMoveX*(ZdcZoom.map_defw[this.s]));this.my=Math.round(Number(this.my)+Number(this.ZdcMoveY*(ZdcZoom.map_defh[this.s])));this.SetCenterLL(this.mx,this.my);}this.OnSetMapBase=false;};ZdcSubMap.prototype.setMapLocation=function(p,s){if(s==null){s=this.s;}else{var orgs=this.s;}if(s<this.zoomMin||s>this.zoomMax){return -1;}if(p.mx==this.mx&&p.my==this.my&&s==null){return -1;}if(p.mx==this.mx&&p.my==this.my&&s==this.s){return -1;}if(p.mx!=this.mx||p.my!=this.my){var sfw=Math.round((this.mx-p.mx)/ZdcZoom.map_defw[this.s]);var sfh=Math.round((p.my-this.my)/ZdcZoom.map_defh[this.s]);this.lon=p.lon;this.lat=p.lat;this.mx=p.mx;this.my=p.my;this.s=s;this.SetMapLocationAndScale(p.mx,p.my,s);}this.ShowScaleInfo();if(orgs!=null){if(this.s!=orgs){ZdcEvent.trigger(this,"changezoomend");}}};ZdcSubMap.prototype.setMapScale=function(s){if(s<this.zoomMin||s>this.zoomMax){return (-1);}if(this.s!=s){this.orgs=this.s;this.s=s;this.SetScale("zoom");this.ShowScaleInfo();}};ZdcSubMap.prototype.getMapWindowSize=function(){var _31b=new ZdcWindow();if(document.all){_31b.top=this.ZdcSubMapBase.style.pixelTop;_31b.left=this.ZdcSubMapBase.style.pixelLeft;}else{_31b.top=parseInt(this.ZdcSubMapBase.style.top);_31b.left=parseInt(this.ZdcSubMapBase.style.left);}_31b.width=this.ZdcSubMapBase.style.width;_31b.height=this.ZdcSubMapBase.style.height;return _31b;};ZdcSubMap.prototype.getMapLocation=function(){var p=new ZdcPoint(this.mx,this.my,2);return p;};ZdcSubMap.prototype.getMapScale=function(){return this.s;};ZdcSubMap.prototype.getMapBoundBox=function(p,s){var box=new ZdcBox();if(p!=null&&s!=null){if(s<this.zoomMin||s>this.zoomMax){s=this.s;}box.minx=p.mx-Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[s]);box.maxx=p.mx+Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[s]);box.miny=p.my-Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[s]);box.maxy=p.my+Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}else{if(p!=null&&s==null){box.minx=p.mx-Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[this.s]);box.maxx=p.mx+Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[this.s]);box.miny=p.my-Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[this.s]);box.maxy=p.my+Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[this.s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}else{if(p==null&&s!=null){box.minx=this.mx-Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[s]);box.maxx=this.mx+Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[s]);box.miny=this.my-Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[s]);box.maxy=this.my+Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}else{box.minx=this.mx-Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[this.s]);box.maxx=this.mx+Math.round((this.ZdcSubMapWpx/2)*ZdcZoom.map_defw[this.s]);box.miny=this.my-Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[this.s]);box.maxy=this.my+Math.round((this.ZdcSubMapHpx/2)*ZdcZoom.map_defh[this.s]);var p1=new ZdcPoint(box.minx,box.miny,2);box.minlon=p1.lon;box.minlat=p1.lat;var p2=new ZdcPoint(box.maxx,box.maxy,2);box.maxlon=p2.lon;box.maxlat=p2.lat;}}}return box;};ZdcSubMap.prototype.mapZoomIn=function(gap,opt){if(this.s==this.zoomMax){return -1;}if(gap==null){gap=1;}if(opt==null){opt="zoom";}this.SetZoom(gap,opt);this.ShowScaleInfo();return this.s;};ZdcSubMap.prototype.mapZoomOut=function(gap,opt){if(this.s==this.zoomMin){return -1;}if(gap==null){gap=1;}if(opt==null){opt="zoom";}this.SetZoom(-1*gap,opt);this.ShowScaleInfo();return this.s;};ZdcSubMap.prototype.scrollToCenter=function(p){if(this.getMapBoundBox().isContainPoint(p)){var _327=Math.round((this.mx-p.mx)/ZdcZoom.map_defw[this.s]);var _328=Math.round((p.my-this.my)/ZdcZoom.map_defh[this.s]);this.scrollMap(_327,_328);}else{this.SetMapLocationAndScale(p.mx,p.my,this.s);}return;};ZdcSubMap.prototype.openSubMap=function(){this.ZdcSubMapOpenImage.style.visibility="hidden";if(parseInt(this.ZdcSubMapBase.style.width)<parseInt(this.formatWidth)){this.ZdcSubMapBase.style.width=parseInt(this.ZdcSubMapBase.style.width)+this.Sft_Width*(-1);this.ZdcSubMapBase.style.left=parseInt(this.ZdcSubMapBase.style.left)+this.Sft_Left*(-1);}if(parseInt(this.ZdcSubMapBase.style.height)<parseInt(this.formatHeight)){this.ZdcSubMapBase.style.height=parseInt(this.ZdcSubMapBase.style.height)+this.Sft_Height*(-1);this.ZdcSubMapBase.style.top=parseInt(this.ZdcSubMapBase.style.top)+this.Sft_Top*(-1);}if(parseInt(this.ZdcSubMapBase.style.width)>parseInt(this.formatWidth)){this.ZdcSubMapBase.style.width=parseInt(this.formatWidth);this.ZdcSubMapBase.style.left=parseInt(this.formatLeft);this.ZdcSubMapBase.style.height=parseInt(this.formatHeight);this.ZdcSubMapBase.style.top=parseInt(this.formatTop);}if(parseInt(this.ZdcSubMapBase.style.height)>parseInt(this.formatHeight)){this.ZdcSubMapBase.style.width=parseInt(this.formatWidth);this.ZdcSubMapBase.style.left=parseInt(this.formatLeft);this.ZdcSubMapBase.style.height=parseInt(this.formatHeight);this.ZdcSubMapBase.style.top=parseInt(this.formatTop);}if(parseInt(this.ZdcSubMapBase.style.height)==parseInt(this.formatHeight)&&parseInt(this.ZdcSubMapBase.style.width)==parseInt(this.formatWidth)){this.ZdcSubMapCloseImage.style.visibility="visible";if(this.pMap&&this.SubMapPosition==4){this.pMap.SetCopyrightOnMap();}return;}this.ZdcSubMapClass.style.cursor="hand";setTimeout((function(){this.openSubMap();}).bind(this),0);};ZdcSubMap.prototype.closeSubMap=function(){this.ZdcSubMapClass.style.cursor="hand";this.tmpBaseWidth=this.ZdcSubMapBase.style.width;this.tmpBaseHeight=this.ZdcSubMapBase.style.height;this.tmpBaseLeft=this.ZdcSubMapBase.style.left;this.tmpBaseTop=this.ZdcSubMapBase.style.top;if(this.SubMapPosition==1){if(parseInt(this.ZdcSubMapBase.style.width)>30){this.ZdcSubMapBase.style.width=parseInt(this.ZdcSubMapBase.style.width)+this.Sft_Width;this.ZdcSubMapBase.style.left=parseInt(this.ZdcSubMapBase.style.left)+this.Sft_Left;}if(parseInt(this.ZdcSubMapBase.style.height)>30){this.ZdcSubMapBase.style.height=parseInt(this.ZdcSubMapBase.style.height)+this.Sft_Height;this.ZdcSubMapBase.style.top=parseInt(this.ZdcSubMapBase.style.top)+this.Sft_Top;}if(parseInt(this.ZdcSubMapBase.style.width)<31){this.ZdcSubMapBase.style.width=this.StorageButtonSize;}if(parseInt(this.ZdcSubMapBase.style.height)<31){this.ZdcSubMapBase.style.height=this.StorageButtonSize;}}else{if(this.SubMapPosition==2){if(parseInt(this.ZdcSubMapBase.style.width)>30){this.ZdcSubMapBase.style.width=parseInt(this.ZdcSubMapBase.style.width)+this.Sft_Width;this.ZdcSubMapBase.style.left=parseInt(this.ZdcSubMapBase.style.left)+this.Sft_Left;}if(parseInt(this.ZdcSubMapBase.style.height)>30){this.ZdcSubMapBase.style.height=parseInt(this.ZdcSubMapBase.style.height)+this.Sft_Height;}if(parseInt(this.ZdcSubMapBase.style.width)<31){this.ZdcSubMapBase.style.width=this.StorageButtonSize;this.ZdcSubMapBase.style.left=parseInt(this.tmpBaseWidth)+parseInt(this.tmpBaseLeft)-16;}if(parseInt(this.ZdcSubMapBase.style.height)<31){this.ZdcSubMapBase.style.height=this.StorageButtonSize;}}else{if(this.SubMapPosition==3){if(parseInt(this.ZdcSubMapBase.style.width)>30){this.ZdcSubMapBase.style.width=parseInt(this.ZdcSubMapBase.style.width)+this.Sft_Width;}if(parseInt(this.ZdcSubMapBase.style.height)>30){this.ZdcSubMapBase.style.height=parseInt(this.ZdcSubMapBase.style.height)+this.Sft_Height;this.ZdcSubMapBase.style.top=parseInt(this.ZdcSubMapBase.style.top)+this.Sft_Top;}if(parseInt(this.ZdcSubMapBase.style.width)<31){this.ZdcSubMapBase.style.width=this.StorageButtonSize;}if(parseInt(this.ZdcSubMapBase.style.height)<31){this.ZdcSubMapBase.style.height=this.StorageButtonSize;this.ZdcSubMapBase.style.top=parseInt(this.tmpBaseHeight)+parseInt(this.tmpBaseTop)-16;}}else{if(this.SubMapPosition==4){if(parseInt(this.ZdcSubMapBase.style.width)>30){this.ZdcSubMapBase.style.width=parseInt(this.ZdcSubMapBase.style.width)+this.Sft_Width;this.ZdcSubMapBase.style.left=parseInt(this.ZdcSubMapBase.style.left)+this.Sft_Left;}if(parseInt(this.ZdcSubMapBase.style.height)>30){this.ZdcSubMapBase.style.height=parseInt(this.ZdcSubMapBase.style.height)+this.Sft_Height;this.ZdcSubMapBase.style.top=parseInt(this.ZdcSubMapBase.style.top)+this.Sft_Top;}if(parseInt(this.ZdcSubMapBase.style.width)<31){this.ZdcSubMapBase.style.width=this.StorageButtonSize;this.ZdcSubMapBase.style.left=parseInt(this.tmpBaseWidth)+parseInt(this.tmpBaseLeft)-16;}if(parseInt(this.ZdcSubMapBase.style.height)<31){this.ZdcSubMapBase.style.height=this.StorageButtonSize;this.ZdcSubMapBase.style.top=parseInt(this.tmpBaseHeight)+parseInt(this.tmpBaseTop)-16;}}}}}if(parseInt(this.ZdcSubMapBase.style.height)==this.StorageButtonSize&&parseInt(this.ZdcSubMapBase.style.width)==this.StorageButtonSize){this.ZdcSubMapOpenImage.style.visibility="visible";this.ZdcSubMapCloseImage.style.visibility="hidden";if(this.pMap&&this.SubMapPosition==4){this.pMap.SetCopyrightOnMap();}return;}setTimeout((function(){this.closeSubMap();}).bind(this),0);};ZdcSubMap.prototype.dragOn=function(){this.ZdcDragStatus=true;};ZdcSubMap.prototype.dragOff=function(){this.ZdcDragStatus=false;};ZdcSubMap.prototype.getDragStatus=function(){return this.ZdcDragStatus;};ZdcSubMap.prototype.MouseClick=function(_329){var p=ZdcEvent.GetEventPosition(_329,this.ZdcSubMapBase);var x=p.x;var y=p.y;var _32d=x-(parseInt(this.ZdcSubMapBase.style.width)/2);var _32e=(parseInt(this.ZdcSubMapBase.style.height)/2)-y;var mx=Math.floor(_32d*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.floor(_32e*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseClickX=x;this.MouseClickY=y;this.MouseCLon=pt.lon;this.MouseCLat=pt.lat;this.MouseCx=mx;this.MouseCy=my;this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;ZdcEvent.trigger(this,"clickmap");};ZdcSubMap.prototype.MouseClickZoomIn=function(_332){if(this.s<this.zoomMax){this.subonlyzoomin=true;}this.setMapScale(eval(this.getMapScale())+1);if(document.all){window.event.cancelBubble=true;}else{_332.stopPropagation();}return false;};ZdcSubMap.prototype.MouseClickZoomOut=function(_333){if(this.s>this.zoomMin){this.subonlyzoomout=true;}this.setMapScale(eval(this.getMapScale())-1);if(document.all){window.event.cancelBubble=true;}else{_333.stopPropagation();}return false;};ZdcSubMap.prototype.MouseClickOpen=function(_334){this.openSubMap();if(document.all){window.event.cancelBubble=true;}else{_334.stopPropagation();}return false;};ZdcSubMap.prototype.MouseClickClose=function(_335){this.closeSubMap();if(document.all){window.event.cancelBubble=true;}else{_335.stopPropagation();}return false;};ZdcSubMap.prototype.MouseMove=function(_336){if(ZdcDrag.IsDragging()){ZdcEvent.trigger(this,"dragmap");return false;}var p=ZdcEvent.GetEventPosition(_336,this.ZdcSubMapBase);var x=p.x;var y=p.y;var _33a=x-(parseInt(this.ZdcSubMapBase.style.width)/2);var _33b=(parseInt(this.ZdcSubMapBase.style.height)/2)-y;var mx=Math.floor(_33a*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.floor(_33b*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;ZdcEvent.trigger(this,"mousemove");return false;};ZdcSubMap.prototype.MouseOver=function(){ZdcEvent.trigger(this,"mouseovermap");};ZdcSubMap.prototype.MouseOut=function(){ZdcEvent.trigger(this,"mouseoutmap");};ZdcSubMap.prototype.MouseDown=function(_33f){ZdcEvent.trigger(this,"dragmapstart");if(this.ZdcDragStatus){if(this.mousecursor=="hand"){this.ZdcSubMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"),pointer";if(ZdcCommon.UserAgentIsSafari()){this.ZdcSubMapClass.style.cursor="move";}}else{if(document.all){this.ZdcSubMapClass.style.cursor="all-scroll";}else{this.ZdcSubMapClass.style.cursor="move";}}this.MaddX=0;this.MaddY=0;if(this.ZdcDragOx==0&&this.ZdcDragOy==0){this.ZdcDragOx=_33f.screenX;this.ZdcDragOy=_33f.screenY;}this.ZdcDragMx=_33f.screenX;this.ZdcDragMy=_33f.screenY;this.ZdcDragEx=_33f.screenX;this.ZdcDragEy=_33f.screenY;var now=new Date();this.ZdcDragTime=now.getTime();ZdcDrag.StartDragging(this,this.DraggingMap.bindAsEventListener(this),this.DraggingMapEnd.bindAsEventListener(this));}return false;};ZdcSubMap.prototype.MouseDownZoom=function(_341){if(document.all){window.event.cancelBubble=true;}else{_341.stopPropagation();}return false;};ZdcSubMap.prototype.MouseUp=function(_342){if(ZdcDrag.IsDragging()){return false;}return false;};ZdcSubMap.prototype.MouseUpZoom=function(_343){ZdcEvent.trigger(this,"mouseup");return false;};ZdcSubMap.prototype.MouseDblClick=function(_344){if(this.OnScroll){return;}var p=ZdcEvent.GetEventPosition(_344,this.ZdcSubMapBase);var x=p.x;var y=p.y;var _348=x-(parseInt(this.ZdcSubMapBase.style.width)/2);var _349=(parseInt(this.ZdcSubMapBase.style.height)/2)-y;var mx=Math.floor(_348*ZdcZoom.map_defw[this.s]+this.mx);var my=Math.floor(_349*ZdcZoom.map_defh[this.s]+this.my);var pt=ZdcCommon.ConvertMSXY2LL(mx,my,1);this.MouseLon=pt.lon;this.MouseLat=pt.lat;this.MouseMoveX=x;this.MouseMoveY=y;this.MouseMx=mx;this.MouseMy=my;_348=Math.abs(parseInt(this.ZdcSubMapBase.style.width)/2)-x;_349=Math.abs(parseInt(this.ZdcSubMapBase.style.height)/2)-y;this.scrollMap(_348,_349);ZdcEvent.trigger(this,"dblclickend");return;};ZdcSubMap.prototype.MouseDblClickZoom=function(_34d){if(document.all){window.event.cancelBubble=true;}else{_34d.stopPropagation();}return false;};ZdcSubMap.prototype.DraggingMap=function(e){var now=new Date();var _350=now.getTime();var _351=Math.abs(this.ZdcDragTime-_350);this.ZdcDragTime=_350;if(document.all){this.ZdcDragMx=event.screenX;this.ZdcDragMy=event.screenY;}else{if(e){this.ZdcDragMx=e.screenX;this.ZdcDragMy=e.screenY;}}var _352;if(_351>15){_352=1;}if(_351<=15&&_351>12){_352=32;}if(_351<=12&&_351>10){_352=64;}if(_351<=10&&_351>8){_352=128;}if(_351<=8&&_351>5){_352=356;}if(_351<=5&&_351>3){_352=368;}if(_351<=3){_352=512;}if(Math.abs(this.ZdcDragEx-this.ZdcDragMx)>_352||Math.abs(this.ZdcDragEy-this.ZdcDragMy)>_352){var sX=this.ZdcDragMx-this.ZdcDragEx;var sY=this.ZdcDragMy-this.ZdcDragEy;this.ZdcDragEx=this.ZdcDragMx;this.ZdcDragEy=this.ZdcDragMy;this.OnScroll=true;this.MoveMapByXY(sX,sY);this.OnScroll=false;this.MaddX=this.MaddX+sX;this.MaddY=this.MaddY+sY;if(Math.abs(this.MaddX)>(this.ZdcTileWpx)||Math.abs(this.MaddY)>(this.ZdcTileHpx)){this.MaddX=0;this.MaddY=0;this.ZdcMoveX=this.ZdcDragEx-this.ZdcDragOx;this.ZdcMoveY=this.ZdcDragEy-this.ZdcDragOy;this.CountScr=this.CountScrMax;this.ReSetMapBase();this.ZdcDragOx=this.ZdcDragEx;this.ZdcDragOy=this.ZdcDragEy;}this.DraggingMap();}return false;};ZdcSubMap.prototype.DraggingMapEnd=function(e){ZdcDrag.ClearDraging();if(document.all){this.ZdcDragMx=event.screenX;this.ZdcDragMy=event.screenY;}else{if(e){this.ZdcDragMx=e.screenX;this.ZdcDragMy=e.screenY;}else{return;}}var sX=this.ZdcDragMx-this.ZdcDragEx;var sY=this.ZdcDragMy-this.ZdcDragEy;this.ZdcDragEx=this.ZdcDragMx;this.ZdcDragEy=this.ZdcDragMy;this.MoveMapByXY(sX,sY);this.ZdcMoveX=this.ZdcDragEx-this.ZdcDragOx;this.ZdcMoveY=this.ZdcDragEy-this.ZdcDragOy;this.CountScr=this.CountScrMax;this.ReSetMapBase();if(this.mousecursor=="hand"){if(ZdcCommon.UserAgentIsFireFox()){this.ZdcSubMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}else{this.ZdcSubMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}}else{this.ZdcSubMapClass.style.cursor="default";}if(this.ZdcDragOx!=this.ZdcDragEx||this.ZdcDragOy!=this.ZdcDragEy){this.ZdcMapAccessLog("DragMap");ZdcEvent.trigger(this,"dragmapend");}this.ZdcDragOx=0;this.ZdcDragOy=0;return false;};ZdcSubMap.prototype.ZdcMapAccessLog=function(txt){var _359=this.ZdcMapAccess+txt+"_lon"+this.mx+"_lat"+this.my+"_scale"+this.s+"_mtype"+this.ZdcMapType+"&opt="+ZdcCommon.ZDC_OPT;return;};ZdcSubMap.prototype.setMouseCursor=function(type){if(type!="default"&&type!="hand"){return -1;}this.mousecursor=type;if(this.mousecursor=="hand"){this.ZdcSubMapClass.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"),pointer";}if(this.mousecursor=="default"){this.ZdcSubMapClass.style.cursor="default";}};ZdcSubMap.prototype.setMapType=function(t,opt){if(0<t&&t<11){this.ZdcSubMapType=t;if(this.ZdcSubMapType<10){this.ZdcSubMapRasterEngine=false;}else{this.ZdcSubMapRasterEngine=true;}if(opt!=null){this.ZdcSubMapTypeOpt=opt;}}else{return -1;}};ZdcSubMap.prototype.getMapType=function(){return this.ZdcSubMapType;};ZdcSubMap.prototype.reflashMap=function(){this.SetMapLocationAndScale(this.mx,this.my,this.s);};ZdcSubMap.prototype.GetImageUrl=function(_35d,_35e,zoom){function FloatToInt(a){var b=1;if(a<0){b=-1;}return b*Math.floor(Math.abs(a));}G_LevelToTreeLevel=new Array();G_LevelToTreeLevel[18]=3;G_LevelToTreeLevel[17]=3;G_LevelToTreeLevel[16]=3;G_LevelToTreeLevel[15]=2;G_LevelToTreeLevel[14]=2;G_LevelToTreeLevel[13]=2;G_LevelToTreeLevel[12]=2;G_LevelToTreeLevel[11]=2;G_LevelToTreeLevel[10]=2;G_LevelToTreeLevel[9]=1;G_LevelToTreeLevel[8]=1;G_LevelToTreeLevel[7]=1;G_LevelToTreeLevel[6]=1;G_LevelToTreeLevel[5]=0;G_LevelToTreeLevel[4]=0;G_LevelToTreeLevel[3]=0;G_LevelToTreeLevel[2]=0;G_LevelToTreeLevel[1]=0;var _362,sMeshY;_362=String(_35d);sMeshY=String(_35e);if(ZdcCommon.StrCmp(_362.substr(0,1),"m")==0){var msw=_362.substr(1,ZdcCommon.StrLen(_362)-1);_362=(-1)*msw;}if(ZdcCommon.StrCmp(sMeshY.substr(0,1),"m")==0){var msh=sMeshY.substr(1,ZdcCommon.StrLen(sMeshY)-1);sMeshY=(-1)*msh;}var _365=new Number(_362);var _366=new Number(sMeshY);var nX=FloatToInt(ZdcZoom.OX+(_365+0.5)*ZdcZoom.PX*ZdcZoom.map_defw[zoom]);var nY=FloatToInt(ZdcZoom.OY+(_366+0.5)*ZdcZoom.PY*(ZdcZoom.map_defh[zoom]));var nX1=FloatToInt(nX/3600/1000-100);nX-=FloatToInt((100+nX1)*3600*1000);var nX2=FloatToInt(nX*8/3600/1000);nX-=FloatToInt(nX2*3600*1000/8);var nX3=FloatToInt(nX*8*10/3600/1000);var nY1=FloatToInt(nY*3/2/3600/1000);nY-=FloatToInt(nY1*3600*1000*2/3);var nY2=FloatToInt(nY*3*8/2/3600/1000);nY-=FloatToInt(nY2*2*3600*1000/3/8);var nY3=FloatToInt(nY*3*8*10/2/3600/1000);var _36f=""+nY1+nX1+nY2+nX2+nY3+nX3;var _370=G_LevelToTreeLevel[zoom];var _371=this.ZdcSubMapTypeObj.server[this.ZdcSubMapType]+zoom;if(_370>0){_371+="/"+_36f.substr(0,4);if(_370>1){_371+="/"+_36f.substr(4,2);if(_370>2){_371+="/"+_36f.substr(6,2);}}}_371+="/";_371=_371+zoom+"_"+_35d+"_"+_35e+"."+this.ZdcSubMapTypeObj.ext[this.ZdcSubMapType];return _371;};ZdcSubMap.prototype.setParentMap=function(pMap,opt){this.pMap=pMap;var cMap=this;this.cMap=this;ZdcEvent.addListener(pMap,"dblclickend",function(){cMap.setMapLocation(pMap.getMapLocation());});ZdcEvent.addListener(pMap,"dragmapend",function(){cMap.setMapLocation(pMap.getMapLocation());});ZdcEvent.addListener(pMap,"scrollmapend",function(){cMap.setMapLocation(pMap.getMapLocation());});ZdcEvent.addListener(pMap,"clickmap",function(){cMap.setMapLocation(pMap.getMapLocation());});ZdcEvent.addListener(pMap,"resizeend",function(){if(!cMap.firstflg){opt=cMap.s-pMap.s;cMap.SetZoomImage(pMap,opt);pMap.firstflg=true;var _375=eval(pMap.getMapScale())+eval(opt);cMap.setMapScale(_375);cMap.setMapLocation(pMap.getMapLocation());pMap.firstflg=false;}});ZdcEvent.addListener(pMap,"changezoomend",function(){if(!cMap.firstflg){cMap.SetZoomImage(pMap,cMap.zoomopt);pMap.firstflg=true;var _376=eval(pMap.getMapScale())+eval(cMap.zoomopt);if(pMap.getMapScale()+cMap.zoomopt<this.zoomMin){_376=this.zoomMin;}if(pMap.getMapScale()+cMap.zoomopt>this.zoomMax){_376=this.zoomMax;}cMap.setMapScale(_376);cMap.setMapLocation(pMap.getMapLocation());pMap.firstflg=false;}});};ZdcSubMap.prototype.SetZoomImage=function(pMap,opt){this.cMap.ZdcpMapRangeImage.style.zIndex=19;this.cMap.ZdcSubMapClass.appendChild(this.cMap.ZdcpMapRangeImage);this.cMap.ZdcpMapRangeImage.style.visibility="visible";this.cMap.ZdcpMapRangeInnerImage.style.zIndex=18;this.cMap.ZdcSubMapClass.appendChild(this.cMap.ZdcpMapRangeInnerImage);this.cMap.ZdcpMapRangeInnerImage.style.visibility="visible";this.cMap.ZdcpMapRangeInnerImage.style.backgroundColor="#7b68ff";this.cMap.ZdcpMapRangeInnerImage.style.filter="alpha(opacity=25)";this.cMap.ZdcpMapRangeInnerImage.style.mozOpacity=25/100;this.cMap.ZdcpMapRangeInnerImage.style.opacity=25/100;var img=this.cMap.pMapRangeImageClear;var _37a=this.cMap.pMapRangeInnerImageClear;var _37b=pMap.getMapScale();var _37c=eval(pMap.getMapScale())+eval(opt);if(_37c<this.zoomMin){_37c=this.zoomMin;}if(_37c>_37b){_37c=_37b;}var _37d=Math.floor(pMap.ZdcMapWpx*(ZdcZoom.map_defw[_37b]/ZdcZoom.map_defw[_37c]));var _37e=Math.floor(pMap.ZdcMapHpx*(ZdcZoom.map_defh[_37b]/ZdcZoom.map_defh[_37c]));this.cMap.ZdcpMapRangeImage.style.left=this.cMap.ZdcSubMapCenterpx.x-Math.floor(_37d/2)-3;this.cMap.ZdcpMapRangeImage.style.top=this.cMap.ZdcSubMapCenterpx.y-Math.floor(_37e/2)-3;if(document.all){this.cMap.ZdcpMapRangeImage.innerHTML="<DIV style='border:1px outset #7b68ff'><IMG style='border:2px outset #7b68ff' src="+img+" width="+_37d+" height="+_37e+"></DIV>";}else{this.cMap.ZdcpMapRangeImage.innerHTML="<DIV style='border-color:#5050bb #390088 #390088 #5050bb;border-width:2px;border-style:solid;'><IMG style='border-color:#7b68ff #000000 #000000 #7b68ff;border-width:1px;border-style:solid;' src="+img+" width="+_37d+" height="+_37e+"></DIV>";}this.cMap.ZdcpMapRangeInnerImage.style.left=this.cMap.ZdcSubMapCenterpx.x-Math.floor(_37d/2);this.cMap.ZdcpMapRangeInnerImage.style.top=this.cMap.ZdcSubMapCenterpx.y-Math.floor(_37e/2);this.cMap.ZdcpMapRangeInnerImage.innerHTML="<IMG src="+_37a+" width="+_37d+" height="+_37e+">";this.cMap.ZdcpMapRangeImage.style.position="absolute";this.cMap.ZdcpMapRangeInnerImage.style.position="absolute";};function ZdcUserRouteLayer(opt){this.result=null;this.LinkLayer=new ZdcShape.Layer();this.IconLayer=new ZdcUserLayer(opt);this.IconLayer.setLayerScale(1,18);this.IconLayer.setLayerType("manual");this.IconLayer.LayerID=-1;}ZdcUserRouteLayer.prototype.SetRouteResult=function(r){if(r.status!="00000000"){return false;}this.result=r;return true;};ZdcMap.prototype.addShapeLayer=function(_381){var id=0;var k=0;var tail=true;for(k=0;k<this.ZdcShapeLayer.length;k++){if(this.ZdcShapeLayer[k]==_381){return -1;}}for(k=0;k<this.ZdcShapeLayer.length;k++){if(this.ZdcShapeLayer[k].layerID>k){id=k;tail=false;break;}}if(tail){_381.layerID=this.ZdcShapeLayer.length;this.ZdcShapeLayer[_381.layerID]=_381;}else{var t=this.ZdcShapeLayer;_381.layerID=id;this.ZdcShapeLayer=[];for(k=0;k<id;k++){this.ZdcShapeLayer[k]=t[k];}this.ZdcShapeLayer[id]=_381;for(k=id;k<t.length;k++){this.ZdcShapeLayer[k+1]=t[k];}t=[];}_381.parent=this;_381.InitCavas();_381.InitShapes();return _381.layerID;};ZdcMap.prototype.removeShapeLayerById=function(id){var k;for(k=0;k<this.ZdcShapeLayer.length;k++){if(this.ZdcShapeLayer[k].layerID==id){var _388=this.ZdcShapeLayer[k];_388.clearShapes();_388.RemoveDom();_388.parent=null;var t=this.ZdcShapeLayer;this.ZdcShapeLayer=[];for(var j=0;j<t.length;j++){if(k==j){continue;}this.ZdcShapeLayer[this.ZdcShapeLayer.length]=t[j];}return true;}}return false;};ZdcMap.prototype.removeShapeLayer=function(_38b){return this.removeShapeLayerById(_38b.layerID);};ZdcMap.prototype.clearShapeLayer=function(){for(var k=0;k<this.ZdcShapeLayer.length;k++){var _38d=this.ZdcShapeLayer[k];_38d.clearShapes();_38d.RemoveDom();_38d.parent=null;}this.ZdcShapeLayer=[];};ZdcMap.prototype.getShapeLayerById=function(id){for(k=0;k<this.ZdcShapeLayer.length;k++){if(this.ZdcShapeLayer[k].layerID==id){return this.ZdcShapeLayer[k];}}return null;};ZdcMap.prototype.getShapeLayer=ZdcMap.prototype.getShapeLayerById;ZdcMap.prototype.getShapeLayerID=function(l){for(var k=0;k<this.ZdcShapeLayer.length;k++){if(l==this.ZdcShapeLayer[k]){return k;}}return -1;};ZdcMap.prototype.RedrawShapeLayer=function(a,_392){var d=_392||0;var id=a||"";if(!d){if(!id){for(var k=0;k<this.ZdcShapeLayer.length;k++){this.ZdcShapeLayer[k].redraw();}}else{if(id>=0&&id<this.ZdcShapeLayer.length){this.ZdcShapeLayer[id].redraw();}}}else{setTimeout((function(){this.RedrawShapeLayer(id);}).bind(this),_392);}};ZdcMap.prototype.UpdateShapeLayer=function(){for(var k=0;k<this.ZdcShapeLayer.length;k++){var _397=this.ZdcShapeLayer[k];var ptLB=new ZdcPixel(parseInt(_397.doc.style.left),parseInt(_397.doc.style.top)+_397.height);var ptRT=new ZdcPixel(parseInt(_397.doc.style.left)+_397.width,parseInt(_397.doc.style.top));var tpt=this.convertPixel2Point(ptLB);var _39b=new ZdcPoint(tpt.lon,tpt.lat);tpt=this.convertPixel2Point(ptRT);var _39c=new ZdcPoint(tpt.lon,tpt.lat);var _39d=new ZdcBox(_39b,_39c);if(_39d.isContainBox(this.getMapBoundBox())>1){this.RedrawShapeLayer("",100);break;}}};ZdcMap.prototype.MoveShapeLayerByXY=function(x,y){for(var k=0;k<this.ZdcShapeLayer.length;k++){var _3a1=this.ZdcShapeLayer[k];var _3a2;var ntop;if(document.all){ntop=_3a1.doc.style.pixelTop+y;_3a2=_3a1.doc.style.pixelLeft+x;}else{ntop=parseInt(_3a1.doc.style.top)+y;_3a2=parseInt(_3a1.doc.style.left)+x;}_3a1.doc.style.left=_3a2;_3a1.doc.style.top=ntop;}};ZdcMap.prototype.EndPSearchRouteHandler=function(){if(!this.objPRouteSearch||!this.objPRouteSearch.getResult()){return;}if(this.objPRouteLayer){this.objPRouteLayer.clearShape();}else{this.objPRouteLayer=new ZdcShape.Layer();this.objPRouteLayer.setZIndex(3998);this.addShapeLayer(this.objPRouteLayer);}if(this.objPRouteMarkerLayer){this.removeUserLayer(this.objPRouteMarkerLayer);}this.objPRouteMarkerLayer=new ZdcUserLayer();this.addUserLayer(this.objPRouteMarkerLayer);this.objPRouteMarkerLayer.doc.style.zIndex=3999;var r=this.objPRouteSearch.getResult();var p,j;for(var k=0;k<r.links.length;k++){p=new ZdcShape.Polyline();p.strokeColor=this.objPRouteSearch.routeColor;p.strokeWeight=this.objPRouteSearch.routeWidth;p.opacity=this.objPRouteSearch.routeOpacity;for(j=0;j<r.links[k].xy.length;j++){p.addPoint(new ZdcPoint(r.links[k].xy[j].x,r.links[k].xy[j].y,2));}this.objPRouteLayer.addShape(p);}if(r.options.showMarker){var icon,mrk;if(r.options.iconDeparture){mrk=new ZdcMarker(r.options.departurePoint.point,r.options.iconDeparture);}else{icon=new ZdcIcon();icon.image=ZdcMapServer+"img/RouteStart.png";icon.size=new ZdcSize(54,36);icon.offset=new ZdcPixel(-4,-33);mrk=new ZdcMarker(r.options.departurePoint.point,icon);}this.objPRouteMarkerLayer.addMarker(mrk);if(r.options.iconArrival){mrk=new ZdcMarker(r.options.arrivalPoint.point,r.options.iconArrival);}else{icon=new ZdcIcon();icon.image=ZdcMapServer+"img/RouteEnd.png";icon.size=new ZdcSize(54,36);icon.offset=new ZdcPixel(-4,-33);mrk=new ZdcMarker(r.options.arrivalPoint.point,icon);}this.objPRouteMarkerLayer.addMarker(mrk);}};ZdcMap.prototype.addPRouteSearch=function(prs){this.objPRouteSearch=prs;this.objPRouteSearch.objMap=this;};ZdcMap.prototype.removePRouteSearch=function(){if(this.objPRouteSearch){this.objPRouteSearch.objMap=null;}this.objPRouteSearch=null;if(this.objPRouteLayer){this.removeShapeLayer(this.objPRouteLayer);}this.objPRouteLayer=null;if(this.objPRouteMarkerLayer){this.removeUserLayer(this.objPRouteMarkerLayer);}this.objPRouteMarkerLayer=null;};ZdcMap.prototype.getPRouteSearch=function(){if(!this.objPRouteSearch){this.objPRouteSearch=null;}return this.objPRouteSearch;};ZdcMap.prototype.ClearPRouteLayer=function(type){if(!this.objPRouteLayer){return;}this.removeShapeLayer(this.objPRouteLayer);this.objPRouteLayer=null;if(this.objPRouteMarkerLayer){this.removeUserLayer(this.objPRouteMarkerLayer);}this.objPRouteMarkerLayer=null;return;};window.ZdcIcon=ZdcIcon;window.ZdcMarker=ZdcMarker;window.ZdcUserLayer=ZdcUserLayer;window.ZdcUserRouteLayer=ZdcUserRouteLayer;window.ZdcControl=ZdcControl;window.ZdcUserControl=ZdcUserControl;window.ZdcUserZoomControl=ZdcUserZoomControl;window.ZdcScaleBar=ZdcScaleBar;window.ZdcMapCenter=ZdcMapCenter;window.ZdcMapCenterInfoBox=ZdcMapCenterInfoBox;window.ZdcMsgWindow=ZdcMsgWindow;window.ZdcMsgHtml=ZdcMsgHtml;window.ZdcUserMsgWindow=ZdcUserMsgWindow;window.ZdcMapType=ZdcMapType;window.ZdcMap=ZdcMap;window.ZdcSubMap=ZdcSubMap;window.ZDC.ZdcIcon=ZdcIcon;window.ZDC.ZdcMarker=ZdcMarker;window.ZDC.ZdcUserLayer=ZdcUserLayer;window.ZDC.ZdcControl=ZdcControl;window.ZDC.ZdcUserControl=ZdcUserControl;window.ZDC.ZdcUserZoomControl=ZdcUserZoomControl;window.ZDC.ZdcScaleBar=ZdcScaleBar;window.ZDC.ZdcMapCenter=ZdcMapCenter;window.ZDC.ZdcMapCenterInfoBox=ZdcMapCenterInfoBox;window.ZDC.ZdcMsgWindow=ZdcMsgWindow;window.ZDC.ZdcMsgHtml=ZdcMsgHtml;window.ZDC.ZdcUserMsgWindow=ZdcUserMsgWindow;window.ZDC.ZdcMapType=ZdcMapType;window.ZDC.ZdcMap=ZdcMap;window.ZDC.ZdcSubMap=ZdcSubMap;})();