function isTouchAble(){ if(navigator.userAgent.indexOf('Mobile') != -1){ return true; } else { return false; } } function receiveMessage(event) { var parent = document.location.protocol+"//wr.catad5959.com"; if (event.origin !== parent) return; if (event.data.target!="") { document.getElementById("wcr_"+event.data.target).height = parseInt(event.data.height); } } if ('addEventListener' in window){ window.addEventListener('message', receiveMessage, false); } else if ('attachEvent' in window){ //IE window.attachEvent('onmessage', receiveMessage); } var WCR_CODE="wcr_frien_955"; var CODE_SPLIT = WCR_CODE.split("_")[1]; var w_szFullPath=location.href.replace("http://","").replace("https://",""); var w_arrUrlPath=w_szFullPath.split('/'); var WCR_HOST = w_arrUrlPath[0]; var WCR_URL = w_szFullPath.replace(WCR_HOST,"").split("?"); var WCR_QUERYSTRING=(WCR_URL[1])?WCR_URL[1]:""; var WCR_ADCNT="4"; if (WCR_CODE == "wcr_mydaily_33"){ if (isTouchAble() == true) { var WCR_OWIDTH="100%"; var WCR_OHEIGHT="250"; }else{ var WCR_OWIDTH="100%"; var WCR_OHEIGHT="250"; } }else if ((WCR_CODE == "wcr_2do_518") || (WCR_CODE == "wcr_2do_519") || (WCR_CODE == "wcr_2do_520") || (WCR_CODE == "wcr_2do_521") || (WCR_CODE == "wcr_2do_522") || (WCR_CODE == "wcr_2do_523") || (WCR_CODE == "wcr_2do_524") || (WCR_CODE == "wcr_2do_525") || (WCR_CODE == "wcr_2do_571") || (WCR_CODE == "wcr_2do_572") || (WCR_CODE == "wcr_2do_573") || (WCR_CODE == "wcr_2do_574")){ var WCR_OWIDTH="49.9%"; var WCR_OHEIGHT="250"; }else if (WCR_CODE == "wcr_joongdo_1193") { var WCR_OWIDTH="100%"; var WCR_OHEIGHT="250"; }else{ var WCR_OWIDTH="100%"; var WCR_OHEIGHT="250"; } var WCR_WIDTH=120; var WCR_HEIGHT=90; var WCR_BANNERTYPE=18; var WCR_fsize=""; var WCR_fw=""; var WCR_fs=""; var WCR_fheight=""; var WCR_CPPYN="1"; var WCR_CPCYN="0"; var WCR_POPUPYN="1"; var WCR_POPUPURL=encodeURIComponent("//news-topic.kr/backx/") var WCR_OID = Math.floor(Math.random()*999999).toString(); var WCR_PARENT = document.location.host; var WCR_CALL_URL="//wr.catad5959.com/thumbnail/wrcatad.t2.thumbnail_banner.asp"; //var WCR_CALL_DATA="sitehost="+WCR_HOST+"&siteurl="+escape(WCR_URL[0]+"?"+WCR_QUERYSTRING)+"&madvc="+ WCR_CODE+"&cpp="+ WCR_CPPYN +"&cpc="+ WCR_CPCYN +"&dAC="+WCR_ADCNT+"&dW="+WCR_WIDTH+"&dH="+WCR_HEIGHT+"&fsize="+WCR_fsize+"&fw="+WCR_fw+"&fs="+WCR_fs+"&fh="+WCR_fheight+"&popupYn="+ WCR_POPUPYN+"&popupUrl="+ WCR_POPUPURL+"&BannerType="+WCR_BANNERTYPE+"&oid="+WCR_OID+"&parent="+WCR_PARENT; //var WCR_CALL_DATA="sitehost="+WCR_HOST+"&siteurl="+escape(WCR_URL[0]+"?"+WCR_QUERYSTRING)+"&madvc="+ WCR_CODE+"&cpp="+ WCR_CPPYN +"&cpc="+ WCR_CPCYN +"&dAC="+WCR_ADCNT+"&dW="+WCR_WIDTH+"&dH="+WCR_HEIGHT+"&fsize="+WCR_fsize+"&fw="+WCR_fw+"&fs="+WCR_fs+"&fh="+WCR_fheight+"&popupYn="+ WCR_POPUPYN+"&popupUrl="+ WCR_POPUPURL+"&BannerType="+WCR_BANNERTYPE; var WCR_CALL_DATA="madvc="+ WCR_CODE+"&cpp="+ WCR_CPPYN +"&cpc="+ WCR_CPCYN +"&dAC="+WCR_ADCNT+"&dW="+WCR_WIDTH+"&dH="+WCR_HEIGHT+"&fsize="+WCR_fsize+"&fw="+WCR_fw+"&fs="+WCR_fs+"&fh="+WCR_fheight+"&popupYn="+ WCR_POPUPYN+"&popupUrl="+ WCR_POPUPURL+"&BannerType="+WCR_BANNERTYPE; if (WCR_CODE == "wcr_mydaily_33"){ document.writeln("