/*marketgid.comV7.7*/ function MGD011993(MGD02){ if (!document.cookie){ document.cookie="MG_1993=1;path=/"; if (!document.cookie){ var MGDA=new Date(); return (MGDA.getSeconds()%20+1); } else return 2-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 MGD031993(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 MGD041993(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 MGD061993(title){ return title; } function MGD071993(desc){ desc=MGD031993(desc,120); return desc; } function MGD091993(title,id,f_src,desc,ext,lang){ MGDA+=' <tr> <td valign="top" align="center"> <a target="_blank" href="http://'+lang+'marketgid.com/pnews/'+id+'/i/1993/" ><img width="120" height="120" src="http://imgn.dt00.net/'+Math.floor(id/1000)+'/'+id+'_b'+ext+'" /></a> <div> <a target="_blank" class="mctitleyi" href="http://'+lang+'marketgid.com/pnews/'+id+'/i/1993/">'+title+'</a> </div> </td> </tr> '; MGD00++; } function MarketGidLoad(str){ MGD101993(); MGDA=''; if(str){ var news=str.split('&#2;'); var i,n; for (i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD091993(MGD061993(n[3]),n[1],n[0],MGD071993(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } } if (MGDQ1993) MGDQ1993.innerHTML = '<table width="100%" cellpadding="0" cellspacing="2" border="0" class="mctable" > '+MGDA+' </table>'; } function MarketGidLoad1993(str){ MGDA=''; if(str){ var news=str.split('&#2;'); var i,n,t=0; for(i=0;i<news.length;i++){ n=news[i].split('&#1;'); MGD091993(MGD061993(n[3]),n[1],n[0],MGD071993(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } if(MGDQ1993 && MGDA){ if(MGDRN1993){ MGDQ1993.innerHTML+='<table width="100%" cellpadding="0" cellspacing="2" border="0" class="mctable" > '+MGDA+' </table>'; setTimeout('MGD111993();', 500); }else{ MGDQ1993.innerHTML='<table width="100%" cellpadding="0" cellspacing="2" border="0" class="mctable" > '+MGDA+' </table>'; setTimeout('MGD111993();', 5000); MGDRN1993++; } } }else{ MGD101993(); if(MGDQ1993){ MGDQ1993.innerHTML=''; } } } function MarketGidLoadNews1993(json){ var i; MGDA=''; if (json instanceof Array){ for(i=0; i<json.length; i++){ var n=json[i]; if (n instanceof Array){ MGD091993(MGD061993(n[3]),n[1],n[0],MGD071993(n[4]),(n[2]==2)?'.gif':'.jpg',n[5]?n[5]:'www.'); } } if(MGDQ1993 && MGDA){ if(MGDRN1993){ MGDQ1993.innerHTML+='<table width="100%" cellpadding="0" cellspacing="2" border="0" class="mctable" > '+MGDA+' </table>'; setTimeout('MGD111993();', 500); }else{ MGDQ1993.innerHTML='<table width="100%" cellpadding="0" cellspacing="2" border="0" class="mctable" > '+MGDA+' </table>'; setTimeout('MGD111993();', 5000); MGDRN1993++; } } }else{ MGD101993(); if(MGDQ1993){ MGDQ1993.innerHTML=''; } } } function MGD101993(){document.cookie="MG_1993="+MGDZ1993+";path=/";} function MGD111993(){ if(MGDZ1993<20)MGDZ1993++; else MGDZ1993=1; if(!document.getElementById('MGDW1993')){ MGD101993(); }else{ if(++MGCC1993>19){ MGD101993(); }else{ if(MGD141993()) MGD101993(); else MGD121993(); } } } function MGD121993(){ var script=document.createElement('script'); script.type='text/javascript'; script.src='http://aa.newsblock.dt00.net/j/1993/'+MGDZ1993; document.getElementById('MarketGid1993').parentNode.appendChild(script); } function MGD131993(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 MGD141993(){ var pMG=MGD131993('MarketGid1993'); var pMGDW=MGD131993('MGDW1993'); return(pMGDW["t"]-MGCS*4/5)<=(pMG["h"]+pMG["t"]); } var MGCS=MGCC1993=0; var MGDZ1993 = 2; var MGDA=''; var MGDQ1993 = document.getElementById('MarketGid1993'); var MG_c=MGD011993("MG_1993"); var MGD00=1; var MGDRN1993=0; if(MG_c!=null&&parseInt(MG_c)<20) MGDZ1993=parseInt(MG_c)+1; else if (parseInt(MG_c)>19) MGDZ1993=1; document.cookie="MG_1993="+MGDZ1993+";path=/"; if (MGDQ1993) { document.write('<style type="text/css">a.mctitleyi:link,a.mctitleyi:active,a.mctitleyi:visited{ font-size: 11px; font-weight:bold; font-family :Arial,Helvetica,sans-serif; text-decoration:none; color:#006699; }a.mctitleyi:hover{text-decoration:underline;color:#006699;} a.mcdesc:link,a.mcdesc:active,a.mcdesc:hover,a.mcdesc:visited{ font-size:11px; font-weight: normal; color:#6A6A6A; text-decoration: none; font-family:tahoma; } .mctable td{ padding:3px; } .mctable img{ border:1px solid #cccccc; margin: 5px 0px 0px 0px; } <'+'/style>'); document.write('<scr'+'ipt charset="windows-1251" type="text/javascript" src="http://aa.newsblock.dt00.net/j/1993/'+MGDZ1993+'"><'+'/scr'+'ipt>'); }
