//JavaScript cStartup.js

Update="14-Dec-2011";
Yrsol="9";
Findver="12.1";
NumberOfQuizQuestions="461";
if (Alias=="") {Alias=FName;}

CLR=""; Snippets=""; Psimple="OFF"; Printpv="OFF";
if (location.search.indexOf("PsimpleON") >=0) {Psimple="ON"; PageModeInform+="Simple mode";}
if (location.search.indexOf("PrintpvON") >=0) {Printpv="ON"; Psimple="ON"; PageModeInform+="Print preview"}

/***SELECT STYLE SHEET***/ 
//The order of these writes is important; latter overrides former.
 if (Printpv=="OFF" && Psimple=="OFF")
{
document.write('<link rel="stylesheet" type="text/css" href="style008.css" media="screen" />'); document.write('<link rel="stylesheet" type="text/css" href="style000.css" media="screen" />');
document.write('<link rel="stylesheet" type="text/css" href="style00'+Prange+'.css" media="screen" />');
}

if (Psimple=="ON" && Printpv=="OFF")
{
document.write('<link rel="stylesheet" type="text/css" href="style00S.css" media="screen" />');
}

if (Printpv=="ON")
{
document.write('<link rel="stylesheet" type="text/css" href="style00P.css" media="screen" />');
}

document.write('<link rel="stylesheet" type="text/css" href="style009.css" media="print" />'); 

Tally=0; Bible=0; DocuT=0; IndeX=0; InfoS=0; InfoT=0; Train=0; QuizU=0; QuizT=0; XWord=0; Aptja=0; Series=0; PartX=0; PartT=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[0]=new Array("SCMnl-e-e-Website Manual");
SCMnl=(FNI[0].length)-1; DocuT+=SCMnl;

FNI[1]=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[1].length)-1; Aptja+=13;//add service pages

FNI[2]=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");
Tally+=Alpha=(FNI[2].length)-1; IndeX+=Alpha;

FNI[3]=new Array("Topic-C-d-Topical Listings", "topics", "list1", "indexGPlan", "indexMagni", "indexGlory", "indexJesus", "indexMustD", "indexSoulJ", "indexSoulX", "indexRomBk", "list2", "indexPrice", "indexHeart", "indexLight", "indexRespn", "indexPProv", "indexPaulA", "indexUpLaw", "indexAbstn", "list3", "indexSureS", "indexForgv", "indexWords", "indexWordX", "indexJames", "indexTulip", "indexSealG", "indexSvEms", "list4", "indexThree", "indexWhyBe", "indexOldTm", "indexStart", "indexGenFa", "indexMoney", "indexSinLg", "indexWarns", "list5", "indexGalat", "indexWoMan", "indexOutre", "indexAuthy", "indexPet1L", "indexPet2L", "list6", "indexActsF", "indexSvInf", "indexMinis", "indexTim1L", "indexTrain", "indexTruth", "list7", "indexMount", "indexParab", "indexQuizU", "indexXWord", "indexMTrib", "list8", "indexRevln", "indexRevTr", "indexRevJu", "indexRevHv", "indexTrueC", "indexIsaGl", "indexIsaOu", "indexIsaLs", "indexICanP", "list9", "indexInGod", "indexChaCh", "indexHebrw", "indexThs1L", "indexThs2L", "indexDiscp", "indexDedic", "indexNwCov", "listk", "indexLDays", "indexPreMl", "indexAD70p", "indexOrder", "indexWellb", "indexHappy", "indexFullC", "indexNotes", "listx", "indexThink", "indexJhn1L", "indexHardP", "indexElder", "indexFaith", "indexMirac", "indexRemem", "indexPatie", "indexCluLD", "indexCluJC", "indexCluGP", "indexCluLI", "indexTOI", "indexREV", "indexJOS", "charts", "maps", "faq1", "faq2");
Tally+=Topic=(FNI[3].length)-1; IndeX+=Topic;

FNI[4]=new Array("Mains-M-d-Main Service pages", "home", "hub", "search", "alpha", "contents", "thread", "glossary", "deep", "abbrev", "help", "info", "new", "notfound");
//NOTE: positions of home, new, and notfound cannot be changed
Tally+=Mains=(FNI[4].length)-1; IndeX+=(Mains-2); InfoT+=2;

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

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

FNI[7]=new Array("Thred-T-d-Threads", "thread1", "thread2", "threadapostasy", "threadblood", "threadcolossians", "threadcross", "threaddavid", "threaddeath", "threadeternallife", "threadfaith", "threadgospel", "threadparaclete", "threadjoy", "threadjustification", "threadkingdom", "threadadvent", "threadworks", "threadworship", "threadattitude", "threadbaptism", "threadcovenant", "threadgrace", "threadhope", "threadlaw", "threadlove", "threadmelchizedek", "threadministry", "threadprayer", "threadprophecy", "threadsacrifice", "threadsalvation", "threadselfimage", "threadsin", "threadsuffering");
Tally+=Thred=(FNI[7].length)-1; IndeX+=Thred;

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

FNI[9]=new Array("SrchF-S-d-SiFi Robot Clerk", "srchres", "keywords", "note", "annotations");
Tally+=SrchF=(FNI[9].length)-1; IndeX+=SrchF-2;  InfoT+=2;

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

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

FNI[12]=new Array("UAids-U-d-User Tips", "srchtips", "pagestates", "struct");
Tally+=UAids=(FNI[12].length)-1; InfoT+=UAids;

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

FNI[14]=new Array("Repor-R-d-Ministry Reports", "bundyspeak", "bundyspeak2", "report2003", "report2004", "report2005", "report2006", "report2007", "report2008", "report2009", "report2010", "r11Q1", "r11Q2", "r11Q3","r11Q4");
Tally+=Repor=(FNI[14].length)-1; InfoT+=Repor;

FNI[15]=new Array("QuizU-c-f-Bible Quizzes", "701", "702", "703", "704", "705", "706", "707", "708", "709", "710", "711", "712", "714", "713");
Tally+=QuizU=(FNI[15].length)-1; QuizT+=QuizU;

FNI[16]=new Array("XWord-c-f-Bible Crosswords", "721", "722", "723", "724", "725");
Tally+=XWord=(FNI[16].length)-1; Crswd=XWord; QuizT+=XWord;

FNI[17]=new Array("Train-c-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", "390");
Tally+=Train=(FNI[17].length)-1; Bible+=2; Train-=2;

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

FNI[19]=new Array("LDays-c-f-The Last Days", "131", "132", "133", "134", "13a", "135", "13b", "136", "13c", "997", "385", "38b", "38c", "38d", "584", "436", "386");
Tally+=LDays=(FNI[19].length)-1; Bible+=LDays; Series++;

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

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

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

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

FNI[25]=new Array("Warns-c-f-Warnings", "352", "998", "977", "077", "826", "82a", "043", "044", "04d", "348", "087", "446");
Tally+=Warns=(FNI[25].length)-1; Bible+=Warns; Series++;

FNI[26]=new Array("WhyBe-c-f-Why Be Religious?", "16c", "162", "163|16d", "164", "165|16e", "166", "167");
Tally+=WhyBe=(FNI[26].length)-1; Bible+=WhyBe; Series++;

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

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

FNI[29]=new Array("Authy-c-f-Scriptural Authority", "479", "851", "940", "953", "535|53b", "537|53c", "538", "539", "53a", "853", "85a|85b", "488|85d", "993|85c", "069", "951", "534|85e", "856|85g", "912", "490", "536", "492|85h", "100|10q", "959", "474", "823", "95a", "250|85k", "239", "421", "994|85m", "976|85p", "375");
Tally+=Authy=(FNI[29].length)-1; Bible+=Authy; Series++;

FNI[30]=new Array("Outre-c-f-Outreach", "144", "14a", "145", "146", "147", "148", "149", "14b","440", "433", "434", "435");
Tally+=Outre=(FNI[30].length)-1; Bible+=Outre; Series++;

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

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

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

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

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

FNI[36]=new Array("Tulip-c-f-Tulip the Five Points of Calvinism", "955", "168|444", "169|437", "170", "171", "172", "173", "018", "003|00m", "232", "530|53m", "237", "338", "339");
Tally+=Tulip=(FNI[36].length)-1; Bible+=Tulip; Series++;

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

FNI[38]=new Array("Mount-c-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");
Tally+=Mount=(FNI[38].length)-1; Bible+=(Mount/2); QuizT+=(Mount/2); Series++;

FNI[39]=new Array("Hebrw-c-f-Hebrews", "310", "870", "408", "309", "32a", "313", "32b", "314", "445", "315", "32f", "316", "32c", "317", "32g", "318", "32h", "319", "32i", "320", "32j", "321", "509", "322", "32d", "231", "258");
Tally+=Hebrw=(FNI[39].length)-1; Bible+=Hebrw; Series++;

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

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

FNI[42]=new Array("SureS-c-f-Blessed Assurance", "001", "062", "243", "050", "503", "581", "583", "282", "337", "34a", "066", "065|06a", "378", "388", "061", "010", "052", "080", "380", "477", "235","49x","29c");
Tally+=SureS=(FNI[42].length)-1; Bible+=SureS; Series++;

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

FNI[44]=new Array("TIsrl-X-f-Times of Israel", "601", "60o", "60p", "602", "60q", "60r", "60i", "603|60n", "604|60s", "605", "606|61b", "61c", "607|60u", "608|60v", "609|60t", "610|61g", "611|61h", "612|61k", "613|61m", "614|61n", "615|61p", "616|61s", "61t", "61r", "617|61a", "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");
Tally+=TIsrl=(FNI[44].length)-1; Bible+=TIsrl; Series++;

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

FNI[46]=new Array("IsaGl-c-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", "476", "88b", "587", "588|58a", "589", "883", "884", "885", "887", "888", "88c", "342");
Tally+=IsaGl=(FNI[46].length)-1; IsaGl-=1; IndeX+=1; Bible+=IsaGl; Series++; //298 map

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

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

FNI[49]=new Array("Faith-c-f-From Faith to Faith", "101|10w", "102|10s", "103", "347", "104|10t", "105|10u", "106|10v");
Tally+=Faith=(FNI[49].length)-1; Bible+=Faith; Series++;

FNI[50]=new Array("Glory-c-f-We Have Seen His Glory", "107|10k", "11a", "108", "109|10o", "110|11s", "111|11t", "112");
Tally+=Glory=(FNI[50].length)-1; Bible+=Glory; Series++;

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

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

FNI[53]=new Array("PreMl-c-f-Premillennialism", "32m", "130", "324", "443", "327|32e", "330", "325|396", "979|397", "323|32k", "328|32n", "329", "326", "32t", "384", "978", "988", "358", "449");
Tally+=PreMl=(FNI[53].length)-1; Bible+=PreMl; Series++;

FNI[54]=new Array("AD70p-c-f-Preterism AD70", "987", "353|35a", "137|35c", "475|35d", "533|35e");
Tally+=AD70p=(FNI[54].length)-1; Bible+=AD70p; Series++;

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

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

FNI[57]=new Array("ActsF-c-f-Acts Facts", "750", "757", "751", "752", "753", "754", "755", "756", "758", "759", "760", "761", "762", "763", "764", "765", "005", "004", "006", "007", "768","78b","78a","78c","78d","78e","78f","78g","78h","78i");
Tally+=ActsF=(FNI[57].length)-1; Bible+=ActsF; Series++;

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

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

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

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

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

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

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

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

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

FNI[67]=new Array("GenFa-c-f-Genuine Faith", "487", "075", "038", "508", "085", "968|96a", "024|02w", "967|96b", "060", "827", "346");
Tally+=GenFa=(FNI[67].length)-1; Bible+=GenFa; Series++;

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

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

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

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

FNI[72]=new Array("SoulJ-J-f-The Soul", "730", "900", "734", "733", "017", "735", "736", "737", "991", "731", "732", "990", "497", "392", "39p", "73c", "370", "73d", "093|09b", "092", "73a", "030", "73b", "089", "091", "958", "221", "957", "95b", "393", "256");
Tally+=SoulJ=(FNI[72].length)-1; SoulJ-=1; IndeX+=1; Bible+=SoulJ; Series++;

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

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

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

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

FNI[77]=new Array("Revln-V-f-Revelation the Book", "156", "600", "743", "576", "920", "478|529", "824", "489", "744", "157", "918", "569|540", "745", "568",   "570", "747", "748", "571|541", "572|839", "573|854", "749|855", "700|70i", "574", "800", "575", "376", "913", "00a", "00b", "00c", "158|928", "577", "366", "60b", "00f", "00e", "919|91a", "00g", "914", "915", "916", "952", "917", "868|86b", "869", "00h", "00i", "16a", "16b", "746", "159", "160", "355", "356", "60c", "357", "359", "361", "362", "363", "364", "374", "60a", "60d", "161", "369|36a", "372", "373", "60e|60j", "60f", "00d", "60g", "60h", "491", "279", "10e", "10a", "10b", "10c", "10h", "10d");
Tally+=Revln=(FNI[77].length)-1; Bible+=Revln; Series++;

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

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"); 
Tally+=Defns=(FNI[79].length)-1; Bible+=Defns; Series++;

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

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

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

FNI[83]=new Array("Think-c-f-Thinking Through Romans", "999", "230", "311|31a", "312", "506", "507|31b", "521|31c", "832", "833|31e", "834", "828", "836", "835", "837", "838"); 
Tally+=Think=(FNI[83].length)-1; Bible+=Think; Series++;

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

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

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

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

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

FNI[89]=new Array("FullC-c-f-Christ is All (Colossians)", "236", "247|23b", "248|23c", "254|23d", "255|23e", "293|23j", "294|23k", "267|23f", "278|23g", "281|23h", "285|23i");
Tally+=FullC=(FNI[89].length)-1; Bible+=FullC; Series++;

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

function FNIPipes(A)
{
var strg=A.toString(), s=strg.length, count=0;
for (i=0; i<=s; i++){test=strg.slice(i-1,i); if (test=="|"){count++;}}//next i
return count
}//end FNIPipes


/***TALLY***/

StdyT=Bible+QuizT+Train;
PartX=PartT=FNIPipes(FNI);
SiBiT=Tally+PartX;
ThrdT=GetThreadArray("Length");
TopcT=ThrdT+Series;
SvceT=IndeX+InfoT+DocuT; Suppl=SvceT-Mains;
Lists=IndeX;
Questions=(400);

Stats='<span class="green small italic"><b>simplybible.com</b>'+B2+Yrsol+' years on line'+B1+'Updated '+Update+B1+StdyT+' Studies'+B1+Bible+' Bible lessons'+B1+SiBiT+' Total pages'+B1;

/***INITIALISE GLOBAL KEYS***/

KEY = new Array() 
for (i=0; i<=120; i++) {KEY[i]="";} //next i

/***SET MORE GLOBAL VARIABLES***/
AnnotationsArray=new Array();
PhraseologyTracking="";
PhraeologyMonitorSwitch="1"
XrefsFromPhraseology="";
FnameFromPhraseology="";
BestLessonsArray="";
dlistNumber="";
SrchResIpicName="srchres";
FilenameInitial=FName.slice(0,1);                    
FilenameExtensionPos=FName.lastIndexOf(".");
FilenameExtension=FName.slice(FilenameExtensionPos);
  KEY[17]=FilenameExtension;//remove mid 2012 
FilenameStem=FName.slice(1,FilenameExtensionPos);
  KEY[0]=FilenameStem;// Remove mid 2012
AliasStem=Alias.slice(1,FilenameExtensionPos);
  KEY[87]=AliasStem; 
  if (Alias=="index.htm") {AliasStem="index";}


/***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 dlist num, 00 file initial
S[0]=FNI[x][0].slice(0,5); SeriesCode=S[0];//Series code (SCODE)
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]== FilenameInitial) {
c=SeriesTally=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]==FilenameStem) {
KEY[16]=Parts;
KEY[69]=KEY[16][KEY[16][0]]; if (KEY[69].indexOf("*")==3) {KEY[69]=KEY[69].slice(0,3)} else {KEY[69]=""}
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
NextPageStem=KEY[20][y+1];
  if (FilenameInitial=="f"){NextPageStem=KEY[20][y+1].slice(0,3);}
  if (SeriesCode=="TreeT") {NextPageStem="hub"};
  if (NextPageStem=="notfound") {NextPageStem="home";}
  KEY[91]=NextPageStem;//key expunged Oct 2011
PrevPageStem=KEY[20][y-1]; 
  if (FilenameInitial=="f"){PrevPageStem=KEY[20][y-1].slice(0,3);}
  if (SeriesCode=="TreeT") {PrevPageStem="hub"};
  if (PrevPageStem=="notfound") {PrevPageStem="new";}
  KEY[75]=PrevPageStem;//key expunged Oct 2011
KEY[80]=x;//the row in File Name Index (FNI)
dlistNumber=S[1];
    KEY[83]=dlistNumber//remove mid 2012

SeriesTitle=S[3]; KEY[90]=S[3];//remove KEY[90] end of 2011
//Closures
t=1;//row loop abort
}//endif filename match
}//endif filename initial
}//next y
}//next x
}//end MakeFNArray function

/***SIDEBAR SWITCH***/

var Sidebar=ResetBar(FName,"OFF");
if (location.search.indexOf("SidebarOFF")>=0) {Sidebar="OFF";}
if (location.search.indexOf("SidebarON") >=0) {Sidebar="ON";}
if (Prange<=3) {Sidebar="OFF";}
//See Kanga and Sidebar functions in library

/***cMINOR***/

var cMinor="<script language='JavaScript' src='c"+SeriesCode+".js'></script>";

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

