/*marketgid.comV7.9*/ function MGD012681(MGD02){ if (!document.cookie){ document.cookie="MG_2681=1;path=/"; if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } else return 2-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 MGD032681(str,MGD03){ var word=new Array(); var i; var ret=''; 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 MGD042681(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 MGD062681(title){ return title; } function MGD072681(desc){ desc=MGD032681(desc,120); return desc; } function MGD092681(n){ MGDA+=' <td width="25%" valign="top" align="center" > <a target="_blank" href="http://www.marketgid.com/ghits/'+n[1]+'/i/2681/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'" ><IMG width="80" height="80" width="90" height="90"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+''+(n[2]==2?'.gif':'.jpg')+'" align="left"/></a> <div style="padding-top:16px;"> <div style="font-size:12px; font-weight: normal; color:#ff0000; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> <div style="padding-top:6px;"> <a target="_blank" href="http://www.marketgid.com/ghits/'+n[1]+'/i/2681/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'" class="mcdesc" ><cite>'+MGD072681(n[4])+'</cite></a> <div> </td> '; MGD00++; } function MarketGidLoad(json){ MarketGidLoadGoods2681(json); } function MarketGidLoadGoods2681(json){ var i; if(!json) json=Array(); MGDA=''; for (i=0;i<json.length;i++) MGD092681(json[i]); if (MGDQ2681) MGDQ2681.innerHTML = '<div style=" background-color:#ffffff; margin-top:10px; width:728px; height:19px; " align="left"><div align="center" style="font-size: 13px; font-weight:bold; font-family :tahoma; color:#ff0000; text-decoration:none;padding-top:3px;padding-bottom:3px;" >Pейтинг товаров на <span class="colortext"><i>UA</i></span>Rating</div></div> <table width="100%" height="90" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" class="MGC02681" style="border-collapse:collapse;" > <tr> '+MGDA+' </tr> </table> '; } function MarketNext2681(){ MGDZ=parseInt(MGD012681("MG_2681")); if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_2681="+MGDZ+";path=/"; MarketSetPage2681(MGDZ); } function MarketSetPage2681(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/p/j/2681/' + n; MGDQ.appendChild(script); } function MarketPrev2681(){ MGDZ=parseInt(MGD012681("MG_2681")); if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_2681="+MGDZ+";path=/"; MarketSetPage2681(MGDZ); } var MGDZ = 2; var MGDA=''; var MGDQ2681 = document.getElementById('MarketGid2681'); var MG_c=MGD012681("MG_2681"); var MGD00=1; var MGDRG2681=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; document.cookie="MG_2681="+MGDZ+";path=/"; if (MGDQ2681) { 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:#3a6db1;text-decoration:none; }a.mctitle:hover{text-decoration:underline;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:visited{ font-size:11px; font-weight: normal; color:#0081e6; text-decoration: none; font-family:tahoma; }a.mcdesc:hover{} .colortext { color:#2881ce;font-size: 13px; font-weight:italic; font-family :tahoma; } .MGC02681 td{ padding:0px; } .MGC02681 img{ border: 0; margin: 5px 5px 5px 5px; } .MGC02681 cite{ font-size:11px; font-weight: normal; color:#000000; text-decoration: none; font-family:tahoma; font-style:normal; } <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://ac.goodsblock.dt00.net/p/j/2681/'+MGDZ+'"><'+'/scr'+'ipt>'); }