var isDOM=document.getElementById 
var aktnew = -1
var aktold = -1


function hidel(x){
 if (x!=-1){
  if (nn) {document.layers[x].visibility = "hide"}
  else if (isDOM) {
   document.getElementById("mnubar"+x).style.color = "white"
   document.getElementById("box"+x).style.visibility = "hidden"
  } else {
   document.all.mnubar[x].style.color = "white"
   document.all.box[x].style.visibility = "hidden"
  }
 }
}

function showl(x){
 if (x!=-1){
  if (nn) {document.layers[x].visibility = "show"}
  else if (isDOM) {
   document.getElementById("mnubar"+x).style.color = "#909000"
   document.getElementById("box"+x).style.visibility = "visible"
  } else {
   document.all.mnubar[x].style.color = "#909000"
   document.all.box[x].style.visibility = "visible"
  }
 }
}

function changeakt(){
 if (aktnew!=aktold){
  showl(aktnew)
  hidel(aktold)
  aktold = aktnew
 }
}

function aktiv(x){
 aktnew = x
 setTimeout("changeakt()",200)
}

function w(st) {document.write(st)}
function wd(a,b) {w("<DIV class="+a+">"+b+"</DIV>")}

function cap(first, second) {
w("<TABLE width='100%' cellSpacing=5 class='htab'><TR><TD valign=top><A HREF=../index.htm class='noul'>")
wd("bel","BEL");wd("chen","CHEN");wd("i","&amp;");wd("co","Co")
w("</A><TD width=170><img src=../integral.gif width=170 height=88><TD>")
wd("chess",first);wd("lines",second)
if (second=="") w("<BR>")
w("</TABLE>")
}

function wn(){nn?w("<layer name=boxnn></layer>"):w("<div id=box></div>")}
function wc(n,s) {w("<td nowrap><a onmouseover=aktiv("+n+") onmouseout=aktiv(-1) id=mnubar");isDOM?w(n):w("");w(">&nbsp;"+s+"&nbsp;</a><br>");nn?w("<layer name=boxnn visibility='hide'"):w("<div id=box");isDOM?w(n):w("");w(" onmouseover=aktiv("+n+") onmouseout=aktiv(-1)><table border=0 background=../menu.jpg id=blackbox>")}
function wi(f,s) {w("<tr><td nowrap><a href="+f+" id='mi'>"+s+"</a></tr>")}
function wb(){w("</table>");nn?w("</layer>"):w("</div>")}
function Call(){location.href="mailto:beluch"+"@"+"mail.ru"}

function menu() {
w("<table border=0 cellspacing=0 cellpadding=0 width=100% background=../mmenu.jpg height=20><tr>")
wc("0","Разделы");wi("../index.htm","Главная страница"); wi("../ru/index.htm","Новости");wi("../en/index.htm","Programs (English)");wi("../files/index.htm","Загрузка файлов");wb();
wc("1","Игра &quot;Жизнь&quot;");wi("../life/conway.htm","Мир Конуэя");wi("../life/lifelex/lexr.htm","Словарь Жизни");wi("../life/subscr.htm","Рассылка по Игре Жизнь");wi("../life/ships.htm","Космические корабли (статьи Д. Бэлла)");wi("../life/gardner.htm","Статьи Гарднера");wi("../life/bhept.htm","B-гептамино(Статья Д.Бакинэма)");wi("../life/lightsp.htm","Светоскоростные сигналы(Статья Г.Ниваша)");wi("../life/shblock.htm","Эффект снующего блока");wi("../life/pi.htm","Пи-гептамино");wi("../life/fredkin.htm","Вселенная как компьютер");wi("../life/llife.htm","Ссылки");wi("../life/files.htm","Загрузка файлов");wb();
wc("2","Наукообразие");wi("../articles/topo1.htm","Топология игрового поля");wi("../articles/symp1.htm","Теория симпатий");wi("../articles/files.htm","Загрузка файлов");wb();
wc("3","Программазмы");wi("../progr/describ.htm","Chess Lines");wi("../progr/dkres.htm","Крестики-нолики");wi("../progr/dlife.htm","Life");
wi("../progr/100comp.htm","100 компонентов");wi("../progr/delphhlp.htm","Документы по Delphi");wi("../progr/files.htm","Загрузка файлов");wb();
wc("4","Стихи");wi("http://stihi.beluch.ru","Мыкола Билюк");wb();
w("<td width='100%'>&nbsp;");
wc("5","&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Контакт");wi("javascript:Call()","Письмо автору");wi("http://www.guestbook.ru/?user=beluch","Гостевая книга");wb()
w("</tr></table>")
}

