/*marketgid.comV7.9*/ function MGD011368(MGD02){ if (!document.cookie){ document.cookie="MG_1368=1;path=/"; if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } else return 3-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 MGD031368(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 MGD041368(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 MGD061368(title){ return title; } function MGD071368(desc){ desc=MGD031368(desc,120); return desc; } function MGD091368(n){ MGDA+=' <tr> <td valign="top" align="center" width="33%"> <a target="_blank" href="http://www.marketgid.com/ghits/'+n[1]+'/i/1368/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'" ><IMG width="180" height="180" width="200" height="200"src="http://imgg.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:#cccccc; text-decoration: none; font-family:tahoma;">'+n[0]+'</div> <div style="padding-left:5px;"> <a target="_blank" href="http://www.marketgid.com/ghits/'+n[1]+'/i/1368/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'" class="mcdesc1368" ><cite>'+MGD071368(n[4])+'</cite></a> </div> </td> </tr> '; MGD00++; } function MarketGidLoad(json){ MarketGidLoadGoods1368(json); } function MarketGidLoadGoods1368(json){ var i; if(!json) json=Array(); MGDA=''; for (i=0;i<json.length;i++) MGD091368(json[i]); if (MGDQ1368) MGDQ1368.innerHTML = '<table style=" border:1px solid #c8c8c8;" width="196" cellpadding="0" cellspacing="1" bgcolor="#f4f4f4" border="0" class="MGC013681368" > '+MGDA+' </table> '; } function MarketNext1368(){ MGDZ=parseInt(MGD011368("MG_1368")); if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_1368="+MGDZ+";path=/"; MarketSetPage1368(MGDZ); } function MarketSetPage1368(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/p/j/1368/' + n; MGDQ.appendChild(script); } function MarketPrev1368(){ MGDZ=parseInt(MGD011368("MG_1368")); if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_1368="+MGDZ+";path=/"; MarketSetPage1368(MGDZ); } var MGDZ = 3; var MGDA=''; var MGDQ1368 = document.getElementById('MarketGid1368'); var MG_c=MGD011368("MG_1368"); var MGD00=1; var MGDRG1368=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_1368="+MGDZ+";path=/"; if (MGDQ1368) { document.write('<style type="text/css"> #MarketGid1368 a.mcdesc1368:link,#MarketGid1368 a.mcdesc1368:active,#MarketGid1368 a.mcdesc1368:hover,#MarketGid1368 a.mcdesc1368:visited{ font-size:12px; font-weight: normal; color:#000; text-decoration: none; font-family:tahoma; } #MarketGid1368 .MGC013681368 td{ padding:0px; } #MarketGid1368 .MGC013681368 img{ border: 1px solid #ccc; margin: 2px 5px 2px 2px; } #MarketGid1368 .MGC013681368 cite{ font-size:11px; font-weight: bold; color:#4d6d91; 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/p/j/1368/'+MGDZ+'"><'+'/scr'+'ipt>'); }
