var err_msg = "";var ZdcObjArray=[];window.onunload=function(){ZUnload();};function ZUnload(){for(var i=0;i";ZdcObjArray.push(this);}ZdcCopyright.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc=null;};function ZdcWait(){this.doc=document.createElement("DIV");this.doc.style.zIndex="10110";this.doc.style.position="absolute";this.doc.style.width="121px";this.doc.style.height="31px";this.backdoc=document.createElement("DIV");this.doc.appendChild(this.backdoc);this.backdoc.image=ZdcCommon.ZdcMapServer+"img/load-back.png";this.backdoc.innerHTML="";this.movedoc=document.createElement("DIV");this.doc.appendChild(this.movedoc);this.movedoc.image=ZdcCommon.ZdcMapServer+"img/load.gif";this.movedoc.style.position="absolute";this.movedoc.style.left="4px";this.movedoc.style.top="4px";this.movedoc.innerHTML="";this.textdoc=document.createElement("DIV");this.doc.appendChild(this.textdoc);this.textdoc.style.position="absolute";this.textdoc.style.left="24px";this.textdoc.style.top="8px";this.showtext="Now Loading...";ZdcObjArray.push(this);}ZdcWait.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc=null;this.backdoc=null;this.movedoc=null;this.textdoc=null;};function ZdcTooltip(){this.doc=document.createElement("DIV");this.doc.style.zIndex="-1";this.doc.style.position="absolute";this.doc.style.width="121px";this.doc.style.height="31px";this.doc.style.top="0px";this.doc.style.left="0px";this.offset=new ZdcPixel(-11,-11);this.width="121px";this.height="31px";this.zIndex=0;this.firstwidth="121px";this.firstheight="31px";this.scrollflg=false;this.textdoc=document.createElement("DIV");this.doc.appendChild(this.textdoc);this.doc.style.display="none";this.textdoc.style.position="absolute";this.textdoc.style.left="0px";this.textdoc.style.top="0px";this.textdoc.innerHTML="";ZdcObjArray.push(this);}ZdcTooltip.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc=null;this.textdoc=null;};ZdcTooltip.prototype.setZdcTooltip=function(_e,_f,_10,_11,_12,_13,_14){if(_13!=null){this.doc.style.zIndex=_13;this.zIndex=_13;}if(_10!=null){this.doc.style.width=_10+"px";this.width=_10+"px";this.firstwidth=_10+"px";}if(_11!=null){this.doc.style.height=_11+"px";this.height=_11+"px";this.firstheight=_11+"px";}if(_12!=null){this.offset=_12;}this.Point=_e;if(_f!=null){this.textdoc.innerHTML=_f;}if(_14==true){this.scrollflg=true;}else{this.scrollflg=false;}};ZdcTooltip.prototype.setZdcTooltipZindex=function(_15){if(_15>10209){return;}this.doc.style.zIndex=_15;this.zIndex=_15;};ZdcTooltip.prototype.MouseOut=function(e){ZdcEvent.trigger(this,"mouseouttooltip");};ZdcTooltip.prototype.MouseClick=function(e){ZdcEvent.trigger(this,"mouseclicktooltip");ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseDblClickTooltip=function(e){ZdcEvent.trigger(this,"mousedblclicktooltip");ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseDown=function(e){ZdcEvent.trigger(this,"mousedowntooltip");ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseUp=function(e){ZdcEvent.trigger(this,"mouseuptooltip");if(ZdcCommon.UserAgentIsFireFox()&&this.parentLayer.pMap.ZdcDragStatus){return;}ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.MouseOver=function(e){ZdcEvent.trigger(this,"mouseovertooltip");};ZdcTooltip.prototype.ConTextMenu=function(e){ZdcEvent.stopPropagation(e);};ZdcTooltip.prototype.AddMouseWheelListener=function(_1d,cap){if(this.scrollflg==true){this.doc.style.background="url(ZdcCommon.ZdcMapServer + \"img/transparent.gif\") repeat";this.textdoc.style.background="url(ZdcCommon.ZdcMapServer + \"img/transparent.gif\") repeat";if(this.doc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_1d,cap);this.doc.addEventListener("mousewheel",_1d,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_1d);}}}};ZdcTooltip.prototype.WheelStop=function(e){if(this.scrollflg==true){ZdcEvent.stopPropagation(e);}};function ZdcIcon(_20,img,_22){if(img==null){this.image=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.png";}else{this.image=img;}this.printimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageSmall.gif";this.changeimage=ZdcCommon.ZdcMapServer+"/img/DefaultIconImageLarge.png";if(_22!=null){this.shadowimage=_22;}this.printsize=new ZdcSize(24,24);this.shadowsize=new ZdcSize(20,20);this.changesize=new ZdcSize(36,36);this.changeoffset=new ZdcPixel(0,0);if(_20==null){this.size=new ZdcSize(24,24);this.offset=new ZdcPixel(-11,-11);this.msgoffset=new ZdcPixel(0,-10);this.shdoffset=new ZdcPixel(0,0);}else{this.size=_20.size;this.offset=_20.offset;this.msgoffset=_20.msgoffset;this.shdoffset=_20.shdoffset;}this.class1=null;this.class2=null;this.shadowclass1=null;this.shadowclass2=null;this.id=0;ZdcObjArray.push(this);}ZdcIcon.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);};function ZdcMarker(p,_24,_25,opt){this.Point=p;this.opt=opt;this.constopt=opt;if(_25==null){this.type="dynamic";}else{if(_25!="dynamic"&&_25!="static"){this.type="dynamic";}else{this.type=_25;}}if(_24!=null){this.icon=_24;}else{this.icon=new ZdcIcon();}this.doc=document.createElement("DIV");this.doc.style.position="absolute";this.icondoc=document.createElement("DIV");this.iconimgdoc=document.createElement("IMG");if(this.type=="dynamic"){if(document.all){this.icondoc.style.cursor="hand";}else{this.icondoc.style.cursor="pointer";}}if(this.icon.image.substr(this.icon.image.length-4,4)==".gif"){this.icongif=true;}else{this.icongif=false;}if(this.icon.changeimage.substr(this.icon.changeimage.length-4,4)==".gif"){this.changeicongif=true;}else{this.changeicongif=false;}if(this.icon.printimage.substr(this.icon.printimage.length-4,4)==".gif"){this.printicongif=true;}else{this.printicongif=false;}if(document.all&&!this.icongif){this.iconimgdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+this.icon.image+"\")";this.iconimgdoc.src=ZdcCommon.ZdcMapServer+"/img/blank.gif";this.iconimgdoc.style.width=this.icon.size.width+"px";this.iconimgdoc.style.height=this.icon.size.height+"px";}else{this.iconimgdoc.style.filter=null;this.iconimgdoc.src=this.icon.image;}this.icondoc.style.width=this.icon.size.width+"px";this.icondoc.style.height=this.icon.size.height+"px";this.icondoc.style.left="0px";this.icondoc.style.top="0px";this.icondoc.style.position="absolute";this.doc.style.width=this.icon.size.width+"px";this.doc.style.height=this.icon.size.height+"px";this.icondoc.style.zIndex="3";this.icondoc.style.position="absolute";this.doc.appendChild(this.icondoc);this.icondoc.appendChild(this.iconimgdoc);this.shadowdoc=document.createElement("DIV");if(this.icon.shadowimage!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.icon.shadowimage+")";if(document.all){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}this.shadowdoc.style.width=this.icon.shadowsize.width+"px";this.shadowdoc.style.height=this.icon.shadowsize.height+"px";this.shadowdoc.style.zIndex="2";this.shadowdoc.style.position="absolute";this.doc.appendChild(this.shadowdoc);if(this.icon.shdoffset!=null){this.shadowdoc.style.top=this.icon.shdoffset.y+"px";this.shadowdoc.style.left=this.icon.shdoffset.x+"px";}}ZdcObjArray.push(this);}ZdcMarker.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc=null;this.node=null;this.icondoc=null;this.changedoc=null;this.shadowdoc=null;this.icon=null;};ZdcMarker.prototype.MouseOver=function(e){ZdcEvent.trigger(this,"mouseovermarker");};ZdcMarker.prototype.MouseOut=function(e){ZdcEvent.trigger(this,"mouseoutmarker");};ZdcMarker.prototype.setTopZIndex=function(){if(this.parentLayer.addmapstatus){for(var i=0;i";}else{this.changedoc.innerHTML="";}}else{this.iconimgdoc.src=this.icon.changeimage;}this.changedoc.style.width=this.icon.changesize.width+"px";this.changedoc.style.height=this.icon.changesize.height+"px";this.changedoc.style.position="absolute";this.doc.appendChild(this.changedoc);if(this.icon.changeoffset!=null){this.changedoc.style.top=this.icon.changeoffset.y+"px";this.changedoc.style.left=this.icon.changeoffset.x+"px";}}if(this.icon.shadowimage!=null){this.doc.removeChild(this.shadowdoc);}};ZdcMarker.prototype.setChangeHidden=function(){if(this.parentLayer.pMap.mediamode=="print"){return;}if(this.changedoc==undefined||this.changedoc==null){return;}this.doc.removeChild(this.changedoc);this.changedoc=null;if(document.all){if(!this.changeicongif){this.iconimgdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+this.icon.image+"\")";this.iconimgdoc.src=ZdcCommon.ZdcMapServer+"/img/blank.gif";}}else{this.iconimgdoc.src=this.icon.image;}this.iconimgdoc.style.width=null;this.iconimgdoc.style.height=null;if(this.icon.shadowimage!=null){this.doc.appendChild(this.shadowdoc);}this.doc.style.zIndex=0;};ZdcMarker.prototype.setOpacity=function(_2b){with(this.icondoc.style){filter="alpha(opacity="+_2b+")";MozOpacity=(_2b/100);opacity=(_2b/100);}};ZdcMarker.prototype.openMsgWindow=function(p,_2d,_2e,_2f,_30,_31){this.parentLayer.pMap.openMsgWindow(p,_2d,_2e,this.icon.msgoffset,_2f,_30,_31);};ZdcMarker.prototype.openUserMsgWindow=function(_32,p,_34,opt){this.parentLayer.pMap.openUserMsgWindow(_32,p,_34,this.icon.msgoffset,opt);};ZdcMarker.prototype.MouseClick=function(e){ZdcEvent.trigger(this,"mouseclickmarker");ZdcEvent.stopPropagation(e);};ZdcMarker.prototype.MouseDblClickMarker=function(e){ZdcEvent.trigger(this,"mousedblclickmarker");ZdcEvent.stopPropagation(e);};ZdcMarker.prototype.MouseDown=function(e){ZdcEvent.trigger(this,"mousedownmarker");ZdcEvent.stopPropagation(e);return false;};ZdcMarker.prototype.MouseUp=function(e){ZdcEvent.trigger(this,"mouseupmarker");};ZdcMarker.prototype.ConTextMenu=function(e){ZdcEvent.stopPropagation(e);return false;};ZdcMarker.prototype.getPoint=function(){return this.Point;};ZdcMarker.prototype.getIcon=function(){return this.icon;};ZdcMarker.prototype.setType=function(_3b){if(_3b!=null){if(_3b!="dynamic"&&_3b!="static"){this.type=this.type;}else{this.type=_3b;}}if(this.type=="dynamic"){if(document.all){this.icondoc.style.cursor="hand";if(this.changedoc!=undefined||this.changedoc!=null){this.changedoc.style.cursor="hand";}}else{this.icondoc.style.cursor="pointer";if(this.changedoc!=undefined||this.changedoc!=null){this.changedoc.style.cursor="pointer";}}}else{this.icondoc.style.cursor="default";if(this.changedoc!=undefined||this.changedoc!=null){this.changedoc.style.cursor="default";}}};ZdcMarker.prototype.setPoint=function(p){this.Point=p;};ZdcMarker.prototype.redraw=function(){if(this.parentLayer.addmapstatus){var _3d=parseInt(this.parentLayer.doc.style.left);var _3e=parseInt(this.parentLayer.doc.style.top);var pxy=this.parentLayer.pMap.convertPoint2Pixel(this.Point);this.doc.style.left=(pxy.x+this.icon.offset.x)+"px";this.doc.style.top=(pxy.y+this.icon.offset.y)+"px";this.doc.style.left=(pxy.x+this.icon.offset.x-_3d)+"px";this.doc.style.top=(pxy.y+this.icon.offset.y-_3e)+"px";}};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;}this.icondoc.style.width=this.icon.size.width+"px";this.icondoc.style.height=this.icon.size.height+"px";this.doc.style.width=this.icon.size.width+"px";this.doc.style.height=this.icon.size.height+"px";if(document.all&&!this.icongif){this.iconimgdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\""+this.icon.image+"\")";this.iconimgdoc.src=ZdcCommon.ZdcMapServer+"/img/blank.gif";}else{this.icondoc.style.filter=null;this.iconimgdoc.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.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}this.shadowdoc.style.width=this.icon.shadowsize.width+"px";this.shadowdoc.style.height=this.icon.shadowsize.height+"px";this.shadowdoc.style.zIndex="2";this.shadowdoc.style.position="absolute";if(this.icon.shdoffset!=null){this.shadowdoc.style.top=this.icon.shdoffset.y+"px";this.shadowdoc.style.left=this.icon.shdoffset.x+"px";}}};function ZdcUserLayer(opt){this.doc=document.createElement("DIV");this.doc.style.position="absolute";this.doc.style.left="0px";this.doc.style.top="0px";this.markers=new Array();this.tooltips=new Array();this.markercount=0;this.minzoom=1;this.maxzoom=18;if(opt==null){this.type="manual";}else{this.type=opt;}this.addmapstatus=false;this.canvasWidth=2048;this.canvasHeight=2048;this.layerID=-1;ZdcObjArray.push(this);}ZdcUserLayer.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.markers=null;this.tooltips=null;this.markercount=null;this.minzoom=null;this.maxzoom=null;this.type=null;this.addmapstatus=null;this.canvasWidth=null;this.canvasHeight=null;this.layerID=null;this.doc=null;};ZdcUserLayer.prototype.getMarkerCount=function(){this.markercount=0;for(var i=0;i=0;i--){if(this.markers[i]!=null){if(_49==false&&this.addmapstatus){try{this.doc.removeChild(this.markers[i].doc);}catch(e){}}this.markers[i].icondoc.onmouseover=null;this.markers[i].icondoc.onmouseout=null;this.markers[i].icondoc.onclick=null;this.markers[i].icondoc.ondblclick=null;this.markers[i].icondoc.onmousedown=null;this.markers[i].icondoc.onmouseup=null;this.markers[i].icondoc.oncontextmenu=null;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;this.markers[id].icondoc.oncontextmenu=null;ZdcEvent.clearInstanceListeners(this.markers[id]);this.markers[id]=null;}};ZdcUserLayer.prototype.removeMarker=function(mrk){var id=0;if(!mrk){return -1;}for(id=this.markers.length-1;id>=0;id--){if(this.markers[id]==mrk){break;}}if(id<0){return -1;}if(this.markers[id]==mrk){if(this.addmapstatus){this.doc.removeChild(this.markers[id].doc);}this.markers[id].icondoc.onmouseover=null;this.markers[id].icondoc.onmouseout=null;this.markers[id].icondoc.onclick=null;this.markers[id].icondoc.ondblclick=null;this.markers[id].icondoc.onmousedown=null;this.markers[id].icondoc.onmouseup=null;this.markers[id].icondoc.oncontextmenu=null;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(s1,s2){var vs1=parseInt(s1);var vs2=parseInt(s2);if(vs1=0&&Number(vs2)<19){this.minzoom=vs1;this.maxzoom=vs2;}else{return -1;}};ZdcUserLayer.prototype.getMarkerById=function(id){if(this.markers[id]!=null){return this.markers[id];}else{return null;}};ZdcUserLayer.prototype.addZdcTooltip=function(t){var _55=parseInt(this.doc.style.left);var _56=parseInt(this.doc.style.top);t.parentLayer=this;var id=0;while(this.tooltips[id]!=null){id++;}this.tooltips[id]=t;this.tooltips[id].id=id;if(this.addmapstatus){var pxy=this.pMap.convertPoint2Pixel(t.Point);this.tooltips[id].doc.style.left=parseInt(pxy.x)+parseInt(this.tooltips[id].offset.x)-parseInt(_55)+"px";this.tooltips[id].doc.style.top=parseInt(pxy.y)+parseInt(this.tooltips[id].offset.y)-parseInt(_56)+"px";this.doc.appendChild(this.tooltips[id].doc);}this.tooltips[id].doc.onmouseout=this.tooltips[id].MouseOut.bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onclick=this.tooltips[id].MouseClick.bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.ondblclick=this.tooltips[id].MouseDblClickTooltip.bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onmousedown=this.tooltips[id].MouseDown.bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onmouseup=this.tooltips[id].MouseUp.bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.onmouseover=this.tooltips[id].MouseOver.bindAsEventListener(this.tooltips[id]);this.tooltips[id].doc.oncontextmenu=this.tooltips[id].ConTextMenu.bindAsEventListener(this.tooltips[id]);this.tooltips[id].AddMouseWheelListener(this.tooltips[id].WheelStop.bindAsEventListener(this.tooltips[id]),false);return id;};ZdcUserLayer.prototype.hiddenZdcTooltipById=function(id){if(this.tooltips[id]){this.tooltips[id].doc.style.width="0px";this.tooltips[id].doc.style.height="0px";this.tooltips[id].doc.style.display="none";}};ZdcUserLayer.prototype.visibleZdcTooltipById=function(id){if(this.tooltips[id]){this.tooltips[id].doc.style.width=this.tooltips[id].firstwidth;this.tooltips[id].doc.style.height=this.tooltips[id].firstheight;this.tooltips[id].doc.style.display="block";}};ZdcUserLayer.prototype.removeZdcTooltipById=function(id){if(this.tooltips[id]!=null){if(this.addmapstatus){this.doc.removeChild(this.tooltips[id].doc);}this.tooltips[id].doc.onmouseover=null;this.tooltips[id].doc.onmouseout=null;this.tooltips[id].doc.onclick=null;this.tooltips[id].doc.ondblclick=null;this.tooltips[id].doc.onmousedown=null;this.tooltips[id].doc.onmouseup=null;this.tooltips[id].doc.oncontextmenu=null;ZdcEvent.clearInstanceListeners(this.tooltips[id]);this.tooltips[id]=null;}};ZdcUserLayer.prototype.removeZdcTooltip=function(_5c){var id=0;if(!_5c){return -1;}for(id=this.tooltips.length-1;id>=0;id--){if(this.tooltips[id]==_5c){break;}}if(id<0){return -1;}if(this.tooltips[id]==_5c){if(this.addmapstatus){this.doc.removeChild(this.tooltips[id].doc);}this.tooltips[id].doc.onmouseover=null;this.tooltips[id].doc.onmouseout=null;this.tooltips[id].doc.onclick=null;this.tooltips[id].doc.ondblclick=null;this.tooltips[id].doc.onmousedown=null;this.tooltips[id].doc.onmouseup=null;this.tooltips[id].doc.oncontextmenu=null;ZdcEvent.clearInstanceListeners(this.tooltips[id]);this.tooltips[id]=null;return;}else{return -1;}};ZdcUserLayer.prototype.clearZdcTooltip=function(){for(var i=this.tooltips.length-1;i>=0;i--){if(this.tooltips[i]!=null){this.doc.removeChild(this.tooltips[i].doc);this.tooltips[i].doc.onmouseover=null;this.tooltips[i].doc.onmouseout=null;this.tooltips[i].doc.onclick=null;this.tooltips[i].doc.ondblclick=null;this.tooltips[i].doc.onmousedown=null;this.tooltips[i].doc.onmouseup=null;this.tooltips[i].doc.oncontextmenu=null;ZdcEvent.clearInstanceListeners(this.tooltips[i]);this.tooltips[i]=null;}}};ZdcUserLayer.prototype.getTooltipById=function(id){if(this.tooltips[id]!=null){return this.tooltips[id];}else{return null;}};ZdcUserLayer.prototype.getTooltipCount=function(){this.tooltipcount=0;for(var i=0;i10209){return false;}this.doc.style.zIndex=idx;return true;};function ZdcUserMsgWindow(){this.openstatus=false;this.msgoffset=new ZdcPixel(0,0);this.msgpixel=new ZdcPixel(0,0);this.doc=document.createElement("DIV");this.doc.style.zIndex="10100";this.doc.style.position="absolute";this.basex=0;this.basey=0;this.baseoffsetx=0;this.baseoffsety=0;this.basedoc=document.createElement("DIV");this.basedoc.style.zIndex="3";this.basedoc.style.top=this.basex+"px";this.basedoc.style.left=this.basey+"px";this.basedoc.style.position="absolute";this.shadowdoc=document.createElement("DIV");this.shadowdoc.style.zIndex="2";this.shadowdoc.style.position="absolute";this.textbkdoc=document.createElement("DIV");this.textbkdoc.style.zIndex="4";this.textbkdoc.style.position="absolute";this.textdoc=document.createElement("DIV");this.textdoc.style.zIndex="6";this.textdoc.style.position="absolute";this.textdoc.style.top="0px";this.textdoc.style.left="0px";this.closedoc=document.createElement("DIV");this.closedoc.style.zIndex="5";this.closedoc.style.position="absolute";this.changedoc=document.createElement("DIV");this.changedoc.style.zIndex="5";this.changedoc.style.position="absolute";this.textdoc.onmousedown=this.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.doc.oncontextmenu=this.ConTextMenu.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.changedoc.onclick=this.MouseChangeMsgWindow.bindAsEventListener(this);this.changedoc.onmouseover=this.MouseChangeOver.bindAsEventListener(this);this.changedoc.onmouseout=this.MouseChangeOut.bindAsEventListener(this);this.changedoc.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.changedoc);this.doc.appendChild(this.textdoc);this.AddMouseWheelListener(this.WheelStop.bindAsEventListener(this),false);ZdcObjArray.push(this);}ZdcUserMsgWindow.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.textdoc.onmousedown=null;this.textdoc.onmousemove=null;this.textbkdoc.onmousedown=null;this.textbkdoc.onmousemove=null;this.doc.ondblclick=null;this.doc.onclick=null;this.doc.oncontextmenu=null;this.closedoc.onclick=null;this.closedoc.onmouseover=null;this.closedoc.onmouseout=null;this.closedoc.onmousedown=null;this.changedoc.onclick=null;this.changedoc.onmouseover=null;this.changedoc.onmouseout=null;this.changedoc.onmousedown=null;this.doc=null;this.basedoc=null;this.shadowdoc=null;this.textbkdoc=null;this.textdoc=null;this.closedoc=null;this.changedoc=null;};ZdcUserMsgWindow.prototype.AddMouseWheelListener=function(_64,cap){if(this.textbkdoc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_64,cap);this.doc.addEventListener("mousewheel",_64,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_64);}}};ZdcUserMsgWindow.prototype.WheelStop=function(e){ZdcEvent.stopPropagation(e);};ZdcUserMsgWindow.prototype.setImage=function(_67,_68,_69,_6a,_6b,_6c,_6d,_6e,_6f,_70,_71){this.baseimage=_67;this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_67+")";this.basedoc.style.width=_68.width+"px";this.basedoc.style.height=_68.height+"px";if(document.all){this.basedoc.innerHTML="";}else{this.basedoc.innerHTML="";}if(_6d!=null&&_6e!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_6d+")";this.shadowdoc.style.width=_6e.width+"px";this.shadowdoc.style.height=_6e.height+"px";if(document.all){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}}if(_6b!=null&&_6c!=null){this.closedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_6b+")";this.closedoc.style.width=_6c.width+"px";this.closedoc.style.height=_6c.height+"px";if(document.all){this.closedoc.innerHTML="";}else{this.closedoc.innerHTML="";}}if(_70!=null&&_71!=null){this.changedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_70+")";this.changedoc.style.width=_71.width+"px";this.changedoc.style.height=_71.height+"px";if(document.all){this.changedoc.innerHTML="";}else{this.changedoc.innerHTML="";}}if(_69!=null&&_6a!=null){this.textbkdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_69+")";this.textbkdoc.style.width=_6a.width+"px";this.textbkdoc.style.height=_6a.height+"px";this.textdoc.style.width=_6a.width+"px";this.textdoc.style.height=_6a.height+"px";if(document.all){this.textbkdoc.innerHTML="";}else{this.textbkdoc.innerHTML="";}}if(_6f!=null){this.printimage=_6f;}};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(_75,_76,_77,_78,_79,_7a,_7b,_7c,_7d,_7e){this.basedoc.style.top=_75+"px";this.basedoc.style.left=_76+"px";if(_79!=null&&_7a!=null){this.closedoc.style.top=_79+"px";this.closedoc.style.left=_7a+"px";}if(_7d!=null&&_7e!=null){this.changedoc.style.top=_7d+"px";this.changedoc.style.left=_7e+"px";}if(_7b!=null&&_7c!=null){this.shadowdoc.style.top=_7b+"px";this.shadowdoc.style.left=_7c+"px";}if(_77!=null&&_78!=null){this.textdoc.style.top=_77+"px";this.textdoc.style.left=_78+"px";this.textbkdoc.style.top=_77+"px";this.textbkdoc.style.left=_78+"px";}};ZdcUserMsgWindow.prototype.MouseChangeOver=function(e){if(document.all){this.changedoc.style.cursor="hand";}else{this.changedoc.style.cursor="pointer";}};ZdcUserMsgWindow.prototype.MouseChangeOut=function(e){this.changedoc.style.cursor="default";};ZdcUserMsgWindow.prototype.MouseChangeMsgWindow=function(e){this.pMap.usermsgwindowchangeflg=true;ZdcEvent.trigger(this.pMap,"usermsgclickwins");ZdcEvent.stopPropagation(e);};ZdcUserMsgWindow.prototype.MouseDownMsgWindow=function(_82){ZdcEvent.stopPropagation(_82);};ZdcUserMsgWindow.prototype.MouseDblClickMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcUserMsgWindow.prototype.MouseMoveMsgWindow=function(_84){ZdcEvent.stopPropagation(_84);return false;};ZdcUserMsgWindow.prototype.MouseClickMsgWindowBase=function(_85){ZdcEvent.stopPropagation(_85);};ZdcUserMsgWindow.prototype.MouseCloseMsgWindow=function(_86){this.closedoc.style.cursor="default";this.doc.style.visibility="hidden";this.pMap.closeUserMsgWindow();ZdcEvent.stopPropagation(_86);ZdcEvent.trigger(this.pMap,"usermsgclickclose");};ZdcUserMsgWindow.prototype.MouseCloseOver=function(_87){if(document.all){this.closedoc.style.cursor="hand";}else{this.closedoc.style.cursor="pointer";}};ZdcUserMsgWindow.prototype.MouseCloseOut=function(_88){this.closedoc.style.cursor="default";};ZdcUserMsgWindow.prototype.MouseCloseDown=function(_89){ZdcEvent.stopPropagation(_89);return false;};ZdcUserMsgWindow.prototype.ConTextMenu=function(_8a){ZdcEvent.stopPropagation(_8a);return false;};ZdcUserMsgWindow.prototype.MouseDownDocNotPropaReturnFalse=function(_8b){return false;};function ZdcMsgWindow(t){if(t!=null){this.type=Number(t);}else{this.type=99;}this.largeopen=false;this.largeonly=false;this.smallonly=false;this.openstatus=false;this.msgoffset=new ZdcPixel(0,0);this.doc=document.createElement("DIV");this.doc.style.zIndex="10100";this.doc.style.position="absolute";this.doclarge=document.createElement("DIV");this.doclarge.style.position="absolute";this.doclarge.style.width="247px";this.doclarge.style.height="154px";this.docsmall=document.createElement("DIV");this.docsmall.style.position="absolute";this.docsmall.style.width="247px";this.docsmall.style.height="54px";this.docchange=document.createElement("DIV");this.docchange.style.position="absolute";this.docclose=document.createElement("DIV");this.docclose.style.position="absolute";this.doctextlarge=document.createElement("DIV");this.doctextlarge.style.position="absolute";this.doctextsmall=document.createElement("DIV");this.doctextsmall.style.position="absolute";this.title=new Object();this.node=new Object();if(this.type!=99){if(this.type!=0){this.LargeImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large"+this.type+".png";this.SmallImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small"+this.type+".png";}else{this.LargeImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large"+this.type+".gif";this.SmallImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small"+this.type+".gif";}}else{this.LargeImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large.png";this.SmallImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small.png";}this.LargePrintImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_large0.gif";this.SmallPrintImage=ZdcCommon.ZdcMapServer+"/img/zdc_hukidashi_small0.gif";this.CloseImage=ZdcCommon.ZdcMapServer+"/img/MsgWindowClose.png";this.ChgLargeImage=ZdcCommon.ZdcMapServer+"/img/MsgWindowChgLarge.png";this.ChgSmallImage=ZdcCommon.ZdcMapServer+"/img/MsgWindowChgSmall.png";if(document.all){if(this.type!=0){this.doclarge.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.LargeImage+")";this.docsmall.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.SmallImage+")";this.doclarge.innerHTML="";this.docsmall.innerHTML="";}else{this.doclarge.innerHTML="";this.docsmall.innerHTML="";}this.docclose.innerHTML="";}else{this.doclarge.innerHTML="";this.docsmall.innerHTML="";this.docclose.innerHTML="";}this.BaseX=0;this.BaseY=0;this.doclarge.style.left=this.BaseX+"px";this.doclarge.style.top=(this.BaseY-150)+"px";this.docsmall.style.left=this.BaseX+"px";this.docsmall.style.top=(this.BaseY-50)+"px";this.doctextlarge.style.left=(this.BaseX+7)+"px";this.doctextsmall.style.left=(this.BaseX+7)+"px";this.doctextlarge.style.top=(this.BaseY-140)+"px";this.doctextsmall.style.top=(this.BaseY-39)+"px";this.doctextsmall.style.clip="rect(-39px "+"240px "+"16px "+"0px)";this.docclose.style.left=(this.BaseX+217)+"px";if(this.largeopen){this.docclose.style.top=(this.BaseY-140)+"px";this.docchange.innerHTML="";this.docchange.style.top=(this.BaseY-127)+"px";this.docchange.style.left=(this.BaseX+217)+"px";}else{this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.innerHTML="";this.docchange.style.top=(this.BaseY-37)+"px";this.docchange.style.left=(this.BaseX+205)+"px";}this.Point=new ZdcPoint();this.doc.appendChild(this.doclarge);this.doc.appendChild(this.docsmall);this.doc.appendChild(this.docclose);this.doc.appendChild(this.docchange);this.doc.onmousedown=this.MouseDownMsgWindow.bindAsEventListener(this);this.doc.onclick=this.MouseClickMsgWindow.bindAsEventListener(this);this.doc.ondblclick=this.MouseDblClickMsgWindow.bindAsEventListener(this);this.doc.oncontextmenu=this.ConTextMenu.bindAsEventListener(this);this.docclose.onmousedown=this.MouseDownCloseMsgWindow.bindAsEventListener(this);this.docclose.onclick=this.MouseCloseMsgWindow.bindAsEventListener(this);this.docclose.onmouseover=this.MouseCloseOver.bindAsEventListener(this);this.docclose.onmouseout=this.MouseCloseOut.bindAsEventListener(this);this.docchange.onmousedown=this.MouseDownCloseMsgWindow.bindAsEventListener(this);this.docchange.onclick=this.MouseChangeMsgWindow.bindAsEventListener(this);this.docchange.onmouseover=this.MouseChangeOver.bindAsEventListener(this);this.docchange.onmouseout=this.MouseChangeOut.bindAsEventListener(this);this.docsmall.onmousedown=this.MouseDownDocNotPropaReturnFalse.bindAsEventListener(this);this.doclarge.onmousedown=this.MouseDownDocNotPropaReturnFalse.bindAsEventListener(this);this.AddMouseWheelListener(this.WheelStop.bindAsEventListener(this),true);ZdcObjArray.push(this);}ZdcMsgWindow.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.title=null;this.node=null;this.LargePrintImage=null;this.SmallPrintImage=null;this.CloseImage=null;this.ChgLargeImage=null;this.ChgSmallImage=null;this.doc.onmousedown=null;this.doc.ondblclick=null;this.doc.oncontextmenu=null;this.docclose.onmousedown=null;this.docclose.onclick=null;this.docchange.onclick=null;this.docclose.onmouseover=null;this.docchange.onmouseover=null;this.docclose.onmouseout=null;this.docchange.onmouseout=null;this.doc=null;this.doclarge=null;this.docsmall=null;this.docchange=null;this.docclose=null;this.doctextlarge=null;this.doctextsmall=null;};ZdcMsgWindow.prototype.AddMouseWheelListener=function(_8d,cap){if(this.doc.addEventListener){this.doc.addEventListener("DOMMouseScroll",_8d,cap);this.doc.addEventListener("mousewheel",_8d,cap);}else{if(this.doc.attachEvent){this.doc.attachEvent("onmousewheel",_8d);}}};ZdcMsgWindow.prototype.WheelStop=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseClickMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseDblClickMsgWindow=function(e){ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseDownDocNotPropaReturnFalse=function(e){return false;};ZdcMsgWindow.prototype.ConTextMenu=function(e){ZdcEvent.stopPropagation(e);return false;};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);return false;};ZdcMsgWindow.prototype.MouseCloseMsgWindow=function(e){this.pMap.msgopenstatus=false;if(ZdcCommon.UserAgentIsFireFox()){this.pMap.SetMsgWindowOnDrag();}this.openstatus=false;this.hiddenMsg();ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.MouseChangeMsgWindow=function(e){if(this.largeopen){this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.style.top=(this.BaseY-37)+"px";this.docchange.style.left=(this.BaseX+205)+"px";this.visibleSmallMsg();this.largeopen=false;}else{this.docclose.style.top=(this.BaseY-140)+"px";this.docchange.style.top=(this.BaseY-127)+"px";this.docchange.style.left=(this.BaseX+217)+"px";this.visibleLargeMsg();this.largeopen=true;}ZdcEvent.stopPropagation(e);};ZdcMsgWindow.prototype.visibleMsg=function(){if(this.largeopen){this.doclarge.style.visibility="visible";this.doctextlarge.style.visibility="visible";this.docchange.innerHTML="";}else{this.docsmall.style.visibility="visible";this.doctextsmall.style.visibility="visible";if(!this.smallonly){this.docchange.innerHTML="";}}if(this.largeonly||this.smallonly){this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docclose.style.visibility="visible";};ZdcMsgWindow.prototype.hiddenMsg=function(){this.doclarge.style.visibility="hidden";this.docsmall.style.visibility="hidden";this.docchange.style.visibility="hidden";this.docclose.style.visibility="hidden";this.doctextsmall.style.visibility="hidden";this.doctextlarge.style.visibility="hidden";while(this.doctextlarge.lastChild!=null){this.doctextlarge.removeChild(this.doctextlarge.lastChild);}while(this.doctextsmall.lastChild!=null){this.doctextsmall.removeChild(this.doctextsmall.lastChild);}if(!this.largeonly){this.largeopen=false;this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.style.top=(this.BaseY-37)+"px";this.docchange.style.left=(this.BaseX+217)+"px";}ZdcEvent.trigger(this.pMap,"closemsgwindow");};ZdcMsgWindow.prototype.visibleLargeMsg=function(){this.doclarge.style.visibility="visible";this.docsmall.style.visibility="hidden";this.doctextlarge.style.visibility="visible";this.doctextsmall.style.visibility="hidden";this.docclose.style.visibility="visible";if(this.largeonly){this.docclose.style.top=(this.BaseY-140)+"px";this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docchange.innerHTML="";this.largeopen=true;};ZdcMsgWindow.prototype.visibleSmallMsg=function(){this.doclarge.style.visibility="hidden";this.docsmall.style.visibility="visible";this.doctextlarge.style.visibility="hidden";this.doctextsmall.style.visibility="visible";this.docclose.style.visibility="visible";this.docchange.style.left=(this.BaseX+205)+"px";if(this.smallonly){this.docclose.style.top=(this.BaseY-37)+"px";this.docchange.style.visibility="hidden";}else{this.docchange.style.visibility="visible";}this.docchange.innerHTML="";this.largeopen=false;};ZdcMsgWindow.prototype.getStatus=function(){return this.openstatus;};function ZdcMapCenter(_9c){this.doc=document.createElement("DIV");this.doc.setAttribute("id","mapcenter");this.doc.style.position="absolute";this.doc.style.zIndex="10040";this.doc.style.filter="alpha(opacity=100)";this.doc.style.mozOpacity="1.0";this.doc.style.opacity="1.0";if(_9c==null){this.type=1;}else{this.type=Number(_9c);}switch(this.type){case 1:default:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter.gif";this.offset=new ZdcPixel(-11,-11);this.doc.style.width="22px";this.doc.style.height="22px";break;case 2:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter1.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter1.gif";this.offset=new ZdcPixel(-7,-7);this.doc.style.width="14px";this.doc.style.height="14px";break;case 3:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter2.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter2.gif";this.offset=new ZdcPixel(-15,-15);this.doc.style.width="30px";this.doc.style.height="30px";break;case 4:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter3.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter3.gif";this.offset=new ZdcPixel(-13,-13);this.doc.style.width="26px";this.doc.style.height="26px";break;case 5:this.image=ZdcCommon.ZdcMapServer+"/img/icon-center.gif";this.printimage=ZdcCommon.ZdcMapServer+"/img/icon-center.gif";this.offset=new ZdcPixel(-5,-5);this.doc.style.width="10px";this.doc.style.height="10px";break;case 6:this.image=ZdcCommon.ZdcMapServer+"/img/MapCenter4.png";this.printimage=ZdcCommon.ZdcMapServer+"/img/MapCenter4.gif";this.offset=new ZdcPixel(-11,-11);this.doc.style.width="22px";this.doc.style.height="22px";break;}if(typeof (_9c)=="object"){if(_9c.image!=""&&_9c.offset!=""){this.type=null;this.image=_9c.image;this.offset=_9c.offset;}}if(document.all){this.doc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.image+")";this.doc.innerHTML="";}else{this.doc.innerHTML="";}this.id="Center_1_1";ZdcObjArray.push(this);}ZdcMapCenter.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc=null;};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="0.75";this.doc1.style.opacity="0.75";}else{this.doc1.style.filter="alpha(opacity=50)";this.doc1.style.mozOpacity="0.5";this.doc1.style.opacity="0.5";}this.doc2.style.filter="alpha(opacity=100)";this.doc2.style.mozOpacity="1.0";this.doc2.style.opacity="1.0";if(this.type==1){this.ZdcCenterInfoImage=ZdcCommon.ZdcMapServer+"/img/CenterInfoBox.png";}else{this.ZdcCenterInfoImage=ZdcCommon.ZdcMapServer+"/img/CenterInfoBox2.png";}ZdcObjArray.push(this);}ZdcMapCenterInfoBox.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc1.onmousedown=null;this.doc1.ondblclick=null;this.doc2.onmousedown=null;this.doc2.ondblclick=null;this.doc1=null;this.doc2=null;};ZdcMapCenterInfoBox.prototype.OnMouseDownDoc=function(_9e){ZdcEvent.stopPropagation(_9e);return false;};ZdcMapCenterInfoBox.prototype.OnMouseDblClickDoc=function(_9f){ZdcEvent.stopPropagation(_9f);return false;};function ZdcScaleBar(f){if(f!=null){if(f==1||f==2||f==3){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==3){this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase.gif";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBar3_";}else{this.ZdcScaleImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase.gif";this.ZdcScaleBaseImage=ZdcCommon.ZdcMapServer+"/img/ScaleBase";}}}this.id="ScaleBar_1_1";if(this.type==1){this.doc1.style.filter="alpha(opacity=75)";this.doc1.style.mozOpacity="0.75";this.doc1.style.opacity="0.75";}else{this.doc1.style.filter="alpha(opacity=100)";this.doc1.style.mozOpacity="1.0";this.doc1.style.opacity="1.0";}this.doc2.style.filter="alpha(opacity=100)";this.doc2.style.mozOpacity="1.0";this.doc2.style.opacity="1.0";ZdcObjArray.push(this);}ZdcScaleBar.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.ZdcScaleImage=null;this.ZdcScaleBaseImage=null;this.doc1.onmousedown=null;this.doc1.ondblclick=null;this.doc1=null;this.doc2=null;};ZdcScaleBar.prototype.OnMouseDownDoc=function(_a1){ZdcEvent.stopPropagation(_a1);return false;};ZdcScaleBar.prototype.OnMouseDblClickDoc=function(_a2){ZdcEvent.stopPropagation(_a2);return false;};function ZdcUserControl(){this.basetop=0;this.baseleft=0;this.doc=document.createElement("DIV");this.doc.setAttribute("id","usercontrol");this.doc.style.zIndex="10200";this.doc.style.position="absolute";this.basedoc=document.createElement("DIV");this.basedoc.style.position="absolute";this.basedoc.style.zIndex="2";this.shadowdoc=document.createElement("DIV");this.shadowdoc.style.position="absolute";this.shadowdoc.style.zIndex="1";this.doc.appendChild(this.shadowdoc);this.doc.appendChild(this.basedoc);if(ZdcCommon.UserAgentIsSafari()){this.mousecursor="default";this.basedoc.style.cursor="default";}else{this.mousecursor="hand";if(document.all){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}}this.actionid=0;this.aid=1;this.action=new Array();for(var i=1;i<10;i++){var _a4=new ZdcPixel(0,0);var _a5=new ZdcPixel(0,0);this.action[i]=new Object();this.action[i].box=new ZdcPixelBox(_a4,_a5);}this.doc.onmousedown=this.OnMouseDownDoc.bindAsEventListener(this);this.doc.onmouseup=this.OnMouseUpDoc.bindAsEventListener(this);this.doc.onclick=this.OnMouseClickDoc.bindAsEventListener(this);this.doc.ondblclick=this.OnMouseDblClickDoc.bindAsEventListener(this);this.doc.onmousemove=this.OnMouseMoveDoc.bindAsEventListener(this);this.doc.onmouseover=this.OnMouseOverDoc.bindAsEventListener(this);this.doc.onmouseout=this.OnMouseOutDoc.bindAsEventListener(this);this.doc.oncontextmenu=this.ConTextMenu.bindAsEventListener(this);ZdcObjArray.push(this);}ZdcUserControl.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc.onmousedown=null;this.doc.onmouseup=null;this.doc.onclick=null;this.doc.ondblclick=null;this.doc.onmousemove=null;this.doc.onmouseover=null;this.doc.onmouseout=null;this.doc.oncontextmenu=null;this.doc=null;this.basedoc=null;this.shadowdoc=null;};ZdcUserControl.prototype.setMouseCursor=function(_a6,_a7,_a8){if(ZdcCommon.UserAgentIsSafari()){return -1;}if(_a6=="users"){this.cursorflg=true;this.usercursor1=_a7;this.usercursor2=_a8;this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(_a6!="default"&&_a6!="hand"){return -1;}this.cursorflg=false;this.mousecursor=_a6;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(_a9,_aa,_ab,_ac){this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_a9+")";this.basedoc.style.width=_aa.width+"px";this.basedoc.style.height=_aa.height+"px";if(document.all){this.basedoc.innerHTML="";}else{this.basedoc.innerHTML="";}if(_ab!=null&&_ac!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_ab+")";this.shadowdoc.style.width=_ac.width+"px";this.shadowdoc.style.height=_ac.height+"px";if(document.all){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}}};ZdcUserControl.prototype.setDocPosition=function(_ad,_ae,_af,_b0){this.basedoc.style.left=(this.baseleft+_ae)+"px";this.basedoc.style.top=(this.basetop+_ad)+"px";if(_af!=null&&_b0!=null){this.shadowdoc.style.left=(this.baseleft+Number(_b0))+"px";this.shadowdoc.style.top=(this.baseleft+Number(_af))+"px";}};ZdcUserControl.prototype.OnMouseMoveDoc=function(_b1){ZdcEvent.stopPropagation(_b1);};ZdcUserControl.prototype.OnMouseOverDoc=function(_b2){ZdcEvent.stopPropagation(_b2);ZdcEvent.trigger(this,"mouseover");};ZdcUserControl.prototype.OnMouseOutDoc=function(_b3){ZdcEvent.stopPropagation(_b3);ZdcEvent.trigger(this,"mouseout");};ZdcUserControl.prototype.OnMouseUpDoc=function(_b4){if(_b4.button==2){return;}this.actionid=0;if(document.all){var x=_b4.offsetX;var y=_b4.offsetY;}else{var x=_b4.layerX;var y=_b4.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_b4);ZdcEvent.trigger(this,"mouseup");};ZdcUserControl.prototype.OnMouseDownDoc=function(_b8){if(_b8.button==2){return;}this.actionid=0;if(document.all){var x=_b8.offsetX;var y=_b8.offsetY;}else{var x=_b8.layerX;var y=_b8.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_b8);ZdcEvent.trigger(this,"mousedown");return false;};ZdcUserControl.prototype.OnMouseDblClickDoc=function(_bc){this.actionid=0;if(document.all){var x=_bc.offsetX;var y=_bc.offsetY;}else{var x=_bc.layerX;var y=_bc.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_bc);ZdcEvent.trigger(this,"dblclickend");};ZdcUserControl.prototype.OnMouseClickDoc=function(_c0){this.actionid=0;if(document.all){var x=_c0.offsetX;var y=_c0.offsetY;}else{var x=_c0.layerX;var y=_c0.layerY;}for(var i=1;i<10;i++){if(this.action[i].box.isContainPixel(x,y)){this.actionid=this.action[i].act;break;}}ZdcEvent.stopPropagation(_c0);ZdcEvent.trigger(this,"clickend");};ZdcUserControl.prototype.ConTextMenu=function(_c4){ZdcEvent.stopPropagation(_c4);return false;};ZdcUserControl.prototype.setAction=function(_c5,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=_c5;this.aid++;};function ZdcUserZoomControl(){this.basetop=0;this.baseleft=0;this.doc=document.createElement("DIV");this.doc.setAttribute("id","userzoomcontrol");this.doc.style.zIndex="10200";this.doc.style.position="absolute";this.basedoc=document.createElement("DIV");this.basedoc.style.position="absolute";this.basedoc.id="basedoc";this.shadowdoc=document.createElement("DIV");this.shadowdoc.style.position="absolute";this.shadowdoc.id="shadowdoc";this.griddoc=document.createElement("DIV");this.griddoc.style.position="absolute";this.griddoc.id="griddoc";if(ZdcCommon.UserAgentIsSafari()){this.mousecursor="default";this.doc.style.cursor="default";}else{this.mousecursor="hand";if(document.all){this.basedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";}this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}this.doc.appendChild(this.shadowdoc);this.doc.appendChild(this.basedoc);this.doc.appendChild(this.griddoc);this.actionid="none";this.actionx=0;this.actiony=0;this.aid=1;this.setDocPositionX=0;this.setDocPositionY=0;this.gridBasePositionX=0;this.gridBasePositionY=0;this.ToolTipBasePositionX=0;this.ToolTipBasePositionY=0;this.addPositionX=0;this.addPositionY=0;this.zoomstart=0;this.zoomend=0;this.zoomslithersize=0;this.slithertype=1;this.zoomMax=18;this.zoomMin=1;this.zoomLimit=this.zoomMax-this.zoomMin+1;this.dragx=0;this.dragy=0;this.dragscreenx=0;this.dragscreeny=0;this.newscreenx=0;this.newscreeny=0;this.slithermovestatus=false;this.dragstatus=false;this.dragtype=1;this.tooltipimg=null;this.tootipsize=null;this.doctooltip=null;this.tooltipid=null;this.action=new Array();for(var i=1;i<5;i++){var _cb=new ZdcPixel(0,0);var _cc=new ZdcPixel(0,0);this.action[i]=new Object();this.action[i].box=new ZdcPixelBox(_cb,_cc);}this.doc.onmousedown=this.OnMouseDownDoc.bindAsEventListener(this);this.doc.onclick=this.OnMouseClickDoc.bindAsEventListener(this);this.doc.ondblclick=this.OnMouseDblClickDoc.bindAsEventListener(this);this.doc.onmouseup=this.OnMouseUpDoc.bindAsEventListener(this);this.doc.onmousemove=this.OnMouseMoveDoc.bindAsEventListener(this);this.doc.onmouseover=this.MouseOver.bindAsEventListener(this);this.doc.onmouseout=this.MouseOut.bindAsEventListener(this);this.griddoc.onclick=this.OnMouseClickGridDoc.bindAsEventListener(this);this.griddoc.onmousedown=this.OnMouseDownGridDoc.bindAsEventListener(this);this.griddoc.onmousemove=this.OnMouseMoveGridDoc.bindAsEventListener(this);this.griddoc.onmouseup=this.OnMouseUpGridDoc.bindAsEventListener(this);this.doc.oncontextmenu=this.ConTextMenu.bindAsEventListener(this);ZdcObjArray.push(this);}ZdcUserZoomControl.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.doc.onmousedown=null;this.doc.onclick=null;this.doc.ondblclick=null;this.doc.onmouseup=null;this.doc.onmousemove=null;this.doc.onmouseover=null;this.doc.onmouseout=null;this.griddoc.onclick=null;this.griddoc.onmousedown=null;this.griddoc.onmousemove=null;this.griddoc.onmouseup=null;this.doc.oncontextmenu=null;this.doc=null;this.basedoc=null;this.shadowdoc=null;this.griddoc=null;this.doctooltip=null;};ZdcUserZoomControl.prototype.setMouseCursor=function(_cd,_ce,_cf){if(ZdcCommon.UserAgentIsSafari()){return -1;}if(_cd=="users"){this.cursorflg=true;this.usercursor1=_ce;this.usercursor2=_cf;this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(_cd!="default"&&_cd!="hand"){return -1;}this.cursorflg=false;this.mousecursor=_cd;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.SetZoomTipImage=function(_d0,_d1,_d2){this.tootipimg=_d0;this.tooltipsize=new ZdcSize(_d1.width,_d1.height);this.tooltipoffset=_d2;this.doctooltip=document.createElement("DIV");this.doctooltip.id="userzoomcontroltooltip";this.doctooltip.style.zIndex=10090;this.doctooltip.style.position="absolute";this.doctooltip.style.visibility="hidden";this.doctooltip.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d0+")";this.doctooltip.style.width=_d1.width;this.doctooltip.style.height=_d1.height;if(document.all){this.doctooltip.innerHTML="";}else{this.doctooltip.innerHTML="";}};ZdcUserZoomControl.prototype.setImage=function(_d3,_d4,_d5,_d6,_d7,_d8){this.basedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d3+")";this.basedoc.style.width=_d4.width+"px";this.basedoc.style.height=_d4.height+"px";if(document.all){this.basedoc.innerHTML="";}else{this.basedoc.innerHTML="";}if(_d5!=null&&_d6!=null){if(document.all){this.griddoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d5+")";this.griddoc.style.width=_d6.width+"px";this.griddoc.style.height=_d6.height+"px";this.griddoc.innerHTML="";}else{this.griddoc.style.width=_d6.width+"px";this.griddoc.style.height=_d6.height+"px";this.griddoc.innerHTML="";}}if(_d7!=null&&_d8!=null){this.shadowdoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+_d7+")";this.shadowdoc.style.width=_d8.width+"px";this.shadowdoc.style.height=_d8.height+"px";if(document.all){this.shadowdoc.innerHTML="";}else{this.shadowdoc.innerHTML="";}}};ZdcUserZoomControl.prototype.setZoomLimit=function(s1,s2){var vs1=parseInt(s1);var vs2=parseInt(s2);if(vs1=0&&Number(vs2)<19){this.zoomMin=vs1;this.zoomMax=vs2;this.zoomLimit=this.zoomMax-this.zoomMin+1;}else{return -1;}};ZdcUserZoomControl.prototype.setDocPosition=function(_dd,_de,_df,_e0){this.basedoc.style.left=_de+"px";this.basedoc.style.top=_dd+"px";if(_df!=null&&_e0!=null){this.shadowdoc.style.left=_e0+"px";this.shadowdoc.style.top=_df+"px";}this.setDocPositionY=_dd;this.setDocPositionX=_de;if(this.slithertype==1){this.griddoc.style.left=parseInt(this.gridBasePositionX)+(_de)+"px";this.griddoc.style.top=parseInt(this.addPositionY)+parseInt(this.gridBasePositionY)+(_dd)+"px";}else{this.griddoc.style.left=parseInt(this.addPositionX)+parseInt(this.gridBasePositionX)+(_de)+"px";this.griddoc.style.top=parseInt(this.gridBasePositionY)+(_dd)+"px";}if(this.doctooltip!=null){this.doctooltip.style.top=parseInt(this.ToolTipBasePositionY)+_dd+"px";this.doctooltip.style.left=parseInt(this.ToolTipBasePositionX)+_de+"px";}this.setSlitherPosition();};ZdcUserZoomControl.prototype.setAction=function(_e1,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=_e1;if(_e1=="slither"){if(Math.abs(py2-py1)>Math.abs(px2-px1)){this.slithertype=1;this.zoomstart=py1;this.zoomend=py2;this.zoomslithersize=Math.abs(py2-py1);this.griddoc.style.left=px1+"px";this.gridBasePositionX=px1+"px";this.gridBasePositionY="0px";this.griddoc.style.top="0px";}else{this.slithertype=2;this.zoomstart=px1;this.zoomend=px2;this.zoomslithersize=Math.abs(px2-px1);this.griddoc.style.top=py1+"px";this.gridBasePositionX="0px";this.gridBasePositionY=py1+"px";this.griddoc.style.left="0px";}this.setSlitherPosition();}this.aid++;};ZdcUserZoomControl.prototype.OnMouseMoveGridDoc=function(_e6){if(ZdcDrag.IsDragging()){if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}return false;}ZdcEvent.stopPropagation(_e6);ZdcEvent.trigger(this,"mousemovegrid");return false;};ZdcUserZoomControl.prototype.OnMouseClickGridDoc=function(_e7){ZdcEvent.stopPropagation(_e7);ZdcEvent.trigger(this,"mouseclickgrid");return false;};ZdcUserZoomControl.prototype.OnMouseDownGridDoc=function(_e8){if(!this.dragstatus){this.actionid="slither";this.dragscreenx=_e8.screenX;this.dragscreeny=_e8.screenY;if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor2+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";}}}ZdcEvent.stopPropagation(_e8);ZdcEvent.trigger(this,"mousedowngrid");return false;};ZdcUserZoomControl.prototype.OnMouseUpGridDoc=function(_e9){if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}ZdcEvent.trigger(this,"mouseup");return false;};ZdcUserZoomControl.prototype.OnMouseDblClickDoc=function(_ea){ZdcEvent.stopPropagation(_ea);ZdcEvent.trigger(this,"dblclickend");};ZdcUserZoomControl.prototype.OnMouseMoveDoc=function(_eb){if(ZdcDrag.IsDragging()){return false;}return false;};ZdcUserZoomControl.prototype.MouseOver=function(_ec){if(this.doctooltip){this.doctooltip.style.visibility="visible";}ZdcEvent.stopPropagation(_ec);ZdcEvent.trigger(this,"mouseover");};ZdcUserZoomControl.prototype.MouseOut=function(_ed){if(this.doctooltip){if(document.all){if(!window.event||window.event.type!="mouseout"){return;}var t=window.event.toElement;var _ef=false;while(t){if(t==this.doc){_ef=true;break;}t=t.parentElement;}if(!_ef){this.doctooltip.style.visibility="hidden";}}else{this.doctooltip.style.visibility="hidden";}}ZdcEvent.stopPropagation(_ed);ZdcEvent.trigger(this,"mouseout");};ZdcUserZoomControl.prototype.OnMouseDownDoc=function(_f0){if(_f0.button==2){return;}ZdcEvent.stopPropagation(_f0);if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}this.zomDownflg=true;ZdcEvent.trigger(this,"mousedown");return false;};ZdcUserZoomControl.prototype.OnMouseUpDoc=function(_f1){if(_f1.button==2){return;}if(this.cursorflg==true){this.griddoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.griddoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}ZdcEvent.trigger(this,"mouseup");if(this.zomDownflg){this.actionid="none";if(document.all){var x=_f1.offsetX;var y=_f1.offsetY;}else{var x=_f1.layerX;var y=_f1.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;}}ZdcEvent.stopPropagation(_f1);ZdcEvent.trigger(this,"clickend");this.zomDownflg=false;}return false;};ZdcUserZoomControl.prototype.OnMouseClickDoc=function(_f5){ZdcEvent.stopPropagation(_f5);return false;};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_fc){this.griddoc.style.top=this.zoomstart+this.setDocPositionY+"px";this.dragy=this.zoomstart;this.dragscreeny=this.zoomstart;this.zoomImage();}else{if(this.zoomlim<_fc){this.griddoc.style.top=this.zoomlim+this.setDocPositionY+"px";this.dragy=this.zoomlim;this.dragscreeny=this.zoomlim;this.zoomImage();}else{if(Math.abs(this.dragscreeny-this.newscreeny)>=this.zoomheight){heightcnt=Math.round((_fc-this.zoomstart)/(this.zoomheight));heightpx=this.zoomstart+Math.round(heightcnt*this.zoomheight);this.griddoc.style.top=heightpx+this.setDocPositionY+"px";this.dragy=_fc;this.dragscreeny=this.newscreeny;this.zoomImage();}}}}else{this.newscreenx=e.screenX;if(this.dragflg){this.dragscreenfrom=e.screenX;this.dragflg=false;}var _fc=this.dragfrom-(this.dragscreenfrom-this.newscreenx);if(this.zoomstart>_fc){this.griddoc.style.left=this.zoomstart+this.setDocPositionX+"px";this.dragx=this.zoomstart;this.dragscreenx=this.zoomstart;this.zoomImage();}else{if(this.zoomlim<_fc){this.griddoc.style.left=this.zoomlim+this.setDocPositionX+"px";this.dragx=this.zoomlim;this.dragscreenx=this.zoomlim;this.zoomImage();}else{if(Math.abs(this.dragscreenx-this.newscreenx)>=this.zoomheight){heightcnt=Math.round((_fc-this.zoomstart)/(this.zoomheight));heightpx=this.zoomstart+Math.round(heightcnt*this.zoomheight);this.griddoc.style.left=heightpx+this.setDocPositionX+"px";this.dragx=_fc;this.dragscreenx=this.newscreenx;this.zoomImage();}}}}}};ZdcUserZoomControl.prototype.zoomImage=function(){this.pMap.ZdcZoomChangeImage.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner1.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner2.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner3.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner4.style.visibility="visible";this.pMap.ZdcZoomChangeImage.style.filter="alpha(opacity=99)";this.pMap.ZdcZoomChangeImage.style.mozOpacity="0.99";this.pMap.ZdcZoomChangeImage.style.opacity="0.99";if(this.slithertype==1){var s=Math.floor((this.dragy-this.zoomstart)/(this.zoomslithersize/this.zoomLimit));}else{var s=Math.floor((this.dragx-this.zoomstart)/(this.zoomslithersize/this.zoomLimit));}if(this.dragtype==1){s=s+this.zoomMin;}else{s=this.zoomMax-s;}if(s>this.zoomMax){s=this.zoomMax;}if(s";this.pMap.ZdcZoomChangeImage.style.position="absolute";if(document.all){this.pMap.ZdcZoomChangeImageCorner1.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_105+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_106+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_105+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_106+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img1+")";this.pMap.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img2+")";this.pMap.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img3+")";this.pMap.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img4+")";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}else{this.pMap.ZdcZoomChangeImageCorner1.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_105+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_106+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_105+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_106+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}this.pMap.ZdcZoomChangeImageCorner1.style.width="20px";this.pMap.ZdcZoomChangeImageCorner1.style.height="20px";this.pMap.ZdcZoomChangeImageCorner1.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner2.style.width="20px";this.pMap.ZdcZoomChangeImageCorner2.style.height="20px";this.pMap.ZdcZoomChangeImageCorner2.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner3.style.width="20px";this.pMap.ZdcZoomChangeImageCorner3.style.height="20px";this.pMap.ZdcZoomChangeImageCorner3.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner4.style.width="20px";this.pMap.ZdcZoomChangeImageCorner4.style.height="20px";this.pMap.ZdcZoomChangeImageCorner4.style.position="absolute";};function ZdcControl(f,opts){if(f!=null){this.type=Number(f);if(this.type>3||this.type<1){this.type=3;}}else{this.type=3;}this.largeonly=false;this.smallonly=false;if(this.smallonly){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="10200";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="62px";this.scaledoc.style.height="34px";this.scaledoc.style.filter="alpha(opacity=100)";this.scaleseldoc=document.createElement("DIV");this.scaleseldoc.style.zIndex="50";this.scaleslitherdoc=document.createElement("DIV");this.scaleslitherdoc.style.zIndex="50";this.changedoc=document.createElement("DIV");this.changedoc.style.zIndex="90";this.changedoc.style.filter="alpha(opacity=100)";this.basedoc.style.mozOpacity="1.0";this.basedoc.style.opacity="1.0";this.scaledoc.style.mozOpacity="1.0";this.scaledoc.style.opacity="1.0";this.changedoc.style.mozOpacity="1.0";this.changedoc.style.opacity="1.0";this.shadowlargedoc=document.createElement("DIV");this.shadowsmalldoc=document.createElement("DIV");switch(this.type){case 1:this.CtlImage=ZdcCommon.ZdcMapServer+"/img/Control1.png";this.CtlSmallImage=ZdcCommon.ZdcMapServer+"/img/ControlSmall1.png";this.CtlChgImage=ZdcCommon.ZdcMapServer+"/img/ControlChange1.png";this.CtlNoChgImage=ZdcCommon.ZdcMapServer+"/img/ControlNoChange1.png";this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/cursorscale0.png";this.CtlScaleSelImage=ZdcCommon.ZdcMapServer+"/img/ControlScaleSelect.png";this.CtlScaleSlitherImage=ZdcCommon.ZdcMapServer+"/img/ControlSlither1.png";this.id="Control_1_1";this.width=60;this.height=320;this.doc.style.width="70px";this.doc.style.height="92px";this.doc.style.filter="alpha(opacity=60)";this.doc.style.mozOpacity="0.6";this.doc.style.opacity="0.6";this.changedoc.style.left=(this.BaseX+48)+"px";this.changedoc.style.top=(this.BaseY+66)+"px";this.scaledoc.style.left=(this.BaseX-3)+"px";this.scaledoc.style.top=(this.BaseY+100)+"px";this.scaleseldoc.style.left=(this.BaseX+1)+"px";this.scaleslitherdoc.style.left=(this.BaseX+53)+"px";break;case 2:this.CtlImage=ZdcCommon.ZdcMapServer+"/img/Control2.png";this.CtlSmallImage=ZdcCommon.ZdcMapServer+"/img/ControlSmall2.png";this.CtlChgImage=ZdcCommon.ZdcMapServer+"/img/ControlChange2.png";this.CtlNoChgImage=ZdcCommon.ZdcMapServer+"/img/ControlNoChange2.png";this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/cursorscale0.png";this.CtlScaleSelImage=ZdcCommon.ZdcMapServer+"/img/ControlScaleSelect2.png";this.CtlScaleSlitherImage=ZdcCommon.ZdcMapServer+"/img/ControlSlither2.png";this.id="Control_1_2";this.width=60;this.height=320;this.changedoc.style.left=(this.BaseX+48)+"px";this.changedoc.style.top=(this.BaseY+62)+"px";this.scaledoc.style.left=(this.BaseX+2)+"px";this.scaledoc.style.top=(this.BaseY+100)+"px";this.scaleseldoc.style.left=(this.BaseX+9)+"px";this.scaleseldoc.style.width="45px";this.scaleslitherdoc.style.left=(this.BaseX+44)+"px";break;case 3:default:this.CtlImage=ZdcCommon.ZdcMapServer+"/img/Control3.png";this.CtlSmallImage=ZdcCommon.ZdcMapServer+"/img/ControlSmall3.png";this.CtlChgImage=ZdcCommon.ZdcMapServer+"/img/ControlChange3.png";this.CtlNoChgImage=ZdcCommon.ZdcMapServer+"/img/ControlNoChange3.png";this.CtlScaleImage=ZdcCommon.ZdcMapServer+"/img/ControlScale.png";this.CtlScaleSelImage=ZdcCommon.ZdcMapServer+"/img/scrollredline3.png";this.CtlScaleSlitherImage=ZdcCommon.ZdcMapServer+"/img/scrollbutton3.png";this.CtlShadowLargeImage=ZdcCommon.ZdcMapServer+"/img/Control-shadow.png";this.CtlShadowSmallImage=ZdcCommon.ZdcMapServer+"/img/Control-shadow-small.png";this.shadowlargedoc.style.position="absolute";this.shadowsmalldoc.style.position="absolute";this.shadowlargedoc.style.zIndex="1";this.shadowsmalldoc.style.zIndex="1";if(document.all){this.shadowlargedoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.CtlShadowLargeImage+")";this.shadowsmalldoc.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.CtlShadowSmallImage+")";this.shadowsmalldoc.innerHTML="";this.shadowlargedoc.innerHTML="";}else{this.shadowsmalldoc.innerHTML="";this.shadowlargedoc.innerHTML="";}this.shadowlargedoc.style.width="64px";this.shadowlargedoc.style.height="324px";this.shadowsmalldoc.style.width="64px";this.shadowsmalldoc.style.height="92px";this.id="Control_1_3";this.width=64;this.height=324;this.changedoc.style.left=(this.BaseX+47)+"px";this.changedoc.style.top=(this.BaseY+66)+"px";this.scaledoc.style.left=(this.BaseX)+"px";this.scaledoc.style.top=(this.BaseY+100)+"px";this.scaleseldoc.style.left=(this.BaseX+3)+"px";this.scaleslitherdoc.style.left=(this.BaseX+49)+"px";this.shadowlargedoc.style.left=(this.BaseX+2)+"px";this.shadowlargedoc.style.top=(this.BaseY+2)+"px";this.shadowsmalldoc.style.left=(this.BaseX+2)+"px";this.shadowsmalldoc.style.top=(this.BaseY+2)+"px";break;}this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaledoc.innerHTML="";this.scaleseldoc.innerHTML="";this.scaleslitherdoc.innerHTML="";this.basedoc.style.width="0px";this.basedoc.style.height="0px";this.basedoc.style.left=this.BaseX+"px";this.basedoc.style.top=this.BaseY+"px";this.basedoc.style.position="absolute";this.changedoc.style.width="12px";this.changedoc.style.height="12px";this.changedoc.style.position="absolute";this.scaledoc.style.position="absolute";this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.width="58px";this.scaleseldoc.style.height="12px";this.scaleseldoc.style.top=this.BaseY+"px";this.scaleseldoc.style.position="absolute";this.scaleseldoc.style.filter="alpha(opacity=60)";this.scaleseldoc.style.opacity="0.6";this.scaleseldoc.style.mozOpacity="0.6";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.width="12px";this.scaleslitherdoc.style.height="16px";this.scaleslitherdoc.style.top=this.BaseY+"px";this.scaleslitherdoc.style.position="absolute";this.scaleslitherdoc.style.filter="alpha(opacity=100)";this.scaleslitherdoc.style.mozOpacity="1.0";this.scaleslitherdoc.style.opacity="1.0";this.scaleslitherdoc.style.visibility="hidden";ZdcObjArray.push(this);if(ZdcCommon.UserAgentIsSafari()){this.mousecursor="default";this.basedoc.style.cursor="default";}else{this.mousecursor="hand";if(document.all){this.basedoc.style.cursor="hand";this.changedoc.style.cursor="hand";this.shadowsmalldoc.style.cursor="hand";this.shadowlargedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";this.shadowsmalldoc.style.cursor="pointer";this.shadowlargedoc.style.cursor="pointer";}this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}if(opts=="large"){this.deflargeflg=true;this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaleseldoc.style.visibility="visible";this.scaleslitherdoc.style.visibility="visible";if(this.type==3){this.shadowsmalldoc.style.visibility="hidden";this.shadowlargedoc.style.visibility="visible";}this.zoomlistopen=true;}else{this.zoomlistopen=false;this.changedoc.style.visibility="hidden";if(this.type==3){this.shadowlargedoc.style.visibility="hidden";this.shadowsmalldoc.style.visibility="visible";}}if(this.type==3){this.doc.appendChild(this.shadowlargedoc);this.doc.appendChild(this.shadowsmalldoc);if(this.zoomlistopen){this.shadowsmalldoc.style.visibility="hidden";}else{this.shadowlargedoc.style.visibility="hidden";}}this.doc.appendChild(this.basedoc);this.doc.appendChild(this.scaleseldoc);this.doc.appendChild(this.scaleslitherdoc);this.doc.appendChild(this.scaledoc);this.doc.appendChild(this.changedoc);this.doc.onmousedown=this.OnMouseDownDoc.bindAsEventListener(this);this.basedoc.onmousedown=this.OnMouseDownBaseDoc.bindAsEventListener(this);this.changedoc.onmousedown=this.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);this.doc.oncontextmenu=this.ConTextMenu.bindAsEventListener(this);}ZdcControl.prototype.Cleanup=function(){ZdcEvent.clearInstanceListeners(this);this.CtlImage=null;this.CtlSmallImage=null;this.CtlChgImage=null;this.CtlNoChgImage=null;this.CtlScaleImage=null;this.CtlScaleSelImage=null;this.CtlScaleSlitherImage=null;this.doc.onmousedown=null;this.basedoc.onmousedown=null;this.changedoc.onmousedown=null;this.scaleslitherdoc.onmousedown=null;this.scaleslitherdoc.onmouseup=null;this.doc.onmouseup=null;this.doc.onclick=null;this.basedoc.onclick=null;this.changedoc.onclick=null;this.doc.onmousemove=null;this.basedoc.onmousemove=null;this.scaleseldoc.onmousemove=null;this.scaleslitherdoc.onmousemove=null;this.doc.onmouseover=null;this.doc.onmouseout=null;this.doc.ondblclick=null;this.doc.oncontextmenu=null;this.doc=null;this.basedoc=null;this.scaledoc=null;this.scaleseldoc=null;this.scaleslitherdoc=null;this.changedoc=null;this.shadowlargedoc=null;this.shadowsmalldoc=null;};ZdcControl.prototype.setMouseCursor=function(type,url1,url2){if(ZdcCommon.UserAgentIsSafari()){return -1;}if(type=="users"){this.cursorflg=true;this.usercursor1=url1;this.usercursor2=url2;this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";this.changedoc.style.cursor="url("+this.usercursor1+"), pointer";this.scaleslitherdoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowsmalldoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowlargedoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(type!="default"&&type!="hand"){return -1;}this.cursorflg=false;this.mousecursor=type;if(this.mousecursor=="hand"){if(document.all){this.basedoc.style.cursor="hand";this.changedoc.style.cursor="hand";this.shadowsmalldoc.style.cursor="hand";this.shadowlargedoc.style.cursor="hand";}else{this.basedoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";this.shadowsmalldoc.style.cursor="pointer";this.shadowlargedoc.style.cursor="pointer";}this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}if(this.mousecursor=="default"){this.basedoc.style.cursor="default";this.changedoc.style.cursor="default";this.scaleslitherdoc.style.cursor="default";this.shadowsmalldoc.style.cursor="default";this.shadowlargedoc.style.cursor="default";}}};ZdcControl.prototype.setLargeOnly=function(){this.largeonly=true;if(this.type!=3){this.scaledoc.style.visibility="visible";}else{this.shadowsmalldoc.style.visibility="hidden";this.shadowlargedoc.style.visibility="visible";}this.scaleseldoc.style.visibility="visible";this.scaleslitherdoc.style.visibility="visible";this.changedoc.style.visibility="hidden";this.basedoc.innerHTML="";this.changedoc.innerHTML="";y=73+(this.pMap.s-1)*13;this.scaleseldoc.style.top=y+"px";if(this.type==3){this.scaleslitherdoc.style.top=y+"px";}else{this.scaleslitherdoc.style.top=(y-2)+"px";}this.doc.style.height="330px";this.basedoc.style.height="320px";this.zoomlistopen=true;this.scaledoc.style.visibility="hidden";};ZdcControl.prototype.setSmallOnly=function(){this.smallonly=true;if(this.smallonly){this.zoomlistopen=false;this.scaledoc.style.visibility="hidden";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";this.changedoc.style.visibility="hidden";if(this.type==3){this.shadowlargedoc.style.visibility="hidden";this.shadowsmalldoc.style.visibility="visible";}this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.doc.style.height="92px";}};ZdcControl.prototype.OnMouseDblClick=function(_10f){ZdcEvent.stopPropagation(_10f);};ZdcControl.prototype.OnMouseDownDoc=function(_110){ZdcEvent.stopPropagation(_110);return false;};ZdcControl.prototype.OnMouseDownBaseDoc=function(_111){ZdcEvent.stopPropagation(_111);return false;};ZdcControl.prototype.OnMouseDownChgDoc=function(_112){ZdcEvent.stopPropagation(_112);return false;};ZdcControl.prototype.OnMouseDownSlither=function(_113){if(document.all){this.SlitherPixelY=this.scaleslitherdoc.style.pixelTop;}else{this.SlitherPixelY=parseInt(this.scaleslitherdoc.style.top);}this.dragscreeny=_113.screenY;this.dragy=this.zoomstart+Math.floor((this.pMap.s-1)*this.zoomheight);this.Slither=true;this.dragfrom=this.dragy;this.dragscreenfrom=_113.screenY;this.zoomlim=this.zoomend-this.zoomheight;if(this.cursorflg==true){this.scaleslitherdoc.style.cursor="url("+this.usercursor2+"), pointer";}else{if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";}}ZdcDrag.StartDragging(this.scaleslitherdoc,this.dragging.bindAsEventListener(this),this.dragend.bindAsEventListener(this));ZdcEvent.stopPropagation(_113);return false;};ZdcControl.prototype.OnMouseClickDoc=function(_114){ZdcEvent.stopPropagation(_114);return false;};ZdcControl.prototype.MouseOnClick=function(_115){var _116=this.pMap;if(document.all){var x=_115.offsetX;var y=_115.offsetY;}else{var x=_115.layerX;var y=_115.layerY;}var s;if(y<60){if(y<20){if(x<20){_116.ScrollMapByDirection(1,1);}else{if(x>20&&x<40){_116.ScrollMapByDirection(0,1);}else{_116.ScrollMapByDirection(-1,1);}}}else{if(y>20&&y<40){if(x<20){_116.ScrollMapByDirection(1,0);}else{if(x>20&&x<40){_116.restoreMapLocation();}else{_116.ScrollMapByDirection(-1,0);}}}else{if(x<20){_116.ScrollMapByDirection(1,-1);}else{if(x>20&&x<40){_116.ScrollMapByDirection(0,-1);}else{_116.ScrollMapByDirection(-1,-1);}}}}}else{if(this.zoomlistopen){if(y<73){_116.mapZoomOut(1,"zoom");s=73+(this.pMap.s-1)*13;}else{if(73<=y&&y<=307){s=73+Math.floor((y-73)/13)*13;_116.setMapScale(Math.floor((y-73)/13)+1);}else{if(y>307){_116.mapZoomIn(1,"zoom");s=73+(this.pMap.s-1)*13;}}}this.scaleseldoc.style.top=s+"px";if(this.type==3){this.scaleslitherdoc.style.top=s+"px";}else{this.scaleslitherdoc.style.top=(s-2)+"px";}}else{if(y<73){_116.mapZoomOut(1,"zoom");}else{_116.mapZoomIn(1,"zoom");}}}ZdcEvent.stopPropagation(_115);return false;};ZdcControl.prototype.MouseOnClickChg=function(_11a){var y;this.Slither=false;if(this.zoomlistopen){this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaleseldoc.style.visibility="hidden";this.scaleslitherdoc.style.visibility="hidden";if(this.type==3){this.shadowlargedoc.style.visibility="hidden";this.shadowsmalldoc.style.visibility="visible";}this.zoomlistopen=false;this.doc.style.height="92px";this.basedoc.style.height="92px";}else{this.basedoc.innerHTML="";this.changedoc.innerHTML="";this.scaleseldoc.style.visibility="visible";this.scaleslitherdoc.style.visibility="visible";if(this.type==3){this.shadowsmalldoc.style.visibility="hidden";this.shadowlargedoc.style.visibility="visible";}y=73+(this.pMap.s-1)*13;this.scaleseldoc.style.top=y+"px";if(this.type==3){this.scaleslitherdoc.style.top=y+"px";}else{this.scaleslitherdoc.style.top=(y-2)+"px";}this.doc.style.height="330px";this.basedoc.style.height="320px";this.zoomlistopen=true;}ZdcEvent.stopPropagation(_11a);return false;};ZdcControl.prototype.OnMouseMoveDoc=function(_11c){if(ZdcDrag.IsDragging()){return false;}ZdcEvent.stopPropagation(_11c);return false;};ZdcControl.prototype.ConTextMenu=function(_11d){ZdcEvent.stopPropagation(_11d);return false;};ZdcControl.prototype.dragging=function(e){if(this.cursorflg==true){this.scaleslitherdoc.style.cursor="url("+this.usercursor2+"), pointer";this.basedoc.style.cursor="url("+this.usercursor2+"), pointer";this.changedoc.style.cursor="url("+this.usercursor2+"), pointer";this.scaleseldoc.style.cursor="url("+this.usercursor2+"), pointer";this.shadowsmalldoc.style.cursor="url("+this.usercursor2+"), pointer";this.shadowlargedoc.style.cursor="url("+this.usercursor2+"), pointer";}else{if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.basedoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.changedoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.scaleseldoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.shadowsmalldoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";this.shadowlargedoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-12.cur"+"), pointer";}}this.newscreeny=e.screenY;if(this.zoomlistopen){var _11f=this.dragfrom-(this.dragscreenfrom-this.newscreeny);if(this.zoomstart>_11f){if(this.type==3){this.scaleslitherdoc.style.top=73+"px";}else{this.scaleslitherdoc.style.top=73-2+"px";}this.scaleseldoc.style.top=73+"px";this.dragy=73;this.dragscreeny=73;this.zoomImage();}else{if(this.zoomlim<_11f){if(this.type==3){this.scaleslitherdoc.style.top=this.zoomlim+"px";}else{this.scaleslitherdoc.style.top=this.zoomlim-2+"px";}this.scaleseldoc.style.top=this.zoomlim+"px";this.dragy=this.zoomlim;this.dragscreeny=this.zoomlim;this.zoomImage();}else{if(Math.abs(this.dragscreeny-this.newscreeny)>=this.zoomheight){heightcnt=Math.round((_11f-this.zoomstart)/(this.zoomheight));heightpx=73+Math.round(heightcnt*this.zoomheight);if(this.type==3){this.scaleslitherdoc.style.top=heightpx+"px";}else{this.scaleslitherdoc.style.top=heightpx-2+"px";}this.scaleseldoc.style.top=heightpx+"px";this.dragy=_11f;this.dragscreeny=this.newscreeny;this.zoomImage();}}}}};ZdcControl.prototype.zoomImage=function(){this.pMap.ZdcZoomChangeImage.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner1.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner2.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner3.style.visibility="visible";this.pMap.ZdcZoomChangeImageCorner4.style.visibility="visible";this.pMap.ZdcZoomChangeImage.style.filter="alpha(opacity=50)";this.pMap.ZdcZoomChangeImage.style.mozOpacity="0.5";this.pMap.ZdcZoomChangeImage.style.opacity="0.5";var s=Math.floor((this.dragy-this.zoomstart)/this.zoomheight)+2;var _121=this.pMap.s;var _122=s;if(_121<_122){var img=this.pMap.ZoomChangeImageIn;var img1=this.pMap.ZoomChangeImageCorner1;var img2=this.pMap.ZoomChangeImageCorner2;var img3=this.pMap.ZoomChangeImageCorner3;var img4=this.pMap.ZoomChangeImageCorner4;}else{if(_121==_122){var img=this.pMap.ZoomChangeImageClear;var img1=this.pMap.ZoomChangeImageCorner4;var img2=this.pMap.ZoomChangeImageCorner3;var img3=this.pMap.ZoomChangeImageCorner2;var img4=this.pMap.ZoomChangeImageCorner1;}else{var img=this.pMap.ZoomChangeImageOut;var img1=this.pMap.ZoomChangeImageCorner4;var img2=this.pMap.ZoomChangeImageCorner3;var img3=this.pMap.ZoomChangeImageCorner2;var img4=this.pMap.ZoomChangeImageCorner1;}}if(_121==_122){var _128=this.pMap.ZdcMapWpx-6;var _129=this.pMap.ZdcMapHpx-6;}else{if(_121<_122){var _128=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_122]/ZdcZoom.map_defw[_121]));var _129=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_122]/ZdcZoom.map_defh[_121]));}else{var _128=Math.floor(this.pMap.ZdcMapWpx*(ZdcZoom.map_defw[_121]/ZdcZoom.map_defw[_122]));var _129=Math.floor(this.pMap.ZdcMapHpx*(ZdcZoom.map_defh[_121]/ZdcZoom.map_defh[_122]));}}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,_121).isContainPoint(this.pMap.ZdcMsgWindowObj.Point)){if(_121<_122){var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_121,_122);}else{var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgWindowObj.Point.mx,this.pMap.ZdcMsgWindowObj.Point.my,_122,_121);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((newp.mx-this.pMap.mx)/ZdcZoom.map_defw[_121]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-newp.my)/ZdcZoom.map_defh[_121]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.usermsgopenstatus){if(this.pMap.getMapBoundBox(null,_121).isContainPoint(this.pMap.ZdcUserMsgWindow.Point)){if(_121<_122){var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_121,_122);}else{var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcUserMsgWindow.Point.mx,this.pMap.ZdcUserMsgWindow.Point.my,_122,_121);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((newp.mx-this.pMap.mx)/ZdcZoom.map_defw[_121]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-newp.my)/ZdcZoom.map_defh[_121]);}else{var cx=this.pMap.ZdcMapCenterpx.x;var cy=this.pMap.ZdcMapCenterpx.y;}}else{if(this.pMap.htmlopenstatus){if(this.pMap.getMapBoundBox(null,_121).isContainPoint(this.pMap.ZdcMsgHtml.Point)){if(_121<_122){var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_121,_122);}else{var newp=this.pMap.GetNewCenterPoint(this.pMap.ZdcMsgHtml.Point.mx,this.pMap.ZdcMsgHtml.Point.my,_122,_121);}var cx=this.pMap.ZdcMapCenterpx.x+Math.round((newp.mx-this.pMap.mx)/ZdcZoom.map_defw[_121]);var cy=this.pMap.ZdcMapCenterpx.y+Math.round((this.pMap.my-newp.my)/ZdcZoom.map_defh[_121]);}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(_128/2)-3)+"px";this.pMap.ZdcZoomChangeImage.style.top=(cy-Math.floor(_129/2)-3)+"px";this.pMap.ZdcZoomChangeImage.style.width=(_128+6)+"px";this.pMap.ZdcZoomChangeImage.style.height=(_129+6)+"px";this.pMap.ZdcZoomChangeImage.innerHTML="
";this.pMap.ZdcZoomChangeImage.style.position="absolute";if(document.all){this.pMap.ZdcZoomChangeImageCorner1.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_128+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_129+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(this.pMap.ZdcZoomChangeImage.style.pixelLeft+_128+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(this.pMap.ZdcZoomChangeImage.style.pixelTop+_129+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img1+")";this.pMap.ZdcZoomChangeImageCorner2.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img2+")";this.pMap.ZdcZoomChangeImageCorner3.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img3+")";this.pMap.ZdcZoomChangeImageCorner4.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img4+")";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}else{this.pMap.ZdcZoomChangeImageCorner1.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner1.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_128+2)+"px";this.pMap.ZdcZoomChangeImageCorner2.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)-16)+"px";this.pMap.ZdcZoomChangeImageCorner3.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_129+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.left=(parseInt(this.pMap.ZdcZoomChangeImage.style.left)+_128+2)+"px";this.pMap.ZdcZoomChangeImageCorner4.style.top=(parseInt(this.pMap.ZdcZoomChangeImage.style.top)+_129+2)+"px";this.pMap.ZdcZoomChangeImageCorner1.innerHTML="";this.pMap.ZdcZoomChangeImageCorner2.innerHTML="";this.pMap.ZdcZoomChangeImageCorner3.innerHTML="";this.pMap.ZdcZoomChangeImageCorner4.innerHTML="";}this.pMap.ZdcZoomChangeImageCorner1.style.width="20px";this.pMap.ZdcZoomChangeImageCorner1.style.height="20px";this.pMap.ZdcZoomChangeImageCorner1.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner2.style.width="20px";this.pMap.ZdcZoomChangeImageCorner2.style.height="20px";this.pMap.ZdcZoomChangeImageCorner2.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner3.style.width="20px";this.pMap.ZdcZoomChangeImageCorner3.style.height="20px";this.pMap.ZdcZoomChangeImageCorner3.style.position="absolute";this.pMap.ZdcZoomChangeImageCorner4.style.width="20px";this.pMap.ZdcZoomChangeImageCorner4.style.height="20px";this.pMap.ZdcZoomChangeImageCorner4.style.position="absolute";};ZdcControl.prototype.OnMouseMoveBaseDoc=function(_12d){if(document.all){var x=_12d.offsetX;var y=_12d.offsetY;}else{var x=_12d.layerX;var y=_12d.layerY;}var s,sl;if(this.zoomlistopen&&this.type!=3){if(this.type!=3){this.scaledoc.style.visibility="visible";}if(73";}else{this.scaledoc.innerHTML="";}}else{this.scaledoc.style.visibility="hidden";}}return false;};ZdcControl.prototype.OnMouseMoveSel=function(_132){if(document.all){var id=Math.floor((this.scaleseldoc.style.pixelTop-73)/13)+1;var s="1/"+ZdcZoom.map_defs[id];var y=this.scaleseldoc.style.pixelTop;}else{var id=Math.floor((parseInt(this.scaleseldoc.style.top)-73)/13)+1;var s="1/"+ZdcZoom.map_defs[id];var y=parseInt(this.scaleseldoc.style.top);}if(this.type!=3){this.scaledoc.style.visibility="visible";}this.scaledoc.style.top=(y+4)+"px";return false;};ZdcControl.prototype.OnMouseUp=function(_136){if(this.cursorflg==true){this.scaleslitherdoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}if(ZdcDrag.IsDragging()){return false;}};ZdcControl.prototype.OnMouseUpSlither=function(_137){if(ZdcDrag.IsDragging()){return false;}};ZdcControl.prototype.dragend=function(){this.scaleseldoc.style.cursor="default";if(this.cursorflg==true){this.basedoc.style.cursor="url("+this.usercursor1+"), pointer";this.changedoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowsmalldoc.style.cursor="url("+this.usercursor1+"), pointer";this.shadowlargedoc.style.cursor="url("+this.usercursor1+"), pointer";}else{if(this.mousecursor=="hand"){this.basedoc.style.cursor="pointer";this.changedoc.style.cursor="pointer";this.shadowsmalldoc.style.cursor="pointer";this.shadowlargedoc.style.cursor="pointer";if(!ZdcCommon.UserAgentIsSafari()){this.scaleslitherdoc.style.cursor="url("+ZdcCommon.ZdcMapServer+"/cursor/hand-11.cur"+"), pointer";}}}var s=Math.round((this.dragy-this.zoomstart)/(this.zoomheight))+1;this.pMap.setMapScale(s);this.Slither=false;ZdcDrag.ClearDraging();this.pMap.ZdcZoomChangeImage.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner1.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner2.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner3.style.visibility="hidden";this.pMap.ZdcZoomChangeImageCorner4.style.visibility="hidden";};ZdcControl.prototype.OnMouseMoveSlither=function(_139){if(document.all){var y=this.scaleslitherdoc.style.pixelTop;}else{var y=parseInt(this.scaleslitherdoc.style.top);}if(73