/*marketgid.comV7.5*/function MGD1(MGD2){ if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } var prefix=MGD2+"="; 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 MGD3(str,MGD3){ var word=new Array(); var i; var ret=''; word=str.split(" "); for (i=0;i<word.length;i++){ if (word[i].length>MGD3 && word[i].search(/&\w+;/)<0) ret+=word[i].substr(0,MGD3) + ' ' + word[i].substr(MGD3) + ' '; else ret+=word[i] + ' '; } return ret; } function MGD4(str,MGD3){ if (str.length<=MGD3) 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>MGD3) return ret+'...'; else ret+=word[i] + ' '; } return str; } function MGD6(title){ return title; } function MGD7(desc){ desc=MGD3(desc,120); return desc; } function MGD9(n){ MGDA+=' <tr> <td valign="top" align="center"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/725/k/'+n[6]+'" class="mcdesc" ><cite>'+n[4]+'</cite></a> <div><a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/725/k/'+n[6]+'" ><img src="http://nbimg.dt00.net/pgoods/'+n[0]+'/'+n[1]+'_m'+(n[2]==2?'.gif':'.jpg')+'" align="center" /></a></div> <div style="padding-top:3px;"> <a target="_blank" class="mctitle" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/725/k/'+n[6]+'">'+n[3]+'</a> <div style="font-size:11px; font-weight: bold; color:#ff7200; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> <div style="font-size:11px; font-weight: normal; color:#ffffff; text-decoration: underline; font-family:tahoma;padding-left:5px; padding-right:5px;">'+n[8]+'</div> <div style="font-size:11px; font-weight: bold; color:#252525; text-decoration: none; font-family:tahoma;">'+n[9]+'</div> <div style="font-size:10px; font-weight: normal; color:#ffffff; text-decoration: none; font-family:tahoma;">'+n[0]+'</div> </td> </tr> '; MGD0++; } function MarketGidLoad(news){ var i; for (i=0;i<news.length;i++) MGD9(news[i]); MGDA='<div style="background-color:#304e6b; margin-top:10px; width:100%; height:19px; " align="left"><div align="center" style="font-size: 11px; font-weight:bold; font-family :tahoma; color:#252525; text-decoration:none;padding-top:3px;padding-bottom:3px;" >Хиты продаж</div></div> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="mctable" bgcolor="304e6b" style="border-collapse:collapse;" > '+MGDA+' </table> '; if (MGDQ) MGDQ.innerHTML = MGDA; } var MGDZ = 1; var MGDA=''; var MGDQ = document.getElementById('MarketGid725'); var MG_c=MGD1("MG_725"); var MGD0=1; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; document.cookie="MG_725="+MGDZ+";path=/"; if (MGDQ) { document.write('<style type="text/css"> a.mctitle:link,a.mctitle:active,a.mctitle:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; color:#c9e7f3; text-decoration:none; }a.mctitle:hover{} 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; } .mctable td{ padding:5px; border-bottom:1px solid #40698f; } .mctable img{ border: 1px solid #cccccc; margin: 5px 5px 2px 0px; } .mctable cite{ font-size:11px; font-weight: bold; color:#ff0000; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; } <'+'/style>'); document.write('<scr'+'ipt charset="" type="text/javascript" src="http://goodsblock2.dt00.net/j/725/'+MGDZ+'"><'+'/scr'+'ipt>'); }