/*marketgid.comV7.9*/ function MGD012231(MGD02){ if (!document.cookie){ document.cookie="MG_2231=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 MGD032231(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 MGD042231(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 MGD062231(title){ return title; } function MGD072231(desc){ desc=MGD032231(desc,120); return desc; } function MGD092231(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/2231/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> <div> <a target="_blank" class="mctitleww" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/2231/k/'+n[6]+'"> '+MGD062231(n[3])+'</a></div> <div style="font-size:11px; font-weight: bold; color:#ff5000; 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/2231/k/'+n[6]+'" class="mcdesc" ><cite>'+MGD072231(n[4])+'</cite></a> </td></tr> '; MGD00++; } function MarketGidLoad(json){ MGD102231(); MGDA=''; if(!json) json=Array(); var i; for (i=0;i<json.length;i++) MGD092231(json[i]); if (MGDQ2231) MGDQ2231.innerHTML = '<table style="border-collapse:separate;" width="150" cellpadding="0" cellspacing="3" border="0" class="mctableff" > '+MGDA+' </table> '; } function MarketGidLoadGoods2231(json){ var i; MGDA=''; if(json){ for (i=0;i<json.length;i++) MGD092231(json[i]); if(MGDQ2231){ if(MGDRG2231){ MGDQ2231.innerHTML+='<table style="border-collapse:separate;" width="150" cellpadding="0" cellspacing="3" border="0" class="mctableff" > '+MGDA+' </table> '; setTimeout('MGD112231();', 500); }else{ MGDQ2231.innerHTML='<table style="border-collapse:separate;" width="150" cellpadding="0" cellspacing="3" border="0" class="mctableff" > '+MGDA+' </table> '; setTimeout('MGD112231();', 5000); MGDRG2231 = 1; } } }else{ MGD102231(); if(MGDQ2231)MGDQ2231.innerHTML=''; } } function MGD102231(){document.cookie="MG_2231="+MGDZ+";path=/";} function MGD112231(){ if(MGDZ<20)MGDZ++; else MGDZ=1; if(!document.getElementById('MGDW2231')){ MGD102231(); }else{ if(++MGCC2231>19){ MGD102231(); }else{ if(MGD142231()) MGD102231(); else MGD122231(); } } } function MGD122231(){ var script=document.createElement('script'); script.type='text/javascript'; script.src='http://ac.goodsblock.dt00.net/j/2231/'+MGDZ; document.getElementById('MarketGid2231').parentNode.appendChild(script); } function MGD132231(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 MGD142231(){ var pMG=MGD132231('MarketGid2231'); var pMGDW=MGD132231('MGDW2231'); return(pMGDW["t"]-MGCS*4/5)<=(pMG["h"]+pMG["t"]); } var MGCS=MGCC2231=0; var MGDZ = 1; var MGDA=''; var MGDQ2231 = document.getElementById('MarketGid2231'); var MG_c=MGD012231("MG_2231"); var MGD00=1; var MGDRG2231=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; if (MGDQ2231) { 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:#007ac2!important;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:#000000!important; text-decoration: none; font-family:tahoma; } .mctableff td{ padding:2px; } .mctableff img{ border: 1px solid #dddddd; margin: 2px 5px 2px 0px; } .mctableff cite{ font-size:11px; font-weight: normal; color:#000000!important; 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://ac.goodsblock.dt00.net/j/2231/'+MGDZ+'"><'+'/scr'+'ipt>'); }
