/*marketgid.comV7.8*/ function MGD011811(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 MGD031811(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 MGD041811(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 MGD061811(title){ return title; } function MGD071811(desc){ return desc; } function MGD091811(n){ MGDA+='<td valign="top" align="center" width="25%"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1811/k/'+n[6]+'" ><IMG width="160" height="160" width="200" height="200"src="http://imgn.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_vb'+(n[2]==2?'.gif':'.jpg')+'" /></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: bold; color:#555555; text-decoration: none; font-family:tahoma;">'+n[0]+'</div> <div > <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1811/k/'+n[6]+'" class="mcdesc" ><cite>'+n[4]+'</cite></a></div></td> '; MGD00++; } function MarketGidLoad(json){ MarketGidLoadGoods1811(json); } function MarketGidLoadGoods1811(json){ var i; if(!json) json=Array(); MGDA=''; for (i=0;i<json.length;i++) MGD091811(json[i]); if (MGDQ1811) MGDQ1811.innerHTML = '<table width="476" cellpadding="0" cellspacing="1" bgcolor="ffffff" border="0" class="mctablert" > <tr>'+MGDA+'</tr> </table> '; } function MarketNext1811(){ MGDZ=parseInt(MGD011811("MG_1811")); if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_1811="+MGDZ+";path=/"; MarketSetPage1811(MGDZ); } function MarketSetPage1811(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/j/1811/' + n; MGDQ.appendChild(script); } function MarketPrev1811(){ MGDZ=parseInt(MGD011811("MG_1811")); if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_1811="+MGDZ+";path=/"; MarketSetPage1811(MGDZ); } var MGDZ = 4; var MGDA=''; var MGDQ1811 = document.getElementById('MarketGid1811'); var MG_c=MGD011811("MG_1811"); var MGD00=1; var MGDRG1811=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_1811="+MGDZ+";path=/"; if (MGDQ1811) { document.write('<style type="text/css"> 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; } .mctablert td{ padding:0px; } .mctablert img{ border: 1px solid #ccc; margin: 2px 5px 2px 2px; } .mctablert cite{ font-size:12px; font-weight: bold; color:#4c7fae; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; } <'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://ab.goodsblock.dt00.net/j/1811/'+MGDZ+'"><'+'/scr'+'ipt>'); }
