/*marketgid.comV7.9*/ function MGD01599(MGD02){ if (!document.cookie){ document.cookie="MG_599=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 MGD03599(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 MGD04599(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 MGD06599(title){ return title; } function MGD07599(desc){ desc=MGD03599(desc,120); return desc; } function MGD09599(n){ MGDA+=' <tr> <td valign="top" align="center"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/599/k/'+n[6]+'" ><IMG width="160px" height="160px" align="center"width="200" height="200"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_vb'+(n[2]==2?'.gif':'.jpg')+'" /></a> <div><a target="_blank" class="mctitlehk" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/599/k/'+n[6]+'">'+MGD06599(n[3])+'</a></div> <div><a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/599/k/'+n[6]+'" class="mcdesc"><cite>'+MGD07599(n[4])+'</cite></a></div> <div style="font-size:11px; font-weight: bold; color:#cc6600; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> </td> </tr> '; MGD00++; } function MarketGidLoad(json){ MarketGidLoadGoods599(json); } function MarketGidLoadGoods599(json){ var i; if(!json) json=Array(); MGDA=''; for (i=0;i<json.length;i++) MGD09599(json[i]); if (MGDQ599) MGDQ599.innerHTML = '<table width="160px" cellpadding="0" cellspacing="2" border="0" class="mctablecv" > '+MGDA+' </table>'; } function MarketNext599(){ MGDZ=parseInt(MGD01599("MG_599")); if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_599="+MGDZ+";path=/"; MarketSetPage599(MGDZ); } function MarketSetPage599(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/j/599/' + n; MGDQ.appendChild(script); } function MarketPrev599(){ MGDZ=parseInt(MGD01599("MG_599")); if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_599="+MGDZ+";path=/"; MarketSetPage599(MGDZ); } var MGDZ = 1; var MGDA=''; var MGDQ599 = document.getElementById('MarketGid599'); var MG_c=MGD01599("MG_599"); var MGD00=1; var MGDRG599=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_599="+MGDZ+";path=/"; if (MGDQ599) { document.write('<style type="text/css">a.mctitlehk:link,a.mctitlehk:active,a.mctitlehk:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; text-decoration:none; color:#3c6491; } a.mctitlehk:hover{text-decoration:underline;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:10px; font-weight: normal; color:#000000; text-decoration: none; font-family:tahoma; } .mctablecv td{ padding:3px; } .mctablecv img{ border:1px solid #cccccc; margin: 1px 0px 0px 0px; } .mctablecv cite{ font-size:10px; font-weight: normal color: #000000; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; }.mctablecv cite:hover{ text-decoration:underline;} <'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://aa.goodsblock.dt00.net/j/599/'+MGDZ+'"><'+'/scr'+'ipt>'); }
