/*marketgid.comV7.9*/ function MGD012498(MGD02){ if (!document.cookie){ document.cookie="MG_2498=1;path=/"; if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } else return 4-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 MGD032498(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 MGD042498(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 MGD062498(title){ return title; } function MGD072498(desc){ desc=MGD032498(desc,120); return desc; } function MGD092498(n){ MGDA+=' <tr> <td valign="top" align="left"> <div align="center" style="padding:1px;background-color: #e5e9d5 ;border-bottom:1px solid #ccc;font-size:11px; font-weight: normal; color:#333333; text-decoration: none; font-family:tahoma;padding-bottom:1px;" >'+n[0]+'</div> <div><a target="_blank" href="http://www.marketgid.com/ghits/'+n[1]+'/i/2498/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'" ><img align="left" width="75" height="75"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_m'+(n[2]==2?'.gif':'.jpg')+'" /></a></div> <div> <a target="_blank" class="mctitle2498" href="http://www.marketgid.com/ghits/'+n[1]+'/i/2498/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'">'+MGD062498(n[3])+'</a> <div style="font-size:11px; padding-top:3px; font-weight: bold; color:#ff3300; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> <div style="font-size:11px; font-weight: normal; color:#555555; text-decoration: underline; font-family:tahoma;padding-left:5px; padding-right:5px;padding-top:2px;" >'+n[8]+'</div> <br> <div align="center" style="margin-top:3px;padding:2px;"><a target="_blank" href="http://www.marketgid.com/ghits/'+n[1]+'/i/2498/pp/'+MGD00+'/'+MGDZ+'/k/'+n[6]+'" class="mcdesc2498" ><cite>'+MGD072498(n[4])+'</cite></a></div> </td> </tr> '; MGD00++; } function MarketGidLoad(json){ MGD102498(); MGDA=''; if(!json) json=Array(); var i; for (i=0;i<json.length;i++) MGD092498(json[i]); if (MGDQ2498) MGDQ2498.innerHTML = '<table width="200" cellpadding="0" cellspacing="2" border="0" class="MGC024982498" style="border-collapse:separate;margin-top:0px;" > '+MGDA+' </table> '; } function MarketGidLoadGoods2498(json){ var i; MGDA=''; if(json){ for (i=0;i<json.length;i++) MGD092498(json[i]); if(MGDQ2498){ if(MGDRG2498){ MGDQ2498.innerHTML+='<table width="200" cellpadding="0" cellspacing="2" border="0" class="MGC024982498" style="border-collapse:separate;margin-top:0px;" > '+MGDA+' </table> '; setTimeout('MGD112498();', 500); }else{ MGDQ2498.innerHTML='<table width="200" cellpadding="0" cellspacing="2" border="0" class="MGC024982498" style="border-collapse:separate;margin-top:0px;" > '+MGDA+' </table> '; setTimeout('MGD112498();', 5000); MGDRG2498 = 1; } } }else{ MGD102498(); if(MGDQ2498)MGDQ2498.innerHTML=''; } } function MGD102498(){document.cookie="MG_2498="+MGDZ+";path=/";} function MGD112498(){ if(MGDZ<20)MGDZ++; else MGDZ=1; if(!document.getElementById('MGDW2498')){ MGD102498(); }else{ if(++MGCC2498>19){ MGD102498(); }else{ if(MGD142498()) MGD102498(); else MGD122498(); } } } function MGD122498(){ var script=document.createElement('script'); script.type='text/javascript'; script.src='http://ac.goodsblock.dt00.net/p/j/2498/'+MGDZ; document.getElementById('MarketGid2498').parentNode.appendChild(script); } function MGD132498(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 MGD142498(){ var pMG=MGD132498('MarketGid2498'); var pMGDW=MGD132498('MGDW2498'); return(pMGDW["t"]-MGCS*4/5)<=(pMG["h"]+pMG["t"]); } var MGCS=MGCC2498=0; var MGDZ = 4; var MGDA=''; var MGDQ2498 = document.getElementById('MarketGid2498'); var MG_c=MGD012498("MG_2498"); var MGD00=1; var MGDRG2498=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; if (MGDQ2498) { document.write('<style type="text/css">#MarketGid2498 a.mctitle2498:link,#MarketGid2498 a.mctitle2498:active,#MarketGid2498 a.mctitle2498:visited,#MarketGid2498 a.mctitle2498:hover{ font-size: 11px; font-weight:normal; font-family :tahoma; text-decoration:none; color:#fb5a02; } #MarketGid2498 a.mcdesc2498:link,#MarketGid2498 a.mcdesc2498:active,#MarketGid2498 a.mcdesc2498:hover,#MarketGid2498 a.mcdesc2498:visited{ font-size:11px; font-weight: bold; color:#1e90ff; line-height:1em!important; text-decoration: none; font-family:tahoma; } #MarketGid2498 .MGC024982498 td{ border:1px solid #0490ff; padding:0px; } #MarketGid2498 .MGC024982498 img{ border: 0; margin: 2px 3px 1px 2px; } #MarketGid2498 .MGC024982498 cite{ line-height:1em!important; font-size:11px; font-weight: bold; color: #1e90ff; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; }#MarketGid2498 .MGC024982498 cite:hover{ text-decoration:underline;} <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://ac.goodsblock.dt00.net/p/j/2498/'+MGDZ+'"><'+'/scr'+'ipt>'); }
