// imc 배너 function fn_right_imc_banner(){ } // 크리테오용 스크립트 s function CriteoSetCookie(name,value){ var argv = CriteoSetCookie.arguments; var argc = CriteoSetCookie.arguments.length; var expires = (2 < argc) ? argv[2]:null; var path = (3 < argc) ? argv[3]:null; var domain = (4 < argc) ? argv[4]:null; var secure = (5 < argc) ? argv[5]:null; var expire_date = new Date(); expire_date.setDate(expire_date.getDate()+expires); document.cookie = name + "=" + escape (value) + ((expire_date == null) ? "" : ("; expires=" + expire_date.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "": ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function CriteoGetCookie(strName) { var strArg = new String(strName + "="); var nArgLen, nCookieLen, nEnd; var i = 0, j; nArgLen = strArg.length; nCookieLen = document.cookie.length; if(nCookieLen > 0) { while(i < nCookieLen) { j = i + nArgLen; if(document.cookie.substring(i, j) == strArg) { nEnd = document.cookie.indexOf (";", j); if(nEnd == -1) nEnd = document.cookie.length; return unescape(document.cookie.substring(j, nEnd)); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } } return(""); } function GetCriteoSection(data, name) { eval("var r=/.*(?:^|&)" + name + "=(.+?)(?:&|$).*/gi"); return data.replace(r, "$1"); } // 크리테오용 스크립트 e // DA 광고 function fn_right_top_ad_cp(inVt, inTop) { if (inVt=="stock") { fSn1 ="19" ; fSn2 ="20" ;} else if (inVt=="land") { fSn1 ="21" ; fSn2 ="22" ;} else if (inVt=="auto") { fSn1 ="27" ; fSn2 ="28" ;} else if (inVt=="comic") { fSn1 ="37" ; fSn2 ="38" ;} else if (inVt=="golf") { fSn1 ="13" ; fSn2 ="14" ;} else { fSn1 ="44" ; fSn2 ="45" ;} if (inTop =="B") { inSn = fSn2 ; } else { inSn = fSn1 ; } if (inSn =="") { inSn = "44";} if(typeof(inTop) != "undefined" && inTop == "B") { document.write(''); document.write('
'); document.write(' '); document.write('
'); document.write(''); document.write('
'); } else { var cnt = 0; var toDay = new Date(); var toY= toDay.getFullYear(); var toM = (toDay.getMonth()+1)>9 ? ''+(toDay.getMonth()+1) : '0'+(toDay.getMonth()+1); var toD = toDay.getDate()>9 ? ''+toDay.getDate() : '0'+toDay.getDate(); var c_time = toY+"-"+toM+"-"+toD; var data = CriteoGetCookie("112425"); var strReturnC = GetCriteoSection(CriteoGetCookie("112425"), "c"); var strReturnV = GetCriteoSection(CriteoGetCookie("112425"), "v"); var strReturnT_1 = CriteoGetCookie("criteo_ctime_1"); var viewCnt_1 = new Number(CriteoGetCookie("shop_count_1")); if(strReturnV == "1" && strReturnT_1 != c_time) { //입력된 날짜가(c_time)이 오늘이 아닐때 카운터를 초기화 후 당일 날짜를 셋팅 CriteoSetCookie("criteo_ctime_1",c_time, 1 , "/", ".joinsmsn.com"); //당일날자로 쿠키 생성 CriteoSetCookie("shop_count_1",0, 1 , "/", ".joinsmsn.com"); //샵카운트 쿠키 생성. 0부터 시작 } else if( strReturnV == "1" && viewCnt_1 < 9 ) { //입력된 날짜가(c_time)이 오늘과 똑같거나 카운트가 9보다 작을 때 var cnt = new String(viewCnt_1 + 1); CriteoSetCookie("shop_count_1",cnt , 1, "/", ".joinsmsn.com"); //페이지에 접속할때마다 카운터 1식 증가 } document.write(' '); document.write('
'); if(strReturnV =="1" && viewCnt_1 < 9){ //카운트가 9보다 작을 때 크리테오 스크립트 작동 document.write(" "); }else{ /* 기존 opap hc.aspx iframe 코드 */ /*넘겨줘햐 하는 값들 ssn :광고 슬롯SN b : 도메인명 articleid : 기사 ID (total ID 아님) mediaid : 인터웍스에서 사용하는 매체ID(joins,igs) site : 인터웍스에서 사용하는 사이트구분(news.joinsmsn.com,isplus.joins.com) page : 인터웍스에서 사용하는 사이트구분(joins_news,isplus_joins_news) */ if(typeof(sArticleId) != "undefined") d_articleid = sArticleId; else d_articleid = ""; d_mediaid = "igs" ; d_site = "isplus.joins.com"; d_page = "isplus_joins_news"; document.write(''); } document.write('
'); document.write(' '); document.write('
'); } } // 쇼핑박스 function fn_right_shoppingbox(inMedia, inVt){ if (inMedia=="portal") { fMedia = "Newjoinsmsn" ; } else { fMedia = "NewisplusV2" ; } document.write(''); document.write('
'); document.write(' '); document.write('
'); document.write(''); document.write('
'); } //오늘의 주요 이슈 function fn_today_issuering(){ document.write(' '); document.write('
'); document.write('
'); document.write('

오늘의 주요 이슈링

'); document.write('
'); document.write('
'); document.write(' '); document.write('
'); document.write('
'); document.write(' 더보기'); document.write('
'); document.write('
'); document.write(' '); document.write('
'); $.getScript("http://static.joinsmsn.com/portal/data/pnews/stat/main_issue.js",function() { var tjson; if(typeof(pnews_right_main_issue) == "undefined") return; else tjson = pnews_right_main_issue; var str = ''; var tobj; fcount = tjson.image.length ; for (i=0;i'; str +='
포토 '+fTitle+'
'; str +='
'+fCont+'
'; str +=' '; str +=' '; } $("#today_issuering_ul").html(str); $("#today_issuering").show(); }); } function fn_Convert_Issue_Class(inType){ if (inType=="v") { fsubclass = "vs" ; }else if (inType=="d") { fsubclass = "discussion"; }else if (inType=="p") { fsubclass = "photo"; } else { fsubclass = "issue"; } return fsubclass ; } //스폰서 링크 function fn_right_portal_sponsor_link(inMeida){ document.write(''); //document.write(""); document.write(""); document.write(''); } var _g_right_fresh_gallery_index = 0; var _g_right_fresh_gallery_length; //생생화보 function fn_right_fresh_gallery(vt,ctg){ document.write(''); document.write(''); document.write(''); document.write('
'); var str = ""; $.getScript("http://static.joinsmsn.com/portal/data/pnews/stat/portal_right_fresh_gallery.js",function() { /*@right_fresh_gallery(start)@*/ /*@right_fresh_gallery(end)@*/ var tjson; if(typeof(pnews_right_right_fresh_gallery) == "undefined") return; else tjson = pnews_right_right_fresh_gallery; var str = ''; var tobj; var div_class=""; _g_right_fresh_gallery_length = tjson.image.length; for (i=0;i'); str = str +(' '); str = str +(' '); str = str +(' '+tjson.text[i].value+''); str = str +(' '); str = str +(''); } $("#fresh_gallery_items").html(str); setTimeout('$("#fresh_gallery").show();',10); }); } // 생생화보 : 슬라이드텝변경 function fn_right_fresh_gallery_go(dir){ if(dir=="prev"){ _g_right_fresh_gallery_index--; if(_g_right_fresh_gallery_index<0)_g_right_fresh_gallery_index=_g_right_fresh_gallery_length-1; $("#fresh_gallery_items > div").hide(); $("#fresh_gallery_item_"+_g_right_fresh_gallery_index).show(); } if(dir=="next"){ _g_right_fresh_gallery_index++; if(_g_right_fresh_gallery_index>(_g_right_fresh_gallery_length-1))_g_right_fresh_gallery_index=0; $("#fresh_gallery_items > div").hide(); $("#fresh_gallery_item_"+_g_right_fresh_gallery_index).show(); } } function news_common_sonagi_tab(objname, arrobj, defaulttab,vt,ctg) { $.getScript("http://static.joinsmsn.com/portal/data/common/auto/sonagi/article_right_sonagi.js", function() { tobj=$("#"+objname); if(arrobj.length==3) { tobj.addClass("tab_type3") } if(arrobj.length==4) { tobj.addClass("tab_type4") } var str=""; var item=0; for(item=0;item"+item_name+"" str=str+"
    "; for(i=0;i22) { title = (title.substr(0, 22)+'…'); } str=str+"
  1. "+title+"
  2. "; } str=str+"
"; } } $("#sonagi_tab").append(str); }); } function fn_view_sonagi_tab(no){ $("#sonagi_tab > h3").removeClass("on"); $("#sonagi_tab_"+no).addClass("on"); $("#sonagi_tab > ol").removeClass("on"); $("#sonagi_tab_list_"+no).addClass("on"); } function fn_right_sonagi(ctg,vt){ document.write(' '); document.write('
'); document.write('
'); document.write('

많이 본 기사

'); document.write('
'); document.write('
'); //portal common_ui.js if(ctg=="00") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],0,vt,ctg); if(ctg=="10") news_common_sonagi_tab("sonagi_tab",["10|정치","00|종합","14|스포츠","15|연예"],0); if(ctg=="11") news_common_sonagi_tab("sonagi_tab",["11|경제","00|종합","14|스포츠","15|연예"],0); if(ctg=="12") news_common_sonagi_tab("sonagi_tab",["12|사회","00|종합","14|스포츠","15|연예"],0); if(ctg=="13") news_common_sonagi_tab("sonagi_tab",["13|국제","00|종합","14|스포츠","15|연예"],0); if(ctg=="14") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],1,vt,ctg); if(ctg=="15") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],2,vt,ctg); if(ctg=="16") news_common_sonagi_tab("sonagi_tab",["16|IT/과학","00|종합","14|스포츠","15|연예"],0); if(ctg=="17") news_common_sonagi_tab("sonagi_tab",["00|종합","14|스포츠","15|연예"],0,vt,ctg); document.write('
'); document.write(' '); document.write('
'); }