/*marketgid.comV7.7*/ function MGD014534(MGD02){ if (!document.cookie){ document.cookie="MG_4534=1;path=/"; if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } else return 5-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 MGD034534(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 MGD044534(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 MGD064534(title){ title=MGD034534(title,15); title=MGD044534(title,70); return title; } function MGD074534(desc){ return desc; } function MGD094534(title,id,f_src,desc,ext){ MGDA+=' <td valign="top" align="center" width="20%"> <a target="_blank" href="http://marketgid.com/pnews/'+id+'/i/4534/pp/'+MGD00N4534+'/'+MGDZN4534+'/" ><img width="75" height="75" src="http://imgn.dt00.net/'+Math.floor(id/1000)+'/'+id+'_m'+ext+'" /></a> <div style="padding-top:5px;"> <a target="_blank" class="mctitle4534" href="http://marketgid.com/pnews/'+id+'/i/4534/pp/'+MGD00N4534+'/'+MGDZN4534+'/">'+title+'</a> </div> </td> '; MGD00N4534++; } function MarketGidLoad(str){ MarketGidLoad4534(str); } function MarketGidLoad4534(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD094534(MGD064534(n[3]),n[1],n[0],MGD074534(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if (MGDQ4534) MGDQ4534.innerHTML = '<table width="100%" cellpadding="0" cellspacing="5" border="0" class="MGC045344534" > <tr> '+MGDA+' </tr> </table> '; } function MarketGidLoadNews4534(json){ var i; MGDA=''; if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD094534(MGD064534(n[3]),n[1],n[0],MGD074534(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if(MGDQ4534 && MGDA){ MGDQ4534.innerHTML='<table width="100%" cellpadding="0" cellspacing="5" border="0" class="MGC045344534" > <tr> '+MGDA+' </tr> </table> '; } }else{ MGD104534(); if(MGDQ4534){ MGDQ4534.innerHTML=''; } } MGLN4534(); } function MGD104534(){document.cookie="MG_4534="+MGDZN4534+";path=/";} var MGDZN4534 = 5; var MGDA=''; var MGDQ4534 = document.getElementById('MarketGid4534'); var MG_c=MGD014534("MG_4534"); var MGD00N4534=1; var MGDRN4534=0; var MGLK4534 = []; if (MGDQ4534) { MGLK4534 = MGDQ4534.getElementsByTagName('a'); } if(MG_c!=null&&parseInt(MG_c)<20&&parseInt(MG_c)>0) MGDZN4534=parseInt(MG_c)+1; else if (parseInt(MG_c)>19||parseInt(MG_c)<1) MGDZN4534=1; if (!MGDZN4534) MGDZN4534=1; document.cookie="MG_4534="+MGDZN4534+";path=/"; function MGLN4534() { for (var MG_l in MGLK4534) { MGLK4534[MG_l].onmouseover = function() { MG_p = /pp\/([0-9]+)\/([0-9]+)\//; MG_nn = MG_p.exec(this.href); if (MG_nn) this.href = this.href.replace(MG_p, 'pp/' + MG_nn[1] + '/' + MG_nn[2]); } } } if (MGDQ4534) { document.write('<style type="text/css"> #MarketGid4534 a.mctitle4534:link,#MarketGid4534 a.mctitle4534:active,#MarketGid4534 a.mctitle4534:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; color:#e34000;text-decoration:none; }#MarketGid4534 a.mctitle4534:hover{text-decoration:underline;} #MarketGid4534 a.mcdesc4534:link,#MarketGid4534 a.mcdesc4534:active,#MarketGid4534 a.mcdesc4534:hover,#MarketGid4534 a.mcdesc4534:visited{ font-size:12px; font-weight: normal; color:#000; text-decoration: none; font-family:tahoma; } #MarketGid4534 .MGC045344534 td{ padding:5px; border:1px solid #dfdddd; } #MarketGid4534 .MGC045344534 img{ border: 1px solid #ccc; margin: 5px 5px 2px 0px; } <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://aa.newsblock.dt00.net/p/j/4534/'+MGDZN4534+'"><'+'/scr'+'ipt>'); }
