/*marketgid.comV7.1*/function MGD1(MGD2){ var dc=document.cookie; var prefix=MGD2+"="; var begin=dc.indexOf("; "+prefix); if(begin==-1){ begin=dc.indexOf(prefix); if(begin!=0){ return null; } }else{ begin += 2; } var end=dc.indexOf(";", begin); if (end==-1){ end=dc.length; }return unescape(dc.substring(begin+prefix.length,end)); } function MGD3(str,MGD3){ var word=new Array(); var i; var ret=''; word=str.split(" "); for (i=0;i<word.length;i++){ if (word[i].length>MGD3 && word[i].search(/&\w+;/)<0) ret+=word[i].substr(0,MGD3) + ' ' + word[i].substr(MGD3) + ' '; else ret+=word[i] + ' '; } return ret; } function MGD4(str,MGD3){ if (str.length<=MGD3) return str; var word=new Array(); word=str.split(" "); var ret=word[0] + ' '; var test; for (i=1;i<word.length;i++){ test=ret+word[i]; if (test.length>MGD3) return ret+'...'; else ret+=word[i] + ' '; } return str; } function MGD6(title){ return title; } function MGD7(desc){ desc=MGD3(desc,120); return desc; } function MGD8(str,id,f_src,desc,title){ str=str.replace('{$news_id}',id); str=str.replace('{$news_id}',id); str=str.replace('{$news_id}',id); str=str.replace('{$news_id}',id); str=str.replace('{$source}',f_src); str=str.replace('{$source}',f_src); str=str.replace('{$source}',f_src); str=str.replace('{$source}',f_src); str=str.replace('{$desc}',desc); str=str.replace('{$desc}',desc); str=str.replace('{$desc}',desc); str=str.replace('{$desc}',desc); str=str.replace('{$desc}',desc); str=str.replace('{$title}',title); str=str.replace('{$title}',title); str=str.replace('{$title}',title); str=str.replace('{$title}',title); str=str.replace('{$title}',title); return str; } function MGD9(title,id,f_src,desc,photo){ MGDA+=MGD8(' <li> <div style="padding-top:3px;"> <a target="_blank" class="mctitle" href="http://www.marketgid.com/pnews/{$news_id}/i/618/">{$title} </a> </div> <a target="_blank" href="http://www.marketgid.com/sources/{$source}/"></a> </li> ',id,f_src,desc,title); MGD0++; } function MarketGidLoad(str){ var news=str.split('&#2;'); var i,n,t; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); if (n[2]) t=n[1] + '.jpg'; else t=''; MGD9(MGD6(n[3]),n[1],n[0],MGD7(n[4]),t); } MGDA='<ul> '+MGDA+' </ul>'; if (MGDQ) MGDQ.innerHTML = MGDA; } var MGDZ = 2; var MGDA=''; var MGDQ = document.getElementById('pmc_ln2'); var MG_c=MGD1("MG_618"); var MGD0=1; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; document.cookie="MG_618="+MGDZ+";path=/"; if (MGDQ) { document.write('<style type="text/css"> a.mctitle:link,a.mctitle:active,a.mctitle:visited,a.mctitle:hover{font-size: 12px; font-weight:normal;TEXT-DECORATION: underline;font-family:tahoma;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{font-size:11px; font-weight: normal;color:#000; TEXT-DECORATION: none;font-family:tahoma;}<'+'/style>'); document.write('<scr'+'ipt language="javascript" type="text/javascript" src="http://newsblock.dt00.net/j/618/'+MGDZ+'"><'+'/scr'+'ipt>'); }
