document.write("
"); document.write(""); // document.write(""); /****************************************************************************************************************************/ var bAlertError = false; //에러메세지 보이기 var sPdsServerDomain = "http://pds.joinsmsn.com"; //이미지서버 도메인 var sStcServerDomain = "http://static.joinsmsn.com/"; //static서버 도메인 var sStaticCompDomain = sStcServerDomain + "common/data/"; //static서버 컴포넌트 데이터 경로 var sMakeCompDataUrl = "http://app.joinsmsn.com/news/article/make_component_data.asp"; //컴포넌트 데이터 동적생성 페이지 경로 var sJoongangArticleComment = "http://comment.joinsmsn.com/CMTNews.js"; //통합덧글(뉴스용) var sPortalArticleComment = "http://comment.joinsmsn.com/portal/comment.js"; //통합덧글(포탈용) var aPhotoNewListUrl = "http://live.joinsmsn.com/photo/list/list.asp"; //포토뉴스 더보기 var sPollServiceUrl = "http://article.joinsmsn.com/poll/"; //온라인폴 서비스 폴더 var sJournalistInfo = "http://static.joinsmsn.com/common/ui/script/joins_journalist.js"; //기자 정보 var sInteractiveUrl = "http://interactive.joinsmsn.com/article.html?"; var sOpinionListUrl = "http://article.joinsmsn.com/news/list/list_find.asp?"; /* component.info.id component.info.title component.info.servcode component.info.sectcode component.info.createdate */ //본문포함 사용안함 function getHtmlPhoto(cid) { return; var sCompPath, sCompHtml if(cid.toString() == "0" || cid.toString().length <= 0) { return; } sCompPath = sStaticCompDomain + "component/" + sSourceCode + "/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { //alert(relate_photo.info.title); } catch(e) { alertErrorMsg(e); } } ); } //고정사진(PH) function getStaticPhoto(cid, areaName) { var sCompPath, sCompHtml if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } if($("#"+areaName).length == 0) { //기존 기사는 고정사진 들어갈 영역이 없다.. 그래서 영역을 본문 시작되는 부분에 만들어준다. $("
").prependTo("#article_content"); } sCompPath = sStaticCompDomain + "component/" + "PH" + "/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(PH_JSON) != "undefined") { sCompHtml = ""; //for(var nIdx=0; nIdx"; sCompHtml += " \"사진더보기\""; sCompHtml += ""; sCompHtml += "" + PH_JSON.data[nIdx].title + ""; */ sCompHtml += ""; sCompHtml += " "; sCompHtml += ""; sCompHtml += PH_JSON.data[nIdx].desc; } if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("PH"); } else { return sCompHtml; } } else { fnCallMakeJson(sTotalId, "PH", "getStaticPhoto('" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련기사(RA) function getRelateArticle(cid, areaName) { var sCompPath, sCompHtml, sDateTmp, sServiceDate, sServiceTime, sSourceCodeName if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } if(sSiteType.toString().length <= 0) sSiteType = "portal"; sSiteType = sSiteType.toLowerCase(); sCompPath = sStaticCompDomain + "component/" + "RA" + "/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(RA_JSON) != "undefined") { sCompHtml = ""; if(sSiteType == "joongang") { sCompHtml += "
"; sCompHtml += "

관련기사

"; sCompHtml += "
"; sCompHtml += ""; } else { sCompHtml += "
"; sCompHtml += "

관련기사

"; sCompHtml += "
"; sCompHtml += ""; } if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } else { fnCallMakeJson(sTotalId, "RA", "getRelateArticle('" + cid + "', '" + areaName + "')"); } //링크에 cloc붙이기 fn_add_cloc_link(areaName, sSiteType, "joongang|article|related_news"); } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련링크(RL) //관련링크를 이슈/연재용으로만 사용하고 있다. function getRelateLink(cid, areaName) { var sCompPath, sCompHtml, nGetCount //관련기사가 있을경우 노출하지 않는다. if(sRelArticleCid.length > 0) { //return; //무룡과장 요청으로 해지 } nGetCount = 10; if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } sCompPath = sStaticCompDomain + "component/" + "RL" + "/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(RL_JSON) != "undefined") { if(RL_JSON.data.length > 0) { sCompHtml = ""; sCompHtml += "
"; sCompHtml += "

" + RL_JSON.issueinfo.seriestitle + "

"; sCompHtml += "
"; sCompHtml += ""; sCompHtml += "
"; sCompHtml += " " + RL_JSON.issueinfo.seriestitle + " 더보기"; sCompHtml += "
"; if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("RL"); } else { return sCompHtml; } } } else { fnCallMakeJson(cid, "RL", "getRelateLink('" + cid + "', '" + areaName + "')"); } //링크에 cloc붙이기 fn_add_cloc_link(areaName, sSiteType, "joongang|article|related_issue"); } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련인물 function getRelatePeople(cid, areaName) { var sCompPath, sCompHtml, aCareer, sCurrCareer, sBirthYear, sOnOff if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } if($("#"+areaName).length == 0) { getRelatePeople_auto(cid, areaName + "_auto"); return; } sCompPath = sStaticCompDomain + "people/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(INMUL_JSON) != "undefined") { sCompHtml = ""; sCompHtml += ""; if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("PP"); } else { return sCompHtml; } } else { fnCallMakeJson(cid, "PP", "getRelatePeople('" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련인물(하단) function getRelatePeople_auto(cid, areaName) { var sCompPath, sCompHtml, aCareer, sCurrCareer, sBirthYear, sOnOff if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } sCompPath = sStaticCompDomain + "people/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(INMUL_JSON) != "undefined") { sCompHtml = ""; sCompHtml += ""; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; for(var nIdx=0; nIdx"); if(INMUL_JSON.data[nIdx].on_off.length > 0 && INMUL_JSON.data[nIdx].on_off.toUpperCase() == "Y") sCurrCareer += " *사망"; if(INMUL_JSON.data[nIdx].birth.length > 0) sBirthYear = INMUL_JSON.data[nIdx].birth.substring(0,4); else sBirthYear = ""; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; sCompHtml += " "; } sCompHtml += " "; sCompHtml += "
인물정보
사진"; sCompHtml += " 이름"; sCompHtml += " 소속기관"; sCompHtml += " 생년"; sCompHtml += "
"; sCompHtml += " "; sCompHtml += " "; sCompHtml += " " + INMUL_JSON.data[nIdx].name_kor + "(" + INMUL_JSON.data[nIdx].name_chi + ")" + sCurrCareer + "
" + sBirthYear + "
"; if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("PP"); } else { return sCompHtml; } } else { fnCallMakeJson(cid, "PP", "getRelatePeople_auto('" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련폴 function getRelatePoll(cid, areaName) { var sCompPath, sCompHtml, sPollItemTitle, sPollItemImage, nIdCharCode, sPollTitle, nValueLimit, sPollViewSiteType; if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } if(sSiteType == "joongang") { sPollViewSiteType = "J"; } else if(sSiteType == "isplus") { sPollViewSiteType = "I"; sPollServiceUrl = "http://isplus.live.joinsmsn.com/poll/"; } else { sPollViewSiteType = "P"; sPollServiceUrl = "http://live.joinsmsn.com/poll/"; } $.getScript(sPollServiceUrl + "poll_function.js"); sCompPath = sStaticCompDomain + "poll/" + cid.substring(cid.length-2) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(POLL_JSON) != "undefined") { sPollTitle = POLL_JSON.jpoll_title; sPollTitle = fn_ReplaceAll(sPollTitle, "다.", "다.
"); sCompHtml = ""; sCompHtml += "
"; sCompHtml += ""; sCompHtml += "
"; sCompHtml += " 투표하기"; sCompHtml += "
"; sCompHtml += "
" + sPollTitle + "
"; nIdCharCode = 97; for(var nIdx=0; nIdx 0) { sPollItemTitle = "" + sPollItemTitle + ""; } if(POLL_JSON.jpoll_type == "T") { if(parseInt(POLL_JSON.jpoll_value_limit, 10) > 1) sCompHtml += "
"; else sCompHtml += "
"; } else { if(POLL_JSON.jpoll_item[nIdx].image.length <= 0 || POLL_JSON.jpoll_item[nIdx].imagename.length <= 0) { sPollItemImage = "http://images.joinsmsn.com/news/noimage.gif"; } else { sPollItemImage = POLL_JSON.jpoll_item[nIdx].image + POLL_JSON.jpoll_item[nIdx].imagename; if(sPollItemImage.toUpperCase().indexOf("HTTP://") <= 0) sPollItemImage = sPdsServerDomain + sPollItemImage; } if(parseInt(POLL_JSON.jpoll_value_limit, 10) > 1) sCompHtml += "
"; else sCompHtml += "
"; } nIdCharCode += 1; } sCompHtml += "
"; sCompHtml += " "; if(sSiteType == "joongang") { sCompHtml += " \"투표/결과보기\""; sCompHtml += " \"결과보기\""; } else { sCompHtml += " \"투표/결과보기\""; sCompHtml += " \"결과보기\""; } sCompHtml += " "; sCompHtml += "
"; sCompHtml += ""; sCompHtml += ""; sCompHtml += ""; sCompHtml += ""; sCompHtml += ""; sCompHtml += ""; sCompHtml += ""; sCompHtml += ""; sCompHtml += "
"; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } else { fnCallMakeJson(cid, "POLL", "getRelatePoll('" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련조인스Tv 영상 function getRelateJoinsTV(cid, areaName) { var sCompPath, sCompHtml if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } sCompPath = sStaticCompDomain + "joinstv/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(TV_JSON) != "undefined") { sCompHtml = ""; /* TV_JSON.info.catcode TV_JSON.info.catcodename TV_JSON.data[nIdx].id TV_JSON.data[nIdx].title TV_JSON.data[nIdx].regdate TV_JSON.data[nIdx].makid TV_JSON.data[nIdx].img TV_JSON.data[nIdx].bigimg */ for(var nIdx=0; nIdx"; sCompHtml += " \"동영상더보기\""; sCompHtml += ""; sCompHtml += "" + TV_JSON.data[nIdx].title + ""; } if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("TV"); } else { return sCompHtml; } } else { fnCallMakeJson(cid, "TV", "getRelateJoinsTV('" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련JTBC VOD 영상 function getRelateJTBCVod(vodid) { if(vodid.toString() == "0" || vodid.toString().length <= 0) { return; } //if(vodid.substring(0,2) == "NV") { $("#article_content").html( $("#article_content").html() + "
"); } //else if(vodid.substring(0,2) == "VO") { $("#article_content").html( $("#article_content").html() + "
"); } var sDivTag = "
"; var sDivTag2 = "
"; if($("#article_content").html().indexOf(sDivTag) > -1) fnVodPlayNews(vodid, {"ad_presn": 309, "ad_postsn": 324}); else if($("#article_content").html().indexOf(sDivTag2) > -1) //호환성 보기시 생성되는 테그가 다르다. fnVodPlayNews(vodid, {"ad_presn": 309, "ad_postsn": 324}); else $("#article_content").html( $("#article_content").html() + "
"); } //관련인터렉티브 function getRelateInteractive(cid, areaName) { var sCompPath, sCompHtml, sInterArticleLink if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } sCompPath = sStaticCompDomain + "interactive/" + cid.substring(cid.length-3) + "/" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(INTERACTIVE_JSON) != "undefined") { sCompHtml = ""; /* INTERACTIVE_JSON.data[nIdx].id INTERACTIVE_JSON.data[nIdx].totalid INTERACTIVE_JSON.data[nIdx].type INTERACTIVE_JSON.data[nIdx].title INTERACTIVE_JSON.data[nIdx].articletitle INTERACTIVE_JSON.data[nIdx].regdate INTERACTIVE_JSON.data[nIdx].img INTERACTIVE_JSON.data[nIdx].summary */ for(var nIdx=0; nIdx"; sCompHtml += " "; sCompHtml += " \"Interactive"; sCompHtml += ""; sCompHtml += "" + INTERACTIVE_JSON.data[nIdx].articletitle + ""; } if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("INTERACTIVE"); } else { return sCompHtml; } } else { fnCallMakeJson(cid, "INTERACTIVE", "getRelateInteractive('" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //관련포토/관련화보 function getRelateGallery(type, cid, areaName) { var sCompPath, sCompHtml, sGalleryLinkUrl; if(type.toString().length <= 0 || cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } type = type.toUpperCase(); if(type == "P") { //콤포넌트에서 관리하는 내용들은 콤포넌트에서 관리하므로 콤포넌트 아이디로 js를 생성하지만 //이건 포토기사 아이디가 넘어오므로 기사아이디로 파일을 생성한다. //다만 겹칠수 있기때문에.. 앞에 "P_" or "G"를 붙여준다. //중간 경로는 sourcecode로 생성하지 않고 comptype("P" or "G")로 생성한다. sCompPath = sStaticCompDomain + "component/" + type + "/" + cid.substring(cid.length-3) + "/P_" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(P_JSON) != "undefined") { sCompHtml = ""; /* P_JSON.data[nIdx].num P_JSON.data[nIdx].total_id P_JSON.data[nIdx].title P_JSON.data[nIdx].path P_JSON.data[nIdx].title */ for(var nIdx=0; nIdx 0 || P_JSON.data[nIdx].path.indexOf(".JPG") > 0) { sCompHtml += ""; sCompHtml += " "; sCompHtml += " \"사진더보기\""; sCompHtml += ""; sCompHtml += "" + P_JSON.data[nIdx].title + ""; } } if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("PHOTO"); } else { return sCompHtml; } } else { fnCallMakeJson(cid, type, "getRelateGallery('" + type + "', '" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } else if(type == "G") { //콤포넌트에서 관리하는 내용들은 콤포넌트에서 관리하므로 콤포넌트 아이디로 js를 생성하지만 //이건 포토기사 아이디가 넘어오므로 기사아이디로 파일을 생성한다. //다만 겹칠수 있기때문에.. 앞에 "P_" or "G"를 붙여준다. //중간 경로는 sourcecode로 생성하지 않고 comptype("P" or "G")로 생성한다. sCompPath = sStaticCompDomain + "component/" + type + "/" + cid.substring(cid.length-3) + "/G_" + cid + ".js"; $.getScript(sCompPath, function() { try { if(typeof(G_JSON) != "undefined") { sCompHtml = ""; /* G_JSON.data[nIdx].m_id G_JSON.data[nIdx].title G_JSON.data[nIdx].path G_JSON.data[nIdx].desc */ for(var nIdx=0; nIdx"; sCompHtml += " \"사진더보기\""; sCompHtml += ""; sCompHtml += "" + G_JSON.data[nIdx].title + ""; } if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("GALLERY"); } else { return sCompHtml; } } else { fnCallMakeJson(cid, type, "getRelateGallery('" + type + "', '" + cid + "', '" + areaName + "')"); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } else { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); } } //관련영상 function getRelateMovie(cid, areaName) { var sCompPath, sCompHtml if(cid.toString() == "0" || cid.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } sCompHtml = ""; sCompHtml += ""; sCompHtml += " 동영상이미지"; sCompHtml += " \"동영상더보기\""; sCompHtml += ""; sCompHtml += "타이틀"; if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); displayArticleArea("M"); } else { return sCompHtml; } } //주요(추천)기사 function getRecommendArticle(serviceCode, areaName, getCount) { var sCompPath, sCompHtml, nHalfCnt, oRecomValName, sListTitle, nTitleCutLen if(sSiteType.toString().length <= 0) sSiteType = "portal"; if(serviceCode.toString().length <= 0) serviceCode = "00"; if(!getCount || getCount.length <= 0) getCount = 10; sSiteType = sSiteType.toLowerCase(); sCompPath = sStcServerDomain + sSiteType + "/data/article/recommend/" + sSiteType + "_article_recom_list_" + serviceCode + ".js"; $.getScript(sCompPath, function() { try { if(typeof(eval("RCMT_LIST_" + serviceCode + "_JSON") != "undefined")) { oRecomValName = eval("RCMT_LIST_" + serviceCode + "_JSON"); if(oRecomValName.data.length > 0) { if(getCount > oRecomValName.data.length) getCount = oRecomValName.data.length; if((getCount % 2) > 0) nHalfCnt = parseInt((getCount / 2), 10) + 1; else nHalfCnt = getCount / 2; sCompHtml = ""; sCompHtml += "
"; sCompHtml += "

" + getCtgKname(serviceCode) + " 주요 뉴스

"; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += "
    "; for(var nIdx=0; nIdx"; } if(getCount == 1) nTitleCutLen = 100; else nTitleCutLen = 50; /* oRecomValName.data[nIdx].total_id oRecomValName.data[nIdx].ctg oRecomValName.data[nIdx].ctg_name oRecomValName.data[nIdx].mc oRecomValName.data[nIdx].sc oRecomValName.data[nIdx].title oRecomValName.data[nIdx].list_title oRecomValName.data[nIdx].summary oRecomValName.data[nIdx].thumbnail oRecomValName.data[nIdx].service_day oRecomValName.data[nIdx].serivce_time */ if(fn_Trim(oRecomValName.data[nIdx].list_title).length > 0) sListTitle = oRecomValName.data[nIdx].list_title; else sListTitle = oRecomValName.data[nIdx].title; sListTitle = sListTitle.replace("<", "<").replace(">", ">"); sCompHtml += "
  • " + fnSetLength(sListTitle, nTitleCutLen, "…") + "
  • "; } sCompHtml += "
"; sCompHtml += "
"; sCompHtml += ""; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } } else { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } fdns = document.location.href ; if ((fdns.indexOf("live.joinsmsn.com") > -1) || (fdns.indexOf("media.joinsmsn.com") > -1)|| (fdns.indexOf("live02.joinsmsn.com") > -1)) { fn_cvt_cloc("news_article",Left(serviceCode,2),"politics_main_news","major_news") ; //cloc } } ); } //포토기사 function getArticlePhotoNews(serviceCode, areaName, getCount) { var sCompPath, sCompHtml, oPhotoValName, sListTitle if(sSiteType.toString().length <= 0) sSiteType = "portal"; if(serviceCode.toString().length <= 0) serviceCode = "00"; if(!getCount || getCount.length <= 0) getCount = 12; sSiteType = sSiteType.toLowerCase(); sCompPath = sStcServerDomain + sSiteType + "/data/photo/" + sSiteType + "_photo_list_" + serviceCode + ".js"; $.getScript(sCompPath, function() { try { if(typeof(eval("PHOTO_LIST_" + serviceCode + "_JSON") != "undefined")) { oPhotoValName = eval("PHOTO_LIST_" + serviceCode + "_JSON"); sCompHtml = ""; sCompHtml += "
"; sCompHtml += "

포토뉴스

"; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += "
    "; if(getCount > oPhotoValName.data.length) getCount = oPhotoValName.data.length; for(var nIdx=0; nIdx 0) sListTitle = oPhotoValName.data[nIdx].list_title; else sListTitle = oPhotoValName.data[nIdx].title; sCompHtml += "
  • "; sCompHtml += " \"\""; sCompHtml += " " + fnSetLength(sListTitle, 38, "…") + ""; sCompHtml += "
  • "; } sCompHtml += "
"; sCompHtml += "
"; sCompHtml += ""; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } else { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } fdns = document.location.href ; if ((fdns.indexOf("live.joinsmsn.com") > -1) || (fdns.indexOf("media.joinsmsn.com") > -1)|| (fdns.indexOf("live02.joinsmsn.com") > -1)) { fn_cvt_cloc("news_article",Left(serviceCode,2),"article_photo_news","photo_news") ; //cloc } } ); } //댓글(기존꺼) function getArticleComment_jaeils_test(totId, areaName, getCnt) { var sArticleCommentPath = ""; sSiteType = sSiteType.toLowerCase(); if(sSiteType == "joongang") sArticleCommentPath = sJoongangArticleComment; else sArticleCommentPath = sPortalArticleComment; // 통합 덧글 스크립트 호출 $.getScript(sArticleCommentPath, function() { try { /* JCOMMENT([페이지ID], [출력객체], [댓글수]); 페이지ID:아티클은 경우 TotalID 값 출력객체 : 통합댓글 출력영역으로 jQuery로 선택한 객체 댓글수 : 페이지당 댓글 출력 수 */ if(sSiteType == "joongang") JCOMMENT(totId, $("#" + areaName), getCnt); //뉴스용 else TCOMMENT(totId, $("#" + areaName), getCnt); //포탈용 } catch(e) { alertErrorMsg(e); } } ); } // 댓글 자체 function getArticleComment(totId, title, areaName) { var sArticleCommentPath = ""; var sArticleUrl = ""; var sArticleTitle = ""; var sArticleTag = ""; var sAreaName = ""; var olivereObject = null; var alivereParams = []; var sTagParam = ""; sSiteType = sSiteType.toLowerCase(); if(sSiteType == "joongang") { sArticleUrl = "article.joinsmsn.com/news/article/article.asp?total_id"; sTagParam = "중앙일보_"; $.getScript("http://comment.joinsmsn.com/news/comment.js", function() { TCOMMENT(sArticleUrl,totId, $('#article_comment'), 20, title); } ); } else if(sSiteType == "isplus") { sArticleUrl = "isplus.live.joinsmsn.com/news/article/article.asp?total_id"; sTagParam = "isplus"; $.getScript("http://comment.joinsmsn.com/portal/comment.js", function() { TCOMMENT(sArticleUrl,totId, $('#article_comment'), 20, title); } ); } else { sArticleUrl = "live.joinsmsn.com/news/article/article.asp?total_id"; sTagParam = "Jmsn"; $.getScript("http://comment.joinsmsn.com/portal/comment.js", function() { TCOMMENT(sArticleUrl,totId, $('#article_comment'), 20, title); } ); } } //댓글(쓰는거 라이브리) function getArticleComment_livere(totId, title, areaName) { var sArticleCommentPath = ""; var sArticleUrl = ""; var sArticleTitle = ""; var sArticleTag = ""; var sAreaName = ""; var olivereObject = null; var alivereParams = []; var sTagParam = ""; sSiteType = sSiteType.toLowerCase(); if(sSiteType == "joongang") { sArticleUrl = "article.joinsmsn.com/news/article/article.asp?total_id="; sTagParam = "중앙일보_"; } else if(sSiteType == "isplus") { sArticleUrl = "isplus.live.joinsmsn.com/news/article/article.asp?total_id"; sTagParam = "isplus"; } else { sArticleUrl = "live.joinsmsn.com/news/article/article.asp?total_id"; sTagParam = "Jmsn"; } if(sSiteType == "joongang") { sAreaName = escape(areaName) sArticleTitle = encodeURIComponent(title); sArticleUrl = escape(sArticleUrl + totId); sArticleCommentPath = "http://reply.joinsmsn.com/assets/html/js/livereISPLUS.jsp?rep=" + sArticleUrl + "&tag=" + sArticleTag + "&title=" + sArticleTitle + "&targetDIV=" + sAreaName; olivereObject = { action: "http://reply.joinsmsn.com/assets/html/js/joins/livereJOINS2.jsp", parameter: { rep: sArticleUrl, title: title, twitterAccount: '', tag: sTagParam, targetDIV: areaName } } for(var name in olivereObject.parameter) { alivereParams.push(name + "=" + (name == "rep" ? olivereObject.parameter[name] : encodeURIComponent(olivereObject.parameter[name]))); } sArticleCommentPath = olivereObject.action + "?" + alivereParams.join("&"); //document.write(""); // 통합 덧글 스크립트 호출 $.getScript(sArticleCommentPath, function() { try { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":""}); } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } else { TCOMMENT(sArticleUrl,totId, $('#article_comment'), 20, title); } } //중앙일보 핫클릭 function getJoongangHotClick(serviceCode, areaName, getCount) { return getJoongangHotClickList(serviceCode, areaName, getCount, sSiteType); } function getJoongangHotClickList(serviceCode, areaName, getCount, siteType) { var sJHotClickPath, sCompHtml, oJhotValName, sFileService, sAreaTitle, sAreaStartTag, sAreaEndTag /* jhot_common_10 정치(10), 사설칼럼(20) jhot_common_11 경제(11), 부동산() jhot_common_12 사회(12), 교육(12), 문화(17) jhot_common_14 스포츠(14), 연예(15) jhot_common_16 IT과학(16), 국제(13) jhot_common_photo.js 모름 jhot_common_popnews.js 모름 */ if(sSourceCode == "b8") { sFileService = "usajoongang"; } else { if(serviceCode.toString().length <= 0) serviceCode = "10"; if(serviceCode == "10" || serviceCode == "20") { sFileService = "10"; } else if(serviceCode == "11") { sFileService = "11"; } else if(serviceCode == "12" || serviceCode == "17") { sFileService = "12"; } else if(serviceCode == "14" || serviceCode == "15") { sFileService = "14"; } else if(serviceCode == "16" || serviceCode == "13") { sFileService = "16"; } else if(serviceCode == "photo") { if(sSourceCode == "64") sFileService = "popnews"; else sFileService = "photo"; } else { sFileService = "10"; } } sAreaStartTag = ""; sAreaEndTag = ""; sJHotClickPath = sStcServerDomain + siteType + "/data/common/js/jhot_common_" + sFileService + ".js"; $.getScript(sJHotClickPath, function() { try { if(typeof(eval("jhot_common_" + sFileService) != "undefined")) { oJhotValName = eval("jhot_common_" + sFileService); if(sFileService == "usajoongang") sAreaTitle = oJhotValName.content[0].value; else sAreaTitle = "중앙일보 핫클릭"; /* oJhotValName.text.length oJhotValName.image.length oJhotValName.link.length oJhotValName.content.length */ sCompHtml = sAreaStartTag + "\n"; sCompHtml += "
"; sCompHtml += "

" + sAreaTitle + "

"; sCompHtml += "
"; sCompHtml += ""; sCompHtml += sAreaEndTag + "\n"; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } else { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); } //링크에 cloc붙이기 fn_add_cloc_link(areaName, siteType, "joongang|article|hotclick"); } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //일간스포츠 핫클릭 function getIsPlusHotClick(stm, areaName, getCount) { if(document.referrer && document.referrer.indexOf("naver.com") != -1) { stm = "i_naver"; } return getIsPlusHotClickList(stm, areaName, getCount, sSiteType); } function getIsPlusHotClickList(stm, areaName, getCount, siteType) { var sIHotClickPath, sCompHtml, oIhotValName, sFileName //i_b,i_fb,i_s,i_fs if (stm == "i_b" || stm == "i_fb"|| stm == "i_s"|| stm == "i_fs"|| stm == "i_etc") { sFileName = "i_etc"; }else if(stm == "i_naver") sFileName = "i_naver"; else sFileName = "i_ntr"; sIHotClickPath = sStcServerDomain + siteType + "/data/index/stat/ihot_" + sFileName + ".js"; $.getScript(sIHotClickPath, function() { try { if(typeof(eval("isplus_hot_" + sFileName) != "undefined")) { oIhotValName = eval("isplus_hot_" + sFileName); sCompHtml = ""; if(stm == "i_naver") { sCompHtml += "
"; sCompHtml += "

일간스포츠 핫클릭

"; sCompHtml += " 일간스포츠 홈 가기"; sCompHtml += "
"; sCompHtml += "
"; if(oIhotValName.image.length >= 1) { sCompHtml += " "; sCompHtml += " \"\""+ oIhotValName.text[0].value.toString() +""; sCompHtml += " "; } sCompHtml += " "; sCompHtml += "
"; } else { sCompHtml += "
"; sCompHtml += "

일간스포츠 핫클릭

"; sCompHtml += "
"; sCompHtml += ""; } if(areaName && areaName.length > 0) { if(stm == "i_naver") { $("#"+areaName).html(sCompHtml).removeClass("politics_main_news").addClass("n_jhot_click").css({"display":""}); } else { $("#"+areaName).html(sCompHtml).css({"display":""}); } } else { return sCompHtml; } } else { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); } fn_set_cloc_link("article_nhotclick","isplus|naver|hotclick") ; fn_set_cloc_link("article_hotclick","isplus|"+fn_cvt_ctg(sServiceCode)+"|hotclick") ; } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //포털 핫클릭 function getPortalHotClick(serviceCode, areaName, getCount) { if(sSourceCode == "1" || sSourceCode == "3" || sSourceCode == "4") //중앙 핫클릭 { getJoongangHotClickList(serviceCode, areaName, getCount, "joongang"); } else if(sSourceCode == "29" || sSourceCode == "32") //일간 핫클릭 { var sConvertIsPlusStm = sTm && sTm.length > 0 ? sTm.replace("s_", "i_") : "i_etc"; getIsPlusHotClickList(sConvertIsPlusStm, areaName, getCount, "isplus"); } } //기자정보 function getArticleJournalist(journalistName, areaName) { var sCompPath, sCompHtml, bGetInfo, sJournalistName, sJournalistOrgName bGetInfo = false; if(journalistName == null || journalistName.toString().length <= 0) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); return; } $.getScript(sJournalistInfo, function() { try { if(journalistName.length > 0 && journalistName != "n/a") { var aJournalistName = journalistName.split("."); var aInfo = null; var sInfo = ""; var sBlogId = ""; var sEmail = ""; if(aJournalistName.length > 0) { sCompHtml = "
"; sCompHtml += "
    "; for(var nIdx=0; nIdx 0) { try { sJournalistName = aJournalistName[nIdx] sJournalistOrgName = sJournalistName.replace("1", "").replace("2", ""); aInfo = sInfo.split(","); sBlogId = aInfo[0]; sEmail = aInfo[1]; sCompHtml += "
  • "; sCompHtml += "
    "; sCompHtml += "
    " + sJournalistOrgName + " 기자 "; if(sEmail.length > 0) { sCompHtml += " [" + sEmail + "]"; } sCompHtml += "
    "; sCompHtml += "
    "; if(sBlogId.length > 0) { sCompHtml += " 기자의 블로그"; } sCompHtml += " 기자의 다른기사 보기"; sCompHtml += "
    "; sCompHtml += "
    "; sCompHtml += "
  • "; bGetInfo = true; } catch(e){} } } sCompHtml += "
"; sCompHtml += "
"; if(bGetInfo) { if(areaName && areaName.length > 0) { $("#"+areaName).html(sCompHtml).css({"display":""}); } else { return sCompHtml; } } } } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } function getFinanceMoneyMainNewsList(areaName) { var sCompPath, sCompVarName, sCompHtml, sCompJson, sCompTitle, sMoreLinkUrl sCompPath = "http://static.joinsmsn.com/portal/data/home/stat/index_channel_area_money.js"; sCompVarName = "finance_index_channel_area_money"; sMoreLinkUrl = "http://media.joinsmsn.com/list/finance/list.html"; sCompTitle = "재테크 주요 뉴스"; $.getScript(sCompPath, function() { try { if(typeof(eval(sCompVarName)) != "undefined") { sCompJson = eval(sCompVarName); sCompHtml = ""; sCompHtml += "
"; sCompHtml += "

" + sCompTitle + "

"; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += " "; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += " " + sCompTitle + " 더보기"; sCompHtml += "
"; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } function getFinanceLandMainNewsList(areaName) { var sCompPath, sCompVarName, sCompHtml, sCompJson, sCompTitle, sMoreLinkUrl sCompPath = "http://static.joinsmsn.com/portal/data/home/stat/index_channel_area_land.js"; sCompVarName = "land_index_channel_area_land"; sMoreLinkUrl = "http://finance.joinsmsn.com/news_land/list/list.asp"; sCompTitle = "부동산 주요 뉴스"; $.getScript(sCompPath, function() { try { if(typeof(eval(sCompVarName)) != "undefined") { sCompJson = eval(sCompVarName); sCompHtml = ""; sCompHtml += "
"; sCompHtml += "

" + sCompTitle + "

"; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += " "; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += " " + sCompTitle + " 더보기"; sCompHtml += "
"; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } function getFinanceStockMainNewsList(areaName) { var sCompPath, sCompVarName, sCompHtml, sCompJson, sCompTitle, sMoreLinkUrl sCompPath = "http://static.joinsmsn.com/portal/data/home/stat/index_channel_area_stock.js"; sCompVarName = "stock_cp_index_channel_area_stock"; sMoreLinkUrl = "http://finance.joinsmsn.com/news_stock/"; sCompTitle = "증권 주요 뉴스"; $.getScript(sCompPath, function() { try { if(typeof(eval(sCompVarName)) != "undefined") { sCompJson = eval(sCompVarName); sCompHtml = ""; sCompHtml += "
"; sCompHtml += "

" + sCompTitle + "

"; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += " "; sCompHtml += "
"; sCompHtml += "
"; sCompHtml += " " + sCompTitle + " 더보기"; sCompHtml += "
"; if(areaName && areaName.length > 0) $("#"+areaName).html(sCompHtml).css({"display":""}); else return sCompHtml; } } catch(e) { if(areaName && areaName.length > 0) $("#"+areaName).css({"display":"none"}); alertErrorMsg(e); } } ); } //본문 삽입 Ms 광고 function getArticleContentMsAd() { var sAdContent = ""; var sAdContentBtm = ""; var sArticleAdPath = ""; var sArticleAdPathBtm = ""; var sPageUrlHost = ""; var dtTmp = new Date() var nMilliSec = dtTmp.getMilliseconds(); var nMilliSecBtm = nMilliSec + 1; var _aTopBanner_start_date = ""; var _aTopBanner_end_date = ""; try { //if(sSiteType != "joongang"){ if(sSiteType == "joongang"){ _aTopBanner_start_date = new Date("Aug 16 00:00:00 2011"); _aTopBanner_end_date = new Date("Sept 30 00:00:00 2011"); }else if(sSiteType == "isplus"){ _aTopBanner_start_date = new Date("Aug 16 00:00:00 2011"); _aTopBanner_end_date = new Date("Sept 30 00:00:00 2011"); }else{ _aTopBanner_start_date = new Date("Aug 16 00:00:00 2011"); _aTopBanner_end_date = new Date("Sept 30 00:00:00 2011"); } if(_aTopBanner_start_date < dtTmp && dtTmp < _aTopBanner_end_date) { var _top_big_notice_banner = "\n"+ "\n"+ "\n"+ "