/*marketgid.comV7.7*/ function MGD014487(MGD02){ if (!document.cookie){ document.cookie="MG_4487=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 MGD034487(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 MGD044487(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 MGD064487(title){ title=MGD034487(title,15); title=MGD044487(title,55); return title; } function MGD074487(desc){ return desc; } function MGD094487(title,id,f_src,desc,ext){ MGDA+=' <tr> <td valign="top" align="center"> <a target="_blank" href="http://marketgid.com/pnews/'+id+'/i/4487/pp/'+MGD00N4487+'/'+MGDZN4487+'/" ><img width="75" height="75" src="http://imgn.dt00.net/'+Math.floor(id/1000)+'/'+id+'_m'+ext+'" /></a> <div> <a target="_blank" class="mctitle4487" href="http://marketgid.com/pnews/'+id+'/i/4487/pp/'+MGD00N4487+'/'+MGDZN4487+'/">'+title+'</a> </div> </td> </tr> '; MGD00N4487++; } function MarketGidLoad(str){ MarketGidLoad4487(str); } function MarketGidLoad4487(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD094487(MGD064487(n[3]),n[1],n[0],MGD074487(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if (MGDQ4487) MGDQ4487.innerHTML = '<table width="100%" cellpadding="0" cellspacing="5" border="0" class="MGC044874487" > '+MGDA+' </table> '; } function MarketGidLoadNews4487(json){ var i; MGDA=''; if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD094487(MGD064487(n[3]),n[1],n[0],MGD074487(n[4]),(n[2]==2)?'.gif':'.jpg'); } } if(MGDQ4487 && MGDA){ MGDQ4487.innerHTML='<table width="100%" cellpadding="0" cellspacing="5" border="0" class="MGC044874487" > '+MGDA+' </table> '; } }else{ MGD104487(); if(MGDQ4487){ MGDQ4487.innerHTML=''; } } MGLN4487(); } function MGD104487(){document.cookie="MG_4487="+MGDZN4487+";path=/";} var MGDZN4487 = 1; var MGDA=''; var MGDQ4487 = document.getElementById('MarketGid4487'); var MG_c=MGD014487("MG_4487"); var MGD00N4487=1; var MGDRN4487=0; var MGLK4487 = []; if (MGDQ4487) { MGLK4487 = MGDQ4487.getElementsByTagName('a'); } if(MG_c!=null&&parseInt(MG_c)<20&&parseInt(MG_c)>0) MGDZN4487=parseInt(MG_c)+1; else if (parseInt(MG_c)>19||parseInt(MG_c)<1) MGDZN4487=1; if (!MGDZN4487) MGDZN4487=1; document.cookie="MG_4487="+MGDZN4487+";path=/"; function MGLN4487() { for (var MG_l in MGLK4487) { MGLK4487[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 (MGDQ4487) { document.write('<style type="text/css"> #MarketGid4487 a.mctitle4487:link,#MarketGid4487 a.mctitle4487:active,#MarketGid4487 a.mctitle4487:visited{ font-size: 11px; font-weight:normal; font-family :tahoma; text-decoration:none; color:#666666; }#MarketGid4487 a.mctitle4487:hover {text-decoration:underline;color:#000000;} #MarketGid4487 a.mcdesc4487:link,#MarketGid4487 a.mcdesc4487:active,#MarketGid4487 a.mcdesc4487:hover,#MarketGid4487 a.mcdesc4487:visited{ font-size:11px; font-weight: normal; color:#000; text-decoration: none; font-family:tahoma; } #MarketGid4487 .MGC044874487 td{ padding:1px; } #MarketGid4487 .MGC044874487 img{ border: 0; margin: 2px 3px 2px 0px; } <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://aa.newsblock.dt00.net/p/j/4487/'+MGDZN4487+'"><'+'/scr'+'ipt>'); }
