/*marketgid.comV7.7*/function MGD1(MGD2){ if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } var prefix=MGD2+"="; 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 MGD3(str,MGD3){ var word=new Array(); var i; var ret=''; word=str.split(" "); for (i=0;i<word.length;i++){ if (word[i].length>MGD3 && word[i].search(/&\w+;/)<0) ret+=word[i].substr(0,MGD3) + ' ' + word[i].substr(MGD3) + ' '; else ret+=word[i] + ' '; } return ret;}function MGD4(str,MGD3){ if (str.length<=MGD3) 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>MGD3) return ret+'...'; else ret+=word[i] + ' '; } return str;}function MGD6(title){ return title;}function MGD7(desc){ desc=MGD3(desc,120); return desc;}function MarketSetPage(n){ global: MGDQ,MGDA; MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/j/1086/' + n; MGDQ.appendChild(script); }function MarketPrev(){ global: MGDZ; if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_31="+MGDZ+";path=/"; MarketSetPage(MGDZ);}function MarketNext(){ global: MGDZ; if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_31="+MGDZ+";path=/"; MarketSetPage(MGDZ);}function MGD9(n){ MGDA+=' <td valign="top" align="left" width="50%"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1086/k/'+n[6]+'" ><IMG height="60" src="http://imgn.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+''+(n[2]==2?'.gif':'.jpg')+'" align="left"/></a> <div> <a target="_blank" class="mctitle1" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1086/k/'+n[6]+'">'+n[3]+'</a> </div> <div style="font-size:11px; font-weight: bold; color:#ff7200; text-decoration: none; font-family:tahoma;">'+n[7]+'</div> <div style="padding-left:5px;"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/1086/k/'+n[6]+'" class="mcdesc1" ><cite>'+n[4]+'</cite></a> </div> </td> '; MGD0++;}function MarketGidLoad(news){ var i; for (i=0;i<news.length;i++) MGD9(news[i]); MGDA='<table style="border:1px solid #cccccc;" width="468" height="60" bgcolor="fbfbfc"cellpadding="0" cellspacing="0" border="0" class="mctable1" > <tr> '+MGDA+' </tr> </table> '; if (MGDQ) MGDQ.innerHTML = MGDA;}var MGDZ = 1;var MGDA='';var MGDQ = document.getElementById('MarketGid1086');var MG_c=MGD1("MG_1086");var MGD0=1;if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1;else if (parseInt(MG_c)>19) MGDZ=1;document.cookie="MG_1086="+MGDZ+";path=/";if (MGDQ) { document.write('<style type="text/css"> a.mctitle1:link,a.mctitle1:active,a.mctitle1:visited{ font-size: 11px; font-weight:bold; font-family :tahoma; color:#000000; text-decoration:none; }a.mctitle1:hover{text-decoration:underline;} a.mcdesc1:link,a.mcdesc1:active,a.mcdesc1:hover,a.mcdesc1:visited{ font-size:12px; font-weight: normal; color:#000; text-decoration: none; font-family:tahoma; } .mctable1 td{ padding:0px; } .mctable1 img{ border: 0; margin: 0px 2px 0px 0px; } .mctable1 cite{ font-size:10px; font-weight: normal; color:#518ead; text-decoration: none; font-family:tahoma; font-style:normal;border-bottom:0px; } <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://ab.goodsblock.dt00.net/j/1086/'+MGDZ+'"><'+'/scr'+'ipt>');}
