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_954";
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="3";
if (WCR_CODE == "wcr_wecyd_132"){
if (isTouchAble() == true)
{
var WCR_OWIDTH="100%";
var WCR_OHEIGHT="610px";
}else{
var WCR_OWIDTH="100%";
var WCR_OHEIGHT="290";
}
}else{
var WCR_OWIDTH="100%";
var WCR_OHEIGHT="290";
}
var WCR_WIDTH=70;
var WCR_HEIGHT=70;
var WCR_BANNERTYPE=10;
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/native/wrcatad.t3.native_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+"&oW="+WCR_OWIDTH+"&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_star_169") {
document.writeln ("");
}
/*
else if (WCR_CODE == "wcr_topstar_903") {
WCR_CALL_URL = "//ads.mydplus.co.kr/banner/banner.asp?k=Mw==";
document.writeln ("");
}
*/
else{
document.writeln ("");
}