function VLatLng(j,a,h){this.latitude=j;this.longitude=a;this.liIl=h;this.copy=b;this.lat=i;this.lng=k;this.latRadians=e;this.lngRadians=g;this.equals=d;this.distanceFrom=f;this.toUrlValue=m;this.toString=c;this.vType=l;function b(){return new VLatLng(this.latitude,this.longitude)}function i(){return this.latitude}function k(){return this.longitude}function e(){}function g(){}function d(n){if(this.latitude==n.latitude&&this.longitude==n.longitude){return true}else{return false}}function f(n){}function m(){return this.latitude.toString().substring(0,10)+","+this.longitude.toString().substring(0,10)}function c(){return this.latitude.toString().substring(0,10)+","+this.longitude.toString().substring(0,10)}function l(){return"VLatLng"}}function VSize(b,a){this.width=b;this.height=a;this.equals=d;this.toString=e;this.vType=c;function d(f){if(this.width==f.width&&this.height==f.height){return true}else{return false}}function e(){return(this.width.toString()+","+this.height.toString())}function c(){return"VSize"}}function VControl(){this.initialize=c;this.redraw=g;this.remove=b;this.getDefaultPosition=a;this.hide=e;this.show=d;this.vType=f;function c(i,h){}function g(){}function b(){}function a(){}function e(){}function d(){}function f(){}}function VControlPosition(a,b){this.anchor=(a!=undefined)?a:V_ANCHOR_TOP_LEFT;this.offset=(b!=undefined)?b:new VSize(0,0);this.vType=function(){return"VControlPosition"}}function VLatLngBounds(a,g){this.nw=a;this.se=g;this.equals=e;this.contains=b;this.getNorthWest=f;this.getSouthEast=c;this.vType=d;function e(h){if(this.nw.equals(h.nw)&&this.se.equals(h.se)){return true}else{return false}}function b(h){}function f(){return a}function c(){return g}function d(){return"VLatLngBounds"}}function VDirectionsOptions(d,e,c,a,b){this.getPolyline=d;this.lljI=e;this.preserveViewport=c;this.avoidAlley=(a==undefined)?true:a;this.avoidRoadConstruction=(b==undefined)?false:b;this.vType=function(){return"VDirectionsOptions"}}function VInfoWindowOptions(e,j,k,h,a,f,d,g,c,i,b){this.offset=(e!=undefined)?e:new VSize(0,0);this.selectedTab=(j!=undefined)?j:0;this.maxWidth=(k!=undefined)?k:0;this.onOpenFn=(h!=undefined)?h:null;this.onCloseFn=(a!=undefined)?a:null;this.liil=(f!=undefined)?f:0;this.maxContent=(d!=undefined)?d:"";this.maxTitle=(g!=undefined)?g:"";this.autoPan=(c!=undefined)?c:true;this.mapBlowup=(i!=undefined)?i:false;this.maximizeWhenOpen=(b!=undefined)?b:false;this.vType=function(){return"VInfoWindowOptions"}}function VInfoWindowTab(a,b){this.label=(a!=undefined)?a:"";this.content=(b!=undefined)?b:"&nbsp;";this.vType=function(){return"VInfoWindowTab"}}function VCopyrightCollection(b){this.prefix=b;this.vType=a;function a(){return"VCopyrightCollection"}}function VTileLayer(c,b,a,e){this.copyrights=c;this.minResolution=b;this.maxResolution=a;this.opts=e;this.getTileUrl=f;this.vType=d;function f(){}function d(){return"VTileLayer"}}function VMapOptions(b,c,a){this.size=b;this.draggableCursor=(c!=undefined)?c:strResURL+"images/openhand.cur";this.draggingCursor=(a!=undefined)?a:strResURL+"images/closedhand.cur";this.vType=function(){return"VMapOptions"}}function VMapType(g,a,b,f){this.layers=g;this.projection=a;this.name=b;this.opts=f;this.getProjection=c;this.getTileLayers=d;this.vType=e;function c(){return this.projection}function d(){return this.layers}function e(){return"VMapType"}}function VMappingLayer(b){this.mappedTileLayer=(b!=undefined)?b:0;this.arrEvents=new Array();this.arrHandlers=new Array();this.addListener=a;this.getMappingAreas=d;this.vType=c;function a(e,f){this.arrEvents[this.arrEvents.length]=e;this.arrHandlers[this.arrHandlers.length]=f}function d(){}function c(){return"VMappingLayer"}}function VMappingArea(c,d,a){this.coords=(c!=undefined)?c:"";this.title=(d!=undefined)?d:"";this.shape=(a!=undefined)?a:"poly";this.vType=b;function b(){return"VMappingArea"}}function VMarkerOptions(o,r,c,d,t,k,b,e,a,g,q){this.icon=(o!=undefined)?o:new VIcon();var p=(r!=undefined)?r:"";var n=new Array();if(typeof p=="string"){n[0]=p}else{n=p}for(var m=0;m<n.length;m++){if(n[m]!=""){while(n[m].indexOf(" ")!=-1){n[m]=n[m].replace(" ","&nbsp;")}}}this.iji=n;var f=(c!=undefined)?c:new VTextPosition();var l=new Array();if(f.length==undefined){l[0]=f}else{l=f}this.textPosition=l;var h=(d!=undefined)?d:new VTextStyle();var s=new Array();if(h.length==undefined){s[0]=h}else{s=h}this.textStyle=s;var j=(this.iji[0]=="")?0:this.iji.length;if(this.textPosition.length<j){j=this.textPosition.length}if(this.textStyle.length<j){j=this.textStyle.length}this.nText=j;this.title=(t!=undefined)?t:"";this.clickable=(k!=undefined)?k:true;this.draggable=(b!=undefined)?b:false;this.offset=(e!=undefined)?e:null;this.autoPan=(a!=undefined)?a:true;this.zIndexProcess=(g!=undefined)?g:null;this.customMarker=q;this.vType=function(){return"VMarkerOptions"}}function VPolygonOptions(a){this.clickable=(a==null)?true:a;this.vType=function(){return"VPolygonOptions"}}function VTextPosition(a,b){this.anchor=(a!=undefined)?a:V_ANCHOR_BOTTOM_CENTER;this.offset=(b!=undefined)?b:new VSize(0,0);this.vType=function(){return"VTextPosition"}}function VTextStyle(d,c,b,a){this.fontSize=(d!=undefined)?d:20;this.fontWeight=(c!=undefined)?c:"normal";this.color=(b!=undefined)?b:"#ff0000";this.fontFamily=(a!=undefined)?a:"Arial";this.vType=function(){return"VTextStyle"}}function VPolylineOptions(a,b,c){this.clickable=(a==undefined)?true:a;this.geodesic=(b==undefined)?false:b;this.dashStyle=(c==undefined)?"":c;this.vType=function(){return"VPolylineOptions"}}function VCircleOptions(a,c,d,b){this.clickable=(a==undefined)?true:a;this.geodesic=(c==undefined)?false:c;this.dashStyle=(d==undefined)?"":d;this.showInLowLevel=(b==undefined)?true:b;this.vType=function(){return"VCircleOptions"}}function vcallbackFunction(d){if(VUtil.isVBDWebsite()){return}if(d.x!=true||d.y!=true){l1jI=false;isValidKey=false;jII.disableAll()}else{var c=document.images.length;var b=false;for(var a=0;a<c;a++){if(document.images[a].src==strResURL+"images/poweredby.png"){b=true;break}}if(b==false&&!window.opera){l1jI=false;isValidKey=false;jII.disableAll();return}l1jI=true}}VUtil={initVML:false,getBrowserName:function(){var b="";var a=navigator.userAgent.toLowerCase();if(a.indexOf("opera")!=-1){b="opera"}else{if(a.indexOf("msie")!=-1){b="msie"}else{if(a.indexOf("safari")!=-1){b="safari"}else{if(a.indexOf("mozilla")!=-1){if(a.indexOf("firefox")!=-1){b="firefox"}else{b="mozilla"}}}}}return b},isIE6Browser:function(){return(/msie|MSIE 6/.test(navigator.userAgent))},isVBDWebsite:function(){if(((window.location.href.indexOf("http://www.vietbando.com")!=-1)||(window.location.href.indexOf("http://image1.vietbando.com")!=-1)||(window.location.href.indexOf("http://image2.vietbando.com")!=-1)||(window.location.href.indexOf("http://image3.vietbando.com")!=-1)||(window.location.href.indexOf("http://image4.vietbando.com")!=-1)||(window.location.href.indexOf("http://www.vietbando.net")!=-1)||(window.location.href.indexOf("http://www.vietbando.com.vn")!=-1)||(window.location.href.indexOf("http://www.vietbando.vn")!=-1)||(window.location.href.indexOf("http://vietbando.com")!=-1)||(window.location.href.indexOf("http://vietbando.net")!=-1)||(window.location.href.indexOf("http://vietbando.com.vn")!=-1)||(window.location.href.indexOf("http://vietbando.vn")!=-1))){return true}},addVMLStyle:function(){if(!this.initVML&&document.readyState=="complete"){if(!document.namespaces.v){document.namespaces.add("v","urn:schemas-microsoft-com:vml")}var a=document.createStyleSheet();a.addRule("v\\:shape","behavior:url(#default#VML); display:inline-block; antialias:true");a.addRule("v\\:shape","behavior:url(#default#VML); display:inline-block; antialias:true");a.addRule("v\\:group","behavior:url(#default#VML); display:inline-block; antialias:true");a.addRule("v\\:polyline","behavior:url(#default#VML); display:inline-block; antialias:true");a.addRule("v\\:stroke","behavior:url(#default#VML); display:inline-block; antialias:true");a.addRule("v\\:fill","behavior:url(#default#VML); display:inline-block; antialias:true");
a.addRule("v\\:rect","behavior:url(#default#VML); display:inline-block; antialias:true");a.addRule("v\\:oval","behavior:url(#default#VML); display:inline-block; antialias:true");this.initVML=true}},fixPNG:function(){if(VUtil.isIE6Browser()){for(var g=0;g<document.images.length;g++){var d=document.images[g];var f=d.src.toUpperCase();if(f.substring(f.length-3,f.length)=="PNG"&&d.className=="transimg"){var b=(d.id)?"id='"+d.id+"' ":"";var e=(d.className)?"class='"+d.className+"' ":"";var h=(d.title)?"title='"+d.title+"' ":"title='"+d.alt+"' ";var c="display:inline-block;"+d.style.cssText;if(d.align=="left"){c="float:left;"+c}if(d.align=="right"){c="float:right;"+c}if(d.parentElement.href){c="cursor:hand;"+c}var a="<span "+b+e+h+' style="width:'+d.width+"px; height:"+d.height+"px;"+c+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='scale');\"></span>";d.outerHTML=a;g=g-1}}}},lijj:function(b){var a=b.toString().toLowerCase();if(a.indexOf("<")!=-1||a.indexOf(">")!=-1||a.indexOf("script")!=-1){return false}return true},bubbleEventObject:function(b,a){var c=(browserName!="msie")?"HTML":"BODY";var d=(browserName!="msie")?b.target:event.srcElement;while(d.tagName!="path"&&d.tagName!=c&&(d.className.indexOf!=undefined&&d.className.indexOf("dragruler")==-1&&d.className!="overviewmap"&&d.className!="dragoverview"&&d.className!="dragmarker"&&d.className!="clickmarker"&&d.className!="dragline"&&d.className!="dragtext"&&d.className.indexOf("clickcontrol")==-1&&d.className!="nomousemove")){d=(browserName!="msie")?d.parentNode:d.parentElement;if(d==null){return false}}a[0]=(d.tagName!=c&&d.tagName!="svg");a[1]=d},isVObject:function(a){var b=(browserName!="msie")?"HTML":"BODY";var c=(browserName!="msie")?a.target:event.srcElement;if(c.className==undefined){return false}while(c.tagName!=b&&(c.className.indexOf!=undefined&&c.className.indexOf("dragruler")==-1&&c.className!="overviewmap"&&c.className!="dragoverview"&&c.className!="dragmarker"&&c.className.indexOf("clickcontrol")==-1&&c.className!="nomousemove")){c=(browserName!="msie")?c.parentNode:c.parentElement;if(c==null){return false}}if(c.tagName!=b&&c.tagName!="svg"){return true}return false},isMapAreaObject:function(a){var b=(browserName!="msie")?"HTML":"BODY";var c=(browserName!="msie")?a.target:event.srcElement;if(c.className==undefined){return false}while(c.tagName!=b&&c.className!="dragmaparea"){c=(browserName!="msie")?c.parentNode:c.parentElement;if(c==null){return false}}if(c.tagName!=b&&c.tagName!="svg"){return true}return false},CreateDivElement:function(a,c,g,b,h,f,d,i){var e;if(a!=""){e=document.getElementById(a);if(e==null){e=document.createElement("div");e.id=a}}else{e=document.createElement("div")}e.style.position=f;e.style.overflow=d;if(!isNaN(c)&&c!=""){c+="px"}if(!isNaN(g)&&g!=""){g+="px"}if(!isNaN(b)&&b!=""){b+="px"}if(!isNaN(h)&&h!=""){h+="px"}e.style.left=c;e.style.top=g;e.style.width=b;e.style.height=h;e.innerHTML=i;return e},RemoveDivElement:function(d,b){try{var a=document.getElementById(d);if(a!=null){if(b==null){document.removeChild(a)}else{document.getElementById(b).removeChild(a)}}}catch(c){}},il1:function(c,e,b,d){if(c.indexOf("?")>-1){c+="&jsonp="}else{c+="?jsonp="}c+=b+"&";if(d){c+=encodeURIComponent(d)+"&"}c+=new Date().getTime().toString();c+="&key="+lIlI;c+="&location="+window.location;var a=document.createElement("script");a.setAttribute("src",c);a.setAttribute("type","text/javascript");document.body.appendChild(a)},RemoveLeftColumn:function(a){var b=document.getElementById(a).rows;for(var c=0;c<b.length;c++){if(b[c].cells.length>1){b[c].deleteCell(-1)}}},RemoveRightColumn:function(a){var b=document.getElementById(a).rows;for(var c=0;c<b.length;c++){if(b[c].cells.length>1){b[c].deleteCell(0)}}},OOP_ClipInside:function(j,d,k,o,a){var l=new Array();var g;var e;var c,n,b,m;var f=j.length;var p;var h=new OOP_ClipObj();g=0;while(g<f-1){c=j[g];n=j[g+1];b=j[g+2];m=j[g+3];e=this.OOP_LineClip(c,n,b,m,d,k,o,a,h);if(e){break}g+=2}if(!e){return l}p=new Array();for(;g<f-1;g+=2){c=j[g];n=j[g+1];b=j[g+2];m=j[g+3];e=this.OOP_LineClip(c,n,b,m,d,k,o,a,h);if(e){p.push(h.x1);p.push(h.y1);if(this.OOP_IsInside(j[g+2],j[g+3],d,k,o,a)){continue}else{p.push(h.x2);p.push(h.y2);l.push(p);p=new Array()}}}if(this.OOP_IsInside(j[f-2],j[f-1],d,k,o,a)){p.push(j[f-2]);p.push(j[f-1])}if(p.length!=0){l.push(p)}return l},OOP_LineClip:function(d,k,b,j,g,i,l,a,h){var e=0,c=1;var n=b-d,m;var f=new OOP_ClipObj();if(this.OOP_ClipTest(-n,d-g,e,c,f)){if(this.OOP_ClipTest(n,l-d,f.x1,f.y1,f)){m=j-k;if(this.OOP_ClipTest(-m,k-i,f.x1,f.y1,f)){if(this.OOP_ClipTest(m,a-k,f.x1,f.y1,f)){e=parseFloat(f.x1);c=parseFloat(f.y1);if(c<1){b=parseInt(d)+Math.round(c*n);j=parseInt(k)+Math.round(c*m)}if(e>0){d=parseInt(d)+Math.round(e*n);k=parseInt(k)+Math.round(e*m)}h.x1=d;h.x2=b;h.y1=k;h.y2=j;return true}}}}return false},OOP_ClipTest:function(g,d,f,c,a){var b;var e=true;if(g<0){b=parseFloat(d/g);if(b>c){e=false}else{if(b>f){f=b}}}else{if(g>0){b=parseFloat(d/g);if(b<f){e=false}else{if(b<c){c=b}}}else{if(d<0){e=false}}}a.x1=f;a.y1=c;return e},OOP_IsInside:function(a,f,e,c,d,b){if(a<e||a>d){return false}if(f<c||f>b){return false}return true},setVColorOver:function(a){a.bgColor="#e6f5fe"},setVColorOut:function(a){a.bgColor="#ffffff"},vbdmousedownpopup:function(){vbdmousedownpopupflag=true},createZoomAnimation:function(h,a,g){var f=0;if(h>0){f=10}else{f=46}var d=VUtil.CreateDivElement("vbdani_lefttop",a-f-5,g-f-5,10,8,"absolute","hidden","");d.style.border=0;d.style.zIndex=TopZIndex;if(h>0){d.style.borderLeft="2px red solid";d.style.borderTop="2px red solid"}else{d.style.borderRight="2px red solid";d.style.borderBottom="2px red solid"}document.body.appendChild(d);var e=VUtil.CreateDivElement("vbdani_righttop",a+f-5,g-f-5,10,8,"absolute","hidden","");e.style.border=0;e.style.zIndex=TopZIndex;if(h>0){e.style.borderRight="2px red solid";e.style.borderTop="2px red solid"}else{e.style.borderLeft="2px red solid";e.style.borderBottom="2px red solid"}document.body.appendChild(e);var b=VUtil.CreateDivElement("vbdani_leftbottom",a-f-5,g+f-5,10,8,"absolute","hidden","");b.style.border=0;b.style.zIndex=TopZIndex;if(h>0){b.style.borderLeft="2px red solid";b.style.borderBottom="2px red solid"}else{b.style.borderRight="2px red solid";b.style.borderTop="2px red solid"}document.body.appendChild(b);var c=VUtil.CreateDivElement("vbdani_rightbottom",a+f-5,g+f-5,10,8,"absolute","hidden","");c.style.border=0;c.style.zIndex=TopZIndex;if(h>0){c.style.borderRight="2px red solid";c.style.borderBottom="2px red solid"}else{c.style.borderLeft="2px red solid";c.style.borderTop="2px red solid"}document.body.appendChild(c)},Distance:function(b,e,a,c){var f=(a-b)*(a-b)+(c-e)*(c-e);if(f==0){return 0}return f},ProjectFactor:function(g,d,b,f,a,e){if(g==b&&d==f){return 0}if(g==a&&d==e){return 1}var i,h,c;i=a-b;h=e-f;c=i*i+h*h;return((g-b)*i+(d-f)*h)/c},ProjectPoint:function(a,h,c,e,b,d){var g=new VLatLng(0,0);var f;if(a==c&&h==e){g.longitude=a;g.latitude=h;return g}if(a==b&&h==d){g.longitude=a;g.latitude=h;return g}f=this.ProjectFactor(a,h,c,e,b,d);g.longitude=c+f*(b-c);g.latitude=e+f*(d-e);return g},ClosestPoint:function(k,h,e,j,c,i){var d=new VLatLng(0,0);var b,a,g=this.ProjectFactor(k,h,e,j,c,i);if(g>0&&g<1){return this.ProjectPoint(k,h,e,j,c,i)}b=this.Distance(k,h,e,j);a=this.Distance(k,h,c,i);if(b<a){d.longitude=e;d.latitude=j;return d}d.longitude=c;d.latitude=i;return d},ClosestPointPolyline:function(p,m,e,o){var d=0;var c,n,a,l;var k=new VLatLng(0,0);var b=new VLatLng(0,0);var j,g;var f,h=e.length;c=e[0].longitude;n=e[0].latitude;a=e[1].longitude;l=e[1].latitude;b=this.ClosestPoint(p,m,c,n,a,l);g=this.Distance(p,m,b.longitude,b.latitude);for(f=1;f<h-1;f++){c=e[f].longitude;n=e[f].latitude;a=e[f+1].longitude;l=e[f+1].latitude;k=this.ClosestPoint(p,m,c,n,a,l);j=this.Distance(p,m,k.longitude,k.latitude);if(j<g){g=j;b=k;d=f}}o[0]=b;o[1]=d},ClosestPointPolylines:function(l,h,j,k){var m=null;var e=0;var f=0;var a=new VLatLng(0,0);for(var g=0;
g<j.length;g++){var c=j[g];var d=new Array();VUtil.ClosestPointPolyline(l,h,c,d);if(m==null){m=VUtil.Distance(l,h,d[0].x,d[0].y);a=d[0]}else{var b=VUtil.Distance(l,h,d[0].x,d[0].y);if(m>b){m=b;a=d[0];e=f+d[1]}}f+=j[g].length}k[0]=a;k[1]=e},isInsidePolygon:function(c,e){var a=false;var b;var d=e.length;for(b=0;b<d-1;b++){if((((e[b+1].latitude<=c.latitude)&&(c.latitude<e[b].latitude))||((e[b].latitude<=c.latitude)&&(c.latitude<e[b+1].latitude)))&&(c.longitude<(e[b].longitude-e[b+1].longitude)*(c.latitude-e[b+1].latitude)/(e[b].latitude-e[b+1].latitude)+e[b+1].longitude)){a=!a}}return a},getCenterPoint:function(f){var e=f.length;var d=0;var a;for(a=0;a<e-1;a++){d+=(f[a].latitude+f[a+1].latitude)*(f[a].longitude-f[a+1].longitude)}d*=3;var b=0;var c=0;for(a=0;a<e-1;a++){b+=(f[a].longitude+f[a+1].longitude)*(f[a].longitude*f[a+1].latitude-f[a+1].longitude*f[a].latitude);c+=(f[a].latitude+f[a+1].latitude)*(f[a].longitude*f[a+1].latitude-f[a+1].longitude*f[a].latitude)}b=b/d;c=c/d;return new VLatLng(c,b)},VLength2:function(a){return a.dx*a.dx+a.dy*a.dy},SimplifyDP:function(q,n,s,r,x){if(r<=s+1){return}var t,p=s;var a=0;var h=q*q;var g=new Segment();var o=new Vector();var m=new Vector();var c=new Vector();var d=new VPoint();var y,f,e,l;g.p1=n[s];g.p2=n[r];o.dx=g.p2.x-g.p1.x;o.dy=g.p2.y-g.p1.y;f=o.dx*o.dx+o.dy*o.dy;for(t=s+1;t<r;t++){m.dx=n[t].x-g.p1.x;m.dy=n[t].y-g.p1.y;e=m.dx*o.dx+m.dy*o.dy;if(e<=0){c.dx=n[t].x-g.p1.x;c.dy=n[t].y-g.p1.y;l=this.VLength2(c)}else{if(f<=e){c.dx=n[t].x-g.p2.x;c.dy=n[t].y-g.p2.y;l=this.VLength2(c)}else{y=e/f;d.x=g.p1.x+y*o.dx;d.y=g.p1.y+y*o.dy;c.dx=n[t].x-d.x;c.dy=n[t].y-d.y;l=this.VLength2(c)}}if(l<=a){continue}p=t;a=l}if(a>h){x[p]=1;this.SimplifyDP(q,n,s,p,x);this.SimplifyDP(q,n,p,r,x)}},Simplify:function(p,j,b,c){var g,e,d,o;var a=p*p;var l=new Array();var h=new Vector();var f=new Array();for(g=0;g<b;g++){f[g]=0}l[0]=j[0];e=1;o=0;for(g=1;g<b;g++){h.dx=j[g].x-j[o].x;h.dy=j[g].y-j[o].y;if(this.VLength2(h)<a){continue}l[e++]=j[g];o=g}if(o<b-1){l[e++]=j[b-1]}f[0]=f[e-1]=1;this.SimplifyDP(p,l,0,e-1,f);d=0;for(g=0;g<e;g++){if(f[g]){c[d++]=l[g]}}return d},Reduction:function(c,d,f){var g=d.length;var b=new Array();var e,a;if(g==2){return}a=this.Simplify(c,d,g,b);for(e=0;e<a;e++){f[e]=b[e]}},includeCSS:function(a){var b=document.createElement("link");b.rel="stylesheet";b.type="text/css";b.href=strResURL+a;document.getElementsByTagName("head")[0].appendChild(b)},vType:function(){return"VUtil"}};function OOP_ClipObj(){this.x1=0;this.y1=0;this.x2=0;this.y2=0}function Vector(){this.dx=0;this.dy=0}function Segment(){this.p1=new VPoint();this.p2=new VPoint()}function initializeTimer(){CountRequest++;stopTheClock();g_REtimerID=setTimeout(startTheTimer,g_REdelay)}function stopTheClock(){if(g_REtimerID!=null){clearTimeout(g_REtimerID);g_REtimerID=null}}function startTheTimer(){stopTheClock();VUtil.il1(ill+"?NumRequest="+CountRequest,"","","");CountRequest=0}function VOverlay(){this.getZIndex=d;this.initialize=b;this.remove=a;this.copy=f;this.redraw=e;function d(g){}function b(g){}function a(){}function f(){}function e(g){}function c(){}}VEvent={addListener:function(f,c,e){switch(f.vType()){case"VMap":var h=document.getElementById(f.id);if(c=="click"||c=="dblclick"){if(h!=undefined){return this.addDOMListener(h,c,function(l){if(h.llII==true&&c=="click"){h.llII=false;return}if(h.ll1j==true){h.ll1j=false;return}if(h.hasDraggedText==true){h.hasDraggedText=false;return}var j=new VPoint(lIlj-f.Left,lIl1-f.Top);var i=f.fromContainerPixelToLatLng(j);var k=new Array();VUtil.bubbleEventObject(l,k);var m=k[1];if(k[0]){if(m.llIl!=undefined){e(m.llIl,i)}return}e(null,i)})}}else{if(c=="singlerightclick"){c="contextmenu";if(h!=undefined){return this.addDOMListener(h,c,function(l){var j=(browserName!="msie")?l.target:event.srcElement;var m=j;var k=new VPoint(lIlj-f.Left,lIl1-f.Top);var i=setTimeout(function(){clearTimeout(i);if(h.dblRC=="true"){h.dblRC=="false"}else{var n=(browserName!="msie")?"HTML":"BODY";while(m.tagName!="path"&&m.tagName!=n&&(m.className.indexOf!=undefined&&m.className.indexOf("dragruler")==-1&&m.className!="overviewmap"&&m.className!="dragoverview"&&m.className!="dragmarker"&&m.className!="dragline"&&m.className!="dragtext"&&m.className.indexOf("clickcontrol")==-1&&m.className!="nomousemove")){m=(browserName!="msie")?m.parentNode:m.parentElement;if(m==null){return false}}if(m.tagName!=n&&m.tagName!="svg"){if(m.llIl!=undefined){e(k,j,m.llIl)}return}e(k,j,null)}},230)})}}else{if(c=="movestart"){if(f!=undefined){f.ll11=e}}else{if(c=="moving"){if(f!=undefined){f.ll1I=e}}else{if(c=="moveend"){if(f!=undefined){f.llil=e}}else{if(c=="zoomstart"){if(f!=undefined){f.zoomstartHandler=e}}else{if(c=="zoomend"){if(f!=undefined){f.l1ij=e}}else{if(c=="infowindowbeforeclose"){if(f!=undefined){f.lil1=e}}else{if(c=="infowindowclose"){if(f!=undefined){f.lilI=e}}else{if(c=="infowindowclosebuttonclick"){if(f!=undefined){f.infoWindowCloseButtonClickHandler=e}}else{if(c=="addoverlay"){if(f!=undefined){f.lIj1=e}}else{if(c=="removeoverlay"){if(f!=undefined){f.l1jl=e}}else{if(c=="clearoverlays"){if(f!=undefined){f.li11=e}}else{if(c=="mouseover"||c=="mouseout"||c=="mousemove"){if(h!=undefined){return this.addDOMListener(h,c,function(k){var m=(browserName!="msie")?k.target:event.srcElement;var l=(browserName!="msie")?"HTML":"BODY";while(m.parentNode.tagName!="svg"&&m.tagName!=l&&(m.className.indexOf!=undefined&&m.className.indexOf("dragruler")==-1&&m.className!="overviewmap"&&m.className!="dragoverview"&&m.className!="dragmarker"&&m.className!="dragline"&&m.className.indexOf("clickcontrol")==-1&&m.className!="nomousemove")){m=(browserName!="msie")?m.parentNode:m.parentElement;if(m==null){return false}}if(m.tagName!=l&&m.tagName!="svg"){return}if(h.ll1j==true){h.ll1j=false;return}var j=new VPoint(lIlj-f.Left,lIl1-f.Top);var i=f.fromContainerPixelToLatLng(j);e(i)})}}else{if(c=="dragstart"){if(f!=undefined){f.li1i=e}}else{if(c=="dragging"){if(f!=undefined){f.li1j=e}}else{if(c=="dragend"){if(f!=undefined){f.li1l=e}}else{if(c=="loaded"){if(f!=undefined){f.li1I=e}}}}}}}}}}}}}}}}}}}break;case"VMarker":var d=document.getElementById(f.id);var h=document.getElementById(f.l1lI.id);if(c=="click"||c=="dblclick"||c=="mousedown"||c=="mouseup"||c=="mouseover"||c=="mouseout"||c=="mousemove"){if(d!=undefined){if(f.sHandler==null||f.sHandler==undefined){f.sHandler=new Array();f.svEvent=new Array()}f.sHandler[f.sHandler.length]=e;f.svEvent[f.svEvent.length]=c;if(h.l1I.lIj.isOpened()){if(VUtil.isInsidePolygon(f.latlngs,h.l1I.lIj.mappingLLs)){this.addDOMListener(f.mappingDiv,c,function(){if(h.ll1j==true){h.ll1j=false;return}var j=new VPoint(lIlj-h.l1I.Left,lIl1-h.l1I.Top);var i=h.l1I.fromContainerPixelToLatLng(j);e(f,i)})}}return this.addDOMListener(d,c,function(){if(h.ll1j==true){h.ll1j=false;return}var j=new VPoint(lIlj-h.l1I.Left,lIl1-h.l1I.Top);var i=h.l1I.fromContainerPixelToLatLng(j);e(f,i)})}}else{if(c=="infowindowopen"){d.lIjj=e}else{if(c=="infowindowbeforeclose"){d.lil1=e}else{if(c=="infowindowclose"){d.lilI=e}else{if(c=="remove"){d.lili=e}else{if(c=="dragstart"){d.dragStartHandler=function(){if(this.llIl.lill.draggable){e(this.llIl)}}}else{if(c=="dragging"){d.li1j=function(){if(this.llIl.lill.draggable){e(this.llIl)}}}else{if(c=="dragend"){d.dragEndHandler=function(){if(this.llIl.lill.draggable){e(this.llIl)}}}else{if(c=="visibilitychanged"){d.liI1=e}}}}}}}}}break;case"VText":var b=f.liII;if(c=="dragend"){b.dragEndHandler=function(){if(this.llIl.textOptions.draggable){e(this.llIl)}}}break;case"VPolyline":var g=f.liII;if(c=="remove"){f.lili=e}else{if(c=="visibilitychanged"){f.liI1=e}else{if(c=="click"){if(f.opts.clickable){f.lijI=e;f.addLineHandlers()}}else{if(c=="mouseover"){f.mouseoverHandler=e;f.addLineHandlers()}else{if(c=="mousemove"){f.mousemoveHandler=e;f.addLineHandlers()}else{if(c=="mouseout"){f.mouseoutHandler=e;f.addLineHandlers()}}}}}}break;case"VPolygon":var a=f.liII;if(c=="remove"){f.lili=e}else{if(c=="visibilitychanged"){f.liI1=e}else{if(c=="click"){if(f.opts.clickable){f.lijI=e;
f.addLineHandlers()}}else{if(c=="mouseover"){f.mouseoverHandler=e;f.addLineHandlers()}else{if(c=="mousemove"){f.mousemoveHandler=e;f.addLineHandlers()}else{if(c=="mouseout"){f.mouseoutHandler=e;f.addLineHandlers()}}}}}}break;case"VDirections":if(c=="loaded"){if(f!=undefined){f.li1I=e}}break;case"VInfoWindow":if(c=="maximizeclick"){if(f!=undefined){f.maximizeclickHandler=e}}else{if(c=="maximizeend"){if(f!=undefined){f.maximizeendHandler=e}}else{if(c=="restoreclick"){if(f!=undefined){f.restoreclickHandler=e}}else{if(c=="restoreend"){if(f!=undefined){f.restoreendHandler=e}}}}}break}return new VEventListener(f,c,e,0)},addDOMListener:function(c,a,b){if(c!=undefined){if(browserName=="msie"){c.attachEvent("on"+a,b)}else{c.addEventListener(a,b,true)}return new VEventListener(c,a,b,1)}return null},removeListener:function(d){if(d.type==1){if(d.source!=undefined){if(browserName=="msie"){d.source.detachEvent("on"+d.llI1,d.handler)}else{d.source.removeEventListener(d.llI1,d.handler,true)}}}else{switch(d.source.vType()){case"VMap":var f=document.getElementById(d.source.id);if(d.llI1=="movestart"){if(d.source!=undefined){delete d.source.ll11}}else{if(d.llI1=="moving"){if(d.source!=undefined){delete d.source.ll1I}}else{if(d.llI1=="moveend"){if(d.source!=undefined){delete d.source.llil}}else{if(d.llI1=="zoomend"){if(d.source!=undefined){delete d.source.l1ij}}else{if(d.llI1=="infowindowbeforeclose"){if(d.source!=undefined){delete d.source.lil1}}else{if(d.llI1=="infowindowclose"){if(d.source!=undefined){delete d.source.lilI}}else{if(d.llI1=="infowindowclosebuttonclick"){if(d.source!=undefined){delete d.source.infoWindowCloseButtonClickHandler}}else{if(d.llI1=="addoverlay"){if(d.source!=undefined){delete d.source.lIj1}}else{if(d.llI1=="removeoverlay"){if(d.source!=undefined){delete d.source.l1jl}}else{if(d.llI1=="clearoverlays"){if(d.source!=undefined){delete d.source.li11}}else{if(d.llI1=="dragstart"){if(d.source!=undefined){delete d.source.li1i}}else{if(d.llI1=="dragging"){if(d.source!=undefined){delete d.source.li1j}}else{if(d.llI1=="dragend"){if(d.source!=undefined){delete d.source.li1l}}else{if(d.llI1=="loaded"){if(d.source!=undefined){delete d.source.li1I}}}}}}}}}}}}}}}break;case"VMarker":var c=document.getElementById(d.source.id);var f=document.getElementById(d.source.l1lI.id);if(d.llI1=="infowindowopen"){c.lIjj=null}else{if(d.llI1=="infowindowbeforeclose"){c.lil1=null}else{if(d.llI1=="infowindowclose"){c.lilI=null}else{if(d.llI1=="remove"){c.lili=null}else{if(d.llI1=="dragstart"){if(d.source.lill.draggable){c.dragStartHandler=null}}else{if(d.llI1=="dragging"){if(d.source.lill.draggable){c.li1j=null}}else{if(d.llI1=="dragend"){if(d.source.lill.draggable){c.dragEndHandler=null}}else{if(d.llI1=="visibilitychanged"){c.liI1=null}}}}}}}}break;case"VText":var b=d.source.liII;if(d.llI1=="dragend"){if(d.source.textOptions.draggable){b.dragEndHandler=null}}break;case"VPolyline":var e=d.source.liII;if(d.llI1=="remove"){delete d.source.lili}else{if(d.llI1=="visibilitychanged"){delete d.source.liI1}else{if(d.llI1=="click"){delete d.source.lijI;d.source.removeLineHandlers()}else{if(d.llI1=="mouseover"){delete d.source.mouseoverHandler;d.source.removeLineHandlers()}else{if(d.llI1=="mousemove"){delete d.source.mousemoveHandler;d.source.removeLineHandlers()}else{if(d.llI1=="mouseout"){delete d.source.mouseoutHandler;d.source.removeLineHandlers()}}}}}}break;case"VPolygon":var a=d.source.liII;if(d.llI1=="remove"){delete d.source.lili}else{if(d.llI1=="visibilitychanged"){delete d.source.liI1}else{if(d.llI1=="click"){delete d.source.lijI;d.source.removeLineHandlers()}else{if(d.llI1=="mouseover"){delete d.source.mouseoverHandler;d.source.removeLineHandlers()}else{if(d.llI1=="mousemove"){delete d.source.mousemoveHandler;d.source.removeLineHandlers()}else{if(d.llI1=="mouseout"){delete d.source.mouseoutHandler;d.source.removeLineHandlers()}}}}}}break;case"VDirections":if(d.llI1=="loaded"){if(d.source!=undefined){delete d.source.li1I}}break;case"VInfoWindow":if(d.llI1=="maximizeclick"){if(d.source!=undefined){delete d.source.maximizeclickHandler}}else{if(d.llI1=="maximizeend"){if(d.source!=undefined){delete d.source.maximizeendHandler}}else{if(d.llI1=="restoreclick"){if(d.source!=undefined){delete d.source.restoreclickHandler}}else{if(d.llI1=="restoreend"){if(d.source!=undefined){delete d.source.restoreendHandler}}}}}break}}},clearListeners:function(b,a){},clearInstanceListeners:function(a){},trigger:function(b,a){},vType:function(){return"VEvent"}};function VEventListener(d,a,c,b){this.source=d;this.llI1=a;this.handler=c;this.type=b;this.vType=function(){return"VEventListener"}}function VIcon(b,a){if(b==undefined||b.image==undefined){this.image=(b==undefined)?V_DEFAULT_ICON:b;this.liij="";this.iconSize=(a==undefined)?null:a;this.lij1=null}else{this.image=b.image;this.liij=b.liij;this.iconSize=b.iconSize;this.lij1=b.lij1}this.vType=function(){return"VIcon"}}function VInfoWindow(){this.selectedTab=0;this.tabs=null;this.point=null;this.size=null;this.offset=null;this.liii=false;this.maximizable=true;this.sizeState="normal";this.l1lI=null;this.mappingLLs=null;this.options=new VInfoWindowOptions();this.selectTab=s;this.hide=l;this.show=t;this.close=o;this.updateMaxContent=v;this.updateMaxTitle=f;this.createInfoWindow=w;this.redraw=p;this.getInfoWindowSize=n;this.getInfoWindowPan=m;this.isOpened=g;this.isHidden=e;this.reset=u;this.getPoint=b;this.getPixelOffset=k;this.getSelectedTab=h;this.getTabs=i;this.getContentContainers=c;this.enableMaximize=a;this.disableMaximize=r;this.maximize=j;this.restore=q;this.vType=d;function s(x){if(document.getElementById(this.l1lI.id+"_InfoWindow")==null){return}if(this.tabs.length==1){this.selectedTab=0;document.getElementById("VIWContent0").style.display="";return}document.getElementById("VIWTab"+this.selectedTab).style.zIndex=5;document.getElementById("VIWTab"+this.selectedTab).childNodes[0].childNodes[0].style.left="-201px";document.getElementById("VIWContent"+this.selectedTab).style.display="none";this.selectedTab=x;document.getElementById("VIWTab"+this.selectedTab).style.zIndex=6;document.getElementById("VIWTab"+this.selectedTab).childNodes[0].childNodes[0].style.left="-98px";document.getElementById("VIWContent"+this.selectedTab).style.display=""}function l(){if(document.getElementById(this.l1lI.id+"_InfoWindow")!=null){document.getElementById(this.l1lI.id+"_InfoWindow").style.visibility="hidden"}this.liii=true}function o(){if(this.l1lI.lil1!=undefined){this.l1lI.lil1()}var z=document.getElementById(this.l1lI.id+"_path");var y=document.getElementById(this.l1lI.id+"_InfoWindow");if(y!=null){z.removeChild(y);if(this.l1lI.lilI!=undefined){this.l1lI.lilI()}}this.sizeState="normal";this.l1lI.showControls();for(var x=0;x<this.l1lI.li1;x++){if(this.l1lI.lil[x].vType()=="VMarker"){this.l1lI.lil[x].removeMappingMarker()}}if(this.openMk!=null){this.openMk.updateZIndex();this.openMk=null}}function t(){if(!this.liii){var x=document.getElementById(this.l1lI.id+"_InfoWindow");if(!this.options.maximizeWhenOpen){this.sizeState="normal";this.l1lI.showControls()}else{if(this.sizeState=="maximize"){this.l1lI.hideControls()}}if(x==null){var y=document.getElementById(this.l1lI.id+"_path");x=document.createElement("div");x.id=this.l1lI.id+"_InfoWindow";x.style.zIndex=InfoWindowShadeZIndex;x.style.position="absolute";y.appendChild(x)}this.createInfoWindow()}else{if(document.getElementById(this.l1lI.id+"_InfoWindow")!=null){document.getElementById(this.l1lI.id+"_InfoWindow").style.visibility="visible"}this.liii=false}}function v(x){if(document.getElementById(this.l1lI.id+"_InfoWindow")==null){return}this.options.maxContent=x;document.getElementById("VIWC").innerHTML=x}function f(x){if(document.getElementById(this.l1lI.id+"_InfoWindow")==null){return}this.options.maxTitle=x;document.getElementById("VIWT").innerHTML=x}function w(){var Q=document.getElementById(this.l1lI.id+"_InfoWindow");if(Q==null){return}var M=this.l1lI.fromLatLngToDivPixel(this.point);var aB=32;var aq=-7;var ao=0;
var O=this.l1lI.lli1.offsetWidth-50;var T=this.l1lI.lli1.offsetHeight-50;var ax=Math.min(this.size.width,O);var ar=Math.min(this.size.height,T);if(this.sizeState=="normal"){ax=Math.max(ax,84*this.tabs.length-1+50)}else{ax=Math.min(658,O);ar=Math.min(474,T)}var aa=ax+aB;var R=ar+aB;if(this.sizeState=="normal"){aa=Math.min(aa,690);R=Math.min(R,506)}var aF=97;var az=96;var A=(this.sizeState=="normal")?R+az:R+25;this.iii=aa;this.ijl=A;var al=aa+40,ac=parseInt(A*0.5);al=Math.min(al,740);ac=Math.min(ac,298);var K=323;var V=1033;var C=30;var D=60;var ah=70;var J=14;var B=754;var at=310;var ap=345;var P=140;var an=259;var I=119;var Z=new Array();var aE=strResURL+"images/infowindowshade.png";var am=al-2*ah;var aj=0;var G=0;var X=I;var ak=ac-C-D;var x=K-ak;var z=ah;var ai=am-P+C;if(ai>0){if(ai>=50){aj=(ai-50)/2;G=ai-aj}else{aj=0;G=ai}}if(ak>=P){X=an}var ae=ak+C;var aA=0;var ab=ae+ah;var H=aA;var E=M.x-ah-aj+aq+this.offset.width;var F=M.y-ac+ao+this.offset.height;if(this.sizeState=="maximize"){F+=45}Z[Z.length]="<div class='dragmap' style='z-index:"+InfoWindowShadeZIndex+"; position:absolute; left:"+E+"px; top:"+F+"px;'>";Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+C+"px; z-index:1; position:absolute; left:"+ae+"px; top:"+aA+"px;'>";Z[Z.length]="<img class='transimg' src='"+aE+"' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+K+"px; top:0px; width:1144px; height:370px; -moz-user-select:none;' />";Z[Z.length]="</div>";if(am>0){Z[Z.length]="<div style='overflow:hidden; position:absolute; left:"+ab+"px; top:0px; width:"+am+"px; height:30px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+(K+ah)+"px; top:0px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>"}Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+C+"px; z-index:1; position:absolute; left:"+(ae+ah+am)+"px; top:0px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+V+"px; top:0px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";Z[Z.length]="<div style='overflow:hidden; width:"+z+"px; height:"+ak+"px; bottom:-1px; position:absolute; left:"+(ae-ak)+"px; top:"+C+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+x+"px; top:-"+C+"px; -moz-user-select:none; width:1144px; height:370px;' src='"+aE+"'/>";Z[Z.length]="</div>";Z[Z.length]="<div style='overflow:hidden; position:absolute; left:"+(ae+ah-ak)+"px; top:"+C+"px; width:"+am+"px; height:"+ak+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left: -"+(x+ah)+"px; top:-"+C+"px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";Z[Z.length]="<div style='overflow:hidden; width:"+(z+ak)+"px; height:"+ak+"px; bottom:-1px; position:absolute; left:"+(ae-ak+z+am)+"px; top:"+C+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+(V-ak)+"px; top:-"+C+"px; -moz-user-select:none; width:1144px; height:370px;' src='"+aE+"'/>";Z[Z.length]="</div>";Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+D+"px; z-index:1; position:absolute; left:"+(ae-ak-C)+"px; top:"+(C+ak)+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+J+"px; top:-"+at+"px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";if(aj>0){Z[Z.length]="<div style='overflow:hidden; position:absolute; left:"+(ae-ak-C+ah)+"px; top:"+(C+ak)+"px; width:"+aj+"px; height:"+D+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+ap+"px; top:-"+at+"px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>"}Z[Z.length]="<div style='overflow:hidden; width:"+P+"px; height:"+D+"px; z-index:1; position:absolute; left:"+(ae-ak-C+ah+aj)+"px; top:"+(C+ak)+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+X+"px; top:-310px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";if(G>0){Z[Z.length]="<div style='overflow:hidden; position:absolute; left:"+(ae-ak-C+ah+P+aj)+"px; top:"+(C+ak)+"px; width:"+G+"px; height:"+D+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+ap+"px; top:-310px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>"}Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+D+"px; z-index:1; position:absolute; left:"+(ae-ak+z+am)+"px; top:"+(C+ak)+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:-"+B+"px; top:-"+at+"px; width:1144px; height:370px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";Z[Z.length]="</div>";var S=new Array();S[S.length]=new VPoint(ae-ak-C+E,R);S[S.length]=new VPoint(ae-ak-C+E,C+ak+D+F+15);S[S.length]=new VPoint(ae-ak+z+am+ah+E,C+ak+D+F+15);S[S.length]=new VPoint(ae-ak+z+am+ah+E,C+ak+F);S[S.length]=new VPoint(ae-ak+z+am+z+ak+E,C+ak+F);S[S.length]=new VPoint(ae-ak+z+am+z+ak+E,C+F);S[S.length]=new VPoint(ae+ah+am+ah+E,C+F);S[S.length]=new VPoint(ae+ah+am+ah+E,F);S[S.length]=new VPoint(aa+E,F);K=0;V=665;C=25;D=25;ah=25;J=0;B=665;at=665;ap=345;aF=97;az=96;an=368;I=0;aE=strResURL+"images/infowindow.png";E=parseInt(M.x+(aF-aa)/2)+aq+this.offset.width;F=parseInt(M.y-az-R+25)+ao+this.offset.height;if(this.sizeState=="maximize"){F+=45}am=al-2*ah;aj=0;G=0;X=I;ak=ac-C-D;x=K-ak;z=ah;ai=am-aF+C;if(ai>0){if(ai>=50){aj=(ai-50)/2;G=ai-aj}else{G=aj;aj=0}}if(ak>=aF){X=an}ae=ak+C;aA=0;ab=ae+ah;H=aA;Z[Z.length]="<div class='clickcontrol' style='z-index:"+InfoWindowZIndex+"; position:absolute; left:"+E+"px; top:"+F+"px;'>";Z[Z.length]="<div style='cursor:default; position:relative; left:0px; top:0px; z-index:10; width:"+aa+"px; height:"+R+"px;'>";Z[Z.length]="<img class='transimg' id='VIWBtnClose' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+(aa-23)+"px; top:7px; width:13px; height:13px; -moz-user-select: none; cursor:pointer; z-index:11;' src='"+strResURL+"images/iwclose.gif'/>";var af=(this.sizeState=="normal")?"iwmaximize.gif":"iwrestore.gif";Z[Z.length]="<img class='transimg' id='VIWBtnMR' style='"+(this.options.maxContent==""?"display:none;":"")+"border:0px; margin:0px; padding:0px; position:absolute; left:"+(aa-40)+"px; top:7px; width:13px; height:13px; -moz-user-select: none; cursor:pointer; z-index:11;' src='"+strResURL+"images/"+af+"' />";if(this.sizeState=="normal"){for(var aw=0;aw<this.tabs.length;aw++){Z[Z.length]="<div id='VIWContent"+aw+"' style='position:absolute; left:"+aB/2+"px; top:"+aB/2+"px; width:"+ax+"px; height:"+ar+"px; z-index:10; "+((this.selectedTab!=aw)?"display:none;":"")+"'><div>";Z[Z.length]=this.tabs[aw].content;Z[Z.length]="</div></div>"}}else{Z[Z.length]="<div id='VIWContent' style='position:absolute; left:"+aB/2+"px; top:"+aB/2+"px; width:"+ax+"px; height:"+ar+"px; z-index:10;'>";Z[Z.length]="<div style='position:absolute; left:0px; top:-15px; width:"+(ax+15)+"px; height:"+(ar+23)+"px;' >";Z[Z.length]="<div style='background:rgb(244, 244, 244) none repeat scroll 0% 0%; -moz-background-clip:-moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; height:"+((browserName=="msie")?24:23)+"px; margin-right:7px; position:relative;'>";Z[Z.length]="<div id='VIWT' style='overflow:hidden; width:"+(aa-51)+"px; text-align:center; position:absolute; top:2px;'>";Z[Z.length]=this.options.maxTitle;Z[Z.length]="</div>";Z[Z.length]="</div>";Z[Z.length]="<div id='VIWC' style='background:white none repeat scroll 0% 0%; overflow:auto; -moz-background-clip:-moz-initial; -moz-background-origin:-moz-initial; -moz-background-inline-policy:-moz-initial; position:relative; outline-color:-moz-use-text-color; outline-style:none; outline-width:0px; width:"+(ax+15)+"px; height:"+(ar-1)+"px;'>";
Z[Z.length]=this.options.maxContent;Z[Z.length]="</div>";Z[Z.length]="</div>";Z[Z.length]="</div>"}Z[Z.length]="</div>";var N=(this.sizeState=="normal")?0:-517;var U=(this.sizeState=="normal")?0:-691;Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+C+"px; z-index:1; position:absolute; left:0px; top:0px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+N+"px; top:"+U+"px; width:690px; height:786px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";if(this.sizeState=="maximize"){Z[Z.length]="<div style='border-top:1px solid rgb(171, 171, 171); overflow:hidden; width:"+aa+"px; height:1px; z-index:12; position:absolute; left:0px; top:"+(C-1)+"px;'></div>"}var aD=(this.sizeState=="normal")?-665:-542;var W=(this.sizeState=="normal")?0:-691;Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+C+"px; z-index:1; position:absolute; left:"+(aa-25)+"px; top:0px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+aD+"px; top:"+W+"px; width:690px; height:786px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";var aC=(this.sizeState=="normal")?0:-517;var Y=(this.sizeState=="normal")?-665:-716;Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+D+"px; z-index:1; position:absolute; left:0px; top:"+(R-25)+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+aC+"px; top:"+Y+"px; width:690px; height:786px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";var y=(this.sizeState=="normal")?-665:-542;var ag=(this.sizeState=="normal")?-665:-716;Z[Z.length]="<div style='overflow:hidden; width:"+ah+"px; height:"+D+"px; z-index:1; position:absolute; left:"+(aa-25)+"px; top:"+(R-25)+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+y+"px; top:"+ag+"px; width:690px; height:786px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";Z[Z.length]="<div style='z-index:1; background-color: white; position: absolute; width:"+(aa-50)+"px; height:"+D+"px; left:"+ah+"px; top:0px;' ></div><div style='z-index:1; border-top: 1px solid rgb(171, 171, 171); position: absolute; width:"+(aa-50)+"px; height:1px; left:"+ah+"px; top:0px;' ></div>";Z[Z.length]="<div style='z-index:1; background-color: white; position: absolute; width:"+aa+"px; height:"+(R-50)+"px; left:0px; top:"+ah+"px;' ></div><div style='z-index:1; border-left: 1px solid rgb(171, 171, 171); position:absolute; width:1px; height:"+(R-50)+"px; left:0px; top:"+ah+"px;' ></div><div style='z-index:1; border-left: 1px solid rgb(171, 171, 171); position:absolute; width:1px; height:"+(R-50)+"px; left:"+(aa-1)+"px; top:"+ah+"px;' ></div>";Z[Z.length]="<div style='z-index:1; background-color: white; position: absolute; width:"+(aa-50)+"px; height:"+D+"px; left:"+ah+"px; top:"+(R-25)+"px;' ></div><div style='z-index:1; border-top: 1px solid rgb(171, 171, 171); position: absolute; width:"+(aa-50)+"px; height:1px; left:"+ah+"px; top:"+(R-1)+"px;' ></div>";var X=(this.sizeState=="normal")?0:-368;Z[Z.length]="<div class='dragmap' style='overflow:hidden; width:"+aF+"px; height:"+az+"px; z-index:1; position:absolute; left:"+((aa-aF)/2)+"px; top:"+(R-25)+"px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+X+"px; top:-691px; width:690px; height:786px; -moz-user-select:none;' src='"+aE+"'/>";Z[Z.length]="</div>";if(this.tabs.length>1&&this.sizeState=="normal"){Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:0px; top:-24px; width:11px; height:75px; -moz-user-select:none; z-index:1;' src='"+strResURL+"images/iwlefttop.png' />";for(var aw=0;aw<this.tabs.length;aw++){Z[Z.length]="<div id='VIWTab"+aw+"' style='position:absolute; left:"+(11+aw*84)+"px; top:-24px; z-index:"+((this.selectedTab==aw)?6:5)+";'>";Z[Z.length]="<div style='overflow:hidden; position:absolute; left:0px; top:0px; width:103px; height:75px;'>";Z[Z.length]="<img class='transimg' style='border:0px; margin:0px; padding:0px; position:absolute; left:"+((this.selectedTab==aw)?-98:-201)+"px; top:-691px; -moz-user-select:none; width:690px; height:786px;' src='"+aE+"' />";Z[Z.length]="</div>";Z[Z.length]="<div style='position:absolute; left:0px; top:0px; width:103px; height:24px; font-family: Arial,sans-serif; font-size:12px; padding-top:5px; text-align:center; cursor:pointer;'>"+this.tabs[aw].label.substring(0,10)+"</div>";Z[Z.length]="</div>"}}Z[Z.length]="</div>";Q.innerHTML=Z.join("");Q.style.visibility="visible";VUtil.fixPNG();S[S.length-1].x=aa+E;S[S.length]=new VPoint(aa+E,R+F);S[0].y=R+F;S[S.length]=new VPoint(S[0].x,S[0].y);var av=new Array();for(var aw=0;aw<S.length;aw++){av[aw]=this.l1lI.fromDivPixelToLatLng(S[aw])}this.mappingLLs=av;for(var aw=0;aw<this.l1lI.li1;aw++){if(this.l1lI.lil[aw].vType()=="VMarker"){this.l1lI.lil[aw].createMappingMarker()}}var L=this;var ad=document.getElementById("VIWBtnClose");ad.onclick=function(){if(L.l1lI.infoWindowCloseButtonClickHandler!=undefined){L.l1lI.infoWindowCloseButtonClickHandler()}L.close()};ad.onmouseover=function(){this.src=strResURL+"images/iwcloseover.gif"};ad.onmouseout=function(){this.src=strResURL+"images/iwclose.gif"};if(this.options.maxContent!=""){var au=document.getElementById("VIWBtnMR");au.onclick=function(){if(L.sizeState=="normal"){L.maximize()}else{L.restore()}};au.onmouseover=function(){if(L.sizeState=="normal"){this.src=strResURL+"images/iwmaximizeover.gif"}else{this.src=strResURL+"images/iwrestoreover.gif"}};au.onmouseout=function(){if(L.sizeState=="normal"){this.src=strResURL+"images/iwmaximize.gif"}else{this.src=strResURL+"images/iwrestore.gif"}}}if(this.tabs.length>1&&this.sizeState=="normal"){for(var aw=0;aw<this.tabs.length;aw++){var ay=document.getElementById("VIWTab"+aw);ay.onclick=function(){var aG=parseInt(this.id.substring(6,this.id.length));L.selectTab(aG)}}}}function p(){var N=document.getElementById(this.l1lI.id+"_InfoWindow");if(N==null){return}var K=this.l1lI.fromLatLngToDivPixel(this.point);var ao=32;var ah=-7;var af=0;var L=this.l1lI.lli1.offsetWidth-50;var Q=this.l1lI.lli1.offsetHeight-50;var al=Math.min(this.size.width,L);var ai=Math.min(this.size.height,Q);if(this.sizeState=="normal"){al=Math.max(al,84*this.tabs.length-1+50)}else{al=Math.min(658,L);ai=Math.min(474,Q)}var T=al+ao;var O=ai+ao;if(this.sizeState=="normal"){T=Math.min(T,690);O=Math.min(O,506)}var aq=97;var am=96;var z=(this.sizeState=="normal")?O+am:O+25;this.iii=T;this.ijl=z;var ac=T+40,V=parseInt(z*0.5);ac=Math.min(ac,740);V=Math.min(V,298);var J=323;var R=1033;var B=30;var C=60;var Y=70;var I=14;var A=754;var aj=310;var ag=345;var M=140;var ae=259;var H=119;var ap=strResURL+"images/infowindowshade.png";var ad=ac-2*Y;var aa=0;var F=0;var S=H;var ab=V-B-C;var x=J-ab;var y=Y;var Z=ad-M+B;if(Z>0){if(Z>=50){aa=(Z-50)/2;F=Z-aa}else{aa=0;F=Z}}if(ab>=M){S=ae}var W=ab+B;var an=0;var U=W+Y;var G=an;var D=K.x-Y-aa+ah+this.offset.width;var E=K.y-V+af+this.offset.height;if(this.sizeState=="maximize"){E+=45}var X=N.childNodes[0];X.style.left=D+"px";X.style.top=E+"px";var ak=0;X.childNodes[ak].style.left=W+"px";X.childNodes[ak].style.top=an+"px";ak++;if(ad>0){X.childNodes[ak].style.left=U+"px";X.childNodes[ak].style.top="0px";ak++}X.childNodes[ak].style.left=(W+Y+ad)+"px";X.childNodes[ak].style.top="0px";ak++;X.childNodes[ak].style.left=(W-ab)+"px";X.childNodes[ak].style.top=B+"px";ak++;X.childNodes[ak].style.left=(W+Y-ab)+"px";X.childNodes[ak].style.top=B+"px";ak++;X.childNodes[ak].style.left=(W-ab+y+ad)+"px";X.childNodes[ak].style.top=B+"px";ak++;X.childNodes[ak].style.left=(W-ab-B)+"px";X.childNodes[ak].style.top=(B+ab)+"px";ak++;if(aa>0){X.childNodes[ak].style.left=(W-ab-B+Y)+"px";X.childNodes[ak].style.top=(B+ab)+"px";ak++}X.childNodes[ak].style.left=(W-ab-B+Y+aa)+"px";X.childNodes[ak].style.top=(B+ab)+"px";ak++;
if(F>0){X.childNodes[ak].style.left=(W-ab-B+Y+M+aa)+"px";X.childNodes[ak].style.top=(B+ab)+"px";ak++}X.childNodes[ak].style.left=(W-ab+y+ad)+"px";X.childNodes[ak].style.top=(B+ab)+"px";ak++;J=0;R=665;B=25;C=25;Y=25;I=0;A=665;aj=665;ag=345;aq=97;am=96;ae=368;H=0;ap=strResURL+"images/infowindow.png";D=parseInt(K.x+(aq-T)/2)+ah+this.offset.width;E=parseInt(K.y-am-O+25)+af+this.offset.height;if(this.sizeState=="maximize"){E+=45}ad=ac-2*Y;aa=0;F=0;S=H;ab=V-B-C;x=J-ab;y=Y;Z=ad-aq+B;if(Z>0){if(Z>=50){aa=(Z-50)/2;F=Z-aa}else{F=aa;aa=0}}if(ab>=aq){S=ae}W=ab+B;an=0;U=W+Y;G=an;var P=N.childNodes[1];P.style.left=D+"px";P.style.top=E+"px"}function n(D){var z=document.createElement("div");z.id="divtemp";z.innerHTML=D;z.style.overflow="visible";z.style.position="absolute";document.body.appendChild(z);var C=z.offsetWidth;var B=z.offsetHeight;document.body.removeChild(z);var A=C,y=B;if(A<180){A=180}if(y<60){y=60}var x=new VSize(A,y);return x}function m(){var D=this.l1lI.lli1.offsetWidth;var G=this.l1lI.lli1.offsetHeight;var K=this.l1lI.fromLatLngToContainerPixel(this.point);var H=0;var z=0;var B=null;if(this.iii>D*3/4||this.ijl>G*3/4){var A=this.l1lI.fromLatLngToDivPixel(this.l1lI.getCenter());K=this.l1lI.fromLatLngToDivPixel(this.point);var F=G/2;H=K.x+48-A.x;z=K.y-A.y-((this.sizeState=="maximize")?25:0);var x=Math.abs(G-this.ijl)/2;if(F>=this.ijl){z-=(x-(F-this.ijl))}else{z-=(x+(this.ijl-F))}B=new VSize(H,z)}else{var J=K.x+48.5-this.iii/2;var E=K.y-this.ijl;var I=J+this.iii;var L=E+this.ijl;var C=20;if(document.getElementById(this.l1lI.id+"_VLargeMapControl")!=null&&E<300){C+=65}var y=20;if(document.getElementById(this.l1lI.id+"_VOverviewMapControl")!=null&&L>G-131){y+=150}if(J<C){H=J-C}else{if(I>D-y){H=I-D+y}}if(E<25){z=E-25}else{if(L>G-50){z=L-G+50}}B=new VSize(H,z)}return B}function g(){return((document.getElementById(this.l1lI.id+"_InfoWindow")!=null)&&(!this.liii))}function e(){return this.liii}function u(x,A,z,B,y){if(x!=null){this.point=x}if(A!=null){this.tabs=A}if(z!=null){this.size=z}if(B!=null){this.offset=B}if(y!=null){this.selectedTab=y}}function b(){return this.point}function k(){return this.offset}function h(){return this.selectedTab}function i(){return this.tabs}function c(){}function a(){this.maximizable=true}function r(){this.maximizable=false}function j(){if(this.maximizable==false){return}this.sizeState="maximize";this.l1lI.hideControls();this.createInfoWindow();if(this.maximizeclickHandler!=undefined){this.maximizeclickHandler()}if(this.options.autoPan){var y=this.getInfoWindowPan();this.l1lI.panBy(y);var x=this;setTimeout(function(){if(x.maximizeendHandler!=undefined){x.maximizeendHandler()}},250)}else{if(this.maximizeendHandler!=undefined){this.maximizeendHandler()}}}function q(){if(this.maximizable==false){return}this.sizeState="normal";this.l1lI.showControls();this.createInfoWindow();if(this.restoreclickHandler!=undefined){this.restoreclickHandler()}if(this.restoreendHandler!=undefined){this.restoreendHandler()}}function d(){return"VInfoWindow"}}function VLargeMapControl(e,i){this.printable=(e!=undefined)?e:false;this.lii1=(i!=undefined)?i:false;this.initialize=a;this.redraw=h;this.remove=b;this.getDefaultPosition=d;this.hide=c;this.show=g;this.vType=f;function a(E,F){if(isValidKey==false){return}var s=parseInt(E.lli1.offsetWidth)/2;var A=parseInt(E.lli1.offsetHeight)/2;var z=new Array();z[z.length]="<div class='MapMove'>";z[z.length]="<a class='clickcontrol MMTop' id='"+E.id+"_btTop'>B&#7855;c^</a>";z[z.length]="<a class='MMRight' id='"+E.id+"_btRight'>&#272;&#244;ng?</a>";z[z.length]="<a class='clickcontrol MMBot' id='"+E.id+"_btBottom'>Namv</a>";z[z.length]="<a class='clickcontrol MMLeft' id='"+E.id+"_btLeft'>T&#226;y?</a>";z[z.length]="<a class='clickcontrol MMTopRight' id='"+E.id+"_btTopRight'>&#272;&#244;ng B&#7855;c</a>";z[z.length]="<a class='clickcontrol MMBotRight' id='"+E.id+"_btBottomRight'>&#272;&#244;ng Nam</a>";z[z.length]="<a class='clickcontrol MMBotLeft' id='"+E.id+"_btBottomLeft'>T&#226;y Nam</a>";z[z.length]="<a class='clickcontrol MMTopLeft' id='"+E.id+"_btTopLeft'>T&#226;y B&#7855;c</a>";z[z.length]="<a class='clickcontrol MMCenter' id='"+E.id+"_btFit'>T&#226;m</a>";z[z.length]="</div>";z[z.length]="<div class='MapZoom-top'>";z[z.length]="<div class='MapZoom-bot'>";z[z.length]="<div class='clickcontrol MapZoom-center' id='"+E.id+"_rulerBar' style='height:"+((E.lliI-1)*8)+"px;'></div>";z[z.length]="</div>";z[z.length]="<a class='clickcontrol MZIn' id='"+E.id+"_btZoomIn'>ZoomIn[+]</a>";z[z.length]="<a class='clickcontrol MZOut' id='"+E.id+"_btZoomOut'>ZoomOut[-]</a>";z[z.length]="<div class='dragruler MZScroll' id='"+E.id+"_rulerDiv'></div>";z[z.length]="<div class='ZoomPinLeft' id='"+E.id+"_barWard' style='left:25px; top:38px; display:none;'>";z[z.length]="<div class='ZoomPinRight'>";z[z.length]="<div class='clickcontrol ZoomPinCenter'>Ph&#432;&#7901;ng</div>";z[z.length]="</div>";z[z.length]="</div>";z[z.length]="<div class='ZoomPinLeft' id='"+E.id+"_barDistrict' style='left:25px; top:70px; display:none;'>";z[z.length]="<div class='ZoomPinRight'>";z[z.length]="<div class='clickcontrol ZoomPinCenter'>Qu&#7853;n</div>";z[z.length]="</div>";z[z.length]="</div>";z[z.length]="<div class='ZoomPinLeft' id='"+E.id+"_barCity' style='left:25px; top:102px; display:none;'>";z[z.length]="<div class='ZoomPinRight'>";z[z.length]="<div class='clickcontrol ZoomPinCenter'>Th&#224;nh ph&#7889;</div>";z[z.length]="</div>";z[z.length]="</div>";z[z.length]="<div class='ZoomPinLeft' id='"+E.id+"_barCountry' style='left:25px; top:134px; display:none;'>";z[z.length]="<div class='ZoomPinRight'>";z[z.length]="<div class='clickcontrol ZoomPinCenter'>Qu&#7889;c gia</div>";z[z.length]="</div>";z[z.length]="</div>";z[z.length]="</div>";this.id=E.id+"_VLargeMapControl";var q=VUtil.CreateDivElement(E.id+"_VLargeMapControl",0,0,"auto","auto","absolute","",z.join(""));q.style.zIndex=ControlZIndex;q.style.MozUserSelect="none";E.lli1.appendChild(q);var n=function(){if(E.ll11!=undefined){E.ll11()}};var m=document.getElementById(E.id+"_btZoomIn");var o=document.getElementById(E.id+"_btZoomOut");var D=document.getElementById(E.id+"_btFit");var x=document.getElementById(E.id+"_btLeft");var v=document.getElementById(E.id+"_btRight");var B=document.getElementById(E.id+"_btTop");var y=document.getElementById(E.id+"_btBottom");var r=document.getElementById(E.id+"_btTopRight");var l=document.getElementById(E.id+"_btBottomRight");var t=document.getElementById(E.id+"_btBottomLeft");var j=document.getElementById(E.id+"_btTopLeft");var k=document.getElementById(E.id+"_barWard");var u=document.getElementById(E.id+"_barDistrict");var C=document.getElementById(E.id+"_barCity");var p=document.getElementById(E.id+"_barCountry");q.onmouseover=function(){k.style.display="";u.style.display="";C.style.display="";p.style.display=""};q.onmouseout=function(){k.style.display="none";u.style.display="none";C.style.display="none";p.style.display="none"};k.onclick=function(){E.zoomToLevel(17)};u.onclick=function(){E.zoomToLevel(13)};C.onclick=function(){E.zoomToLevel(9)};p.onclick=function(){E.zoomToLevel(5)};m.onclick=function(){E.zoomIn()};o.onclick=function(){E.zoomOut()};D.onclick=function(){E.setCenter(new VLatLng(14.102783,109.649506),5)};x.onclick=function(){n();E.panBy(new VSize(-s,0))};v.onclick=function(){n();E.panBy(new VSize(s,0))};B.onclick=function(){n();E.panBy(new VSize(0,-A))};y.onclick=function(){n();E.panBy(new VSize(0,A))};r.onclick=function(){n();E.panBy(new VSize(s,-A))};l.onclick=function(){n();E.panBy(new VSize(s,A))};t.onclick=function(){n();E.panBy(new VSize(-s,A))};j.onclick=function(){n();E.panBy(new VSize(-s,-A))};document.getElementById(E.id+"_rulerBar").onclick=function(w){E.clickOnRuler(w)};this.l1lI=E;this.liII=q;this.position=F;this.redraw()}function h(){if(isValidKey==false){return}if(this.position!=undefined){if(this.position.anchor==V_ANCHOR_TOP_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-58+"px";this.liII.style.top=this.position.offset.height+"px"
}else{if(this.position.anchor==V_ANCHOR_TOP_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-58+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-258+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-295+"px"}}}}}else{this.liII.style.left=10+"px";this.liII.style.top=10+"px"}}function b(){VUtil.RemoveDivElement(this.id,this.l1lI.lli1.id)}function d(){var j=new VControlPosition(V_ANCHOR_TOP_LEFT,new VSize(10,10));return j}function c(){this.liII.style.visibility="hidden"}function g(){this.liII.style.visibility="visible"}function f(){return"VLargeMapControl"}}VLargeMapControl.prototype=new VControl();function VClientGeocoder(){this.getLatLng=a;function a(b,c){if(b==undefined||b==null||c==undefined||c==null){return}if(VUtil.lijj(b)){VUtil.il1(ill+"?Address="+b,"",c,"")}}}var vcur_direction;function VDirections(s,l){if(s!=undefined){s.l1li=this;this.l1lI=s;if(l!=undefined){l.l1lI=s}}else{this.l1lI=null;if(l!=undefined){l.l1lI=null}}if(l!=undefined){this.Panel=l}else{this.Panel=null}this.lljj=false;this.Distance=0;this.Unit="";this.llji=true;this.llij=true;this.PreserveViewportFlag=true;this.llii=new Array();this.lljl=new Array();this.llj1=new Array();this.QueryOptions=new VDirectionsOptions(true,true,true);this.load=e;this.loadFromWayPoints=i;this.clear=p;this.getResult=f;this.getStatus=o;this.getBounds=c;this.getNumRoutes=k;this.getRoute=g;this.getNumGeocodes=j;this.getGeocode=r;this.getDistance=a;this.getDuration=t;this.getPolyline=n;this.getMarker=d;this.getSummaryHTML=m;this.showDirectionGuide=h;this.fitMap=q;this.vType=b;function b(){return"VDirections"}function e(x,u){if(!VUtil.lijj(x)){return}if(this.lljj==true){return}this.lljj=true;vcur_direction=this;this.QueryOptions=u;this.llji=u.getPolyline;this.llij=u.lljI;this.PreserveViewportFlag=u.preserveViewport;this.llj1=x.split("To:");this.llj1[0]=this.llj1[0].substring(x.indexOf("From:")+5);var v=(u.avoidAlley==true)?1:0;var w=(u.avoidRoadConstruction==true)?1:0;VUtil.il1(ill+"?option=0,"+v+","+w+"&Findstring="+x,"","vcur_direction.getResult","")}function i(z,u){if(this.lljj==true){return}this.lljj=true;vcur_direction=this;this.QueryOptions=u;var y="";for(var v=0;v<z.length;v++){y+=z[v].longitude+","+z[v].latitude;this.llj1.push(z[v].latitude+","+z[v].longitude);if(v<z.length-1){y+=","}}this.llji=u.getPolyline;this.llij=u.lljI;this.PreserveViewportFlag=u.preserveViewport;var w=(u.avoidAlley==true)?1:0;var x=(u.avoidRoadConstruction==true)?1:0;VUtil.il1(ill+"?option=1,"+w+","+x+"&Findstring="+y,"","vcur_direction.getResult","")}function p(){if(this.l1lI!=null){for(var v=0;v<this.getNumRoutes();v++){this.l1lI.removeOverlay(this.llii[v].l11l);this.l1lI.removeOverlay(this.lljl[v])}if(v>0){this.l1lI.removeOverlay(this.lljl[v])}this.l1lI.l1li=null}this.llii=new Array();this.lljl=new Array();this.llj1=new Array();if(this.Panel!=null){this.Panel.innerHTML=""}if(this.l1lI!=null){l1I1=document.getElementById("PopUp");var u=document.getElementById(this.l1lI.id+"_path");if(l1I1!=null){u.removeChild(l1I1)}}}function f(v){var w=this.llj1;this.clear();this.llj1=w;this.Distance=v.ShortestPath.fulllength;var A=v.FullPath.split(",");var F=new Array();F[0]=new Array();var C=0;for(z=0;z<A.length;z+=2){if(parseFloat(A[z])<=DB_MIN){C++;F[C]=new Array()}else{var u=new VLatLng(parseFloat(A[z+1]),parseFloat(A[z]),true);F[C].push(u)}}this.Unit=v.ShortestPath.unit;var z=0;var D,E;for(z=0;z<v.ShortestPath.Section.length;z++){var B=new VRoute();B.Distance=v.ShortestPath.Section[z].Length.value;B.Unit=v.ShortestPath.Section[z].Length.unit;if(this.Panel!=null||this.QueryOptions.lljI==true){for(var y=0;y<v.ShortestPath.Section[z].Segment.length;y++){var w=v.ShortestPath.Section[z].Segment[y];var G=new VStep();G.Distance=w.Length.value;G.Unit=w.Length.unit;G.Name=w.Name;G.l1li=w.direction;G.StartAt=new VLatLng(w.StartAt.Y,w.StartAt.X,true);G.StartIndex=w.start;G.EndIndex=w.end;B.l11i.push(G)}}var x=new VPolyline(F[z],"red",3,"red",0.5,null);if(this.l1lI!=null||this.QueryOptions.getPolyline==true){B.l11l=x}if(this.l1lI!=null){this.l1lI.addOverlay(x)}D=new VIcon(strResURL+"images/place_map_"+z+".gif");D.iconSize=new VSize(26,29);E=new VMarker(F[z][0],D);if(this.l1lI!=null){this.l1lI.addOverlay(E)}this.lljl.push(E);this.llii.push(B)}D=new VIcon(strResURL+"images/place_map_"+z+".gif");D.iconSize=new VSize(26,29);E=new VMarker(F[z-1][F[z-1].length-1],D);if(this.l1lI!=null){this.l1lI.addOverlay(E)}this.lljl.push(E);if(!this.QueryOptions.preserveViewport&&this.l1lI!=null){this.fitMap()}if(this.Panel!=null){this.showDirectionGuide()}this.lljj=false;if(this.li1I!=undefined){this.li1I()}}function o(){return this.lljj}function c(){var A=0;var z=0;var v=0;var u=0;for(var y=0;y<this.llii.length;y++){var B=new Array();var w=this.llii[y].l11l;if(w!=null){B=w.latlngs;for(var x=0;x<B.length;x++){if(A==0&&z==0&&v==0&&u==0){A=parseFloat(B[x].longitude.toString());v=parseFloat(B[x].longitude.toString());z=parseFloat(B[x].latitude.toString());u=parseFloat(B[x].latitude.toString())}if(A<parseFloat(B[x].longitude.toString())){A=parseFloat(B[x].longitude.toString())}if(v>parseFloat(B[x].longitude.toString())){v=parseFloat(B[x].longitude.toString())}if(z<parseFloat(B[x].latitude.toString())){z=parseFloat(B[x].latitude.toString())}if(u>parseFloat(B[x].latitude.toString())){u=parseFloat(B[x].latitude.toString())}}}}return new VLatLngBounds(new VLatLng(A,u),new VLatLng(v,z))}function q(){var C=0;var A=0;var x=0;var w=0;for(var L=0;L<this.llii.length;L++){var z=new Array();var y=this.llii[L].l11l;if(y!=null){z=y.latlngs;for(var K=0;K<z.length;K++){if(C==0&&A==0&&x==0&&w==0){C=parseFloat(z[K].longitude.toString());x=parseFloat(z[K].longitude.toString());A=parseFloat(z[K].latitude.toString());w=parseFloat(z[K].latitude.toString())}if(C<parseFloat(z[K].longitude.toString())){C=parseFloat(z[K].longitude.toString())}if(x>parseFloat(z[K].longitude.toString())){x=parseFloat(z[K].longitude.toString())}if(A<parseFloat(z[K].latitude.toString())){A=parseFloat(z[K].latitude.toString())}if(w>parseFloat(z[K].latitude.toString())){w=parseFloat(z[K].latitude.toString())}}}}var J=new VLatLng(parseFloat((A+w)/2),parseFloat((C+x)/2));var G=new Array();G[0]=C;G[1]=A;var H=VProjection.fromLatLngToPixel(new VLatLng(G[1],G[0]),this.l1lI.lliI-1);var v=H.x;var u=H.y;G=new Array();G[0]=x;G[1]=w;H=VProjection.fromLatLngToPixel(new VLatLng(G[1],G[0]),this.l1lI.lliI-1);var D=H.x;var B=H.y;var I=Math.abs((v-D)/this.l1lI.lli1.offsetWidth)>Math.abs((u-B)/this.l1lI.lli1.offsetHeight)?Math.abs((v-D)/this.l1lI.lli1.offsetWidth):Math.abs((u-B)/this.l1lI.lli1.offsetHeight);var F=0;for(F=0;F<this.l1lI.lliI-1;F++){if(Math.pow(2,F)>I){break}}var E=this.l1lI.level;this.l1lI.level=this.l1lI.lliI-1-F;this.l1lI.setCenter(J,this.l1lI.level);if(this.l1lI.llil!=undefined){this.l1lI.llil();return}if(this.l1lI.li1l!=undefined){this.l1lI.li1l();return}if(this.l1lI.l1ij!=undefined){this.l1lI.l1ij(E,this.l1lI.level)}}function k(){return this.llii.length}function g(u){return this.llii[u]}function j(){}function r(u){}function a(){return(this.Distance+" "+this.Unit)}function t(){}function n(){var u=this;return u}function d(u){return this.lljl[u]}function m(){return this.Panel.innerHTML}function h(){var A=this.l1lI;var z='<table border="1" borderColor="gainsboro" align="center" width="100%" style="CURSOR: default;  border-collapse: collapse; font-family: Tahoma; font-size: 8pt">';for(var y=0;y<this.llii.length;y++){var x=this.llii[y];z+='<tr height=24 valign=center style="cursor:pointer;" ><td colspan=3><img align=absmiddle src='+strResURL+"images/place_map_"+y+".gif >"+this.llj1[y]+"</td></tr>";z+='<tr height=16 style="cursor:pointer;" ><td colspan=3>Chi&#7873;u d&#224;i : '+x.Distance+" "+x.Unit+"</td></tr>";
for(var w=0;w<x.l11i.length;w++){var v=x.l11i[w];var u=v.l1li;u=u.replace("Continue to follow","<img src='"+strResURL+"images/dithang.gif' />");u=u.replace("Head","<img src='"+strResURL+"images/dithang.gif' />");u=u.replace("Turn right on","<img src='"+strResURL+"images/rephai.gif' />");u=u.replace("Turn left on","<img src='"+strResURL+"images/retrai.gif' />");z+='<tr onmouseover=VUtil.setVColorOver(this) onmouseout=VUtil.setVColorOut(this) onclick="{showPathDetail('+v.StartAt.latitude+","+v.StartAt.longitude+',this);}" style="cursor:pointer;" ><td>'+(w+1)+"</td><td>"+u+"</td><td> "+v.Name+" "+v.Distance+" "+v.Unit+"</td></tr>"}}z+='<tr height=24 valign=center style="cursor:pointer;" ><td colspan=3><img align=absmiddle src=\''+strResURL+"images/place_map_"+(this.llj1.length-1)+".gif' >"+this.llj1[this.llj1.length-1]+"</td></tr>";z+="</table>";this.Panel.innerHTML=z}}function showPathDetail(f,a,e){var d=e.parentNode.parentNode.parentNode.l1lI;var b=e.childNodes[1].innerHTML+" "+e.childNodes[2].innerHTML;var c=new VInfoWindowOptions();c.liil=12;d.showMapBlowup(new VLatLng(f,a),c,"")}var lIlI="";var l1jI=false;var isValidKey=true;var jII=null;var DB_MIN=-1.7976931348623157;var vbdIsdragging=false;var vbdIsSelectInput=false;var lIlj=-1,lIl1=-1;var browserName=VUtil.getBrowserName();var LimitFolder=10000;var V_NORMAL_MAP=null;var V_ANCHOR_TOP_RIGHT="V_ANCHOR_TOP_RIGHT";var V_ANCHOR_CENTER_RIGHT="V_ANCHOR_CENTER_RIGHT";var V_ANCHOR_BOTTOM_RIGHT="V_ANCHOR_BOTTOM_RIGHT";var V_ANCHOR_BOTTOM_CENTER="V_ANCHOR_BOTTOM_CENTER";var V_ANCHOR_BOTTOM_LEFT="V_ANCHOR_BOTTOM_LEFT";var V_ANCHOR_CENTER_LEFT="V_ANCHOR_CENTER_LEFT";var V_ANCHOR_TOP_LEFT="V_ANCHOR_TOP_LEFT";var V_ANCHOR_TOP_CENTER="V_ANCHOR_TOP_CENTER";var V_ANCHOR_CENTER_CENTER="V_ANCHOR_CENTER_CENTER";var MapAnimatedZIndex=10;var MapInnerZIndex=20;var MapSetZIndex=30;var MapPathZIndex=40;var LineZIndex=44;var MarkerZIndex=45;var MarkerActiveZIndex=46;var InfoWindowShadeZIndex=50;var ObjBelowShadeZIndex=51;var InfoWindowZIndex=52;var MapAnimatingZIndex=60;var ControlZIndex=70;var VBDLogoZIndex=100;var TopZIndex=110;var l1ll=(VUtil.isVBDWebsite())?"http://www.vietbando.com/maps/":"http://image2.vietbando.com/";var strResURL=l1ll+"API/Skins/WhiteSkin/";var ill=l1ll+"mapforipa%2Easpx";var vbdtempimage=new Image(1,1);vbdtempimage.src=strResURL+"images/whiteimage.png";var vbdtransimage=new Image(1,1);vbdtransimage.src=strResURL+"images/transparent.png";var vbdiwimage=new Image();vbdiwimage.src=strResURL+"images/infowindow.png";var vbdiwsimage=new Image();vbdiwsimage.src=strResURL+"images/infowindowshade.png";var V_DEFAULT_ICON=strResURL+"images/point-1.gif";var CountRequest=0;var g_REtimerID=null;var g_REdelay=30000;var ScriptQuery=function(a){this.scriptPath=a};ScriptQuery.prototype={get:function(){var d=new RegExp(this.scriptPath.replace(".","\\.")+"(\\?.*)?$");var a=document.getElementsByTagName("script");for(var c=0;c<a.length;c++){var b=a[c];if(b.src&&b.src.match(d)){var e=b.src.match(/\?([^#]*)(#.*)?/);return !e?"":e[1]}}return""},parse:function(){var k={};var g=this.get();var d=g.split("&");for(var c=0;c<d.length;c++){var b=new Array();b[0]=d[c].substring(0,d[c].indexOf("="));b[1]=d[c].substring(d[c].indexOf("=")+1,d[c].length);var a=b[0],h=b[1];if(!k[a]){k[a]=[]}if(!h){h="true"}else{try{h=decodeURIComponent(h)}catch(f){h=unescape(h)}}var j=k[a];j[j.length]=h}return k},flatten:function(){var b=this.parse();for(var a in b){b[a]=b[a][0]}return b},toString:function(){return"ScriptQuery [path="+this.scriptPath+"]"}};function loadXML(){var a=1;a++}function VBrowserIsCompatible(){if(browserName=="msie"||browserName=="firefox"||browserName=="opera"||browserName=="safari"){return true}return false}function VMap(aG,a6,T){jII=this;var V="";var A=document.getElementsByTagName("script");var aD=new ScriptQuery("VBDMapAPI.js").parse();for(var al in aD){V+=aD[al]}while(V.indexOf("+")>-1){V=V.replace("+","!?!")}lIlI=V;if(lIlI.length<1||lIlI=="true"){return}if(l1jI==false){VUtil.il1(ill,"","vcallbackFunction","")}if(typeof aG=="string"){aG=document.getElementById(aG)}this.lIIj=false;this.lI1j=false;this.lIiI=false;this.lIij=false;this.lIjl=false;this.isMarkerAutoPanning=false;this.isTextDragging=false;this.isSelectWindowContent=false;this.ll1j=false;this.hasDraggedText=false;this.lIi1=false;this.llII=false;this.draggable=true;this.lIii=true;this.lIil=true;this.dblClickZoomable=true;this.lIIl=false;this.bEnableInfoWindow=true;this.bMapActive=false;this.centerX=109.649506;this.centerY=14.102783;this.jji=0;this.ji1=0;this.divisorX=0;this.divisorY=0;this.level=5;this.lliI=20;this.lIII=1;this.lIIi=0;this.jIj=0;this.prevRightClickTime=0;this.nInstalment=0;if(a6!=undefined){aG.style.width=a6.size.width+"px";aG.style.height=a6.size.height+"px";this.options=a6}else{this.options=new VMapOptions(new VSize(aG.offsetWidth,aG.offsetHeight))}if(aG.offsetWidth>2000||aG.offsetHeight>2000){l1jI=false;isValidKey=false;jII.disableAll();return}this.l1ii=false;this.jIi=8;this.nZoomCount=0;this.iZoomStep=0;this.changeDelta=1;this.curMappingLayer=null;this.nMapTypes=0;this.arrMapTypes=new Array();this.I11=0;this.lil=new Array();this.li1=0;this.arrControls=new Array();this.nControls=0;this.lII=null;this.lIj=new VInfoWindow();this.lIj.l1lI=this;this.lI1=null;this.l1li=null;if(T==""||T==null){this.ImagesURL=l1ll}else{this.ImagesURL=T}this.Left=0;this.Top=0;this.id=aG.id;this.lli1=aG;aG.l1I=this;aG.dblRC="";if(aG.style.position==undefined||aG.style.position==""){aG.style.position="absolute"}VUtil.includeCSS("APIStyle.css");this.stopEvent=w;this.vType=U;this.disableAll=aY;this.calculatePosition=l;this.initMap=ba;this.updateMappingAreas=aq;this.resetSrcImgOverlay=S;this.insertLeft=C;this.insertRight=c;this.insertTop=r;this.insertBottom=M;this.overViewInsertLeft=ar;this.overViewInsertRight=ah;this.overViewInsertTop=g;this.overViewInsertBottom=ab;this.setOverViewCenter=aJ;this.fixOverView=d;this.getRealCenter=a9;this.clickOnRuler=W;this.scrollWheelZoom=at;this.hideOverlays=v;this.showOverlays=aB;this.redrawLines=aE;this.redrawRuler=a8;this.redrawScaleCtrl=aV;this.redrawOverviewMap=ay;this.resetSVG=z;this.getCenterForPreserveInfoWindow=be;this.hideControls=aH;this.showControls=s;this.panByMarker=au;this.enableDragging=q;this.disableDragging=Y;this.draggingEnabled=B;this.enableInfoWindow=E;this.disableInfoWindow=Z;this.infoWindowEnabled=ae;this.enableDoubleClickZoom=i;this.disableDoubleClickZoom=J;this.doubleClickZoomEnabled=bd;this.enableContinuousZoom=ap;this.disableContinuousZoom=a1;this.continuousZoomEnabled=K;this.enableScrollWheelZoom=aN;this.disableScrollWheelZoom=a3;this.scrollWheelZoomEnabled=aC;this.addControl=G;this.removeControl=e;this.clearControls=X;this.getContainer=ai;this.addMapType=aM;this.removeMapType=aa;this.setMappingLayer=m;this.isLoaded=a5;this.getCurrentPointer=aP;this.getCenter=L;this.getBounds=aT;this.getDirectionBounds=k;this.getBoundsZoomLevel=ad;this.getBoundsAtCenterLevel=bb;this.getSize=o;this.getLevel=aU;this.getDragObject=aj;this.setCenter=a7;this.panBy=ao;this.panTo=aK;this.panDirection=j;this.zoomIn=x;this.zoomOut=R;this.zoomFit=aw;this.zoomToLevel=aA;this.zoomCenter=ag;this.saveCurrentPosition=bc;this.goToSavedPosition=aX;this.fitOverlays=aQ;this.fitMultiOverlays=aL;this.checkResize=av;this.setMapType=D;this.addOverlay=F;this.removeOverlay=a2;this.clearOverlays=f;this.getOverlayContainer=a0;this.openInfoWindow=h;this.openInfoWindowTabs=aS;this.showMapBlowup=t;this.updateInfoWindow=af;this.closeInfoWindow=an;this.getInfoWindow=P;this.fromLatLngToDivPixel=n;this.fromLatLngToContainerPixel=O;this.fromDivPixelToLatLng=aO;this.fromContainerPixelToLatLng=I;this.fromContainerPixelToDivPixel=aR;this.fromDivPixelToContainerPixel=u;this.fromHighLevelPixelToDivPixel=ac;if(aG==null){alert("Parent Node is not exist");return}aG.style.overflow="hidden";aG.style.cursor="url('"+this.options.draggableCursor+"'),auto";aG.style.background="#EDEAE2";aG.oncontextmenu=function(bl){if(!this.l1I.dblClickZoomable){return false}if(VUtil.isVObject(bl)){return false
}var bp=new Date();var bo=parseInt(bp.getHours())*60*60*1000+parseInt(bp.getMinutes())*60*1000+parseInt(bp.getSeconds())*1000+parseInt(bp.getMilliseconds());if(bo-this.prevRightClickTime<230){this.dblRC="true";var bk;bk=new VPoint(lIlj-this.l1I.Left,lIl1-this.l1I.Top);if(this.l1I.level==0){var bg=this.l1I.fromContainerPixelToLatLng(bk);this.l1I.panTo(bg)}else{if(this.l1I.nZoomCount==0){this.l1I.nZoomCount=8;this.l1I.iZoomStep=0}else{return}this.tX=0;this.tY=0;var bn=-1;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";for(var bi=0;bi<this.l1I.l1j;bi++){for(var bh=0;bh<this.l1I.lIl;bh++){var bj=a.childNodes[0].childNodes[bi*this.l1I.lIl+bh];document.getElementById(this.id+"animation_"+bi+"_"+bh).style.width=256+"px";document.getElementById(this.id+"animation_"+bi+"_"+bh).style.height=256+"px";if(bj.loaded==1){document.getElementById(this.id+"animation_"+bi+"_"+bh).src=bj.src}else{document.getElementById(this.id+"animation_"+bi+"_"+bh).src=strResURL+"images/whiteimage.png"}bj.loaded=0;bj.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bf=lIlj-parseInt(am.style.left)-parseInt(aG.l1I.Left);var bm=lIl1-parseInt(am.style.top)-parseInt(aG.l1I.Top);aG.l1I.divisorX=bf/256;aG.l1I.divisorY=bm/256;this.l1I.hideOverlays();VUtil.RemoveDivElement("PopUp",this.l1I.id+"_path");this.l1I.scrollWheelZoom(bn,lIlj,lIl1)}}this.prevRightClickTime=bo;return false};this.calculatePosition();if(browserName=="msie"){VUtil.addVMLStyle()}var Q=new VTileLayer(new VCopyrightCollection("Vietbando Inc"),0,19);var y=this.ImagesURL;Q.getTileUrl=function(bf,bg){if(bg<0||bg>19){return""}var bh=parseInt((bf.y*Math.pow(2,bg)+bf.x)/LimitFolder);return y+"mapimages/"+bg+"/"+bh+"/"+bf.y+"_"+bf.x+".png"};var aI=[Q];V_NORMAL_MAP=new VMapType(aI,VProjection,"VIETBANDO NORMAL MAP");this.addMapType(V_NORMAL_MAP);this.curMapType=V_NORMAL_MAP;var az=this;var p=function(bf,bg,bh){VEvent.addDOMListener(bf,bg,function(){bh(bf.llIl)})};VMappingLayer.prototype.setMappingAreas=function(bh,bm){var bj=null;var bf=null;for(var bg=0;bg<bm.length;bg++){var bl=document.getElementById(bh[bg]).useMap;bj=document.getElementById(bl.replace("#",""));bj.innerHTML="";bf=null;if(typeof bm[bg]=="object"){for(var bk=0;bk<bm[bg].length;bk++){bf=document.createElement("area");bf.shape=bm[bg][bk].shape;bf.coords=bm[bg][bk].coords;bf.title=bm[bg][bk].title;bf.style.cursor="pointer";bf.llIl=bm[bg][bk];bj.appendChild(bf);for(var bi=0;bi<az.curMappingLayer.arrEvents.length;bi++){p(bf,az.curMappingLayer.arrEvents[bi],az.curMappingLayer.arrHandlers[bi])}}}}};var N,a,am,a4,aW,H,ak,ax,aZ;this.initMap(true);var aF;VEvent.addDOMListener(window,"unload",function(){if(CountRequest>0){VUtil.il1(ill+"?NumRequest="+CountRequest,"","","");CountRequest=0}});if(browserName=="msie"||browserName=="opera"||browserName=="safari"){aG.onmousewheel=function(bk){this.l1I.calculatePosition();if(aG.l1I.lIil==false){return}var bl=(browserName!="msie")?"HTML":"BODY";aF=(browserName!="msie")?bk.target:event.srcElement;while(aF.tagName!=bl&&(aF.className.indexOf!=undefined&&aF.className.indexOf("dragruler")==-1&&aF.className!="overviewmap"&&aF.className!="dragoverview"&&aF.className.indexOf("clickcontrol")==-1&&aF.className!="nomousemove")){aF=(browserName!="msie")?aF.parentNode:aF.parentElement;if(aF==null){return false}}if(aF.tagName!=bl){return}aG.l1I.stopEvent();if(lIlj==-1&&lIl1==-1){return}var bm=event.wheelDelta/120;if((bm>0&&this.l1I.level==this.l1I.lliI-1)||(bm<0&&this.l1I.level==0)){return false}this.l1I.changeDelta=bm;if(this.l1I.nZoomCount==0){this.l1I.nZoomCount=8;this.l1I.iZoomStep=0}else{this.l1I.nZoomCount+=8;return}this.tX=0;this.tY=0;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";am.style.width=parseInt(a.style.width)+"px";am.style.height=parseInt(a.style.height)+"px";for(var bi=0;bi<this.l1I.l1j;bi++){for(var bf=0;bf<this.l1I.lIl;bf++){var bj=a.childNodes[0].childNodes[bi*this.l1I.lIl+bf];document.getElementById(this.id+"animation_"+bi+"_"+bf).style.width=256+"px";document.getElementById(this.id+"animation_"+bi+"_"+bf).style.height=256+"px";if(bj.loaded==1){document.getElementById(this.id+"animation_"+bi+"_"+bf).src=bj.src}else{document.getElementById(this.id+"animation_"+bi+"_"+bf).src=strResURL+"images/whiteimage.png"}bj.loaded=0;bj.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bh=lIlj-parseInt(am.style.left)-parseInt(aG.l1I.Left);var bg=lIl1-parseInt(am.style.top)-parseInt(aG.l1I.Top);aG.l1I.divisorX=bh/256;aG.l1I.divisorY=bg/256;this.l1I.hideOverlays();VUtil.RemoveDivElement("PopUp",this.l1I.id+"_path");VUtil.createZoomAnimation(bm,lIlj,lIl1);this.l1I.scrollWheelZoom(bm,lIlj,lIl1)}}else{aG.addEventListener("DOMMouseScroll",function(bk){this.l1I.calculatePosition();if(aG.l1I.lIil==false){return false}var bl=(browserName!="msie")?"HTML":"BODY";aF=(browserName!="msie")?bk.target:event.srcElement;while(aF.tagName!=bl&&(aF.className.indexOf!=undefined&&aF.className.indexOf("dragruler")==-1&&aF.className!="overviewmap"&&aF.className!="dragoverview"&&aF.className.indexOf("clickcontrol")==-1&&aF.className!="nomousemove")){aF=(browserName!="msie")?aF.parentNode:aF.parentElement;if(aF==null){return false}}if(aF.tagName!=bl&&aF.tagName!="svg"&&aF.tagName!="path"){return}aG.l1I.stopEvent(bk);if(lIlj==-1&&lIl1==-1){return}var bm=-bk.detail;if((bm>0&&this.l1I.level==this.l1I.lliI-1)||(bm<0&&this.l1I.level==0)){return false}this.l1I.changeDelta=bm;if(this.l1I.nZoomCount==0){this.l1I.nZoomCount=8;this.l1I.iZoomStep=0}else{this.l1I.nZoomCount+=8;return}this.tX=0;this.tY=0;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";am.style.width=parseInt(a.style.width)+"px";am.style.height=parseInt(a.style.height)+"px";for(var bi=0;bi<this.l1I.l1j;bi++){for(var bf=0;bf<this.l1I.lIl;bf++){var bj=a.childNodes[0].childNodes[bi*this.l1I.lIl+bf];document.getElementById(this.id+"animation_"+bi+"_"+bf).style.width=256+"px";document.getElementById(this.id+"animation_"+bi+"_"+bf).style.height=256+"px";if(bj.loaded==1){document.getElementById(this.id+"animation_"+bi+"_"+bf).src=bj.src}else{document.getElementById(this.id+"animation_"+bi+"_"+bf).src=strResURL+"images/whiteimage.png"}bj.loaded=0;bj.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bh=lIlj-parseInt(am.style.left)-parseInt(aG.l1I.Left);var bg=lIl1-parseInt(am.style.top)-parseInt(aG.l1I.Top);aG.l1I.divisorX=bh/256;aG.l1I.divisorY=bg/256;this.l1I.hideOverlays();VUtil.RemoveDivElement("PopUp",this.l1I.id+"_path");VUtil.createZoomAnimation(bm,lIlj,lIl1);aG.l1I.scrollWheelZoom(bm,lIlj,lIl1)},false)}var b=aG;VEvent.addDOMListener(document,"mousedown",function(bh){var bf=(browserName!="msie")?"HTML":"BODY";var bg=(browserName!="msie")?bh.target:event.srcElement;if(bg.tagName=="INPUT"||bg.tagName=="TEXTAREA"){return}while(bg.tagName!=bf&&bg.id!=b.id){bg=(browserName!="msie")?bg.parentNode:bg.parentElement;if(bg==null){return}}if(bg.tagName==bf){b.l1I.bMapActive=false}else{if(bg.id==b.id){b.l1I.bMapActive=true}}});aG.onmousedown=function(bf){if((browserName=="msie"&&event.button!=1)||(browserName!="msie"&&bf.which!=1)){return}if(vbdIsdragging==false){vbdIsdragging=true}else{return}var bg=(browserName!="msie")?"HTML":"BODY";aF=(browserName!="msie")?bf.target:event.srcElement;if(aF.tagName=="INPUT"||aF.tagName=="TEXTAREA"){vbdIsSelectInput=true;return}else{vbdIsSelectInput=false}while(aF.tagName!="svg"&&aF.tagName!="path"&&aF.tagName!="polyline"&&aF.tagName!="oval"&&aF.tagName!=bg&&(aF.className.indexOf!=undefined&&aF.className.indexOf("dragruler")==-1&&aF.className!="overviewmap"&&aF.className!="dragoverview"&&aF.className!="dragmarker"&&aF.className!="clickmarker"&&aF.className!="dragtext"&&aF.className.indexOf("clickcontrol")==-1&&aF.className!="dragmap"&&aF.className!="dragmaparea"&&aF.className!="dragCustomOverlay"&&aF.className!="nomousemove")){aF=(browserName!="msie")?aF.parentNode:aF.parentElement
}aG.style.cursor="url('"+this.l1I.options.draggingCursor+"'),auto";if(aF.className.indexOf!=undefined&&aF.className.indexOf("dragruler")!=-1){this.l1I.lI1j=true;this.tLeft=parseInt(aF.style.left);this.tTop=parseInt(aF.style.top);if(this.l1I.zoomstartHandler!=undefined){this.l1I.zoomstartHandler()}}else{if(aF.className=="overviewmap"){this.l1I.lIiI=true;this.tLeft=parseInt(document.getElementById(this.l1I.id+"_VOverviewBox").style.left);this.tTop=parseInt(document.getElementById(this.l1I.id+"_VOverviewBox").style.top);this.I1l=parseInt(document.getElementById(this.l1I.id+"_VCenterRect").style.left);this.Il1=parseInt(document.getElementById(this.l1I.id+"_VCenterRect").style.top)}else{if(aF.className=="dragoverview"){this.l1I.lIij=true;this.tLeft=parseInt(aF.style.left);this.tTop=parseInt(aF.style.top)}else{if(aF.className=="dragmarker"){if(aF.draggable==1){if(aF.dragStartHandler!=undefined){aF.dragStartHandler()}this.l1I.closeInfoWindow();this.l1I.lIjl=true;this.tLeft=parseInt(aF.style.left);this.tTop=parseInt(aF.style.top);aF.deltaX=parseFloat(aF.style.left)-(lIlj-b.l1I.Left-parseInt(aW.style.left));aF.deltaY=parseFloat(aF.style.top)-(lIl1-b.l1I.Top-parseInt(aW.style.top))}}else{if(aF.className=="dragtext"){if(aF.draggable==1){this.l1I.closeInfoWindow();this.l1I.isTextDragging=true;this.tLeft=parseInt(aF.style.left);this.tTop=parseInt(aF.style.top)}}else{if(aF.className.indexOf!=undefined&&aF.className.indexOf("clickcontrol")!=-1){this.onselectstart=null;this.isSelectWindowContent=true;return}else{if(aF.className=="dragmap"||aF.className=="dragmaparea"||aF.className=="dragCustomOverlay"||aF.className=="clickmarker"||aF.tagName=="path"||aF.tagName=="svg"||aF.tagName=="polyline"||aF.tagName=="circle"||aF.tagName=="oval"||(aF.className==""&&browserName=="safari")){this.l1I.lIIj=true;this.tLeft=parseInt(a.style.left);this.tTop=parseInt(a.style.top);this.sLeft=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);this.sTop=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top);this.stLeft=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);this.stTop=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top);this.I1l=parseInt(aW.style.left);this.Il1=parseInt(aW.style.top);this.aLeft=parseInt(am.style.left);this.aTop=parseInt(am.style.top)}else{if(aF.className=="nomousemove"||aF.tagName!=bg){return}}}}}}}}this.tX=(browserName!="msie")?bf.clientX:event.clientX;this.tY=(browserName!="msie")?bf.clientY:event.clientY;return false};VEvent.addDOMListener(document,"mousemove",function(bs){var bv=(document.body.scrollLeft==0)?document.documentElement.scrollLeft:document.body.scrollLeft;var bf=(document.body.scrollTop==0)?document.documentElement.scrollTop:document.body.scrollTop;lIlj=(browserName!="msie")?bs.pageX:event.clientX+bv;lIl1=(browserName!="msie")?bs.pageY:event.clientY+bf;if(vbdIsSelectInput){return}if(b.l1I.lIIj==true&&b.l1I.draggable==true){if(!b.l1ii){if(document.getElementById("VIWC")!=null){document.getElementById("VIWC").style.overflow="hidden"}if(b.l1I.ll11!=undefined){b.l1I.ll11()}if(b.l1I.li1i!=undefined){if(!VUtil.isVObject(bs)){b.l1I.li1i()}}b.l1ii=true;b.llII=true}if(b.l1I.ll1I!=undefined){b.l1I.ll1I()}if(b.l1I.li1j!=undefined){b.l1I.li1j()}var bu=document.getElementById(b.id+"_VOverviewRect");var bi=((browserName!="msie")?bs.clientX-b.tX+b.tLeft:event.clientX-b.tX+b.tLeft)+"px";var bp=((browserName!="msie")?bs.clientY-b.tY+b.tTop:event.clientY-b.tY+b.tTop)+"px";var bw=b.l1I.curMapType.getTileLayers();for(var bq=0;bq<bw.length;bq++){bw[bq].liII.style.left=bi;bw[bq].liII.style.top=bp}if(a4!=undefined){a4.style.left=bi;a4.style.top=bp}b.sLeft=((browserName!="msie")?bs.clientX-b.tX+b.stLeft:event.clientX-b.tX+b.stLeft);b.sTop=((browserName!="msie")?bs.clientY-b.tY+b.stTop:event.clientY-b.tY+b.stTop);aW.style.left=((browserName!="msie")?bs.clientX-b.tX+b.I1l:event.clientX-b.tX+b.I1l)+"px";aW.style.top=((browserName!="msie")?bs.clientY-b.tY+b.Il1:event.clientY-b.tY+b.Il1)+"px";am.style.left=((browserName!="msie")?bs.clientX-b.tX+b.aLeft:event.clientX-b.tX+b.aLeft)+"px";am.style.top=((browserName!="msie")?bs.clientY-b.tY+b.aTop:event.clientY-b.tY+b.aTop)+"px";if(bu!=null){var bt=parseInt(document.getElementById(b.id+"_VCenterRect").style.left);var br=parseInt(document.getElementById(b.id+"_VCenterRect").style.top);bu.style.left=((browserName!="msie")?bt+Math.round((b.tX-bs.clientX)/b.l1I.nInstalment):bt+Math.round((b.tX-event.clientX)/b.l1I.nInstalment))+"px";bu.style.top=((browserName!="msie")?br+Math.round((b.tY-bs.clientY)/b.l1I.nInstalment):br+Math.round((b.tY-event.clientY)/b.l1I.nInstalment))+"px"}if(b.sTop<-256){b.l1I.insertBottom();b.stTop+=256;b.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto"}if(b.sLeft>0){b.l1I.insertLeft();b.stLeft-=256;b.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto"}else{if(b.sLeft<-256){b.l1I.insertRight();b.stLeft+=256;b.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto"}}if(b.sTop>0){b.l1I.insertTop();b.stTop-=256;b.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto"}return false}else{if(b.l1I.lIiI==true){var bm=(browserName!="msie")?b.tLeft+bs.clientX-b.tX:b.tLeft+event.clientX-b.tX;var bl=(browserName!="msie")?b.tTop+bs.clientY-b.tY:b.tTop+event.clientY-b.tY;if(bm>0){b.l1I.overViewInsertLeft();aG.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto";bm=bm-256;b.tLeft-=256}if(bm<-256){b.l1I.overViewInsertRight();aG.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto";bm=bm+256;b.tLeft+=256}if(bl>0){b.l1I.overViewInsertTop();aG.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto";bl=bl-256;b.tTop-=256}if(bl<-256){b.l1I.overViewInsertBottom();aG.style.cursor="url('"+b.l1I.options.draggingCursor+"'),auto";bl=bl+256;b.tTop+=256}aF.style.left=bm+"px";aF.style.top=bl+"px";return false}else{if(b.l1I.lIij==true){var bm=(browserName!="msie")?b.tLeft+bs.clientX-b.tX:b.tLeft+event.clientX-b.tX;var bl=(browserName!="msie")?b.tTop+bs.clientY-b.tY:b.tTop+event.clientY-b.tY;aF.style.left=bm+"px";aF.style.top=bl+"px"}else{if(b.l1I.lI1j==true){var bl=(browserName!="msie")?b.tTop+bs.clientY-b.tY:b.tTop+event.clientY-b.tY;if(bl<22){aF.style.top=22+"px"}else{if(bl>22+(b.l1I.lliI-1)*8){aF.style.top=22+(b.l1I.lliI-1)*8+"px"}else{aF.style.top=bl+"px"}}return false}else{if(b.l1I.lIjl==true){if(!b.l1I.isMarkerAutoPanning){var bh=(browserName!="msie")?bs.clientX:event.clientX;var bg=(browserName!="msie")?bs.clientY:event.clientY;aF.style.left=b.tLeft-b.tX+bh+"px";aF.style.top=b.tTop-b.tY+bg+"px"}else{aF.style.left=lIlj-b.l1I.Left-parseInt(aW.style.left)+aF.deltaX+"px";aF.style.top=lIl1-b.l1I.Top-parseInt(aW.style.top)+aF.deltaY+"px"}var bj,bk;bj=parseFloat(aF.style.left)+aF.llIl.lill.offset.width;bk=parseFloat(aF.style.top)+aF.llIl.lill.offset.height;var bo=b.l1I.fromDivPixelToLatLng(new VPoint(bj,bk));aF.llIl.latlngs.latitude=bo.latitude;aF.llIl.latlngs.longitude=bo.longitude;if(aF.llIl.lill.autoPan){var bn=new VPoint(lIlj-b.l1I.Left,lIl1-b.l1I.Top);aF.dx=0;aF.dy=0;if(bn.x<=0){aF.dx=-10}if(bn.x>=aG.offsetWidth){aF.dx=10}if(bn.y<=0){aF.dy=-10}if(bn.y>=aG.offsetHeight){aF.dy=10}if(aF.dx!=0||aF.dy!=0){if(!b.l1I.isMarkerAutoPanning){b.l1I.isMarkerAutoPanning=true;b.l1I.panByMarker(aF)}}else{b.l1I.isMarkerAutoPanning=false;clearTimeout();aF.style.left=lIlj-b.l1I.Left-parseInt(aW.style.left)+aF.deltaX+"px";aF.style.top=lIl1-b.l1I.Top-parseInt(aW.style.top)+aF.deltaY+"px";var bj,bk;bj=parseFloat(aF.style.left)+aF.llIl.lill.offset.width;bk=parseFloat(aF.style.top)+aF.llIl.lill.offset.height;var bo=b.l1I.fromDivPixelToLatLng(new VPoint(bj,bk));aF.llIl.latlngs.latitude=bo.latitude;aF.llIl.latlngs.longitude=bo.longitude}}if(bh-b.tX!=0||bg-b.tY!=0){b.ll1j=true;aF.ll1j=true;if(aF.li1j!=undefined){aF.li1j()}}return false}else{if(b.l1I.isTextDragging==true){var bh=(browserName!="msie")?bs.clientX:event.clientX;var bg=(browserName!="msie")?bs.clientY:event.clientY;aF.style.left=b.tLeft-b.tX+bh+"px";aF.style.top=b.tTop-b.tY+bg+"px";
var bj,bk;bj=parseFloat(aF.style.left)+aF.llIl.textOptions.offset.width;bk=parseFloat(aF.style.top)+aF.llIl.textOptions.offset.height;var bo=b.l1I.fromDivPixelToLatLng(new VPoint(bj,bk));aF.llIl.latlngs.latitude=bo.latitude;aF.llIl.latlngs.longitude=bo.longitude;if(bh-b.tX!=0||bg-b.tY!=0){b.hasDraggedText=true;aF.hasDraggedText=true}return false}else{if(b.l1I.isSelectWindowContent==true){b.onselectstart=null}else{vbdIsdragging=false;if(browserName=="msie"&&VUtil.isMapAreaObject(bs)){aG.style.cursor="pointer"}else{aG.style.cursor="url('"+b.l1I.options.draggableCursor+"'),auto"}return}}}}}}}});VEvent.addDOMListener(document,"mouseup",function(bu){vbdIsdragging=false;aG.style.cursor="url('"+b.l1I.options.draggableCursor+"'),auto";if(b.l1I.lIIj==true){b.l1I.lIIj=false;if(b.l1ii==true){b.l1I.getRealCenter();var bv=document.getElementById(b.id+"_VOverviewRect");if(bv!=null){var bt=parseInt(document.getElementById(b.id+"_VCenterRect").style.left);var br=parseInt(document.getElementById(b.id+"_VCenterRect").style.top);b.tX=parseInt(bv.style.left+0)-bt;b.tY=parseInt(bv.style.top+0)-br;b.l1I.setOverViewCenter()}b.l1I.redrawScaleCtrl();b.l1I.updateMappingAreas();if(b.l1I.llil!=undefined){b.l1I.llil()}if(!VUtil.isVObject(bu)){if(!VUtil.isVBDWebsite()){initializeTimer()}if(b.l1I.li1l!=undefined){b.l1I.li1l()}}}if(document.getElementById("VIWC")!=null){document.getElementById("VIWC").style.overflow="auto"}b.l1ii=false;b.l1I.redrawLines()}else{if(b.l1I.lIiI==true){var bx=(browserName!="msie")?bu.clientX-b.tX:event.clientX-b.tX;var bw=(browserName!="msie")?bu.clientY-b.tY:event.clientY-b.tY;b.l1I.panBy(new VSize(-bx*b.l1I.nInstalment,-bw*b.l1I.nInstalment));b.l1I.lIiI=false}else{if(b.l1I.lIij==true){var bx=(browserName!="msie")?bu.clientX-b.tX:event.clientX-b.tX;var bw=(browserName!="msie")?bu.clientY-b.tY:event.clientY-b.tY;b.l1I.panBy(new VSize(bx*b.l1I.nInstalment,bw*b.l1I.nInstalment));b.l1I.lIij=false}else{if(b.l1I.lI1j==true){for(var bq=0;bq<b.l1j;bq++){for(var bp=0;bp<b.lIl;bp++){var bs=a.childNodes[0].childNodes[bq*b.lIl+bp];bs.src=strResURL+"images/whiteimage.png"}}var bm=parseInt(aF.style.top);var bn=(b.l1I.lliI-1)*8+22;var bg=Math.round((bn-bm)/8);var bf=b.l1I.getCenter();var bh=b.l1I.getInfoWindow();if(bh.isOpened()){bf=b.l1I.getCenterForPreserveInfoWindow(b.l1I.level,bg)}b.l1I.setCenter(bf,bg);b.l1I.lI1j=false;b.l1I.lIi1=true}else{if(b.l1I.lIjl==true){b.l1I.lIjl=false;var bk,bl;bk=parseFloat(aF.style.left)+aF.llIl.lill.offset.width;bl=parseFloat(aF.style.top)+aF.llIl.lill.offset.height;var bo=b.l1I.fromDivPixelToLatLng(new VPoint(bk,bl));aF.llIl.latlngs.latitude=bo.latitude;aF.llIl.latlngs.longitude=bo.longitude;b.l1I.isMarkerAutoPanning=false;clearTimeout();if(aF.dragEndHandler!=undefined){var bj=(browserName!="msie")?bu.clientX:event.clientX;var bi=(browserName!="msie")?bu.clientY:event.clientY;if(bj-b.tX!=0||bi-b.tY!=0){aF.dragEndHandler()}}}else{if(b.l1I.isTextDragging==true){var bk,bl;bk=parseFloat(aF.style.left)+aF.llIl.textOptions.offset.width;bl=parseFloat(aF.style.top)+aF.llIl.textOptions.offset.height;var bo=b.l1I.fromDivPixelToLatLng(new VPoint(bk,bl));aF.llIl.latlngs.latitude=bo.latitude;aF.llIl.latlngs.longitude=bo.longitude;b.l1I.isTextDragging=false;if(aF.dragEndHandler!=undefined){aF.dragEndHandler()}}else{if(b.l1I.isSelectWindowContent==true){b.isSelectWindowContent=false}else{return false}}}}}}}});aG.ondblclick=function(bl){if(!this.l1I.dblClickZoomable){return}if(!VUtil.isVObject(bl)){this.l1I.getRealCenter();var bk=new VPoint(lIlj-this.l1I.Left,lIl1-this.l1I.Top);if(this.l1I.level==this.l1I.lliI-1){var bg=this.l1I.fromContainerPixelToLatLng(bk);this.l1I.panTo(bg)}else{if(this.l1I.nZoomCount==0){this.l1I.nZoomCount=8;this.l1I.iZoomStep=0}else{return}this.tX=lIlj-this.l1I.Left-aG.offsetWidth/2;this.tY=lIl1-this.l1I.Top-aG.offsetHeight/2;var bn=1;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";for(var bi=0;bi<this.l1I.l1j;bi++){for(var bh=0;bh<this.l1I.lIl;bh++){var bj=a.childNodes[0].childNodes[bi*this.l1I.lIl+bh];document.getElementById(this.id+"animation_"+bi+"_"+bh).style.width=256+"px";document.getElementById(this.id+"animation_"+bi+"_"+bh).style.height=256+"px";if(bj.loaded==1){document.getElementById(this.id+"animation_"+bi+"_"+bh).src=bj.src}else{document.getElementById(this.id+"animation_"+bi+"_"+bh).src=strResURL+"images/whiteimage.png"}bj.loaded=0;bj.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bf=lIlj-parseInt(am.style.left)-parseInt(aG.l1I.Left)+this.tX;var bm=lIl1-parseInt(am.style.top)-parseInt(aG.l1I.Top)+this.tY;aG.l1I.divisorX=bf/256;aG.l1I.divisorY=bm/256;this.l1I.hideOverlays();VUtil.RemoveDivElement("PopUp",this.l1I.id+"_path");this.l1I.scrollWheelZoom(bn,lIlj,lIl1);return false}}};function w(bf){if(browserName=="firefox"){if(bf.stopPropagation){bf.preventDefault()}}else{event.cancelBubble=true;event.returnValue=false}return false}function U(){return"VMap"}function aY(){this.setCenter(this.getCenter(),this.getLevel());this.disableDragging();this.disableInfoWindow();this.disableDoubleClickZoom();this.disableContinuousZoom();this.disableScrollWheelZoom();this.clearOverlays();this.clearControls()}function l(){this.Left=0;this.Top=0;var bg=aG;var bf=(browserName!="msie")?"HTML":"BODY";while(bg.offsetParent!=null){this.Left+=bg.offsetLeft;this.Top+=bg.offsetTop;bg=bg.offsetParent}}function ba(bu){if(!bu&&!VUtil.isVBDWebsite()){aG.removeChild(aG.childNodes[0])}var bn="";var bf,br;var bh=parseInt(parseInt(aG.offsetHeight)/256)+2;var bt=parseInt(parseInt(aG.offsetWidth)/256)+2;this.l1j=bh;this.lIl=bt;var bg=VProjection.fromLatLngToPixel(this.getCenter(),this.getLevel());var bs,bp;bs=bg.x;bp=bg.y;this.ji1=parseInt((bp-parseFloat(parseInt(aG.offsetHeight)/2))/256);this.jji=parseInt((bs-parseFloat(parseInt(aG.offsetWidth)/2))/256);bf=-parseInt((bs-parseFloat(parseInt(aG.offsetWidth)/2))%256);br=-parseInt((bp-parseFloat(parseInt(aG.offsetHeight)/2))%256);if(bs<parseInt(aG.offsetWidth)/2){this.jji--;bf=bf-256}if(bp<parseInt(aG.offsetHeight)/2){this.ji1--;br=br-256}if(!bu){for(var bl=1;bl<5;bl++){aG.removeChild(document.getElementById(aG.id+"l"+bl));aG.removeChild(document.getElementById(aG.id+"t"+bl))}}for(var bl=1;bl<5;bl++){var bo=VUtil.CreateDivElement(aG.id+"l"+bl,0,0,bl,aG.offsetHeight,"absolute","hidden","");bo.style.background="#000000 none repeat scroll 0 0";bo.style.filter="alpha(opacity = "+(10-2*bl)+")";bo.style.opacity=0.1-0.02*bl;bo.style.display="block";bo.style.zIndex=100;aG.appendChild(bo);bo=VUtil.CreateDivElement(aG.id+"t"+bl,0,0,aG.offsetWidth,bl,"absolute","hidden","");bo.style.background="#000000 none repeat scroll 0 0";bo.style.filter="alpha(opacity = "+(10-2*bl)+")";bo.style.opacity=0.1-0.02*bl;bo.style.display="block";bo.style.zIndex=100;aG.appendChild(bo)}if(bu){N=VUtil.CreateDivElement(this.lli1.id+"_map1",0,0,"100%","100%","absolute","hidden","")}else{N=document.getElementById(this.lli1.id+"_map1");N.removeChild(N.childNodes[0]);N.removeChild(N.childNodes[0])}var bm=(this.curMappingLayer!=null)?this.curMappingLayer.mappedTileLayer:-1;if(this.curMappingLayer!=null){bn="<div style='position:absolute; left:0px; top:0px;'>";for(var bl=0;bl<bh;bl++){for(var bk=0;bk<bt;bk++){bn+="<map id='usemapindex"+bl+"_"+bk+"' name='usemapindex"+(bl+"_"+bk)+"'></map>"}}bn+="</div>";a4=VUtil.CreateDivElement(this.lli1.id+"_mapping",bf,br,bt*256,bh*256,"absolute","",bn);N.appendChild(a4);a4.className="dragmaparea";a4.style.zIndex=MapInnerZIndex}for(var bj=0;bj<this.curMapType.getTileLayers().length;bj++){bn="<div style='position:absolute; left:0px; top:0px;'>";for(var bl=0;bl<bh;bl++){for(var bk=0;bk<bt;bk++){if(bj!=bm){bn+='<img style="position:absolute; -moz-user-select:none; left:'+(bk*256)+"px; top:"+(bl*256)+'px;" src='+strResURL+"images/whiteimage.png height='256px' isMap width='256px'>"}else{bn+="<img id='"+(this.jji+bl+"_"+this.ji1+bk)+"' style=\" border:0px none; margin:0px; padding:0px; position:absolute; -moz-user-select:none; left:"+(bk*256)+"px; top:"+(bl*256)+'px;" src='+strResURL+"images/whiteimage.png height='256px' isMap width='256px' usemap='#usemapindex"+bl+"_"+bk+"'>"
}}}bn+="</div>";if(bj==0){a=VUtil.CreateDivElement(this.lli1.id+"_inner",bf,br,bt*256,bh*256,"absolute","",bn)}else{a=VUtil.CreateDivElement(this.lli1.id+"_inner"+bj,bf,br,bt*256,bh*256,"absolute","",bn)}this.curMapType.getTileLayers()[bj].liII=a;N.appendChild(a);a.className="dragmap";a.style.zIndex=MapInnerZIndex}a=this.curMapType.getTileLayers()[0].liII;bn="<table id=table_"+this.id+" cellSpacing=0 cellPadding=0 border=0>";bn+="<thead>";bn+="<tr>";for(var bl=0;bl<bh;bl++){bn+="<th></th>"}bn+="</tr>";bn+="</thead>";bn+="<tbody>";for(var bl=0;bl<bh;bl++){bn+="<tr>";for(var bk=0;bk<bt;bk++){bn+="<td>";bn+="<IMG id="+this.id+"animation_"+bl+"_"+bk+" src="+strResURL+'images/transparent.png style="height:256px; width:256px; " isMap>';bn+="</td>"}bn+="</tr>"}bn+="</tbody>";bn+="</table>";am=VUtil.CreateDivElement(this.lli1.id+"_animation",bf,br,"auto","auto","absolute","",bn);N.appendChild(am);am.className="dragmap";am.style.zIndex=MapAnimatedZIndex;if(bu){aG.appendChild(N)}if(bu){aW=VUtil.CreateDivElement(this.lli1.id+"_path",0,0,"","","absolute","","");H=VUtil.CreateDivElement("",0,0,"","","absolute","","");ak=VUtil.CreateDivElement("",0,0,"","","absolute","","");ax=VUtil.CreateDivElement("",0,0,"","","absolute","","");aZ=VUtil.CreateDivElement("",0,0,"","","absolute","","");aW.appendChild(H);aW.appendChild(ak);aW.appendChild(ax);aW.appendChild(aZ);aG.appendChild(aW);ax.className="dragCustomOverlay";if(browserName!="msie"){var bq=document.createElementNS("http://www.w3.org/2000/svg","svg");bq.setAttribute("overflow","visible");bq.style.position="absolute";ak.appendChild(bq)}}H.style.zIndex=MarkerZIndex;ak.style.zIndex=LineZIndex;aW.style.zIndex=MapPathZIndex;aZ.style.zIndex=ObjBelowShadeZIndex;bn="";bn+="<table>";bn+="<tr width=41>";bn+="<td width=20>";bn+="<img style='cursor:pointer;' onclick={window.open('http://www.vietbando.com');} src='"+strResURL+"images/poweredby.png' >";bn+="</td>";bn+="</tr>";bn+="</table>";if(!VUtil.isVBDWebsite()){var bi=VUtil.CreateDivElement("",5,parseInt(aG.offsetHeight)-40,40,30,"absolute","",bn);bi.style.zIndex=VBDLogoZIndex;bi.style.MozUserSelect="none";aG.insertBefore(bi,aG.childNodes[0])}}function aq(){if(this.curMappingLayer==null){return}var bf=this.curMapType.getTileLayers();var bl=(this.curMappingLayer!=null)?this.curMappingLayer.mappedTileLayer:-1;var bn=bf[bl].liII;var bo=new Array();var bg=new Array();var bk=null;for(var bj=0;bj<this.l1j;bj++){for(var bi=0;bi<this.lIl;bi++){bk=bn.childNodes[0].childNodes[bj*this.lIl+bi];var bm=Math.pow(2,this.level);var bp=this.ji1+bj;var bh=this.jji+bi;bh=((bh%bm)+bm)%bm;bo[bo.length]=bk.id;bg[bg.length]=new VPoint(bh,bp)}}this.curMappingLayer.getMappingAreas(bo,bg,this.level)}function S(){var bl=(this.curMappingLayer!=null)?this.curMappingLayer.mappedTileLayer:-1;var bf=this.curMapType.getTileLayers();var bk=null;for(var bh=0;bh<bf.length;bh++){if(bh==bl){var bm=bf[bh].liII;for(var bj=0;bj<this.l1j;bj++){for(var bi=0;bi<this.lIl;bi++){var bn=this.ji1+bj;var bg=this.jji+bi;bk=bm.childNodes[0].childNodes[bj*this.lIl+bi];if(bk.id!=null&&bk.id!=""){bk.id=bg+"_"+bn}bk.src=bf[bh].getTileUrl(new VPoint(bg,bn),this.level)}}}}}function C(){this.jji--;var bh=parseInt(a.childNodes[0].childNodes[0].style.left)-256;var bf=this.curMapType.getTileLayers();for(var bi=0;bi<bf.length;bi++){var bm=bf[bi].liII;for(var bj=0;bj<this.l1j;bj++){var bk=bm.childNodes[0].childNodes[bj*this.lIl+this.lIl-1];bm.childNodes[0].removeChild(bk);bk.src=strResURL+"images/transparent.png";bk.style.left=bh+"px";bk.style.width="256px";bk.style.height="256px";var bl=Math.pow(2,this.level);var bn=this.ji1+bj;var bg=this.jji;bg=((bg%bl)+bl)%bl;if(this.ji1+bj>=0&&this.ji1+bj<Math.pow(2,this.level)){if(bk.id!=null&&bk.id!=""){bk.id=bg+"_"+bn}bk.src=bf[bi].getTileUrl(new VPoint(bg,bn),this.level)}bm.childNodes[0].insertBefore(bk,bm.childNodes[0].childNodes[bj*this.lIl])}}}function c(){this.jji++;var bh=parseInt(a.childNodes[0].childNodes[this.lIl-1].style.left)+256;var bf=this.curMapType.getTileLayers();for(var bi=0;bi<bf.length;bi++){var bm=bf[bi].liII;for(var bj=0;bj<this.l1j;bj++){var bk=bm.childNodes[0].childNodes[bj*this.lIl];bm.childNodes[0].removeChild(bk);bk.src=strResURL+"images/transparent.png";bk.style.left=bh+"px";bk.style.width="256px";bk.style.height="256px";var bl=Math.pow(2,this.level);var bn=this.ji1+bj;var bg=this.jji+this.lIl-1;bg=((bg%bl)+bl)%bl;if(this.ji1+bj>=0&&this.ji1+bj<Math.pow(2,this.level)){if(bk.id!=null&&bk.id!=""){bk.id=bg+"_"+bn}bk.src=bf[bi].getTileUrl(new VPoint(bg,bn),this.level)}if(bj==this.l1j-1){bm.childNodes[0].appendChild(bk)}else{bm.childNodes[0].insertBefore(bk,bm.childNodes[0].childNodes[bj*this.lIl+this.lIl-1])}}}}function r(){this.ji1--;var bm=parseInt(a.childNodes[0].childNodes[0].style.top)-256;var bf=this.curMapType.getTileLayers();for(var bh=0;bh<bf.length;bh++){var bl=bf[bh].liII;for(var bi=0;bi<this.lIl;bi++){var bj=bl.childNodes[0].childNodes[this.lIl*(this.l1j-1)+bi];bl.childNodes[0].removeChild(bj);bj.src=strResURL+"images/transparent.png";bj.style.top=bm+"px";bj.style.width="256px";bj.style.height="256px";var bk=Math.pow(2,this.level);var bn=this.ji1;var bg=this.jji+bi;bg=((bg%bk)+bk)%bk;if(this.ji1>=0&&this.ji1<Math.pow(2,this.level)){if(bj.id!=null&&bj.id!=""){bj.id=bg+"_"+bn}bj.src=bf[bh].getTileUrl(new VPoint(bg,bn),this.level)}bl.childNodes[0].insertBefore(bj,bl.childNodes[0].childNodes[bi])}}}function M(){this.ji1++;var bm=parseInt(a.childNodes[0].childNodes[(this.l1j-1)*this.lIl].style.top)+256;var bf=this.curMapType.getTileLayers();for(var bh=0;bh<bf.length;bh++){var bl=bf[bh].liII;for(var bi=0;bi<this.lIl;bi++){var bj=bl.childNodes[0].childNodes[0];bl.childNodes[0].removeChild(bj);bj.src=strResURL+"images/transparent.png";bj.style.top=bm+"px";bj.style.width="256px";bj.style.height="256px";var bk=Math.pow(2,this.level);var bn=this.ji1+this.l1j-1;var bg=this.jji+bi;bg=((bg%bk)+bk)%bk;if(this.ji1+this.l1j-1>=0&&this.ji1+this.l1j-1<Math.pow(2,this.level)){if(bj.id!=null&&bj.id!=""){bj.id=bg+"_"+bn}bj.src=bf[bh].getTileUrl(new VPoint(bg,bn),this.level)}bl.childNodes[0].appendChild(bj)}}}function ar(){var bp=document.getElementById(this.id+"_VOverviewTable").tHead;for(var bl=0;bl<bp.rows.length;bl++){var bn=document.createElement("th");bp.rows[bl].appendChild(bn)}VUtil.RemoveLeftColumn(this.id+"_VOverviewTable");for(var bk=0;bk<2;bk++){for(var bi=0;bi>=0;bi--){if(document.getElementById(this.id+"s_"+bk+"_"+bi)!=null){document.getElementById(this.id+"s_"+bk+"_"+bi).id=this.id+"s_"+bk+"_"+(bi+1)}}}var bj=document.getElementById(this.id+"_VOverviewTable").tBodies[0];for(var bk=0;bk<bj.rows.length;bk++){var bf=bj.rows[bk].insertCell(0);bf.innerHTML="<img id="+this.id+"s_"+bk+"_0 src="+strResURL+"images/transparent.png width=256px height=256px>";if((this.jIj+bk)>=0&&(this.jIj+bk)<Math.pow(2,this.lIII)){var bh=parseInt(((this.jIj+bk)*Math.pow(2,this.lIII)+this.lIIi-1)/LimitFolder);var bm=Math.pow(2,this.lIII);var bo=this.jIj+bk;var bg=this.lIIi-1;bg=((bg%bm)+bm)%bm;document.getElementById(this.id+"s_"+bk+"_0").src=this.ImagesURL+"mapimages/"+this.lIII+"/"+bh+"/"+bo+"_"+bg+".png"}}this.lIIi--}function ah(){var bp=document.getElementById(this.id+"_VOverviewTable").tHead;for(var bl=0;bl<bp.rows.length;bl++){var bn=document.createElement("th");bp.rows[bl].appendChild(bn)}VUtil.RemoveRightColumn(this.id+"_VOverviewTable");for(var bk=0;bk<2;bk++){for(var bi=1;bi<=2-1;bi++){if(document.getElementById(this.id+"s_"+bk+"_"+bi)!=null){document.getElementById(this.id+"s_"+bk+"_"+bi).id=this.id+"s_"+bk+"_"+(bi-1)}}}var bj=document.getElementById(this.id+"_VOverviewTable").tBodies[0];for(var bk=0;bk<bj.rows.length;bk++){var bf=bj.rows[bk].insertCell(-1);bf.innerHTML="<img id="+this.id+"s_"+bk+"_"+(2-1)+" src="+strResURL+"images/transparent.png width=256px height=256px>";if((this.jIj+bk)>=0&&(this.jIj+bk)<Math.pow(2,this.lIII)){var bh=parseInt(((this.jIj+bk)*Math.pow(2,this.lIII)+this.lIIi+2)/LimitFolder);var bm=Math.pow(2,this.lIII);var bo=this.jIj+bk;var bg=this.lIIi+2;bg=((bg%bm)+bm)%bm;
document.getElementById(this.id+"s_"+bk+"_"+(2-1)).src=this.ImagesURL+"mapimages/"+this.lIII+"/"+bh+"/"+bo+"_"+bg+".png"}}this.lIIi++}function g(){var bm=document.getElementById(this.id+"_VOverviewTable");bm.deleteRow(-1);for(var bj=2-2;bj>=0;bj--){for(var bi=0;bi<2;bi++){if(document.getElementById(this.id+"s_"+bj+"_"+bi)!=null){document.getElementById(this.id+"s_"+bj+"_"+bi).id=this.id+"s_"+(bj+1)+"_"+bi}}}var bk=bm.insertRow(1);for(var bj=0;bj<2;bj++){var bf=bk.insertCell(bj);bf.innerHTML="<img id="+this.id+"s_0_"+bj+" src="+strResURL+"images/transparent.png width=256px height=256px>";if((this.jIj-1)>=0&&(this.jIj-1)<Math.pow(2,this.lIII)){var bh=parseInt(((this.jIj-1)*Math.pow(2,this.lIII)+this.lIIi+bj)/LimitFolder);var bl=Math.pow(2,this.lIII);var bn=this.jIj-1;var bg=this.lIIi+bj;bg=((bg%bl)+bl)%bl;document.getElementById(this.id+"s_0_"+bj).src=this.ImagesURL+"mapimages/"+this.lIII+"/"+bh+"/"+bn+"_"+bg+".png"}}this.jIj--}function ab(){var bm=document.getElementById(this.id+"_VOverviewTable");bm.deleteRow(1);for(var bj=1;bj<=2-1;bj++){for(var bi=0;bi<2;bi++){if(document.getElementById(this.id+"s_"+bj+"_"+bi)!=null){document.getElementById(this.id+"s_"+bj+"_"+bi).id=this.id+"s_"+(bj-1)+"_"+bi}}}var bk=bm.insertRow(-1);for(var bj=0;bj<2;bj++){var bf=bk.insertCell(bj);bf.innerHTML="<img id="+this.id+"s_"+(2-1)+"_"+bj+" src="+strResURL+"images/transparent.png width=256px height=256px>";if((this.jIj+2)>=0&&(this.jIj+2)<Math.pow(2,this.lIII)){var bh=parseInt(((this.jIj+2)*Math.pow(2,this.lIII)+this.lIIi+bj)/LimitFolder);var bl=Math.pow(2,this.lIII);var bn=this.jIj+2;var bg=this.lIIi+bj;bg=((bg%bl)+bl)%bl;document.getElementById(this.id+"s_"+(2-1)+"_"+bj).src=this.ImagesURL+"mapimages/"+this.lIII+"/"+bh+"/"+bn+"_"+bg+".png"}}this.jIj++}function aJ(){if(this.jIi==0){this.jIi=8;document.getElementById(this.id+"_VOverviewRect").style.left=parseInt(document.getElementById(this.id+"_VOverviewBox").style.left)+"px";document.getElementById(this.id+"_VOverviewRect").style.top=parseInt(document.getElementById(this.id+"_VOverviewBox").style.top)+"px";this.fixOverView();return}this.jIi-=2;var bi=parseInt(document.getElementById(this.id+"_VOverviewBox").style.left);var bh=parseInt(document.getElementById(this.id+"_VOverviewBox").style.top);var bg=parseInt(bi)-Math.round(this.lli1.tX/4);var bf=parseInt(bh)-Math.round(this.lli1.tY/4);if(bg>=0){this.overViewInsertLeft();bg-=256}if(bg<=-256){this.overViewInsertRight();bg+=256}if(bf>=0){this.overViewInsertTop();bf-=256}if(bf<=-256){this.overViewInsertBottom();bf+=256}document.getElementById(this.id+"_VOverviewBox").style.left=bg+"px";document.getElementById(this.id+"_VOverviewBox").style.top=bf+"px";setTimeout(function(){aG.l1I.setOverViewCenter()},10)}function d(){if(document.getElementById(this.id+"_VOverviewMapControl")!=null){this.lIII=this.level-4;var bo=0;var br=0;var bv=0;var bt=0;var bs=142;var bm=122;var bu=parseInt(this.lli1.offsetWidth);var bn=parseInt(this.lli1.offsetHeight);if(this.lIII<0){if(this.lIII==-1){bo=Math.round(bu/Math.pow(2,this.level));br=Math.round(bn/Math.pow(2,this.level))}bv=Math.round((bs-bo)/2);bt=Math.round((bm-br)/2);if(this.lIII<-1){document.getElementById(this.id+"_VOverviewRect").style.border=0+"px";document.getElementById(this.id+"_VCenterRect").style.border=0+"px";bo=0;br=0}else{document.getElementById(this.id+"_VOverviewRect").style.border="#0066cc 2px double";document.getElementById(this.id+"_VCenterRect").style.border="#0066cc 2px double"}document.getElementById(this.id+"_VOverviewRect").style.left=bv+"px";document.getElementById(this.id+"_VOverviewRect").style.top=bt+"px";document.getElementById(this.id+"_VCenterRect").style.left=bv+"px";document.getElementById(this.id+"_VCenterRect").style.top=bt+"px";document.getElementById(this.id+"_VOverviewRect").style.width=bo+"px";document.getElementById(this.id+"_VOverviewRect").style.height=br+"px";document.getElementById(this.id+"_VCenterRect").style.width=bo+"px";document.getElementById(this.id+"_VCenterRect").style.height=br+"px";this.nInstalment=Math.pow(2,this.level);this.lIII=0}else{bo=Math.round(bu/Math.pow(2,this.level-this.lIII));br=Math.round(bn/Math.pow(2,this.level-this.lIII));bv=Math.round((bs-bo)/2);bt=Math.round((bm-br)/2);document.getElementById(this.id+"_VOverviewRect").style.border="#0066cc 2px double";document.getElementById(this.id+"_VCenterRect").style.border="#0066cc 2px double";document.getElementById(this.id+"_VOverviewRect").style.left=bv+"px";document.getElementById(this.id+"_VOverviewRect").style.top=bt+"px";document.getElementById(this.id+"_VCenterRect").style.left=bv+"px";document.getElementById(this.id+"_VCenterRect").style.top=bt+"px";document.getElementById(this.id+"_VOverviewRect").style.width=bo+"px";document.getElementById(this.id+"_VOverviewRect").style.height=br+"px";document.getElementById(this.id+"_VCenterRect").style.width=bo+"px";document.getElementById(this.id+"_VCenterRect").style.height=br+"px";this.nInstalment=Math.pow(2,this.level-this.lIII)}var bq=this.jji*256-parseInt(document.getElementById(this.id+"_inner").style.left+0)-parseInt(a.childNodes[0].childNodes[0].style.left)+bu/2;var bh=this.ji1*256-parseInt(document.getElementById(this.id+"_inner").style.top)-parseInt(a.childNodes[0].childNodes[0].style.top)+bn/2;var bl=bq/this.nInstalment;var bf=bh/this.nInstalment;var bx=bl%256;if(bx<=bs/2){this.lIIi=parseInt(bl/256)-1;var bp=bs/2-bx-256;if(bp>0){this.lIIi--;bp-=256}document.getElementById(this.id+"_VOverviewBox").style.left=bp+"px"}else{this.lIIi=parseInt(bl/256);var bp=bs/2-bx;if(bp>0){this.lIIi--;bp-=256}}document.getElementById(this.id+"_VOverviewBox").style.left=bp+"px";var bw=bf%256;if(bw<=bm/2){this.jIj=parseInt(bf/256)-1;document.getElementById(this.id+"_VOverviewBox").style.top=bm/2-bw-256+"px"}else{this.jIj=parseInt(bf/256);document.getElementById(this.id+"_VOverviewBox").style.top=bm/2-bw+"px"}for(var bs=0;bs<2;bs++){for(var br=0;br<2;br++){document.getElementById(this.id+"s_"+bs+"_"+br).src=strResURL+"images/whiteimage.png";if((this.jIj+bs)>=0&&(this.jIj+bs)<Math.pow(2,this.lIII)){var bk=parseInt(((this.jIj+bs)*Math.pow(2,this.lIII)+this.lIIi+br)/LimitFolder);var bg=Math.pow(2,this.lIII);var bj=this.jIj+bs;var bi=this.lIIi+br;bi=((bi%bg)+bg)%bg;document.getElementById(this.id+"s_"+bs+"_"+br).src=this.ImagesURL+"/mapimages/"+this.lIII+"/"+bk+"/"+bj+"_"+bi+".png"}else{document.getElementById(this.id+"s_"+bs+"_"+br).src=strResURL+"images/whiteimage.png"}}}}}function a9(){var bg=parseFloat(parseInt(this.lli1.offsetWidth)/2)-parseFloat(parseInt(document.getElementById(this.lli1.id+"_inner").style.left))-parseInt(a.childNodes[0].childNodes[0].style.left)+256*this.jji;var bf=parseFloat(parseInt(this.lli1.offsetHeight)/2)-parseFloat(parseInt(document.getElementById(this.lli1.id+"_inner").style.top))-parseInt(a.childNodes[0].childNodes[0].style.top)+256*this.ji1;var bh=VProjection.fromPixelToLatLng(new VPoint(bg,bf),this.level);this.centerX=bh.longitude;this.centerY=bh.latitude}function W(bm){if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}for(var bk=0;bk<this.l1j;bk++){for(var bi=0;bi<this.lIl;bi++){var bl=a.childNodes[0].childNodes[bk*this.lIl+bi];bl.src=strResURL+"images/whiteimage.png"}}var bn=lIl1;var bj=(this.lliI-1)*8+22;var bf=Math.round((bj-(bn-79-parseInt(this.Top)-document.getElementById(this.id+"_VLargeMapControl").offsetTop))/8);if(bf<0){bf=0}if(bf>this.lliI){bf=lliI}var bg=this.getCenter();var bh=this.getInfoWindow();if(bh.isOpened()){bg=this.getCenterForPreserveInfoWindow(this.level,bf)}this.setCenter(bg,bf);if(!document.all&&this.l1ij==undefined&&this.lIi1){this.lIi1=false}}function at(bF,bo,bn,bm){if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}if(this.lIii==false){this.nZoomCount=0;this.iZoomStep=0}if((bF>0&&this.level+this.nZoomCount/8>this.lliI-1)||(bF<0&&this.level-this.nZoomCount/8<0)){this.nZoomCount-=8}if(this.iZoomStep%8==0&&this.changeDelta*bF<0){this.changeDelta=bF;this.nZoomCount=8;this.iZoomStep=0}var bw=document.getElementById("vbdani_lefttop");
var bC=document.getElementById("vbdani_righttop");var bf=document.getElementById("vbdani_leftbottom");var bh=document.getElementById("vbdani_rightbottom");if(this.iZoomStep==this.nZoomCount){this.lli1.dblRC="false";var bt=this.divisorX*256-this.lli1.tX/2;var bE=this.divisorY*256-this.lli1.tY/2;var bz=VProjection.fromPixelToLatLng(new VPoint(bt+256*this.jji,bE+256*this.ji1),this.level);var bk=bz.longitude;var bj=bz.latitude;var br;if(bF>0){br=this.level+this.nZoomCount/8}else{br=this.level-this.nZoomCount/8}if(br<0){br=0}var bv=VProjection.fromLatLngToPixel(new VLatLng(bj,bk),br);var bu=bv.x-bo+parseInt(this.Left)+parseInt(this.lli1.offsetWidth)/2;var bs=bv.y-bn+parseInt(this.Top)+parseInt(this.lli1.offsetHeight)/2;bz=VProjection.fromPixelToLatLng(new VPoint(bu,bs),br);var by=document.getElementById("LoadingImage");if(by!=null){document.body.removeChild(by)}this.nZoomCount=0;this.iZoomStep=0;this.changeDelta=0;am.style.zIndex=MapAnimatedZIndex;if(bw!=null){document.body.removeChild(bw);document.body.removeChild(bC);document.body.removeChild(bf);document.body.removeChild(bh)}this.nZoomCount=0;this.setCenter(new VLatLng(bz.latitude,bz.longitude),br,this.curMapType,false);clearTimeout();if(bm!=null&&bm!=undefined){bm()}return}this.iZoomStep++;var bg=Math.ceil(this.iZoomStep/8);var bp=Math.pow(2,bg-1);var bi=(this.iZoomStep%8==0)?8:this.iZoomStep%8;var bq=document.getElementById(this.id+"_rulerDiv");if(bq!=null){var bx=(this.lliI-1)*8+22;if(bF>0){bq.style.top=bx-8*(this.level+bg-1)-bi*1+"px"}else{bq.style.top=bx-8*(this.level-bg+1)+bi*1+"px"}}for(var bB=0;bB<this.l1j;bB++){for(var bA=0;bA<this.lIl;bA++){var bD=document.getElementById(this.id+"animation_"+bB+"_"+bA);if(bF>0){bD.style.height=256*bp+bi*32*bp+"px";bD.style.width=256*bp+bi*32*bp+"px"}else{bD.style.height=256/bp-bi*16/bp+"px";bD.style.width=256/bp-bi*16/bp+"px"}}}var bl=4;if(bF>0){am.style.left=parseInt(am.style.left)-Math.round(this.divisorX*32*bp)+"px";am.style.top=parseInt(am.style.top)-Math.round(this.divisorY*32*bp)+"px";if(bw!=null){bw.style.left=parseInt(bw.style.left)-bl+"px";bw.style.top=parseInt(bw.style.top)-bl+"px";bC.style.left=parseInt(bC.style.left)+bl+"px";bC.style.top=parseInt(bC.style.top)-bl+"px";bf.style.left=parseInt(bf.style.left)-bl+"px";bf.style.top=parseInt(bf.style.top)+bl+"px";bh.style.left=parseInt(bh.style.left)+bl+"px";bh.style.top=parseInt(bh.style.top)+bl+"px"}}else{am.style.left=parseInt(am.style.left)+Math.round(this.divisorX*16/bp)+"px";am.style.top=parseInt(am.style.top)+Math.round(this.divisorY*16/bp)+"px";if(bw!=null){bw.style.left=parseInt(bw.style.left)+bl+"px";bw.style.top=parseInt(bw.style.top)+bl+"px";bC.style.left=parseInt(bC.style.left)-bl+"px";bC.style.top=parseInt(bC.style.top)+bl+"px";bf.style.left=parseInt(bf.style.left)+bl+"px";bf.style.top=parseInt(bf.style.top)-bl+"px";bh.style.left=parseInt(bh.style.left)-bl+"px";bh.style.top=parseInt(bh.style.top)-bl+"px"}}if(this.iZoomStep>8&&bw!=null){document.body.removeChild(bw);document.body.removeChild(bC);document.body.removeChild(bf);document.body.removeChild(bh)}setTimeout(function(){aG.l1I.scrollWheelZoom(bF,bo,bn,bm)},1)}function v(){var bf=this.curMapType.getTileLayers();if(bf.length>1){for(var bg=1;bg<bf.length;bg++){for(var bi=0;bi<this.l1j;bi++){for(var bh=0;bh<this.lIl;bh++){var bj=bf[bg].liII.childNodes[0].childNodes[bi*this.lIl+bh];bj.src=strResURL+"images/transparent.png"}}}}for(var bi=0;bi<this.li1;bi++){if(this.lil[bi].isHidden!=undefined){if(!this.lil[bi].isHidden()){this.lil[bi].hide();this.lil[bi].hideWhenZoom="hideWhenZoom"}}}var bk=this.getInfoWindow();if(bk.isOpened()&&!bk.isHidden()){bk.hide();bk.hideWhenZoom="hideWhenZoom"}}function aB(){for(var bf=0;bf<this.li1;bf++){if(this.lil[bf].isHidden!=undefined){if(this.lil[bf].hideWhenZoom!=undefined&&this.lil[bf].hideWhenZoom=="hideWhenZoom"){this.lil[bf].show();this.lil[bf].hideWhenZoom=""}}}var bg=this.getInfoWindow();if(bg.hideWhenZoom!=undefined&&bg.hideWhenZoom=="hideWhenZoom"){bg.show();bg.hideWhenZoom=""}}function aE(){for(var bf=0;bf<this.li1;bf++){if(this.lil[bf].vType!=undefined&&this.lil[bf].vType()=="VPolyline"||this.lil[bf].vType()=="VPolygon"){this.lil[bf].redraw(true)}}}function a8(){var bf=document.getElementById(this.id+"_rulerDiv");if(bf!=null){var bg=(this.lliI-1)*8+22;bf.style.top=bg-(8*this.level)+"px"}}function aV(){var bl=document.getElementById(this.id+"_Units");if(bl!=null){var bk=[10,5,2];var bj=-1;var bf=1000000;var bi=0;var bh=0;var bg=0;do{bj++;if(bj>2){bj=0;bf/=10}bi=bk[bj]*bf;bh=VProjection.getGroundResolution(this.centerY,this.level);bg=bi/bh;if(bf<=0.1){break}}while(bg>130);bl.innerHTML=(bi>=1000)?((bi/1000)+" km"):(bi+" m");document.getElementById(this.id+"_Ruler").style.width=bg+"px"}}function ay(){if(document.getElementById(this.id+"_VOverviewMapControl")!=null){this.lIII=this.level-4;var bo=0;var bq=0;var bu=0;var bs=0;var br=142;var bm=122;var bt=parseInt(this.lli1.offsetWidth);var bn=parseInt(this.lli1.offsetHeight);if(this.lIII<0){if(this.lIII==-1){bo=Math.round(bt/Math.pow(2,this.level));bq=Math.round(bn/Math.pow(2,this.level))}bu=Math.round((br-bo)/2);bs=Math.round((bm-bq)/2);if(this.lIII<-1){document.getElementById(this.id+"_VOverviewRect").style.border=0+"px";document.getElementById(this.id+"_VCenterRect").style.border=0+"px";bo=0;bq=0}else{document.getElementById(this.id+"_VOverviewRect").style.border="#0066cc 2px double";document.getElementById(this.id+"_VCenterRect").style.border="#0066cc 2px double"}document.getElementById(this.id+"_VOverviewRect").style.left=bu+"px";document.getElementById(this.id+"_VOverviewRect").style.top=bs+"px";document.getElementById(this.id+"_VCenterRect").style.left=bu+"px";document.getElementById(this.id+"_VCenterRect").style.top=bs+"px";document.getElementById(this.id+"_VOverviewRect").style.width=bo+"px";document.getElementById(this.id+"_VOverviewRect").style.height=bq+"px";document.getElementById(this.id+"_VCenterRect").style.width=bo+"px";document.getElementById(this.id+"_VCenterRect").style.height=bq+"px";this.nInstalment=Math.pow(2,this.level);this.lIII=0}else{bo=Math.round(bt/Math.pow(2,this.level-this.lIII));bq=Math.round(bn/Math.pow(2,this.level-this.lIII));bu=Math.round((br-bo)/2);bs=Math.round((bm-bq)/2);document.getElementById(this.id+"_VOverviewRect").style.border="#0066cc 2px double";document.getElementById(this.id+"_VCenterRect").style.border="#0066cc 2px double";document.getElementById(this.id+"_VOverviewRect").style.left=bu+"px";document.getElementById(this.id+"_VOverviewRect").style.top=bs+"px";document.getElementById(this.id+"_VCenterRect").style.left=bu+"px";document.getElementById(this.id+"_VCenterRect").style.top=bs+"px";document.getElementById(this.id+"_VOverviewRect").style.width=bo+"px";document.getElementById(this.id+"_VOverviewRect").style.height=bq+"px";document.getElementById(this.id+"_VCenterRect").style.width=bo+"px";document.getElementById(this.id+"_VCenterRect").style.height=bq+"px";this.nInstalment=Math.pow(2,this.level-this.lIII)}var bp=this.jji*256-parseInt(document.getElementById(this.id+"_inner").style.left)-parseInt(document.getElementById(this.id+"_inner").childNodes[0].childNodes[0].style.left)+bt/2;var bh=this.ji1*256-parseInt(document.getElementById(this.id+"_inner").style.top)-parseInt(document.getElementById(this.id+"_inner").childNodes[0].childNodes[0].style.top)+bn/2;var bl=bp/this.nInstalment;var bf=bh/this.nInstalment;var bw=bl%256;if(bw<=br/2){this.lIIi=parseInt(bl/256)-1;document.getElementById(this.id+"_VOverviewBox").style.left=br/2-bw-256+"px"}else{this.lIIi=parseInt(bl/256);document.getElementById(this.id+"_VOverviewBox").style.left=br/2-bw+"px"}var bv=bf%256;if(bv<=bm/2){this.jIj=parseInt(bf/256)-1;document.getElementById(this.id+"_VOverviewBox").style.top=bm/2-bv-256+"px"}else{this.jIj=parseInt(bf/256);document.getElementById(this.id+"_VOverviewBox").style.top=bm/2-bv+"px"}for(var br=0;br<2;br++){for(var bq=0;bq<2;bq++){document.getElementById(this.id+"s_"+br+"_"+bq).src=strResURL+"images/whiteimage.png";
if((this.jIj+br)>=0&&(this.jIj+br)<Math.pow(2,this.lIII)){var bk=parseInt(((this.jIj+br)*Math.pow(2,this.lIII)+this.lIIi+bq)/LimitFolder);var bg=Math.pow(2,this.lIII);var bj=this.jIj+br;var bi=this.lIIi+bq;bi=((bi%bg)+bg)%bg;document.getElementById(this.id+"s_"+br+"_"+bq).src=this.ImagesURL+"mapimages/"+this.lIII+"/"+bk+"/"+bj+"_"+bi+".png"}else{document.getElementById(this.id+"s_"+br+"_"+bq).src=strResURL+"images/whiteimage.png"}}}}}function z(){if(browserName!="msie"){var bf=aW.childNodes[1].childNodes[0];if(bf.childNodes.length==0){bf.setAttribute("width","");bf.setAttribute("height","")}}}function be(bn,bl){var bj=this.getInfoWindow();var bm=VProjection.fromLatLngToPixel(bj.getPoint(),bn);var bg=VProjection.fromLatLngToPixel(this.getCenter(),bn);var bk=bg.x-bm.x;var bi=bg.y-bm.y;var bf=VProjection.fromLatLngToPixel(bj.getPoint(),bl);var bo=new VPoint(bf.x+bk,bf.y+bi);var bh=VProjection.fromPixelToLatLng(bo,bl);return bh}function aH(){for(var bf=0;bf<this.nControls;bf++){if(this.arrControls[bf].hide!=undefined){this.arrControls[bf].hide()}}}function s(){for(var bf=0;bf<this.nControls;bf++){if(this.arrControls[bf].show!=undefined){this.arrControls[bf].show()}}}function au(bp){if(!this.isMarkerAutoPanning){return}var bk,bf;bk=parseFloat(bp.style.left)+bp.llIl.lill.offset.width+bp.dx;bf=parseFloat(bp.style.top)+bp.llIl.lill.offset.height+bp.dy;bp.style.left=parseFloat(bp.style.left)+bp.dx+"px";bp.style.top=parseFloat(bp.style.top)+bp.dy+"px";var bj=this.fromDivPixelToLatLng(new VPoint(bk,bf));bp.llIl.latlngs.latitude=bj.latitude;bp.llIl.latlngs.longitude=bj.longitude;this.tLeft=parseInt(a.style.left);this.tTop=parseInt(a.style.top);this.sLeft=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);this.sTop=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top);this.stLeft=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);this.stTop=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top);var bn=parseInt(a.style.left)-Math.round(bp.dx)+"px";var bl=parseInt(a.style.top)-Math.round(bp.dy)+"px";var bg=this.curMapType.getTileLayers();for(var bi=0;bi<bg.length;bi++){bg[bi].liII.style.left=bn;bg[bi].liII.style.top=bl}if(a4!=undefined){a4.style.left=bn;a4.style.top=bl}this.stLeft=this.stLeft-Math.round(bp.dx);this.stTop=this.stTop-Math.round(bp.dy);this.sLeft=-Math.round(bp.dx)+this.stLeft;this.sTop=-Math.round(bp.dy)+this.stTop;aW.style.left=parseInt(aW.style.left)-Math.round(bp.dx)+"px";aW.style.top=parseInt(aW.style.top)-Math.round(bp.dy)+"px";am.style.left=parseInt(am.style.left)-Math.round(bp.dx)+"px";am.style.top=parseInt(am.style.top)-Math.round(bp.dy)+"px";if(this.sLeft>0){this.insertLeft();this.stLeft-=256}if(this.sLeft<-256){this.insertRight();this.stLeft+=256}if(this.sTop>0){this.insertTop();this.stTop-=256}if(this.sTop<-256){this.insertBottom();this.stTop+=256}var bo,bm;var bh=VProjection.fromLatLngToPixel(this.getCenter(),this.getLevel());bo=bh.x+bp.dx;bm=bh.y+bp.dy;var bj=VProjection.fromPixelToLatLng(new VPoint(bo,bm),this.level);this.centerX=bj.longitude;this.centerY=bj.latitude;if(Math.abs(bp.dx)>=parseInt(this.lli1.offsetWidth)||Math.abs(bp.dy)>=parseInt(this.lli1.offsetHeight)){this.setCenter(new VLatLng(this.centerY,this.centerX),this.level)}this.fixOverView();this.redrawLines();if(this.lIjl&&this.isMarkerAutoPanning){setTimeout(function(){aG.l1I.panByMarker(bp)},1)}}function q(){this.draggable=true}function Y(){this.draggable=false}function B(){return this.draggable}function E(){this.bEnableInfoWindow=true}function Z(){this.bEnableInfoWindow=false}function ae(){return this.bEnableInfoWindow}function i(){this.dblClickZoomable=true}function J(){this.dblClickZoomable=false}function bd(){return this.dblClickZoomable}function ap(){this.lIii=true}function a1(){this.lIii=false}function K(){return this.lIii}function aN(){this.lIil=true}function a3(){this.lIil=false}function aC(){return this.lIil}function G(bh,bf){if(bh!=undefined){bh.initialize(this,bf);bh.arrIndex=this.nControls;this.arrControls[this.nControls]=bh;this.nControls++;var bg=document.getElementById(bh.id);if(bg!=null){bg.style.zIndex=ControlZIndex;bg.className="clickcontrol "+bg.className}if(bh.vType()=="VLargeMapControl"){this.redrawRuler()}else{if(bh.vType()=="VOverviewMapControl"){this.redrawOverviewMap()}}}}function e(bg){for(var bf=bg.arrIndex;bf<this.nControls-1;bf++){this.arrControls[bf]=this.arrControls[bf+1];this.arrControls[bf].arrIndex=this.arrControls[bf].arrIndex-1}this.nControls--;this.arrControls[this.nControls]=null;bg.remove()}function X(){for(var bf=0;bf<this.nControls;bf++){this.arrControls[bf].remove()}this.nControls=0}function ai(){return this.lli1}function aM(bf){bf.arrIndex=this.nMapTypes;this.arrMapTypes[this.nMapTypes]=bf;this.nMapTypes++}function aa(){}function m(bf){this.curMappingLayer=bf;if(bf!=null){this.initMap(false);this.setCenter(this.getCenter(),this.level,this.curMapType,true)}}function a5(){return this.lIIl}function aP(){return new VPoint(lIlj,lIl1)}function L(){return new VLatLng(this.centerY,this.centerX)}function aT(){var bg=this.fromContainerPixelToLatLng(new VPoint(0,0));var bf=this.fromContainerPixelToLatLng(new VPoint(this.lli1.offsetWidth,this.lli1.offsetHeight));return new VLatLngBounds(bg,bf)}function k(){var bg=this.fromContainerPixelToLatLng(new VPoint(-this.lli1.offsetWidth*2,-this.lli1.offsetHeight*2));var bf=this.fromContainerPixelToLatLng(new VPoint(this.lli1.offsetWidth*3,this.lli1.offsetHeight*3));return new VLatLngBounds(bg,bf)}function ad(bl){if(bl==null||bl==undefined){return 0}var bf=this.level;var bi=0;this.level=this.lliI-1;var bj=this.fromLatLngToContainerPixel(bl.nw);var bh=this.fromLatLngToContainerPixel(bl.se);var bg=parseInt(bh.x-bj.x);var bk=parseInt(bh.y-bj.y);if(bg/this.lli1.offsetWidth>bk/this.lli1.offsetHeight){if(bg/this.lli1.offsetWidth==1){bi=this.level}else{if(bg/this.lli1.offsetWidth>1){while(bg/this.lli1.offsetWidth>1){this.level--;if(this.level<0||this.level>this.lliI-1){break}bj=this.fromLatLngToContainerPixel(bl.nw);bh=this.fromLatLngToContainerPixel(bl.se);bg=parseInt(bh.x-bj.x)}bi=this.level}}}else{if(bk/this.lli1.offsetHeight==1){bi=this.level}else{if(bk/this.lli1.offsetHeight>1){while(bk/this.lli1.offsetHeight>1){this.level--;if(this.level<0||this.level>this.lliI-1){break}bj=this.fromLatLngToContainerPixel(bl.nw);bh=this.fromLatLngToContainerPixel(bl.se);bk=parseInt(bh.y-bj.y)}bi=this.level}}}this.level=bf;return bi}function bb(bs,bg){if(bg<0||bg>this.lliI-1){return null}var bi=VProjection.fromLatLngToPixel(bs,bg);var bp=bi.x;var bn=bi.y;var bh=parseInt((bn-parseFloat(parseInt(this.lli1.offsetHeight)/2))/256);var bj=parseInt((bp-parseFloat(parseInt(this.lli1.offsetWidth)/2))/256);var bl=-parseInt((bp-parseFloat(parseInt(this.lli1.offsetWidth)/2))%256);var bf=-parseInt((bn-parseFloat(parseInt(this.lli1.offsetHeight)/2))%256);if(bp<parseInt(this.lli1.offsetWidth)/2){bj--;bl-=256}if(bn<parseInt(this.lli1.offsetHeight)/2){bh--;bf-=256}var br=-this.lli1.offsetWidth*2+256*bj-bl;var bo=-this.lli1.offsetHeight*2+256*bh-bf;var bm=VProjection.fromPixelToLatLng(new VPoint(br,bo),bg);var bk=new VLatLng(bm.latitude,bm.longitude);br=this.lli1.offsetWidth*3+256*bj-bl;bo=this.lli1.offsetHeight*3+256*bh-bf;bm=VProjection.fromPixelToLatLng(new VPoint(br,bo),bg);var bq=new VLatLng(bm.latitude,bm.longitude);return new VLatLngBounds(bk,bq)}function o(){return new VSize(this.lli1.offsetWidth,this.lli1.offsetHeight)}function aU(){return this.level}function aj(){}function D(bf){}function a7(br,bf,by,bm){if(isValidKey==false){for(var bw=0;bw<this.l1j;bw++){for(var bv=0;bv<this.lIl;bv++){a.childNodes[0].childNodes[bw*this.lIl+bv].src=strResURL+"images/invalidkey.jpg"}}return}if(bf<0||bf>this.lliI-1){return}VUtil.RemoveDivElement("PopUp",this.id+"_path");this.centerX=br.longitude;this.centerY=br.latitude;var bo=this.level;if(this.level>bf){for(var bw=0;bw<this.l1j;bw++){for(var bv=0;bv<this.lIl;bv++){var bx=document.getElementById(this.id+"animation_"+bw+"_"+bv);
bx.style.height=0+"px";bx.style.width=0+"px"}}}this.level=bf;this.redrawRuler();if(by==undefined){by=this.curMapType}if(this.curMapType.arrIndex!=by.arrIndex){this.curMapType=by;this.initMap(false)}var bs,bq;var bt=VProjection.fromLatLngToPixel(this.getCenter(),this.getLevel());bs=bt.x;bq=bt.y;this.ji1=parseInt((bq-parseFloat(parseInt(this.lli1.offsetHeight)/2))/256);this.jji=parseInt((bs-parseFloat(parseInt(this.lli1.offsetWidth)/2))/256);var bi=-parseInt((bs-parseFloat(parseInt(this.lli1.offsetWidth)/2))%256);var bp=-parseInt((bq-parseFloat(parseInt(this.lli1.offsetHeight)/2))%256);if(bs<parseInt(this.lli1.offsetWidth)/2){this.jji--;bi=bi-256}if(bq<parseInt(this.lli1.offsetHeight)/2){this.ji1--;bp=bp-256}var bz=(this.curMappingLayer!=null)?this.curMappingLayer.mappedTileLayer:-1;var bh=null;var bn=null;var bA=this.curMapType.getTileLayers();var bB=null;for(var bu=0;bu<bA.length;bu++){var bl=bA[bu].liII;bl.style.left=bi+"px";bl.style.top=bp+"px";bh=new Array();bn=new Array();for(var bw=0;bw<this.l1j;bw++){for(var bv=0;bv<this.lIl;bv++){bB=bl.childNodes[0].childNodes[bw*this.lIl+bv];if(bm!=false){bB.src=vbdtempimage.src}else{bB.src=strResURL+"images/transparent.png"}bB.style.left=(256*bv)+"px";bB.style.top=(256*bw)+"px";bB.style.width="256px";bB.style.height="256px";bB.loaded=0;if((this.ji1+bw)>=0&&(this.ji1+bw)<Math.pow(2,this.level)){var bg=Math.pow(2,this.level);var bk=this.ji1+bw;var bj=this.jji+bv;bj=((bj%bg)+bg)%bg;if(bB.id!=null&&bB.id!=""){bB.id=bj+"_"+bk}bB.src=bA[bu].getTileUrl(new VPoint(bj,bk),this.level);if(bu==bz){bh[bh.length]=bB.id;bn[bn.length]=new VPoint(bj,bk)}}else{bB.src=strResURL+"images/whiteimage.png"}bB.onload=function(){this.loaded=1};bB.onerror=function(){this.src=strResURL+"images/sorry_noimage.jpg"}}}if(bu==bz){this.curMappingLayer.getMappingAreas(bh,bn,this.level)}}if(a4!=undefined){a4.style.left=bi+"px";a4.style.top=bp+"px"}this.redrawScaleCtrl();this.showOverlays();for(var bw=0;bw<this.li1;bw++){this.lil[bw].redraw(false)}this.redrawOverviewMap();if(!this.lIIl&&this.li1I!=undefined){this.li1I()}this.lIIl=true;if(this.lIj.isOpened()){this.lIj.redraw()}if(this.llil!=undefined&&!bm){this.llil()}if(this.l1ij!=undefined&&bo!=bf){this.l1ij(bo,bf)}if(!VUtil.isVBDWebsite()){initializeTimer()}}function ao(bg,bi){if(this.ll1I!=undefined){this.ll1I()}var bq=bg.width;var bp=bg.height;if(this.jIi<=0||Math.abs(bq)>=parseInt(this.lli1.offsetWidth)||Math.abs(bp)>=parseInt(this.lli1.offsetHeight)){this.lli1.dblRC="false";this.jIi=8;var bo,bn;var bh=VProjection.fromLatLngToPixel(this.getCenter(),this.getLevel());bo=bh.x+bq;bn=bh.y+bp;var bk=VProjection.fromPixelToLatLng(new VPoint(bo,bn),this.level);this.centerX=bk.longitude;this.centerY=bk.latitude;if(Math.abs(bq)>=parseInt(this.lli1.offsetWidth)||Math.abs(bp)>=parseInt(this.lli1.offsetHeight)){this.setCenter(new VLatLng(this.centerY,this.centerX),this.level)}else{this.updateMappingAreas()}this.redrawScaleCtrl();this.fixOverView();this.redrawLines();if(this.llil!=undefined){this.llil()}if(document.getElementById("VIWC")!=null){document.getElementById("VIWC").style.overflow="auto"}if(!VUtil.isVBDWebsite()){initializeTimer()}return}if(this.jIi==8){if(document.getElementById("VIWC")!=null){document.getElementById("VIWC").style.overflow="hidden"}if(this.ll11!=undefined&&(bg.width>0||bg.height>0)){this.ll11()}this.tLeft=parseInt(a.style.left);this.tTop=parseInt(a.style.top);this.sLeft=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);this.sTop=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top);this.stLeft=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);this.stTop=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)}this.jIi--;var bm=parseInt(a.style.left)-Math.round(bq/8)+"px";var bl=parseInt(a.style.top)-Math.round(bp/8)+"px";var bf=this.curMapType.getTileLayers();for(var bj=0;bj<bf.length;bj++){bf[bj].liII.style.left=bm;bf[bj].liII.style.top=bl}if(a4!=undefined){a4.style.left=bm;a4.style.top=bl}this.stLeft=this.stLeft-Math.round(bq/8);this.stTop=this.stTop-Math.round(bp/8);this.sLeft=-Math.round(bq/8)+this.stLeft;this.sTop=-Math.round(bp/8)+this.stTop;aW.style.left=parseInt(aW.style.left)-Math.round(bq/8)+"px";aW.style.top=parseInt(aW.style.top)-Math.round(bp/8)+"px";am.style.left=parseInt(am.style.left)-Math.round(bq/8)+"px";am.style.top=parseInt(am.style.top)-Math.round(bp/8)+"px";if(this.sLeft>0){this.insertLeft();this.stLeft-=256}if(this.sLeft<-256){this.insertRight();this.stLeft+=256}if(this.sTop>0){this.insertTop();this.stTop-=256}if(this.sTop<-256){this.insertBottom();this.stTop+=256}if((bi==undefined)||(bi!=undefined&&bi==true)){setTimeout(function(){aG.l1I.panBy(new VSize(bq,bp))},30)}}function aK(bj){var bh=this.fromLatLngToDivPixel(bj);var bi=this.fromLatLngToDivPixel(this.getCenter());var bg=bh.x-bi.x;var bf=bh.y-bi.y;this.panBy(new VSize(bg,bf))}function j(bg,bf){if(bg==-1){bg=-(this.lli1.offsetWidth/2)}else{if(bg==0){bg=0}else{if(bg==1){bg=this.lli1.offsetWidth/2}}}if(bf==-1){bf=-(this.lli1.offsetHeight/2)}else{if(bf==0){bf=0}else{if(bf==1){bf=this.lli1.offsetHeight/2}}}this.panBy(new VSize(bg,bf))}function x(){if(this.level==this.lliI-1){return}if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}var bf=this.curMapType.getTileLayers();for(var bh=0;bh<bf.length;bh++){for(var bk=0;bk<this.l1j;bk++){for(var bi=0;bi<this.lIl;bi++){var bl=bf[bh].liII.childNodes[0].childNodes[bk*this.lIl+bi];bl.src=strResURL+"images/whiteimage.png"}}}var bj=this.level+1;var bg=this.getCenter();var bm=this.getInfoWindow();if(bm.isOpened()){bg=this.getCenterForPreserveInfoWindow(this.level,bj)}this.setCenter(bg,bj)}function R(){if(this.level==0){return}if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}var bf=this.curMapType.getTileLayers();for(var bh=0;bh<bf.length;bh++){for(var bk=0;bk<this.l1j;bk++){for(var bi=0;bi<this.lIl;bi++){var bl=bf[bh].liII.childNodes[0].childNodes[bk*this.lIl+bi];bl.src=strResURL+"images/whiteimage.png"}}}var bj=this.level-1;var bg=this.getCenter();var bm=this.getInfoWindow();if(bm.isOpened()){bg=this.getCenterForPreserveInfoWindow(this.level,bj)}this.setCenter(bg,bj)}function aw(){var bf=this.curMapType.getTileLayers();for(var bg=0;bg<bf.length;bg++){for(var bi=0;bi<this.l1j;bi++){for(var bh=0;bh<this.lIl;bh++){var bj=bf[bg].liII.childNodes[0].childNodes[bi*this.lIl+bh];bj.src=strResURL+"images/whiteimage.png"}}}if(this.l1li!=null){this.l1li.fitMap()}else{this.setCenter(new VLatLng(14.102783,109.649506),0)}}function aA(bk){if(bk<0||bk>this.lliI-1){return}if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}var bf=this.curMapType.getTileLayers();for(var bg=0;bg<bf.length;bg++){for(var bi=0;bi<this.l1j;bi++){for(var bh=0;bh<this.lIl;bh++){var bj=bf[bg].liII.childNodes[0].childNodes[bi*this.lIl+bh];bj.src=strResURL+"images/whiteimage.png"}}}this.setCenter(new VLatLng(this.centerY,this.centerX),bk)}function ag(bw,bg,bo){if(bg<0||bg>this.lliI-1){return}if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}var bh=this.fromLatLngToDivPixel(bw);var bl=this.fromLatLngToDivPixel(this.getCenter());var bt=bh.x-bl.x;var br=bh.y-bl.y;var bq=this;if(Math.abs(bt)>=parseInt(this.lli1.offsetWidth)||Math.abs(br)>=parseInt(this.lli1.offsetHeight)){var bs=parseFloat(this.getCenter().longitude.toString());var bm=parseFloat(this.getCenter().longitude.toString());var bp=parseFloat(this.getCenter().latitude.toString());var bk=parseFloat(this.getCenter().latitude.toString());if(bs<bw.longitude){bs=bw.longitude}if(bm>bw.longitude){bm=bw.longitude}if(bp<bw.latitude){bp=bw.latitude}if(bk>bw.latitude){bk=bw.latitude}var bn=new VLatLng(parseFloat((bp+bk)/2),parseFloat((bs+bm)/2));var bx=VProjection.fromLatLngToPixel(new VLatLng(bp,bs),this.lliI-1);var bj=bx.x;var bi=bx.y;bx=VProjection.fromLatLngToPixel(new VLatLng(bk,bm),this.lliI-1);var bt=bx.x;var br=bx.y;var by=Math.abs((bj-bt)/this.lli1.offsetWidth)>Math.abs((bi-br)/this.lli1.offsetHeight)?Math.abs((bj-bt)/this.lli1.offsetWidth):Math.abs((bi-br)/this.lli1.offsetHeight);
var bu=0;for(bu=0;bu<this.lliI-1;bu++){if(Math.pow(2,bu)>by){break}}var bz=this.lliI-1-bu;if(bz>17){bz=17}if(bq.nZoomCount==0){bq.nZoomCount=Math.abs(bz-bq.level)*8;bq.iZoomStep=0}else{return}var bE=-1;var bf=bq.fromLatLngToContainerPixel(this.getCenter());bf.x=bf.x+bq.Left;bf.y=bf.y+bq.Top;bq.lli1.tX=0;bq.lli1.tY=0;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";am.style.width=parseInt(a.style.width)+"px";am.style.height=parseInt(a.style.height)+"px";for(var bB=0;bB<bq.l1j;bB++){for(var bA=0;bA<bq.lIl;bA++){var bC=a.childNodes[0].childNodes[bB*bq.lIl+bA];document.getElementById(bq.lli1.id+"animation_"+bB+"_"+bA).style.width=256+"px";document.getElementById(bq.lli1.id+"animation_"+bB+"_"+bA).style.height=256+"px";if(bC.loaded==1){document.getElementById(bq.lli1.id+"animation_"+bB+"_"+bA).src=bC.src}else{document.getElementById(bq.lli1.id+"animation_"+bB+"_"+bA).src=strResURL+"images/whiteimage.png"}bC.loaded=0;bC.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bv=bf.x-parseInt(am.style.left)-parseInt(aG.l1I.Left);var bD=bf.y-parseInt(am.style.top)-parseInt(aG.l1I.Top);aG.l1I.divisorX=bv/256;aG.l1I.divisorY=bD/256;bq.hideOverlays();VUtil.RemoveDivElement("PopUp",bq.id+"_path");bq.scrollWheelZoom(bE,bf.x,bf.y,function(){bq.panTo(bw);setTimeout(function(){if(bq.nZoomCount==0){bq.nZoomCount=Math.abs(bg-bq.level)*8;bq.iZoomStep=0}else{return}var bL=1;var bF=bq.fromLatLngToContainerPixel(bw);bF.x=bF.x+bq.Left;bF.y=bF.y+bq.Top;bq.lli1.tX=0;bq.lli1.tY=0;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";am.style.width=parseInt(a.style.width)+"px";am.style.height=parseInt(a.style.height)+"px";for(var bJ=0;bJ<bq.l1j;bJ++){for(var bG=0;bG<bq.lIl;bG++){var bK=a.childNodes[0].childNodes[bJ*bq.lIl+bG];document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).style.width=256+"px";document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).style.height=256+"px";if(bK.loaded==1){document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).src=bK.src}else{document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).src=strResURL+"images/whiteimage.png"}bK.loaded=0;bK.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bI=bF.x-parseInt(am.style.left)-parseInt(aG.l1I.Left);var bH=bF.y-parseInt(am.style.top)-parseInt(aG.l1I.Top);aG.l1I.divisorX=bI/256;aG.l1I.divisorY=bH/256;bq.hideOverlays();VUtil.RemoveDivElement("PopUp",bq.id+"_path");bq.scrollWheelZoom(bL,bF.x,bF.y,bo)},300)})}else{bq.panTo(bw);setTimeout(function(){if(bq.nZoomCount==0){bq.nZoomCount=Math.abs(bg-bq.level)*8;bq.iZoomStep=0}else{return}var bL=1;var bF=bq.fromLatLngToContainerPixel(bw);bF.x=bF.x+bq.Left;bF.y=bF.y+bq.Top;bq.lli1.tX=0;bq.lli1.tY=0;am.style.left=parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)+"px";am.style.top=parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)+"px";am.style.width=parseInt(a.style.width)+"px";am.style.height=parseInt(a.style.height)+"px";for(var bJ=0;bJ<bq.l1j;bJ++){for(var bG=0;bG<bq.lIl;bG++){var bK=a.childNodes[0].childNodes[bJ*bq.lIl+bG];document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).style.width=256+"px";document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).style.height=256+"px";if(bK.loaded==1){document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).src=bK.src}else{document.getElementById(bq.lli1.id+"animation_"+bJ+"_"+bG).src=strResURL+"images/whiteimage.png"}bK.loaded=0;bK.src=strResURL+"images/transparent.png"}}am.style.zIndex=MapAnimatingZIndex;var bI=bF.x-parseInt(am.style.left)-parseInt(aG.l1I.Left);var bH=bF.y-parseInt(am.style.top)-parseInt(aG.l1I.Top);aG.l1I.divisorX=bI/256;aG.l1I.divisorY=bH/256;bq.hideOverlays();VUtil.RemoveDivElement("PopUp",bq.id+"_path");bq.scrollWheelZoom(bL,bF.x,bF.y,bo)},300)}}function bc(){this.lII={point:this.getCenter(),level:this.getLevel()}}function aX(){if(this.lII!=null){this.setCenter(this.lII.point,this.lII.level)}}function aQ(){if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}if(this.li1==0){this.zoomFit();return}var bn=0;var bl=0;var bi=0;var bh=0;for(var bx=0;bx<this.li1;bx++){var bj=this.lil[bx].latlngs;var bk=new Array();if(bj.length==undefined){bk[0]=bj}else{if((this.lil[bx].vType()=="VPolyline"||this.lil[bx].vType()=="VPolygon"||this.lil[bx].vType()=="VArrow")&&this.lil[bx].isDirectionObj){for(var bw=0;bw<bj.length;bw++){for(var bu=0;bu<bj[bw].length;bu++){bk.push(bj[bw][bu])}}}else{bk=bj}}for(var bw=0;bw<bk.length;bw++){if(bn==0&&bl==0&&bi==0&&bh==0){bn=parseFloat(bk[bw].longitude.toString());bi=parseFloat(bk[bw].longitude.toString());bl=parseFloat(bk[bw].latitude.toString());bh=parseFloat(bk[bw].latitude.toString())}if(bn<parseFloat(bk[bw].longitude.toString())){bn=parseFloat(bk[bw].longitude.toString())}if(bi>parseFloat(bk[bw].longitude.toString())){bi=parseFloat(bk[bw].longitude.toString())}if(bl<parseFloat(bk[bw].latitude.toString())){bl=parseFloat(bk[bw].latitude.toString())}if(bh>parseFloat(bk[bw].latitude.toString())){bh=parseFloat(bk[bw].latitude.toString())}}}var bv=new VLatLng(parseFloat((bl+bh)/2),parseFloat((bn+bi)/2));var bq=new Array();bq[0]=bn;bq[1]=bl;var br=VProjection.fromLatLngToPixel(new VLatLng(bq[1],bq[0]),this.lliI-1);var bg=br.x;var bf=br.y;bq=new Array();bq[0]=bi;bq[1]=bh;br=VProjection.fromLatLngToPixel(new VLatLng(bq[1],bq[0]),this.lliI-1);var bo=br.x;var bm=br.y;var bs=Math.abs((bg-bo)/this.lli1.offsetWidth)>Math.abs((bf-bm)/this.lli1.offsetHeight)?Math.abs((bg-bo)/this.lli1.offsetWidth):Math.abs((bf-bm)/this.lli1.offsetHeight);var bp=0;for(bp=0;bp<this.lliI-1;bp++){if(Math.pow(2,bp)>bs){break}}var bt=this.lliI-1-bp;if(bt>17){bt=17}if(bt==this.level){this.panTo(bv)}else{this.setCenter(bv,bt)}}function aL(bp){if(this.zoomstartHandler!=undefined){this.zoomstartHandler()}if(bp==null||bp==undefined){return}if(bp.length==0){return}var bn=0;var bl=0;var bi=0;var bh=0;for(var by=0;by<bp.length;by++){var bj=bp[by].latlngs;var bk=new Array();if(bj.length==undefined){bk[0]=bj}else{if((bp[by].vType()=="VPolyline"||bp[by].vType()=="VPolygon"||bp[by].vType()=="VArrow")&&bp[by].isDirectionObj){for(var bx=0;bx<bj.length;bx++){for(var bv=0;bv<bj[bx].length;bv++){bk.push(bj[bx][bv])}}}else{bk=bj}}for(var bx=0;bx<bk.length;bx++){if(bn==0&&bl==0&&bi==0&&bh==0){bn=parseFloat(bk[bx].longitude.toString());bi=parseFloat(bk[bx].longitude.toString());bl=parseFloat(bk[bx].latitude.toString());bh=parseFloat(bk[bx].latitude.toString())}if(bn<parseFloat(bk[bx].longitude.toString())){bn=parseFloat(bk[bx].longitude.toString())}if(bi>parseFloat(bk[bx].longitude.toString())){bi=parseFloat(bk[bx].longitude.toString())}if(bl<parseFloat(bk[bx].latitude.toString())){bl=parseFloat(bk[bx].latitude.toString())}if(bh>parseFloat(bk[bx].latitude.toString())){bh=parseFloat(bk[bx].latitude.toString())}}}var bw=new VLatLng(parseFloat((bl+bh)/2),parseFloat((bn+bi)/2));var br=new Array();br[0]=bn;br[1]=bl;var bs=VProjection.fromLatLngToPixel(new VLatLng(br[1],br[0]),this.lliI-1);var bg=bs.x;var bf=bs.y;br=new Array();br[0]=bi;br[1]=bh;bs=VProjection.fromLatLngToPixel(new VLatLng(br[1],br[0]),this.lliI-1);var bo=bs.x;var bm=bs.y;var bt=Math.abs((bg-bo)/this.lli1.offsetWidth)>Math.abs((bf-bm)/this.lli1.offsetHeight)?Math.abs((bg-bo)/this.lli1.offsetWidth):Math.abs((bf-bm)/this.lli1.offsetHeight);var bq=0;for(bq=0;bq<this.lliI-1;bq++){if(Math.pow(2,bq)>bt){break}}var bu=this.lliI-1-bq;if(bu>17){bu=17}if(bu==this.level){this.panTo(bw)}else{this.setCenter(bw,bu)}}function av(bh,bf){if(aG.offsetWidth>2000||aG.offsetHeight>2000){l1jI=false;isValidKey=false;for(var bk=0;bk<this.l1j;bk++){for(var bi=0;bi<this.lIl;bi++){a.childNodes[0].childNodes[bk*this.lIl+bi].src=strResURL+"images/invalidkey.jpg"}}jII.disableAll();return}if(bh==undefined){bh=0}if(bf==undefined){bf=0
}this.calculatePosition();var bo,bn;if(bh==1){bo=(aG.offsetWidth-this.options.size.width)/2}else{bo=(this.options.size.width-aG.offsetWidth)/2}if(bf==1){bn=(aG.offsetHeight-this.options.size.height)/2}else{bn=(this.options.size.height-aG.offsetHeight)/2}var bm,bl;var bg=VProjection.fromLatLngToPixel(this.getCenter(),this.level);bm=bg.x+bo;bl=bg.y+bn;var bj=VProjection.fromPixelToLatLng(new VPoint(bm,bl),this.level);this.centerX=bj.longitude;this.centerY=bj.latitude;this.options=new VMapOptions(new VSize(aG.offsetWidth,aG.offsetHeight));this.initMap(false);this.setCenter(this.getCenter(),this.level,this.curMapType,true);for(var bk=0;bk<this.nControls;bk++){this.arrControls[bk].redraw()}}function F(bf){bf.initialize(this);bf.arrIndex=this.li1;this.lil[this.li1]=bf;this.li1++;if(this.lIj1!=undefined){this.lIj1(bf)}if(document.getElementById("MapBlowup")!=undefined&&this.lI1!=null){var bg=bf.copy();if(bg.vType()=="VMarker"){bg.lill.clickable=false;bg.lill.draggable=false;bg.lill.bouncy=false}this.lI1.addOverlay(bg)}}function a2(bf){for(var bh=bf.arrIndex;bh<this.li1-1;bh++){this.lil[bh]=this.lil[bh+1];this.lil[bh].arrIndex=this.lil[bh].arrIndex-1}this.li1--;this.lil[this.li1]=null;bf.remove();if(this.l1jl!=undefined){this.l1jl(bf)}if(document.getElementById("MapBlowup")!=undefined&&this.lI1!=null){var bg=document.getElementById("MapBlowup"+bf.id.substring(bf.id.indexOf("_")));this.lI1.removeOverlay(bg.llIl)}}function f(){this.I11=0;for(var bf=0;bf<this.li1;bf++){this.lil[bf].remove()}this.li1=0;if(this.li11!=undefined){this.li11()}if(document.getElementById("MapBlowup")!=undefined&&this.lI1!=null){this.lI1.clearOverlays()}}function a0(){return ax}function h(bf,bk,bj,bm){if(!this.bEnableInfoWindow){this.closeInfoWindow();return}if(bf==undefined){return}if(bk==undefined){bk=""}if(bj==undefined){bj=new VInfoWindowOptions()}var bi=new Array();bi.push(new VInfoWindowTab("",bk));var bl=this.getInfoWindow();if(bm==undefined){bl.openMk=null}else{bl.openMk=bm}var bg=bl.getInfoWindowSize(bk);bl.reset(bf,bi,bg,bj.offset,0);bl.options=(bj!=undefined)?bj:new VInfoWindowOptions();if(bj.maximizeWhenOpen){bl.sizeState="maximize"}bl.show();if(bj.autoPan){var bh=bl.getInfoWindowPan();this.panBy(bh)}}function aS(bn,bm,bf){if(!this.bEnableInfoWindow){this.closeInfoWindow();return}if(bn==undefined){return}if(bm==undefined){bm=new VInfoWindowTab()}if(bf==undefined){bf=new VInfoWindowOptions()}var bi=this.getInfoWindow();var bk=0,bl=0;for(var bj=0;bj<bm.length;bj++){if(bm[bj].content.length>bk){bk=bm[bj].content.length;bl=bj}}var bg=bi.getInfoWindowSize(bm[bl].content);bi.reset(bn,bm,bg,bf.offset,bf.selectedTab);bi.options=bf;bi.show();if(bf.autoPan){var bh=bi.getInfoWindowPan();this.panBy(bh)}}function t(bo,bf,bn){if(!this.bEnableInfoWindow){this.closeInfoWindow();return}if(bo==undefined){return}if(bf==undefined){bf=new VInfoWindowOptions()}bf.mapBlowup=true;if(bn==undefined||bn==""){bn="&nbsp;&nbsp;&nbsp;"}var bm=new Array();var bl='<br/><div id=MapBlowup style="width:180px; height:150px; position:relative; "></div>';bm.push(new VInfoWindowTab(bn,bl));var bj=this.getInfoWindow();var bg=bj.getInfoWindowSize(bl);bj.reset(bo,bm,bg,bf.offset,0);bj.options=bf;bj.show();var bp=document.getElementById("MapBlowup");var bq=new VMap(bp);bq.addControl(new VSmallZoomControl());for(var bk=0;bk<this.li1;bk++){var bh=this.lil[bk].copy();if(bh.vType()=="VMarker"){bh.lill.clickable=false;bh.lill.draggable=false;bh.lill.bouncy=false}bq.addOverlay(bh)}bq.setCenter(bo,bf.liil);bq.disableScrollWheelZoom();bj.redraw();if(bf.autoPan){var bi=bj.getInfoWindowPan();this.panBy(bi)}this.lI1=bq}function af(bj,bk){if(!this.bEnableInfoWindow){this.closeInfoWindow();return}var bl=this.getInfoWindow();var bi=0,bm=0;for(var bh=0;bh<bj.length;bh++){if(bj[bh].content.length>bi){bi=bj[bh].content.length;bm=bh}}var bf;if(bj[bm].label!=""){bf=bl.getInfoWindowSize(bj[bm].content)}else{bf=bl.getInfoWindowSize(bj[bm].content)}bl.reset(null,bj,bf,null,null);bl.show();if(bl.options.autoPan){var bg=bl.getInfoWindowPan();this.panBy(bg)}if(bk!=undefined){bk()}}function an(){var bf=this.getInfoWindow();bf.close()}function P(){return this.lIj}function n(bj){var bg=VProjection.fromLatLngToPixel(bj,this.getLevel());var bf=bg.x-256*this.jji+parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)-parseInt(aW.style.left);var bi=bg.y-256*this.ji1+parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)-parseInt(aW.style.top);var bh=new VPoint(bf,bi);return bh}function ac(bj){var bg=new VPoint(bj.longitude,bj.latitude);var bf=bg.x-256*this.jji+parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left)-parseInt(aW.style.left);var bi=bg.y-256*this.ji1+parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top)-parseInt(aW.style.top);var bh=new VPoint(bf,bi);return bh}function O(bj){var bg=VProjection.fromLatLngToPixel(bj,this.getLevel());var bf=bg.x-256*this.jji+parseInt(a.style.left)+parseInt(a.childNodes[0].childNodes[0].style.left);var bi=bg.y-256*this.ji1+parseInt(a.style.top)+parseInt(a.childNodes[0].childNodes[0].style.top);var bh=new VPoint(bf,bi);return bh}function aO(bg){var bf=bg.x+256*this.jji-parseInt(a.style.left)-parseInt(a.childNodes[0].childNodes[0].style.left)+parseInt(aW.style.left);var bl=bg.y+256*this.ji1-parseInt(a.style.top)-parseInt(a.childNodes[0].childNodes[0].style.top)+parseInt(aW.style.top);var bj=VProjection.fromPixelToLatLng(new VPoint(bf,bl),this.level);var bi=bj.longitude;var bh=bj.latitude;var bk=new VLatLng(bh,bi);return bk}function I(bg){var bf=bg.x+256*this.jji-parseInt(a.style.left)-parseInt(a.childNodes[0].childNodes[0].style.left);var bl=bg.y+256*this.ji1-parseInt(a.style.top)-parseInt(a.childNodes[0].childNodes[0].style.top);var bj=VProjection.fromPixelToLatLng(new VPoint(bf,bl),this.level);var bi=bj.longitude;var bh=bj.latitude;var bk=new VLatLng(bh,bi);return bk}function aR(bg){var bf=bg.x-parseInt(aW.style.left);var bi=bg.y-parseInt(aW.style.top);var bh=new VPoint(bf,bi);return bh}function u(bg){var bf=bg.x+parseInt(aW.style.left);var bi=bg.y+parseInt(aW.style.top);var bh=new VPoint(bf,bi);return bh}}function VMarker(w,f,i){if(w==undefined){return}if(f==undefined||f.liij!=undefined){this.latlngs=w;this.icon=(f==undefined)?new VIcon():f;this.inert=(i==undefined)?true:i;this.lill=new VMarkerOptions();this.lill.icon=this.icon;if(this.inert==true){this.lill.clickable=false;this.lill.draggable=false;this.lill.bouncy=false}}else{this.latlngs=w;this.lill=(f==undefined)?new VMarkerOptions():f;this.icon=this.lill.icon}this.bOpenedInfoWindow=false;this.borderStyle="";this.opacity=0;this.mappingDiv=null;this.initialize=a;this.redraw=b;this.remove=p;this.copy=L;this.createMarker=c;this.createMappingMarker=K;this.removeMappingMarker=H;this.updateZIndex=d;this.openInfoWindow=n;this.closeInfoWindow=z;this.openInfoWindowTabs=m;this.bindInfoWindow=u;this.bindInfoWindowTabs=B;this.showMapBlowup=l;this.setCustomMarker=e;this.getIcon=A;this.setIcon=C;this.getTitle=r;this.getPoint=t;this.getLatLng=v;this.setPoint=q;this.setLatLng=y;this.enableDragging=J;this.disableDragging=o;this.draggable=I;this.setImage=M;this.hide=F;this.show=x;this.hideText=D;this.showText=k;this.isHidden=g;this.active=G;this.unactive=h;this.isActive=E;this.vType=s;if(typeof this.latlngs=="string"){var j=this.latlngs.split(",");this.latlngs=new VLatLng(j[1],j[0])}if(this.latlngs.latitude>180||this.latlngs.longitude>180){this.latlngs=VProjection.fromPixelToLatLng(new VPoint(this.latlngs.longitude,this.latlngs.latitude),12)}function a(N){if(this.latlngs==null){return}if(this.latlngs.latitude==undefined){this.latlngs=VProjection.fromPixelToLatLng(this.latlngs,N.level)}this.createMarker(N,null)}function b(){var P=document.getElementById(this.id);if(P==undefined){return}var Q=document.getElementById(this.l1lI.id+"_path");var N=document.getElementById(this.l1lI.id+"_inner");var O;O=this.l1lI.fromLatLngToDivPixel(this.latlngs);P.style.left=O.x-this.lill.offset.width+"px";P.style.top=O.y-this.lill.offset.height+"px";
this.createMappingMarker()}function p(){var N=document.getElementById(this.id);if(this.bOpenedInfoWindow){this.closeInfoWindow()}if(N.lili!=null){N.lili()}this.liII.parentNode.removeChild(this.liII);this.removeMappingMarker()}function L(){return new VMarker(this.latlngs,this.lill)}function c(N,O){var Y=document.getElementById(N.id+"_path");var W;if(O==null){W=document.getElementById(N.id+"_Marker_"+N.I11)}else{W=document.getElementById(O)}if(W==null&&O==null){W=document.createElement("div");W.id=N.id+"_Marker_"+N.I11;var Q=(this.lill.zIndexProcess!=null)?this.lill.zIndexProcess():1;W.style.zIndex=Q;W.style.MozUserSelect="none";if(this.lill.draggable){W.className="dragmarker"}else{W.className="clickmarker"}W.llIl=this;this.id=N.id+"_Marker_"+N.I11;N.I11++;Y.childNodes[0].appendChild(W);if(this.borderStyle!=""){W.style.border=this.borderStyle}if(this.opacity>0){W.style.filter="alpha(opacity = "+this.opacity+")";W.style.opacity=this.opacity/100}}if(W.childNodes[0]==null||(this.lill.customMarker!=undefined&&this.lill.customMarker!="")){var S="";if(this.lill.customMarker==undefined||this.lill.customMarker==""){if(this.icon.iconSize==null){S+="<img id='"+this.id+"_Img' style='cursor:pointer' src="+this.icon.image+" title='"+this.lill.title+"' />"}else{S+="<img id='"+this.id+"_Img' style='cursor:pointer' src="+this.icon.image+" width="+this.icon.iconSize.width+"px height="+this.icon.iconSize.height+"px title='"+this.lill.title+"' />"}}else{S+=this.lill.customMarker}if(this.lill.nText>0){for(var R=0;R<this.lill.nText;R++){S+="<table><tr><td id='"+this.id+"_Text"+R+"' nowrap style='position:absolute; cursor:pointer; font-size:"+this.lill.textStyle[R].fontSize+"px; font-weight:"+this.lill.textStyle[R].fontWeight+"; color:"+this.lill.textStyle[R].color+"; font-family:"+this.lill.textStyle[R].fontFamily+";'>"+this.lill.iji[R]+"</td></tr></table>"}}W.innerHTML=S;if(this.lill.customMarker!=undefined||this.lill.customMarker!=""){var U=W.childNodes[0];U.id=this.id+"_Img";U.style.cursor="pointer";U.title=this.lill.title}}else{var U=W.childNodes[0];if(this.icon.iconSize==null){U.src=this.icon.image}else{U.src=this.icon.image;U.width=this.icon.iconSize.width;U.height=this.icon.iconSize.height}}W.style.position="absolute";W.draggable=(this.lill.draggable==true)?1:0;W.autoPan=this.lill.autoPan;var P=N.fromLatLngToDivPixel(this.latlngs);if(this.icon.iconSize==null){this.icon.iconSize=new VSize(W.offsetWidth,W.offsetHeight)}if(this.lill.offset==null){this.lill.offset=new VSize(this.icon.iconSize.width/2,this.icon.iconSize.height)}W.style.left=P.x-this.lill.offset.width+"px";W.style.top=P.y-this.lill.offset.height+"px";W.style.width=this.icon.iconSize.width+"px";W.style.height=this.icon.iconSize.height+"px";if(this.lill.nText>0){var U=document.getElementById(this.id+"_Img");for(var R=0;R<this.lill.nText;R++){var T=document.getElementById(this.id+"_Text"+R);if(this.lill.textPosition[R].anchor==V_ANCHOR_TOP_RIGHT){T.style.left=U.offsetWidth+this.lill.textPosition[R].offset.width+"px";T.style.top=-T.offsetHeight-this.lill.textPosition[R].offset.height+"px"}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_CENTER_RIGHT){T.style.left=U.offsetWidth+this.lill.textPosition[R].offset.width+"px";if(T.offsetHeight>U.offsetHeight){var V=(T.offsetHeight-U.offsetHeight)/2;T.style.top=this.lill.textPosition[R].offset.height-V+"px"}else{if(T.offsetHeight<U.offsetHeight){var V=(U.offsetHeight-T.offsetHeight)/2;T.style.top=this.lill.textPosition[R].offset.height+V+"px"}else{T.style.top=this.lill.textPosition[R].offset.height+"px"}}}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_BOTTOM_RIGHT){T.style.left=U.offsetWidth+this.lill.textPosition[R].offset.width+"px";T.style.top=U.offsetHeight+this.lill.textPosition[R].offset.height+"px"}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_BOTTOM_CENTER){if(T.offsetWidth>U.offsetWidth){var X=(T.offsetWidth-U.offsetWidth)/2;T.style.left=this.lill.textPosition[R].offset.width-X+"px"}else{if(T.offsetWidth<U.offsetWidth){var X=(U.offsetWidth-T.offsetWidth)/2;T.style.left=this.lill.textPosition[R].offset.width+X+"px"}else{T.style.left=this.lill.textPosition[R].offset.width+"px"}}T.style.top=U.offsetHeight+this.lill.textPosition[R].offset.height+"px"}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_CENTER_CENTER){if(T.offsetWidth>U.offsetWidth){var X=(T.offsetWidth-U.offsetWidth)/2;T.style.left=this.lill.textPosition[R].offset.width-X+"px"}else{if(T.offsetWidth<U.offsetWidth){var X=(U.offsetWidth-T.offsetWidth)/2;T.style.left=this.lill.textPosition[R].offset.width+X+"px"}else{T.style.left=this.lill.textPosition[R].offset.width+"px"}}if(T.offsetHeight>U.offsetHeight){var V=(T.offsetHeight-U.offsetHeight)/2;T.style.top=this.lill.textPosition[R].offset.height-V+"px"}else{if(T.offsetHeight<U.offsetHeight){var V=(U.offsetHeight-T.offsetHeight)/2;T.style.top=this.lill.textPosition[R].offset.height+V+"px"}else{T.style.top=this.lill.textPosition[R].offset.height+"px"}}}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_TOP_CENTER){if(T.offsetWidth>U.offsetWidth){var X=(T.offsetWidth-U.offsetWidth)/2;T.style.left=this.lill.textPosition[R].offset.width-X+"px"}else{if(T.offsetWidth<U.offsetWidth){var X=(U.offsetWidth-T.offsetWidth)/2;T.style.left=this.lill.textPosition[R].offset.width+X+"px"}else{T.style.left=this.lill.textPosition[R].offset.width+"px"}}T.style.top=-T.offsetHeight-this.lill.textPosition[R].offset.height+"px"}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_TOP_LEFT){T.style.left=-T.offsetWidth-this.lill.textPosition[R].offset.width+"px";T.style.top=-T.offsetHeight-this.lill.textPosition[R].offset.height+"px"}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_CENTER_LEFT){T.style.left=-T.offsetWidth-this.lill.textPosition[R].offset.width+"px";if(T.offsetHeight>U.offsetHeight){var V=(T.offsetHeight-U.offsetHeight)/2;T.style.top=this.lill.textPosition[R].offset.height-V+"px"}else{if(T.offsetHeight<U.offsetHeight){var V=(U.offsetHeight-T.offsetHeight)/2;T.style.top=this.lill.textPosition[R].offset.height+V+"px"}else{T.style.top=this.lill.textPosition[R].offset.height+"px"}}}else{if(this.lill.textPosition[R].anchor==V_ANCHOR_BOTTOM_LEFT){T.style.left=-T.offsetWidth-this.lill.textPosition[R].offset.width+"px";T.style.top=U.offsetHeight+this.lill.textPosition[R].offset.height+"px"}}}}}}}}}}}this.l1lI=N;this.liII=W;if(O==null){this.createMappingMarker()}}function K(){if(this.l1lI.lIj.isOpened()){if(VUtil.isInsidePolygon(this.latlngs,this.l1lI.lIj.mappingLLs)){var Q=document.getElementById(this.l1lI.id+"_path");if(this.mappingDiv==null){this.mappingDiv=document.createElement("div");this.mappingDiv.style.zIndex=ObjBelowShadeZIndex;this.mappingDiv.style.MozUserSelect="none";this.mappingDiv.className="dragmarker";this.mappingDiv.llIl=this;Q.childNodes[3].appendChild(this.mappingDiv);if(this.sHandler!=null){var P=this;for(var N=0;N<this.sHandler.length;N++){VEvent.addDOMListener(this.mappingDiv,this.svEvent[N],function(W){var U=new VPoint(lIlj-P.l1lI.Left,lIl1-P.map_Top);var S=P.l1lI.fromContainerPixelToLatLng(U);var T=(browserName=="msie")?event.type:W.type;var V=0;while(V<P.svEvent.length&&P.svEvent[V]!=T){V++}P.sHandler[V](P,S)})}}}var R="<img style='cursor:pointer' src='"+strResURL+"images/transparent.png' width="+this.icon.iconSize.width+"px height="+this.icon.iconSize.height+"px title='"+this.lill.title+"' />";this.mappingDiv.innerHTML=R;this.mappingDiv.style.position="absolute";var O=this.l1lI.fromLatLngToDivPixel(this.latlngs);this.mappingDiv.style.left=O.x-this.lill.offset.width+"px";this.mappingDiv.style.top=O.y-this.lill.offset.height+"px";this.mappingDiv.style.width=this.icon.iconSize.width+"px";this.mappingDiv.style.height=this.icon.iconSize.height+"px"}}}function H(){var N=document.getElementById(this.l1lI.id+"_path");if(this.mappingDiv!=null){N.childNodes[3].removeChild(this.mappingDiv)}this.mappingDiv=null}function d(){var N=(this.lill.zIndexProcess!=null)?this.lill.zIndexProcess():1;this.liII.style.zIndex=N}function n(P,O){this.bOpenedInfoWindow=true;
var N=document.getElementById(this.id);if(N.lIjj!=null){N.lIjj()}if(this.l1lI.ll11!=undefined){this.l1lI.ll11()}if(O==undefined){O=new VInfoWindowOptions();O.offset=new VSize(0,-(this.icon.iconSize.height*5/6))}this.updateZIndex();this.l1lI.openInfoWindow(this.latlngs,P,O,this)}function z(){this.bOpenedInfoWindow=false;var N=document.getElementById(this.id);if(N.lil1!=null){N.lil1()}this.l1lI.closeInfoWindow();if(N.lilI!=null){N.lilI()}}function m(O,P){this.bOpenedInfoWindow=true;var N=document.getElementById(this.id);if(N.lIjj!=null){N.lIjj()}if(P==undefined){P=new VInfoWindowOptions();P.offset=new VSize(0,-(this.icon.iconSize.height*5/6))}this.l1lI.openInfoWindowTabs(this.latlngs,O,P)}function u(P,O){if(this.lill.clickable==false){return}if(P==""){this.closeInfoWindow();var N=document.getElementById(this.id);N.onclick=null}else{var N=document.getElementById(this.id);if(O==undefined){O=new VInfoWindowOptions();O.offset=new VSize(0,-(this.icon.iconSize.height*5/6))}var Q=this;N.onclick=function(){this.bOpenedInfoWindow=true;if(this.ll1j==true){this.ll1j=false;return}Q.openInfoWindow(P,O)}}}function B(O,P){if(this.lill.clickable==false){return}if(O==undefined||O==null){this.closeInfoWindow();var N=document.getElementById(this.id);N.onclick=null}else{var N=document.getElementById(this.id);if(P==undefined){P=new VInfoWindowOptions();P.offset=new VSize(0,-(this.icon.iconSize.height*5/6))}var Q=this;N.onclick=function(){this.bOpenedInfoWindow=true;if(this.ll1j==true){this.ll1j=false;return}Q.openInfoWindowTabs(O,P)}}}function l(O){this.bOpenedInfoWindow=true;var N=document.getElementById(this.id);if(N.lIjj!=null){N.lIjj()}if(this.l1lI.ll11!=undefined){this.l1lI.ll11()}if(O==undefined){O=new VInfoWindowOptions();O.offset=new VSize(0,-(this.icon.iconSize.height*5/6))}this.l1lI.showMapBlowup(this.latlngs,O)}function e(N){this.lill.customMarker=N;this.createMarker(this.l1lI,this.id)}function A(){return this.icon}function C(N){this.icon=(N==undefined)?new VIcon():N;this.lill.icon=this.icon;this.createMarker(this.l1lI,this.id)}function r(){return this.lill.title}function t(){return this.latlngs}function v(){return this.latlngs}function q(N){this.latlngs=N;var O=document.getElementById(this.id);this.redraw()}function y(N){this.latlngs=N.copy()}function J(){this.lill.draggable=true;if(this.liII!=null&&this.liII!=undefined){this.liII.className="dragmarker"}if(document.getElementById(this.id)!=undefined){document.getElementById(this.id).draggable=1}}function o(){this.lill.draggable=false;if(this.liII!=null&&this.liII!=undefined){this.liII.className="clickmarker"}if(document.getElementById(this.id)!=undefined){document.getElementById(this.id).draggable=0}}function I(){return this.lill.draggable}function M(N){}function F(){var N=document.getElementById(this.id);if(N.liI1!=null){N.liI1(false)}this.liII.style.visibility="hidden"}function x(){var N=document.getElementById(this.id);if(N.liI1!=null){N.liI1(true)}this.liII.style.visibility="visible"}function D(O){var N=document.getElementById(this.id+"_Text"+O);if(N!=null){N.style.visibility="hidden"}}function k(O){var N=document.getElementById(this.id+"_Text"+O);if(N!=null){N.style.visibility="visible"}}function g(){if(this.liII.style.visibility=="hidden"){return true}return false}function G(){this.liII.style.zIndex=parseInt(this.liII.style.zIndex)+1}function h(){this.liII.style.zIndex=parseInt(this.liII.style.zIndex)-1}function E(){return(this.liII.style.zIndex==MarkerActiveZIndex)}function s(){return"VMarker"}}VMarker.prototype=new VOverlay();function VOverviewMapControl(f,l){this.printable=(f!=undefined)?f:false;this.lii1=(l!=undefined)?l:false;this.tmr=null;this.initialize=a;this.redraw=k;this.remove=b;this.getDefaultPosition=d;this.onOffOverviewMap=j;this.onMap=h;this.offMap=e;this.hide=c;this.show=i;this.vType=g;function a(m,t){if(isValidKey==false){return}if(t==undefined){t=new VControlPosition(V_ANCHOR_BOTTOM_RIGHT)}var u="";u+="<div id='"+m.id+"_VOverviewBound' class='VOverviewBound' style='height:123px; width:143px; position:absolute; overflow:hidden; '>";u+="<div id='"+m.id+'_VOverviewBox\' class=overviewmap style="LEFT: -256px; WIDTH: 568px; POSITION: absolute; TOP: -256px; HEIGHT: 568px;BACKGROUND-COLOR:white; overflow:hidden; " >';u+="<table id='"+m.id+"_VOverviewTable' height=512px cellspacing=0 cellpadding=0 width=512px border=0>";u+="<thead><tr><th></th><th></th></tr></thead><tbody>";u+="<tr>";u+="<td><img src='"+strResURL+"images/whiteimage.png' id=s_0_0 height=256px ismap width=256px /></td>";u+="<td><img src='"+strResURL+"images/whiteimage.png' id=s_0_1 height=256px ismap width=256px /></td>";u+="</tr>";u+="<tr>";u+="<td><img src='"+strResURL+"images/whiteimage.png' id=s_1_0 height=256px ismap width=256px /></td>";u+="<td><img src='"+strResURL+"images/whiteimage.png' id=s_1_1 height=256px ismap width=256px /></td>";u+="</tr>";u+="</tbody>";u+="</table>";u+="</div>";u+="<div id='"+m.id+"_VCenterRect' style=\"opacity: 0.5;BORDER-RIGHT: #0066cc 2px double; BORDER-TOP: #0066cc 2px double; FILTER: alpha(opacity = 50); LEFT: 50px; BACKGROUND-IMAGE: url('"+strResURL+"images/sm_trans.gif'); BORDER-LEFT: #0066cc 2px double; WIDTH: 50px; BORDER-BOTTOM: #0066cc 2px double; POSITION: absolute; TOP: 50px; HEIGHT: 30px; BACKGROUND-COLOR: #d5f2ff; -moz-opacity: 0.5\"></div>";u+="<div class=dragoverview id='"+m.id+"_VOverviewRect' style=\"opacity: 0.2;BORDER-RIGHT: #0066cc 2px double; BORDER-TOP: #0066cc 2px double; FILTER: alpha(opacity = 20); LEFT: 50px; BACKGROUND-IMAGE: url('"+strResURL+"images/sm_trans.gif'); BORDER-LEFT: #0066cc 2px double; WIDTH: 50px; BORDER-BOTTOM: #0066cc 2px double; POSITION: absolute; TOP: 50px; HEIGHT: 30px; BACKGROUND-COLOR: transparent; -moz-opacity: 0.2\"></div>";u+="<div id='"+m.id+"_VBtnOnOffOverviewMap' title='B&#7853;t/T&#7855;t b&#7843;n &#273;&#7891; nh&#7887;' style='LEFT: 1001px; OVERFLOW: hidden; CURSOR: pointer; POSITION: absolute; TOP: 574px; BACKGROUND-COLOR: white' align='left'><a id='"+m.id+"_VImgOnOff' class='clickcontrol MiniMapBut1'/></DIV>";u+="</div>";this.id=m.id+"_VOverviewMapControl";var r;if(browserName=="msie"){r=VUtil.CreateDivElement(m.id+"_VOverviewMapControl",0,0,149,129,"absolute","hidden",u)}else{r=VUtil.CreateDivElement(m.id+"_VOverviewMapControl",0,0,151,131,"absolute","hidden",u)}r.style.zIndex=ControlZIndex;r.position=t;r.style.MozUserSelect="none";r.className="VOverviewMapControl";m.lli1.appendChild(r);r.llIl=this;this.strControlStyleM="#0072cc 1px solid";this.strControlStyleB=m.lli1.style.borderWidth+" "+document.bgColor+" solid";var s=document.getElementById(m.id+"_VOverviewBound");var n=document.getElementById(m.id+"_VBtnOnOffOverviewMap");var o=document.getElementById(m.id+"_VImgOnOff");var v=this;n.onclick=function(){v.onOffOverviewMap()};if(t.anchor==V_ANCHOR_TOP_RIGHT){if(browserName=="msie"){r.style.left=parseInt(m.lli1.offsetWidth)-t.offset.width-150+"px";r.style.top=t.offset.height+"px"}else{r.style.height="130px";r.style.left=parseInt(m.lli1.offsetWidth)-t.offset.width-152+"px";r.style.top=t.offset.height+"px"}r.style.borderLeft=this.strControlStyleM;r.style.borderBottom=this.strControlStyleM;r.style.borderRight=this.strControlStyleB;r.style.borderTop=this.strControlStyleB;s.style.marginLeft="5px";if(browserName=="msie"){n.style.left=122+"px";n.style.top=0+"px"}else{n.style.left=124+"px";n.style.top=0+"px"}r.className="VOverviewMapControl MiniMapBorderTopRight";o.className="clickcontrol MiniMapBut3";if(t.offset.width>0){r.style.borderRight=this.strControlStyleM;r.style.width="155px"}if(t.offset.height>0){r.style.borderTop=this.strControlStyleM;r.style.height="135px";s.style.marginTop="5px"}}else{if(t.anchor==V_ANCHOR_TOP_LEFT){if(browserName=="msie"){r.style.left=t.offset.width+"px";r.style.top=t.offset.height+"px"}else{r.style.left=t.offset.width+"px";r.style.top=t.offset.height+"px"}r.style.borderRight=this.strControlStyleM;r.style.borderBottom=this.strControlStyleM;r.style.borderLeft=this.strControlStyleB;r.style.borderTop=this.strControlStyleB;
n.style.left=0+"px";n.style.top=0+"px";r.className="VOverviewMapControl MiniMapBorderTopLeft";o.className="clickcontrol MiniMapBut2";if(t.offset.width>0){r.style.borderLeft=this.strControlStyleM;r.style.width="155px";s.style.marginLeft="5px"}if(t.offset.height>0){r.style.borderTop=this.strControlStyleM;r.style.height="135px";s.style.marginTop="5px"}}else{if(t.anchor==V_ANCHOR_BOTTOM_RIGHT){if(browserName=="msie"){r.style.left=parseInt(m.lli1.offsetWidth)-t.offset.width-150+"px";r.style.top=parseInt(m.lli1.offsetHeight)-t.offset.height-130+"px"}else{r.style.left=parseInt(m.lli1.offsetWidth)-t.offset.width-152+"px";r.style.top=parseInt(m.lli1.offsetHeight)-t.offset.height-132+"px"}r.style.borderLeft=this.strControlStyleM;r.style.borderTop=this.strControlStyleM;s.style.marginTop="5px";s.style.marginLeft="5px";if(browserName=="msie"){n.style.left=122+"px";n.style.top=102+"px"}else{n.style.left=124+"px";n.style.top=104+"px"}r.className="VOverviewMapControl MiniMapBorderBottomRight";o.className="clickcontrol MiniMapBut1";if(t.offset.width>0){r.style.borderRight=this.strControlStyleM;r.style.width="155px"}if(t.offset.height>0){r.style.borderBottom=this.strControlStyleM;r.style.height="135px"}}else{if(t.anchor==V_ANCHOR_BOTTOM_LEFT){if(browserName=="msie"){r.style.left=t.offset.width+"px";r.style.top=parseInt(m.lli1.offsetHeight)-t.offset.height-173+"px"}else{r.style.left=t.offset.width+"px";r.style.top=parseInt(m.lli1.offsetHeight)-t.offset.height-175+"px"}r.style.borderTop=this.strControlStyleM;r.style.borderRight=this.strControlStyleM;r.style.borderBottom=this.strControlStyleM;r.style.borderLeft=this.strControlStyleB;s.style.marginTop="5px";n.style.left=0+"px";if(browserName=="msie"){n.style.top=102+"px"}else{n.style.top=104+"px"}r.style.height="135px";r.className="VOverviewMapControl MiniMapBorderBottomLeft";o.className="clickcontrol MiniMapBut4";if(t.offset.width>0){r.style.borderLeft=this.strControlStyleM;r.style.width="155px";s.style.marginLeft="5px"}}}}}this.OverviewMapFlag=1;for(var q=0;q<2;q++){for(var p=0;p<2;p++){document.getElementById("s_"+q+"_"+p).id=m.id+"s_"+q+"_"+p}}this.l1lI=m;this.liII=r;this.position=t}function k(){if(isValidKey==false){return}if(this.position.anchor==V_ANCHOR_TOP_RIGHT){if(this.OverviewMapFlag==1){if(browserName=="msie"){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-150+"px";this.liII.style.top=this.position.offset.height+"px"}else{this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-152+"px";this.liII.style.top=this.position.offset.height+"px"}}else{this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-20+"px";if(this.position.offset.height>0){this.liII.style.top=this.position.offset.height+6+"px"}else{this.liII.style.top=this.position.offset.height+"px"}}}else{if(this.position.anchor==V_ANCHOR_TOP_LEFT){if(this.OverviewMapFlag==1){if(browserName=="msie"){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=this.position.offset.height+"px"}else{this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=this.position.offset.height+"px"}}else{if(this.position.offset.width>0){this.liII.style.left=this.position.offset.width+6+"px"}else{this.liII.style.left=this.position.offset.width+"px"}if(this.position.offset.height>0){this.liII.style.top=this.position.offset.height+6+"px"}else{this.liII.style.top=this.position.offset.height+"px"}}}else{if(this.position.anchor==V_ANCHOR_BOTTOM_RIGHT){if(this.OverviewMapFlag==1){if(browserName=="msie"){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-150+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-130+"px"}else{this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-152+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-132+"px"}}else{this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-20+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-20+"px"}}else{if(this.position.anchor==V_ANCHOR_BOTTOM_LEFT){if(this.OverviewMapFlag==1){if(browserName=="msie"){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-173+"px"}else{this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-175+"px"}}else{if(this.position.offset.width>0){this.liII.style.left=this.position.offset.width+6+"px"}else{this.liII.style.left=this.position.offset.width+"px"}}}}}}}function b(){VUtil.RemoveDivElement(this.id,this.l1lI.lli1.id)}function d(){var m=new VControlPosition(V_ANCHOR_BOTTOM_RIGHT,new VSize(0,0));return m}function j(m){if(m==undefined){m=true}if(this.OverviewMapFlag==1){this.offMap(this.id,this.l1lI.id,m)}else{this.onMap(this.id,this.l1lI.id,m)}}function e(t,q,o){var s=document.getElementById(q);var n=document.getElementById(t);var m=document.getElementById(q+"_VOverviewBound");var r=document.getElementById(q+"_VBtnOnOffOverviewMap");var p=document.getElementById(q+"_VImgOnOff");if(parseInt(n.style.width)>26&&parseInt(n.style.height)>26&&o==true){n.style.width=parseInt(n.style.width)-10+"px";n.style.height=parseInt(n.style.height)-10+"px";if(n.position.anchor==V_ANCHOR_TOP_RIGHT){n.style.left=parseInt(n.style.left)+10+"px";n.style.top=parseInt(n.style.top)-10+"px"}else{if(n.position.anchor==V_ANCHOR_TOP_LEFT){n.style.left=parseInt(n.style.left)-10+"px";n.style.top=parseInt(n.style.top)-10+"px"}else{if(n.position.anchor==V_ANCHOR_BOTTOM_RIGHT){n.style.left=parseInt(n.style.left)+10+"px";n.style.top=parseInt(n.style.top)+10+"px"}else{if(n.position.anchor==V_ANCHOR_BOTTOM_LEFT){n.style.left=parseInt(n.style.left)-10+"px";n.style.top=parseInt(n.style.top)+10+"px"}}}}if(this.tmr!=null){clearTimeout(this.tmr)}this.tmr=setTimeout(function(){n.llIl.offMap(t,q,o)},1)}else{this.OverviewMapFlag=0;n.style.borderWidth=0+"px";n.style.width=20+"px";n.style.height=20+"px";m.style.borderWidth=0+"px";m.style.width=20+"px";m.style.height=20+"px";m.style.marginLeft="0px";m.style.marginTop="0px";m.style.marginRight="0px";m.style.marginBottom="0px";r.style.left=0+"px";r.style.top=0+"px";if(n.position.anchor==V_ANCHOR_TOP_RIGHT){n.style.left=parseInt(s.offsetWidth)-n.position.offset.width-20+"px";if(n.position.offset.height>0){n.style.top=n.position.offset.height+6+"px"}else{n.style.top=n.position.offset.height+"px"}p.className="clickcontrol MiniMapBut4"}else{if(n.position.anchor==V_ANCHOR_TOP_LEFT){if(n.position.offset.width>0){n.style.left=n.position.offset.width+6+"px"}else{n.style.left=n.position.offset.width+"px"}if(n.position.offset.height>0){n.style.top=n.position.offset.height+6+"px"}else{n.style.top=n.position.offset.height+"px"}p.className="clickcontrol MiniMapBut1"}else{if(n.position.anchor==V_ANCHOR_BOTTOM_RIGHT){n.style.left=parseInt(s.offsetWidth)-n.position.offset.width-20+"px";n.style.top=parseInt(s.offsetHeight)-n.position.offset.height-20+"px";p.className="clickcontrol MiniMapBut2"}else{if(n.position.anchor==V_ANCHOR_BOTTOM_LEFT){if(n.position.offset.width>0){n.style.left=n.position.offset.width+6+"px"}else{n.style.left=n.position.offset.width+"px"}n.style.top=parseInt(s.offsetHeight)-n.position.offset.height-59+"px";p.className="clickcontrol MiniMapBut3"}}}}if(this.tmr!=null){clearTimeout(this.tmr)}}}function h(t,q,o){var s=document.getElementById(q);var n=document.getElementById(t);var m=document.getElementById(q+"_VOverviewBound");var r=document.getElementById(q+"_VBtnOnOffOverviewMap");var p=document.getElementById(q+"_VImgOnOff");if(parseInt(n.style.width)<123&&parseInt(n.style.height)<113){n.style.width=parseInt(n.style.width)+10+"px";n.style.height=parseInt(n.style.height)+10+"px";m.style.width=parseInt(m.style.width)+10+"px";m.style.height=parseInt(m.style.height)+10+"px";if(n.position.anchor==V_ANCHOR_TOP_RIGHT){n.style.left=parseInt(n.style.left)-10+"px"
}else{if(n.position.anchor==V_ANCHOR_BOTTOM_RIGHT){n.style.left=parseInt(n.style.left)-10+"px";n.style.top=parseInt(n.style.top)-10+"px"}else{if(n.position.anchor==V_ANCHOR_BOTTOM_LEFT){n.style.top=parseInt(n.style.top)-10+"px"}}}if(this.tmr!=null){clearTimeout(this.tmr)}this.tmr=setTimeout(function(){n.llIl.onMap(t,q,o)},1)}else{this.OverviewMapFlag=1;if(browserName=="msie"){n.style.width="149px";n.style.height="129px"}else{n.style.width="151px";n.style.height="131px"}m.style.border=this.strControlStyleM;m.style.width="143px";m.style.height="123px";if(n.position.anchor==V_ANCHOR_TOP_RIGHT){if(browserName=="msie"){n.style.left=parseInt(s.offsetWidth)-n.position.offset.width-150+"px";n.style.top=n.position.offset.height+"px"}else{n.style.height="130px";n.style.left=parseInt(s.offsetWidth)-n.position.offset.width-152+"px";n.style.top=n.position.offset.height+"px"}n.style.borderLeft=this.strControlStyleM;n.style.borderBottom=this.strControlStyleM;m.style.marginLeft="5px";if(browserName=="msie"){r.style.left=122+"px";r.style.top=0+"px"}else{r.style.left=124+"px";r.style.top=0+"px"}p.className="clickcontrol MiniMapBut3";if(n.position.offset.width>0){n.style.borderRight=this.strControlStyleM;n.style.width="155px"}if(n.position.offset.height>0){n.style.borderTop=this.strControlStyleM;n.style.height="135px";m.style.marginTop="5px"}}else{if(n.position.anchor==V_ANCHOR_TOP_LEFT){if(browserName=="msie"){n.style.left=n.position.offset.width+"px";n.style.top=n.position.offset.height+"px"}else{n.style.left=n.position.offset.width+"px";n.style.top=n.position.offset.height+"px"}n.style.borderRight=this.strControlStyleM;n.style.borderBottom=this.strControlStyleM;r.style.left=0+"px";r.style.top=0+"px";p.className="clickcontrol MiniMapBut2";if(n.position.offset.width>0){n.style.borderLeft=this.strControlStyleM;n.style.width="155px";m.style.marginLeft="5px"}if(n.position.offset.height>0){n.style.borderTop=this.strControlStyleM;n.style.height="135px";m.style.marginTop="5px"}}else{if(n.position.anchor==V_ANCHOR_BOTTOM_RIGHT){if(browserName=="msie"){n.style.left=parseInt(s.offsetWidth)-n.position.offset.width-150+"px";n.style.top=parseInt(s.offsetHeight)-n.position.offset.height-130+"px"}else{n.style.left=parseInt(s.offsetWidth)-n.position.offset.width-152+"px";n.style.top=parseInt(s.offsetHeight)-n.position.offset.height-132+"px"}n.style.borderLeft=this.strControlStyleM;n.style.borderTop=this.strControlStyleM;m.style.marginTop="5px";m.style.marginLeft="5px";if(browserName=="msie"){r.style.left=122+"px";r.style.top=102+"px"}else{r.style.left=124+"px";r.style.top=104+"px"}p.className="clickcontrol MiniMapBut1";if(n.position.offset.width>0){n.style.borderRight=this.strControlStyleM;n.style.width="155px"}if(n.position.offset.height>0){n.style.borderBottom=this.strControlStyleM;n.style.height="135px"}}else{if(n.position.anchor==V_ANCHOR_BOTTOM_LEFT){if(browserName=="msie"){n.style.left=n.position.offset.width+"px";n.style.top=parseInt(s.offsetHeight)-n.position.offset.height-173+"px"}else{n.style.left=n.position.offset.width+"px";n.style.top=parseInt(s.offsetHeight)-n.position.offset.height-175+"px"}n.style.borderTop=this.strControlStyleM;n.style.borderRight=this.strControlStyleM;n.style.borderBottom=this.strControlStyleM;m.style.marginTop="5px";r.style.left=0+"px";if(browserName=="msie"){r.style.top=102+"px"}else{r.style.top=104+"px"}n.style.height="135px";p.className="clickcontrol MiniMapBut4";if(n.position.offset.width>0){n.style.borderLeft=this.strControlStyleM;n.style.width="155px";m.style.marginLeft="5px"}}}}}if(this.tmr!=null){clearTimeout(this.tmr)}}}function c(){this.liII.style.visibility="hidden"}function i(){this.liII.style.visibility="visible"}function g(){return"VOverviewMapControl"}}VOverviewMapControl.prototype=new VControl();function VPoint(a,e){this.x=a;this.y=e;this.equals=c;this.toString=d;this.vType=b;function c(f){if(this.x==f.x&&this.y==f.y){return true}else{return false}}function d(){return(this.x.toString()+","+this.y.toString())}function b(){return"VPoint"}}function VPolygon(o,K,r,O,v,z,u){if(o==undefined){return}this.latlngs=o;this.lineColor=(K==null)?"red":K;this.lineWidth=(r==null)?3:r;this.fillColor=(O==null)?"green":O;this.lineOpacity=(v==null)?0.5:v;this.fillOpacity=(z==null)?0.3:z;this.opts=(u==undefined)?new VPolygonOptions():u;this.arrPolygons=new Array();this.nPolygons=0;this.liii=false;this.isDirectionObj=false;this.initialize=e;this.drawLines=y;this.removeLines=C;this.addLineHandlers=w;this.removeLineHandlers=k;this.remove=t;this.copy=M;this.redraw=f;this.fromEncoded=G;this.calculateViewCoor=N;this.openInfoWindow=s;this.getCenterPoint=a;this.getVertexCount=p;this.getVertex=L;this.setVertex=b;this.insertPoint=h;this.deletePoint=q;this.getArea=d;this.getBounds=l;this.getLatLngs=A;this.setLatLngs=g;this.setStyle=D;this.hide=E;this.show=B;this.isHidden=m;this.supportsHide=c;this.vType=x;if(typeof this.latlngs=="object"){if(typeof this.latlngs[0]=="object"&&this.latlngs[0].vType==undefined){this.isDirectionObj=true;var F=new Array();for(var I=0;I<this.latlngs.length;I++){F[I]=new Array();for(var H=0;H<this.latlngs[I].length;H+=2){var n=new VLatLng(this.latlngs[I][H+1],this.latlngs[I][H]);F[I].push(n)}}this.latlngs=F}}else{if(typeof this.latlngs=="string"){var J=this.latlngs.split(",");this.latlngs=new Array();var H=0;for(var I=0;I<J.length;I+=2){this.latlngs[H]=new VLatLng(parseFloat(J[I+1]),parseFloat(J[I]));H++}}}for(var I=0;I<this.latlngs.length;I++){if(this.latlngs[I].latitude>180||this.latlngs[I].longitude>180){this.latlngs[I]=VProjection.fromPixelToLatLng(new VPoint(this.latlngs.longitude,this.latlngs.latitude),12)}}function e(i){this.l1lI=i;this.drawLines(i,true)}function y(af,P){if(!this.liii){if(P){this.calculateViewCoor()}var aa=document.getElementById(af.id+"_path");var X=af;var W=parseInt(aa.style.left);var U=parseInt(aa.style.top);var Q=new Array();if(this.isDirectionObj){Q=this.liI}else{Q[0]=this.liI}if(Q.length==0){this.removeLines();return}if(Q.length<this.nPolygons&&Q.length>0){var T=(browserName=="msie")?aa.childNodes[1]:aa.childNodes[1].childNodes[0];for(var ad=Q.length;ad<this.nPolygons;ad++){T.removeChild(this.arrPolygons[ad]);this.arrPolygons[ad]=null}this.nPolygons=Q.length}for(var ad=0;ad<Q.length;ad++){if(browserName=="msie"){if(this.arrPolygons[ad]==null||this.arrPolygons[ad]==undefined){var ah=document.createElement("v:polyline");this.arrPolygons[this.nPolygons]=ah;this.nPolygons++;ah.className="dragline";ah.strokecolor=this.lineColor;ah.strokeweight=this.lineWidth;ah.filled="t";ah.fillcolor=this.fillColor;ah.strokeopacity=this.lineOpacity;ah.fillopacity=this.fillOpacity;var R=document.createElement("v:stroke");R.fillopacity=this.lineOpacity;R.opacity=this.lineOpacity;R.endcap="round";ah.appendChild(R);var Z=document.createElement("v:fill");Z.fillopacity=this.fillOpacity;Z.opacity=this.fillOpacity;ah.appendChild(Z);aa.childNodes[1].appendChild(ah);ah.style.cursor="pointer";ah.lijI=this.lijI;ah.mouseoverHandler=this.mouseoverHandler;ah.mouseoutHandler=this.mouseoutHandler;ah.mousemoveHandler=this.mousemoveHandler;ah.llIl=this;if(this.lijI!=undefined){ah.onclick=function(al){var j=new VPoint(lIlj-X.Left,lIl1-X.Top);var i=X.fromContainerPixelToLatLng(j);var am=this.llIl.latlngs;var ai=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,am,ai)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,am,ai)}var aj=ai[0];var ak=ai[1];this.lijI(aj,ak,this.llIl)}}if(this.mouseoverHandler!=undefined){ah.onmouseover=function(){this.mouseoverHandler(this.llIl)}}if(this.mouseoutHandler!=undefined){ah.onmouseout=function(){this.mouseoutHandler(this.llIl)}}if(this.mousemoveHandler!=undefined){ah.onmousemove=function(al){var j=new VPoint(lIlj-X.Left,lIl1-X.Top);var i=X.fromContainerPixelToLatLng(j);var am=this.llIl.latlngs;var ai=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,am,ai)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,am,ai)}var aj=ai[0];
var ak=ai[1];this.mousemoveHandler(aj,ak)}}}if(this.arrPolygons[ad].points!=undefined){this.arrPolygons[ad].points.value=Q[ad]}}else{var ag=aa.childNodes[1].childNodes[0];var Y=af.lli1.offsetWidth*3;var V=af.lli1.offsetHeight*3;ag.setAttribute("width",Y.toString()+"px");ag.setAttribute("height",V.toString()+"px");var ab=af.fromContainerPixelToDivPixel(new VPoint(-af.lli1.offsetWidth,-af.lli1.offsetHeight));ag.style.left=ab.x.toString()+"px";ag.style.top=ab.y.toString()+"px";ag.setAttribute("viewBox",ab.x.toString()+" "+ab.y.toString()+" "+Y.toString()+" "+V.toString());var ah;if(this.arrPolygons[ad]==null||this.arrPolygons[ad]==undefined){ah=document.createElementNS("http://www.w3.org/2000/svg","path");ah.setAttribute("stroke",this.lineColor);ah.setAttribute("stroke-width",this.lineWidth+1);ah.setAttribute("stroke-opacity",this.lineOpacity);ah.setAttribute("stroke-linecap","round");ah.setAttribute("stroke-linejoin","round");ah.setAttribute("fill-opacity",this.fillOpacity);ah.setAttribute("fill",this.fillColor);ag.appendChild(ah);this.arrPolygons[this.nPolygons]=ah;this.nPolygons++;ah.style.cursor="pointer";ah.lijI=this.lijI;ah.mouseoverHandler=this.mouseoverHandler;ah.mouseoutHandler=this.mouseoutHandler;ah.mousemoveHandler=this.mousemoveHandler;ah.llIl=this;if(this.lijI!=undefined){ah.onclick=function(al){var j=new VPoint(lIlj-X.Left,lIl1-X.Top);var i=X.fromContainerPixelToLatLng(j);var am=this.llIl.latlngs;var ai=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,am,ai)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,am,ai)}var aj=ai[0];var ak=ai[1];this.lijI(aj,ak,this.llIl)}}if(this.mouseoverHandler!=undefined){ah.onmouseover=function(){this.mouseoverHandler(this.llIl)}}if(this.mouseoutHandler!=undefined){ah.onmouseout=function(){this.mouseoutHandler(this.llIl)}}if(this.mousemoveHandler!=undefined){ah.onmousemove=function(al){var j=new VPoint(lIlj-X.Left,lIl1-X.Top);var i=X.fromContainerPixelToLatLng(j);var am=this.llIl.latlngs;var ai=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,am,ai)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,am,ai)}var aj=ai[0];var ak=ai[1];this.mousemoveHandler(aj,ak)}}}else{ah=this.arrPolygons[ad]}ah.setAttribute("d","");var ae=new Array();for(var ac=0;ac<Q[ad].length;ac+=2){ae.push(Q[ad][ac]);ae.push(Q[ad][ac+1])}var S="";S="M"+ae[0]+" "+ae[1]+" ";for(ac=2;ac<Q[ad].length;ac+=2){S+="L"+ae[ac]+" "+ae[ac+1]+" "}ah.setAttribute("d",S)}}}}function C(){var Q=document.getElementById(this.l1lI.id+"_path");var P=(browserName=="msie")?Q.childNodes[1]:Q.childNodes[1].childNodes[0];if(this.nPolygons>0){for(var j=0;j<this.nPolygons;j++){P.removeChild(this.arrPolygons[j])}this.arrPolygons=new Array();this.nPolygons=0}}function w(){var Q=this.l1lI;for(var j=0;j<this.nPolygons;j++){var P=this.arrPolygons[j];P.lijI=this.lijI;P.mouseoverHandler=this.mouseoverHandler;P.mouseoutHandler=this.mouseoutHandler;P.mousemoveHandler=this.mousemoveHandler;if(this.lijI!=undefined){P.onclick=function(V){var R=new VPoint(lIlj-Q.Left,lIl1-Q.Top);var i=Q.fromContainerPixelToLatLng(R);var W=this.llIl.latlngs;var S=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,W,S)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,W,S)}var T=S[0];var U=S[1];this.lijI(T,U,this.llIl)}}if(this.mouseoverHandler!=undefined){P.onmouseover=function(){this.mouseoverHandler(this.llIl)}}if(this.mouseoutHandler!=undefined){P.onmouseout=function(){this.mouseoutHandler(this.llIl)}}if(this.mousemoveHandler!=undefined){P.onmousemove=function(V){var R=new VPoint(lIlj-Q.Left,lIl1-Q.Top);var i=Q.fromContainerPixelToLatLng(R);var W=this.llIl.latlngs;var S=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,W,S)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,W,S)}var T=S[0];var U=S[1];this.mousemoveHandler(T,U)}}}}function k(){for(var j=0;j<this.nPolygons;j++){var P=this.arrPolygons[j];P.lijI=null;P.mouseoverHandler=null;P.mouseoutHandler=null;P.mousemoveHandler=null;P.onclick=null;P.onmouseover=null;P.onmouseout=null;P.onmousemove=null}}function t(){if(this.lili!=null){this.lili()}this.removeLines();this.l1lI.resetSVG()}function M(){return new VPolygon(this.latlngs,this.lineColor,this.lineWidth,this.fillColor,this.lineOpacity,this.fillOpacity,this.opts)}function f(i){this.drawLines(this.l1lI,!i)}function G(j,R,i,P,Q){}function N(){if(this.isDirectionObj){var Y=new Array();for(var X=0;X<this.latlngs.length;X++){Y[X]=new Array();for(var W=0;W<this.latlngs[X].length;W++){var T=this.l1lI.fromLatLngToDivPixel(this.latlngs[X][W]);Y[X].push(T.x);Y[X].push(T.y)}var ac=new VPoint(-this.l1lI.lli1.offsetWidth*2,-this.l1lI.lli1.offsetHeight*2);var aa=new VPoint(this.l1lI.lli1.offsetWidth*3,this.l1lI.lli1.offsetHeight*3);var Z=this.l1lI.fromContainerPixelToDivPixel(ac);var Q=this.l1lI.fromContainerPixelToDivPixel(aa);var S=Z.x;var P=Z.y;var V=Q.x;var U=Q.y;var R=Y[X].length;if(Y[X][0]<Y[X][R-2]){if(S-Y[X][0]>1000){Y[X][0]=S}if(Y[X][R-2]-V>1000){Y[X][R-2]=V}}else{if(S-Y[X][R-2]>1000){Y[X][R-2]=S}if(Y[X][0]-V>1000){Y[X][0]=V}}if(Y[X][1]<Y[X][R-1]){if(P-Y[X][1]>1000){Y[X][1]=P}if(Y[X][R-1]-U>1000){Y[X][R-1]=U}}else{if(P-Y[X][R-1]>1000){Y[X][R-1]=P}if(Y[X][1]-U>1000){Y[X][1]=U}}}this.liI=Y}else{var Y=new Array();for(var X=0;X<this.latlngs.length;X++){Y[X]=this.l1lI.fromLatLngToDivPixel(this.latlngs[X])}var ab=new Array;for(var X=0;X<Y.length;X++){ab.push(Y[X].x);ab.push(Y[X].y)}this.liI=ab}}function s(j,i){if(this.l1lI.ll11!=undefined){this.l1lI.ll11()}if(i==undefined){i=new VInfoWindowOptions()}this.l1lI.openInfoWindow(this.getCenterPoint(),j,i)}function a(){if(this.isDirectionObj){return null}var i=VUtil.getCenterPoint(this.latlngs);if(!VUtil.isInsidePolygon(i,this.latlngs)){i.longitude=(this.latlngs[0].longitude+this.latlngs[1].longitude)/2;i.latitude=(this.latlngs[0].latitude+this.latlngs[1].latitude)/2}return i}function p(){if(this.latlngs==null){return 0}if(this.isDirectionObj){var P=0;for(var j=0;j<this.latlngs.length;j++){P+=this.latlngs[j].length}return P}return this.latlngs.length}function L(j){if(this.latlngs==null){return}if(this.isDirectionObj){var P=0;while(j>=this.latlngs[P].length){j-=this.latlngs[P].length;P++}return this.latlngs[P][j]}return this.latlngs[j]}function b(i,j){if(this.isDirectionObj){return}this.latlngs[i]=j.copy();if(i==0){this.latlngs[this.latlngs.length-1]=j.copy()}this.drawLines(this.l1lI,true)}function h(P,S){if(this.isDirectionObj){return}if(P>=this.latlngs.length-1){return}var j=new Array();var R=0;for(var Q=0;Q<this.latlngs.length;Q++){j[R]=this.latlngs[Q].copy();R++;if(Q==P){j[R]=S.copy();R++}}this.latlngs=j;this.drawLines(this.l1lI,true)}function q(P){if(this.isDirectionObj){return}if(P>=this.latlngs.length-1){return}var j=new Array();var R=0;for(var Q=0;Q<this.latlngs.length;Q++){if(Q!=P){j[R]=this.latlngs[Q].copy();R++}}if(P==0){j[R-1]=j[0].copy()}this.latlngs=j;this.drawLines(this.l1lI,true)}function d(){}function l(){}function A(){return this.latlngs}function g(P){this.latlngs=P;if(this.isDirectionObj){var S=new Array();for(var R=0;R<this.latlngs.length;R++){S[R]=new Array();for(var Q=0;Q<this.latlngs[R].length;Q+=2){var T=new VLatLng(this.latlngs[R][Q+1],this.latlngs[R][Q]);S[R].push(T)}}this.latlngs=S}if(typeof this.latlngs=="string"){var U=this.latlngs.split(",");this.latlngs=new Array();var Q=0;for(var R=0;R<U.length;R+=2){this.latlngs[Q]=new VLatLng(parseFloat(U[R+1]),parseFloat(U[R]));Q++}}this.drawLines(this.l1lI,true)}function D(Q,i,R,P,j){this.lineColor=(Q==null)?"red":Q;this.lineWidth=(i==null)?1:i;this.fillColor=(R==null)?"red":R;this.lineOpacity=(P==null)?0.5:P;this.fillOpacity=(j==null)?0.5:j;this.removeLines();this.drawLines(this.l1lI,false)}function E(){if(this.liI1!=null){this.liI1(false)}this.liii=true;this.removeLines()}function B(){if(this.liI1!=null){this.liI1(true)}this.drawLines(this.l1lI,true);this.liii=false}function m(){return this.liii}function c(){return true
}function x(){return"VPolygon"}}VPolygon.prototype=new VOverlay();function VPolyline(n,J,q,N,G,t){if(n==undefined){return}this.latlngs=n;this.lineColor=(J==undefined)?"red":J;this.lineWidth=(q==undefined)?3:q;this.fillColor=(N==undefined)?"green":N;this.opacity=(G==undefined)?0.5:G;this.opts=(t==undefined)?new VPolylineOptions():t;this.arrPolylines=new Array();this.nPolylines=0;this.liii=false;this.isDirectionObj=false;this.initialize=d;this.drawLines=w;this.removeLines=z;this.addLineHandlers=u;this.removeLineHandlers=h;this.remove=s;this.copy=L;this.redraw=e;this.fromEncoded=D;this.calculateViewCoor=M;this.openInfoWindow=r;this.getCenterPoint=a;this.getVertexCount=o;this.getVertex=K;this.setVertex=b;this.insertPoint=g;this.deletePoint=p;this.getLength=I;this.getBounds=k;this.getLatLngs=x;this.setLatLngs=f;this.setStyle=A;this.hide=B;this.show=y;this.isHidden=l;this.supportsHide=c;this.vType=v;if(typeof this.latlngs=="object"){if(typeof this.latlngs[0]=="object"&&this.latlngs[0].vType==undefined){this.isDirectionObj=true;var C=new Array();for(var F=0;F<this.latlngs.length;F++){C[F]=new Array();for(var E=0;E<this.latlngs[F].length;E+=2){var m=new VLatLng(this.latlngs[F][E+1],this.latlngs[F][E]);C[F].push(m)}}this.latlngs=C}}else{if(typeof this.latlngs=="string"){var H=this.latlngs.split(",");this.latlngs=new Array();var E=0;for(var F=0;F<H.length;F+=2){this.latlngs[E]=new VLatLng(parseFloat(H[F+1]),parseFloat(H[F]));E++}}}for(var F=0;F<this.latlngs.length;F++){if(this.latlngs[F].latitude>180||this.latlngs[F].longitude>180){this.latlngs[F]=VProjection.fromPixelToLatLng(new VPoint(this.latlngs.longitude,this.latlngs.latitude),12)}}function d(i){this.l1lI=i;this.drawLines(i,true)}function w(ae,O){if(!this.liii){if(O){this.calculateViewCoor()}var Z=document.getElementById(ae.id+"_path");var W=ae;var V=parseInt(Z.style.left);var T=parseInt(Z.style.top);var P=new Array();if(this.isDirectionObj){P=this.liI}else{P[0]=this.liI}if(P.length==0){this.removeLines();return}if(P.length<this.nPolylines&&P.length>0){var S=(browserName=="msie")?Z.childNodes[1]:Z.childNodes[1].childNodes[0];for(var ac=P.length;ac<this.nPolylines;ac++){S.removeChild(this.arrPolylines[ac]);this.arrPolylines[ac]=null}this.nPolylines=P.length}for(var ac=0;ac<P.length;ac++){if(browserName=="msie"){if(this.arrPolylines[ac]==null||this.arrPolylines[ac]==undefined){var ag=document.createElement("v:polyline");this.arrPolylines[this.nPolylines]=ag;this.nPolylines++;ag.className="dragline";ag.strokecolor=this.lineColor;ag.strokeweight=this.lineWidth;ag.filled="f";ag.fillcolor=this.fillColor;ag.strokeopacity=this.opacity;ag.fillopacity=this.opacity;var Q=document.createElement("v:stroke");Q.fillopacity=this.opacity;Q.opacity=this.opacity;Q.endcap="round";if(this.opts.dashStyle=="Dot"){Q.dashstyle="Dot"}ag.appendChild(Q);var Y=document.createElement("v:fill");Y.fillopacity=this.opacity;Y.opacity=this.opacity;ag.appendChild(Y);Z.childNodes[1].appendChild(ag);ag.style.cursor="pointer";ag.lijI=this.lijI;ag.mouseoverHandler=this.mouseoverHandler;ag.mouseoutHandler=this.mouseoutHandler;ag.mousemoveHandler=this.mousemoveHandler;ag.llIl=this;if(this.lijI!=undefined){ag.onclick=function(ak){var j=new VPoint(lIlj-W.Left,lIl1-W.Top);var i=W.fromContainerPixelToLatLng(j);var al=this.llIl.latlngs;var ah=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,al,ah)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,al,ah)}var ai=ah[0];var aj=ah[1];this.lijI(ai,aj,this.llIl)}}if(this.mouseoverHandler!=undefined){ag.onmouseover=function(){this.mouseoverHandler(this.llIl)}}if(this.mouseoutHandler!=undefined){ag.onmouseout=function(){this.mouseoutHandler(this.llIl)}}if(this.mousemoveHandler!=undefined){ag.onmousemove=function(ak){var j=new VPoint(lIlj-W.Left,lIl1-W.Top);var i=W.fromContainerPixelToLatLng(j);var al=this.llIl.latlngs;var ah=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,al,ah)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,al,ah)}var ai=ah[0];var aj=ah[1];this.mousemoveHandler(ai,aj,this.llIl)}}}if(this.arrPolylines[ac].points!=undefined){this.arrPolylines[ac].points.value=P[ac]}}else{var af=Z.childNodes[1].childNodes[0];var X=ae.lli1.offsetWidth*3;var U=ae.lli1.offsetHeight*3;af.setAttribute("width",X.toString()+"px");af.setAttribute("height",U.toString()+"px");var aa=ae.fromContainerPixelToDivPixel(new VPoint(-ae.lli1.offsetWidth,-ae.lli1.offsetHeight));af.style.left=aa.x.toString()+"px";af.style.top=aa.y.toString()+"px";af.setAttribute("viewBox",aa.x.toString()+" "+aa.y.toString()+" "+X.toString()+" "+U.toString());var ag;if(this.arrPolylines[ac]==null||this.arrPolylines[ac]==undefined){ag=document.createElementNS("http://www.w3.org/2000/svg","path");ag.setAttribute("stroke",this.lineColor);ag.setAttribute("stroke-width",this.lineWidth+1);ag.setAttribute("stroke-opacity",this.opacity);ag.setAttribute("stroke-linecap","round");ag.setAttribute("stroke-linejoin","round");if(this.opts.dashStyle=="Dot"){ag.setAttribute("stroke-dasharray","0.5,15")}ag.setAttribute("fill-opacity",this.opacity);ag.setAttribute("fill","none");af.appendChild(ag);this.arrPolylines[this.nPolylines]=ag;this.nPolylines++;ag.style.cursor="pointer";ag.lijI=this.lijI;ag.mouseoverHandler=this.mouseoverHandler;ag.mouseoutHandler=this.mouseoutHandler;ag.mousemoveHandler=this.mousemoveHandler;ag.llIl=this;if(this.lijI!=undefined){ag.onclick=function(ak){var j=new VPoint(lIlj-W.Left,lIl1-W.Top);var i=W.fromContainerPixelToLatLng(j);var al=this.llIl.latlngs;var ah=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,al,ah)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,al,ah)}var ai=ah[0];var aj=ah[1];this.lijI(ai,aj,this.llIl)}}if(this.mouseoverHandler!=undefined){ag.onmouseover=function(){this.mouseoverHandler(this.llIl)}}if(this.mouseoutHandler!=undefined){ag.onmouseout=function(){this.mouseoutHandler(this.llIl)}}if(this.mousemoveHandler!=undefined){ag.onmousemove=function(ak){var j=new VPoint(lIlj-W.Left,lIl1-W.Top);var i=W.fromContainerPixelToLatLng(j);var al=this.llIl.latlngs;var ah=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,al,ah)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,al,ah)}var ai=ah[0];var aj=ah[1];this.mousemoveHandler(ai,aj,this.llIl)}}}else{ag=this.arrPolylines[ac]}ag.setAttribute("d","");var ad=new Array();for(var ab=0;ab<P[ac].length;ab+=2){ad.push(P[ac][ab]);ad.push(P[ac][ab+1])}var R="";R="M"+ad[0]+" "+ad[1]+" ";for(ab=2;ab<P[ac].length;ab+=2){R+="L"+ad[ab]+" "+ad[ab+1]+" "}ag.setAttribute("d",R)}}}}function z(){var P=document.getElementById(this.l1lI.id+"_path");var O=(browserName=="msie")?P.childNodes[1]:P.childNodes[1].childNodes[0];if(this.nPolylines>0){for(var j=0;j<this.nPolylines;j++){O.removeChild(this.arrPolylines[j])}this.arrPolylines=new Array();this.nPolylines=0}}function u(){var P=this.l1lI;for(var j=0;j<this.nPolylines;j++){var O=this.arrPolylines[j];O.lijI=this.lijI;O.mouseoverHandler=this.mouseoverHandler;O.mouseoutHandler=this.mouseoutHandler;O.mousemoveHandler=this.mousemoveHandler;if(this.lijI!=undefined){O.onclick=function(U){var Q=new VPoint(lIlj-P.Left,lIl1-P.Top);var i=P.fromContainerPixelToLatLng(Q);var V=this.llIl.latlngs;var R=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,V,R)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,V,R)}var S=R[0];var T=R[1];this.lijI(S,T,this.llIl)}}if(this.mouseoverHandler!=undefined){O.onmouseover=function(){this.mouseoverHandler(this.llIl)}}if(this.mouseoutHandler!=undefined){O.onmouseout=function(){this.mouseoutHandler(this.llIl)}}if(this.mousemoveHandler!=undefined){O.onmousemove=function(U){var Q=new VPoint(lIlj-P.Left,lIl1-P.Top);var i=P.fromContainerPixelToLatLng(Q);var V=this.llIl.latlngs;var R=new Array();if(this.llIl.isDirectionObj){VUtil.ClosestPointPolylines(i.longitude,i.latitude,V,R)}else{VUtil.ClosestPointPolyline(i.longitude,i.latitude,V,R)
}var S=R[0];var T=R[1];this.mousemoveHandler(S,T,this.llIl)}}}}function h(){for(var j=0;j<this.nPolylines;j++){var O=this.arrPolylines[j];O.lijI=null;O.mouseoverHandler=null;O.mouseoutHandler=null;O.mousemoveHandler=null;O.onclick=null;O.onmouseover=null;O.onmouseout=null;O.onmousemove=null}}function s(){if(this.lili!=null){this.lili()}this.removeLines();this.l1lI.resetSVG()}function L(){return new VPolyline(this.latlngs,this.lineColor,this.lineWidth,this.fillColor,this.opacity,this.opts)}function e(i){this.drawLines(this.l1lI,!i)}function D(i,R,j,O,S,Q,P){}function M(){if(this.isDirectionObj){var X=new Array();for(var W=0;W<this.latlngs.length;W++){X[W]=new Array();for(var V=0;V<this.latlngs[W].length;V++){var S=this.l1lI.fromLatLngToDivPixel(this.latlngs[W][V]);X[W].push(S.x);X[W].push(S.y)}var ab=new VPoint(-this.l1lI.lli1.offsetWidth*2,-this.l1lI.lli1.offsetHeight*2);var Z=new VPoint(this.l1lI.lli1.offsetWidth*3,this.l1lI.lli1.offsetHeight*3);var Y=this.l1lI.fromContainerPixelToDivPixel(ab);var P=this.l1lI.fromContainerPixelToDivPixel(Z);var R=Y.x;var O=Y.y;var U=P.x;var T=P.y;var Q=X[W].length;if(X[W][0]<X[W][Q-2]){if(R-X[W][0]>1000){X[W][0]=R}if(X[W][Q-2]-U>1000){X[W][Q-2]=U}}else{if(R-X[W][Q-2]>1000){X[W][Q-2]=R}if(X[W][0]-U>1000){X[W][0]=U}}if(X[W][1]<X[W][Q-1]){if(O-X[W][1]>1000){X[W][1]=O}if(X[W][Q-1]-T>1000){X[W][Q-1]=T}}else{if(O-X[W][Q-1]>1000){X[W][Q-1]=O}if(X[W][1]-T>1000){X[W][1]=T}}}this.liI=X}else{var X=new Array();for(var W=0;W<this.latlngs.length;W++){X[W]=this.l1lI.fromLatLngToDivPixel(this.latlngs[W])}var aa=new Array;for(var W=0;W<X.length;W++){aa.push(X[W].x);aa.push(X[W].y)}this.liI=aa}}function r(j,i){if(this.l1lI.ll11!=undefined){this.l1lI.ll11()}if(i==undefined){i=new VInfoWindowOptions()}this.l1lI.openInfoWindow(this.getCenterPoint(),j,i)}function a(){if(this.isDirectionObj){return null}var O,j;if(this.latlngs.length%2==0){var i=parseInt(this.latlngs.length/2)-1;O=(this.latlngs[i].latitude+this.latlngs[i+1].latitude)/2;j=(this.latlngs[i].longitude+this.latlngs[i+1].longitude)/2}else{var i=parseInt(this.latlngs.length/2);O=this.latlngs[i].latitude;j=this.latlngs[i].longitude}return new VLatLng(O,j)}function o(){if(this.latlngs==null){return 0}if(this.isDirectionObj){var O=0;for(var j=0;j<this.latlngs.length;j++){O+=this.latlngs[j].length}return O}return this.latlngs.length}function K(j){if(this.latlngs==null){return}if(this.isDirectionObj){var O=0;while(j>=this.latlngs[O].length){j-=this.latlngs[O].length;O++}return this.latlngs[O][j]}return this.latlngs[j]}function b(i,j){if(this.isDirectionObj){return}this.latlngs[i]=j.copy();this.drawLines(this.l1lI,true)}function g(O,R){if(this.isDirectionObj){return}if(O>=this.latlngs.length){return}var j=new Array();var Q=0;for(var P=0;P<this.latlngs.length;P++){j[Q]=this.latlngs[P].copy();Q++;if(P==O){j[Q]=R.copy();Q++}}this.latlngs=j;this.drawLines(this.l1lI,true)}function p(O){if(this.isDirectionObj){return}if(O>=this.latlngs.length){return}var j=new Array();var Q=0;for(var P=0;P<this.latlngs.length;P++){if(P!=O){j[Q]=this.latlngs[P].copy();Q++}}this.latlngs=j;this.drawLines(this.l1lI,true)}function I(){if(this.isDirectionObj){return}var O=0;for(var U=0;U<this.latlngs.length-1;U++){var P,Q,S;var j;var W;var T;var R;var V;j=this.latlngs[U].latitude*(Math.PI/180);W=this.latlngs[U].longitude*(Math.PI/180);T=this.latlngs[U+1].latitude*(Math.PI/180);R=this.latlngs[U+1].longitude*(Math.PI/180);P=this.latlngs[U].longitude-this.latlngs[U+1].longitude;V=P*(Math.PI/180);S=Math.sin(j)*Math.sin(T)+Math.cos(j)*Math.cos(T)*Math.cos(V);S=Math.acos(S);Q=S*180/Math.PI;Q=Q*60*1.1515;Q=Q*1.609344*1000;O+=Q}return O}function k(){}function x(){return this.latlngs}function f(O){this.latlngs=O;if(this.isDirectionObj){var R=new Array();for(var Q=0;Q<this.latlngs.length;Q++){R[Q]=new Array();for(var P=0;P<this.latlngs[Q].length;P+=2){var S=new VLatLng(this.latlngs[Q][P+1],this.latlngs[Q][P]);R[Q].push(S)}}this.latlngs=R}else{if(typeof this.latlngs=="string"){var T=this.latlngs.split(",");this.latlngs=new Array();var P=0;for(var Q=0;Q<T.length;Q+=2){this.latlngs[P]=new VLatLng(parseFloat(T[Q+1]),parseFloat(T[Q]));P++}}}this.drawLines(this.l1lI,true)}function A(O,i,P,j){this.lineColor=(O==undefined)?"red":O;this.lineWidth=(i==undefined)?1:i;this.fillColor=(P==undefined)?"red":P;this.opacity=(j==undefined)?1:j;this.removeLines();this.drawLines(this.l1lI,false)}function B(){if(this.liI1!=null){this.liI1(false)}this.liii=true;this.removeLines()}function y(){if(this.liI1!=null){this.liI1(true)}this.drawLines(this.l1lI,true);this.liii=false}function l(){return this.liii}function c(){return true}function v(){return"VPolyline"}}VPolyline.prototype=new VOverlay();function VCircle(b,g,d,a,k,s,q,o){if(b==undefined){return}this.latlngs=b;this.radius=(g==undefined)?100:g;this.lineColor=(d==null)?"red":d;this.lineWidth=(a==null)?3:a;this.fillColor=(k==null)?"green":k;this.lineOpacity=(s==null)?0.5:s;this.fillOpacity=(q==null)?0.3:q;this.opts=(o==undefined)?new VCircleOptions():o;this.circleObj=null;this.liii=false;this.initialize=c;this.drawLines=f;this.removeLines=e;this.remove=v;this.copy=p;this.redraw=r;this.openInfoWindow=m;this.getBounds=j;this.getLatLngs=u;this.hide=n;this.show=t;this.isHidden=i;this.supportsHide=l;this.vType=h;function c(w){this.l1lI=w;this.drawLines(w,true)}function f(y,z){if(!this.liii){if(z){this.liI=this.l1lI.fromLatLngToDivPixel(this.latlngs)}var G=document.getElementById(y.id+"_path");if(browserName=="msie"){if(this.circleObj==null||this.circleObj==undefined){var D=document.createElement("v:oval");this.circleObj=D;D.className="dragline";D.strokecolor=this.lineColor;D.filled="t";D.fillcolor=this.fillColor;var A=document.createElement("v:stroke");A.endcap="round";D.appendChild(A);var C=document.createElement("v:fill");D.appendChild(C);G.childNodes[1].appendChild(D);D.style.position="absolute";D.style.cursor="pointer";D.llIl=this}var x=this.radius/VProjection.getGroundResolution(this.latlngs.lat(),y.getLevel());this.circleObj.style.left=this.liI.x-x+"px";this.circleObj.style.top=this.liI.y-x+"px";this.circleObj.style.width=x*2;this.circleObj.style.height=x*2;if(x<10){this.circleObj.strokeweight=5;this.circleObj.strokeopacity=0.7;this.circleObj.fillopacity=0.7;this.circleObj.childNodes[0].fillopacity=0.7;this.circleObj.childNodes[0].opacity=0.7;this.circleObj.childNodes[0].dashstyle="";this.circleObj.childNodes[1].fillopacity=0.7;this.circleObj.childNodes[1].opacity=0.7}else{this.circleObj.strokeweight=this.lineWidth;this.circleObj.strokeopacity=this.lineOpacity;this.circleObj.fillopacity=this.fillOpacity;this.circleObj.childNodes[0].fillopacity=this.lineOpacity;this.circleObj.childNodes[0].opacity=this.lineOpacity;if(this.opts.dashStyle=="Dot"){this.circleObj.childNodes[0].dashstyle="Dot"}this.circleObj.childNodes[1].fillopacity=this.fillOpacity;this.circleObj.childNodes[1].opacity=this.fillOpacity}}else{var B=G.childNodes[1].childNodes[0];var w=y.lli1.offsetWidth*3;var F=y.lli1.offsetHeight*3;B.setAttribute("width",w.toString()+"px");B.setAttribute("height",F.toString()+"px");var E=y.fromContainerPixelToDivPixel(new VPoint(-y.lli1.offsetWidth,-y.lli1.offsetHeight));B.style.left=E.x.toString()+"px";B.style.top=E.y.toString()+"px";B.setAttribute("viewBox",E.x.toString()+" "+E.y.toString()+" "+w.toString()+" "+F.toString());var D;if(this.circleObj==null||this.circleObj==undefined){D=document.createElementNS("http://www.w3.org/2000/svg","circle");D.setAttribute("stroke",this.lineColor);D.setAttribute("stroke-linecap","round");D.setAttribute("stroke-linejoin","round");D.setAttribute("fill",this.fillColor);B.appendChild(D);this.circleObj=D;D.style.cursor="pointer";D.llIl=this}else{D=this.circleObj}D.setAttribute("cx",this.liI.x);D.setAttribute("cy",this.liI.y);var x=this.radius/VProjection.getGroundResolution(this.latlngs.lat(),y.getLevel());D.setAttribute("r",x);if(x<10){D.setAttribute("stroke-width",5);D.setAttribute("stroke-opacity",0.7);D.setAttribute("stroke-dasharray","");D.setAttribute("fill-opacity",0.7)
}else{D.setAttribute("stroke-width",this.lineWidth+1);D.setAttribute("stroke-opacity",this.lineOpacity);if(this.opts.dashStyle=="Dot"){D.setAttribute("stroke-dasharray","1, 5")}D.setAttribute("fill-opacity",this.fillOpacity)}}}}function e(){var x=document.getElementById(this.l1lI.id+"_path");var w=(browserName=="msie")?x.childNodes[1]:x.childNodes[1].childNodes[0];w.removeChild(this.circleObj);this.circleObj=null}function v(){this.removeLines()}function p(){return new VCircle(this.latlngs,this.radius,this.lineColor,this.lineWidth,this.fillColor,this.opacity,this.opts)}function r(w){this.drawLines(this.l1lI,!w)}function m(x,w){if(this.l1lI.ll11!=undefined){this.l1lI.ll11()}if(w==undefined){w=new VInfoWindowOptions()}this.l1lI.openInfoWindow(this.getCenterPoint(),x,w)}function j(){}function u(){return this.latlngs}function n(){this.liii=true;this.removeLines()}function t(){this.drawLines(this.l1lI,true);this.liii=false}function i(){return this.liii}function l(){return true}function h(){return"VCircle"}}VCircle.prototype=new VOverlay();VProjection={EarthRadius:6378137,MinLatitude:-85.05112878,MaxLatitude:85.05112878,MinLongitude:-180,MaxLongitude:180,clip:function(c,a,b){return Math.min(Math.max(c,a),b)},getMapSize:function(a){return 256<<a},getGroundResolution:function(b,a){b=VProjection.clip(b,VProjection.MinLatitude,VProjection.MaxLatitude);return Math.cos(b*Math.PI/180)*2*Math.PI*VProjection.EarthRadius/VProjection.getMapSize(a)},getMapScale:function(c,a,b){return VProjection.getGroundResolution(c,a)*b/0.0254},fromPixelXYToTileXY:function(a){var b=new VPoint(a.x/256,a.y/256);return b},fromTileXYToPixelXY:function(b){var a=new VPoint(b.x*256,b.y*256);return a},fromLatLngToPixel:function(b,c){var g=VProjection.clip(b.latitude,VProjection.MinLatitude,VProjection.MaxLatitude);var a=VProjection.clip(b.longitude,VProjection.MinLongitude,VProjection.MaxLongitude);var i=(a+180)/360;var k=Math.sin(g*Math.PI/180);var h=0.5-Math.log((1+k)/(1-k))/(4*Math.PI);var f=VProjection.getMapSize(c);var e=VProjection.clip(i*f+0.5,0,f-1);var d=VProjection.clip(h*f+0.5,0,f-1);var j=new VPoint(e,d);return j},fromPixelToLatLng:function(i,c){var d=VProjection.getMapSize(c);i.x=((i.x%d)+d)%d;var e=VProjection.getMapSize(c);var h=(VProjection.clip(i.x,0,e-1)/e)-0.5;var f=0.5-(VProjection.clip(i.y,0,e-1)/e);var g=90-360*Math.atan(Math.exp(-f*2*Math.PI))/Math.PI;var a=360*h;var b=new VLatLng(g,a);return b},vType:function(){return"VProjection"}};function VRoute(){this.Distance=0;this.Unit="";this.l11i=new Array();this.l11l=null;this.getNumSteps=c;this.getStep=b;this.getEndLatLng=a;this.getSumaryHtml=e;this.getDistance=f;this.getUnit=h;this.getDuration=i;this.getPolyline=d;this.vType=g;function c(){return this.l11i.length}function b(j){return this.l11i[j]}function a(){return this.l11i[this.l11i.length-1].Latlng}function e(){}function d(){return this.l11l}function f(){return this.Distance}function h(){return this.Unit}function i(){}function g(){return"VRoute"}}function VScaleControl(e,i){this.printable=(e!=undefined)?e:false;this.lii1=(i!=undefined)?i:false;this.initialize=a;this.redraw=h;this.remove=b;this.getDefaultPosition=d;this.hide=c;this.show=g;this.vType=f;function a(l,j){if(isValidKey==false){return}var m="";m+="<table height=20px cellSpacing=0px cellPadding=0px align=left>";m+="<tr vAlign=bottom height=10px>";m+="<td id='"+l.id+'_Units\' style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Tahoma; HEIGHT: 1px;" vAlign=bottom align=left>20 km</td>';m+="</tr>";m+="<tr vAlign=top>";m+="<td vAlign=top align=left height=6px><IMG id='"+l.id+"_Ruler' height=8px src='"+strResURL+"images/RulerB.gif' width=200px align=top>";m+="</td>";m+="</tr>";m+="</table>";var k=VUtil.CreateDivElement(l.id+"_VScaleControl",0,0,"auto","auto","absolute","",m);k.style.zIndex=ControlZIndex;k.style.MozUserSelect="none";l.lli1.appendChild(k);if(j!=undefined){if(j.anchor==V_ANCHOR_TOP_RIGHT){k.style.left=parseInt(l.lli1.offsetWidth)-j.offset.width-163+"px";k.style.top=j.offset.height+"px"}else{if(j.anchor==V_ANCHOR_TOP_LEFT){k.style.left=j.offset.width+"px";k.style.top=j.offset.height+"px"}else{if(j.anchor==V_ANCHOR_BOTTOM_RIGHT){k.style.left=parseInt(l.lli1.offsetWidth)-j.offset.width-163+"px";k.style.top=parseInt(l.lli1.offsetHeight)-j.offset.height-23+"px"}else{if(j.anchor==V_ANCHOR_BOTTOM_LEFT){k.style.left=j.offset.width+90+"px";k.style.top=parseInt(l.lli1.offsetHeight)-j.offset.height-23+"px"}}}}}else{if(VUtil.isVBDWebsite()){k.style.left=10+"px";k.style.top=parseInt(l.lli1.offsetHeight)-30+"px"}else{k.style.left=100+"px";k.style.top=parseInt(l.lli1.offsetHeight)-30+"px"}}this.l1lI=l;this.liII=k;this.position=j}function h(){if(isValidKey==false){return}if(this.position!=undefined){if(this.position.anchor==V_ANCHOR_TOP_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-163+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_TOP_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-163+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-23+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_LEFT){this.liII.style.left=this.position.offset.width+90+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-23+"px"}}}}}else{if(VUtil.isVBDWebsite()){this.liII.style.left=10+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-30+"px"}else{this.liII.style.left=100+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-30+"px"}}}function b(){VUtil.RemoveDivElement(this.id,this.l1lI.lli1.id)}function d(){var j=new VControlPosition(V_ANCHOR_BOTTOM_LEFT,new VSize(10,7));return j}function c(){this.liII.style.visibility="hidden"}function g(){this.liII.style.visibility="visible"}function f(){return"VScaleControl"}}VScaleControl.prototype=new VControl();function VSmallMapControl(e,i){this.printable=(e!=undefined)?e:false;this.lii1=(i!=undefined)?i:false;this.initialize=a;this.redraw=h;this.remove=b;this.getDefaultPosition=d;this.hide=c;this.show=g;this.vType=f;function a(k,n){if(isValidKey==false){return}var t=parseInt(k.lli1.offsetWidth)/2;var m=parseInt(k.lli1.offsetHeight)/2;var q="";q+="<table cellspacing=0px cellpadding=0px>";q+="<tr width=41px>";q+="<td width=20px>";q+="<img src='"+strResURL+"images/spacer.gif' width=20px>";q+="</td>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btTop' style='cursor:pointer;' src='"+l1ll+"imagesrender/top.gif' width=20px' />";q+="</td>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";q+="</td>";q+="</tr>";q+="<tr width=41px>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btLeft' style='cursor:pointer;' src='"+l1ll+"imagesrender/left.gif' width=20px />";q+="</td>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btFit' style='cursor:pointer;' src='"+l1ll+"imagesrender/fit.gif' width=20px />";q+="</td>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btRight' style='cursor:pointer;' src='"+l1ll+"imagesrender/right.gif' width=20px />";q+="</td>";q+="</tr>";q+="<tr width=41px>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";q+="</td>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btBottom' style='cursor:pointer;' src='"+l1ll+"imagesrender/bottom.gif' width=20px />";q+="</td>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";q+="</td>";q+="</tr>";q+="<tr width=41px>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";q+="</td>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btZoomOut' style='cursor:pointer;margin-top:7px' src='"+l1ll+"imagesrender/zbaout.gif' />";q+="</td>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";
q+="</td>";q+="</tr>";q+="<tr>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";q+="</td>";q+="<td width=20px>";q+="<img class=clickcontrol id='"+k.id+"_btZoomIn' style='cursor:pointer;margin-top:3px' src='"+l1ll+"imagesrender/zbain.gif' />";q+="</td>";q+="<td width=20px>";q+="<img src="+l1ll+"imagesrender/spacer.gif width=20px>";q+="</td>";q+="</tr>";q+="</table>";var l=VUtil.CreateDivElement(k.id+"_VSmallMapControl",0,0,"auto","auto","absolute","",q);l.style.zIndex=ControlZIndex;k.lli1.appendChild(l);if(n!=undefined){if(n.anchor==V_ANCHOR_TOP_RIGHT){l.style.left=parseInt(k.lli1.offsetWidth)-n.offset.width-58+"px";l.style.top=n.offset.height+"px"}else{if(n.anchor==V_ANCHOR_TOP_LEFT){l.style.left=n.offset.width+"px";l.style.top=n.offset.height+"px"}else{if(n.anchor==V_ANCHOR_BOTTOM_RIGHT){l.style.left=parseInt(k.lli1.offsetWidth)-n.offset.width-58+"px";l.style.top=parseInt(k.lli1.offsetHeight)-n.offset.height-105+"px"}else{if(n.anchor==V_ANCHOR_BOTTOM_LEFT){l.style.left=n.offset.width+"px";l.style.top=parseInt(k.lli1.offsetHeight)-n.offset.height-142+"px"}}}}}else{l.style.left=10+"px";l.style.top=10+"px"}var r=function(){if(k.ll11!=undefined){k.ll11()}};var s=document.getElementById(k.id+"_btZoomIn");var x=document.getElementById(k.id+"_btZoomOut");var v=document.getElementById(k.id+"_btFit");var u=document.getElementById(k.id+"_btLeft");var p=document.getElementById(k.id+"_btRight");var j=document.getElementById(k.id+"_btTop");var o=document.getElementById(k.id+"_btBottom");if(browserName=="msie"||browserName=="safari"){s.onclick=function(){k.zoomIn()};s.onmouseover=function(){this.src=l1ll+"imagesrender/zbain-over.gif"};s.onmouseout=function(){this.src=l1ll+"imagesrender/zbain.gif"};x.onclick=function(){k.zoomOut()};x.onmouseover=function(){this.src=l1ll+"imagesrender/zbaout-over.gif"};x.onmouseout=function(){this.src=l1ll+"imagesrender/zbaout.gif"};v.onclick=function(){k.fitOverlays()};v.onmouseover=function(){this.src=l1ll+"imagesrender/fit-over.gif"};v.onmouseout=function(){this.src=l1ll+"imagesrender/fit.gif"};u.onclick=function(){r();k.panBy(new VSize(-t,0))};u.onmouseover=function(){this.src=l1ll+"imagesrender/left-over.gif"};u.onmouseout=function(){this.src=l1ll+"imagesrender/left.gif"};p.onclick=function(){r();k.panBy(new VSize(t,0))};p.onmouseover=function(){this.src=l1ll+"imagesrender/right-over.gif"};p.onmouseout=function(){this.src=l1ll+"imagesrender/right.gif"};j.onclick=function(){r();k.panBy(new VSize(0,-m))};j.onmouseover=function(){this.src=l1ll+"imagesrender/top-over.gif"};j.onmouseout=function(){this.src=l1ll+"imagesrender/top.gif"};o.onclick=function(){r();k.panBy(new VSize(0,m))};o.onmouseover=function(){this.src=l1ll+"imagesrender/bottom-over.gif"};o.onmouseout=function(){this.src=l1ll+"imagesrender/bottom.gif"}}else{s.addEventListener("click",function(){k.zoomIn()},false);s.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/zbain-over.gif"},false);s.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/zbain.gif"},false);x.addEventListener("click",function(){k.zoomOut()},false);x.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/zbaout-over.gif"},false);x.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/zbaout.gif"},false);v.addEventListener("click",function(){k.fitOverlays()},false);v.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/fit-over.gif"},false);v.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/fit.gif"},false);u.addEventListener("click",function(){r();k.panBy(new VSize(-t,0))},false);u.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/left-over.gif"},false);u.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/left.gif"},false);p.addEventListener("click",function(){r();k.panBy(new VSize(t,0))},false);p.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/right-over.gif"},false);p.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/right.gif"},false);j.addEventListener("click",function(){r();k.panBy(new VSize(0,-m))},false);j.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/top-over.gif"},false);j.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/top.gif"},false);o.addEventListener("click",function(){r();k.panBy(new VSize(0,m))},false);o.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/bottom-over.gif"},false);o.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/bottom.gif"},false)}this.l1lI=k;this.liII=l;this.position=n}function h(){if(isValidKey==false){return}if(this.position!=undefined){if(this.position.anchor==V_ANCHOR_TOP_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-58+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_TOP_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-58+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-105+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-142+"px"}}}}}else{this.liII.style.left=10+"px";this.liII.style.top=10+"px"}}function b(){VUtil.RemoveDivElement(this.id,this.l1lI.lli1.id)}function d(){var j=new VControlPosition(V_ANCHOR_TOP_LEFT,new VSize(10,10));return j}function c(){this.liII.style.visibility="hidden"}function g(){this.liII.style.visibility="visible"}function f(){return"VSmallMapControl"}}VSmallMapControl.prototype=new VControl();function VSmallZoomControl(e,i){this.printable=(e!=undefined)?e:false;this.lii1=(i!=undefined)?i:false;this.initialize=a;this.redraw=h;this.remove=b;this.getDefaultPosition=d;this.hide=c;this.show=g;this.vType=f;function a(n,k){if(isValidKey==false){return}var o="";o+="<table cellpadding=0px cellspacing=0px>";o+="<tr width=41px>";o+="<td width=20px>";o+="<img class=clickcontrol id='"+n.id+"_btZoomOut' style='cursor:pointer;'  src='"+l1ll+"imagesrender/zbaout.gif' />";o+="</td>";o+="<td>";o+="<img src=imagesrender/spacer.gif width=1px>";o+="</td>";o+="</tr>";o+="<tr>";o+="<td width=20px>";o+="<img class=clickcontrol id='"+n.id+"_btZoomIn' style='cursor:pointer;'  src='"+l1ll+"imagesrender/zbain.gif' />";o+="</td>";o+="</tr>";o+="</table>";var m=VUtil.CreateDivElement(n.id+"_VSmallZoomControl",0,0,"auto","auto","absolute","",o);m.style.zIndex=ControlZIndex;n.lli1.appendChild(m);if(k!=undefined){if(k.anchor==V_ANCHOR_TOP_RIGHT){m.style.left=parseInt(n.lli1.offsetWidth)-k.offset.width-18+"px";m.style.top=k.offset.height+"px"}else{if(k.anchor==V_ANCHOR_TOP_LEFT){m.style.left=k.offset.width+"px";m.style.top=k.offset.height+"px"}else{if(k.anchor==V_ANCHOR_BOTTOM_RIGHT){m.style.left=parseInt(n.lli1.offsetWidth)-k.offset.width-18+"px";m.style.top=parseInt(n.lli1.offsetHeight)-k.offset.height-36+"px"}else{if(k.anchor==V_ANCHOR_BOTTOM_LEFT){m.style.left=k.offset.width+"px";m.style.top=parseInt(n.lli1.offsetHeight)-k.offset.height-73+"px"}}}}}else{m.style.left=10+"px";m.style.top=10+"px"}var j=document.getElementById(n.id+"_btZoomIn");var l=document.getElementById(n.id+"_btZoomOut");if(browserName=="msie"){j.onclick=function(){n.zoomIn()};j.onmouseover=function(){this.src=l1ll+"imagesrender/zbain-over.gif"};j.onmouseout=function(){this.src=l1ll+"imagesrender/zbain.gif"};l.onclick=function(){n.zoomOut()};l.onmouseover=function(){this.src=l1ll+"imagesrender/zbaout-over.gif"};l.onmouseout=function(){this.src=l1ll+"imagesrender/zbaout.gif"}}else{j.addEventListener("click",function(){n.zoomIn()},false);j.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/zbain-over.gif"},false);j.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/zbain.gif"
},false);l.addEventListener("click",function(){n.zoomOut()},false);l.addEventListener("mouseover",function(){this.src=l1ll+"imagesrender/zbaout-over.gif"},false);l.addEventListener("mouseout",function(){this.src=l1ll+"imagesrender/zbaout.gif"},false)}this.l1lI=n;this.liII=m;this.position=k}function h(){if(this.position!=undefined){if(this.position.anchor==V_ANCHOR_TOP_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-18+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_TOP_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=this.position.offset.height+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_RIGHT){this.liII.style.left=parseInt(this.l1lI.lli1.offsetWidth)-this.position.offset.width-18+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-36+"px"}else{if(this.position.anchor==V_ANCHOR_BOTTOM_LEFT){this.liII.style.left=this.position.offset.width+"px";this.liII.style.top=parseInt(this.l1lI.lli1.offsetHeight)-this.position.offset.height-73+"px"}}}}}else{this.liII.style.left=10+"px";this.liII.style.top=10+"px"}}function b(){VUtil.RemoveDivElement(this.id,this.l1lI.lli1.id)}function d(){var j=new VControlPosition(V_ANCHOR_TOP_LEFT,new VSize(10,10));return j}function c(){this.liII.style.visibility="hidden"}function g(){this.liII.style.visibility="visible"}function f(){return"VSmallZoomControl"}}VSmallZoomControl.prototype=new VControl();function VStep(){this.StartIndex=-1;this.EndIndex=-1;this.Latlng=null;this.IjI="";this.Distance=0;this.Unit="";this.Name="";this.l1li="";this.StartAt=null;this.getLatLng=c;this.getPolylineIndex=a;this.getDescriptionHTML=g;this.getDistance=e;this.getUnit=h;this.getDuration=b;this.getDirection=d;this.vType=f;function c(){return this.StartAt}function a(){return this.StartIndex}function g(){return this.IjI}function e(){return(this.Distance)}function h(){return(this.Unit)}function b(){}function d(){return this.l1li}function f(){return"VStep"}}function VText(a,k,e,g){this.latlngs=a;this.text=(k!=undefined)?k:"vietbando";this.textStyle=(e!=undefined)?e:new VTextStyle();this.textOptions=(g!=undefined)?g:new VTextOptions();this.initialize=b;this.createText=q;this.remove=s;this.copy=n;this.redraw=o;this.openInfoWindow=h;this.enableDragging=f;this.disableDragging=j;this.getLatLng=m;this.setText=p;this.hide=i;this.show=r;this.isHidden=d;this.vType=c;if(typeof this.latlngs=="string"){var l=this.latlngs.split(",");this.latlngs=new VLatLng(l[1],l[0])}function b(t){this.l1lI=t;this.createText(t,false)}function q(y,A){var x=document.getElementById(y.id+"_path");var u;if(!A){u=document.createElement("div");this.id=y.id+"_VText";u.id=y.id+"_VText";u.style.overflow="visible";u.style.position="absolute";u.className="dragtext";u.llIl=this;x.childNodes[0].appendChild(u);this.liII=u}else{u=this.liII}var z="<a id='"+y.id+"_VTextCt' style='cursor:pointer; font-size:"+this.textStyle.fontSize+"px; font-weight:"+this.textStyle.fontWeight+"; color:"+this.textStyle.color+"; font-family:"+this.textStyle.fontFamily+";'>"+this.text+"</a>";u.innerHTML=z;var t=document.createElement("div");t.id="divtemp";t.innerHTML=z;t.style.overflow="visible";t.style.position="absolute";document.body.appendChild(t);var w=t.offsetWidth;var v=t.offsetHeight;document.body.removeChild(t);u.style.width=w+"px";u.style.height=v+"px";if(this.textOptions.offset==null){this.textOptions.offset=new VSize(this.liII.offsetWidth/2,this.liII.offsetHeight/2)}this.redraw()}function s(){this.liII.parentNode.removeChild(this.liII)}function n(){return new VText(this.latlngs,this.text,this.textStyle)}function o(){var t=this.l1lI.fromLatLngToDivPixel(this.latlngs);this.liII.style.left=(t.x-this.textOptions.offset.width)+"px";this.liII.style.top=(t.y-this.textOptions.offset.height)+"px"}function h(u,t){this.bOpenedInfoWindow=true;if(this.l1lI.ll11!=undefined){this.l1lI.ll11()}if(t==undefined){t=new VInfoWindowOptions()}this.l1lI.openInfoWindow(this.latlngs,u,t)}function f(){this.textOptions.draggable=true;this.liII.draggable=1}function j(){this.textOptions.draggable=false;this.liII.draggable=0}function m(){return this.latlngs}function p(v,u,t){this.text=(v!=undefined)?v:"vietbando";this.textStyle=(u!=undefined)?u:new VTextStyle();this.textOptions=(t!=undefined)?t:new VTextOptions();this.createText(this.l1lI,true)}function i(){this.liII.style.visibility="hidden"}function r(){this.liII.style.visibility="visible"}function d(){if(this.liII.style.visibility=="hidden"){return true}return false}function c(){return"VText"}}VText.prototype=new VOverlay();function VTextOptions(a,b){this.draggable=(a!=undefined)?a:false;this.offset=(b!=undefined)?b:null;this.vType=function(){return"VTextOptions"}}function VKeyboardHandler(a){if(a==undefined){return}this.l1lI=a;VEvent.addDOMListener(document,"keydown",function(i){if(!a.bMapActive){return}var b=(browserName!="msie")?"HTML":"BODY";var d=(browserName!="msie")?i.target:event.srcElement;if(d.tagName=="INPUT"||d.tagName=="TEXTAREA"){return}var c=parseInt(a.lli1.offsetWidth)/2;var f=parseInt(a.lli1.offsetHeight)/2;var g=(window.event)?event.keyCode:i.keyCode;switch(g){case 37:a.panBy(new VSize(-10,0));break;case 38:a.panBy(new VSize(0,-10));break;case 39:a.panBy(new VSize(10,0));break;case 40:a.panBy(new VSize(0,10));break;case 33:a.panBy(new VSize(0,-f));break;case 34:a.panBy(new VSize(0,f));break;case 36:a.panBy(new VSize(-c,0));break;case 35:a.panBy(new VSize(c,0));break;case 107:a.zoomIn();break;case 109:a.zoomOut();break;case 106:a.fitOverlays();break}});this.vType=function(){return"VKeyboardHandler"}}function VArrow(a,y,s,p,d){if(a==undefined){return}this.latlngs=a;this.position=(y==undefined)?"end":y;this.color=(s==undefined)?"red":s;this.width=(p==undefined)?2:p;this.opacity=(d==undefined)?0.6:d;this.arrArrows=new Array();this.nArrows=0;this.liii=false;this.isDirectionObj=false;this.initialize=b;this.drawLines=e;this.calculateViewCoor=w;this.drawArrow=k;this.removeLines=c;this.remove=z;this.copy=r;this.redraw=u;this.setLatLngs=n;this.hide=o;this.show=x;this.isHidden=g;this.supportsHide=h;this.vType=f;if(typeof this.latlngs=="object"){if(typeof this.latlngs[0]=="object"&&this.latlngs[0].vType==undefined){this.isDirectionObj=true;var l=new Array();for(var v=0;v<this.latlngs.length;v++){l[v]=new Array();for(var t=0;t<this.latlngs[v].length;t+=2){var q=new VLatLng(this.latlngs[v][t+1],this.latlngs[v][t]);l[v].push(q)}}this.latlngs=l}}else{if(typeof this.latlngs=="string"){var m=this.latlngs.split(",");this.latlngs=new Array();var t=0;for(var v=0;v<m.length;v+=2){this.latlngs[t]=new VLatLng(parseFloat(m[v+1]),parseFloat(m[v]));t++}}}function b(i){this.l1lI=i;this.drawLines(i,true)}function e(T,C){if(!this.liii){if(C){this.calculateViewCoor()}if(!this.isDirectionObj){var I=new Array();I[0]=this.liI;this.liI=I}if(this.liI.length==0){this.removeLines();return}var M=document.getElementById(T.id+"_path");if(this.liI.length<this.nArrows&&this.liI.length>0){var H=(browserName=="msie")?M.childNodes[1]:M.childNodes[1].childNodes[0];for(var P=this.liI.length;P<this.nArrows;P++){H.removeChild(this.arrArrows[P]);this.arrArrows[P]=null}this.nArrows=this.liI.length}var S,A,R,j,F,E,B=true;for(var O=0;O<this.liI.length;O++){for(var P=0;P<this.liI[O].length-3;P+=2){B=true;S=this.liI[O][P];A=this.liI[O][P+1];R=this.liI[O][P+2];j=this.liI[O][P+3];if(this.position=="middle"){R=(this.liI[O][P+2]+this.liI[O][P])/2;j=(this.liI[O][P+3]+this.liI[O][P+1])/2}if(P==0){F=R;E=j}else{if(VUtil.Distance(F,E,R,j)<10000||VUtil.Distance(S,A,R,j)<600){B=false}else{F=R;E=j}}if(browserName=="msie"){if(this.arrArrows[P]==null||this.arrArrows[P]==undefined){var V=document.createElement("v:polyline");this.arrArrows[this.nArrows]=V;this.nArrows++;V.className="dragline";V.strokecolor=this.color;V.strokeweight=this.width;V.filled="t";V.fillcolor=this.color;V.strokeopacity=this.opacity;V.fillopacity=this.opacity;var D=document.createElement("v:stroke");
D.fillopacity=this.opacity;D.opacity=this.opacity;D.endcap="square";D.joinstyle="miter";V.appendChild(D);var L=document.createElement("v:fill");L.fillopacity=this.opacity;L.opacity=this.opacity;V.appendChild(L);M.childNodes[1].appendChild(V);V.style.cursor="pointer"}if(B){this.arrArrows[P/2].points.value=this.drawArrow(S,A,R,j)}else{this.arrArrows[P/2].points.value=""}}else{var U=M.childNodes[1].childNodes[0];var K=T.lli1.offsetWidth*3;var J=T.lli1.offsetHeight*3;U.setAttribute("width",K.toString()+"px");U.setAttribute("height",J.toString()+"px");var N=T.fromContainerPixelToDivPixel(new VPoint(-T.lli1.offsetWidth,-T.lli1.offsetHeight));U.style.left=N.x.toString()+"px";U.style.top=N.y.toString()+"px";U.setAttribute("viewBox",N.x.toString()+" "+N.y.toString()+" "+K.toString()+" "+J.toString());var V;if(this.arrArrows[P]==null||this.arrArrows[P]==undefined){V=document.createElementNS("http://www.w3.org/2000/svg","path");V.setAttribute("stroke",this.color);V.setAttribute("stroke-width",this.width+1);V.setAttribute("stroke-opacity",this.opacity);V.setAttribute("stroke-linecap","square");V.setAttribute("stroke-linejoin","miter");V.setAttribute("fill-opacity",this.opacity);V.setAttribute("fill",this.color);U.appendChild(V);this.arrArrows[this.nArrows]=V;this.nArrows++;V.style.cursor="pointer"}else{V=this.arrArrows[P]}V.setAttribute("d","");if(B){var Q=this.drawArrow(S,A,R,j);var G="";G="M"+Q[0]+" "+Q[1]+" ";for(t=2;t<Q.length;t+=2){G+="L"+Q[t]+" "+Q[t+1]+" "}V.setAttribute("d",G)}}}}}}function w(){if(this.isDirectionObj){var J=new Array();for(var I=0;I<this.latlngs.length;I++){J[I]=new Array();for(var H=0;H<this.latlngs[I].length;H++){var E=this.l1lI.fromLatLngToDivPixel(this.latlngs[I][H]);J[I].push(E.x);J[I].push(E.y)}var N=new VPoint(-this.l1lI.lli1.offsetWidth*2,-this.l1lI.lli1.offsetHeight*2);var L=new VPoint(this.l1lI.lli1.offsetWidth*3,this.l1lI.lli1.offsetHeight*3);var K=this.l1lI.fromContainerPixelToDivPixel(N);var B=this.l1lI.fromContainerPixelToDivPixel(L);var D=K.x;var A=K.y;var G=B.x;var F=B.y;var C=J[I].length;if(J[I][0]<J[I][C-2]){if(D-J[I][0]>1000){J[I][0]=D}if(J[I][C-2]-G>1000){J[I][C-2]=G}}else{if(D-J[I][C-2]>1000){J[I][C-2]=D}if(J[I][0]-G>1000){J[I][0]=G}}if(J[I][1]<J[I][C-1]){if(A-J[I][1]>1000){J[I][1]=A}if(J[I][C-1]-F>1000){J[I][C-1]=F}}else{if(A-J[I][C-1]>1000){J[I][C-1]=A}if(J[I][1]-F>1000){J[I][1]=F}}}this.liI=J}else{var J=new Array();for(var I=0;I<this.latlngs.length;I++){J[I]=this.l1lI.fromLatLngToDivPixel(this.latlngs[I])}var M=new Array;for(var I=0;I<J.length;I++){M.push(J[I].x);M.push(J[I].y)}this.liI=M}}function k(L,J,i,H){var G=10;var D=0.823;var A=[];var K=[];var M=[];var j=[];var I;var B;var F;var E,C;A[0]=i;K[0]=H;M[0]=A[0]-L;M[1]=K[0]-J;j[0]=-M[1];j[1]=M[0];I=Math.sqrt(M[0]*M[0]+M[1]*M[1]);B=G/(2*I);F=G/(2*(Math.tan(D)/2)*I);E=A[0]-F*M[0];C=K[0]-F*M[1];A[1]=E+B*j[0];K[1]=C+B*j[1];A[2]=E-B*j[0];K[2]=C-B*j[1];return[E,C,A[1],K[1],A[0],K[0],A[2],K[2],E,C]}function c(){var B=document.getElementById(this.l1lI.id+"_path");var A=(browserName=="msie")?B.childNodes[1]:B.childNodes[1].childNodes[0];if(this.nArrows>0){for(var j=0;j<this.nArrows;j++){A.removeChild(this.arrArrows[j])}this.arrArrows=new Array();this.nArrows=0}}function z(){this.removeLines();this.l1lI.resetSVG()}function r(){return new VArrow(this.latlngs,this.position,this.color,this.width,this.opacity)}function u(i){this.drawLines(this.l1lI,!i)}function n(A){this.latlngs=A;if(this.isDirectionObj){var D=new Array();for(var C=0;C<this.latlngs.length;C++){D[C]=new Array();for(var B=0;B<this.latlngs[C].length;B+=2){var E=new VLatLng(this.latlngs[C][B+1],this.latlngs[C][B]);D[C].push(E)}}this.latlngs=D}else{if(typeof this.latlngs=="string"){var F=this.latlngs.split(",");this.latlngs=new Array();var B=0;for(var C=0;C<F.length;C+=2){this.latlngs[B]=new VLatLng(parseFloat(F[C+1]),parseFloat(F[C]));B++}}}this.drawLines(this.l1lI,true)}function o(){this.liii=true;this.removeLines()}function x(){this.drawLines(this.l1lI,true);this.liii=false}function g(){return this.liii}function h(){return true}function f(){return"VArrow"}}VArrow.prototype=new VOverlay();