/*marketgid.comV7.9*/ function MGD01110751(MGD02){ if (!document.cookie){ document.cookie="MG_110751=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 MGD03110751(str,MGD03){ var word=new Array(); var i; var ret=strT=''; var sl=el=0; var sl = str.search(/\<[^\<]*\>/); while (sl>=0) { if (sl > 0) { strT += str.substr(0,sl)+' '; str = str.substr(sl); } el=str.indexOf('>'); strT += str.substr(0,el+1)+' '; str = str.substr(el+1); sl = str.search(/\<[^\<]*\>/); } strT += str; str = strT.replace(/\s+/g,' '); word=str.split(" "); for (i=0;i<word.length;i++){ s=e=p=''; sl=el=0; sl=word[i].search(/\<[^\<]*\>/); if (sl>=0) { if (sl==0) { el=word[i].indexOf('>'); ret+=word[i].substr(0,el+1); word[i]=word[i].substr(el+1); } else { p=word[i].substr(sl); word[i]=word[i].substr(0, sl); } } if (word[i].length>MGD03 && word[i].search(/&\w+;/)<0) ret+=word[i].substr(0,MGD03) + ' ' + word[i].substr(MGD03) + ' '; else ret+=word[i] + ' '; if (p) ret+=p; } return ret; } function MGD04110751(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 MGD06110751(title){ return title; } function MGD07110751(desc){ desc=MGD03110751(desc,120); return desc; } function MGD09110751(n){ MGDA+=' <td width="110px" valign="top" align="center"> <div><a target="_blank" href="http://marketgid.com/ghits/'+n[1]+'/i/110751/pp/'+MGD00G110751+'/'+MGDZG110751+'/k/'+n[6]+'" ><img width="75" height="75"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_m'+(n[2]==2?'.gif':'.jpg')+'" /></a></div> <a target="_blank" href="http://marketgid.com/ghits/'+n[1]+'/i/110751/pp/'+MGD00G110751+'/'+MGDZG110751+'/k/'+n[6]+'" class="mcdesc110751" ><cite>'+MGD07110751(n[4])+'</cite></a> <div style="font-size:11px; font-weight: bold; color:#ff0000; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> <div style="font-size:10px; font-weight: normal; color:#555555; text-decoration: none; font-family:tahoma;padding:5px;" align="left">'+n[9]+'</div> </td>'; if ( MGD00G110751 == 2){ MGDA+='</tr><tr>'; } MGDA+=''; MGD00G110751++; } function MarketGidLoad(json){ MarketGidLoadGoods110751(json); } function MarketGidLoadGoods2144(json){ var i; if(!json) json=Array(); MGDA=''; if (json.length == 1 && json[0] == ",0,0,,,,, ,,") return; for (i=0;i<json.length;i++) MGD09110751(json[i]); if (MGDQ110751) MGDQ110751.innerHTML = '<div style=" margin-top:10px; width:240px; height:19px; " align="left"><div align="center" style="font-size: 11px; font-weight:bold; font-family :arial; color:#cccccc; text-decoration:none;padding-top:3px;padding-bottom:3px;" >Хиты продаж</div></div> <table width="240" height="240" cellpadding="0" cellspacing="0" border="0" class="MGC0110751hh110751" style="border:1px solid #ccc;" > <tr> '+MGDA+' </tr></table> '; } function MarketNext110751(){ MGDZG110751=parseInt(MGD01110751("MG_110751")); if(MGDZG110751<20) MGDZG110751++; else MGDZG110751=1; document.cookie="MG_110751="+MGDZG110751+";path=/"; MarketSetPage110751(MGDZG110751); } function MarketSetPage110751(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/p/j/110751/' + n; MGDQ.appendChild(script); } function MarketPrev110751(){ MGDZG110751=parseInt(MGD01110751("MG_110751")); if(MGDZG110751>1) MGDZG110751--; else MGDZG110751=20; document.cookie="MG_110751="+MGDZG110751+";path=/"; MarketSetPage110751(MGDZG110751); } var MGDZG110751 = 1; var MGDA=''; var MGDQ110751 = document.getElementById('MarketGid751'); var MG_c=MGD01110751("MG_110751"); var MGD00G110751=1; var MGDRG110751=0; var MGLK110751 = MGDQ110751.getElementsByTagName('a'); if(MG_c!=null&&parseInt(MG_c)<20) MGDZG110751=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZG110751=1; document.cookie="MG_110751="+MGDZG110751+";path=/"; function MGLG110751() { for (var MG_l in MGLK110751) { MGLK110751[MG_l].onmouseover = function() { MG_p = /pp\/([0-9])\/([0-9])\/k\//; MG_nn = MG_p.exec(this.href); if (MG_nn) this.href = this.href.replace(MG_p, 'pp/' + MG_nn[1] + '/' + MG_nn[2] + '/k'); } } } if (MGDQ110751) { document.write('<style type="text/css"> #MarketGid110751 a.mctitle110751:link,#MarketGid110751 a.mctitle110751:active,#MarketGid110751 a.mctitle110751:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; color:#790000; text-decoration:none; }#MarketGid110751 a.mctitle110751:hover{text-decoration:underline;} #MarketGid110751 a.mcdesc110751:link,#MarketGid110751 a.mcdesc110751:active,#MarketGid110751 a.mcdesc110751:hover,#MarketGid110751 a.mcdesc110751:visited{ font-size:12px; font-weight: normal; color:#790000; text-decoration: none; font-family:tahoma; } #MarketGid110751 .MGC0110751hh110751 td{ padding:2px; } #MarketGid110751 .MGC0110751hh110751 img{ border: 1px solid #cccccc; margin: 2px 1px 2px 0px; } #MarketGid110751 .MGC0110751hh110751 cite { font-size:10px; font-weight: bold; color:#111111; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; }#MarketGid110751 .MGC0110751hh110751 cite:hover {text-decoration:underline;} <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://ac.goodsblock.dt00.net/p/j/110751/'+MGDZG110751+'"><'+'/scr'+'ipt>'); document.write('<scr'+'ipt type="text/javascript">MGLG110751();<'+'/scr'+'ipt>'); }
