/* Postcodify, LGPL v3, see https://github.com/kijin/postcodify */ (function($){if("undefined"==typeof $.fn.postcodify){var e={version:"3.4.1",location:""};$("script").each(function(){var s=$(this).attr("src");if(s){var t=s.match(/^(https?:)?\/\/([^:\/]+)(?=[:\/]).*\/search\.(min\.)?js(?=\?|$)/);t&&(e.location=t[2])}}),$(function(){if("undefined"==typeof window.POSTCODIFY_NO_CSS){var t=navigator.userAgent.match(/MSIE [56]\./)?"http:":"";""!==t||window.location.protocol.match(/^https?/)||(t="http:");var a=e.location.match(/\.(poesis\.kr|cloudfront\.net)$/)?e.location:"d1p7wdleee1q2z.cloudfront.net",s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.href=t+"//"+a+"/post/search.css?v="+e.version,document.body.appendChild(s)}}),$.fn.postcodify=function(s){return this.each(function(){var t=$.extend({api:e.freeAPI.defaultUrl,apiBackup:null,timeout:3e3,timeoutBackup:8e3,callBackupFirst:!1,controls:this,results:this,language:"ko",autoSelect:!1,requireExactQuery:!1,searchButtonContent:null,mapLinkProvider:!1,mapLinkContent:null,overrideDomain:null,insertDbid:null,insertPostcode:null,insertPostcode5:null,insertPostcode6:null,insertAddress:null,insertJibeonAddress:null,insertEnglishAddress:null,insertEnglishJibeonAddress:null,insertDetails:null,insertExtraInfo:null,insertBuildingId:null,insertBuildingName:null,insertBuildingNums:null,insertOtherAddresses:null,beforeSearch:function(e){},afterSearch:function(e,s,t,a){},beforeSelect:function(e){},afterSelect:function(e){},onReady:function(){},onSuccess:function(){},onBackup:function(){},onError:function(){},onComplete:function(){},forceDisplayPostcode5:!1,forceDisplayPostcode6:!1,forceUseSSL:!1,focusKeyword:!0,focusDetails:!0,hideBuildingNums:!1,hideOldAddresses:!0,hideSummary:!1,useFullJibeon:!1,useAlert:!1,useCors:!0},s);t.language=t.language.toLowerCase(),t.api===e.freeAPI.defaultUrl&&null===t.apiBackup&&(t.apiBackup=e.freeAPI.backupUrl),t.api&&"//"===t.api.substr(0,2)&&(navigator.userAgent.match(/MSIE [56]\./)?t.api="http:"+t.api:t.forceUseSSL?t.api="https:"+t.api:window.location.protocol.match(/^https?/)||(t.api="http:"+t.api)),t.apiBackup&&"//"===t.apiBackup.substr(0,2)&&(navigator.userAgent.match(/MSIE [56]\./)?t.apiBackup="http:"+t.apiBackup:t.forceUseSSL?t.apiBackup="https:"+t.apiBackup:window.location.protocol.match(/^https?/)||(t.api="http:"+t.api)),null===t.insertBuildingId&&null!==t.insertDbid&&(t.insertBuildingId=t.insertDbid),null===t.searchButtonContent&&(t.searchButtonContent=e.translations[t.language].msgSearch);var a=$(t.results).postcodifyAddClass("search_form"),n=$("
").postcodifyAddClass("search_controls"),d="postcodify_"+(new Date).getTime().toString()+Math.random().toString().substr(2,4),l=($("").attr("for",d).text(e.translations[t.language].msgKeywords).hide().appendTo(n),$('').attr("id",d).appendTo(n)),o=$('').attr("id",d+"_button").html(t.searchButtonContent).appendTo(n);n.prependTo(t.controls);var r=null,i=!1;return l.keypress(function(e){13==e.which&&(e.preventDefault(),o.trigger("click"))}),o.focusin(function(e){o.trigger("click")}),o.click(function(A){A.preventDefault();var n=$.trim(l.val());if(n!==r||!i&&!a.find("div.postcodify_search_result").filter(":visible").size()){if(r=n,a.find("div.postcodify_search_result,div.postcodify_search_status").remove(),n.length<3)return void(t.useAlert?alert(e.translations[t.language].errorTooShort):$('').postcodifyAddClass("search_status").html(e.translations[t.language].errorTooShort.replace(/\n/g,"\uc6b0\ud3b8\ubc88\ud638 \uac80\uc0c9 \uc694\ub839
"),o.append(n),o.append("\uc815\ud655\ud55c \uac80\uc0c9\uc744 \uc704\ud55c \ud301
"),o.append(d),o.appendTo(c),s.requireExactQuery&&o.find("tr.postcodify_building_search").remove(),r.hide().appendTo(document.body),t.hide().appendTo(document.body),f=function(){t.data("initialized","Y"),t.find("div.postcodify_results").postcodify($.extend({controls:t.find("div.postcodify_controls"),insertPostcode6:a.find(".postcodify_postcode6"),insertPostcode5:a.find(".postcodify_postcode5"),insertPostcode:a.find(".postcodify_postcode"),insertAddress:a.find(".postcodify_address"),insertDetails:a.find(".postcodify_details"),insertExtraInfo:a.find(".postcodify_extra_info"),insertJibeonAddress:a.find(".postcodify_jibeon_address"),insertEnglishAddress:a.find(".postcodify_english_address"),insertEnglishJibeonAddress:a.find(".postcodify_english_jibeon_address"),insertBuildingId:a.find(".postcodify_address_id,.postcodify_building_id"),insertBuildingName:a.find(".postcodify_building_name"),insertBuildingNums:a.find(".postcodify_building_nums"),insertOtherAddresses:a.find(".postcodify_other_addresses"),mapLinkProvider:"daum",hideOldAddresses:!1,afterSelect:function(e){a.find(".postcodify_postcode6_1").val(e.data("code6").substr(0,3)),a.find(".postcodify_postcode6_2").val(e.data("code6").substr(4,3)),u(e),i()}},s)),l.prependTo(t.find("div.postcodify_search_controls")).on("click",function(){t.find("input.keyword").focus()}),t.find("input.keyword").on("focusin focusout keydown keyup keypress input",function(){""===$(this).val()?l.show():l.hide()}),h.appendTo(t.find("div.postcodify_controls")),p.appendTo(t.find("div.postcodify_controls")),t.find("button.search_button").detach().prependTo(p)},$(window).resize(function(){var e=$(window).width(),s=$(window).height();t.removeClass("fill_horizontally").removeClass("fill_vertically").removeClass("full_screen"),660>=e&&t.addClass("fill_horizontally").addClass("fill_vertically"),660>=s&&t.addClass("fill_vertically"),"ontouchstart"in window&&(t.hasClass("fill_horizontally")||t.hasClass("fill_vertically"))&&t.addClass("full_screen"),l.text(e>=540?"\uac80\uc0c9\ud560 \uc8fc\uc18c\ub97c \uc5ec\uae30\uc5d0 \uc785\ub825\ud574 \uc8fc\uc138\uc694":"\uac80\uc0c9\ud560 \uc8fc\uc18c \uc785\ub825"),c.height(t.height()-73)}),$(this).click(function(){"Y"!=t.data("initialized")&&f(),r.show(),t.show().find("input.keyword").focus(),$(window).triggerHandler("resize")}),i=function(){r.hide(),t.hide()},A.click(function(){i()}),r.click(function(){i()}),$(window).keyup(function(e){27==e.keyCode&&t.is(":visible")&&i()}),this})},$.fn.postcodifyAddClass=function(e){return this.addClass("postcodify_"+e).addClass("postcode_"+e)},e.freeAPI={defaultUrl:"//api.poesis.kr/post/search.php",backupUrl:"//api.poesis.co.kr/post/search.php"},e.mapProviders={daum:"http://map.daum.net/?map_type=TYPE_MAP&urlLevel=3&q=$JUSO",naver:"http://map.naver.com/?mapMode=0&dlevel=12&query=$JUSO",google:"http://www.google.com/maps/place/"+encodeURIComponent("\ub300\ud55c\ubbfc\uad6d")+"+$JUSO"},e.translations={ko:{errorExactQuery:"\uc815\ud655\ud55c \ub3c4\ub85c\uba85+\uac74\ubb3c\ubc88\ud638 \ub610\ub294 \ub3d9\xb7\ub9ac+\ubc88\uc9c0\ub85c \uac80\uc0c9\ud574 \uc8fc\uc2ed\uc2dc\uc624.\n\uc608: \uc138\uc885\ub300\ub85c 110, \uc5f0\uc9c0\ub3d9 219-2, \uc0ac\uc11c\ud568 123-45",errorError:"\uac80\uc0c9 \uc11c\ubc84\uc640 \ud1b5\uc2e0 \uc911 \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uc600\uc2b5\ub2c8\ub2e4.\n\uc7a0\uc2dc \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.",errorEmpty:"\uac80\uc0c9 \uacb0\uacfc\uac00 \uc5c6\uc2b5\ub2c8\ub2e4.\n\uc815\ud655\ud55c \ub3c4\ub85c\uba85+\uac74\ubb3c\ubc88\ud638 \ub610\ub294 \ub3d9\xb7\ub9ac+\ubc88\uc9c0\ub85c \uac80\uc0c9\ud574 \uc8fc\uc2dc\uace0,\n\ub2e4\ub978 \uac80\uc0c9\uc5b4 \uc0ac\uc6a9\uc2dc \ub744\uc5b4\uc4f0\uae30\uc5d0 \uc720\uc758\ud558\uc2ed\uc2dc\uc624.",errorQuota:"\uc77c\uc77c \ud5c8\uc6a9 \ucffc\ub9ac\uc218\ub97c \ucd08\uacfc\ud558\uc600\uc2b5\ub2c8\ub2e4.\n\uad00\ub9ac\uc790\uc5d0\uac8c \ubb38\uc758\ud574 \uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.",errorVersion:"\uac80\uc0c9 \uc11c\ubc84\uc758 \ubc84\uc804\uc774 \ub0ae\uc544 \uc774 \uac80\uc0c9\ucc3d\uacfc \ud638\ud658\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",errorTooShort:"\uac80\uc0c9\uc5b4\ub294 3\uae00\uc790 \uc774\uc0c1 \uc785\ub825\ud574 \uc8fc\uc2ed\uc2dc\uc624.",errorTooMany:"\uac80\uc0c9 \uacb0\uacfc\uac00 \ub108\ubb34 \ub9ce\uc544 100\uac74\ub9cc \ud45c\uc2dc\ud569\ub2c8\ub2e4.\n\uc815\ud655\ud55c \ub3c4\ub85c\uba85\uacfc \uac74\ubb3c\ubc88\ud638 \ub610\ub294 \ub3d9\xb7\ub9ac\uc640 \ubc88\uc9c0\ub85c \uac80\uc0c9\ud574 \uc8fc\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.",msgResultCount:"\uac80\uc0c9 \uacb0\uacfc",msgSearchTime:"\uc18c\uc694 \uc2dc\uac04",msgNetworkTime:"\ud1b5\uc2e0 \uc9c0\uc5f0",msgSeeOthers:"\uad00\ub828\uc9c0\ubc88 \ubcf4\uae30",msgKeywords:"\uac80\uc0c9 \ud0a4\uc6cc\ub4dc",msgSearch:"\uac80\uc0c9",msgMap:"\uc9c0\ub3c4"},en:{errorExactQuery:"Please enter the exact name of your street, as well as the number(s).\nExample: 110 Sejong-daero, 219-2 Yeonji-dong, P.O.Box 123-45",errorError:"An error occurred while communicating to the search server.\nPlease try again later.",errorEmpty:"No addresses matched your search.\nPlease enter the exact legal name of your street, as well as the number(s).",errorQuota:"This website and/or your IP address has exceeded its daily search quota.\nPlease contact the administrator.",errorVersion:"The version of the search server is not compatible with this search function.",errorTooShort:"Please enter at least 3 characters.",errorTooMany:"Your search returned too many results. Only the first 100 items are shown below.\nPlease narrow down your search by adding the number(s).",msgResultCount:"Results",msgSearchTime:"Time taken",msgNetworkTime:"Network delay",msgSeeOthers:"See related addresses",msgKeywords:"Search keywords",msgSearch:"Search",msgMap:"Map"}},e.searchProgress="data:image/gif;base64,R0lGODlhEAALAPQAAP///yIiIt7e3tbW1uzs7CcnJyIiIklJSZKSknV1dcPDwz8/P2JiYpmZmXh4eMbGxkJCQiUlJWVlZenp6d3d3fX19VJSUuDg4PPz87+/v6ysrNDQ0PDw8AAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAAEAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLyicBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAALAAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeavWi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgII5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txxwlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRFGTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA"}})(jQuery);