/*marketgid.comV7.6*/ function MGD014916(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 MGD034916(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 MGD044916(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 MGD064916(title){ title=MGD034916(title,15); title=MGD044916(title,60); return title; } function MGD074916(desc){ return desc; } function MGD094916(title,id,f_src,desc,ext,lang){ MGDA+=' <td width="33%" valign="top" align="left"> <div class="featured-title"> <span style="position: relative;"> <a href="http://'+lang+'marketgid.com/pnews/'+id+'/i/4916/"> <img width="200" height="200" src="http://imgn.dt00.net/'+Math.floor(id/1000)+'/'+id+'_vb'+ext+'"/> </a> <span style="position: absolute; width: 160px; height: 70px!impotant; bottom: 3pt; left: 0px; background-color:#ffffff; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%;"> <h2> <a href="http://'+lang+'marketgid.com/pnews/'+id+'/i/4916/"> '+title+'</a></h2> </span> </span> </div> </td> '; MGD0++; } function MarketGidLoad(str){ MarketGidLoad4916(str); } function MarketGidLoad4916(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD094916(MGD064916(n[3]),n[1],n[0],MGD074916(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } } if (MGDQ) MGDQ.innerHTML = '<table width="504" cellpadding="1" cellspacing="5" border="0" class="mctable" > <tr> '+MGDA+' </tr> </table>'; } function MarketGidLoadNews4916(json){ var i; MGDA=''; MGDQ=document.getElementById('MarketGid4916'); if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD094916(MGD064916(n[3]),n[1],n[0],MGD074916(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } } if(MGDQ && MGDA){ MGDQ.innerHTML='<table width="504" cellpadding="1" cellspacing="5" border="0" class="mctable" > <tr> '+MGDA+' </tr> </table>'; } }else{ MGD104916(); if(MGDQ){ MGDQ.innerHTML=''; } } } var MGDZ4916 = 1; var MGDA=''; var MGDQ = document.getElementById('MarketGid4916'); var MG_c=MGD014916("MG_4916"); var MGD0=1; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ4916=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ4916=1; document.cookie="MG_4916="+MGDZ4916+";path=/"; if (MGDQ) { document.write('<style type="text/css"> .featured-title img { margin: 2px 3px 9px 0px!important; height:160px!important; width:160px!important; } .featured-title { padding-top:0!important; } * { border:0 none!important; margin:0!important; } .featured-title a { color:#1A799C;text-decoration:none!important;font-size:12px!important; } .featured-title h2 { font-family:Arial,Helvetica,sans-serif!important; font-size:12px!important; font-weight:normal!important; text-decoration:none!important; } overflow:hidden!important; } .featured-title h2 a:hover { text-decoration:none!important; }<'+'/style>'); document.write('<scr'+'ipt charset="utf-8" type="text/javascript" src="http://aa.newsblock.dt00.net/j/4916/'+MGDZ4916+'"><'+'/scr'+'ipt>'); }
