/*marketgid.comV7.9*/ function MGD011700(MGD02){ if (!document.cookie){ document.cookie="MG_1700=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 MGD031700(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 MGD041700(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 MGD061700(title){ return title; } function MGD071700(desc){ desc=MGD031700(desc,120); return desc; } function MGD091700(n){ MGDA+=' <tr> <td valign="top" align="center"> <div><a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1700/k/'+n[6]+'" ><IMG width="130px" height="130px" 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="padding-top:2px"> <a target="_blank" class="mctitleww" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1700/k/'+n[6]+'">'+MGD061700(n[3])+'</a></div> <div style="font-size:11px; font-weight: bold; color:#A92010; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1700/k/'+n[6]+'" class="mcdesc" ><cite>'+MGD071700(n[4])+'</cite></a> </td> </tr> '; MGD00++; } function MarketGidLoad(json){ MGD101700(); MGDA=''; if(!json) json=Array(); var i; for (i=0;i<json.length;i++) MGD091700(json[i]); if (MGDQ1700) MGDQ1700.innerHTML = '<table width="100%" cellpadding="0" cellspacing="5" border="0" class="mctableff" style="border-collapse:separate;" > '+MGDA+' </table> '; } function MarketGidLoadGoods1700(json){ var i; MGDA=''; if(json){ for (i=0;i<json.length;i++) MGD091700(json[i]); if(MGDQ1700){ if(MGDRG1700){ MGDQ1700.innerHTML+='<table width="100%" cellpadding="0" cellspacing="5" border="0" class="mctableff" style="border-collapse:separate;" > '+MGDA+' </table> '; setTimeout('MGD111700();', 500); }else{ MGDQ1700.innerHTML='<table width="100%" cellpadding="0" cellspacing="5" border="0" class="mctableff" style="border-collapse:separate;" > '+MGDA+' </table> '; setTimeout('MGD111700();', 5000); MGDRG1700 = 1; } } }else{ MGD101700(); if(MGDQ1700)MGDQ1700.innerHTML=''; } } function MGD101700(){document.cookie="MG_1700="+MGDZ+";path=/";} function MGD111700(){ if(MGDZ<20)MGDZ++; else MGDZ=1; if(!document.getElementById('MGDW1700')){ MGD101700(); }else{ if(++MGCC1700>19){ MGD101700(); }else{ if(MGD141700()) MGD101700(); else MGD121700(); } } } function MGD121700(){ var script=document.createElement('script'); script.type='text/javascript'; script.src='http://ab.goodsblock.dt00.net/j/1700/'+MGDZ; document.getElementById('MarketGid1700').parentNode.appendChild(script); } function MGD131700(el){ var e=document.getElementById(el); var t=0,h=e.offsetHeight; if(MGCS==0)MGCS=h; while(e){ t+=e.offsetTop; e=e.offsetParent; } return{"t":t,"h":h}; } function MGD141700(){ var pMG=MGD131700('MarketGid1700'); var pMGDW=MGD131700('MGDW1700'); return(pMGDW["t"]-MGCS*4/5)<=(pMG["h"]+pMG["t"]); } var MGCS=MGCC1700=0; var MGDZ = 1; var MGDA=''; var MGDQ1700 = document.getElementById('MarketGid1700'); var MG_c=MGD011700("MG_1700"); var MGD00=1; var MGDRG1700=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; if (MGDQ1700) { document.write('<style type="text/css">a.mctitleww:link,a.mctitleww:active,a.mctitleww:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; color:#366799;text-decoration:none; }a.mctitleww:hover{text-decoration:underline;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:11px; font-weight: normal; color:#555555; text-decoration: none; font-family:tahoma; } .mctableff td{ border: 1px solid #dddddd; padding:2px; } .mctableff img{ border: 1px solid #dddddd;padding:0px; margin: 2px 0px 2px 0px; } .mctableff cite{ font-size:11px; font-weight: normal; color:#555555; 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/1700/'+MGDZ+'"><'+'/scr'+'ipt>'); }
