');
}
function insertGlossArray(docObj) {
if( ! isSymphBook( agniBook ) ) return;
docObj.write('');
}
function insertParaList(docObj) {
docObj.write('');
}
function insertLetterList(docObj) {
docObj.write('');
}
function blankIndex() {
updLoc( indexMenu, shellDir+'blankIndexMenu.htm');
updLoc( index, shellDir+'blankIndex.htm');
}
function blankSymph() {
blankIndex();
updLoc( glossary, shellDir+'blankGloss.htm' );
}
function setUpIndex() {
if( isSymphBook() ) indexMenu.location=shellDir+"indexSelector.htm";
else blankSymph();
}
function changeBook( strValue ) {
if(strValue) set_agniBook( strValue );
bookMenu.location.reload(); // calls setUpIndex()
}
function jumpLetter() {
set_indexLetter( jumpList( window.frames['index'], indexMenu.document.indexForm.letterList, symphDir+agniBook+"/" ) );
}
function jumpPara() {
set_agniPara( jumpList( window.frames['a'], bookMenu.document.bookForm.paraList, symphDir+agniBook+"/" ) );
}
function updateOrigSelector() { // called when 'a' frame is reloaded
var p=new SymphPath( a.location.href );
if( agniBook != p.dir ) {
set_agniPara( p.file );
changeBook( p.dir );
} else {
set_agniPara( validateAndSelectItem( bookMenu.document.bookForm.paraList, p.file ) );
updateGlossary();
}
}
function updateParaSelector() { // called when bookMenu is reloaded
var p=new SymphPath( a.location.href );
set_agniPara( validateAndSelectItem( bookMenu.document.bookForm.paraList, agniPara ) );
if( agniBook != p.dir || agniPara != p.file ) jumpPara();
else updateGlossary();
}
function updateLetterSelector() {
var p=new SymphPath( index.location.href );
set_indexLetter( validateAndSelectItem( indexMenu.document.indexForm.letterList, indexLetter ) );
if( agniBook != p.dir || indexLetter != p.file ) {
jumpLetter();
}
}
function updateGlossary() {
if( indexMenu.glossaryParas && indexMenu.book && (indexMenu.book==agniBook)) {
var gFile = "g-"+agniPara;
var gloss = indexMenu.glossaryParas;
var glossLen = gloss.length;
for(var i=0 ; i < gloss.length ; ++i) {
if( gloss[i] == gFile ) {
updLoc( glossary, symphDir+agniBook+"/"+gFile );
return;
}
}
if( ! window.glossary ) return;
if( (glossLen > 0) ) {
var p=new SymphPath( glossary.location.href );
if( agniBook != p.dir ) {
updLoc( glossary, symphDir+agniBook+"/"+gloss[0] );
}
}
}
}
function updateGlossArray() { // calls to this function are placed in all GLOSS.JS files
updateGlossary();
}
//-------- functions called by 'buttons'
function nextLetter() {
if( ! isLetterList() ) return;
var letterList = indexMenu.document.indexForm.letterList;
letterList.selectedIndex = getNextItem( letterList );
jumpLetter();
}
function showNextLetter() {
if( (! isBookList()) || (! isLetterList()) ) return st( '' );
var letterList = indexMenu.document.indexForm.letterList;
var bookList = bookMenu.document.bookForm.bookList;
var i = findItem( bookList, agniBook );
if( i<0 ) return false;
var curLetter = getNextItem( letterList );
var curLetterStr = curLetter>0 ? 'буква '+'"'+letterList.options[ curLetter ].text+'"' : letterList.options[ 0 ].text;
rightMenu.on('downArrow');
return st( bookMenu.document.bookForm.bookList.options[ i ].text+", "+curLetterStr+" --> " );
}
function prevLetter() {
if( ! isLetterList() ) return;
var letterList = indexMenu.document.indexForm.letterList;
letterList.selectedIndex = getPrevItem( letterList );
jumpLetter();
}
function showPrevLetter() {
if( (! isBookList()) || (! isLetterList()) ) return st( '' );
var letterList = indexMenu.document.indexForm.letterList;
var bookList = bookMenu.document.bookForm.bookList;
var i = findItem( bookList, agniBook );
if( i<0 ) return false;
var curLetter = getPrevItem( letterList );
var curLetterStr = curLetter>0 ? 'буква '+'"'+letterList.options[ curLetter ].text+'"' : letterList.options[ 0 ].text;
rightMenu.on('upArrow');
return st("<-- "+bookMenu.document.bookForm.bookList.options[ i ].text+", "+curLetterStr );
}
function nextPara() {
if( ! isParaList() ) return;
var paraList = bookMenu.document.bookForm.paraList;
paraList.selectedIndex = getNextItem( paraList );
jumpPara();
}
function showNextPara() {
if( (! isParaList()) || (! isBookList()) ) return st( '' );
var paraList = bookMenu.document.bookForm.paraList;
var bookList = bookMenu.document.bookForm.bookList;
var i = findItem( bookList, agniBook );
if( i<0 ) return false;
bottomMenu.on('rightArrow');
return st( bookMenu.document.bookForm.bookList.options[ i ].text+", "+paraList.options[ getNextItem( paraList ) ].text+" --> " );
}
function prevPara() {
if( ! isParaList() ) return;
var paraList = bookMenu.document.bookForm.paraList;
paraList.selectedIndex = getPrevItem( paraList );
jumpPara();
}
function showPrevPara() {
if( (! isParaList()) || (! isBookList()) ) return st( '' );
var paraList = bookMenu.document.bookForm.paraList;
var bookList = bookMenu.document.bookForm.bookList;
var i = findItem( bookList, agniBook );
if( i<0 ) return false;
bottomMenu.on('leftArrow');
return st("<-- "+bookMenu.document.bookForm.bookList.options[ i ].text+", "+paraList.options[ getPrevItem( paraList ) ].text );
}
function openHelp() {
var helpWindow=window.open(shellDir+"help.htm", "sympHelp", "scrollbars=1,width=600,height=450,resizable=1");
helpWindow.focus();
}
function openAboutBook() {
if( isSymphBook() ) location=shellDir+'intro-'+agniBook+'.htm';
else alert('Краткого обзора к этой книге нет.');
}
function showAboutBook() {
if( ! isBookList() ) return st( '' );
if( ! isSymphBook() ) return st( 'Краткого обзора к этой книге нет.' );
var bookList = bookMenu.document.bookForm.bookList;
var i = findItem( bookList, agniBook );
if( i<0 ) return false;
bottomMenu.on('aboutBook');
return st( 'Краткий обзор книги "'+bookMenu.document.bookForm.bookList.options[ i ].text+'"' );
}
function showOrig() {
if( ! a.document.title ) return st( '' );
bookMenu.on('agniNameImg');
return st( openPageStr+a.document.title+'"' );
}
function openOrig() {
if( ! a.document.title ) return;
var commentWindow=window.open(shellDir+"agniframe.htm?"+a.location, "extOrig"+Math.round(Math.random()*10000), "scrollbars=1,status=0,width=600,height=450,resizable=1,location="+getCookie("addrBarOn")+",toolbar="+getCookie("toolBarOn")+",menubar="+getCookie("menuBarOn"));
commentWindow.focus();
}
function showComment() {
if( ! glossary.document.title ) return st( '' );
bottomMenu.on('comArrow');
return st( openPageStr+glossary.document.title+'"' );
}
function openComment() {
if( ! glossary.document.title ) return;
var commentWindow=window.open(glossary.location, "extGlossary"+Math.round(Math.random()*10000), "scrollbars=1,status=0,width=600,height=450,resizable=1,location="+getCookie("addrBarOn")+",toolbar="+getCookie("toolBarOn")+",menubar="+getCookie("menuBarOn"));
commentWindow.focus();
}
function showIndex() {
if( ! index.document.title ) return st( '' );
indexMenu.on('index');
return st( openPageStr+index.document.title+'"' );
}
function openIndex() {
if( ! index.document.title ) return;
var indexWindow=window.open(index.location, "extIndex"+Math.round(Math.random()*10000), "scrollbars=1,status=0,width=600,height=450,resizable=1,location="+getCookie("addrBarOn")+",toolbar="+getCookie("toolBarOn")+",menubar="+getCookie("menuBarOn"));
indexWindow.focus();
}
//-------- functions called from within the frame 'a' (Agni Yoga text frame)
function originalLoaded() {
updateOrigSelector();
self.defaultStatus = a.document.title;
a.defaultStatus = a.document.title;
}
function z() {
a.document.write('');
originalLoaded();
}
function r() {
a.document.write('');
originalLoaded();
}
//-->
!!! THIS WEBSITE USES FRAMESETS !!!
!!! ЭТОТ САЙТ ИСПОЛЬЗУЕТ КАДРИРОВАНИЕ !!!