/*marketgid.comV7.8*/ function MGD013273(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 MGD033273(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 MGD043273(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 MGD063273(title){ return title; } function MGD073273(desc){ return desc; } function MGD093273(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/3273/k/'+n[6]+'" ><IMG width="100px" height="100px" width="120" height="120"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_b'+(n[2]==2?'.gif':'.jpg')+'" /></a></div> <a target="_blank" class="mctitle" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/3273/k/'+n[6]+'">'+n[3]+'</a> <div style="font-size:11px; font-weight: bold; color:#ff6600; 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/3273/k/'+n[6]+'" class="mcdesc" ><cite>'+n[4]+'</cite></a> </td> </tr> '; MGD00++; } function MarketGidLoad(json){ MGD103273(); MGDA=''; if(!json) json=Array(); var i; for (i=0;i<json.length;i++) MGD093273(json[i]); if (MGDQ3273) MGDQ3273.innerHTML = '<table width="100%" cellpadding="0" cellspacing="0" border="0" class="mctable" > '+MGDA+' </table> '; } function MarketGidLoadGoods3273(json){ var i; MGDA=''; if(json){ for (i=0;i<json.length;i++) MGD093273(json[i]); if(MGDQ3273){ if(MGDRG3273){ MGDQ3273.innerHTML+='<table width="100%" cellpadding="0" cellspacing="0" border="0" class="mctable" > '+MGDA+' </table> '; setTimeout('MGD113273();', 500); }else{ MGDQ3273.innerHTML='<table width="100%" cellpadding="0" cellspacing="0" border="0" class="mctable" > '+MGDA+' </table> '; setTimeout('MGD113273();', 5000); MGDRG3273 = 1; } } }else{ MGD103273(); if(MGDQ3273)MGDQ3273.innerHTML=''; } } function MGD103273(){document.cookie="MG_3273="+MGDZ+";path=/";} function MGD113273(){ if(MGDZ<20)MGDZ++; else MGDZ=1; if(!document.getElementById('MGDW3273')){ MGD103273(); }else{ if(++MGCC3273>19){ MGD103273(); }else{ if(MGD143273()) MGD103273(); else MGD123273(); } } } function MGD123273(){ var script=document.createElement('script'); script.type='text/javascript'; script.src='http://ad.goodsblock.dt00.net/j/3273/'+MGDZ; document.getElementById('MarketGid3273').parentNode.appendChild(script); } function MGD133273(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 MGD143273(){ var pMG=MGD133273('MarketGid3273'); var pMGDW=MGD133273('MGDW3273'); return(pMGDW["t"]-MGCS*4/5)<=(pMG["h"]+pMG["t"]); } var MGCS=MGCC3273=0; var MGDZ = 1; var MGDA=''; var MGDQ3273 = document.getElementById('MarketGid3273'); var MG_c=MGD013273("MG_3273"); var MGD00=1; var MGDRG3273=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; if (MGDQ3273) { document.write('<style type="text/css">a.mctitle:link,a.mctitle:active,a.mctitle:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; color:#0e72a4;text-decoration:none; }a.mctitle:hover{text-decoration:underline;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:11px; font-weight: normal; color:#636563; text-decoration: none; font-family:tahoma; } .mctable td{ padding:0px; } .mctable img{ border: 0; margin: 5px 0px 2px 0px; } .mctable cite{ font-size:11px; font-weight: normal; color:#636563; 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://ad.goodsblock.dt00.net/j/3273/'+MGDZ+'"><'+'/scr'+'ipt>'); }