var ikony = 0; function redirect(pulldown) { newlocation = pulldown[pulldown.selectedIndex].value; if (newlocation != "") self.location = newlocation; return false; } function day(d) { self.location = "#" + d; return false; } function e_find_htm() { new_window = window.open("/e_find.htm", 'findview'); if (window.focus) new_window.focus(); //self.location = '/find.htm'; return false; } function propovedi(url) { propurl = '/audio/' + url + '.htm'; new_window = window.open(propurl, 'propview'); if (window.focus) new_window.focus(); //self.location = '/audio/' + url + '.htm'; return false; } function bible(url) { self.location = '/chapters/' + url + '.htm'; return false; } function bible1(url) { self.location = '/chapters/' + url + '.htm'; return false; } function bible2(url) { self.location = '/bible/bible_quote.php?quote='+url+'#qt'; return false; } function bible3(url) { url = '/bible/bible_quote.php?quote='+url+'#qt'; new_window = window.open(url, 'bibleview'); if (window.focus) new_window.focus(); return false; } var upurl, backurl, frwdurl; var uptext, backtext, frwdtext; function go(dir) { var url; url = ""; if( dir == "back" ) { if( backurl != "" ) url = "/" + backurl; } else if( dir == "frwd" ) { if( frwdurl != "" ) url = "/" + frwdurl; } else if( dir == "up" ) { if( upurl != "" ) { url = "/" + upurl; if( url.indexOf('#') == -1 && upurl != "index.html") url = url; } else url = "/index.html"; } else if( dir == "head" ) url = "#Top"; else if( dir == "top" ) url = "#Top"; else if( dir == "bot" ) url = "#Bottom"; else if( dir == "reserv" ) ; if( url != "" ) self.location = url; return false; } function texton(dir) { var text = ""; var t = ""; var engl = 1; if( dir == "back" ) { if (backurl != "") text = backtext; } else if( dir == "frwd" ) { if (frwdurl != "") text = frwdtext; } else if( dir == "up" ) { if (upurl != "") { if( upurl != "#" ) text = uptext; } else text = 'на страницу "Церковь Иоанна Богослова - проповедь всемирного покаяния"'; } if( text != "" ) t = engl ? "Go to the " + text : "Перейти " + text; else if( dir == "head" ) t = 'Перейти к меню - списку рубрик и разделов сайта "Проповедь всемирного покаяния"'; else if( dir == "top" ) t = engl ? "Jump to the top of the current page" : "Перейти в начало текущей страницы"; else if( dir == "bot" ) t = engl ? "Jump to the bottom of the current page" : "Перейти в конец текущей страницы"; else if( dir == "print" ) t = engl ? "Print the current page" : "Печатать текущую страницу"; else if( dir == "answer" ) t = 'Положитесь на Промысл Божий и нажмите кнопку "Ответ"'; else if( dir == "eng" ) t = "Switch to the English version of the web site"; else if( dir == "rus" ) t = "Switch to the Russian version of the web site"; else if( dir == "find" ) t = engl ? "Search the site" : "Поиск по сайту с помощью поисковиков Google, Yandex и локального поисковика"; dynamic("nav_top", t); dynamic("nav_bot", t); return false; } function texton_m(text) { dynamic("nav_top", text); dynamic("nav_bot", text); return false; } function texton_m1(text1) { text = "   " + text1; dynamic("nav_top", text); dynamic("nav_bot", text); return false; } function textoff() { dynamic("nav_top", ""); dynamic("nav_bot", ""); if(ikony == 1) startClock(); return false; } function printview() { var sUrl = document.location.href; var nHash = sUrl.indexOf("#"); var prn = "printview=yes"; if(sUrl.indexOf("?") == -1) prn = "?" + prn; else prn = "&" + prn; if(nHash > 0) sUrl = sUrl.slice(0,nHash) + prn + sUrl.slice(nHash); else sUrl += prn; window.open(sUrl, 'printview'); // self.location = sUrl; return false; } function russian() { self.location = "/index.html"; return false; } function english() { self.location = "/en/index.html"; return false; } function answer() { self.location = "/scripts/GoRandomArticle.php"; return false; } function dynamic(id, text) { if( text != "") document.getElementById(id).innerHTML = ""; else document.getElementById(id).innerHTML = ""; return false; }