/*marketgid.comV7.8*/function MGD0124(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 MGD0324(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 MGD0424(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 MGD0624(title){ title=MGD0324(title,15); title=MGD0424(title,20); return title; } function MGD0724(desc){ desc=MGD0324(desc,15); desc=MGD0424(desc,20); return desc; } function MGD0924(n){ MGDA+=' <tr> <td valign="top" align="left"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/24/k/'+n[6]+'" ><img align="left" width="90" height="90"src="http://imgn.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+''+(n[2]==2?'.gif':'.jpg')+'" /></a> <div style="padding-top:1px;"> <a target="_blank" class="mctitle" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/24/k/'+n[6]+'">'+n[3]+'</a> </div> <div><a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/24/k/'+n[6]+'" class="mcdesc"><cite>'+n[4]+'</cite></a></div> </td> </tr> '; MGD0++; } function MarketGidLoad(json){ MGD1024(); MGDA=''; if(!json) json=Array(); var i; for (i=0;i<json.length;i++) MGD0924(json[i]); MGDQ=document.getElementById('MarketGid24'); if (MGDQ) MGDQ.innerHTML = '<table width="238" cellpadding="0" cellspacing="1" border="0" class="mctable" > '+MGDA+' </table>'; } function MarketGidLoadGoods24(json){ var i; MGDA=''; MGDQ=document.getElementById('MarketGid24'); if(json){ for (i=0;i<json.length;i++) MGD0924(json[i]); if(MGDQ){ if(MGDQ.childNodes[0].tagName=='TABLE'){ MGDQ.innerHTML+='<table width="238" cellpadding="0" cellspacing="1" border="0" class="mctable" > '+MGDA+' </table>'; setTimeout('MGD1124();', 500); }else{ MGDQ.innerHTML='<table width="238" cellpadding="0" cellspacing="1" border="0" class="mctable" > '+MGDA+' </table>'; setTimeout('MGD1124();', 5000); } } }else{ MGD1024(); if(MGDQ)MGDQ.innerHTML=''; } } function MGD1024(){document.cookie="MG_24="+MGDZ+";path=/";} function MGD1124(){ if(MGDZ<20)MGDZ++; else MGDZ=1; if(!document.getElementById('MGDW24')){ MGD1024(); }else{ if(++MGCC24>19){ MGD1024(); }else{ if(MGD1424()) MGD1024(); else MGD1224(); } } } function MGD1224(){ var script=document.createElement('script'); script.type='text/javascript'; script.src='http://aa.goodsblock.dt00.net/j/24/'+MGDZ; document.getElementById('MarketGid24').parentNode.appendChild(script); } function MGD1324(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 MGD1424(){ var pMG=MGD1324('MarketGid24'); var pMGDW=MGD1324('MGDW24'); return(pMGDW["t"]-MGCS*4/5)<=(pMG["h"]+pMG["t"]); } var MGCS=MGCC24=0; var MGDZ = 3; var MGDA=''; var MGDQ = document.getElementById('MarketGid24'); var MG_c=MGD0124("MG_24"); var MGD0=1; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; if (MGDQ) { document.write('<style type="text/css"> a.mctitle:link,a.mctitle:active,a.mctitle:visited { font-size: 13px; font-weight:bold; font-family :arial; text-decoration:none; line-height:1em; color:#ff0000!important; } a.mctitle:hover {color:#970301!important;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:11px; line-height:1em; font-weight: normal; color:#000!important; text-decoration: none; font-family:Verdana,Arial,Helvetica,sans-serif; } .mctable td{ text-align:left; padding-bottom: 2px; } .mctable img{ border: 1px solid #000000!important;padding:1px; margin: 1px 6px 2px 0px; } .mctable cite{ font-size:11px; font-weight: normal color: #000000; text-decoration: none; font-family:Verdana,Arial,Helvetica,sans-serif; font-style:normal;border-bottom:0px; }.mctablecv cite:hover{ text-decoration:underline;}<'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://aa.goodsblock.dt00.net/j/24/'+MGDZ+'"><'+'/scr'+'ipt>'); }
