﻿function createLeftMenu() {
//configure below variable for menu width, position on page
var menuwidth=100
var offsetleft=240
var offsettop=200

var menui = new Array();
var menul = new Array();

//configure below for menu items. Extend list as desired

menui[0]="ПРАВОСЛАВИЕ В США И КАНАДЕ";
menui[1]="ЧИТАЛЬНЫЙ ЗАЛ";
menui[2]="КОЛЛЕКЦИЯ ЛИНКОВ";
menui[3]="ПРАВОСЛАВНАЯ ЦЕРКОВЬ В АМЕРИКЕ";
menui[4]="МОСКОВСКИЙ ПАТРИАРХАТ";
menui[5]="Russian Orthodox Church in the USA";
menui[6]="The Russian Orthodox Church Outside Russia";
menui[7]="The Russian Orthodox Church in America";
menui[8]="Жизнь ДО и ПОСЛЕ";
menui[9]="ВЕЛИКАЯ СХИЗМА";
menui[10]="Russian America";
menui[11]="ВСЕЛЕНСКИЕ СОБОРЫ";
menui[12]="СИМВОЛ ВЕРЫ";
menui[13]="КОРМЧАЯ КНИГА";
menui[14] = "ПРАВОСЛАВНЫЕ ПРАЗДНИКИ";
menui[15] = "ПРАВОСЛАВНЫЕ ТАИНСТВА";
menui[16] = "БОГОСЛУЖЕНИЕ";
menui[17] = "БОЖЕСТВЕННАЯ ЛИТУРГИЯ";
menui[18] = "ВСЕНОЩНОЕ БДЕНИЕ";
menui[19] = "БОГОСЛУЖЕБНОЕ ПЕСНОПЕНИЕ";
menui[20] = "БОГОСЛУЖЕБНЫЕ ОДЕЯНИЯ";
menui[21] = "ПРАВОСЛАВНАЯ МОЛИТВА";
menui[22] = "ВЕЛИКИЙ ПОСТ";
menui[23] = "ПРАВОСЛАВНЫЙ СЛОВАРЬ";
menui[24]="КАРТА САЙТА";





menul[0]="Orthodoxy.htm";
menul[1]="../Books/Reading-room.htm";
menul[2]="../LinkCollection.htm";
menul[3]="OrthodoxChurchInAmerica.htm";
menul[4]="MoscowPatriarchate.htm";
menul[5]="../ROCinUSA.htm";
menul[6]="../ROCOR.htm";
menul[7]="../ROCIA.htm";
menul[8]="Life.htm";
menul[9]="GreatSchism.htm";
menul[10]="../RussianAmerica.htm";
menul[11]="EcumenicalCouncils.htm";
menul[12]="Creed.htm";
menul[13]="HelmsmanBook.htm";
menul[14]="OrthodoxHolidays.htm";
menul[15] = "Sacramentum.htm";
menul[16] = "Celebration.htm";
menul[17] = "http://www.orthodoxliturgy.info/";
menul[18] = "http://www.orthodoxliturgy.info/Vespers.htm";
menul[19] = "Chants.htm";
menul[20] = "Clothing.htm";
menul[21] = "http://www.molitva.us/";
menul[22] = "Lent.htm";
menul[23] = "Orthodox-Dictionary.htm";
menul[24] = "../SiteMap.htm";




var strHtml;
strHtml = '<span ALIGN="left" id="spnLeftMenu" style="cursor:hand;background-color:black;"><table border="1" width="100%" cellpadding="0" cellpacing="0" bordercolor="black" bgcolor="white">';

//strHtml = '<span ALIGN="left" id="spnLeftMenu" style="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><table border="1" width="'+menuwidth+'" cellpadding="0" cellpacing="0" bordercolor="black" bgcolor="white">';

//document.write('<span ALIGN="left" ID="spnLeftMenu" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black;"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')

var strRows = "";
for (i=0;i<=menui.length-1;i++)
{
strRows += '<tr  valign="top"><td style="border-color: White; color: #CD7F32; font-family: Verdana, Sans-Sherif;  font-size:12px;font-weight: 600; " onclick="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onmouseout="className=\'menu\'">'+menui[i]+'</td></tr>';
//document.write('<tr><td style="border-color: White; color: #008000; font-family: Verdana, Sans-Sherif;  font-size:xx-small;font-weight: 600; " ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'">'+menui[i]+'</td></tr>')
}

strHtml += strRows + '</table></span>';
//document.write('</TABLE></span>');

var leftMemu = document.getElementById("tdLeftMenu");
leftMemu.innerHTML = strHtml;
//spnLeftMenu.style.pixelTop=document.body.offsetTop+offsettop;
//spnLeftMenu.style.pixelLeft=document.body.offsetLeft+offsetleft;

//function menu3(){
//makeStatic();
//}

//function makeStatic() {
//spnLeftMenu.style.pixelTop=document.body.scrollTop+offsettop
//setTimeout("makeStatic()",0);
//}

//window.onload=menu3;

}
