/*marketgid.comV7.7*/ function MGD019982(MGD02){ if (!document.cookie){ document.cookie="MG_9982=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 MGD039982(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 MGD049982(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 MGD069982(title){ title=MGD039982(title,15); title=MGD049982(title,70); return title; } function MGD079982(desc){ desc=MGD039982(desc,120); return desc; } function MGD099982(title,id,f_src,desc,ext){ MGDA+=' <td width="25%" valign="top" align="center"> <a target="_blank" href="http://www.mgid.com/pnews/'+id+'/i/9982/pp/'+MGD00+'/'+MGDZ9982+'/" ><IMG width="140" height="140" 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/9982/pp/'+MGD00+'/'+MGDZ9982+'/">'+title+'</a> </div> </td> '; if ( MGD00 == 4){ MGDA+='</tr><tr>'; } MGDA+=' '; MGD00++; } function MarketGidLoad(str){ MarketGidLoad9982(str); } function MarketGidLoad9982(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD099982(MGD069982(n[3]),n[1],n[0],MGD079982(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if (MGDQ9982) MGDQ9982.innerHTML = '<table width="100%" cellpadding="0" cellspacing="2" border="0" class="MGC09982" > <tr> '+MGDA+' </tr> </table>'; } function MarketGidLoadNews9982(json){ var i; MGDA=''; if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD099982(MGD069982(n[3]),n[1],n[0],MGD079982(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if(MGDQ9982 && MGDA){ MGDQ9982.innerHTML='<table width="100%" cellpadding="0" cellspacing="2" border="0" class="MGC09982" > <tr> '+MGDA+' </tr> </table>'; } }else{ MGD109982(); if(MGDQ9982){ MGDQ9982.innerHTML=''; } } } function MGD109982(){document.cookie="MG_9982="+MGDZ9982+";path=/";} var MGDZ9982 = 1; var MGDA=''; var MGDQ9982 = document.getElementById('MarketGid9982'); var MG_c=MGD019982("MG_9982"); var MGD00=1; var MGDRN9982=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ9982=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ9982=1; document.cookie="MG_9982="+MGDZ9982+";path=/"; if (MGDQ9982) { 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; } .MGC09982 td{ text-align: center!important; padding:2px; } #tizer1 {text-align:center:!important; float:none!important;} .MGC09982 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/9982/'+MGDZ9982+'"><'+'/scr'+'ipt>'); }