function goMediaLink(mediaUrl){ window.open(mediaUrl, "media_pop", "width=780,height=560, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no,copyhistory=yes, resizable=yes"); } function getQuickLink(title){ title = (title!="") ? ""+title+"" : "

퀵링크 

"; document.write(""); } function getQuickLinkArray(){ var arr = [ ]; return arr; } function getQuickLinkCount(){ return 0; } function getGoldLink(){ document.write(""); } function getGoldLinkArray(){ var arr = [ ]; return arr; } function getGoldLinkCount(){ return 0; } document.write(""); var maxPage = 0; var maxPageNumber = 0; var keyword = "배옥진"; var address = ""; var lat = "37.566826"; var lng = "126.9786567"; var wplMapData = ''; function getPremiumMap(listNum){ document.nutMap.location.href='//adsvc.wisenut.co.kr/map/showMap_utf8.asp?num='+listNum+'&map='+wplMapData } function getPremiumLink(title){ title = (title!="") ? title : "

와이즈플레이스

와이즈플레이스 등록
"; title = title.replace('$wisenut_link$', '//marketing.wisenut.co.kr/mkt/wisenut.jsp'); title = title.replace('$wisenut_adimg$', '//image.wisenut.co.kr/WisenutAD/images/admark/kw_ad_mark.gif'); document.write(""); if(document.wisenut_frm){ document.wisenut_frm.target = 'nutMap'; document.wisenut_frm.action = '//adsvc.wisenut.co.kr/map/showMap2_utf8.asp'; document.wisenut_frm.submit(); } } function getPremiumLinkArray(){ var arr = [ ]; return arr; } function getPremiumLinkCount(){ return 0; } var getJSON = function(url, callback) { xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onload = function() { var status = xhr.status; if (status === 200) { callback(null, JSON.parse(xhr.response)); } else { callback(status, xhr.response); } }; xhr.send(); }; var page = 1; var pageNumber = 0; function goNextLocalPlace(){ if(pageNumber == maxPageNumber) return; pageNumber = pageNumber + 1; var pageNum = document.getElementsByClassName("localPageNumber"); for(var i = 0; i < pageNum.length; i++){ if(i==0) { pageNum[i].innerHTML = ""+(pageNumber*10 + i + 1)+""; } else { pageNum[i].innerHTML = pageNumber*10 + i + 1; } if(pageNumber*10 + i + 1 > maxPage){ pageNum[i].style.display = "none"; } } page = pageNumber*10 + 1; localPlacePage(1); if(pageNumber == 1) { document.getElementById("localPageLeftImg").style.opacity = "1"; document.getElementById("localPageLeftImg").style.cursor = "pointer"; } else if (pageNumber == maxPageNumber){ document.getElementById("localPageRightImg").style.opacity = "0.4"; document.getElementById("localPageRightImg").style.cursor = "default"; } } function goPreLocalPlace(){ if(pageNumber == maxPageNumber){ document.getElementById("localPageRightImg").style.opacity = "1"; document.getElementById("localPageRightImg").style.cursor = "pointer"; var pageNum = document.getElementsByClassName("localPageNumber"); for(var k = 0; k < pageNum.length; k++){ pageNum[k].style.display = ""; } } else if(pageNumber == 0){ return; } pageNumber = pageNumber - 1; var pageNum = document.getElementsByClassName("localPageNumber"); for(var i = 0; i < pageNum.length; i++){ if(i==0) { pageNum[i].innerHTML = ""+(pageNumber*10 + i + 1)+""; } else { pageNum[i].innerHTML = pageNumber*10 + i + 1; } } page = pageNumber*10 + 1; localPlacePage(1); if(pageNumber == 0) { document.getElementById("localPageLeftImg").style.opacity = "0.4"; document.getElementById("localPageLeftImg").style.cursor = "default"; } } var mapData = ""; function localPlacePage(p){ p = pageNumber*10 + p var result = new Array(); getJSON(encodeURI("//adsvc.wisenut.co.kr/localplace_json_utf8.asp?keyword="+keyword+"&address="+address+"&lat="+lat+"&lng="+lng+"&page="+p+"&scode=1803"), function(err, data) { if (err !== null) { alert('Something went wrong: ' + err); } else { result =data.list; var localUl = document.getElementsByClassName("nutpremium_pre_local"); mapData = ""; for(var i = 0; i < result.length; i++){ var strHtml = ""; strHtml = strHtml + "
  • " + ""+result[i].title+"" + "
  • "; if("N"=="N"){ strHtml = strHtml + "
  • " + "위치보기 " + "" + "지도상세보기" + " " + "" + "길찾기" + "" + "
  • "; } var telUrl = ""; if("N"=="Y" && result[i].telNum != ""){ telUrl = "tel:"+result[i].telNum; } else { telUrl = result[i].clickUrl; } strHtml = strHtml + "
  • " + ""+ result[i].telNum +"" + " "+ result[i].addr +" " + "
  • "; if("N"=="Y"){ strHtml = strHtml + "
  • " + "위치보기 " + "" + "지도상세보기" + " " + "" + "길찾기" + "" + "
  • "; } strHtml = strHtml + result[i].pv; localUl[i].innerHTML = strHtml; mapData = mapData + "{" + " \"lat\" : \""+ result[i].lat + "\", " + " \"lng\" : \""+ result[i].lng + "\", " + " \"title\" : \""+ result[i].title + "\", " + " \"addr\" : \""+ result[i].addr + "\", " + " \"idx\" : \""+ i + "\", " + " \"lpl\" : \"Y\" " + "}, " } mapData = mapData + "{" + " \"count\" : "+ result.length + ","+ " \"map\" : [" + mapData + "]" + "}" var pageNum = document.getElementsByClassName("localPageNumber"); pageNum[(page-1)%10].innerHTML = page; pageNum[(p-1)%10].innerHTML = ""+p+""; page = p; document.nutMap.location.href = "//adsvc.wisenut.co.kr/map/showMap_utf8.asp?num=0&isLocalPlace=Y&map="+mapData; } for(var i=result.length; i

    와이즈링크

    와이즈링크등록
    "; title = (title!="") ? title : "

    와이즈링크

    와이즈링크등록
    "; title = title.replace('$wisenut_link$', '//marketing.wisenut.co.kr/mkt/wisenut.jsp'); title = title.replace('$wisenut_adimg$', '//image.wisenut.co.kr/WisenutAD/images/admark/kw_ad_mark.gif'); document.write(""); } function getWiseLinkArray(){ var arr = [ ]; return arr; } function getWiseLinkCount(){ return 0; } function mobionPv(){ var dt = new Date(); var year = dt.getFullYear()+''; var month = (dt.getMonth()+1)+''; if(month.length == 1) month = '0'+month; var day = dt.getDate()+''; if(day.length == 1) day = '0'+day; var url = 'http://www.dreamsearch.or.kr/servlet/API/ver2.0/JSON/sNo/17410/VIEW?'; var data = 'viewDate='+year+month+day+'&adGubun=IB&productType=banner'; var xhr = new XMLHttpRequest(); xhr.open('POST', url+data, true); xhr.send(); }