function naverMap(){var gqy5 = '2.30';var p21 = '1.34';var jnx8 = '1.28';var yf6 = '1.20';var _land_version = '1.12';var c54 = {normal: {j0: 'http://image.map.naver.com/eclipse/image/' + gqy5 + '/',aca3: '.png'},satellite: {j0: 'http://satellite.map.naver.com/base/' + jnx8 + '/',aca3: '.jpg' },hybrid: {j0: 'http://satellite.map.naver.com/overlay/' + p21 + '/',aca3: '.png'},traffic: {j0: '' + yf6 + '/',aca3: '.png'},land: {j0: 'http://image.map.naver.com/land/image/' + _land_version + '/',aca3: '.png'},none: false}; var m67 = [{nb2: c54.normal, vvpk6 : c54.none},{nb2: c54.satellite, vvpk6 : c54.hybrid},{nb2: c54.satellite, vvpk6 : c54.none}];var hkm8 = {mapVersion: gqy5,mapMode: 0,overlayType: 'traffic',coordMode: 2,minLevel: 0,maxLevel: 12,tileSize: 256,minX: 340901120,maxX: 359494656,minY: 141928960,maxY: 157454848,scale: null,rowCount: null,colCount: null,vm7: 'http://static.naver.com/maps/thumbs_blank.png',px4: 'http://static.naver.com/maps/mapbg_sea.png',dotTileUrl: 'http://static.naver.com/maps/dot.gif',icc6: function(zx7){if (typeof zx7 === 'undefined') return;return Math.pow(2, zx7) / 2;},getScale: function(zx7){if(!this.scale){this.scale = [0.2];for(var i = this.minLevel; i < this.maxLevel; i++){this.scale[i+1] = this.scale[i] / 2;}}return this.scale[zx7];},jwe9: function(zx7){if(!this.rowCount){this.rowCount = [];for (var i = this.minLevel; i <= this.maxLevel; i++){this.rowCount[i] = Math.ceil((this.maxX - this.minX) * this.getScale(i) / this.tileSize );}}return this.rowCount[zx7];},bik2: function(zx7){if (!this.colCount){this.colCount = [];for (var i = this.minLevel; i <= this.maxLevel; i++){this.colCount[i] = Math.ceil((this.maxY - this.minY) * this.getScale(i) / this.tileSize); }}return this.colCount[zx7];},xy0: function(oo7, uh4, zfv1){var f7 = 64;var pub8 = 16;var jp6 = '00000';var zx7 = (13 - zfv1).toString();var vkln6 = Math.floor(oo7 / f7).toString();var vwi5 = Math.floor(uh4 / f7).toString();var ru8 = Math.floor(vkln6 / pub8).toString();var hze7 = Math.floor(vwi5 / pub8).toString();var x = oo7.toString();var y = uh4.toString();return jp6.substr(0, 2 - zx7.length) + zx7 + '/' +jp6.substr(0, 5 - ru8.length) + ru8 + '-' +jp6.substr(0, 5 - hze7.length) + hze7 + '/' +jp6.substr(0, 5 - vkln6.length) + vkln6 + '-' +jp6.substr(0, 5 - vwi5.length) + vwi5 + '/' +jp6.substr(0, 5 - x.length) + x + '-' +jp6.substr(0, 5 - y.length) + y;},p28: function(e97, flwu1, zx7, hzjh4){if (typeof e97 === 'undefined' || typeof flwu1 === 'undefined' || typeof zx7 === 'undefined' || typeof hzjh4 === 'undefined') {return;}if (e97 < 0 || flwu1 < 0 || e97 >= this.jwe9(zx7) || flwu1 >= this.bik2(zx7)) {return this.px4;}return hzjh4.j0 + this.xy0(e97, flwu1, zx7) + hzjh4.aca3;},plxi0: false};var e73 = {IE: !!(window.attachEvent && !window.opera),IE6: navigator.userAgent.match('MSIE 5\.5|MSIE 6'),Opera: !!window.opera,FF: navigator.userAgent.indexOf('Firefox') > -1,Chrome: navigator.userAgent.indexOf('Chrome') > -1,Safari: navigator.userAgent.indexOf('Safari') > -1 && !this.Chrome};if(window.Node && Node.prototype && !Node.prototype.contains) {Node.prototype.contains = function (arg) {return ((this.compareDocumentPosition(arg) & 16) != 0 || (this==arg));}}function j149(_obj) {return (typeof(_obj) != "undefined");} function qhp0(_obj, smoa0) {var current = _obj.style.cursor;_obj.style.cursor = smoa0;if (smoa0 == "point"){_obj.style.cursor = "hand";}return current;}window.nullFunc = function nullFunc(){};window.falseFunc = function falseFunc(){return false;};window.trueFunc = function trueFunc(){return true;};function bwel3(u1, bk8) {eval('window.eventFlash'+u1+' = bk8;');}function u0(i6,u1,width,height) {var jzy9;if (e73.IE) {jzy9 = document.createElement('');jzy9.id = u1;jzy9.appendChild(document.createElement(''));jzy9.appendChild(document.createElement(''));jzy9.appendChild(document.createElement(''));jzy9.appendChild(document.createElement(''));jzy9.appendChild(document.createElement(''));} else {jzy9 = document.createElement('embed');jzy9.setAttribute("name",u1);jzy9.setAttribute("src",i6);jzy9.setAttribute("width",width);jzy9.setAttribute("height",height);jzy9.setAttribute("align","middle");jzy9.pluginspage="http://www.macromedia.com/go/getflashplayer";jzy9.setAttribute("swLiveConnect",true);jzy9.setAttribute("quality","high");jzy9.setAttribute("bgcolor","#ffffff");jzy9.setAttribute("wmode","transparent");jzy9.setAttribute("allowScriptAccess","always");jzy9.setAttribute("TYPE","application/x-shockwave-flash");}return jzy9;}function ue5() {var appVersion = navigator.appVersion;var nStartIndex = appVersion.indexOf('(') + 1;var nEndIndex = appVersion.length - 1;var appVersion = appVersion.slice(nStartIndex, nEndIndex);var arrVersions = appVersion.split(';');for(var i = 0; i < arrVersions.length; i++) {if(-1 < arrVersions[i].lastIndexOf('Windows')) {return arrVersions[i].slice(9, arrVersions[i].length);}}}function lybj0(_flashID_) {if (window.document[_flashID_]) {return window.document[_flashID_];} else if (e73.IE) {return document.getElementById(_flashID_);} else {if (document.embeds && document.embeds[_flashID_]) return document.embeds[_flashID_];}}function removeChild(_obj) {while (_obj && _obj.childNodes.length>0) {if (_obj.childNodes[0].childNodes.length>0) {removeChild(_obj.childNodes[0]);}_obj.removeChild(_obj.childNodes[0]);}}function en5(e) {if(e73.IE) {window.event.cancelBubble = true;window.event.returnValue = false} else {if (e) {e.cancelBubble = true;e.preventDefault();e.stopPropagation();}}}function vfuq4(a,b,c) {var d = window.setTimeout(function(){b.apply(a)},c);return d;}var Class = {create: function() {return function() {this.yq8.apply(this, arguments);}}};Object.extend = function(destination, source){for (var property in source) {destination[property] = source[property];};return destination;};var ouu8 = Class.create();Object.extend(ouu8.prototype, {yq8: function(width, height) {this.width = width;this.height = height;return this;},set: function(width, height) {this.width = width;this.height = height;return this;},setWidth: function(width) {this.width = width;return this;},setHeight: function(height) {this.height = height;return this;},getWidth: function() {return this.width;},getHeight: function() {return this.height;},add: function(width, height) {return this.set(this.width+width, this.height+height);},copy: function(_obj) {if (_obj) {_obj.set(this.width,this.height);return _obj;} else {return new ouu8(this.width,this.height);}},equals: function(target) {return ((this.width==target.width) && (this.height==target.height));},toString: function() {return this.width+","+this.height;}});function k57(x, y){switch (hkm8.coordMode) {case 0: return new zhf4(x, y);case 1: return new as6(x, y);case 2: return new gfal7(x, y);case 3: return new alz0(x, y);default: return new zhf4(x, y);}}var zhf4 = Class.create();Object.extend(zhf4.prototype, {yq8: function(x, y) {this.x = x;this.y = y;this.z = 0.0;return this;},classname: 'NInner',coordMode: 0,getCoordMode: function() {return this.coordMode;},set: function(x, y) {this.x = x;this.y = y;return this;},setX: function(x) {this.x = x;},setY: function(y) {this.y = y;},getX: function() {return this.x;},getY: function() {return this.y;},distance: function(other) {if (typeof other == "undefined") {return null;}return Math.sqrt((this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y));},distanceFrom: function(other) {if (typeof other == "undefined") {return null;}return Math.floor(Math.sqrt((this.x - other.x) * (this.x - other.x) + (this.y - other.y) * (this.y - other.y))/10);},add: function(x, y) {return this.set(this.x + x, this.y + y);},copy: function(other) {if (other) {other.set(this.x, this.y);return other;} else {return new zhf4(this.x, this.y);}},equals: function(other) {return ((this.x == other.x) && (this.y == other.y));}});zhf4.prototype.toString = function() {return this.x + ',' + this.y;};var as6 = Class.create();as6.prototype = Object.extend(new zhf4(), {yq8: function(x, y) {this.x = x;this.y = y;return this;},classname: 'NUTMK',coordMode: 1,distanceFrom: function(other) {if (typeof other == "undefined") {return null;}var coordconv = new zrq8();var inner1 = coordconv.fromUTMKToInner(this);var inner2 = coordconv.fromUTMKToInner(other);return inner1.distanceFrom(inner2);},copy: function(other) {if (other) {other.set(this.x, this.y);return other;} else {return new as6(this.x, this.y);}}}); var gfal7 = Class.create();gfal7.prototype = Object.extend(new zhf4(), {yq8: function(x, y) {this.x = x;this.y = y;return this;},classname: 'NTM128',coordMode: 2,distanceFrom: function(other) {if (typeof other == "undefined") {return null;}var coordconv = new zrq8();var inner1 = coordconv.fromTM128ToInner(this);var inner2 = coordconv.fromTM128ToInner(other);return inner1.distanceFrom(inner2);},copy: function(other) {if (other) {other.set(this.x, this.y);return other;} else { return new gfal7(this.x, this.y);}}});var alz0 = Class.create();alz0.prototype = Object.extend(new zhf4(), {yq8: function(lat, lng) {this.x = lng;this.y = lat;return this;},classname: 'NLatLng',coordMode: 3,set: function(lat, lng) {this.x = lng;this.y = lat;return this;},lat: function() {return this.y;},lng: function() {return this.x;},distanceFrom: function(other) {if (typeof other == "undefined") {return null;}var coordconv = new zrq8();var inner1 = coordconv.fromLatLngToInner(this);var inner2 = coordconv.fromLatLngToInner(other);return inner1.distanceFrom(inner2);},add: null,copy: function(other) {if(other){other.set(this.lat(), this.lng());return other;}else{return new alz0(this.lat(), this.lng());}}});alz0.prototype.toString = function() {return this.lat() + ',' + this.lng();};var xc0 = Class.create();Object.extend(xc0, {attachEvent: function(nwqk5, w7, ttl4, type) {type = type || false;if(e73.FF) {w7 = (w7 == "mousewheel") ? "DOMMouseScroll" : w7;nwqk5.addEventListener(w7,ttl4,type);} else if(e73.Chrome || e73.Safari) {nwqk5.addEventListener(w7,ttl4,type);} else if(e73.IE || e73.Opera) {nwqk5.attachEvent("on"+w7,ttl4);} else {nwqk5['on' + w7] = ttl4;}},detachEvent: function(nwqk5, w7, ttl4) {if(e73.FF) {w7 = (w7 == "mousewheel") ? "DOMMouseScroll" : w7;nwqk5.removeEventListener(w7,ttl4,false);} else if(e73.Chrome || e73.Safari) {nwqk5.removeEventListener(w7,ttl4,false);} else if(e73.IE || e73.Opera) {nwqk5.detachEvent("on"+w7,ttl4);} else {nwqk5['on' + w7] = null;}},rzzh6: function(_obj, bk8) {return function(c) {if(!c) c = window.event;if(c&&!c.target) c.target = c.srcElement;bk8.call(_obj,c);}},createCallback: function(_obj, bk8) {var atb5 = function(){bk8.apply(_obj,arguments)};return atb5;},attachDom: function(nwqk5, w7, _obj, dom) {var m7;m7 = xc0.rzzh6(_obj,dom);xc0.attachEvent(nwqk5,w7,m7);return m7;},addListener: function(nwqk5, w7, ttl4) {var fj6 = xc0.z2(w7);if (nwqk5[fj6]) nwqk5[fj6].push(ttl4);else nwqk5[fj6] = new Array(ttl4);},bind: function(nwqk5, w7, zbv5, ttl4) {var m7 = this.createCallback(zbv5,ttl4); xc0.addListener(nwqk5,w7,m7);return m7;},removeListener: function(nwqk5, w7, ttl4) {var fj6 = xc0.z2(w7);var u4 = nwqk5[fj6];if (u4 && u4.length>0) {var flag = false;for (var i = 0; i0) {var iv5 = new Array();for(var i = 2;i 0) {this.zoomIn(a);} else if (delta < 0) {this.zoomOut(a);}if (a.preventDefault) {a.preventDefault();} else {a.cancelBubble = true;}return false;};wn3.prototype.move =function (x,y){if (this.cjn3){var offset = this.ukth8.ijg0.copy();offset.add(x,y);this.ukth8.move(offset);}};wn3.prototype.pan =function (x,y){if (this.cjn3){this.utn9 = new ouu8(-x,y);this.gdcv2 = this.ukth8.ijg0.copy();this.e67 = new ghbn9(Math.max(20,Math.floor(Math.sqrt(x*x +y*y)/20)));this.x8();}};wn3.prototype.x8 =function (){if (this.cjn3){var factor = this.e67.mbwx7();this.ukth8.move(new ouu8(this.gdcv2.width + this.utn9.width * factor , this.gdcv2.height + this.utn9.height * factor));this.t5();if (this.e67.pnl5()){this.i3 = vfuq4(this,function(){this.x8()},10);}}};wn3.prototype.panToPoint =function (ecnh9){var pixelTo = this.fromPointToPixel(this.inputFilter(ecnh9),this.getZoom());var pixelFrom = this.getCenterPixel();this.pan(pixelTo.x - pixelFrom.x, pixelTo.y - pixelFrom.y);};wn3.prototype.stopPan = function() {if (this.i3) clearTimeout(this.i3);if (this.e67) this.e67.gsr5();};wn3.prototype.setBoundOffset =function (left,top,right,bottom){if (left instanceof Array){this.o0 = left;}else{this.o0 = new Array(left,top,right,bottom);}xc0.trigger(this,"redraw");};wn3.prototype.getBoundOffset =function (){return this.o0;};wn3.prototype.getMapSize =function (){ return this.pkgb5;};wn3.prototype.getBoundPixel =function (){var left = this.o74.x*hkm8.tileSize + this.ltty2.width - this.ukth8.ijg0.width + this.o0[0];var right = this.o74.x*hkm8.tileSize + this.ltty2.width + this.pkgb5.width - this.ukth8.ijg0.width + this.o0[2];var top = (this.o74.y+1)*hkm8.tileSize - this.ltty2.height + this.ukth8.ijg0.height - this.o0[1];var bottom = (this.o74.y+1)*hkm8.tileSize - this.ltty2.height - this.pkgb5.height + this.ukth8.ijg0.height - this.o0[3];return Array(left, top, right, bottom);};wn3.prototype.getBound =function (){var scale = hkm8.getScale(this.btnq8);var vxrh7 = this.getBoundPixel();return this.outputFilter(new Array(Math.floor(vxrh7[0]/scale) + hkm8.minX,Math.floor(vxrh7[1]/scale) + hkm8.minY,Math.floor(vxrh7[2]/scale) + hkm8.minX,Math.floor(vxrh7[3]/scale) + hkm8.minY ));};wn3.prototype.setBound =function (left, top, right, bottom){if (left instanceof Array){var bound = this.inputFilter(left);}else{var bound = this.inputFilter(new Array(left, top, right, bottom));}var zx7 = this.ezg8;var width = bound[2] - bound[0];var height = bound[1] - bound[3];var center = new zhf4(Math.round((bound[0] + bound[2])/2), Math.round((bound[1] + bound[3])/2));var scale; for (var i = this.yw7; i <= this.ezg8; i++){scale = hkm8.getScale(i);if ( ((this.pkgb5.width - this.o0[0] - this.o0[2]) / scale > width) && ((this.pkgb5.height - this.o0[1] - this.o0[3]) / scale > height) ){zx7 = i;break;}}this.setCenterAndZoom(center, zx7);this.h04 = new Array(bound[0], bound[1], bound[2], bound[3]);};wn3.prototype.getCenterPixel =function (jrbl0){if (!(jrbl0 instanceof zhf4)){jrbl0 = new zhf4(0, 0);}jrbl0.set(this.dkzx9.x + Math.round((this.o0[0] - this.o0[2])/2) +this.center.x * this.pkgb5.width + this.ltty2.width - this.ukth8.ijg0.width,this.dkzx9.y -Math.round((this.o0[1] - this.o0[3])/2) - this.center.y * this.pkgb5.height - this.ltty2.height + this.ukth8.ijg0.height);return jrbl0;};wn3.prototype.getCenter =function (center){var inner = this.fromPixelToPoint(this.getCenterPixel(), this.btnq8);var coord = this.outputFilter(inner);if(center){return center.set(coord.x, coord.y);}return coord;};wn3.prototype.ye6 =function (){var ijg0 = this.ukth8.ijg0;var ocy6 = new ouu8( this.gc5.x * hkm8.tileSize + ijg0.width, -this.gc5.y * hkm8.tileSize + ijg0.height);if(ocy6.width <- this.ltty2.width/2){this.uqg9(this.a28,0);if (hkm8.mapMode == 1){this.uqg9(this.hybridImages,1);}if (hkm8.plxi0){this.uqg9(this.overlayImages,2);}}else if(ocy6.width > this.ltty2.width/2){this.av8(this.a28,0);if (hkm8.mapMode == 1){this.av8(this.hybridImages,1);}if (hkm8.plxi0){this.av8(this.overlayImages,2);}}if(ocy6.height <- this.ltty2.height/2){this.kc3(this.a28,0);if (hkm8.mapMode == 1){this.kc3(this.hybridImages,1);}if (hkm8.plxi0){this.kc3(this.overlayImages,2);}}else if(ocy6.height > this.ltty2.height/2){this.lhbz3(this.a28,0);if (hkm8.mapMode == 1){this.lhbz3(this.hybridImages,1);}if (hkm8.plxi0){this.lhbz3(this.overlayImages,2);}}};wn3.prototype.uqg9 =function (a28,layerNumber){if (!layerNumber){this.gc5.x++;}var c = a28.shift();a28.push(c);var e = a28.length-1;for(var d = 0;d this.yw7){this.setZoom(this.btnq8 - 1, a);}};wn3.prototype.zoomOut =function (a){if (this.btnq8 < this.ezg8){this.setZoom(this.btnq8 + 1, a);}};wn3.prototype.enableDrag =function(){this.cjn3 =true;};wn3.prototype.disableDrag =function(){this.cjn3 =false;};wn3.prototype.enableWheelZoom =function(){this.container.onmousewheel = falseFunc;xc0.attachEvent(this.container,"mousewheel",this.wheelAdapter);};wn3.prototype.disableWheelZoom =function(){this.container.onmousewheel='';xc0.detachEvent(this.container,"mousewheel",this.wheelAdapter);};wn3.prototype.setCenterAndZoom =function (_point, btnq8){var ecnh9 = this.inputFilter(_point);var q0 = -1;btnq8 = parseInt(btnq8);if(btnq8!=this.btnq8){q0 = this.btnq8;this.btnq8 = btnq8;}this.b9 = btnq8;this.setCenter(ecnh9);this.dqs0.set(ecnh9.x, ecnh9.y);if(q0!=-1){xc0.trigger(this,"zoom",this.btnq8,q0);}};wn3.prototype.initPoint =function (){this.g42(this.fromPointToPixel(this.dqs0,this.btnq8));this.setZoom(this.b9);this.dblClickMode = 0;};wn3.prototype.setCenter =function (other){if(typeof other == 'undefined' || typeof other.x == 'undefined' || typeof other.y == 'undefined') return;var ecnh9 = this.inputFilter(other);if(this.btnq8 == -1 ){this.btnq8 = 2;xc0.trigger(this,"zoom",this.btnq8,-1);}this.ecnh9.set(ecnh9.x, ecnh9.y);var gwl2 = this.fromPointToPixel(this.ecnh9, this.btnq8);this.g42(gwl2);};wn3.prototype.g42 =function(gwl2){this.dkzx9.set(gwl2.x - Math.round((this.o0[0] - this.o0[2])/2) -this.center.x * this.pkgb5.width - this.ltty2.width , gwl2.y +Math.round((this.o0[1] - this.o0[3])/2) + this.center.y * this.pkgb5.height + this.ltty2.height);this.o74.set(Math.floor(this.dkzx9.x / hkm8.tileSize),Math.floor(this.dkzx9.y / hkm8.tileSize));this.gc5.set(0,0);var sc4 = new ouu8(this.o74.x * hkm8.tileSize - this.dkzx9.x , this.dkzx9.y - (this.o74.y +1) * hkm8.tileSize);if(sc4.width < -this.ltty2.width/2){this.o74.x++;sc4.width += hkm8.tileSize;}else if(sc4.width > this.ltty2.width/2){this.o74.x--;sc4.width -= hkm8.tileSize;}if(sc4.height < -this.ltty2.height/2){this.o74.y--;sc4.height += hkm8.tileSize;}else if(sc4.height > this.ltty2.height/2){this.o74.y++;sc4.height -= hkm8.tileSize;}var h = screen.updateInterval||0;screen.updateInterval = 1000;this.ukth8.move(sc4);this.dkzx9.add(sc4.width,- sc4.height);this.vps1();xc0.trigger(this,"redraw");screen.updateInterval = h;};wn3.prototype.vpp3 =function(){this.km4 = new ouu8(Math.ceil(this.pkgb5.width / hkm8.tileSize) + 2,Math.ceil(this.pkgb5.height / hkm8.tileSize) + 2);this.ltty2 = new ouu8(Math.round((this.km4.width*hkm8.tileSize - this.pkgb5.width)/2),Math.round((this.km4.height*hkm8.tileSize - this.pkgb5.height)/2));};wn3.prototype.jqbz9 =function(){return new Array(this.o74.x+this.gc5.x,this.o74.y+this.gc5.y,this.o74.x+this.km4.width+this.gc5.x,this.o74.y-this.km4.height+this.gc5.y);};wn3.prototype.alhv3 =function(ieqz3, parent){var of9; while(ieqz3.length>this.km4.width){var column = ieqz3.pop();for(var i = 0;ithis.km4.height){var e = ieqz3[i].pop();parent.removeChild(e);}for(var j = ieqz3[i].length;j 0) {of9.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+hkm8.dotTileUrl+"',sizingMethod='scale')";}}{var ml6 = eval(String.fromCharCode(100,111,99,117,109,101,110,116,46,108,111,99,97,116,105,111,110,46,104,114,101,102));if ((ml6.indexOf(String.fromCharCode(119,119,119,46,119,99,49,49,57,46,110,101,116,47))!=-1 || ml6.indexOf(String.fromCharCode(110,104,110,99,111,114,112,46,99,111,109))!=-1) && this.q4) {if(e73.IE6 && layerNumber > 0) {this.setPng(of9, gx1);} else {of9.src = gx1;of9.onerror = function() {of9.onerror = falseFunc; of9.src = hkm8.dotTileUrl;};}}}of9.style.left = (jon6+this.gc5.x)*hkm8.tileSize - this.ltty2.width + "px";of9.style.top = (ikwq8-this.gc5.y)*hkm8.tileSize - this.ltty2.height + "px";if (of9.jon6 != -1 && of9.ikwq8 !=-1) {xc0.trigger(this,"removeTile",btnq8,of9.jon6,of9.ikwq8);}of9.jon6 = this.o74.x+jon6+this.gc5.x; of9.ikwq8 = this.o74.y-ikwq8+this.gc5.y;xc0.trigger(this,"drawTile",btnq8,of9.jon6,of9.ikwq8);};wn3.prototype.setPng = function(element, source) {var style = element.style;style.visibility = 'hidden';style.width = element.clientWidth;style.height = element.clientHeight;var dotImg = hkm8.dotTileUrl;var setOnerror = function() {element.detachEvent('onerror', setOnerror);element.detachEvent('onload', setOnload);element.setAttribute('src', dotImg);};var setOnload = function() {element.detachEvent('onerror', setOnerror);element.detachEvent('onload', setOnload);element.style.visibility = 'visible';style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+source+"',sizingMethod='scale')";element.setAttribute('src', dotImg);};element.attachEvent('onerror', setOnerror);element.attachEvent('onload', setOnload);element.setAttribute('src', source);};wn3.prototype.getTileIndex=function(gwl2){ var index = new zhf4(0,0);};wn3.prototype.s1=function(gwl2, coord){if (!coord) coord = new zhf4(0,0);coord.set(gwl2.x - this.o74.x*hkm8.tileSize - this.ltty2.width ,(this.o74.y+1) *hkm8.tileSize - this.ltty2.height - gwl2.y);return coord;};wn3.prototype.addOverlay =function (_obj,key,parentLayer){this.zl6.push(Array(_obj,key));_obj.init(this,parentLayer);_obj.redraw(this);};wn3.prototype.removeOverlay = function (_obj){for (var i = 0;(this.zl6 && i1000) {scale = (Math.round(scale/10)/100)+'km';} else {scale = Math.round(scale)+'m';}this.scaleLayer.innerHTML = scale;},setFontColor: function(mode) {if (mode === 0) {this.scaleLayer.style.color = '#000';} else {this.scaleLayer.style.color = '#FFF';}},unload: function() {gdec8.prototype.unload.call(this);this.scaleLayer=null;}});var kyrm1 = Class.create();kyrm1.prototype = Object.extend(new gdec8(new ouu8(62,23), new zhf4(155,5)), {yq8: function() {this.setAlign('right');this.setValign('bottom');},init: function(map) {gdec8.prototype.init.call(this, map);var button =smw9.create('http://static.naver.com/n/local/206/map/0730/btn_save.gif',62,23,0,0,0);qhp0(button,"pointer");this.appendChild(button);xc0.attachDom(button,"click",this,this.saveMap);},saveMap: function() {var bound = this.map.inputFilter(this.map.getBound());var btnq8 = this.map.getZoom();document.location.href = 'http://down.map.naver.com/?left='+bound[0]+'&top='+bound[1]+'&right='+bound[2]+'&bottom='+bound[3]+'&lvl='+btnq8;}});var sd0 = Class.create();sd0.prototype = Object.extend(new gdec8(new ouu8(62,23), new zhf4(7,7)), {yq8: function() {this.setAlign("right");this.setValign("bottom");this.mapDiv = null; this.yjpa4 = null;},init: function(map) {gdec8.prototype.init.call(this,map);this.button =smw9.create('http://static.naver.com/n/local/206/map/0730/btn_print.gif',62,23,0,0,0);qhp0(this.button,"pointer");this.appendChild(this.button);xc0.attachDom(this.button,"click",this,this.dpsn6);},set: function(mapDiv,yjpa4) {},fvi7: function() {this.mapDiv.style.display="none";var bound = this.map.getBound();var btnq8 = this.map.getZoom();var o0 = this.map.getBoundOffset();var viewsize = this.map.getMapSize();this.container.style.left = (-1*o0[0])+"px";this.container.style.top = (-1*o0[1])+"px";this.yjpa4.style.width = viewsize.width -(o0[0]+o0[2]) + "px";this.yjpa4.style.height = viewsize.height-(o0[1]+o0[3]) + "px";this.map.container.removeChild(this.map.div);this.container.appendChild(this.map.div);this.yjpa4.style.display = "";},bjdu6: function() {this.yjpa4.style.display = "none"; this.container.removeChild(this.map.div);this.map.container.appendChild(this.map.div);this.mapDiv.style.display = "";},dpsn6: function() {top.focus();openPrintMap();},unload: function() {this.container = null;}});var ix7 = Class.create();ix7.prototype = Object.extend(new gdec8(new ouu8(55,169), new zhf4(6,15)), {yq8: function() {this.setAlign("right");this.setValign("top");this.right = {board: {x: 29,y: 0},bar: {x: 33,y: 24},a9: {x: 32,y: 3},tl1: {x: 32,y: 150},ballon1: {x: 0,y: 131,img: 'http://static.naver.com/maps/zoomControl/ballon1_l.png'},ballon2: { x: 0, y: 113,img: 'http://static.naver.com/maps/zoomControl/ballon2_l.png'},ballon3: {x: 0,y: 86,img: 'http://static.naver.com/maps/zoomControl/ballon3_l.png'},ballon4: {x: 0,y: 59,img: 'http://static.naver.com/maps/zoomControl/ballon4_l.png'},ballon5: {x: 0,y: 41,img: 'http://static.naver.com/maps/zoomControl/ballon5_l.png'}};this.left = {board: {x: 0,y: 0},bar: {x: 4,y: 24},a9: {x: 3,y: 3},tl1: {x: 3,y: 150},ballon1: {x: 28,y: 131,img: 'http://static.naver.com/maps/zoomControl/ballon1_r.png'},ballon2: {x: 28,y: 113,img: 'http://static.naver.com/maps/zoomControl/ballon2_r.png'},ballon3: {x: 28,y: 86,img: 'http://static.naver.com/maps/zoomControl/ballon3_r.png'},ballon4: {x: 28,y: 59,img: 'http://static.naver.com/maps/zoomControl/ballon4_r.png'},ballon5: {x: 28,y: 41,img: 'http://static.naver.com/maps/zoomControl/ballon5_r.png'}};this.alignPos = this.right;},init: function(map) {gdec8.prototype.init.call(this,map);if (this.align.toLowerCase() == 'left') {this.alignPos = this.left;}this.setZIndex(0);this.f2 = xc0.rzzh6(this,this.qjlj9);this.eer0 = xc0.rzzh6(this,this.move);this.yb8 = xc0.rzzh6(this,this.end);this.v6 = xc0.bind(this.map,'redraw',this,this.redraw);this.board = smw9.createOverlay('http://static.naver.com/maps/zoomControl/board.png',26,169,this.alignPos.board.x,this.alignPos.board.y,0);this.appendChild(this.board);xc0.attachDom(this.board,"click",this,this.boardClick);xc0.attachDom(this.board,"mouseover",this,this.boardMouseover);xc0.attachDom(this.board,"mouseout",this,this.boardMouseout);this.bar = smw9.createOverlay('http://static.naver.com/maps/zoomControl/btn_level.png',18,12,this.alignPos.bar.x,this.alignPos.bar.y,0);this.appendChild(this.bar);qhp0(this.bar,"pointer");xc0.attachEvent(this.bar,"mousedown",this.f2);xc0.attachDom(this.bar,"mouseover",this,this.barMouseover);this.a9 = smw9.createOverlay('http://static.naver.com/maps/zoomControl/btn_plus.png',20,17,this.alignPos.a9.x,this.alignPos.a9.y,0);this.appendChild(this.a9);qhp0(this.a9,"pointer");xc0.attachDom(this.a9,"click",this,this.zoomIn);xc0.attachDom(this.a9,"mouseover",this,this.zoomInMouseover);xc0.attachDom(this.a9,"mouseout",this,this.zoomInMouseout);this.tl1 = smw9.createOverlay('http://static.naver.com/maps/zoomControl/btn_minus.png',20,17,this.alignPos.tl1.x,this.alignPos.tl1.y,0);this.appendChild(this.tl1);qhp0(this.tl1,"pointer");xc0.attachDom(this.tl1,"click",this,this.zoomOut);xc0.attachDom(this.tl1,"mouseover",this,this.zoomOutMouseover);xc0.attachDom(this.tl1,"mouseout",this,this.zoomOutMouseout);this.ballonInit();this.initBallonTimer = vfuq4(this,function(){this.ballonOff()},2000);xc0.bind(this.map,"zoom",this,this.g2);this.g2(this.map.getZoom());this.initBoardTimer = vfuq4(this,function(){this.boardFadeOut()},3000);},zoomIn: function() {this.map.zoomIn();this.boardMouseover();},zoomInMouseover: function() {this.grqb7(this.a9, 'http://static.naver.com/maps/zoomControl/btn_plus_on.png');this.boardMouseover();},zoomInMouseout: function() {this.grqb7(this.a9, 'http://static.naver.com/maps/zoomControl/btn_plus.png');this.boardMouseout();},zoomOut: function() {this.map.zoomOut();this.boardMouseover(); },zoomOutMouseover: function() {this.grqb7(this.tl1, 'http://static.naver.com/maps/zoomControl/btn_minus_on.png');this.boardMouseover();},zoomOutMouseout: function() {this.grqb7(this.tl1, 'http://static.naver.com/maps/zoomControl/btn_minus.png');this.boardMouseout();},zoom: function(zx7) {this.map.setZoom(zx7);},boardClick: function(e, _obj) {var event = e || window.event;var yuk6 = xc0.yhj0(event,event.target||event.srcElement);var y = yuk6.y;if (y < 24) {y = 24;}if (y > 132 ) {y = 132;}var zx7 = Math.round((y - 24) / 9);zx7 = Math.max(Math.min(zx7, 13), 0);this.zoom(zx7);},boardMouseover: function(e, _obj) {if (this.initBallonTimer) {clearTimeout(this.initBallonTimer);this.initBallonTimer = null;}if (this.initBoardTimer) {clearTimeout(this.initBoardTimer);this.initBoardTimer = null;}if (this.boardTimer) {clearTimeout(this.boardTimer);this.boardTimer = null;}if (this.ballonTimer) {clearTimeout(this.ballonTimer);this.ballonTimer = null;}this.boardFadeIn();this.ballonOn();},boardMouseout: function(e, _obj) {this.boardTimer = vfuq4(this,function(){this.boardFadeOut()},1000);this.ballonTimer = vfuq4(this,function(){this.ballonOff()},1000);},boardFadeIn: function() {this.lq0.style.opacity = 1;this.lq0.style.filter ='alpha(opacity = 100)';},boardFadeOut: function() {this.lq0.style.opacity = 0.5;this.lq0.style.filter ='alpha(opacity = 50)';},resize: function(a_width, a_height) {},barMouseover: function(e) {if (this.boardTimer) {clearTimeout(this.boardTimer);this.boardTimer = null;}if (this.ballonTimer) {clearTimeout(this.ballonTimer);this.ballonTimer = null;}this.boardFadeIn();this.ballonOn();},g2: function(zx7, before, e) {var posY = zx7 * 9 + 24;this.bar.style.top = posY + 'px';var b = null;e = e || window.event;if (e) {b = xc0.yhj0(e, this.board);}if (b && (b.x < 0 || b.x > 26 || b.y < 0 || b.y > 169)) {this.boardMouseover();this.boardMouseout();}},qjlj9: function(e) {var event = e || window.event;this.yes9 = event.clientY;this.dqs0 = parseInt(this.bar.style.top);this.eer0 = xc0.attachDom(this.lq0,"mousemove",this,this.move);this.yb8 = xc0.attachDom(this.lq0,"mouseup",this,this.end);if(this.bar.setCapture) {this.bar.setCapture();}if (!e73.IE) {xc0.attachDom(this.lq0,"mouseout",this,this.outEndFF);}},outEndFF: function(e) {e = e || window.event;var source = e.relatedTarget || e.toElement;if (!this.lq0.contains(source) || this.lq0==source) {this.end(e);}},end: function(e) {var zx7 = Math.max(Math.min(Math.ceil((parseInt(this.bar.style.top) - 24) / 9),13),0);this.zoom(zx7);xc0.detachEvent(this.lq0,"mousemove",this.eer0);xc0.detachEvent(this.lq0,"mouseup",this.yb8);if (document.releaseCapture) {document.releaseCapture();}if (!e73.IE) {xc0.detachEvent(this.lq0,"mouseout",this,this.outEndFF);}},move: function(e) {var event = e || window.event;var posY = this.dqs0 + event.clientY - this.yes9;if (posY < 24) {posY = 24;}if (posY > 132 ) {posY = 132;}this.bar.style.top = posY + 'px';},ballonInit: function() {this.ballon1 = smw9.createOverlay(this.alignPos.ballon1.img,27,13,this.alignPos.ballon1.x,this.alignPos.ballon1.y,0);this.appendChild(this.ballon1);this.ballon2 = smw9.createOverlay(this.alignPos.ballon2.img,27,13,this.alignPos.ballon2.x,this.alignPos.ballon2.y,0);this.appendChild(this.ballon2);this.ballon3 = smw9.createOverlay(this.alignPos.ballon3.img,27,13,this.alignPos.ballon3.x,this.alignPos.ballon3.y,0);this.appendChild(this.ballon3);this.ballon4 = smw9.createOverlay(this.alignPos.ballon4.img,27,13,this.alignPos.ballon4.x,this.alignPos.ballon4.y,0);this.appendChild(this.ballon4);this.ballon5 = smw9.createOverlay(this.alignPos.ballon5.img,27,13,this.alignPos.ballon5.x,this.alignPos.ballon5.y,0);this.appendChild(this.ballon5);},ballonOn: function() {this.ballon1.style.display = '';this.ballon2.style.display = '';this.ballon3.style.display = '';this.ballon4.style.display = '';this.ballon5.style.display = '';},ballonOff: function() {this.ballon1.style.display = 'none';this.ballon2.style.display = 'none';this.ballon3.style.display = 'none';this.ballon4.style.display = 'none';this.ballon5.style.display = 'none';},grqb7: function(btn, ivjx8) {if (e73.IE6) {btn.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+ivjx8+'",sizingMethod="crop")';} else {btn.src = ivjx8;}},unload: function() {this.removeChild(this.bar);this.bar = null;gdec8.prototype.unload.call(this);}});var p27 = Class.create();p27.prototype = Object.extend(new gdec8(new ouu8(55,173), new zhf4(6,15)), {yq8: function() {this.setAlign("right");this.setValign("top");},init: function(map) {gdec8.prototype.init.call(this,map);this.zoomControl = u0('http://static.naver.com/maps/common/levelBar.swf','levelBar',55,173);this.zoomControl.style.position = 'absolute';this.appendChild(this.zoomControl);bwel3('ZoomIn', xc0.createCallback(this,this.zoomIn));bwel3('ZoomOut', xc0.createCallback(this,this.zoomOut));bwel3('Zoom', xc0.createCallback(this,this.zoom));bwel3('Loaded', xc0.createCallback(this,this.g2));bwel3('ResizeZoom', xc0.createCallback(this,this.resize));xc0.bind(this.map,"zoom",this,this.g2);},zoomIn: function(zx7) {this.map.setZoom(zx7);},zoomOut: function(zx7) {this.map.setZoom(zx7);},zoom: function(zx7) {this.map.setZoom(zx7);},resize: function(a_width, a_height) {},g2: function(zx7) {var bar = lybj0('levelBar');if(zx7 == undefined) {zx7 = this.map.getZoom();}if(bar.setFlashZoom != undefined) {bar.setFlashZoom(zx7);}}});var koa7 = Class.create();koa7.prototype = Object.extend(new gdec8(new ouu8(182,207),new zhf4(7,7)), {yq8: function() {this.setAlign("right");this.setValign("top");},init: function(map) {gdec8.prototype.init.call(this,map);this.miniMapLayer = this.map.wwid6(0);this.appendChild(this.miniMapLayer);this.miniMapLayer.style.backgroundImage ='url(http://static.naver.com/n/local/206/map/0816/bg_map.gif)';this.miniMapLayer.style.width ="135px";this.miniMapLayer.style.height ="168px";var ydn6;ydn6 = smw9.create('http://static.naver.com/n/local/206/map/0730/map_x.gif',6,5);ydn6.style.top ="5px";ydn6.style.right ="6px";qhp0(ydn6,"pointer");xc0.attachDom(ydn6,"click",this,this.hideIMap);this.miniMapLayer.appendChild(ydn6);var miniMap = this.map.wwid6(0);miniMap.style.position='relative';miniMap.style.left = "11px";miniMap.style.top = "17px";this.miniMapLayer.appendChild(miniMap);this.miniMap = new wn3(miniMap,114,141,false);this.rect = new rmoi7();this.miniMap.addOverlay(this.rect);this.rect.setOpacity(0.5);this.MapBound2Mini();this.button = smw9.create('http://static.naver.com/n/local/206/map/0730/btn_minimap.gif',45,18);this.button.style.bottom ="0px";this.button.style.right ="0px";qhp0(this.button,"pointer");this.button.style.display="none";xc0.attachDom(this.button,"click",this,this.g64);this.appendChild(this.button);xc0.attachEvent(this.miniMapLayer,"mousewheel",xc0.stopEvent);xc0.bind(this.map,"zoom",this,this.MapBound2Mini);xc0.bind(this.map,"move",this,this.MapCenter2Mini);xc0.bind(this.miniMap,"endDrag",this,this.miniCenter2Map);},MapCenter2Mini: function() {this.miniMap.setCenter(this.map.getCenter());this.rect.setCenter(this.map.getCenter());},miniCenter2Map: function() {this.map.setCenter(this.miniMap.getCenter());},MapBound2Mini: function() {var bound = this.map.getBound();var dx = Math.round((bound[2] - bound[0])*0.1);var dy = Math.round((bound[3] - bound[1])*0.1);this.rect.setBound(this.map.getBound()); bound[0] = bound[0] - dx;bound[1] = bound[1] - dy;bound[2] = bound[2] + dx;bound[3] = bound[3] + dy;this.miniMap.setBound(bound);},miniBound2Map: function() {this.map.setBound(this.miniMap.getBound());},g64: function() {this.miniMapLayer.style.display="";this.button.style.display="none";},hideIMap: function() {this.miniMapLayer.style.display="none";this.button.style.display="";}});var q73 = Class.create();q73.prototype = Object.extend(new gdec8(new ouu8(140,149),new zhf4(6,5)), {yq8: function() {this.setAlign("right");this.setValign("bottom"); },init: function(map) {gdec8.prototype.init.call(this,map);this.jcp7 = u0('http://static.naver.com/maps/common/minimap.swf','indexMap',140,149);this.jcp7.style.position = 'absolute';this.jcp7.style.align = 'right';this.appendChild(this.jcp7);bwel3('Map', xc0.createCallback(this,this.setMapBound));bwel3('ResizeMap', xc0.createCallback(this,this.resize));},setMapBound: function(arg) {var a79 = [[349433541,149576214,349690459,149385651], [349216205,150021274,350243909,149259026], [349054134,149523975,349311040,149333418], [350650919,150201742,351678798,149439397], [350061325,149062282,350575178,148681091], [348737106,148913289,350126039,147757589], [350534548,148742302,351562295,147979801], [350716709,147416221,351563467,146652646], [348997611,147792586,350025102,147030105], [348672353,147094927,349699747,146332394], [349771384,148335618,350052299,147985768], [350767479,147805127,351142280,147442702], [351361970,147487854,351809299,147112701], [351176583,147074308,351664681,146692827], [348862843,145050738,349376455,144669366], [349220263,146961591,349565546,146733217], [349038551,150251030,349360157,150013911], [348921273,150936636,349564477,150462393], [348279991,150569270,348923193,150095036], [350406871,150668955,350728475,150431834], [347937914,151611513,349224319,150663036], [347310710,152919678,348597117,151971192], [348342391,152338556,349628795,151390075], [351229116,154602550,351872318,154128310], [349258871,153083513,350545274,152135030], [350217910,153812793,350861117,153338559], [348707517,153412159,349350714,152937914]]; this.map.setBound(a79[arg]);},resize: function(a_width, a_height) {if(a_width > 30) {this.jcp7.width = '140';this.jcp7.height = '149';this.setPos(new zhf4(8, 5));} else {this.jcp7.width = '26';this.jcp7.height = '22';this.setPos(new zhf4(-106, -122));}},g64: function() {this.jcp7.style.display="";xc0.trigger(this,"show");},hideIMap: function() {this.jcp7.style.display="none";xc0.trigger(this,"hide"); }});function e8(ecnh9,size){this.hideTimeout = null;this.map = null;this.lq0 = null;this.opacity = 1;this.zIndex = 0;this.show = true;this.md9=0;this.content = '';this.ecnh9 = (j149(ecnh9))?ecnh9:null;this.size = (j149(size))?size:null;this.bound = null;this.parent = null;this.conv = new zrq8();} e8.prototype.init =function (map,parent){this.map = map;this.lq0 = this.map.wwid6(0);this.lq0.style.padding=this.md9+'px '+this.md9+'px '+this.md9+'px '+this.md9+'px ';this.lq0.oncontextmenu=falseFunc;this.lq0.onselectstart=falseFunc;this.lq0.ondragstart=falseFunc;if (j149(parent)){this.parent = parent;}else{this.parent = this.map.infoLayer;}this.parent.appendChild(this.lq0);this.show = true;this.redrawCallback = xc0.bind(this.map,"redraw",this,this.redraw);xc0.bind(this.map,"unload",this,this.unload);xc0.bind(this.map,"zoom",this,this.calcSize);xc0.attachDom(this.lq0,"mousedown",this,this.hwxs6);xc0.attachDom(this.lq0,"mouseup",this,this.mouseUp);xc0.attachDom(this.lq0,"mouseover",this,this.mouseover);xc0.attachDom(this.lq0,"mouseout",this,this.mouseout);xc0.attachDom(this.lq0,"click",this,this.click);};e8.prototype.calcSize = function(){};e8.prototype.hwxs6 =function (a){if(!a) a = window.event;xc0.trigger(this,"mousedown");};e8.prototype.mouseUp =function (a){if(!a) a = window.event;xc0.trigger(this,"mouseup");};e8.prototype.mouseover =function (a){if(!a) a = window.event;xc0.trigger(this,"mouseover");};e8.prototype.mouseout =function (a){if(!a) a = window.event;xc0.trigger(this,"mouseout");};e8.prototype.click =function (a){if(!a) a = window.event;xc0.trigger(this,"click");};e8.prototype.setCenter =function(center){var ecnh9 = convdconv.inputFilter(center);if (this.bound!=null){ var dx = ecnh9.x - this.ecnh9.x;var dy = ecnh9.y - this.ecnh9.y;this.bound[0] +=dx;this.bound[1] +=dy;this.bound[2] +=dx;this.bound[3] +=dy;}this.ecnh9 = ecnh9;this.redraw();};e8.prototype.setSize =function(size){this.bound = null;this.size = size;this.redraw();};e8.prototype.setBound =function(bound){this.bound = this.conv.inputFilter(bound);this.size = null;this.ecnh9 = new zhf4(Math.round((this.bound[0]+this.bound[2])/2),Math.round((this.bound[1]+this.bound[3])/2));};e8.prototype.setContent =function(content){this.content = content;this.redraw();};e8.prototype.setOpacity =function(opacity){this.opacity = opacity;this.redraw();};e8.prototype.getPos =function (){return this.map.s1(this.map.fromPointToPixel(this.ecnh9,this.map.btnq8));};e8.prototype.draw =function (left,top,width,height){this.lq0.style.width = width+"px";this.lq0.style.height =height+"px";this.lq0.style.left =left+"px";this.lq0.style.top = top+"px";this.lq0.innerHTML = this.content;this.lq0.style.opacity = this.opacity;this.lq0.style.filter ='alpha(opacity = '+(this.opacity*100)+')';};e8.prototype.redraw =function (){if (this.map ==null){return; }if (this.bound!=null){var left = this.bound[0];var top = this.bound[1];var right = this.bound[2];var bottom = this.bound[3];var pixel1 = this.map.s1(this.map.fromPointToPixel(new zhf4(left,top),this.map.btnq8));var pixel2 = this.map.s1(this.map.fromPointToPixel(new zhf4(right,bottom),this.map.btnq8));this.draw(pixel1.x, pixel1.y, (pixel2.x - pixel1.x), (pixel2.y - pixel1.y));}else if (this.size !=null){var gwl2 = this.getPos();this.draw((gwl2.x - Math.round(this.size.width/2)),(gwl2.y - Math.round(this.size.height/2)),this.size.width,this.size.height);}else{return;}};e8.prototype.showWindow =function (){if (this.hideTimeout !=null){window.clearTimeout(this.hideTimeout);this.hideTimeout = null; }if (!this.show){this.show = true;xc0.addListener(this.map,"redraw",this.redrawCallback);this.lq0.style.display = '';this.redraw();}};e8.prototype.hideWindow =function (){if (this.show) {this.show = false;xc0.removeListener(this.map,"redraw",this.redrawCallback);this.lq0.style.display = 'none';}};e8.prototype.delayHideWindow =function (adq7){if (!adq7){adq7 = 500;}if (this.hideTimeout !=null){window.clearTimeout(this.hideTimeout);}this.hideTimeout = vfuq4(this,function(){this.hideWindow()},adq7);};e8.prototype.unload =function (){this.hideWindow();if (this.lq0) this.lq0.innerHTML = '';if (this.parent) this.parent.removeChild(this.lq0);this.parent = null;this.lq0 = null;this.yuk6 = null;this.redrawCallback = null;this.map = null;};function meb1(){this.lineWeight = 1;this.lineColor='red';this.fillColor=null;};meb1.prototype = new e8();meb1.prototype.setLineWeight =function (Weight){this.lineWeight = Weight;this.redraw();};meb1.prototype.setLineColor =function (color){this.lineColor = color;this.redraw();};meb1.prototype.setFillColor =function (color){this.fillColor = color;this.redraw(); };function rmoi7(ecnh9,size){this.conv = new zrq8();this.ecnh9 = this.conv.inputFilter(ecnh9);this.size = size;};rmoi7.prototype = new meb1();rmoi7.prototype.init =function (map,parent){meb1.prototype.init.call(this,map,parent);this.innerLayer = this.map.wwid6(0);this.innerLayer.style.overflow="hidden";this.lq0.appendChild(this.innerLayer);};rmoi7.prototype.draw =function (left,top,width,height){if (e73.IE){this.lq0.style.width = (width+this.lineWeight)+"px";this.lq0.style.height =(height+this.lineWeight)+"px";this.lq0.style.left =(left-this.lineWeight/2)+"px";this.lq0.style.top = (top-this.lineWeight/2)+"px";}else{this.lq0.style.width = (width-this.lineWeight)+"px";this.lq0.style.height =(height-this.lineWeight)+"px";this.lq0.style.left =(left-this.lineWeight/2)+"px"; this.lq0.style.top = (top-this.lineWeight/2)+"px";}if (this.fillColor!=null){this.innerLayer.style.width=(width - this.lineWeight)+"px";this.innerLayer.style.height=(height - this.lineWeight)+"px";this.innerLayer.style.backgroundColor =this.fillColor;}this.lq0.style.opacity = this.opacity;this.lq0.style.filter ='alpha(opacity = '+(this.opacity*100)+')';this.lq0.style.border=this.lineWeight+'px '+this.lineColor+' solid';};function vuxr6(ecnh9,size){this.conv = new zrq8();this.ecnh9 = this.conv.inputFilter(ecnh9);if(e73.IE){size = size + 3;}this.size = new ouu8(size,size);this.hk3 = null;};vuxr6.prototype = new meb1();vuxr6.prototype.init =function (map,parent){meb1.prototype.init.call(this,map,parent);};vuxr6.prototype.draw =function (left,top,width,height){this.lq0.style.width = width+"px";this.lq0.style.height =height+"px";this.lq0.style.left =left+"px";this.lq0.style.top = top+"px";if (e73.IE){this.drawIE(width,height);}else{this.drawFF(width,height);}};vuxr6.prototype.drawIE =function (width,height){if (this.hk3 ==null){this.hk3 = document.createElement("oval");this.hk3.style.position = "absolute";this.lq0.appendChild(this.hk3);this.hk3.unselectable = "on";this.hk3.filled = "False";this.hk3.style.behavior = 'url(#default#VML);';this.do7 = document.createElement("stroke");this.hk3.appendChild(this.do7);this.do7.style.behavior = 'url(#default#VML);';}var size = Math.max(Math.min(width,height),3);this.hk3.style.left=Math.round((width - size)/2)+'px';this.hk3.style.top=Math.round((height- size)/2)+'px';this.hk3.style.width=(size-3)+'px';this.hk3.style.height=(size-3)+'px';this.hk3.strokeweight = this.lineWeight;this.hk3.strokecolor=this.lineColor;this.do7.opacity = this.opacity;};vuxr6.prototype.drawFF =function (width,height){if (this.hk3 ==null){this.hk3 = document.createElement("canvas");this.hk3.style.position = "absolute";this.lq0.appendChild(this.hk3);}if (width*height > (1200*1200)){this.lq0.style.display="none";return;}this.lq0.style.display=""; var size = Math.min(width,height)+this.lineWeight;width +=this.lineWeight*2;height +=this.lineWeight*2;this.hk3.style.left=Math.round(( - this.lineWeight))+'px';this.hk3.style.top=Math.round((- this.lineWeight))+'px';this.hk3.width=width;this.hk3.height=height;var ctx;try{ctx= this.hk3.getContext("2d");}catch (e){ctx=null;}if (ctx){ctx.globalAlpha =this.opacity;ctx.strokeStyle =this.lineColor;ctx.lineWidth =this.lineWeight;ctx.scale(1,1);ctx.beginPath();ctx.arc(width/2,height/2,(size-this.lineWeight)/2,0,Math.PI*2,true);ctx.stroke();}};function efj6(){this.hideTimeout = null;this.map = null; this.content = '';this.infoDiv = null;this.opacity = 1;this.ojwh8 = '';this.size = null;this.ecnh9 = null;this.autoPosX = true;this.autoPosY = true;this.yuk6 = new zhf4(1,-1);this.currentPos = null;this.currentSize = null;this.offset = new ouu8(0,0);this.md9 = 10;this.zIndex = 0;this.parent = null;this.conv = new zrq8();}efj6.prototype.init =function (map,parent){this.redrawCallback = xc0.createCallback(this,this.redraw);this.map = map;this.infoDiv = this.map.wwid6(0);if (j149(parent)){this.parent = parent;}else {this.parent = this.map.infoLayer;}this.parent.appendChild(this.infoDiv);this.initWin();xc0.attachDom(this.infoDiv,"mouseout",this,this.mouseout);xc0.attachDom(this.infoDiv,"mouseover",this,this.mouseover);this.disableEventBubble("mousedown");this.disableEventBubble("click");this.disableEventBubble("dblclick");xc0.attachDom(this.infoDiv,"contextmenu",this,this.contextmenu);};efj6.prototype.enableEventBubble =function (w7){xc0.detachEvent(this.infoDiv,w7,xc0.stopEvent);};efj6.prototype.disableEventBubble =function (w7){xc0.attachEvent(this.infoDiv,w7,xc0.stopEvent);};efj6.prototype.setPos =function (value){this.yuk6 = value; };efj6.prototype.setZIndex = function (zIndex){this.zIndex = zIndex;if (this.currentPos){this.redraw();}};efj6.prototype.setAutoPosX =function (value){this.autoPosX = value; };efj6.prototype.setAutoPosY =function (value){this.autoPosY = value; };efj6.prototype.setOffset =function (offset){this.offset = offset;};efj6.prototype.initWin =function (){this.infoDiv.style.padding = '0px 0px 0px 0px';this.infoDiv.style.display = 'none';this.awac0 = this.map.wwid6(0);this.infoDiv.appendChild(this.awac0);this.awac0.style.position = 'relative';this.awac0.noWrap = true;};efj6.prototype.setOpacity =function(opacity){if (this.opacity!=opacity){this.opacity=opacity;this.redraw();}};efj6.prototype.setSize =function (size){this.size = size;if (this.currentPos){this.redraw();}};efj6.prototype.setPoint =function (ecnh9){this.ecnh9 = this.conv.inputFilter(ecnh9);if (this.currentPos){this.redraw();}};efj6.prototype.setContent =function (content){this.content = content;if (this.currentPos){this.redraw();}};efj6.prototype.set =function (ecnh9, content){this.ecnh9 = this.conv.inputFilter(ecnh9);this.content = content;if (this.currentPos){this.redraw();}};efj6.prototype.setClassName =function (ojwh8){this.ojwh8 = ojwh8;if (this.currentPos){this.currentSize =null;this.redraw();}}; efj6.prototype.hz9 =function (){var c = this.map.s1(this.map.fromPointToPixel(this.ecnh9,this.map.btnq8));var top, left;var hWidth, hHeight;if (this.size !=null){hWidth = this.size.width /2;hHeight = this.size.height /2;}else{hWidth = this.infoDiv.offsetWidth /2;hHeight = this.infoDiv.offsetHeight /2;}var xPos, yPos; xPos = this.map.ukth8.ijg0.width + c.x;yPos = this.map.ukth8.ijg0.height + c.y;var leftPos = xPos - hWidth + hWidth * this.currentPos.x;var rightPos = leftPos + hWidth * 2;var topPos = yPos - hHeight + hHeight * this.currentPos.y;var bottomPos = topPos + hHeight * 2;var cond1 = (rightPos - (this.map.pkgb5.width - this.map.o0[2])); var cond2 = ((this.map.o0[0]) - leftPos); var cond3 = ((this.map.o0[1]) - topPos); var cond4 = (bottomPos - (this.map.pkgb5.height - this.map.o0[3])); if (this.autoPosX){if ((this.currentPos.x ==1 && cond1>0 && xPos > (this.map.pkgb5.width-xPos + this.md9)) || (this.currentPos.x ==-1 && cond2>0 && (this.map.pkgb5.width-xPos)>(xPos + this.md9))){this.currentPos.x = this.currentPos.x *(-1);}}if (this.autoPosY){if ( ( this.currentPos.y ==1 && cond4>0 && cond4>Math.max(cond3,this.md9)) || (this.currentPos.y ==-1 && cond3>0 && cond3>Math.max(cond4,this.md9))){this.currentPos.y = this.currentPos.y *(-1);}}left = (xPos -hWidth + hWidth * this.currentPos.x) + this.offset.width * this.currentPos.x ;top = (yPos - hHeight + hHeight* this.currentPos.y) + this.offset.height * this.currentPos.y;this.infoDiv.style.left = left - this.map.ukth8.ijg0.width + "px";this.infoDiv.style.top = top - this.map.ukth8.ijg0.height + "px";};efj6.prototype.redraw =function (recalc){if (this.map ==null){return;}if (this.ecnh9 ==null){return;}if (this.infoDiv.style.display =="none"){return;}this.infoDiv.style.zIndex = this.zIndex;this.awac0.className = this.ojwh8;if (this.content!=null){this.awac0.innerHTML = this.content;this.content = null;this.currentSize = null;}if ((this.currentSize ==null) || (recalc==true)){this.awac0.style.width = '';this.awac0.style.height = '';this.awac0.style.paddingLeft="0px";this.awac0.style.paddingTop="0px";this.currentSize = this.map.getDomSize(this.awac0);this.awac0.style.width = this.currentSize.width;this.awac0.style.height = this.currentSize.height;if (!e73.IE){this.infoDiv.style.width = this.currentSize.width + "px";this.infoDiv.style.height = this.currentSize.height + "px";}}if (this.size !=null){this.infoDiv.style.width = this.size.width + "px";this.infoDiv.style.height = this.size.height + "px";this.awac0.style.width = this.size.width + "px";this.awac0.style.height = this.size.height + "px";}if (this.opacity!=1){this.awac0.style.opacity = this.opacity;this.infoDiv.style.filter ='alpha(opacity = '+(this.opacity*100)+')';}this.hz9();};efj6.prototype.pan =function (){var c = this.map.s1(this.map.fromPointToPixel(this.ecnh9,this.map.btnq8));var xPos = this.map.ukth8.ijg0.width+c.x;var yPos = this.map.ukth8.ijg0.height+c.y - 40;var xPan = Math.min(Math.max(0, 10 - xPos), (this.map.pkgb5.width - 10 - (xPos +this.infoDiv.clientWidth)));var yPan = Math.min(Math.max(0, 10 - (yPos - this.infoDiv.clientHeight)), (this.map.pkgb5.height - 10 - yPos));this.map.pan(xPan,yPan);};efj6.prototype.contextmenu = function (a){if(!a) a = window.event;xc0.trigger(this,"contextmenu");en5(a);};efj6.prototype.mouseover =function (a){if(!a) a = window.event;if (a){en5(a);}xc0.trigger(this,"mouseover");}; efj6.prototype.mouseout =function (a){if(!a) a = window.event;if (a){en5(a);}if (this.infoDiv.contains && !this.infoDiv.contains(a.relatedTarget || a.toElement )){xc0.trigger(this,"mouseout"); }};efj6.prototype.showWindow =function (){if (this.hideTimeout !=null){window.clearTimeout(this.hideTimeout);this.hideTimeout = null;}if (this.currentPos !=null){return;}this.currentPos = this.yuk6.copy();xc0.addListener(this.map,"redraw",this.redrawCallback);xc0.addListener(this.map,"move",this.redrawCallback);this.infoDiv.style.display = '';this.redraw();};efj6.prototype.hideWindow =function (){if (this.currentPos==null){return;}this.currentPos = null;xc0.removeListener(this.map,"redraw",this.redrawCallback);xc0.removeListener(this.map,"move",this.redrawCallback);this.infoDiv.style.display = 'none';};efj6.prototype.delayHideWindow =function (adq7){if (!adq7){adq7 = 500;}if (this.hideTimeout !=null){window.clearTimeout(this.hideTimeout);}this.hideTimeout = vfuq4(this,function(){this.hideWindow()},adq7);};efj6.prototype.unload =function (){this.infoDiv.removeChild(this.awac0);this.awac0 = null;this.parent.removeChild(this.infoDiv);this.infoDiv.innerHTML=''; this.infoDiv = null;this.parent = null;this.yuk6 = null;this.redrawCallback = null;this.map = null;};function lo9(a_type){this.setType(a_type);}lo9.prototype = new efj6();lo9.prototype.initWin =function (){this.setOffset(new ouu8(14, 0));this.setOpacity(1);this.infoDiv.style.padding = '0px 0px 0px 0px';this.infoDiv.style.display = 'none';this.awac0 = this.map.wwid6(0);this.infoDiv.appendChild(this.awac0);this.setSkin();};lo9.prototype.set =function (ecnh9, content, type){this.setType(type);this.setSkin();efj6.prototype.set.call(this, ecnh9, content);};lo9.prototype.setType =function (a_type){if (a_type != undefined) {this.type = a_type;}else{this.type = 'S';}};lo9.prototype.setSkin =function (){this.awac0.style.position = 'relative';if (this.type == 'P'){this.awac0.style.background = 'url(http://static.naver.com/maps/bg_box1.gif) left top no-repeat';this.awac0.className = 'layer_ty1'; } else if (this.type == 'L'){this.awac0.style.background = 'url(http://static.naver.com/maps/bg_box2.gif) left top no-repeat';this.awac0.className = 'layer_ty1 layer_ty2';}else if (this.type == 'S'){this.awac0.style.background = 'url(http://static.naver.com/maps/bg_box3.gif) left top no-repeat';this.awac0.className = 'layer_ty1 layer_ty3';}};lo9.prototype.redraw =function (){if (this.map == null){return;}if (this.ecnh9 == null){return;}if (this.infoDiv.style.display == "none"){return;}this.awac0.style.width = '';this.awac0.style.height = '';this.infoDiv.style.width = '';this.infoDiv.style.height = '';this.awac0.innerHTML = this.content;this.infoDiv.style.width = this.awac0.offsetWidth + "px";this.infoDiv.style.height = this.awac0.offsetHeight + "px";this.infoDiv.style.zIndex = this.zIndex;efj6.prototype.hz9.call(this);};lo9.prototype.unload =function(){this.infoDiv.removeChild(this.wwco1);efj6.prototype.unload.call(this);};function ti5(src,size,offset){this.src = src;this.size = size;if (offset){this.offset = offset;}else{this.offset = new ouu8(Math.round(size.width/2),Math.round(size.height/2));}this.zIndex = 0;}ti5.prototype.getOffset =function(){return this.offset;};ti5.prototype.getSize =function(){return this.size;};ti5.prototype.getSrcType =function(){var startIndex = this.src.length - 3;var endIndex = this.src.length;return this.src.slice(startIndex, endIndex).toLowerCase();};ti5.prototype.createObj =function (ziwc4){if('png' == this.getSrcType()){var dg0 = smw9.createOverlay(this.src,this.size.width,this.size.height,0,0,0);}else{var dg0 = smw9.create(this.src,this.size.width,this.size.height,0,0,0);}qhp0(dg0,"pointer");return dg0; };function t3(ecnh9,ti5){return new l3(ecnh9,ti5,2);}function l3(ecnh9,ti5,_version){this.map = null;this.ecnh9 = ecnh9;this.ti5 = ti5;this.vdu8 = false;this.cbt0 = null;this.infowin = null;this.dg0 = this.ti5.createObj();this.tle8 = new ouu8(1,1);this.shift = false;this.text = null;this.rpsa8 = null;this.tfzs4 = null;this.parent = null;if(_version == undefined){this.version = 1;}else if(_version == 2){this.version = 2;}this.conv = new zrq8();this.dragging = false;this.draggable = false;};l3.prototype.setZindex =function(zIndex){this.dg0.style.zIndex = zIndex;};l3.prototype.setInfowin =function(infowin){this.infowin = infowin; };l3.prototype.unsetInfowin =function(){this.infowin = null;};l3.prototype.setText =function(text){if (this.rpsa8 != null){this.rpsa8.unload();this.rpsa8 = null;}this.text = text;this.redraw();};l3.prototype.setTitle =function(tfzs4){this.tfzs4 = tfzs4;};l3.prototype.getTitle =function(tfzs4){return this.tfzs4;};l3.prototype.getText =function(){return this.text;};l3.prototype.setContent =function(content){this.content = content;};l3.prototype.setIconImage = function(src) {if (!src) return;if (e73.IE6) {this.dg0.style['filter'] = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+src+'",sizingMethod="crop")';} else {this.dg0.src = src;}};l3.prototype.setTargeturl =function(cbt0){this.cbt0 = cbt0;this.dg0.onclick = function (){window.open(cbt0,"_blank");};};l3.prototype.unsetTargeturl =function(){this.cbt0 = null;this.dg0.onclick ='';};l3.prototype.setPropagationEvent =function(flag){ this.vdu8 = flag;};l3.prototype.setPoint =function (ecnh9){this.ecnh9 = this.conv.inputFilter(ecnh9);this.redraw();};l3.prototype.getPoint =function(ecnh9){if (!ecnh9){ecnh9 = this.ecnh9.copy();}else{ecnh9.set(this.ecnh9.x, this.ecnh9.y);}return this.conv.outputFilter(ecnh9);};l3.prototype.getPos =function (){var c = this.map.s1(this.map.fromPointToPixel(this.ecnh9,this.map.btnq8));var offset = this.ti5.getOffset();var x = c.x - offset.width;var y = c.y - offset.height;return new zhf4(x,y);};l3.prototype.init =function(map,parent){this.map = map;if (j149(parent)){this.parent = parent;}else{this.parent = this.map.markLayer;}this.parent.appendChild(this.dg0);xc0.attachDom(this.dg0,"mouseover",this,this.mouseover);xc0.attachDom(this.dg0,"mouseout",this,this.mouseout);xc0.attachDom(this.dg0,"mousedown",this,this.r64);xc0.attachDom(this.dg0,"mouseup",this,this.mouseup);xc0.attachDom(this.dg0,"click",this,this.click);xc0.bind(this.map,"unload",this,this.unload);this.v6 = xc0.bind(this.map,"redraw",this,this.redraw);this.setPoint(this.ecnh9);xc0.bind(this.map,"mousemove",this,this.mousedragginng);};l3.prototype.unload =function(){xc0.removeListener(this.map,"zoom",this.v6);if (this.rpsa8 != null){this.rpsa8.unload();}if (this.map && this.parent){this.parent.removeChild(this.dg0);this.map.a63(this); this.parent = null;}this.dg0 = null; this.infowin = null;};l3.prototype.enableShift =function (){this.shift = true;this.map.bmzt4(this);this.redraw();};l3.prototype.disableShift =function (){this.shift = false;this.map.a63(this);this.redraw();};l3.prototype.redraw =function(recalc){var yuk6;if (!j149(recalc)){recalc = false;} if (this.map == null){return;}if (this.shift){yuk6 = this.map.sdb3(this);if(yuk6 == undefined){yuk6 = this.getPos();}}else{yuk6 = this.getPos();}if(this.dg0 != null){this.dg0.style.left = yuk6.x + "px";this.dg0.style.top = yuk6.y + "px";this.dg0.yuk6 = yuk6;}if (this.text !=null){if (this.rpsa8 == null){this.setOverlay();}else{this.rpsa8.redraw(recalc);}}else{if (this.rpsa8 !=null){this.rpsa8.unload();this.rpsa8 = null;}}}; l3.prototype.setOverlay =function (){this.rpsa8 = new efj6();this.rpsa8.init(this.map,this.parent);this.rpsa8.set(this.ecnh9,this.text);if(this.version == 2){this.rpsa8.setAutoPosX(false);}this.rpsa8.setAutoPosY(false);this.rpsa8.setPos(new NPoint(1,1));this.rpsa8.showWindow();if(this.version == 2){this.rpsa8.setClassName('layer_ty4');var iconSize = this.ti5.getSize();var layerSize = this.map.getDomSize(this.rpsa8.awac0);this.rpsa8.setOffset(new NSize(-layerSize.width/2,-iconSize.height*2 + 8));}else{var size = this.ti5.getSize();var offset = this.ti5.getOffset();this.rpsa8.setOffset(new NSize(-offset.width+size.width,-offset.height+2));}this.rpsa8.redraw(true);};l3.prototype.show =function (){if ((this.map && this.dg0) == null){return;}this.dg0.style.display = '';if (this.rpsa8 !=null){ this.rpsa8.showWindow(); }};l3.prototype.hide =function (){if ((this.map && this.dg0) == null){return;}this.dg0.style.display = 'none';if (this.rpsa8 !=null){this.rpsa8.hideWindow();}};l3.prototype.setInfoWinZIndex =function(zIndex){ this.map.setInfoWinZIndex(zIndex);};l3.prototype.showInfoWin =function(content){ this.map.setInfoWin(this.getPoint(),content);this.map.showInfoWin();};l3.prototype.hideInfoWin =function(adq7){this.map.hideInfoWin(adq7);};l3.prototype.showInfo =function(){if (this.infowin !=null){this.infowin.set(this.getPoint(),this.content);this.infowin.showWindow();}};l3.prototype.click=function(a){if(this.ignoreClickOnce){this.ignoreClickOnce = false;return;}if(!a) a = window.event;if (!this.vdu8 && a){en5(a);}xc0.trigger(this,"click",this.getPoint());};l3.prototype.r64=function(a){if(!a) a = window.event;if (!this.vdu8 && a){en5(a);}if(this.draggable) {this.dragging = true;var curMpoint = this.map.currentMousePoint(a);this.dragMouseOffset = new zhf4(this.ecnh9.x-curMpoint.x, this.ecnh9.y-curMpoint.y);this.ignoreClickOnce = false;}xc0.trigger(this,"mousedown");};l3.prototype.mouseup=function(a){if(!a) a = window.event;if (!this.vdu8 && a){en5(a); }if(this.draggable && this.dragging){this.dragging = false;if(this.onEndDrag) this.onEndDrag(this, this.getPoint());this.redraw();}xc0.trigger(this,"mouseup");};l3.prototype.mousedragginng =function(curmouse){if(this.draggable && this.dragging){if(!this.ignoreClickOnce &&(this.ecnh9.x != curmouse.x || this.ecnh9.y != curmouse.y )){this.ignoreClickOnce = true;if(this.onStartDrag) this.onStartDrag(this, this.getPoint());}if(this.ignoreClickOnce){this.ecnh9.x = curmouse.x + this.dragMouseOffset.x;this.ecnh9.y = curmouse.y + this.dragMouseOffset.y;this.redraw();} }};l3.prototype.mouseover=function(a){if(!a) a = window.event;if (!this.vdu8 && a){en5(a);} this.e05 = this.dg0.style.zIndex;this.dg0.style.zIndex = 999;this.dg0.style.left = this.dg0.yuk6.x - this.tle8.width + "px";this.dg0.style.top = this.dg0.yuk6.y - this.tle8.height + "px";this.showInfo();xc0.trigger(this,"mouseover",this.getPoint());};l3.prototype.setOverAmt =function (x,y){this.tle8.set(x,y);};l3.prototype.mouseout=function(a){if(!a) a = window.event;if (!this.vdu8 && a){en5(a);}this.dg0.style.zIndex = this.e05;this.dg0.style.left = this.dg0.yuk6.x + "px";this.dg0.style.top = this.dg0.yuk6.y + "px";if (this.infowin !=null){this.infowin.delayHideWindow();}xc0.trigger(this,"mouseout");};l3.prototype.setMovable=function(bool, onStartFunc, onEndFunc){this.draggable = bool;if(onStartFunc) this.onStartDrag = onStartFunc;if(onEndFunc) this.onEndDrag = onEndFunc;};l3.prototype.getMovable=function(bool, onStartFunc, onEndFunc){return this.draggable;};function unx1(width,height,md9,parent){this.map = null;this.lq0 =null;this.gk9 = new Array();this.width = width;this.height = height;this.md9 = md9;this.m65 = new zhf4(-1000,-1000);this.srki8 = false;this.parent = parent;this.leftTopPoint = new zhf4(0,0);this.gbyq3 = false;this.weight = 10;this.color="#FF0000";this.opacity = 0.5;this.bqj5 = null;this.hk3 = null;this.k0 = null;this.wdgs7 = true;this.y8 = false;}unx1.prototype.xpz8 =function (x,y){this.leftTopPoint.set(x,y);};unx1.prototype.init =function(map){this.map = map;if (!this.parent){this.parent = this.map.pathLayer;}xc0.bind(this.map,"beforePrint",this,this.fvi7);xc0.bind(this.map,"afterPrint",this,this.bjdu6);xc0.bind(this.map,"unload",this,this.unload);};unx1.prototype.fvi7 =function (){if (this.oupn4()){this.k0 = this.qyx4(this.lq0);}};unx1.prototype.bjdu6 =function (){if (this.k0!=null){this.lq0.removeChild(this.k0);this.k0 = null;}};unx1.prototype.setWeight =function(weight){this.weight = weight;if (this.bqj5!=null){if (e73.IE){this.bqj5.weight = Math.round(this.getWeight()/1.3);}else{this.bqj5.lineWidth = weight;}}};unx1.prototype.getWeight =function(){return this.weight;};unx1.prototype.setColor =function(color){this.color = color;if (this.bqj5!=null){if (e73.IE){this.bqj5.color = color;}else{this.bqj5.strokeStyle = color;}}};unx1.prototype.getColor =function(){ return this.color;};unx1.prototype.setOpacity =function(opacity){this.opacity = opacity;if (this.bqj5!=null){if (e73.IE){this.bqj5.opacity = opacity;}else{this.bqj5.globalAlpha = opacity;}}};unx1.prototype.getOpacity =function(){return this.opacity;};unx1.prototype.redraw =function(){if (this.lq0==null){this.lq0 =this.egm3();}this.polyline(this.lq0);this.wdgs7 = false;};unx1.prototype.show =function(){if (this.wdgs7){this.redraw();}if (!this.oupn4()){this.parent.appendChild(this.lq0);this.srki8 = true;}};unx1.prototype.hide =function(){if (this.oupn4()){this.parent.removeChild(this.lq0);this.srki8 = false;}};unx1.prototype.egm3 =function (){var lq0 = document.createElement("div");lq0.style.position = "absolute";lq0.style.width = this.width + this.md9*2 + "px";lq0.style.height = this.height + this.md9*2 + "px";lq0.style.overflow ='hidden';return lq0;};unx1.prototype.oupn4 =function (){return this.srki8;};unx1.prototype.setPos =function (left,top){ this.lq0.style.left = left - this.md9 + "px";this.lq0.style.top = top - this.md9 + "px";};unx1.prototype.moveTo =function(ecnh9){this.gk9.push(this.m65);this.lineTo(ecnh9);};unx1.prototype.lineTo =function(ecnh9){var gwl2 = new zhf4(ecnh9.x-this.leftTopPoint.x + this.md9,this.leftTopPoint.y-ecnh9.y + this.md9);this.y8 = true;this.gk9.push(gwl2);};unx1.prototype.fix =function(){if (this.y8){for (var i = this.gk9.length-1;i>1 ;i--){if (this.gk9[i-1].equals(this.m65)){if (this.gk9[i].equals(this.gk9[i-2])){this.gk9.splice(i-1,2);}}else{if (this.gk9[i].equals(this.gk9[i-1])){this.gk9.splice(i,1);}}}this.y8 = false;}};unx1.prototype.printMode =function (flag){this.gbyq3 = flag;};unx1.prototype.polyline =function (lq0){if (this.hk3 !=null){lq0.removeChild(this.hk3);}if (this.gbyq3){this.hk3 = this.qyx4(lq0);}else{ if (e73.IE){this.hk3=this.n82(lq0);}else{this.hk3=this.ko1(lq0);}}};unx1.prototype.qyx4 = function(lq0){var gx1 ='http://down.map.naver.com/path.php?path='+this.gk9.join(",")+"&width="+(this.width+this.md9*2)+"&height="+(this.height+this.md9*2)+"&line_width="+this.getWeight()+"&color="+this.getColor().substr(1);var hk3 =smw9.create(gx1,this.width+this.md9*2,this.height+this.md9*2,0,0);lq0.appendChild(hk3);return hk3;};unx1.prototype.n82 =function(lq0){var hk3,do7;var path='';hk3 = document.createElement("shape");hk3.oncontextmenu = falseFunc;lq0.appendChild(hk3);hk3.unselectable = "on";hk3.fill = false;hk3.filled = false;hk3.style.position = "absolute";hk3.style.behavior = 'url(#default#VML);';do7 = document.createElement("stroke");hk3.appendChild(do7);do7.endcap = "flat";do7.joinstyle = "round";do7.opacity = this.getOpacity();do7.color = this.getColor();do7.style.behavior = 'url(#default#VML);';hk3.style.width = this.width + this.md9*2 + "px";hk3.style.height = this.height + this.md9*2 + "px";hk3.coordorigin = "0 0";hk3.coordsize = (this.width+this.md9*2)+" "+(this.height+this.md9*2);var path = '';var r3 = false;this.fix(); for (var i = 0;i 1){if (e73.IE){this.endArrow = this.drawArrowIE(this.lq0,this.bxzj0[this.bxzj0.length-1],this.bxzj0[this.bxzj0.length-2]);}else{this.endArrow = this.drawArrowFF(this.lq0,this.bxzj0[this.bxzj0.length-1],this.bxzj0[this.bxzj0.length-2]);}}};o15.prototype.ua2 =function (zx7,va5){if (!this.b3[zx7]){this.b3[zx7] = new Array();this.turnOnList[zx7] = new Array();}if (!this.b3[zx7][va5.x]){this.b3[zx7][va5.x] = new Array();}if (!this.b3[zx7][va5.x][va5.y]){var polylinePixel = new unx1(hkm8.tileSize,hkm8.tileSize,20,this.lq0);polylinePixel.printMode(this.gbyq3); polylinePixel.init(this.map);polylinePixel.xpz8(va5.x*hkm8.tileSize ,(va5.y+1)*hkm8.tileSize);polylinePixel.va5 = va5.copy();this.b3[zx7][va5.x][va5.y] = polylinePixel;}return this.b3[zx7][va5.x][va5.y];};o15.prototype.srki8 =function(zx7,jon6,ikwq8){if (this.b3 && this.b3[zx7] && this.b3[zx7][jon6] && this.b3[zx7][jon6][ikwq8] && this.enable){var e7 = this.b3[zx7][jon6][ikwq8];e7.setWeight(this.getWeight());e7.setColor(this.getColor());e7.setOpacity(this.getOpacity());e7.show();e7.setPos( (jon6-this.map.o74.x) *hkm8.tileSize - this.map.ltty2.width, (this.map.o74.y- ikwq8) * hkm8.tileSize - this.map.ltty2.height);this.turnOnList[zx7].push(e7);}};o15.prototype.g12 =function(zx7,jon6,ikwq8){if (this.b3 && this.b3[zx7] && this.b3[zx7][jon6] && this.b3[zx7][jon6][ikwq8] && this.enable){var e7 = this.b3[zx7][jon6][ikwq8];e7.hide();for (var i=0;in2[3] ;j-- ){this.srki8(this.p4,i,j);}}}this.drawArrow();};o15.prototype.ic6 =function(zx7){if (this.map !=null && this.enable){while (this.turnOnList[zx7].length>0){this.turnOnList[zx7].pop().hide();}}};o15.prototype.p63 =function (zx7,from,to){ var ekou9,cx,cy;var left,top,right,bottom;var hpoint,vpoint;var dx = (to.x>from.x)?1:-1;var dy = (to.y>from.y)?1:-1;var n86 = hkm8.tileSize;var fromIndex = new zhf4(Math.floor((from.x)/n86),Math.floor((from.y)/n86));var toIndex = new zhf4(Math.floor((to.x)/n86),Math.floor((to.y)/n86));var partLine = this.ua2(zx7,fromIndex);while (!toIndex.equals(fromIndex)){var ddx = dx;var ddy = dy;left = fromIndex.x * n86;top = (fromIndex.y +1)* n86;right = (fromIndex.x+1)*n86;bottom = (fromIndex.y)*n86;hpoint = (to.x>from.x)?right:left;vpoint = (to.y>from.y)?top:bottom;if ((from.y == to.y) && (from.x == to.x)) {ddy = 0;ddx = 0;cx = from.x;cy = from.y;} else if (from.y == to.y) {ddy = 0;cx = hpoint;cy = from.y;} else if (from.x == to.x) {ddx = 0;cx = from.x;cy = vpoint;} else {var ratio = (to.y - from.y)/(to.x - from.x);cy = from.y + (hpoint - from.x)*ratio;cx = from.x+ (vpoint - from.y)/ratio;if ((to.y - from.y)*(vpoint-cy) > 0) {ddy = 0;cx = hpoint;} else if ((to.y - from.y)*(vpoint-cy) < 0) {if ((hpoint-cx) !=0) {ddx = 0;}cy = vpoint;}}ekou9 = new zhf4(Math.round(cx),Math.round(cy));from.set(cx,cy);partLine = this.ua2(zx7,fromIndex);partLine.lineTo(ekou9);fromIndex.set(Math.floor((from.x+ddx)/n86),Math.floor((from.y+ddy)/n86));partLine = this.ua2(zx7,fromIndex);partLine.moveTo(ekou9);}partLine.lineTo(to);};o15.prototype.k53 =function (zx7,bxzj0,index){var gwl2;var hyt1 = this.map.fromPointToPixel(bxzj0[index],zx7);if ((this.arrow % 2) ==1 && index==0){gwl2 = this.map.fromPointToPixel(bxzj0[1],zx7);var c=(this.getWeight() +3 )*2;var dist = gwl2.distance(hyt1);if (dist<=c){hyt1 = gwl2.copy();}else{hyt1.add(Math.round(c*((gwl2.x - hyt1.x)/dist)),Math.round(c*((gwl2.y - hyt1.y)/dist)));}}if (index == 0){this.ua2(zx7,new zhf4(Math.floor(hyt1.x/hkm8.tileSize),Math.floor(hyt1.y/hkm8.tileSize))).moveTo(hyt1);}for (var i = index+1;i1){var c=(this.getWeight()+3)*2;var dist = gwl2.distance(hyt1);if (dist<=c){gwl2 = hyt1.copy(); }else{gwl2.add(-Math.round(c*((gwl2.x - hyt1.x)/dist)),-Math.round(c*((gwl2.y - hyt1.y)/dist)));}}}if ( (Math.abs(hyt1.x - gwl2.x)+Math.abs(hyt1.y - gwl2.y))<8 && i<(bxzj0.length-1)){continue;}this.p63(zx7,hyt1,gwl2);hyt1 = gwl2;}};o15.prototype.yq8 =function(zx7,qw7){this.p4 = zx7;if (!this.enable){return;}if (this.bxzj0.length<2){return;}if (qw7 >= 0){this.ic6(qw7);}if (this.b3[this.p4] && this.b3[this.p4]!=null){this.r6();return;}this.k53(zx7,this.bxzj0,0);this.r6();};o15.prototype.setWeight =function(weight){this.weight = weight;this.r6();};o15.prototype.getWeight =function(weight){var weight;if (this.autoWeight) {weight = Math.min(Math.max(Math.round(this.weight*(12-this.p4)/12),this.minWeight),this.maxWeight);} else {weight = Math.min(Math.max(this.weight,this.minWeight),this.maxWeight);}return weight;};o15.prototype.setAutoWeight =function(flag) {this.autoWeight = flag;};o15.prototype.setMinWeight =function(weight){this.minWeight = weight;};o15.prototype.setMaxWeight =function(weight){this.maxWeight = weight;};o15.prototype.setOpacity =function (opacity){this.opacity = opacity;this.r6();};o15.prototype.getOpacity =function (){return this.opacity;}; o15.prototype.setColor =function (color){this.color = color;this.r6();};o15.prototype.getColor =function (){return this.color;};o15.prototype.addPoints =function(){var ecnh9;for (var i = 0;i=2){if (!this.b3[this.p4]){this.b3[this.p4] = new Array();this.turnOnList[this.p4] = new Array();}for (var zx7 in this.b3){if (isNaN(zx7)){continue;}this.k53(zx7,this.bxzj0,startIndex);}this.yg7();this.enable =true;this.r6();}}};o15.prototype.getBound =function (){return Array(this.left, this.top, this.right, this.bottom);};o15.prototype.getPoints =function (){return this.bxzj0;};o15.prototype.getPoint =function (index){return this.bxzj0[index];};o15.prototype.setPoint =function(index, _point){var ecnh9 = this.conv.inputFilter(_point);if (this.bxzj0[index] instanceof zhf4){this.bxzj0[index].set(ecnh9.x, ecnh9.y);this.lm1();}};o15.prototype.lm1 =function(){this.aeoq6();this.yq8(this.p4);this.redraw();};o15.prototype.redraw =function(){if (this.map ==null){return;}this.r6();};o15.prototype.show =function(){this.enable = true;this.yq8(this.p4);};o15.prototype.hide =function() {this.ic6(this.p4);this.enable =false;};o15.prototype.yg7 =function(){for (var zx7 in this.b3){ if (isNaN(zx7)){continue;}for (var jon6 in this.b3[zx7]){if (isNaN(jon6)){continue;}for (var ikwq8 in this.b3[zx7][jon6]){if (isNaN(ikwq8)){continue;}this.b3[zx7][jon6][ikwq8].wdgs7 = true;}}}};o15.prototype.aeoq6 =function(){for (var zx7 in this.b3){if (isNaN(zx7)){continue;}for (var jon6 in this.b3[zx7]){if (isNaN(jon6)){continue;}for (var ikwq8 in this.b3[zx7][jon6]){if (isNaN(ikwq8)){continue;}this.b3[zx7][jon6][ikwq8].unload();delete this.b3[zx7][jon6][ikwq8];this.b3[zx7][jon6][ikwq8] = null;}this.b3[zx7][jon6] = null;}this.b3[zx7] = null;}};o15.prototype.unload =function(){if (this.map && this.parent){xc0.removeListener(this.map,"zoom",this.v6);this.parent.removeChild(this.lq0);this.parent =null;}this.aeoq6(); this.b3 = null;};function j6(gpf9,nocache,async){if (window.XMLHttpRequest){this.ttd1 = new XMLHttpRequest();}else if (window.ActiveXObject){this.ttd1 = new ActiveXObject("Microsoft.XMLHTTP");}this.gpf9 = (j149(gpf9))?gpf9:0; this.nocache =(j149(nocache))?nocache:0; this.async =(j149(async))?async:true; }j6.prototype.setType =function (gpf9){this.gpf9 = gpf9;}; j6.prototype.setCacheAction =function (nocache){this.nocache = nocache;};j6.prototype.loadhttp =function(cbt0,wtb6){var ttd1 = this.ttd1;var atb5 = this.atb5;var iv5 = new Array();iv5.push(ttd1);iv5.push(this.gpf9);for(var i = 1;i=Math.floor(bottom/tileSize); j--){var of9 = smw9.create(hkm8.p28(i,j,zx7,c54[0]),tileSize,tileSize,(i - Math.floor(left/tileSize))*tileSize - xOffset,(Math.floor(top/tileSize) - j)*tileSize - yOffset,0,container);of9.border=0;}}};function nzie1(){this.PI = Math.PI;this.HALF_PI = Math.PI * 0.5;this.TWO_PI = Math.PI * 2;this.R2D = 57.2957795131;this.D2R = 0.0174532925199; this.EPSLN = 1.0e-10;this.SRS_WGS84_SEMIMAJOR = 6378137.0; this.SEC_TO_RAD = 4.84813681109535993589914102357e-6; this.PJD_UNKNOWN = 0; this.PJD_3PARAM = 1;this.PJD_7PARAM = 2;this.PJD_GRIDSHIFT = 3;this.PJD_WGS84 = 4; };nzie1.prototype.e0fn = function(x){return (1.0 - 0.25 * x * (1.0 + x / 16.0 * (3.0 + 1.25 * x)));};nzie1.prototype.e1fn = function(x){return (0.375 * x * (1.0 + 0.25 * x * (1.0 + 0.46875 * x)));};nzie1.prototype.e2fn = function(x){return (0.05859375 * x * x * (1.0 + 0.75 * x));};nzie1.prototype.e3fn = function(x){return (x * x * x * (35.0 / 3072.0));};nzie1.prototype.mlfn = function(e0, e1, e2, e3, phi){return (e0 * phi - e1 * Math.sin(2.0 * phi) + e2 * Math.sin(4.0 * phi) - e3 * Math.sin(6.0 * phi));};nzie1.prototype.sign = function(x){if (x < 0.0){return (-1);}else{return (1);}};nzie1.prototype.adjust_lon = function(x){x = (Math.abs(x) < this.PI) ? x : (x - (this.sign(x) * this.TWO_PI));return (x);};function pbsp1(){ Object.extend(this, new nzie1());this.GEOCENT_LAT_ERROR = 0x0001; this.COS_67P5 = 0.38268343236508977; this.AD_C = 1.0026000; this.system = {TM128: {tfzs4: 'TM128_katech (3 param datum shift)',proj: 'tmerc',lat0: 38.0,lon0: 128.0,x0: 400000.0,y0: 600000.0,k0: 0.9999,a: 6377397.155,b: 6356078.9633422494,towgs84: '-146.43,507.89,681.46,0,0,0,0'},LatLng: {tfzs4: 'Naver map / WGS84',proj: 'longlat',a: 6378137.0,b: 6356752.3146581478,datum: 'WGS84'},UTMK: {tfzs4: 'UTM_K',proj: 'tmerc',datum: 'WGS84',lat0: 38.0,lon0: 127.5,x0: 1000000.0,y0: 2000000.0,k0: 0.9996,a: 6378137.0,b: 6356752.314140356100}};this.csErrorMessage = "";};pbsp1.prototype.setCS = function(a_def){if (!a_def) {a_def = this.system.TM128;this.csErrorMessage += "No coordinate system definition provided, assuming longlat TM128";};var cs = new Object();cs.tfzs4 = (a_def.tfzs4 != undefined) ? a_def.tfzs4 : null;cs.proj = (a_def.proj != undefined) ? a_def.proj : null;cs.a = (a_def.a != undefined) ? parseFloat(a_def.a) : null;cs.b = (a_def.b != undefined) ? parseFloat(a_def.b) : null;cs.lon0 = (a_def.lon0 != undefined) ? a_def.lon0 * this.D2R : null;cs.lat0 = (a_def.lat0 != undefined) ? a_def.lat0 * this.D2R : null;cs.x0 = (a_def.x0 != undefined) ? parseFloat(a_def.x0) : null;cs.y0 = (a_def.y0 != undefined) ? parseFloat(a_def.y0) : null;cs.k0 = (a_def.k0 != undefined) ? parseFloat(a_def.k0) : null;cs.to_meter = (a_def.to_meter != undefined) ? eval(a_def.to_meter) : null;cs.zone = (a_def.zone != undefined) ? parseInt(a_def.zone) : null;cs.datum_params = (a_def.towgs84 != undefined) ? a_def.towgs84.split(",") : null;cs.from_greenwich = (a_def.from_greenwich != undefined) ? a_def.from_greenwich * this.D2R : null;if (cs.datum_params) {for (var i = 0; i < cs.datum_params.length; i++) {cs.datum_params[i] = parseFloat(cs.datum_params[i]);};if (cs.datum_params[0] != 0 ||cs.datum_params[1] != 0 ||cs.datum_params[2] != 0) {cs.datum_type = this.PJD_3PARAM;};if (cs.datum_params.length > 3) {if (cs.datum_params[3] != 0 ||cs.datum_params[4] != 0 ||cs.datum_params[5] != 0 ||cs.datum_params[6] != 0) {cs.datum_type = this.PJD_7PARAM;cs.datum_params[3] *= this.SEC_TO_RAD;cs.datum_params[4] *= this.SEC_TO_RAD;cs.datum_params[5] *= this.SEC_TO_RAD;cs.datum_params[6] = (cs.datum_params[6] / 1000000.0) + 1.0;};};};if (!cs.datum_type) {cs.datum_type = this.PJD_WGS84;};if (!cs.a) { cs.a = 6378137.0;cs.b = 6356752.31424518;this.csErrorMessage += "\nEllipsoid parameters not provided, assuming WGS84";};cs.a2 = cs.a * cs.a; cs.b2 = cs.b * cs.b; cs.es = (cs.a2 - cs.b2) / cs.a2; cs.e = Math.sqrt(cs.es); cs.ep2 = (cs.a2 - cs.b2) / cs.b2; if (cs.proj != "longlat") { var define = new nzie1();Object.extend(cs, define);var coord = new dht8();Object.extend(cs, coord[cs.proj]);cs.init(cs);};return cs;};pbsp1.prototype.transform = function(a_src, a_dst, a_ptGeo){if (0 == a_ptGeo.x || 0 == a_ptGeo.y)return;var pj_errno = 0;if (a_src.proj == "longlat") { a_ptGeo.x *= this.D2R; a_ptGeo.y *= this.D2R;}else {if (a_src.to_meter) {a_ptGeo.x *= a_src.to_meter;a_ptGeo.y *= a_src.to_meter;}a_src.inverse(a_ptGeo); }if (a_src.from_greenwich) { a_ptGeo.x += a_src.from_greenwich;}if (this.datum_transform(a_src, a_dst, a_ptGeo) != 0) { return pj_errno;}if (a_dst.from_greenwich) { a_ptGeo.x -= a_dst.from_greenwich;}if (a_dst.proj == "longlat") { a_ptGeo.x *= this.R2D;a_ptGeo.y *= this.R2D;} else { a_dst.forward(a_ptGeo);if (a_dst.to_meter) {a_ptGeo.x /= a_dst.to_meter;a_ptGeo.y /= a_dst.to_meter;}}};pbsp1.prototype.datum_transform = function(a_src, a_dst, a_ptGeo){if (this.compare_datums(a_src, a_dst)) { return 0;};if (a_src.datum_type == this.PJD_GRIDSHIFT) {alert("ERROR: Grid shift transformations are not implemented yet.");};if (a_dst.datum_type == this.PJD_GRIDSHIFT) { alert("ERROR: Grid shift transformations are not implemented yet.");};if (a_src.datum_type == this.PJD_3PARAM || a_src.datum_type == this.PJD_7PARAM || a_dst.datum_type == this.PJD_3PARAM || a_dst.datum_type == this.PJD_7PARAM){this.geodetic_to_geocentric(a_src, a_ptGeo);if (a_src.datum_type == this.PJD_3PARAM || a_src.datum_type == this.PJD_7PARAM) {this.geocentric_to_wgs84(a_src, a_ptGeo);}if (a_dst.datum_type == this.PJD_3PARAM || a_dst.datum_type == this.PJD_7PARAM) {this.geocentric_from_wgs84(a_dst, a_ptGeo);}this.geocentric_to_geodetic(a_dst, a_ptGeo);};if (a_dst.datum_type == this.PJD_GRIDSHIFT) {alert("ERROR: Grid shift transformations are not implemented yet.");}return 0;};pbsp1.prototype.compare_datums = function(a_src, a_dst){if (a_src.datum_type != a_dst.datum_type){return 0; }else if (a_src.datum_type == this.PJD_3PARAM){return (a_src.datum_params[0] == a_dst.datum_params[0] &&a_src.datum_params[1] == a_dst.datum_params[1] &&a_src.datum_params[2] == a_dst.datum_params[2]);}else if (a_src.datum_type == this.PJD_7PARAM){return (a_src.datum_params[0] == a_dst.datum_params[0] &&a_src.datum_params[1] == a_dst.datum_params[1] &&a_src.datum_params[2] == a_dst.datum_params[2] &&a_src.datum_params[3] == a_dst.datum_params[3] &&a_src.datum_params[4] == a_dst.datum_params[4] &&a_src.datum_params[5] == a_dst.datum_params[5] &&a_src.datum_params[6] == a_dst.datum_params[6]);}else if (a_src.datum_type == this.PJD_GRIDSHIFT){return strcmp(pj_param(a_src.params, "snadgrids").s, pj_param(a_dst.params, "snadgrids").s) == 0;}else{return 1; };}; pbsp1.prototype.geodetic_to_geocentric = function(a_cs, a_ptGeo){var Longitude = a_ptGeo.x;var Latitude = a_ptGeo.y;var Height = a_ptGeo.z;var X; var Y;var Z;var Error_Code = 0; var Rn; var Sin_Lat; var Sin2_Lat; var Cos_Lat; if (Latitude < -this.HALF_PI && Latitude > -1.001 * this.HALF_PI){ Latitude = -this.HALF_PI;}else if (Latitude > this.HALF_PI && Latitude < 1.001 * this.HALF_PI){Latitude = this.HALF_PI;}else if ((Latitude < -this.HALF_PI) || (Latitude > this.HALF_PI)){ Error_Code |= this.GEOCENT_LAT_ERROR;}if (!Error_Code){ if (Longitude > this.PI){Longitude -= (2 * this.PI);}Sin_Lat = Math.sin(Latitude);Cos_Lat = Math.cos(Latitude);Sin2_Lat = Sin_Lat * Sin_Lat;Rn = a_cs.a / (Math.sqrt(1.0e0 - a_cs.es * Sin2_Lat));X = (Rn + Height) * Cos_Lat * Math.cos(Longitude);Y = (Rn + Height) * Cos_Lat * Math.sin(Longitude);Z = ((Rn * (1 - a_cs.es)) + Height) * Sin_Lat; }a_ptGeo.x = X;a_ptGeo.y = Y;a_ptGeo.z = Z;return Error_Code;};pbsp1.prototype.geocentric_to_geodetic = function(a_cs, a_ptGeo){var X = a_ptGeo.x;var Y = a_ptGeo.y;var Z = a_ptGeo.z;var Longitude;var Latitude;var Height;var W; var W2; var T0; var T1; var S0; var S1; var Sin_B0; var Sin3_B0; var Cos_B0; var Sin_p1; var Cos_p1; var Rn; var Sum; var At_Pole; X = parseFloat(X); Y = parseFloat(Y);Z = parseFloat(Z);At_Pole = false;if (X != 0.0){Longitude = Math.atan2(Y, X);}else{if (Y > 0){Longitude = this.HALF_PI;}else if (Y < 0){Longitude = -this.HALF_PI;}else{At_Pole = true;Longitude = 0.0;if (Z > 0.0){ Latitude = this.HALF_PI;}else if (Z < 0.0){ Latitude = -this.HALF_PI;}else{ Latitude = this.HALF_PI;Height = -a_cs.b;return;}}}W2 = X * X + Y * Y;W = Math.sqrt(W2);T0 = Z * this.AD_C;S0 = Math.sqrt(T0 * T0 + W2);Sin_B0 = T0 / S0;Cos_B0 = W / S0;Sin3_B0 = Sin_B0 * Sin_B0 * Sin_B0;T1 = Z + a_cs.b * a_cs.ep2 * Sin3_B0;Sum = W - a_cs.a * a_cs.es * Cos_B0 * Cos_B0 * Cos_B0;S1 = Math.sqrt(T1 * T1 + Sum * Sum);Sin_p1 = T1 / S1;Cos_p1 = Sum / S1;Rn = a_cs.a / Math.sqrt(1.0 - a_cs.es * Sin_p1 * Sin_p1);if (Cos_p1 >= this.COS_67P5) {Height = W / Cos_p1 - Rn;}else if (Cos_p1 <= -this.COS_67P5){Height = W / -Cos_p1 - Rn; }else{Height = Z / Sin_p1 + Rn * (a_cs.es - 1.0);}if (At_Pole == false) {Latitude = Math.atan(Sin_p1 / Cos_p1);}a_ptGeo.x = Longitude;a_ptGeo.y = Latitude;a_ptGeo.z = Height;return 0;};pbsp1.prototype.geocentric_to_wgs84 = function(a_def, a_ptGeo){ if (a_def.datum_type == this.PJD_3PARAM){a_ptGeo.x += a_def.datum_params[0];a_ptGeo.y += a_def.datum_params[1];a_ptGeo.z += a_def.datum_params[2];}else{ var Dx_BF = a_def.datum_params[0];var Dy_BF = a_def.datum_params[1];var Dz_BF = a_def.datum_params[2];var Rx_BF = a_def.datum_params[3];var Ry_BF = a_def.datum_params[4];var Rz_BF = a_def.datum_params[5];var M_BF = a_def.datum_params[6];var x_out = M_BF * (a_ptGeo.x - Rz_BF * a_ptGeo.y + Ry_BF * a_ptGeo.z) + Dx_BF;var y_out = M_BF * (Rz_BF * a_ptGeo.x + a_ptGeo.y - Rx_BF * a_ptGeo.z) + Dy_BF;var z_out = M_BF * (-Ry_BF * a_ptGeo.x + Rx_BF * a_ptGeo.y + a_ptGeo.z) + Dz_BF;a_ptGeo.x = x_out;a_ptGeo.y = y_out;a_ptGeo.z = z_out;}};pbsp1.prototype.geocentric_from_wgs84 = function(a_def, a_ptGeo){if (a_def.datum_type == this.PJD_3PARAM){a_ptGeo.x -= a_def.datum_params[0];a_ptGeo.y -= a_def.datum_params[1];a_ptGeo.z -= a_def.datum_params[2];}else{ var Dx_BF = a_def.datum_params[0];var Dy_BF = a_def.datum_params[1];var Dz_BF = a_def.datum_params[2];var Rx_BF = a_def.datum_params[3];var Ry_BF = a_def.datum_params[4];var Rz_BF = a_def.datum_params[5];var M_BF = a_def.datum_params[6];var x_tmp = (a_ptGeo.x - Dx_BF) / M_BF;var y_tmp = (a_ptGeo.y - Dy_BF) / M_BF;var z_tmp = (a_ptGeo.z - Dz_BF) / M_BF;a_ptGeo.x = x_tmp + Rz_BF * y_tmp - Ry_BF * z_tmp;a_ptGeo.y = -Rz_BF * x_tmp + y_tmp + Rx_BF * z_tmp;a_ptGeo.z = Ry_BF * x_tmp - Rx_BF * y_tmp + z_tmp;}};function dht8(){Object.extend(this, new nzie1());}dht8.prototype.tmerc = {};dht8.prototype.tmerc.init = function(a_def){a_def.e0 = this.e0fn(a_def.es);a_def.e1 = this.e1fn(a_def.es);a_def.e2 = this.e2fn(a_def.es);a_def.e3 = this.e3fn(a_def.es);a_def.ml0 = a_def.a * this.mlfn(a_def.e0, a_def.e1, a_def.e2, a_def.e3, a_def.lat0);a_def.ind = (a_def.es < .00001) ? 1 : 0; };dht8.prototype.tmerc.forward = function(a_ptGeo){var delta_lon = this.adjust_lon(a_ptGeo.x - this.lon0); var con; var x, y;var sin_phi = Math.sin(a_ptGeo.y);var cos_phi = Math.cos(a_ptGeo.y);if (this.ind != 0) { var b = cos_phi * Math.sin(delta_lon);if ((Math.abs(Math.abs(b) - 1.0)) < .0000000001) {alert("Error in ll2tm(): Point projects into infinity");return (93);}else {x = .5 * this.a * this.k0 * Math.log((1.0 + b) / (1.0 - b));con = Math.acos(cos_phi * Math.cos(delta_lon) / Math.sqrt(1.0 - b * b));if (a_ptGeo.y < 0)con = -con;y = this.a * this.k0 * (con - this.lat0);}}else {var al = cos_phi * delta_lon;var als = Math.pow(al, 2);var c = this.ep2 * Math.pow(cos_phi, 2);var tq = Math.tan(a_ptGeo.y);var t = Math.pow(tq, 2);con = 1.0 - this.es * Math.pow(sin_phi, 2);var n = this.a / Math.sqrt(con);var ml = this.a * this.mlfn(this.e0, this.e1, this.e2, this.e3, a_ptGeo.y);x = this.k0 * n * al * (1.0 + als / 6.0 * (1.0 - t + c + als / 20.0 * (5.0 - 18.0 * t + Math.pow(t, 2) + 72.0 * c - 58.0 * this.ep2))) + this.x0;y = this.k0 * (ml - this.ml0 + n * tq * (als * (0.5 + als / 24.0 * (5.0 - t + 9.0 * c + 4.0 * Math.pow(c, 2) + als / 30.0 * (61.0 - 58.0 * t + Math.pow(t, 2) + 600.0 * c - 330.0 * this.ep2))))) + this.y0;}a_ptGeo.x = x;a_ptGeo.y = y;};dht8.prototype.tmerc.inverse = function(a_ptGeo){var con, phi; var delta_phi; var i;var max_iter = 6; var lat, lon;if (this.ind != 0) { var f = Math.exp(a_ptGeo.x / (this.a * this.k0));var g = .5 * (f - 1 / f);var temp = this.lat0 + a_ptGeo.y / (this.a * this.k0);var h = Math.cos(temp);con = Math.sqrt((1.0 - h * h) / (1.0 + g * g));lat = Math.asin(con); if (temp < 0) {lat = -lat;}if ((g == 0) && (h == 0)) {lon = this.lon0;}else {lon = this.adjust_lon(Math.atan2(g, h) + this.lon0);}}else { a_ptGeo.x -= this.x0;a_ptGeo.y -= this.y0;con = (this.ml0 + a_ptGeo.y / this.k0) / this.a;phi = con;for (i = 0;; i++) {delta_phi = ((con + this.e1 * Math.sin(2.0 * phi) - this.e2 * Math.sin(4.0 * phi) + this.e3 * Math.sin(6.0 * phi)) / this.e0) - phi;phi += delta_phi;if (Math.abs(delta_phi) <= this.EPSLN)break;if (i >= max_iter) {return (95);}}if (Math.abs(phi) < this.HALF_PI) {var sin_phi = Math.sin(phi);var cos_phi = Math.cos(phi);var tan_phi = Math.tan(phi);var c = this.ep2 * Math.pow(cos_phi, 2);var cs = Math.pow(c, 2);var t = Math.pow(tan_phi, 2);var ts = Math.pow(t, 2);con = 1.0 - this.es * Math.pow(sin_phi, 2);var n = this.a / Math.sqrt(con);var r = n * (1.0 - this.es) / con;var d = a_ptGeo.x / (n * this.k0);var ds = Math.pow(d, 2);lat = phi - (n * tan_phi * ds / r) * (0.5 - ds / 24.0 * (5.0 + 3.0 * t + 10.0 * c - 4.0 * cs - 9.0 * this.ep2 - ds / 30.0 * (61.0 + 90.0 * t + 298.0 * c + 45.0 * ts - 252.0 * this.ep2 - 3.0 * cs)));lon = this.adjust_lon(this.lon0 + (d * (1.0 - ds / 6.0 * (1.0 + 2.0 * t + c - ds / 20.0 * (5.0 - 2.0 * c + 28.0 * t - 3.0 * cs + 8.0 * this.ep2 + 24.0 * ts))) / cos_phi));}else {lat = this.HALF_PI * this.sign(a_ptGeo.y);lon = this.lon0;}}a_ptGeo.x = lon;a_ptGeo.y = lat;};dht8.prototype.utm = {};dht8.prototype.utm.init = function(a_def){a_def.lat0 = 0.0;a_def.lon0 = ((6 * Math.abs(a_def.zone)) - 183) * this.D2R;a_def.x0 = 500000.0;a_def.y0 = (a_def.zone < 0) ? 10000000.0 : 0.0;if (!a_def.k0) {a_def.k0 = 0.9996;}this.tmerc.init(a_def);};dht8.prototype.utm.forward = dht8.prototype.tmerc.forward;dht8.prototype.utm.inverse = dht8.prototype.tmerc.inverse;function zrq8(){this.cs = new pbsp1();};zrq8.prototype.getCoordMode = function(coord){if(!coord) return false;var _coord;if(coord instanceof Array || (typeof coord != 'string' && coord.length == 4)){_coord = coord[0];}else if(coord instanceof Object && 'x' in coord){_coord = coord.x;}else if(typeof coord == 'number'){_coord = coord;}else{return false;} if (_coord >= 130000000){return 0;}else if (_coord > 0 && _coord < 180 && _coord.toString().indexOf('.') > -1){return 3;} else if (_coord.toString().indexOf('.') == -1){return 2;}else{return 1;}};zrq8.prototype.fromLatLngToTM128 = function(latlng){if (!latlng) return;var yuk6 = latlng.copy();this.cs.transform(this.cs.setCS(this.cs.system.LatLng), this.cs.setCS(this.cs.system.TM128), yuk6);return new gfal7(parseInt(yuk6.x), parseInt(yuk6.y));};zrq8.prototype.fromTM128ToLatLng = function(tm128){if (!tm128) return;var yuk6 = tm128.copy();this.cs.transform(this.cs.setCS(this.cs.system.TM128), this.cs.setCS(this.cs.system.LatLng), yuk6);return new alz0(parseFloat(yuk6.y).toFixed(7), parseFloat(yuk6.x).toFixed(7));};zrq8.prototype.fromLatLngToUTMK = function(latlng){if (!latlng) return;var yuk6 = latlng.copy();this.cs.transform(this.cs.setCS(this.cs.system.LatLng), this.cs.setCS(this.cs.system.UTMK), yuk6); return new as6(parseFloat(yuk6.x).toFixed(1), parseFloat(yuk6.y).toFixed(1));};zrq8.prototype.fromUTMKToLatLng = function(utmk){if (!utmk) return;var yuk6 = utmk.copy();this.cs.transform(this.cs.setCS(this.cs.system.UTMK), this.cs.setCS(this.cs.system.LatLng), yuk6);return new alz0(parseFloat(yuk6.y).toFixed(7), parseFloat(yuk6.x).toFixed(7));};zrq8.prototype.fromTM128ToUTMK = function(tm128){if (!tm128) return;var yuk6 = tm128.copy();this.cs.transform(this.cs.setCS(this.cs.system.TM128), this.cs.setCS(this.cs.system.UTMK), yuk6);return new as6(parseFloat(yuk6.x).toFixed(1), parseFloat(yuk6.y).toFixed(1));};zrq8.prototype.fromUTMKToTM128 = function(utmk){if (!utmk) return;var yuk6 = utmk.copy();this.cs.transform(this.cs.setCS(this.cs.system.UTMK), this.cs.setCS(this.cs.system.TM128), yuk6);return new gfal7(parseInt(yuk6.x), parseInt(yuk6.y));};zrq8.prototype.fromLatLngToInner = function(latlng){if (!latlng) return;var utmk = this.fromLatLngToUTMK(latlng);return this.fromUTMKToInner(utmk);};zrq8.prototype.fromInnerToLatLng = function(inner) {if (!inner) return;var utmk = this.fromInnerToUTMK(inner);return this.fromUTMKToLatLng(utmk);};zrq8.prototype.fromTM128ToInner = function(tm128){if (!tm128) return;var utmk = this.fromTM128ToUTMK(tm128);return this.fromUTMKToInner(utmk);};zrq8.prototype.fromInnerToTM128 = function(inner){if (!inner) return;var utmk = this.fromInnerToUTMK(inner);return this.fromUTMKToTM128(utmk);};zrq8.prototype.fromUTMKToInner = function(utmk){if (!utmk) return;return new zhf4(parseInt(utmk.x * 10 + 340000000), parseInt(utmk.y * 10 + 130000000));};zrq8.prototype.fromInnerToUTMK = function(inner){if (!inner) return;return new as6(parseFloat((inner.x - 340000000) / 10).toFixed(1), parseFloat((inner.y - 130000000) / 10).toFixed(1));};zrq8.prototype.toInner = function(other){if (!other) return;var ptLT, ptRB;if (other instanceof Array || (typeof other != 'string' && other.length == 4)){switch (this.getCoordMode(other)){case 0:return other;case 1:ptLT = this.fromUTMKToInner(new as6(other[0], other[1]));ptRB = this.fromUTMKToInner(new as6(other[2], other[3]));break;case 2:ptLT = this.fromTM128ToInner(new gfal7(other[0], other[1]));ptRB = this.fromTM128ToInner(new gfal7(other[2], other[3]));break;case 3:ptLT = this.fromLatLngToInner(new alz0(other[1], other[0]));ptRB = this.fromLatLngToInner(new alz0(other[3], other[2]));break;default:return false;}return new Array(ptLT.x, ptLT.y, ptRB.x, ptRB.y);}else{switch (other.getCoordMode()){case 0: return other;case 1: return this.fromUTMKToInner(other);case 2: return this.fromTM128ToInner(other);case 3: return this.fromLatLngToInner(other);default: return false;}}};zrq8.prototype.toLatLng = function(other){if (!other) return;var ptLT, ptRB;if (other instanceof Array || (typeof other != 'string' && other.length == 4)){switch (this.getCoordMode(other)){case 0:ptLT = this.fromInnerToLatLng(new zhf4(other[0], other[1]));ptRB = this.fromInnerToLatLng(new zhf4(other[2], other[3]));break;case 1:ptLT = this.fromUTMKToLatLng(new as6(other[0], other[1]));ptRB = this.fromUTMKToLatLng(new as6(other[2], other[3]));break;case 2:ptLT = this.fromTM128ToLatLng(new gfal7(other[0], other[1]));ptRB = this.fromTM128ToLatLng(new gfal7(other[2], other[3]));break;case 3: return other;default:return false;}return new Array(ptLT.x, ptLT.y, ptRB.x, ptRB.y);}else{switch (other.getCoordMode()){case 0: return this.fromInnerToLatLng(other);case 1: return this.fromUTMKToLatLng(other);case 2: return this.fromTM128ToLatLng(other);case 3: return other;default: return false;}}};zrq8.prototype.toTM128 = function(other){if (!other) return;var ptLT, ptRB;if (other instanceof Array || (typeof other != 'string' && other.length == 4)){ switch (this.getCoordMode(other)){case 0:ptLT = this.fromInnerToTM128(new zhf4(other[0], other[1]));ptRB = this.fromInnerToTM128(new zhf4(other[2], other[3]));break;case 1:ptLT = this.fromUTMKToTM128(new as6(other[0], other[1]));ptRB = this.fromUTMKToTM128(new as6(other[2], other[3]));break;case 2:return other;case 3:ptLT = this.fromLatLngToTM128(new alz0(other[1], other[0]));ptRB = this.fromLatLngToTM128(new alz0(other[3], other[2]));break;default:return false;}return new Array(ptLT.x, ptLT.y, ptRB.x, ptRB.y);}else{ switch (other.getCoordMode()) {case 0: return this.fromInnerToTM128(other);case 1: return this.fromUTMKToTM128(other);case 2: return other;case 3: return this.fromLatLngToTM128(other);default: return false;}}};zrq8.prototype.toUTMK = function(other){if (!other) return;var ptLT, ptRB;if (other instanceof Array){switch (this.getCoordMode(other) || (typeof other != 'string' && other.length == 4)){case 0:ptLT = this.fromInnerToUTMK(new zhf4(other[0], other[1]));ptRB = this.fromInnerToUTMK(new zhf4(other[2], other[3]));break;case 1:return other;case 2:ptLT = this.fromTM128ToUTMK(new gfal7(other[0], other[1]));ptRB = this.fromTM128ToUTMK(new gfal7(other[2], other[3]));break;case 3:ptLT = this.fromLatLngToUTMK(new alz0(other[1], other[0])); ptRB = this.fromLatLngToUTMK(new alz0(other[3], other[2]));break;default:return false;}return new Array(ptLT.x, ptLT.y, ptRB.x, ptRB.y);}else{switch (other.getCoordMode()){case 0: return this.fromInnerToUTMK(other);case 1: return other;case 2: return this.fromTM128ToUTMK(other);case 3: return this.fromLatLngToUTMK(other);default: return false;}}};zrq8.prototype.inputFilter = function(other){if (!other) return;return this.toInner(other);};zrq8.prototype.outputFilter = function(other){if (!other) return;switch(hkm8.coordMode){case 0: return this.toInner(other);case 1: return this.toUTMK(other);case 2: return this.toTM128(other);case 3: return this.toLatLng(other);default: return this.toInner(other);}};window.N_MAP_SPEC = hkm8;window.NMap = wn3;window.NImage = smw9;window.NEvent = xc0;window.NPoint = k57;window.NInner = zhf4;window.NTM128 = gfal7;window.NUTMK = as6;window.NLatLng = alz0;window.NSize = ouu8;window.NIcon = ti5;window.NMark = l3;window.NMark2 = t3;window.NPolyline = o15;window.NNaverMark = ade0;window.NScale = cpiq7;window.NMapBtns = pnq1;window.NSaveBtn = kyrm1;window.NPrintBtn = sd0;window.NZoomControl = ix7;window.NZoomControl2 = p27;window.NIndexMap = q73;window.NMiniMap = koa7;window.NXmlhttp = j6;window.NInfoWindow = efj6;window.NInfoWindowSkin = lo9;window.NStaticOverlay = gdec8;window.NDynamicOverlay = e8;window.NRectangle = rmoi7;window.NCircle = vuxr6;window.NSimpleMap = cft6;window.NCoordConv = zrq8;}naverMap();