");divhelp.append(help2);divhelp.appendTo(displays);if(options.requireExactQuery){divhelp.find("tr.postcodify_building_search").remove()}background.hide().appendTo(document.body);layer.hide().appendTo(document.body);initializePostcodify=function(){layer.data("initialized","Y");layer.find("div.postcodify_results").postcodify($.extend({controls:layer.find("div.postcodify_controls"),insertPostcode6:container.find(".postcodify_postcode6"),insertPostcode5:container.find(".postcodify_postcode5"),insertPostcode:container.find(".postcodify_postcode"),insertAddress:container.find(".postcodify_address"),insertDetails:container.find(".postcodify_details"),insertExtraInfo:container.find(".postcodify_extra_info"),insertJibeonAddress:container.find(".postcodify_jibeon_address"),insertEnglishAddress:container.find(".postcodify_english_address"),insertEnglishJibeonAddress:container.find(".postcodify_english_jibeon_address"),insertBuildingId:container.find(".postcodify_address_id,.postcodify_building_id"),insertBuildingName:container.find(".postcodify_building_name"),insertBuildingNums:container.find(".postcodify_building_nums"),insertOtherAddresses:container.find(".postcodify_other_addresses"),mapLinkProvider:"daum",hideOldAddresses:false,afterSelect:function(entry){container.find(".postcodify_postcode6_1").val(entry.data("code6").substr(0,3));container.find(".postcodify_postcode6_2").val(entry.data("code6").substr(4,3));onSelect(entry);closePopUpLayer()}},options));placeholder.prependTo(layer.find("div.postcodify_search_controls")).on("click",function(){layer.find("input.keyword").focus()});layer.find("input.keyword").on("focusin focusout keydown keyup keypress input",function(){if($(this).val()===""){placeholder.show()}else{placeholder.hide()}});curve_slice.appendTo(layer.find("div.postcodify_controls"));button_area.appendTo(layer.find("div.postcodify_controls"));layer.find("button.search_button").detach().prependTo(button_area)};$(window).resize(function(){var width=$(window).width();var height=$(window).height();layer.removeClass("fill_horizontally").removeClass("fill_vertically").removeClass("full_screen");if(width<=660)layer.addClass("fill_horizontally").addClass("fill_vertically");if(height<=660)layer.addClass("fill_vertically");if("ontouchstart"in window&&(layer.hasClass("fill_horizontally")||layer.hasClass("fill_vertically"))){layer.addClass("full_screen")}placeholder.text(width>=540?"검색할 주소를 여기에 입력해 주세요":"검색할 주소 입력");displays.height(layer.height()-73)});$(this).click(function(){if(layer.data("initialized")!="Y")initializePostcodify();background.show();layer.show().find("input.keyword").focus();$(window).triggerHandler("resize")});closePopUpLayer=function(){background.hide();layer.hide()};close_button.click(function(){closePopUpLayer()});background.click(function(){closePopUpLayer()});$(window).keyup(function(event){if(event.keyCode==27&&layer.is(":visible")){closePopUpLayer()}});return this})};$.fn.postcodifyAddClass=function(class_name){return this.addClass("postcodify_"+class_name).addClass("postcode_"+class_name)};info.freeAPI={defaultUrl:"//api.poesis.kr/post/search.php",backupUrl:"//api.poesis.co.kr/post/search.php"};info.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("대한민국")+"+$JUSO"};info.translations={ko:{errorExactQuery:"정확한 도로명+건물번호 또는 동·리+번지로 검색해 주십시오.\n예: 세종대로 110, 연지동 219-2, 사서함 123-45",errorError:"검색 서버와 통신 중 오류가 발생하였습니다.\n잠시 후 다시 시도해 주시기 바랍니다.",errorEmpty:"검색 결과가 없습니다.\n정확한 도로명+건물번호 또는 동·리+번지로 검색해 주시고,\n다른 검색어 사용시 띄어쓰기에 유의하십시오.",errorQuota:"일일 허용 쿼리수를 초과하였습니다.\n관리자에게 문의해 주시기 바랍니다.",errorVersion:"검색 서버의 버전이 낮아 이 검색창과 호환되지 않습니다.",errorTooShort:"검색어는 3글자 이상 입력해 주십시오.",errorTooMany:"검색 결과가 너무 많아 100건만 표시합니다.\n정확한 도로명과 건물번호 또는 동·리와 번지로 검색해 주시기 바랍니다.",msgResultCount:"검색 결과",msgSearchTime:"소요 시간",msgNetworkTime:"통신 지연",msgSeeOthers:"관련지번 보기",msgKeywords:"검색 키워드",msgSearch:"검색",msgMap:"지도"},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"}};info.searchProgress="data:image/gif;base64,R0lGODlhEAALAPQAAP///yIiIt7"+"e3tbW1uzs7CcnJyIiIklJSZKSknV1dcPDwz8/P2JiYpmZmXh4eMbGxkJCQiUlJWVlZe"+"np6d3d3fX19VJSUuDg4PPz87+/v6ysrNDQ0PDw8AAAAAAAAAAAACH/C05FVFNDQVBFM"+"i4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCwAAACwAAAAA"+"EAALAAAFLSAgjmRpnqSgCuLKAq5AEIM4zDVw03ve27ifDgfkEYe04kDIDC5zrtYKRa2"+"WQgAh+QQJCwAAACwAAAAAEAALAAAFJGBhGAVgnqhpHIeRvsDawqns0qeN5+y967tYLy"+"icBYE7EYkYAgAh+QQJCwAAACwAAAAAEAALAAAFNiAgjothLOOIJAkiGgxjpGKiKMkbz"+"7SN6zIawJcDwIK9W/HISxGBzdHTuBNOmcJVCyoUlk7CEAAh+QQJCwAAACwAAAAAEAAL"+"AAAFNSAgjqQIRRFUAo3jNGIkSdHqPI8Tz3V55zuaDacDyIQ+YrBH+hWPzJFzOQQaeav"+"Wi7oqnVIhACH5BAkLAAAALAAAAAAQAAsAAAUyICCOZGme1rJY5kRRk7hI0mJSVUXJtF"+"3iOl7tltsBZsNfUegjAY3I5sgFY55KqdX1GgIAIfkECQsAAAAsAAAAABAACwAABTcgI"+"I5kaZ4kcV2EqLJipmnZhWGXaOOitm2aXQ4g7P2Ct2ER4AMul00kj5g0Al8tADY2y6C+"+"4FIIACH5BAkLAAAALAAAAAAQAAsAAAUvICCOZGme5ERRk6iy7qpyHCVStA3gNa/7txx"+"wlwv2isSacYUc+l4tADQGQ1mvpBAAIfkECQsAAAAsAAAAABAACwAABS8gII5kaZ7kRF"+"GTqLLuqnIcJVK0DeA1r/u3HHCXC/aKxJpxhRz6Xi0ANAZDWa+kEAA7AAAAAAAAAAAA"})(jQuery);