/*marketgid.comV7.8*/ function MGD01310(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 MGD03310(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 MGD04310(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 MGD06310(title){ return title; } function MGD07310(desc){ return desc; } function MGD09310(n){ MGDA+=' <!-- START HIT //--> <div class="hit"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'" class="hit-descr">'+n[4]+'</a> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'" class="hit-title">'+n[3]+'</a> <div class="hit-content"> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'" class="hit-img"><img width="75" height="75"src="http://imgg.dt00.net/'+Math.floor(n[1]/1000)+'/'+n[1]+'_m'+(n[2]==2?'.gif':'.jpg')+'" /></a> <div> <a target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'" class="hit-price">'+n[7]+'</a> <a class="hit-cat" target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'">'+n[8]+'</a> <a class="hit-brand" target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'">'+n[9]+'</a> <a class="hit-vendor" target="_blank" href="http://'+(n[5]?n[5]:'www')+'.marketgid.com/ghits/'+n[1]+'/i/310/k/'+n[6]+'"><img src="http://img.dt00.net/images/mainpage/link_icon.gif" />'+n[0]+'</a> </div> <div class="clearing"></div> </div> </div> <!-- END HIT //--> '; MGD00++; } function MarketGidLoad(json){ MarketGidLoadGoods310(json); } function MarketGidLoadGoods310(json){ var i; if(!json) json=Array(); MGDA=''; for (i=0;i<json.length;i++) MGD09310(json[i]); if (MGDQ310) MGDQ310.innerHTML = '<div id="goods-hits-informer"> '+MGDA+' </div> '; } function MarketNext310(){ MGDZ=parseInt(MGD01310("MG_310")); if(MGDZ<20) MGDZ++; else MGDZ=1; document.cookie="MG_310="+MGDZ+";path=/"; MarketSetPage310(MGDZ); } function MarketSetPage310(n){ MGDA = ''; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://goodsblock2.dt00.net/j/310/' + n; MGDQ.appendChild(script); } function MarketPrev310(){ MGDZ=parseInt(MGD01310("MG_310")); if(MGDZ>1) MGDZ--; else MGDZ=20; document.cookie="MG_310="+MGDZ+";path=/"; MarketSetPage310(MGDZ); } var MGDZ = 1; var MGDA=''; var MGDQ310 = document.getElementById('MarketGid310'); var MG_c=MGD01310("MG_310"); var MGD00=1; var MGDRG310=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ=1; document.cookie="MG_310="+MGDZ+";path=/"; if (MGDQ310) { document.write('<style type="text/css"> #goods-hits-informer{width:250px !important;overflow:hidden !important;} #goods-hits-informer *{font-family:Tahoma, Verdana, Arial !important;} .hit{border:1px solid #e5e5e5 !important;border-top:none !important;border-bottom-color:#598ecf !important;} .hit a{text-decoration:none} .hit a.hit-descr{display:block !important;padding:2px !important;text-align:center !important;background:#F1F1F1 !important;color:#598ECF !important;font-size:11px !important;font-weight:700 !important;text-decoration:none !important;} .hit a.hit-descr cite{font-style:normal !important;color:#FF0000 !important;} .hit a.hit-title{display:block !important;padding:2px !important;text-align:center !important;font-weight:700 !important;text-decoration:none !important;color:#616161 !important;} .hit div.hit-content{clear:both !important;_height:1% !important;overflow:hidden !important;} .hit div.hit-content a.hit-img{display:block !important;padding:2px 0 0 2px !important;width:77px !important;height:77px !important;overflow:hidden !important;float:left !important;} .hit div.hit-content a.hit-img img{border:none;} .hit div.hit-content div{margin:0 0 0 85px !important;} .hit div.hit-content div a.hit-price{display:block !important;text-align:center !important;padding:5px 0 !important;font-weight:700 !important;color:#ff7200 !important;text-decoration:none !important;} .hit div.hit-content div a.hit-cat{display:block !important;color:#009999 !important;} .hit div.hit-content div a.hit-brand{display:block !important;color:#0099CC !important;font-weight:700 !important;} .hit div.hit-content div a.hit-vendor{display:block !important;text-decoration:none !important;font-weight:700 !important;font-size:10px !important;color:#009966 !important;margin:5px 0 5px 0 !important;} .hit div.hit-content div a.hit-vendor img{border:none !important;margin:0 5px -6px 0 !important;} <'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://aa.goodsblock.dt00.net/j/310/'+MGDZ+'"><'+'/scr'+'ipt>'); }