var banner="<p align=\"center\"><script LANGUAGE=\"JavaScript\"><!--\nrandom = parseInt(Math.random()*10000)\nbanner = '<iframe src=\"http://www.nbo.ru/cgi-bin/engine.cgi?'\nbanner += 'nbo16;' + random + ';1;\" frameborder=0 width=468 height=60 marginwidth=0 marginheight=0 scrolling=no >'\nbanner += '<A href=\"http://www.nbo.rugo.php3?'\nbanner += 'id=nbo16&pg='+escape(window.location.href)+'-' + random + '\"><IMG alt=\"NBO - Новокузнецкая баннерная сеть\" border=0 '\nbanner += 'width=468 height=60 src=\"http://www.nbo.ru/cgi-bin/engine.cgi?'\nbanner += 'nbo16;'+escape(window.location.href)+'-' + random + ';0;\" border=0></A></iframe><br>'\nbanner += '<a href=\"http://www.nbo.ru\"><font size=\"2\">NBO - Новокузнецкая баннерная сеть</font></a>'\ndocument.write(banner)\n// --></script> <NOSCRIPT><IFRAME src=\"http://www.nbo.ru/cgi-bin/engine.cgi?nbo16;1;1;\" frameborder=\"0\" width=\"468\" height=\"60\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"> <a\nhref=\"http://www.nbo.rugo.php3?id=nbo16&pg=1\"><img\nalt=\"NBO - Новокузнецкая баннерная сеть\" border=\"0\" width=\"468\" height=\"60\"\nsrc=\"         w.nbo.ru/cgi-bin/engine.cgi?nbo16;1;0;\"></a> </IFRAME><br>\n<a href=\"http://www.nbo.ru\"><font size=\"2\">NBO - Новокузнецкая баннерная сеть</font></a></NOSCRIPT></p>\n";
var banner_rle="<p align=\"center\"><iframe src=http://www.linkexchange.ru/cgi-bin/erle.cgi?55217?011   frameborder=0 vspace=0 hspace=0 width=468 height=60   marginwidth=0 marginheight=0 scrolling=no>  <a href=http://www.linkexchange.ru/users/055217/goto.map target=_top>   <img src=http://www.linkexchange.ru/cgi-bin/rle.cgi?55217?011   alt=\"RLE Banner Network\" border=0 height=60 width=468></a>   </iframe></p>";
var banner_ghost="<p align=\"center\"><a href=\"http://www.nvkz.net/ghost/\" target=\"_blank\" ><img src=http://www.nvkz.net/ghost/banner/ban-468.gif   alt=\"Статьи, Книги, Документация... -=[Ghost site]=- Все, что Вам нужно\" border=0 height=60 width=468></a>  </p>";
//var hotlog="<!-- HotLog -->\n<script language=\"javascript\">\nhotlog_js=\"1.0\";\nhotlog_r=\"\"+Math.random()+\"&s=55963&im=31&r=\"+escape(parent.parent.document.referrer)+\"&pg=\"+\nescape(\"http://www.nvkz.net/cybertv/\"+window.document.title+\".htm\");\ndocument.cookie=\"hotlog=1; path=/\"; hotlog_r+=\"&c=\"+(document.cookie?\"Y\":\"N\");\n</script><script language=\"javascript1.1\">\nhotlog_js=\"1.1\";hotlog_r+=\"&j=\"+(navigator.javaEnabled()?\"Y\":\"N\")</script>\n<script language=\"javascript1.2\">\nhotlog_js=\"1.2\";\nhotlog_r+=\"&wh=\"+screen.width+'x'+screen.height+\"&px=\"+\n(((navigator.appName.substring(0,3)==\"Mic\"))?\nscreen.colorDepth:screen.pixelDepth)</script>\n<script language=\"javascript1.3\">hotlog_js=\"1.3\"</script>\n<script language=\"javascript\">hotlog_r+=\"&js=\"+hotlog_js;\ndocument.write(\"<a href='http://click.hotlog.ru/?55963' target='_top'><img \"+\n\" src='http://hit3.hotlog.ru/cgi-bin/hotlog/count?\"+\nhotlog_r+\"&' border=0 width=88 height=31 alt=HotLog></a>\")</script>\n<noscript>\n<a href=http://click.hotlog.ru/?55963 target=_top><img\nsrc=\"http://hit3.hotlog.ru/cgi-bin/hotlog/count?s=55963&im=31\" border=0 \nwidth=\"88\" height=\"31\" alt=\"HotLog\"></a></noscript>\n<!-- /HotLog -->\n"

var hotlog="<p align=\"center\"><!-- HotLog -->\n<script language=\"javascript\">\nhotlog_js=\"1.0\";\nhotlog_r=\"\"+Math.random()+\"&s=55963&im=31&r=\"+escape(parent.parent.document.referrer)+\"&pg=\"+\nescape(\"http://www.nvkz.net/cybertv/\"+window.document.title+\".htm\");\ndocument.cookie=\"hotlog=1; path=/\"; hotlog_r+=\"&c=\"+(document.cookie?\"Y\":\"N\");\n</script><script language=\"javascript1.1\">\nhotlog_js=\"1.1\";hotlog_r+=\"&j=\"+(navigator.javaEnabled()?\"Y\":\"N\")</script>\n<script language=\"javascript1.2\">\nhotlog_js=\"1.2\";\nhotlog_r+=\"&wh=\"+screen.width+'x'+screen.height+\"&px=\"+\n(((navigator.appName.substring(0,3)==\"Mic\"))?\nscreen.colorDepth:screen.pixelDepth)</script>\n<script language=\"javascript1.3\">hotlog_js=\"1.3\"</script>\n<script language=\"javascript\">hotlog_r+=\"&js=\"+hotlog_js;\ndocument.write(\"<a href='http://click.hotlog.ru/?55963' target='_top'><img \"+\n\" src='http://hit3.hotlog.ru/cgi-bin/hotlog/count?\"+\nhotlog_r+\"&' border=0 width=88 height=31 alt=HotLog></a>\")</script>\n<noscript>\n<a href=http://click.hotlog.ru/?55963 target=_top><img\nsrc=\"http://hit3.hotlog.ru/cgi-bin/hotlog/count?s=55963&im=31\" border=0 \nwidth=\"88\" height=\"31\" alt=\"HotLog\"></a></noscript>\n<!-- /HotLog --></p>\n"


 function got(lt,p1,p2) 
{ 
 pagen.SetVariable("filename", p1); 
 pagen.SetVariable("func", p2); 
 pagen.SetVariable("online", "1"); 
 pagen.SetVariable("addon", lt); 
 } 

function fnds(str,par) //поиск символа в строке
{
var i
for (i = 0; i < str.length; i++) if (str.charAt(i)==par)  return(1) 
return(0)
}

function pathclear(p) // возращяет путь
{
var ind=p.length
while ((p.charAt(ind) != "/") & (ind >= 0) )
   {  
    ind=ind-1;
   }
return(p.substring(0, ind+1))
}


function getnewlist(txt)
{
var re = new RegExp("!@!","ig");  
txt=txt.replace(re, "");
re = new RegExp("&apos;","ig");  
txt=txt.replace(re, "'");
re = new RegExp("&amp;","ig");  
txt=txt.replace(re, "&");
 var i;
 var numv;
 var sb;
 var ind;
 var oind;
 var nw =new Array(); 
ind=0;

while (ind+1 < txt.length)
{

//alert(txt.substring(ind-10,ind+10))
if (((txt.indexOf("lst", ind) < txt.indexOf("txt", ind)) & (txt.indexOf("lst", ind) != -1)) || ((txt.indexOf("lst", ind) != -1) & (txt.indexOf("txt", ind) == -1)) )
{
ind=txt.indexOf("lst", ind)+3;
numv=new Number(txt.charAt(ind).valueOf())
nw[nw.length]=new Array();
while (txt.charAt(ind+1) != "|")
 {
  nw[nw.length-1][nw[nw.length-1].length]=new Array();
  for (i = 0; i < numv; i++) 
  {    
   ind=ind+1;
   oind=ind;

   while (txt.charAt(ind+1) != ";")
   {  
    ind=ind+1;
   }
  nw[nw.length-1][nw[nw.length-1].length-1][i]=txt.substring(oind, ind+1);

   ind=ind+1;
  }
 }

ind=ind-3
}
else
if (txt.indexOf("txt", ind) != -1)
 {
 oind=txt.indexOf("txt", ind)+3
 ind=txt.indexOf("|",oind)
 nw[nw.length]=txt.substring(oind, ind)
 ind=ind-2;
 }

if ((txt.indexOf("txt", ind) == -1) & (txt.indexOf("lst", ind) == -1))
{ 
break;
}

}
return(nw);

}

//---------------------------------------------


function loading(tx,ms)
{
var mas=ms.split(",");
var finx=mas[0];
//parent.frames[finx].document.open("text/html")
//parent.frames[finx].document.writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"><meta http-equiv=\"Content-Language\" content=\"ru\"><title>КУРСОР - Загрузка</title></head><body bgcolor=\"#000000\" ><div align=\"center\"><center><table border=\"0\" width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"100%\"><p align=\"center\"><font size=\"3 px\" face=\"MS Sans Serif\" color=\"#FF9900\"><b>--- Идет Загрузка---</b></font></p></td></tr></table></center></div></body></html>");
//parent.frames[finx].document.close;
}






function topic(tx,ms) // меню тем
{
var mas=ms.split(",");
var nw =getnewlist(tx); 
var i;
var i1;
var i2;
var abuf;
with (parent.frames[ mas[0] ].document) {

if (mas[1]!="../topic/topic.txt"){
  for (i2 = 1; i2 < nw.length; i2++)
  { 
  for (i1 = 0; i1 < nw[i2].length-1; i1++)
  { 
   if (nw[i2][i1][2]==mas[1]) {
parent.frames[1].document.pagen.SetVariable("filename", "../topic/"+nw[0][i2-1][1]+"/"+nw[i2][i1][2]+"/info")
parent.frames[1].document.pagen.SetVariable("func", "topicview")
parent.frames[1].document.pagen.SetVariable("online", "1")
parent.frames[1].document.pagen.SetVariable("addon", "^2")
   return(null)
   }
  }}
  alert("Извините, но Документ '"+mas[1]+"' на сервере не найден")
  history.back()
  return(null)
}

open("text/html", "replace")
writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=windows-1251\"><title>Articles</title><link href=\"../style.css\" rel=\"stylesheet\" type=\"text/css\"><script>\n<!-- \n function go(lt,p1,p2) \n { \n parent.frames[1].document.pagen.SetVariable(\"filename\", p1); \n parent.frames[1].document.pagen.SetVariable(\"func\", p2); \n parent.frames[1].document.pagen.SetVariable(\"online\", \"1\"); \n parent.frames[1].document.pagen.SetVariable(\"addon\", lt); \n } \n // --> \n </script></head><body topmargin=\"0\" leftmargin=\"0\" link=\"#737373\" vlink=\"#00FFFF\" alink=\"#00FFFF\" bgcolor=\"#333333\" bgproperties=\"fixed\" text=\"#808080\"><table border=\"0\" width=\"100%\" height=\"193\" cellspacing=\"0\" cellpadding=\"0\" background=\"../topic/fon.jpg\"><tr><td width=\"80%\" height=25 valign=\"bottom\"><b><font face=\"Arial\" color=\"#c9c9c9\" size=\"4px\">&nbsp;");

for (i = 0; i < nw[0].length; i++)
{
writeln(" <a href=\"#t"+i+"\">"+nw[0][i][0]+"</a> ||");
}
writeln("</font></b></td><td rowspan=\"2\"><img border=\"0\" src=\"../topic/headline.jpg\" align=\"right\" width=\"302\" height=\"193\"></td></tr><tr><td width=\"100%\" height=\"80\">&nbsp;</td></tr></table><p>&nbsp;</p>")

//end headline

for (i2 = 1; i2 < nw.length; i2++)
{
 nw[i2][nw[i2].length-2][4]="ffffff";
 nw[i2][nw[i2].length-1][4]="ffffff";

//сортировка
if (nw[i2].length > 1) {
for (i = 0; i < nw[i2].length; i++)
{ 
for (i1 = 0; i1 < nw[i2].length-1; i1++)
{ 
 if (nw[i2][i1][0] > nw[i2][i1+1][0])
  {
   abuf=nw[i2][i1];
   nw[i2][i1]=nw[i2][i1+1];
   nw[i2][i1+1]=abuf;
  }
}
}}

 writeln("<p>&nbsp;<a name=\"t"+(i2-1)+"\"></a></p><p><font color=\"ffffff\" size=5>-------&nbsp;&nbsp;&nbsp;&nbsp;"+nw[0][i2-1][0]+"</font></p>");

 for (i = 0; i < nw[i2].length; i++)
 { 
 if (nw[i2][i][4] != "ffffff") nw[i2][i][4]="999999";
 writeln("<font color=\""+nw[i2][i][4]+"\" size=3px>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+nw[i2][i][1]+" <a href=\"javascript:go('^2','../topic/"+nw[0][i2-1][1]+"/"+nw[i2][i][2]+"/info','topicview')\">"+nw[i2][i][0]+"</a></font><br>");
 }

}

writeln("<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>"+banner+banner_rle+hotlog);
writeln("</body></html>");
close;

}// with
}


function topicview(tx,ms) // статья
{
var mas=ms.split(",")
mas[1]=pathclear(mas[1])
var nw = getnewlist(tx)
var buf
with (parent.frames[ mas[0] ].document) {
open("text/html", "replace")
writeln("<html><head><title>Article-"+nw[0][0][0]+"</title><link href=\"style-cheat.css\" rel=\"stylesheet\" type=\"text/css\"></head><body bgcolor=\"#353535\" topmargin=\"0\" leftmargin=\"10\" bgproperties=\"fixed\"><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"30\"><tr><td width=\"80\" bgcolor=\"#C68306\" valign=\"middle\" height=\"30\"><a href=\"javascript:history.back()\"><font color=\"#353535\" face=\"MS Sans Serif\"><b>&nbsp;&nbsp;НАЗАД</b></font></a></td><td bgcolor=\"#295456\" valign=\"middle\" nowrap height=\"30\"><p align=\"center\"><b><font color=\"#FFFFFF\" size=\"5\">- "+nw[0][0][0]+" -</font></b></p></td></tr></table>")
writeln(banner_rle)


if( nw[1][0][0] != " " ) for (i = 0; i < nw[1].length; i++)
{
if ( Math.floor(Math.abs(Math.random()*10)) >5 ) buf="left"
else buf="right"

nw[2]=nw[2].substring(0 , (nw[2].length / nw[1].length)*i )+"<img border=\"2\" src=\""+mas[1]+nw[1][i][0]+".jpg\" align=\""+buf+"\" >"+nw[2].substring(((nw[2].length / nw[1].length)*i) , nw[2].length )
}
writeln("<p><font face=\"MS Sans Serif\" color=\"#FFFFFF\">"+nw[2]+"</font></p>")
writeln(banner)
writeln(hotlog)
close()
}
}

function cheatlist(tx,ms) // читы
{
var mas=ms.split(",");
var finx=mas[0];
var lt=mas[1];
var re = new RegExp("!@!","gi");
var hbegin="<html><head><meta http-equiv=\"Content-Type\" content=\"text/html;charset=windows-1251\"><link href=\"style-cheat.css\" rel=\"stylesheet\" type=\"text/css\"><title>CheatZONE</title><script>\n<!-- \n function go(lt,p1,p2) \n { \n parent.frames[1].document.pagen.SetVariable(\"filename\", p1); \n parent.frames[1].document.pagen.SetVariable(\"func\", p2); \n parent.frames[1].document.pagen.SetVariable(\"online\", \"1\"); \n parent.frames[1].document.pagen.SetVariable(\"addon\", lt); \n } \n // --> \n </script></head><body bgcolor=\"#000000\" text=\"#FFFFFF\" topmargin=\"0\" leftmargin=\"0\"><table border=\"0\" width=\"100%\" height=\"70\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=\"top\" height=\"70\" background=\"../cheatzone/night.jpg\"><p align=\"center\"><img border=\"0\" src=\"../cheatzone/logo.png\" align=\"right\" width=\"182\" height=\"42\"><br></head><body>";
var list=new Array("0-9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","Рус");
var nw =new Array(); 
var i;
var i1;
var i2;
var abuf;
with (parent.frames[finx].document) {

open("text/html", "replace")
writeln(hbegin);

for (i = 0; i < list.length; i++)
{ 
parent.frames[finx].document.writeln("&nbsp;<a href=\"javascript:go('^2,"+list[i]+"','http://www.nvkz.kuzbass.net/cybertv/pagen/cheat.txt|http://www.nvkz.kuzbass.net/g-host/gb/gb-web.dat','cheatlist')\">"+list[i]+"</a>");
}

writeln("</p><p>&nbsp;</p></td></tr></table>")
writeln(banner_rle)
writeln("<p align=center>");


if (lt != "game" ) {
nw = getnewlist(tx);

for (i = 0; i < list.length; i++) {
for (i1 = 0; i1 < nw[i].length; i1++){
nw[i][i1][1]="../cheatzone/cheat/"+nw[i][i1][1]+".cht";
}
}


//----------gHost
var allcheat;
allcheat=0;
for (i = 0; i < list.length; i++) {
for (i1 = 0; i1 < nw[i+list.length].length; i1++){
nw[i][nw[i].length]=new Array(nw[i+list.length][i1][0]+"","http://www.nvkz.net/g-host/gb/"+nw[i+list.length][i1][1]+".htm");
}
allcheat=allcheat+nw[i].length
}
//----------

writeln("<b><a href=\"mailto:ghost13@km.ru?subject=Add_CheatCode\"><font color=E8A800>Добавить свой чит</font></a></b> к "+allcheat+"    <br> <a href=\"JavaScript:if (1);\"    onClick=\"javascript:window.open('http://www.nvkz.net/g-host/gb-faq.htm', 'FAQ','toolbar=0,status=no,menubar=0,scrollbars=1,resizable=1,width=650,height=400,left=100,top=100')\"><img src=\"../cheatzone/faq.png\"  alt=\"Часто задаваемые Вопросы\" border=0 ></a><br><br>");


for (i = 0; i < list.length; i++)
{ 
 if( list[i]==lt ) {

for (i2 = 0; i2 < nw[i].length-1; i2++)
{ 
for (i1 = 0; i1 < nw[i].length-2; i1++)
{ 
 if (nw[i][i1][0] > nw[i][i1+1][0])
  {
   abuf=nw[i][i1];
   nw[i][i1]=nw[i][i1+1];
   nw[i][i1+1]=abuf;
  }
}
}

  for (i1 = 0; i1 < nw[i].length; i1++)
  {   
  writeln("<a href=\"javascript:go('^2,game','"+nw[i][i1][1]+"','cheatlist')\"><font color=ffffff>"+ nw[i][i1][0]+"</font></a><br>");
  }
 }
}
}
else {
 tx=tx.replace(re, "<br>");
re=/&apos;/gi;
tx=tx.replace(re, "'");
writeln("<b><a href=\"javascript:history.back()\"><font color=E8A800>НАЗАД</font></a></b>&nbsp;</p><blockquote><p align=left>"+tx);
}
writeln("</p></blockquote><p>&nbsp;</p>"+banner_ghost+banner+hotlog+"</body></html>");
close;
}
}


function gamelist(tx,ms) // игры
{
var mas=ms.split(","),fndp = new RegExp("","gi");
var finx=mas[0]
var nw = getnewlist(tx);
var list=new 
Array("0-9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","Рус")
var i,i1;

with (parent.frames[finx].document) {
open("text/html", "replace")
writeln("<html><head><title>Games</title><meta http-equiv=\"Content-Type\" content=\"text/html;charset=windows-1251\"><link href=\"style-cheat.css\" rel=\"stylesheet\" type=\"text/css\"><title>CheatZONE</title><script>\n<!-- \n function go(lt,p1,p2) \n { \n parent.frames[1].document.pagen.SetVariable(\"filename\", p1); \n parent.frames[1].document.pagen.SetVariable(\"func\", p2); \n parent.frames[1].document.pagen.SetVariable(\"online\", \"1\"); \n parent.frames[1].document.pagen.SetVariable(\"addon\", lt); \n } \n // --> \n </script></head><body topmargin=\"0\" leftmargin=\"0\"><table border=\"0\" width=\"100%\" height=\"30\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"#000000\"><tr><td width=\"100%\"><p align=center >")


for (i = 0; i < list.length; i++) {  parent.frames[finx].document.writeln("&nbsp;<a href=\"javascript:go('^2,"+list[i]+"','./games.txt','gamelist')\">"+list[i]+"</a>") }

writeln("</td></tr></table>")
writeln("<p align=left ><big><big><big><big><strong><font color=\"#FF0000\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(</font><font color=\"#FF8080\">(</font><font color=\"#8D8D8D\">"+mas[1]+"</font><font color=\"#FF8080\">)</font><font color=\"#FF0000\">)</font></strong></big></big></big></big></p><p><font size=5>")

for (i = 0; i < list.length; i++){ if( list[i]==mas[1] ) break; }

for (i1 = 0; i1 < nw[i].length; i1++){
write("<br>&nbsp;&nbsp;&nbsp;"+nw[i][i1][0]+"<font size=2>")
if (  fnds(nw[i][i1][3],"r")==1 ) write("&nbsp;&nbsp;<a href=\"javascript:go('^2','../games/"+nw[i][i1][1]+"/info.gms','game_review')\" >Обзор</a>")
if (  fnds(nw[i][i1][3],"p")==1 ) write("&nbsp;&nbsp;<a href=\"javascript:go('^2','../games/"+nw[i][i1][1]+"/info.gms','game_preview')\" >Превью</a>")
if (  fnds(nw[i][i1][3],"s")==1 ) write("&nbsp;&nbsp;<a href=\"javascript:go('^2','../games/"+nw[i][i1][1]+"/info.gms','game_scr')\" >Скриншоты</a>")
writeln("</font>")
}
writeln("</font></p>")
writeln(hotlog)
close()
}
}

function game_review(tx,ms) 
{
var mas=ms.split(",");
var finx=mas[0];
mas[1]=pathclear(mas[1])
var nw = getnewlist(tx);


parent.frames[finx].document.open("text/html", "replace")
parent.frames[finx].document.writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; harset=windows-1251\"><link href=\"../style.css\" rel=\"stylesheet\" type=\"text/css\"><title>Review-"+ nw[0][1][1] +"</title></head><body link=\"#5C5C5C\" bgcolor=\"#FFFFFF\" vlink=\"#808080\" topmargin=\"0\" leftmargin=\"0\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"205\" width=\"100%\">  <tr>    <td height=\"200\" valign=\"top\" background=\"../games/headfon.gif\"><p align=\"center\">&nbsp; </td>    <th height=\"200\" valign=\"middle\" background=\"../games/fon_logo.jpg\" width=\"400\" nowrap>      <p align=\"center\"><img border=\"0\" src=\""+mas[1]+"logo.gif\"> </th>    <td height=\"200\" valign=\"top\" background=\"../games/headfon.gif\">&nbsp; </td>    <th width=\"230\" valign=\"top\" height=\"200\" nowrap>    <table border=\"0\" width=\"100%\" background=\"../games/firm/"+nw[0][0][1]+"\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>        <td width=\"100%\" background=\"../games/headfirm-tr.gif\">&nbsp;</td>      </tr>    </table> </th>  </tr></table>")
parent.frames[finx].document.writeln("<table border=\"0\" width=\"558\" cellspacing=\"0\" height=\"116\" bordercolorlight=\"#FFFFFF\" cellpadding=\"0\">  <tr>    <td width=\"141\" bgcolor=\"#000000\" height=\"24\" background=\"../games/ln_r_u.gif\"><p align=\"right\"><font    color=\"#FFFFFF\"><strong><big><code>Платформа</code></big></strong></font></td>    <td width=\"9\" bgcolor=\"#000000\" height=\"24\"></td>    <td width=\"8\" height=\"24\" align=\"left\" background=\"../games/ln_sm_u.gif\">&nbsp;</td>    <td width=\"400\" height=\"24\" align=\"left\" bordercolordark=\"#FFFFFF\"    background=\"../games/ln_r1_u.gif\"><font color=\"#000000\"><big><code><strong>"+ nw[0][1][0] +"</strong></code></big></font></td>  </tr>  <tr>    <td width=\"141\" bgcolor=\"#000000\" height=\"24\" background=\"../games/ln_r_c.gif\"><p align=\"right\"><font    color=\"#FFFFFF\"><strong><big><code>Жанр</code></big></strong></font></td>    <td width=\"9\" bgcolor=\"#000000\" height=\"24\"></td>    <td width=\"8\" height=\"24\" align=\"left\"></td>    <td width=\"400\" height=\"24\" align=\"left\" background=\"../games/ln_r1_c.gif\"><font color=\"#000000\"><code><strong><big>"+ nw[0][2][0] +"</big></strong></code></font></td>  </tr>  <tr>    <td width=\"141\" bgcolor=\"#000000\" height=\"24\" background=\"../games/ln_r_c.gif\"><code><big><p    align=\"right\"><font color=\"#FFFFFF\"><strong>Требования</strong></font></big></code></td>    <td width=\"9\" bgcolor=\"#000000\" height=\"1\"></td>    <td width=\"8\" align=\"left\" height=\"1\"></td>    <td width=\"400\" height=\"1\" align=\"left\" background=\"../games/ln_r1_c.gif\"><font color=\"#000000\"><code><strong><big>"+ nw[0][3][0] +"</big></strong></code></font></td>  </tr>  <tr>    <td width=\"141\" bgcolor=\"#000000\" height=\"24\" background=\"../games/ln_r_c.gif\"><p align=\"right\"><font    color=\"#FFFFFF\"><strong><big><code>Издатель</code></big></strong></font></td>    <td width=\"9\" bgcolor=\"#000000\" height=\"24\"></td>    <td width=\"8\" align=\"left\" height=\"24\"></td>    <td width=\"400\" height=\"24\" align=\"left\" background=\"../games/ln_r1_c.gif\"><font color=\"#000000\"    size=\"4\"><strong><code>")

if( nw[0][4][1] == " " ) parent.frames[finx].document.write(nw[0][4][0]);
else parent.frames[finx].document.write("<a href=\"http://"+ nw[0][4][1] +"\">"+ nw[0][4][0] +"</a>");

parent.frames[finx].document.writeln("</code></strong></font></td>  </tr>  <tr>    <td width=\"141\" bgcolor=\"#000000\" height=\"24\" background=\"../games/ln_r_c.gif\"><p align=\"right\"><font    color=\"#FFFFFF\"><strong><big><code>Разработчик</code></big></strong></font></td>    <td width=\"9\" bgcolor=\"#000000\" height=\"24\"></td>    <td width=\"8\" height=\"24\" align=\"left\"></td>    <td width=\"400\" height=\"24\" align=\"left\" background=\"../games/ln_r1_c.gif\"><font color=\"#000000\" size=\"4\"><strong><code>")

if( nw[0][5][1] == " " ) parent.frames[finx].document.write(nw[0][5][0]);
else  parent.frames[finx].document.write("<a href=\"http://"+nw[0][5][1]+"\">"+ nw[0][5][0] +"</a>");
parent.frames[finx].document.write("</code></strong></font></td>  </tr>  <tr>    <td width=\"141\" bgcolor=\"#000000\" height=\"24\" background=\"../games/ln_r_b.gif\"><p align=\"right\"><font    color=\"#FFFFFF\"><strong><big><code>Онлайн</code></big></strong></font></td>    <td width=\"9\" bgcolor=\"#000000\" height=\"24\">&nbsp; </td>    <td width=\"8\" height=\"24\" align=\"left\" background=\"../games/ln_sm_d.gif\"></td>    <td width=\"400\" height=\"24\" align=\"left\" background=\"../games/ln_r1_d.gif\"><a href=\"http://"+ nw[0][6][1] +"\">"+ nw[0][6][0] +"</a></td>  </tr></table>")

parent.frames[finx].document.writeln(banner_rle)
parent.frames[finx].document.writeln("<p>&nbsp;</p><div align=\"left\"><table border=\"0\" width=\"98%\" cellspacing=\"0\" cellpadding=\"0\" height=\"57\">  <tr>    <td width=\"100\" valign=\"bottom\" align=\"left\"><img src=\"../games/up_line.gif\"    width=\"100\" height=\"40\"></td>    <td width=\"10\"></td>    <td></td>  </tr>  <tr>    <td background=\"../games/center_line.jpg\" height=\"10%\" valign=\"top\">")

if( nw[1][0][0] != " " ) for (i = 0; i < nw[1].length; i++)
{
parent.frames[finx].document.writeln("<p align=\"center\"><a href=\"JavaScript:if (1);\" onClick=\"javascript:window.open('"+mas[1]+nw[1][i][0]+".jpg','','top=100,left=100,scrollbars=1,resizable=1,height=520,width=680,status=yes,toolbar=no,menubar=no,location=no','');\" ><img border=\"1\" src=\""+mas[1]+nw[1][i][0]+"_small.jpg\" width=\"82\"></a></p>")
}

parent.frames[finx].document.writeln("</td><td width=\"10\"></td><td valign=\"top\"><code><font size=\"3\">"+nw[2]+"</code></font></p> <p>&nbsp; </p><p>&nbsp; </td>  </tr>  <tr>    <td width=\"100\" valign=\"top\" align=\"left\"><a href=\"javascript:history.back();\"><img src=\"../games/down_line.gif\" width=\"100\" height=\"65\" border=\"0\"></a></td>    <td width=\"10\"></td>    <td>      <p align=\"right\">&nbsp; </p>      <p align=\"right\">&nbsp; </p>      <p align=\"right\">По всем вопросам обращатся на <a href=\"mailto:support@cursornews.tk?subject=Cursor_PCGames_Questions\">support@cursornews.tk</a> </p>    </td>  </tr></table></div><p ALIGN=\"left\" style=\"margin-left: 100\">&nbsp;</p>")
parent.frames[finx].document.writeln(banner)
parent.frames[finx].document.writeln(hotlog)
parent.frames[finx].document.writeln("</body></html>")

}


function game_preview(tx,ms) // игры
{
var mas=ms.split(",")
mas[1]=pathclear(mas[1])
var finx=mas[0]
var nw = getnewlist(tx)
var buf
with (parent.frames[finx].document) {

open("text/html", "replace")
writeln("<html><head><title>Preview-"+ nw[0][1][1] +"</title><link href=\"style-cheat.css\" rel=\"stylesheet\" type=\"text/css\"></head><body bgcolor=\"#353535\" topmargin=\"0\" leftmargin=\"10\" bgproperties=\"fixed\"><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"30\"><tr><td width=\"80\" bgcolor=\"#C68306\" valign=\"middle\" height=\"30\"><a href=\"javascript:history.back()\"><font color=\"#353535\" face=\"MS Sans Serif\"><b>&nbsp;&nbsp;НАЗАД</b></font></a></td><td bgcolor=\"#295456\" valign=\"middle\" nowrap height=\"30\"><p align=\"center\"><b><font color=\"#FFFFFF\" size=\"5\">"+nw[0][1][1]+"</font></b></p></td></tr></table>")
writeln(banner_rle)

if( nw[1][0][0] != " " )  for (i = 0; i < (nw[1].length); i++)
{
if ( Math.floor(Math.abs(Math.random()*10)) >5 ) buf="left"
else buf="right"

nw[3]=nw[3].substring(0 , (nw[3].length / nw[1].length)*i )+"<a href=\"JavaScript:if (1);\" onClick=\"javascript:window.open('"+mas[1]+nw[1][i][0]+".jpg','','top=100,left=100,scrollbars=1,resizable=1,height=520,width=680,status=yes,toolbar=no,menubar=no,location=no','');\" ><img border=\"2\" src=\""+mas[1]+nw[1][i][0]+"_small.jpg\" align=\""+buf+"\" ></a>"+nw[3].substring(((nw[3].length / nw[1].length)*i) , nw[3].length )
}
writeln("<p><font color=\"#FFFFFF\">"+nw[3]+"</font></p>")
writeln(banner)
writeln(hotlog)
close()

}

}



function game_scr(tx,ms) // игры
{
var mas=ms.split(",")
var finx=mas[0]
mas[1]=pathclear(mas[1])
var nw = getnewlist(tx)
var buf
with (parent.frames[finx].document) {

open("text/html", "replace")
writeln("<html><head><title>Screenshot-"+ nw[0][1][1] +"</title><link href=\"style-cheat.css\" rel=\"stylesheet\" type=\"text/css\"></head><body bgcolor=\"#353535\" topmargin=\"0\" leftmargin=\"10\" bgproperties=\"fixed\"><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"30\"><tr><td width=\"80\" bgcolor=\"#C68306\" valign=\"middle\" height=\"30\"><a href=\"javascript:history.back()\"><font color=\"#353535\" face=\"MS Sans Serif\"><b>&nbsp;&nbsp;НАЗАД</b></font></a></td><td bgcolor=\"#295456\" valign=\"middle\" nowrap height=\"30\"><p align=\"center\"><b><font color=\"#FFFFFF\" size=\"5\">Скриншоты: "+nw[0][1][1]+"</font></b></p></td></tr></table>")
writeln("<p align=center><font color=FFFFFF>Кликните на картинке для её увеличения</font></p><font size=5><p align=center>")
if( nw[1][0][0] != " " ) for (i = 0; i < nw[1].length; i++)
{
writeln("<a href=\"JavaScript:if (1);\" onClick=\"javascript:window.open('"+mas[1]+nw[1][i][0]+".jpg','','top=100,left=100,scrollbars=1,resizable=1,height=520,width=680,status=yes,toolbar=no,menubar=no,location=no','');\" ><img border=\"1\" src=\""+mas[1]+nw[1][i][0]+"_small.jpg\" ></a>&nbsp;&nbsp;&nbsp;")

}
writeln("</font><p>&nbsp;</p><p>&nbsp;</p>")
writeln(banner_rle)
writeln(banner)
writeln(hotlog)
close()
}

}


function filez(tx,ms) // файлы finx,tema,num ( -1 - новый)
{
var mas=ms.split(",")
var finx=mas[0]
var nw = getnewlist(tx)

with (parent.frames[finx].document) {

open("text/html", "replace")
writeln("<html><head><title>Filez-"+mas[1]+mas[2]+"</title><script>\n<!-- \n function go(lt,p1,p2) \n { \n parent.frames[1].document.pagen.SetVariable(\"filename\", p1); \n parent.frames[1].document.pagen.SetVariable(\"func\", p2); \n parent.frames[1].document.pagen.SetVariable(\"online\", \"1\"); \n parent.frames[1].document.pagen.SetVariable(\"addon\", lt); \n } \n // --> \n </script><link href=\"style-cheat.css\" rel=\"stylesheet\" type=\"text/css\"></head><body bgcolor=\"#353535\" topmargin=\"0\" leftmargin=\"10\" bgproperties=\"fixed\"><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" height=\"30\"><tr><td width=\"80\" bgcolor=\"#C68306\" valign=\"middle\" height=\"30\"><a href=\"javascript:history.back()\"><font color=\"#353535\" face=\"MS Sans Serif\"><b>&nbsp;&nbsp;НАЗАД</b></font></a></td><td bgcolor=\"#295456\" valign=\"middle\" nowrap height=\"30\"><p align=\"center\"><b><font color=\"#FFFFFF\" size=\"5\"> FILEZZzz.. </font></b></p></td></tr></table>")
//---head
for (i = 1; i <= nw[0].length; i++)
{
writeln("<p><br><span style=\"background-color: #808080\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>"+nw[0][i-1][0]+"&nbsp;&nbsp;&nbsp;</b></font></span></p><font color=\"#FEED78\" face=\"MS Sans Serif\" size=\"2\">")
 for (j = 1; j < nw[i].length; j++)
 {
if ((i == mas[1])&&(j == mas[2])) writeln("<br>")
if( nw[i][j][0] != nw[0][i-1][1] )  writeln("<a href=\"javascript:go('^2,"+i+","+j+"','../filez/filez.txt','filez')\"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+nw[i][j][0]+"</b></a><br>")
else writeln("<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NEW!!&nbsp;&nbsp;<a href=\"javascript:go('^2,"+i+","+j+"','../filez/filez.txt','filez')\">"+nw[i][j][0]+"</a></b><br>")
if ((i == mas[1])&&((j == mas[2])||((mas[2]== -1)&&(nw[i][j][0] == nw[0][i-1][1]) )))   
  {
writeln("<table border=\"0\" width=\"500\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><hr align=\"left\" color=\"#808080\" SIZE=\"4\" style=\"MARGIN-TOP: -5px\"><p align=\"left\" style=\"LINE-HEIGHT: 90%; MARGIN-BOTTOM: 10px; MARGIN-TOP: -3px; TEXT-INDENT: 3px\"><font color=\"#ffffff\">");
// picture
if (nw[i][j][4] != " ") writeln("<img align=\"left\" border=\"0\" src=\"../filez/"+nw[i][j][4]+"\">")
writeln(nw[i][j][1]+"<br><br></font><p style=\"margin-top: -8\" align=\"right\"><b><span style=\"letter-spacing: 1pt\"><font face=\"MS Sans Serif\" color=\"#FE890B\" size=\"1\">"+nw[i][j][2]+"&nbsp;Kb</font></span></b><a href=\"../filez/"+nw[i][j][3]+"\"><img border=\"0\" src=\"../images/donwload.gif\" align=\"middle\"></a>")
writeln("<hr align=\"left\" color=\"#808080\" SIZE=\"4\" style=\"MARGIN-TOP: -5px\"></td></tr></table>")
  }
 }
}

writeln("<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>")
writeln(banner_rle)
writeln(banner)
writeln(hotlog)
close()
}

}





function headlinenews(tx,ms) // статьи.игры
{
var nw = getnewlist(tx)
var opens='./news.txt|../filez/filez.txt|'
var i,i1,addon,j,j1,buf,dt0,dt00,dt,dt1,bdate,par1,bf

i=Math.round(Math.random()*(nw[0].length-1)+1)
i1=Math.round(Math.random()+0.3)+1
opens+='../topic/'+nw[0][i-1][1]+'/'+nw[i][nw[i].length-i1][2]+'/info|'
par1='../topic/'+nw[0][i-1][1]+'/'+nw[i][nw[i].length-i1][2]+'/info'

addon=nw[0].length+1
bf=Math.round(Math.random()*2)+1
if (bf == 1) buf="r"
if (bf == 2) buf="p"
if (bf == 3) buf="s"

dt= Date.UTC( 2002, 0 ,1 )
for (j = 0; j <= 27; j++)
for (j1 = 0; j1<=(nw[addon+j].length-1); j1++) {
if (nw[addon+j][j1][2] != " ") {

dt1=nw[addon+j][j1][2].split(".")
if (dt1[1].charAt(0) == 0) dt1[1]=dt1[1].substring(1)
if (dt1[0].charAt(0) == 0) dt1[0]=dt1[0].substring(1)
bdate =  Date.UTC( parseInt(dt1[2]), parseInt(dt1[1],"xx")-1, parseInt(dt1[0],"xx") )

if (buf != "s"){
if ( (fnds(nw[addon+j][j1][3],buf)==1) & (bdate>dt) ) 
{
dt00=dt0
dt0=nw[addon+j][j1][1]
dt=bdate
}}
else
{
if ( (nw[addon+j][j1][3] == "s") & (bdate>dt) ) 
{
dt0=nw[addon+j][j1][1]
dt=bdate
}}

}}

if (Math.round(Math.random()+0.3) < 1)  dt0=dt00
opens+='../games/'+dt0+'/info.gms'
got("^2,"+buf+","+dt0+","+par1,opens,"headlinenews_end")
}





function tablecom(p0,p1,p2,p3,p4,p5,p6)
{
p2=p2+" "
p2=p2.slice(0,((p2.slice(0,30)).lastIndexOf(" ")) )
return("<table border=\"0\" bordercolor=\"#3B3B3B\" cellspacing=\"0\" cellpadding=\"0\" width=\"500\"><tr><td width=\"5\" bgcolor=\"#353535\" valign=\"top\">&nbsp;</td><td bgcolor=\"#353535\" valign=\"middle\">    <center><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse\" width=\"490\">    <td width=\"384\" height=\"19\" bgcolor=\"#295456\"><b><font color=\"#FEED78\" face=\"MS Sans Serif\" size=\"3\">&nbsp;&nbsp;"+p0+"&nbsp;&nbsp;<a target=\"_self\" href=\""+p1+"\">&lt;&lt;&lt;</a>&nbsp;&nbsp;"+p2+"</font></b></td><td width=\"106\" height=\"19\" bgcolor=\"#295456\"><p align=\"right\" style=\"margin-bottom: -4\"><font size=\"2\" face=\"MS Sans Serif\" ><a href=\""+p3+"\">"+p4+"</a>&nbsp;</font></p></td></tr><tr><td width=\"490\" colspan=\"2\" height=\"21\" valign=\"middle\"><hr color=\"#808080\" size=\"4\" align=\"left\" style=\"margin-top: -5; padding-top: -2\"></center><p style=\"line-height: 90%; text-indent: 3; margin-top: -3; margin-bottom: 10\"><font color=\"#ffffff\"   face=\"Times New Roman\"><img border=\"0\" src=\""+p5+"\" align=\"left\" width=\"110\" height=\"85\">"+p6+"</font></p></td></tr></table><p style=\"margin-bottom: -20\">&nbsp;</p> </td><td width=\"5\" bgcolor=\"#353535\" valign=\"top\">&nbsp;</td></tr></table>")

}





function headlinenews_end(tx,ms) //  finx - раздел- игры| новости.файлы.статьи.игры
{
var nw = getnewlist(tx)
var mas=ms.split(",")
var i,i1,addon,buf,imag
with (parent.frames[mas[0]].document) {

open("text/html", "replace")
writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"><title>Headline NEWS</title><base target=\"nmain\"><script>\n<!-- \n function go(lt,p1,p2) \n{ \n parent.frames[1].document.pagen.SetVariable(\"filename\", p1);\n  parent.frames[1].document.pagen.SetVariable(\"func\", p2); \n parent.frames[1].document.pagen.SetVariable(\"online\", \"1\"); \n parent.frames[1].document.pagen.SetVariable(\"addon\", lt); \n } \n // --> \n</script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"style-cheat.css\"></head><body topmargin=\"0\" leftmargin=\"0\" link=\"#737373\" vlink=\"#808080\" alink=\"#FE890B\" bgcolor=\"#000000\" background=\"../images/desktop1.jpg\" bgproperties=\"fixed\" text=\"#808080\" ><center><p>&nbsp;</p><table border=\"0\" bordercolor=\"#3B3B3B\" bgcolor=\"#353535\" cellspacing=\"0\" cellpadding=\"0\" width=\"400\" style=\"border-collapse: collapse\"><tr><td bgcolor=\"#FFFFFF\"><center><strong><font color=\"#000080\" size=2>&nbsp;Открыта рассылка &quot;КУРСОР - Игровые новости&quot;.&nbsp;</font></strong></center></td></tr><tr><td><form ENCTYPE=\"text/plain\" NAME=\"mail\" ACTION=\"mailto:cursortv@mail.ru?subject=Add_Mail_Client\" METHOD=\"POST\"><div align=\"center\"><center><p><strong><font color=\"#FFFF00\">&nbsp;+ обзоры игр и читы к ним +</font><font color=\"#FFFFFF\"><br><big>Ваш e-mail</big></font></strong><font color=\"#FFFFFF\">: <input TYPE=\"text\" name=\"e_mail\" size=\"18\">&nbsp;&nbsp;<b><input TYPE=\"submit\" VALUE=\"Подписаться\"></b></font></center><font color=\"#FFFFFF\">( для серии </font><font color=\"#FFFF00\">8-773</font><font color=\"#FFFFFF\">нажмите&nbsp;</font><span style=\"background-color: #C0C0C0\"><font color=\"#000000\"><a href=\"mailto:cursortv@mail.ru?body='Для получения нашей рассылки просто отправьте нам это письмо'&amp;subject=Add_CursorMailList773\"><font color=\"#000000\">&nbsp;<span lang=\"ru\">здесь</span>&nbsp;</font></a></font></span><font color=\"#FFFFFF\">  )</font></p></div></form> </td></tr></table></center><div align=\"center\"><center><table border=\"0\" width=\"400\" height=\"270\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\"><OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" ID=best WIDTH=400 HEIGHT=270><param name=\"_cx\" value=\"10583\"><param name=\"_cy\" value=\"7144\"><param name=\"Movie\" value=\"opros.swf\"><param name=\"Src\" value=\"opros.swf\"><param name=\"WMode\" value=\"Window\"><param name=\"Play\" value=\"1\"> <param name=\"Loop\" value=\"0\"><param name=\"Quality\" value=\"Best\"> <param name=\"SAlign\" value><param name=\"Menu\" value=\"-1\"><param name=\"Base\" value><param name=\"Scale\" value=\"NoBorder\"><param name=\"DeviceFont\" value=\"0\"><param name=\"EmbedMovie\" value=\"0\"><param name=\"BGColor\" value=\"333333\"><param name=\"SWRemote\" value></OBJECT></td></tr></table></center></div><p align=\"center\">&nbsp;</p><div align=\"center\"><center><table border=\"0\" bordercolor=\"#3B3B3B\" cellspacing=\"0\" cellpadding=\"0\" width=\"500\"><tr><td bgcolor=\"#FFFFFF\" width=\"5\">&nbsp;</td></center><td bgcolor=\"#FFFFFF\" valign=\"top\"><p align=left><font size=\"2\" face=\"MS Sans Serif\" color=\"#FFFFFF\"><a href=\"mailto:cursortv@mail.ru\">почта-вопросы</a></font><b><font color=\"#000080\" size=\"4\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Новости Сайта&nbsp;</font></b></p></td><td bgcolor=\"#FFFFFF\" width=\"5\">&nbsp;</td></tr><center><tr><td width=\"5\" bgcolor=\"#353535\" valign=\"top\">&nbsp;</td><td bgcolor=\"#353535\" valign=\"middle\"></td><td width=\"5\" bgcolor=\"#353535\" valign=\"top\">&nbsp;</td></tr></table>")

writeln(tablecom(nw[0][0][0],nw[0][0][1],nw[0][0][2],nw[0][0][3],nw[0][0][4],nw[0][0][5],nw[0][0][6]))


switch (mas[1]){
	case "r":
if (nw[9][0] != " ")
imag="../games/"+mas[2]+"/"+nw[9][0]+"_small.jpg"
else imag="../images/games.jpg"

 writeln(tablecom("ОБЗОРЫ","javascript:go('^2,A','games.txt','gamelist')",nw[8][1][1],nw[0][0][3],nw[0][0][4],imag,nw[10].slice(0,((nw[10].slice(0,250)).lastIndexOf(" ")) )+"...&nbsp;&nbsp;&nbsp;<a href=\"javascript:go('^2','../games/"+mas[2]+"/info.gms','game_review')\" target=\"_self\">Подробнее&nbsp;&gt;&gt;</a>"))
break
	case "p": 
if (nw[9][0] != " ")
imag="../games/"+mas[2]+"/"+nw[9][0]+".jpg"
else imag="../images/games.jpg"

writeln(tablecom("СКОРО","javascript:go('^2,A','games.txt','gamelist')",nw[8][1][1],nw[0][0][3],nw[0][0][4],imag,nw[11].slice(0,((nw[11].slice(0,250)).lastIndexOf(" ")) )+"...&nbsp;&nbsp;&nbsp;<a href=\"javascript:go('^2','../games/"+mas[2]+"/info.gms','game_preview')\" target=\"_self\">Подробнее&nbsp;&gt;&gt;</a>"))
break
	case "s": 

if (nw[9][0] != " ") imag="../games/"+mas[2]+"/"+nw[9][0]+"_small.jpg"
else imag="../images/games.jpg"

writeln(tablecom("Скриншоты","javascript:go('^2,A','games.txt','gamelist')",nw[8][1][1],nw[0][0][3],nw[0][0][4],imag,nw[11]+"&nbsp;&nbsp;&nbsp;<a href=\"javascript:go('^2','../games/"+mas[2]+"/info.gms','game_scr')\" target=\"_self\">Скриншоты&nbsp;&gt;&gt;</a>"))
break

}

if (nw[6][0] != " ") imag=pathclear(mas[3])+nw[6][0]+".jpg"
else imag="../topic/sm.png"

writeln(tablecom("CТАТЬИ","javascript:go('^2','../topic/topic.txt','topic')",nw[5][0][0],nw[0][0][3],nw[0][0][4],imag,nw[7].slice(0,((nw[7].slice(0,250)).lastIndexOf(" ")) )+"...&nbsp;&nbsp;&nbsp;<a href=\"javascript:go('^2','"+mas[3]+"','topicview')\" target=\"_self\">Далее&nbsp;&gt;&gt;</a>"))

addon=1;
i=(Math.round(Math.random()*(nw[addon+0].length-1))+1)
for (i1 = 1; i1 <= nw[addon+i].length-1; i1++)
if (nw[addon+0][i-1][1] == nw[addon+i][i1][0]) {

if (nw[addon+i][i1][4] != " ") imag="../filez/"+nw[addon+i][i1][4]
else imag="../filez/sm.jpg"

writeln(tablecom("ФАЙЛЫ","javascript:go('^2',0,0'../filez/filez.txt','filez')",nw[addon+i][i1][0],nw[0][0][3],nw[0][0][4],imag,nw[addon+i][i1][1].slice(0,((nw[addon+i][i1][1].slice(0,250)).lastIndexOf(" ")) )+"...&nbsp;&nbsp;&nbsp;<a href=\"javascript:go('^2,"+i+",-1','../filez/filez.txt','filez')\" target=\"_self\">Подробнее/Скачать&nbsp;&gt;&gt;</a>"))
}

writeln(hotlog)
writeln(banner_rle)
writeln(banner)
writeln("<p align=\"center\"> \n<a href=\"http://www.nvkz.kuzbass.net/vdv\" target=\"_blank\"><img border=\"0\" src=\"http://www.nvkz.kuzbass.net/vdv/images/vdvban.gif\" width=\"88\" height=\"31\"></a>\n&nbsp;<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"88\" height=\"31\"><param name=menu value=0><param name=movie value=\"http://www.commandos2.dem.ru/flashes/banner_1.swf\" ref><param name=quality value=High><param name=\"_cx\" value=\"2328\"><param name=\"_cy\" value=\"820\"><param name=\"Src\" ref value=\"http://www.commandos2.dem.ru/flashes/banner_1.swf\"><param name=\"WMode\" value=\"Window\"><param name=\"Play\" value=\"-1\"><param name=\"Loop\" value=\"-1\"><param name=\"SAlign\" value><param name=\"Base\" value><param name=\"Scale\" value=\"ShowAll\"><param name=\"DeviceFont\" value=\"0\"><param name=\"EmbedMovie\" value=\"0\"><param name=\"BGColor\" value><param name=\"SWRemote\" value><param name=\"Stacking\" value=\"below\"><embed src=\"http://www.commandos2.dem.ru/flashes/banner_1.swf\" quality=high menu=false width=\"88\" height=\"31\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object>\n&nbsp;<a href=\"http://top1000.aport.ru/scripts/sqltmex.dll?tpl=_top_tod_yest.htm&id=106940&page=1&sort=today+desc&int~category=0\" target=\"_top\"><img src=\"count216.gif\" alt=\"Апорт Top 1000\" border=\"0\"></a></p>\n<p align=\"center\"><a href=\"http://www.nvkz.kuzbass.net/taifun\" target=\"_blank\"><img border=\"0\" src=\"http://www.nvkz.kuzbass.net/taifun/photo/banerr.gif\" width=\"142\" height=\"55\" ></a></p>\n<p align=\"center\"><a href=\"http://www.nvkz.kuzbass.net/ghost\"><img src=\"http://www.nvkz.net/ghost/banner/ban-468.gif\" border=0 width=468 height=60 alt=\"Статьи, Книги, Документация... -=[Ghost site]=- Все, что Вам нужно\"></a></p>\n<p align=\"center\"><a href=\"http://www.nvkz.net/red_alert_2/index.htm\" target=\"_blank\"><img src=\"http://www.nvkz.net/red_alert_2/baner/ban486x60.gif\" border=0 width=468 height=60 alt=\"ReD AlErеt 2\"></a></p>\n</body></html>")
close()
}
}