/*marketgid.comV7.7*/ function MGD019824(MGD02){ if (!document.cookie){ document.cookie="MG_9824=1;path=/"; if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } else return 1-1; } var prefix=MGD02+"="; var begin=document.cookie.indexOf("; "+prefix); if(begin==-1){ begin=document.cookie.indexOf(prefix); if(begin!=0){ return null; } }else{ begin += 2; } var end=document.cookie.indexOf(";", begin); if (end==-1){ end=document.cookie.length; }return unescape(document.cookie.substring(begin+prefix.length,end)); } function MGD039824(str,MGD03){ var word=new Array(); var i; var ret=''; word=str.split(" "); for (i=0;i<word.length;i++){ if (word[i].length>MGD03 && word[i].search(/&\w+;/)<0) ret+=word[i].substr(0,MGD03) + ' ' + word[i].substr(MGD03) + ' '; else ret+=word[i] + ' '; } return ret; } function MGD049824(str,MGD03){ if (str.length<=MGD03) 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>MGD03) return ret+'...'; else ret+=word[i] + ' '; } return str; } function MGD069824(title){ title=MGD039824(title,15); title=MGD049824(title,70); return title; } function MGD079824(desc){ desc=MGD039824(desc,120); return desc; } function MGD099824(title,id,f_src,desc,ext){ MGDA+=' <td width="33%" valign="top" align="center"> <a target="_blank" href="http://www.mgid.com/pnews/'+id+'/i/9824/pp/'+MGD00+'/'+MGDZ9824+'/" ><IMG width="140px" height="140px" width="200" height="200" src="http://imgn.dt07.net/'+Math.floor(id/1000)+'/'+id+'_vb'+ext+'" /></a> <div id="tizer1" style="padding-top:1px;"> <a target="_blank" class="mctitlegh" href="http://www.mgid.com/pnews/'+id+'/i/9824/pp/'+MGD00+'/'+MGDZ9824+'/">'+title+'</a> </div> </td> '; if ( MGD00 == 3){ MGDA+='</tr><tr>'; } MGDA+=' '; MGD00++; } function MarketGidLoad(str){ MarketGidLoad9824(str); } function MarketGidLoad9824(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD099824(MGD069824(n[3]),n[1],n[0],MGD079824(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if (MGDQ9824) MGDQ9824.innerHTML = '<table width="500" cellpadding="0" cellspacing="2" border="0" class="MGC09824zz" > <tr> '+MGDA+' </tr> </table>'; } function MarketGidLoadNews9824(json){ var i; MGDA=''; if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD099824(MGD069824(n[3]),n[1],n[0],MGD079824(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if(MGDQ9824 && MGDA){ MGDQ9824.innerHTML='<table width="500" cellpadding="0" cellspacing="2" border="0" class="MGC09824zz" > <tr> '+MGDA+' </tr> </table>'; } }else{ MGD109824(); if(MGDQ9824){ MGDQ9824.innerHTML=''; } } } function MGD109824(){document.cookie="MG_9824="+MGDZ9824+";path=/";} var MGDZ9824 = 1; var MGDA=''; var MGDQ9824 = document.getElementById('MarketGid9824'); var MG_c=MGD019824("MG_9824"); var MGD00=1; var MGDRN9824=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ9824=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ9824=1; document.cookie="MG_9824="+MGDZ9824+";path=/"; if (MGDQ9824) { document.write('<style type="text/css">a.mctitlegh:link,a.mctitlegh:active,a.mctitlegh:visited { font-size: 12px; font-weight:normal; font-family :Arial,Helvetica,Tahoma,Verdana,Sans-Serif; text-decoration:none; color:#000000!important; } a.mctitlegh:hover {text-decoration:underline;} 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; } .MGC09824zz td{ text-align: center!important; padding:2px; } #tizer1 {text-align:center:!important; float:none!important;} .MGC09824zz img{ float:none!important; border: 1px solid #999999;padding:3px; margin: 2px 4px 2px 2px; } <'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://ab.newsblock.dt07.net/p/j/9824/'+MGDZ9824+'"><'+'/scr'+'ipt>'); }