/*marketgid.comV7.8*/ function MGD012050(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 MGD032050(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 MGD042050(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 MGD062050(title){ return title; } function MGD072050(desc){ return desc; } function MGD092050(n){ MGDA+=' <td width="25%" valign="top" align="center"> <div style="text-align:center !important;"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/2050/k/'+n[6]+'" ><IMG width="170px"height="170px" width="200" height="200"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_vb'+(n[2]==2?'.gif':'.jpg')+'" /></a> </div> <div style="text-align:center !important;"><a target="_blank" class="mctitle" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/2050/k/'+n[6]+'">'+n[3]+'</a></div> <div style="font-size:11px; text-align:center !important; font-weight: bold; color:#ff5500; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> </td>'; MGD00++; } function MarketGidLoad(json){ MarketGidLoadGoods2050(json); } function MarketGidLoadGoods2050(json){ var i; if(!json) json=Array(); MGDA=''; for (i=0;i<json.length;i++) MGD092050(json[i]); if (MGDQ2050) MGDQ2050.innerHTML = '<table width="238px" cellpadding="0" cellspacing="0" border="0" class="mctable" style="vertical-align:top !important;" > <tr> '+MGDA+' </tr></table> '; } function MarketNext2050(){ MGDZ=parseInt(MGD012050("MG_2050")); if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_2050="+MGDZ+";path=/"; MarketSetPage2050(MGDZ); } function MarketSetPage2050(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/j/2050/' + n; MGDQ.appendChild(script); } function MarketPrev2050(){ MGDZ=parseInt(MGD012050("MG_2050")); if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_2050="+MGDZ+";path=/"; MarketSetPage2050(MGDZ); } var MGDZ = 3; var MGDA=''; var MGDQ2050 = document.getElementById('MarketGid2050'); var MG_c=MGD012050("MG_2050"); var MGD00=1; var MGDRG2050=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_2050="+MGDZ+";path=/"; if (MGDQ2050) { document.write('<style type="text/css">a.mctitle:link,a.mctitle:active,a.mctitle:visited,a.mctitle:hover{ font-size: 11px; font-weight:bold; line-height:1.1em!important; font-family :tahoma; text-decoration:underline; color:#2B587A; } a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:10px; line-height:9px; font-weight: normal; line-height:1.1em!important; color:#000000; text-decoration: none; font-family:tahoma; } .mctable td{ vertical-align:top!important; padding:0px; } .mctable img{ border:1px solid #dddddd; margin: 0px 0px 0px 0px; } .mctable cite{ font-size:10px; font-weight: normal color: #0000000; line-height:9px; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; }.mctable cite:hover{ text-decoration:underline;} <'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://ac.goodsblock.dt00.net/j/2050/'+MGDZ+'"><'+'/scr'+'ipt>'); }
