//JavaScript cStartup.js

Update="25-Feb-2010";
Yrsol="7 ";
Findver="10.1";
if (Alias=="") {Alias=FName;}

Bible=0; DocuT=0; IndeX=0; InfoS=0; Train=0; QuizU=0; Aptja=0; Series=0;
List1=0; List2=0; List3=0; List4=0; List5=0; List6=0; List7=0; List8=0; List9=0;
Liste=0; Listg=0; Listh=0; Listi=0; Listj=0; Listk=0; Listp=0; Listr=0; Listt=0; Listw=0; Listx=0;

FNI=new Array(); 
        
FNI[00]=new Array("SCMnl-e-e-Website Manual", "list1",  "ctrlscripts","structure","splittoparts","printv","finder","dbconcepts","annotations","stylesheets","sidebar","headers","kanga","pointheads","dotpoints", "jumps","keys","gallery","snippets","numbers","aptjalist","qboxquiz","crossword","qboxmulti","qboxexer","qboxsimple", "txtboxes","outlinebox","skeleton","diary06","diary07","diary08","diary09","pagetasks","topiclists","greek","loops","watermarks");
SCMnl=(FNI[00].length)-1; DocuT+=SCMnl; Liste+=SCMnl; 

FNI[01]=new Array("GPlan-1-f-Plan of Salvation","113|11d", "114|11e|11f","115|11g","00j|00k","116|11h|11i","117|11m|11n","118|11j|11k", "996|99a");
GPlan=(FNI[01].length)-1; Bible+=GPlan; List1+=GPlan; Series++;

FNI[02]=new Array("Magni-1-f-Magnificent Promises","300|30c", "301|30d","302","303","304","305","472");
Magni=(FNI[02].length)-1; Bible+=Magni; List1+=Magni; Series++;

FNI[03]=new Array("MustD-1-f-What I Must Do","956", "699","095","218","021|02a","219","220","094","096","582", "064","028","02b|02c|02d","046","459","260","496");
MustD=(FNI[03].length)-1; Bible+=MustD; List1+=MustD; Series++;

FNI[04]=new Array("Faith-x-f-From Faith to Faith","101", "102","103","104","105","106");
Faith=(FNI[04].length)-1; Bible+=Faith; Listx+=Faith; Series++;

FNI[05]=new Array("Glory-1-f-We Have Seen His Glory","107|10k|10m*","11a", "108|10n","109|10o|10p","110","111","112");
Glory=(FNI[05].length)-1; Bible+=Glory; List1+=Glory; Series++;

FNI[06]=new Array("TrueC-8-f-Search For the True Church","186","19a",  "187","188","189","190|19b|19c*","191","098","501","215","354","473","844");
TrueC=(FNI[06].length)-1; Bible+=TrueC; List8+=TrueC; Series++; 

FNI[07]=new Array("SoulJ-J-f-The Soul","73e", "730","900","734","733", "017","735","736","737","991","731","732","990","497","392","73c","370","73d","093","092","73a","030","73b", "089","091","958","221","957","393","256");
SoulJ=(FNI[07].length)-2; Bible+=SoulJ;  List1+=5; Listj+=SoulJ; Series++;

FNI[08]=new Array("Price-2-f-Five Priceless Things","970", "971","97a","972","97b","973","97c","974","97d","975","97e");
Price=(FNI[08].length)-1; Bible+=Price; List2+=Price; Series++;

FNI[09]=new Array("Heart-2-f-Jesus Changed My Heart","119|11b|11c", "120|12j|12k","121|12e|12f","122|12g","123|12h","124|12i");
Heart=(FNI[09].length)-1; Bible+=Heart; List2+=Heart; Series++;

FNI[10]=new Array("Light-2-f-Spiritual Enlightenment","025", "500","026","013","058","011","049","04a", "012","063","276","261","502","531","550","377","24g","351");
Light=(FNI[10].length)-1; Bible+=Light; List2+=Light; Series++;

FNI[11]=new Array("PProv-2-f-Prayer and Providence","150|15d", "151","152","153","154","155|15a|15b|15c", "246","016","504","930","93a","93b","381","93c","484","455","406","382","367");
PProv=(FNI[11].length)-1; Bible+=PProv; List2+=PProv; Series++;

FNI[12]=new Array("Revln-V-f-Revelation the Book","156", "600","743","576","920","478","824","489","744","157", "918","569","745","568",   "570","747","748","571","572","573","749","700|70i","574","800","575","376","913","00a","00b","00c","158", "577", "366","60b","00f","00e","919","00g","914", "915","916","917","868","869","00h","00i","16a","16b","746","159","160","60c","60a","60d","161","60e|60j|60k*","60f","00d", "60g","60h","491","279","10e","10a","10b","10c|10h","10d|10i|10f|10j|10g*");
Revln=(FNI[12].length)-1; Bible+=Revln; List8+=6; Listr+=Revln; Series++;

FNI[13]=new Array("ICanP-8-f-I Can!","125", "126|12a|12b|12c|12d","127","128","129","481","084","467","468","053","831","798","799");
ICanP=(FNI[13].length)-1; Bible+=(ICanP-2); QuizU+=2; List8+=ICanP;

FNI[14]=new Array("PaulA-2-f-Paul That Amazing Man","283", "226","527","931","284","858","456","90a","90b","90c","90d","90e");
PaulA=(FNI[14].length)-1; Bible+=PaulA; List2+=PaulA; Series++;

FNI[15]=new Array("SureS-3-f-Blessed Assurance","001", "062","243","050","503","581","583","282","337","34a","066","065|06a","378","388","061","010","052", "080","380|38a*","477");
SureS=(FNI[15].length)-1; Bible+=SureS; List3+=SureS; Series++; 

FNI[16]=new Array("Words-3-f-Wonderful Words","20e", "198","20f","20g","20h","20i","199","20a","20b","20c","20d","200","20j","201","202","20k","203");
Words=(FNI[16].length)-2; Bible+=Words; List3+=7; Listw+=Words; Series++; IndeX+=1;//20e

FNI[17]=new Array("Tulip-3-f-Tulip the Five Points of Calvinism","955", "168","169","170","171","172", "173","018","003","232","530","237","338","339");
Tulip=(FNI[17].length)-1; Bible+=Tulip; List3+=Tulip; Series++;

FNI[18]=new Array("SealG-3-f-The Seal of God","192", "859","925","865","926","867","193","927","196","954","194","195","821","829","830","197");
SealG=(FNI[18].length)-1; Bible+=SealG; List3+=SealG; Series++;

FNI[19]=new Array("LDays-k-f-The Last Days","131", "132","133","134","135","136","997","385","584","436","386");
LDays=(FNI[19].length)-1; Bible+=LDays; Listk+=LDays; Series++;

FNI[20]=new Array("James-3-f-The Letter of James","512", "513","514","515","516");
James=(FNI[20].length)-1; Bible+=James; List3+=James; Series++;

FNI[21]=new Array("Three-4-f-Faith Hope Love These Three","180|18a|18b", "181","182","183|18c|18d","184","185");
Three=(FNI[21].length)-1; Bible+=Three; List4+=Three; Series++;

FNI[22]=new Array("Jhn1L-x-f-First John","542", "543","544","545","546","547","548","549");
Jhn1L=(FNI[22].length)-1; Bible+=Jhn1L; Listx+=Jhn1L; Series++;
 
FNI[23]=new Array("OldTm-4-f-The Old Testament","138", "139","140","141","142","143","457","015","809","041","040","986","272","238","057","909","495");
OldTm=(FNI[23].length)-1; Bible+=OldTm; List4+=OldTm; Series++;

FNI[24]=new Array("SinLg-4-f-Sin and Legalism","174|17a", "985|98d","175","176","177","178","179","086","371","223","812","345");
SinLg=(FNI[24].length)-1; Bible+=SinLg; List4+=SinLg; Series++;

FNI[25]=new Array("Warns-4-f-Warnings","352", "998","977","077","826","043","044","348","087");
Warns=(FNI[25].length)-1; Bible+=Warns; List4+=Warns; Series++;

FNI[26]=new Array("WhyBe-4-f-Why Be Religious?","162", "163","164","165","166","167");
WhyBe=(FNI[26].length)-1; Bible+=WhyBe; List4+=WhyBe; Series++;

FNI[27]=new Array("Galat-5-f-Paul’s Letter to the Galatians","204", "205","980","21a","981","208","21b","206", "207","209","210");
Galat=(FNI[27].length)-1; Bible+=Galat; List5+=Galat; Series++;

FNI[28]=new Array("WoMan-5-f-Man and Woman","989|98a|98b|98c", "394","395","447","333","211","982");
WoMan=(FNI[28].length)-1; Bible+=WoMan; List5+=WoMan; Series++;

FNI[29]=new Array("Authy-5-f-Scriptural Authority","479","851", "940","953","535","537","538","853","85a|85b","488","993","069","951","534", "856","912","490","536","492","100","959","474","823","95a","250","239","421","994","976");
Authy=(FNI[29].length)-1; Bible+=Authy; List5+=Authy; Series++;

FNI[30]=new Array("Outre-5-f-Outreach","144", "14a","145","146","147","148","149","14b");
Outre=(FNI[30].length)-1; Bible+=Outre; List5+=Outre; Series++;

FNI[31]=new Array("Pet1L-5-f-First Peter","960", "961","825","962","840","963","738","742","964","739","965","740","966","741");
Pet1L=(FNI[31].length)-1; Bible+=Pet1L; List5+=Pet1L; Series++;

FNI[32]=new Array("Mirac-x-f-Miracles","365", "461","244","866","860","861", "862","863","864","466|46a|46b","078","213","86a");
Mirac=(FNI[32].length)-1; Bible+=Mirac; Listx+=Mirac; Series++;

FNI[33]=new Array("Minis-6-f-Ministry","000", "995","047","023","234","068","921","850","306","336","983","984");
Minis=(FNI[33].length)-1; Bible+=Minis; List6+=Minis; Series++;

FNI[34]=new Array("Elder-x-f-Elders in Australia","681", "682","688","693","690","687", "684","691","683","685","689","680");
Elder=(FNI[34].length)-1; Bible+=Elder; Listx+=Elder; Series++;

FNI[35]=new Array("Tim1L-6-f-First Timothy","941", "94a","942","943","94b","944","945","94c","946", "947","94d","948","94e","949","94f","950");
Tim1L=(FNI[35].length)-1; Bible+=Tim1L; List6+=Tim1L; Series++;

FNI[36]=new Array("Train-6-f-Training","517",  "849","842","843","845","841","889","791","857", "518","846","792","890","878","485","793","879","898","847","794","899","790","848");
Train+=(FNI[36].length)-1; List6+=Train; Series++;

FNI[37]=new Array("Truth-6-f-Truth in Love","083", "229","268","269","270","271","214");
Truth=(FNI[37].length)-1; Bible+=Truth; List6+=Truth; Series++;

FNI[38]=new Array("Mount-7-f-Sermon on the Mount","551","717", "552","718","553","719","554","716","555","715","556","720","557","727","558","728","559","729","560","70a","561","70b", "562","70c","563","70d", "564","70e","565","70f","566","70g","567","70h");
Mount=(FNI[38].length)-1; Bible+=(Mount/2); QuizU+=(Mount/2); List7+=Mount; Series++;

FNI[39]=new Array("Hebrw-9-f-Hebrews","310", "870","408","309","32a","313","32b","314","315","316","32c","317","318","319","320","321","509|50d|50e", "322","32d","231","258","30a");
Hebrw=(FNI[39].length)-2; Bible+=Hebrw; List9+=5; Listh+=Hebrw; Series++; IndeX+=1;//30a

FNI[40]=new Array("Remem-x-f-Remember","424", "425","426","427","428","429", "430","431","432","442");
Remem=(FNI[40].length)-1; Bible+=Remem; Listx+=Remem; Series++;

FNI[41]=new Array("Parab-7-f-Parables That Jesus Told","660", "661","662","663", "664","665","666","667","668","669","670","671","672","673", "674","675","676","677","678","679","880","881","882","88a");
Parab=(FNI[41].length)-2; Bible+=Parab; List7+=9; Listp+=Parab; Series++; IndeX+=1//660

FNI[42]=new Array("QuizU-7-f-Bible Quiz","701", "702","703","704","705","706","707","708","709","710","711","712","714","713","721","722","723","724","725");
QuizU+=(FNI[42].length)-1; Crswd=5; List7+=QuizU; Series++; 

FNI[43]=new Array("Start-4-f-Study Starters","405", "767","257","090","523","50c");
Start=(FNI[43].length)-1; Bible+=Start; List4+=Start; Series++;

FNI[44]=new Array("TIsrl-X-f-Times of Israel","601|60o|60p","602|60q|60r","60i","603|60m|60n","604|60s","605|61a","606|61b|61c|61d",  "607|60u","608|60v","609|60t","610|61g","611|61h|61i","612|61j|61k","613|61m","614|61n","615|61o|61p","616","617","618","619", "620","621","622","623","624|62a","625","626","627|61e|61f","628","629","630","631","632", "633","634","635","636","637","638","639","640","641","642","643","644|64a","645", "646","647","648","649","650","651","652");
TIsrl=(FNI[44].length)-1; Bible+=TIsrl; List4+=1; Listt+=TIsrl; Series++;

FNI[45]=new Array("SvEms-3-f-Seven Ems of Spiritual Understanding","307",  "871","872","873","874","875","876", "877");
SvEms=(FNI[45].length)-1; Bible+=SvEms; List3+=SvEms; Series++;

FNI[46]=new Array("IsaGl-8-f-Isaiah Gleanings","598","59a", "591","59b","298","599","903","904","597","905","906","585|58b","907","908","910","586","886","911","922","923","458", "924","055","590","592","494","593","594|59c","493","595","596","88b","587","588|58a","589","883", "884","885","887","888","88c","342","30b");
IsaGl=(FNI[46].length)-2; Bible+=IsaGl; List8+=6; Listi+=IsaGl; Series++; IndeX+=1;//30b    //298 map

FNI[47]=new Array("Alpha-A-b-Alpha Indexes","indexA", "indexB","indexC","indexD","indexE","indexF","indexG","indexH","indexI","indexJ","indexL","indexM","indexN","indexO","indexP","indexR","indexS","indexT","indexU","indexW");
Alpha=(FNI[47].length)-1; IndeX+=Alpha;

FNI[48]=new Array("Topic-C-d-Topical Listings","topics", "list1","list2","list3","list4","list5","list6","list7","list8","list9","listk","listx","indexTOI","indexREV","indexJOS","charts","maps", "faq1");
Topic=(FNI[48].length)-1; IndeX+=Topic;

FNI[49]=new Array("Mains-M-d-Main Service pages","home", "hub","search","alpha","contents","thread","glossary","deep","abbrev","help","info","new");
Mains=(FNI[49].length)-1;  IndeX+=(Mains-2); InfoS+=2; //index.htm not included

FNI[50]=new Array("InfoS-I-d-Information pages","copyrt", "author","bdalechurch","bundychurch","til","mission","simply","adopt","ebenezer", "contact","checkers","video","report","childers","paypaldonate","thankyou","mobile");
InfoS+=(FNI[50].length)-1; IndeX+=1;//report

FNI[51]=new Array("TreeT-M-d-Tree Top","treetop");
TreeT=(FNI[51].length)-1; IndeX+=TreeT;

FNI[52]=new Array("Discp-9-f-Disciples of Christ","412", "019","027","486","039","081","383","50a","50b");
Discp=(FNI[52].length)-1; Bible+=Discp; List9+=Discp; Series++;

FNI[53]=new Array("PreMl-k-f-Premillennialism","130", "324","327","325","979", "323","328","329","326","384","978","988","358");
PreMl=(FNI[53].length)-1; Bible+=PreMl; Listk+=PreMl; Series++;

FNI[54]=new Array("AD70p-k-f-Preterism AD70","987", "353","137","475","533");
AD70p=(FNI[54].length)-1; Bible+=AD70p; Listk+=AD70p; Series++;

FNI[55]=new Array("SvInf-6-f-Seven Good Influences","891", "892","893","894","895","896","897");
SvInf=(FNI[55].length)-1; Bible+=SvInf; List6+=SvInf; Series++;

FNI[56]=new Array("Jesus-1-f-Jesus","288","28c|28d", "227|22a","020|02e","014|01a|01b","008","036","275","511","510|51a|51b","291|29a","368","287","28a","28b","280","480", "937","938","292","274","289|28e","259");
Jesus=(FNI[56].length)-1; Bible+=Jesus; List1+=Jesus; Series++;

FNI[57]=new Array("ActsF-6-f-Acts Facts","750|75a|75b", "757","751","752","753","754","755","756","758","759","760","761","762","763", "764","765","005","004","006","007","768");
ActsF=(FNI[57].length)-1; Bible+=ActsF; List6+=ActsF; Series++;

FNI[58]=new Array("OpenD-6-f-Open Doors","440", "433","434","435");
OpenD=(FNI[58].length)-1; Bible+=OpenD; List6+=OpenD; Series++;

FNI[59]=new Array("Ths1L-9-f-First Thessalonians","578","524","579","525","526");
Ths1L=(FNI[59].length)-1; Bible+=Ths1L; List9+=Ths1L; Series++;

FNI[60]=new Array("MTrib-7-f-Through Much Tribulation","295", "296","056","297","045","460");
MTrib=(FNI[60].length)-1; Bible+=MTrib; List7+=MTrib; Series++;

FNI[61]=new Array("Pet2L-5-f-Second Peter","031", "032","033","034","035","414","415","416|41a|41b","417|41c","418|41d|41e","448");
Pet2L=(FNI[61].length)-1; Bible+=Pet2L; List5+=Pet2L; Series++;

FNI[62]=new Array("Forgv-3-f-Forgiveness","410", "048|04b|04c","277","413","419","042","389","067","933|93d","522");
Forgv=(FNI[62].length)-1; Bible+=Forgv; List3+=Forgv; Series++;

FNI[63]=new Array("Respn-2-f-Responsibilities","263", "810","811","528","580","439","423","438","228");
Respn=(FNI[63].length)-1; Bible+=Respn; List2+=Respn; Series++;

FNI[64]=new Array("UpLaw-2-f-Upholding Law","002", "009","022","420","029","929");
UpLaw=(FNI[64].length)-1; Bible+=UpLaw; List2+=UpLaw; Series++;

FNI[65]=new Array("Money-4-f-Money","071", "072","073");
Money=(FNI[65].length)-1; Bible+=Money; List4+=Money; Series++;

FNI[66]=new Array("InGod-9-f-Involvement with God","992", "387","088","379","051","505","262","532","212","343","349|34b");
InGod=(FNI[66].length)-1; Bible+=InGod; List9+=InGod; Series++;

FNI[67]=new Array("GenFa-4-f-Genuine Faith","487", "075","038","508","085","968","024","967","060","827","346");
GenFa=(FNI[67].length)-1; Bible+=GenFa; List4+=GenFa; Series++;

FNI[68]=new Array("ChaCh-9-f-Challenge and Change","251", "483","308","059","469","037","082","822","225","360","341","902","222","217","441","463","332","33a");
ChaCh=(FNI[68].length)-1; Bible+=ChaCh; List9+=ChaCh; Series++;

FNI[69]=new Array("Abstn-2-f-Abstinence","240", "242","245","249","252","901","253","054");
Abstn=(FNI[69].length)-1; Bible+=Abstn; List2+=Abstn; Series++;

FNI[70]=new Array("Dedic-9-f-Dead or Dedicated?","407", "070","074","076","079");
Dedic=(FNI[70].length)-1; Bible+=Dedic; List9+=Dedic; Series++;

FNI[71]=new Array("Ths2L-9-f-Second Thessalonians","097", "099","264","265","266");
Ths2L=(FNI[71].length)-1; Bible+=Ths2L; List9+=Ths2L; Series++;

FNI[72]=new Array("Thred-T-d-Threads","thread1","thread2");
Thred=(FNI[72].length)-1; IndeX+=Thred;

FNI[73]=new Array("DeepE-D-d-Deep End","deep1","deep2");//these use alias "ddeep.htm"
DeepE=(FNI[73].length)-1; IndeX+=DeepE;

FNI[74]=new Array("SrchF-S-d-Search","srchres","keywords","note","annotations");
SrchF=(FNI[74].length)-1; IndeX+=2;  InfoS+=2;

FNI[75]=new Array("MiscX-H-d-Misc supplements","service", "digest", "sitemap","struct","aptja","printv","links");
MiscX=(FNI[75].length)-1; InfoS+=(MiscX-2); IndeX+=2;

FNI[76]=new Array("Books-B-d-Bible Books","books");
Books=(FNI[76].length)-1; IndeX+=Books;

FNI[77]=new Array("UAids-U-d-User Tips","srchtips");
UAids=(FNI[77].length)-1; InfoS+=UAids;

FNI[78]=new Array("Diary-N-d-Diary","diary1","manual");
Diary=(FNI[78].length)-1; DocuT+=Diary;

FNI[79]=new Array("Defns-G-f-Definitions","657", "655","653","658","654","656","776","692","694","695","697","698","224","771","772", "686","769","773","774","770","775","299","216","696","777","498","778","779", "780","782","781","659","783","784"); 
Defns=(FNI[79].length)-1; Bible+=Defns; Listg+=Defns; Series++;

FNI[80]=new Array("NwCov-9-f-A New Covenant","451","452|45b","453","454");
NwCov=(FNI[80].length)-1; Bible+=NwCov; List9+=NwCov; Series++;

FNI[81]=new Array("Patie-x-f-Patience","801", "802","803","804","805","806","807"); 
Patie=(FNI[81].length)-1; Bible+=Patie; Listx+=Patie; Series++;

FNI[82]=new Array("Repor-R-d-Ministry Reports","bundyspeak", "bundyspeak2", "report2003","report2004","report2005","report2006","report2007","report2008","report2009","report2010");
Repor=(FNI[82].length)-1; InfoS+=Repor; Series++; 

FNI[83]=new Array("Think-x-f-Thinking Through Romans","999", "311","312","506","507","521","832","833","834","828","836","835","837","838"); 
Think=(FNI[83].length)-1; Bible+=Think; Listx+=Think; Series++;

FNI[84]=new Array("HardP-x-f-Hard Passages","273"); 
HardP=(FNI[84].length)-1; Bible+=HardP; Listx+=HardP; Series++;

FNI[85]=new Array("Order-k-f-The Ancient Order","934", "935","969","932","936","939"); 
Order=(FNI[85].length)-1; Bible+=Order; Listk+=Order; Series++;

FNI[86]=new Array("Wellb-k-f-Spiritual Wellbeing","813", "814","815","816","817","818","819","820"); 
Wellb=(FNI[86].length)-1; Bible+=Wellb; Listk+=Wellb; Series++;

FNI[87]=new Array("Notes-k-f-Supplementary Notes","286", "766","519","470|47a"); 
Notes=(FNI[87].length)-1; Bible+=Notes; Listk+=Notes; Series++;

FNI[88]=new Array("Happy-k-f-How To Be Truly Happy","24a", "24b","24c","24d","24e","241"); 
Happy=(FNI[88].length)-1; Bible+=Happy; Listk+=Happy; Series++;

FNI[89]=new Array("Aptja-P-a-Aptja Mobile Phone","bibletheme", "bibleparts","defamen","enemies","glorychart","godangry","godhears","ignored","isjesusgod","lifebegin","lifehard","light", "moreamen","pray7","prayercha","salvnmeans","seekpeace","selfesteem","sevents","shortlife","sixsixsix","sixsteps", "sorry","suresalvn","3kinds","whoownslife"); 
Aptja+=(FNI[89].length)-1; Aptja+=13;//add service pages

/***TALLY***/

CharTally=CountChar(FNI.toString(),",","|","*");
Adjust=FNI.length; CharTally[0]-=Adjust; CharTally[1]-=Adjust;
Tally=Bible+DocuT+IndeX+InfoS+Train+QuizU+(Aptja-13)-1;//should equal CharTally[1]
SiBiT=CharTally[1]-Aptja;
StdyT=Bible+QuizU+Train;
ThrdT=GetThreadArray("Length");
TopcT=ThrdT+Series;
SvceT=IndeX+InfoS+DocuT; Suppl=SvceT-Mains;
Lists=IndeX; InfoT=InfoS;
Questions=(400);

Stats='<span class="green small italic"><b>simplybible.com</b><br />&nbsp;<br />'+Yrsol+'years on line<br /> Updated '+Update+'<br />'+StdyT+' Studies<br />&nbsp;&nbsp;'+Bible+' Bible lessons<br />'+SiBiT+' total pages<br/>&nbsp;<br /><b>www.aptja.mobi</b><br />&nbsp;<br />'+Aptja+' aptja pages.</span>'

/***INITIALISE GLOBAL KEYS***/

CLR=""; 
KEY = new Array() 
for (i=0; i<=100; i++) {KEY[i]="";} //next i
KEY[19]=FName; KEY[88]=Sidebar;
new SliceOuts();
function SliceOuts() {
KEY[18]=KEY[19].slice(0,1);//file init
i=KEY[19].lastIndexOf(".");
KEY[17]=KEY[19].slice(i);//file extension eg .htm
KEY[00]=KEY[19].slice(1,i);//stem
KEY[87]=Alias.slice(1,i); if (KEY[87]=="ndex") {KEY[87]="index";}
}//end SliceOuts

/***MAKE FNA FROM SEARCH OF FNI***/
new MakeFNArray()
function MakeFNArray() {
//Line: declare arrays, declare indexes, loop controls, counters, begin row loop
FNA=new Array(); var S=new Array(3);//splits 1=SCODE, 2=LISTPGE, 3=FNINIT
FNIi=0; var FNAi=0;//row, column
var r=FNI.length-1,c=0,t=0,x=0,y=0;
for (x=0; t==0; x++){ 
//Line:  split zeroth column to keys 01 series code, 83 list page num, 00 file initial
S[0]=FNI[x][0].slice(0,5);
S[1]=FNI[x][0].slice(6,7);
S[2]=FNI[x][0].slice(8,9);
S[3]=FNI[x][0].slice(10,FNI[x][0].length);
//Line: test filename initial, set loop limit prior to loop, begin column loop, test file name match
if (S[2]== KEY[18]) {
c=FNI[x].length-1;
for (y=1; y<=c; y++){
Parts=Slice(FNI[x][y],"|");
pipe=FNI[x][y].indexOf("|");
if (pipe>=0) {FNI[x][y]=FNI[x][y].slice(0,pipe);}
if (FNI[x][y]==KEY[00]) {
KEY[16]=Parts;
KEY[20]=FNI[x];//entire File Name Array (FNA)
KEY[20][KEY[20].length]=KEY[20][1];//repeat 1st datum at end
KEY[20][0]=KEY[20][KEY[20].length-2];//repeat penultimate datum at beginning
KEY[82]=S;//the zeroth slot unsplit string
KEY[81]=y;//the position of the page in FNA
KEY[91]=KEY[20][y+1]; if (KEY[18]=="f") {KEY[91]=KEY[20][y+1].slice(0,3);}
KEY[75]=KEY[20][y-1]; if (KEY[18]=="f") {KEY[75]=KEY[20][y-1].slice(0,3);}
KEY[80]=x;//the row in File Name Index (FNI)
KEY[84]=c;//number of files in series
KEY[83]=S[1];//list page number
KEY[01]=S[0];//Series code (SCODE)
KEY[90]=S[3];
//Closures
t=1;//row loop abort
}//endif filename match
}//endif filename initial
}//next y
}//next x
}//end MakeFNArray function

/***SIDEBAR SWITCH***/

//Lines: default, user switches off, user switches on
var Sidebar=ResetBar(FName,"OFF");
if (location.search.indexOf("SidebarOFF")>=0) {Sidebar="OFF"; CLR=""}
if (location.search.indexOf("SidebarON") >=0) {Sidebar="ON"; CLR=""}
if (FName=="dprintv.htm") {Sidebar="OFF";}
//See Kanga and Sidebar functions in library and KEY[88] 

/***cMINOR***/

var cMinor="<script language='JavaScript' src='c"+KEY[01]+".js'></script>";

/***END OF SCRIPT (cStartup.js)***/

