'); } function insertParaList(docObj) { ////// if( ! docObj ) docObj = parent.bookMenu.document; docObj.write(''); } function insertBookList(docObj) { docObj.write(''); } function insertLetterList(docObj) { if( isSymphBook() ) { docObj.write(''); } } function parseSymphPath( slokaHREF ) { var off = slokaHREF.lastIndexOf("/"); fileName = slokaHREF.substring(off+1, slokaHREF.length); var beg = slokaHREF.lastIndexOf("/", off-1); dirName = slokaHREF.substring(beg+1, off); } function jumpList( targ, selObj, path ) { var toGo = selObj.options[selObj.selectedIndex].value; if( toGo == "" ) toGo = selObj.options[selObj.selectedIndex].text; targ.location=path+toGo; return toGo; } function jumpPara() { set_agniPara( jumpList( window.frames['a'], bookMenu.document.bookForm.paraList, symphDir+agniBook+"/" ) ); } function jumpLetter() { set_indexLetter( jumpList( window.frames['index'], indexMenu.document.indexForm.letterList, symphDir+agniBook+"/" ) ); } function changeBook( strValue ) { if(strValue) set_agniBook( strValue ); bookMenu.location.reload(); if( isSymphBook() ) indexMenu.location="indexSelector.htm"; else blankSymph(); ////// bookMenu.history.go(0); ////// indexMenu.history.go(0); } function updateOrigSelector() { parseSymphPath( a.location.href ); set_agniPara( fileName ); if( agniBook != dirName ) { set_agniBook( dirName ); changeBook(); } if( bookMenu.document.bookForm.paraList ) set_agniPara( validateAndSelectItem( bookMenu.document.bookForm.paraList, agniPara ) ); } function updateParaSelector() { // called when bookSelector.htm is reloaded parseSymphPath( a.location.href ); set_agniBook( validateAndSelectItem( bookMenu.document.bookForm.bookList, agniBook ) ); set_agniPara( validateAndSelectItem( bookMenu.document.bookForm.paraList, agniPara ) ); if( agniBook != dirName || agniPara != fileName ) { jumpPara(); } } function updateLetterSelector() { parseSymphPath( index.location.href ); set_indexLetter( validateAndSelectItem( indexMenu.document.indexForm.letterList, indexLetter ) ); if( agniBook != dirName || indexLetter != fileName ) { jumpLetter(); } } function updateGlossary() { if( indexMenu.glossaryParas ) { var gFile = "g-"+agniPara; var glossLen = indexMenu.glossaryParas.length; for(var i=0 ; i < glossLen ; ++i) { if( indexMenu.glossaryParas[i] == gFile ) { glossary.location=symphDir+agniBook+"/"+gFile; return; } } if( ! window.glossary ) { return; } if( (glossLen > 0) ) { parseSymphPath( parent.glossary.location.href ); if( agniBook != dirName ) { glossary.location=symphDir+agniBook+"/"+indexMenu.glossaryParas[0]; } } } } function updateGlossArray() { updateGlossary(); } function blankIndex() { indexMenu.location=symphDir+'blankIndex.htm'; index.location=symphDir+'blankIndex.htm'; } function blankSymph() { blankIndex(); glossary.location=symphDir+'blankGloss.htm'; } function showHelp() { helpWindow=window.open("help.htm", "help", "resizable=1"); helpWindow.focus(); } function showComment() { if( isSymphBook() ) location=symphDir+'intro-'+agniBook+'.htm'; } function originalLoaded() { updateOrigSelector(); window.document.title = a.document.title; updateGlossary(); } function z() { a.document.write(''); originalLoaded(); } function r() { a.document.write(''); originalLoaded(); } //-->