/*marketgid.comV7.6*/ function MGD014433(MGD02){ if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+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 MGD034433(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 MGD044433(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 MGD064433(title){ title=MGD034433(title,15); title=MGD044433(title,75); return title; } function MGD074433(desc){ return desc; } function MGD094433(title,id,f_src,desc,ext,lang){ MGDA+=' <tr> <td valign="top" align="left"> <a target="_blank" href="http://'+lang+'marketgid.com/pnews/'+id+'/i/4433/" ><img align="left" width="80" height="53" src="http://imgn.dt00.net/'+Math.floor(id/1000)+'/'+id+'_t'+ext+'" /></a> <div style="padding-top:4px;"> <a target="_blank" class="mctitlehj11" href="http://'+lang+'marketgid.com/pnews/'+id+'/i/4433/">'+title+'</a> </div> </td> </tr> '; MGD00++; } function MarketGidLoad(str){ MarketGidLoad4433(str); } function MarketGidLoad4433(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD094433(MGD064433(n[3]),n[1],n[0],MGD074433(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } } if (MGDQ4433) MGDQ4433.innerHTML = '<table style="border:1px solid #e4e4e4;"width="240px" cellpadding="0" cellspacing="2" border="0" class="mctablesd" > <IMG style="padding-left:10px;padding-top:5px;" width="32" height="19" align="left" src="http://img.dt00.net/images/logo-small.gif" /><div style="background-color:#e4e4e4;font-size: 11px; font-weight:bold; font-family :tahoma; padding:10px; color:#000000; text-decoration:none;" > Новости MarketGid</div> '+MGDA+' </table>'; } function MarketGidLoadNews4433(json){ var i; MGDA=''; if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD094433(MGD064433(n[3]),n[1],n[0],MGD074433(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } } if(MGDQ4433 && MGDA){ MGDQ4433.innerHTML='<table style="border:1px solid #e4e4e4;"width="240px" cellpadding="0" cellspacing="2" border="0" class="mctablesd" > <IMG style="padding-left:10px;padding-top:5px;" width="32" height="19" align="left" src="http://img.dt00.net/images/logo-small.gif" /><div style="background-color:#e4e4e4;font-size: 11px; font-weight:bold; font-family :tahoma; padding:10px; color:#000000; text-decoration:none;" > Новости MarketGid</div> '+MGDA+' </table>'; } }else{ MGD104433(); if(MGDQ4433){ MGDQ4433.innerHTML=''; } } } var MGDZ4433 = 2; var MGDA=''; var MGDQ4433 = document.getElementById('MarketGid4433'); var MG_c=MGD014433("MG_4433"); var MGD00=1; var MGDRN4433=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ4433=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ4433=1; document.cookie="MG_4433="+MGDZ4433+";path=/"; if (MGDQ4433) { document.write('<style type="text/css">a.mctitlehj11:link,a.mctitlehj11:active,a.mctitlehj11:visited,a.mctitlehj11:hover{ font-size: 11px; font-weight:normal; text-decoration:none; font-family :Arial,Helvetica,sans-serif; color:#000000; } a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:12px; font-weight: normal; color:#000; text-decoration: none; font-family:Tahoma,Arial,Helvetica,sans-serif; } .mctablesd td{ padding:1px; } title1. {} .mctablesd img{ padding-right:4px; padding-top:2px; border: 0; margin: 2px 5px 2px 0px; }<'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://aa.newsblock.dt00.net/j/4433/'+MGDZ4433+'"><'+'/scr'+'ipt>'); }
