// ()) Keng JavaScript Russian
var href="";
var head="";
var hnote=0;
var subwin=null;
var site=0;
var srv="";
if (!site){srv="http://www.zenitcamera.com";}

function print_top(header,win,menu,level,link,title,name){
make_header(header);
make_menu(win,menu);
make_wintop(win,menu,level,link,title,name);
}
function print_self(header,win,menu,level,link,title,name){
make_header(header);
make_menu(win,menu);
make_wintop(win,menu,level,link,title,name);
}
function print_bot(win,menu,level,link,title,name){
make_winbot(menu,level,link,title,name);
make_footer(win,menu);
}
function make_wintop(win,menu,level,link,title,name){
rec_menu(menu);
if(menu!="root"){
document.write("<BR><TABLE ");
if(win=="0"){document.write("CLASS=text");}
else{document.write("CLASS=line");}
if(menu=="recnews"){document.write(" WIDTH=99%");}
document.write(" BORDER=0 CELLPADDING=5><TR><TD ALIGN=left CLASS=winhead>");
if(level=="0"){document.write(head);}
if(level=="1"){
document.write("<A CLASS=winlink HREF=");
document.write(href);
document.write("index.html>");
document.write(head);
document.write("</A>");}
if(link!="0"){
if(level=="0" || level=="1"){document.write(" | ");}
document.write("<A CLASS=winlink HREF=");
document.write(href);
document.write(link);
document.write(">");
document.write(title);
document.write("</A>");}
if(name!="0"){
document.write(" | ");
document.write(name);}
document.write(":</TD></TR><TR><TD VALIGN=top>");}
}
function make_winbot(menu,level,link,title,name){
rec_menu(menu);
if(menu!="root"){
document.write("</TD></TR><TR><TD CLASS=winfoot ALIGN=right>");
if(level=="0"){document.write(head);}
if(level=="1"){
document.write("<A CLASS=winlink HREF=");
document.write(href);
document.write("index.html");
document.write(">");
document.write(head);
document.write("</A>");}
if(link!="0"){
if(level=="0" || level=="1"){document.write(" | ");}
document.write("<A CLASS=winlink HREF=");
document.write(href);
document.write(link);
document.write(">");
document.write(title);
document.write("</A>");
if(name!="0"){
document.write(" | ");
document.write(name);}
}
document.write("</TD></TR></TABLE>");}
}
function rec_menu(menu){
switch (menu){
case "qa":
head="Вопросы и Ответы";href=srv+"/qa/";break;
case "catalog":
head="Каталог";href=srv+"/archive/";break;
case "archive":
head="Архивы";href=srv+"/archive/";break;
case "mans":
head="Руководства";href=srv+"/mans/";break;
case "articles":
head="Статьи";href=srv+"/articles/";break;
case "recnews":
head="Новости Пресс-центра";href=srv+"/rec/";break;
case "newspaper":
head="Выпуски";href=srv+"/newspaper/";break;
case "forum":
head="Форумы";href=srv+"/forum/";break;
case "photos":
head="Архивные фотографии";href=srv+"/archive/photos/";break;
case "album":
head="Работы";href=srv+"/archive/photos/album/";break;
case "rec":
head="Объявления";href=srv+"/rec/";break;
case "about":
head="О веб-сервере";href=srv+"/";break;
case "weblinks":
head="Ссылки";href=srv+"/";break;
default:
title="";href=srv+"/";}
}
function make_footer(win,menu){
document.write("</TD></TR></TABLE>");
if(menu=="root"){
document.write("<HR CLASS=hline>");
document.write("<DIV CLASS=names>This is a Russian cameras home site: ");
document.write("ZENIT, Zorki, Moskva (Moscow), Iskra, Horizon (Horizont), Foton, Narciss, Droug (Droog), Junkor, Kristall (Crystal), Kometa (Comet), FT, Photosniper, Panofot, Rodina, Astra, Start, etc. and lenses: Helios, Zenitar, Variozenitar, Telezenitar, Mir, Industar, Era, MTO etc... ");
document.write("and other KRASNOGORSKY ZAVOD production from its authors -- KMZ Research &amp; Design Center &copy;&nbsp;1999--2010</DIV>");
document.write("<HR CLASS=hline>");}
if(menu=="about"){
document.write("<HR CLASS=hline>");
document.write("<DIV CLASS=names>Сайт Красногорского завода, производителя фотоаппаратуры марок: ");
document.write("ЗЕНИТ, Зоркий, Москва, Искра, Горизонт, Фотон, Нарцисс, Друг, Юнкор, Кристалл, Комета, ФТ, Фотоснайпер (ФС), Панофот, Родина, Астра, Старт и объективов: Гелиос, Зенитар, Вариозенитар, Телезенитар, Мир, Индустар, Эра, МТО... ");
document.write("и другой продукции -- от ее авторов и разработчиков -- Научно-технического центра КМЗ. &copy;&nbsp;1999--2010</DIV>");
document.write("<HR CLASS=hline>");}
}
function make_header(header){
document.write("<TABLE SUMMARY='header' BORDER=0 CELLSPACING=0 CELLPADDING=0>");
document.write("<TR VALIGN=top>");
if(header!="digital"){document.write("<TD WIDTH=184 HEIGHT=55 ALIGN=left BACKGROUND=/images/logo-lt.gif>&nbsp;</TD>");}
else{document.write("<TD WIDTH=184 HEIGHT=55 ALIGN=left BACKGROUND=/images/dlogo-lt.gif>&nbsp;</TD>");}
document.write("<TD WIDTH=1 CLASS=line></TD>");
if(header!="digital"){document.write("<TD WIDTH=261 HEIGHT=55 ALIGN=left VALIGN=middle BACKGROUND=/images/logo-rt.gif>");}
else{document.write("<TD WIDTH=261 HEIGHT=55 ALIGN=left VALIGN=middle BACKGROUND=/images/dlogo-rt.gif>");}
if(header=="0"){document.write("&nbsp;");}
if(header=="main"){document.write("<SPAN CLASS=kmz TITLE='Krasnogorsky Zavod'>&nbsp;&nbsp;КРАСНОГОРСКИЙ ЗАВОД им. С.А. Зверева</SPAN>");}
if(header=="digital"){document.write("<SPAN CLASS=kmz TITLE='Independed Project'>&nbsp;&nbsp;НЕЗАВИСИМЫЙ ПРОЕКТ</SPAN>");}
if(hnote==1){
document.write("</TD><TD WIDTH=10 ROWSPAN=3>&nbsp;</TD>");
document.write("<TD ROWSPAN=3><IFRAME SRC=/note.html HEIGHT=80 WIDTH=");
if(navigator.appName=="Netscape"){document.write(window.innerWidth-500);}
else{document.write(document.body.clientWidth-500);}
document.write(" SCROLLING=no FRAMEBORDER=0></IFRAME>");
}
document.write("</TD></TR><TR HEIGHT=1 CLASS=line><TD COLSPAN=3></TD></TR>");
if(header!="digital"){document.write("<TR VALIGN=top><TD WIDTH=184 HEIGHT=40 ALIGN=left BACKGROUND=/images/logo-lb.gif>&nbsp;</TD>");}
else{document.write("<TR VALIGN=top><TD WIDTH=184 HEIGHT=40 ALIGN=left BACKGROUND=/images/dlogo-lb.gif>&nbsp;</TD>");}
document.write("<TD WIDTH=1 CLASS=line></TD>");
if(header!="digital"){document.write("<TD WIDTH=261 HEIGHT=40 ALIGN=left VALIGN=middle BACKGROUND=/images/logo-rb.gif>");}
else{document.write("<TD WIDTH=261 HEIGHT=40 ALIGN=left VALIGN=middle BACKGROUND=/images/dlogo-rb.gif>");}
if(header=="main"){document.write("<SPAN CLASS=rdc TITLE='Research and Design Center'>&nbsp;&nbsp;НАУЧНО-ТЕХНИЧЕСКИЙ ЦЕНТР</SPAN>");}
if(header=="pressa"){document.write("<SPAN CLASS=rdc TITLE='KMZ Press Center'>&nbsp;&nbsp;ПРЕСС-ЦЕНТР</SPAN>");}
if(header=="digital"){document.write("<SPAN CLASS=rdc TITLE='Digital Photogtaphy'>&nbsp;&nbsp;<SMALL>ВОПРОСЫ ЦИФРОВОЙ ФОТОГРАФИИ</SMALL></SPAN>");}
if(header=="0"){document.write("&nbsp;");}
document.write("</TD></TR></TABLE>");
document.write("<TABLE SUMMARY='Page' BORDER=0 CELLSPACING=0 CELLPADDING=0><TR VALIGN=top><TD>");
}

function make_menu(nolink,current){
if(current=="catalog"){current="archive"}
document.write("<TABLE SUMMARY='Menu' BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=185");
if(current!="root"){document.write(" ALIGN=left>");}
else{document.write(">");}
document.write("<TR VALIGN=bottom><TD>&nbsp;</TD><TD WIDTH=1 CLASS=line></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right>");
if(current=="root"){document.write("<A CLASS=currentpage");}
else{document.write("<A CLASS=menu HREF="+srv+"/index.html");}
document.write(" TITLE='Index page'>ОГЛАВЛЕНИЕ&nbsp;</A></TD><TD CLASS=line></TD></TR>");
document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=left><SPAN CLASS=menuarticle TITLE='Information'>&nbsp;СПРАВОЧНАЯ:</SPAN></TD><TD CLASS=line></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right");

if(current=="qa"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"){document.write(" HREF="+srv+"/qa/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/qa/index.html");}
document.write(" TITLE='Questions and Answers'>ВОПРОСЫ И ОТВЕТЫ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="mans"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"){document.write(" HREF="+srv+"/mans/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/mans/index.html");}
document.write(" TITLE='User Manuals'>РУКОВОДСТВА&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="archive"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"||nolink=="2"){document.write(" HREF="+srv+"/archive/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/archive/index.html");}
document.write(" TITLE='Archive files'>АРХИВЫ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="articles"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"||nolink=="2"){document.write(" HREF="+srv+"/articles/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/articles/index.html");}
document.write(" TITLE='Articles'>СТАТЬИ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=left><SPAN CLASS=menuarticle TITLE='Press Center'>&nbsp;ПРЕСС-ЦЕНТР:</SPAN></TD><TD CLASS=line></TD></TR>");
if (site==1){
document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="newspaper"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"){document.write(" HREF="+srv+"/newspaper/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/newspaper/index.html");}
document.write(" TITLE='Newspaper'>ГАЗЕТА&nbsp;</A></TD><TD CLASS=line></TD></TR>");
}
document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="recnews"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"){document.write(" HREF="+srv+"/rec/news.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/rec/news.html");}
document.write(" TITLE='Press-center news'>НОВОСТИ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ");
if(current=="forum"){document.write(" CLASS=line ");}
document.write("ALIGN=left><SPAN CLASS=menuarticle TITLE='Forums'>&nbsp;ФОРУМ:</SPAN></TD>");
document.write("<TD CLASS=line></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right><A CLASS=menu HREF="+srv+"/forum/ZENIT.html TITLE='ZENIT cameras Forum'>ФОТОАППАРАТЫ ЗЕНИТ&nbsp;</A></TD><TD CLASS=line></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right><A CLASS=menu HREF="+srv+"/forum/MISC.html TITLE='Other KMZ production Forum'>ВСЯКАЯ ВСЯЧИНА&nbsp;</A></TD><TD CLASS=line></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right><A CLASS=menu HREF="+srv+"/forum/SERVER.html TITLE='About this server Forum'>О СЕРВЕРЕ&nbsp;</A></TD><TD CLASS=line></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right><A CLASS=menu HREF="+srv+"/cgi-bin/fforum.cgi?action=archive TITLE='Forum archive'>АРХИВ ФОРУМА&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=right><A CLASS=menu HREF="+srv+"/forum/DIGITAL.html TITLE='Digital Photography Forum'>ЦИФРОВАЯ ФОТОГРАФИЯ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=left><SPAN CLASS=menuarticle TITLE='Photo Archives'>&nbsp;ФОТОГРАФИИ:</SPAN></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="photos"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"){document.write(" HREF="+srv+"/archive/photos/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/archive/photos/index.html");}
document.write(" TITLE='Photo Archives'>ФОТОАРХИВЫ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="album"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"){document.write(" HREF="+srv+"/archive/photos/album/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/archive/photos/album/index.html");}
document.write(" TITLE='Photo Album'>АЛЬБОМ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR HEIGHT=1 CLASS=line><TD COLSPAN=2></TD></TR>");
document.write("<TR VALIGN=bottom><TD ALIGN=left><SPAN CLASS=menuarticle TITLE='Miscellaneous'>&nbsp;РАЗНОЕ:</SPAN></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="rec"){document.write(" CLASS=line><A CLASS=currentpage");
if(nolink=="0"||nolink=="2"){document.write(" HREF="+srv+"/rec/index.html");}
}
else{document.write("><A CLASS=menu HREF="+srv+"/rec/index.html");}
document.write(" TITLE='Advertisement'>ОБЪЯВЛЕНИЯ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="about"){document.write(" CLASS=line><A CLASS=currentpage");}
else{document.write("><A CLASS=menu HREF="+srv+"/about.html");}
document.write(" TITLE='About this web-server'>О СЕРВЕРЕ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right");
if(current=="weblinks"){document.write(" CLASS=line><A CLASS=currentpage");}
else{document.write("><A CLASS=menu HREF="+srv+"/weblinks.html");}
document.write(" TITLE='Additional weblinks'>ССЫЛКИ&nbsp;</A></TD><TD CLASS=line></TD></TR>");

document.write("<TR VALIGN=bottom><TD ALIGN=right>&nbsp;</TD><TD CLASS=line></TD></TR></TABLE>");
document.write("</TD><TD>");
}

function view(file,wname,width,height,key){
var sw=640;
var sh=480;
var ww=parseInt(width)+20;
var wh=parseInt(height)+20;
var tw=ww;
var th=wh;
var bar="0";
var mode="";
if(subwin){subwin.close();}
sw=screen.width;
sh=screen.height;
if(ww>=sw){ww=sw-60;wh=wh+25;bar="1";}
if(wh>=sh){ww=ww+25;wh=sh-60;bar="1";}
mode="width="+ww+",height="+wh+",resizable=1,scrollbars="+bar;
subwin=window.open("","subwin",mode);
subwin.document.open();
subwin.document.write("<HTML><HEAD><TITLE>"+wname+"</TITLE>");
subwin.document.write("<META HTTP-EQUIV=Content-Type CONTENT=\"text/html; CHARSET=windows-1251\">");
subwin.document.write("<META HTTP-EQUIV=Content-language CONTENT='ru'></HEAD><BODY BGCOLOR=#000033 STYLE=\"margin:0;\">");
subwin.document.write("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 ALIGN=center WIDTH="+tw+" HEIGHT="+th+"><TR><TD ALIGN=center>");
subwin.document.write("<IMG SRC="+file+" onClick=\"window.close(); return false;\" ALT='Click to close'>");
subwin.document.write("</TD></TR></TABLE></BODY></HTML>");
subwin.document.close();
if(window.focus){subwin.focus();}
}
