 
 // DECLARE NESTING LEVEL FOR ZB FOLDER
    var uplev = 1;

 // PRESENT SECTION (SET BY EACH PAGE)
    var thissect;
    var yr2005 = 1;
    var yr2004 = 2;
    var yr2003 = 3;
    var yr2002 = 4;
    var yr2001 = 5;
    var yr2000 = 6;
    var yr1999 = 7;
    var nearby = 8;

 // PRESENT PAGE WITHIN SECTION (SET BY EACH PAGE)
    var thispage = 0;

 // DECLARE ARRAYS FOR INFO ON EACH SECT^ION
    var firstpage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
    var finalpage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
    var numbpages = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
    var sectnames = new Array("","2005","2004","2003","2002","2001","2000","1999","and nearby");

 // CAPTURE LENGTH
    var firstsect = 1;
    var finalsect = 8;

 // DECLARE ARRAY OF PICTURE PAGES FOR ALL YEARS
    var pagelist = new Array();

 // INITIALIZE YEAR 2005
    firstpage[yr2005] = 0;
    pagelist[firstpage[yr2005] + 0]  = "ZB0502060704page.html";
    pagelist[firstpage[yr2005] + 1]  = "ZB0502060608page.html";
    pagelist[firstpage[yr2005] + 2]  = "ZB0502060504page.html";
    pagelist[firstpage[yr2005] + 3]  = "ZB0502060502page.html";
    pagelist[firstpage[yr2005] + 4]  = "ZB0502060404page.html";
    pagelist[firstpage[yr2005] + 5]  = "ZB0502060302page.html";
    pagelist[firstpage[yr2005] + 6]  = "ZB0502060208page.html";
    pagelist[firstpage[yr2005] + 7]  = "ZB0502060106page.html";
    pagelist[firstpage[yr2005] + 8]  = "ZB0502060102page.html";
    finalpage[yr2005] = firstpage[yr2005] + 8;
    numbpages[yr2005] = finalpage[yr2005] - firstpage[yr2005] + 1;
 // INITIALIZE YEAR 2004
    firstpage[yr2004] = finalpage[yr2005] + 1;
    pagelist[firstpage[yr2004] + 0]  = "ZB0407310707page.html";
    pagelist[firstpage[yr2004] + 1]  = "ZB0407310705page.html";
    pagelist[firstpage[yr2004] + 2]  = "ZB0407310702page.html";
    pagelist[firstpage[yr2004] + 3]  = "ZB0407310403page.html";
    pagelist[firstpage[yr2004] + 4]  = "ZB0407310106page.html";
    pagelist[firstpage[yr2004] + 5]  = "ZB0403281004page.html";
    pagelist[firstpage[yr2004] + 6]  = "ZB0403280402page.html";
    pagelist[firstpage[yr2004] + 7]  = "ZB0403280304page.html";
    pagelist[firstpage[yr2004] + 8]  = "ZB0403070908page.html";
    pagelist[firstpage[yr2004] + 9]  = "ZB0403070408page.html";
    pagelist[firstpage[yr2004] + 10] = "ZB0403070305page.html";
    pagelist[firstpage[yr2004] + 11] = "ZB0403010707page.html";
    pagelist[firstpage[yr2004] + 12] = "ZB0403010506page.html";
    pagelist[firstpage[yr2004] + 13] = "ZB0403010407page.html";
    pagelist[firstpage[yr2004] + 14] = "ZB0403010205page.html";
    pagelist[firstpage[yr2004] + 15] = "ZB0403010202page.html";
    pagelist[firstpage[yr2004] + 16] = "ZB0402230902page.html";
    pagelist[firstpage[yr2004] + 17] = "ZB0402230302page.html";
    finalpage[yr2004] = firstpage[yr2004] + 17;
    numbpages[yr2004] = finalpage[yr2004] - firstpage[yr2004] + 1;
 // INITIALIZE YEAR 2003
    firstpage[yr2003] = finalpage[yr2004] + 1;
    pagelist[firstpage[yr2003] + 0]  = "ZB0308120303page.html";
    pagelist[firstpage[yr2003] + 1]  = "ZB0308120104page.html";
    pagelist[firstpage[yr2003] + 2]  = "ZB0308120102page.html";
    pagelist[firstpage[yr2003] + 3]  = "ZB0303260306page.html";
    pagelist[firstpage[yr2003] + 4]  = "ZB0303260208page.html";
    pagelist[firstpage[yr2003] + 5]  = "ZB0303260104page.html";
    pagelist[firstpage[yr2003] + 6]  = "ZB0301110503page.html";
    pagelist[firstpage[yr2003] + 7]  = "ZB0301110501page.html";
    finalpage[yr2003] = firstpage[yr2003] + 7;
    numbpages[yr2003] = finalpage[yr2003] - firstpage[yr2003] + 1;
 // INITIALIZE YEAR 2002
    firstpage[yr2002] = finalpage[yr2003] + 1;
    pagelist[firstpage[yr2002] + 0]  = "ZB0212050803page.html";
    pagelist[firstpage[yr2002] + 1]  = "ZB0212050602page.html";
    pagelist[firstpage[yr2002] + 2]  = "ZB0212050204page.html";
    pagelist[firstpage[yr2002] + 3]  = "ZB0211130304page.html";
    pagelist[firstpage[yr2002] + 4]  = "ZB0211110302page.html";
    pagelist[firstpage[yr2002] + 5]  = "ZB0211110104page.html";
    pagelist[firstpage[yr2002] + 6]  = "ZB0211100804page.html";
    pagelist[firstpage[yr2002] + 7]  = "ZB0211100105page.html";
    pagelist[firstpage[yr2002] + 8]  = "ZB0211030604page.html";
    pagelist[firstpage[yr2002] + 9]  = "ZB0211030307page.html";
    pagelist[firstpage[yr2002] + 10] = "ZB0211030303page.html";
    pagelist[firstpage[yr2002] + 11] = "ZB0211030105page.html";
    pagelist[firstpage[yr2002] + 12] = "ZB0208211208page.html";
    pagelist[firstpage[yr2002] + 13] = "ZB0208211206page.html";
    pagelist[firstpage[yr2002] + 14] = "ZB0208211205page.html";
    pagelist[firstpage[yr2002] + 15] = "ZB0208211204page.html";
    pagelist[firstpage[yr2002] + 16] = "ZB0201220304page.html";
    finalpage[yr2002] = firstpage[yr2002] + 16;
    numbpages[yr2002] = finalpage[yr2002] - firstpage[yr2002] + 1;
 // INITIALIZE YEAR 2001
    firstpage[yr2001] = finalpage[yr2002] + 1;
    pagelist[firstpage[yr2001] + 0]  = "ZB0111260408page.html";
    pagelist[firstpage[yr2001] + 1]  = "ZB0111260303page.html";
    pagelist[firstpage[yr2001] + 2]  = "ZB0111260204page.html";
    pagelist[firstpage[yr2001] + 3]  = "ZB0111260201page.html";
    pagelist[firstpage[yr2001] + 4]  = "ZB0106170601page.html";
    pagelist[firstpage[yr2001] + 5]  = "ZB0106170202page.html";
    pagelist[firstpage[yr2001] + 6]  = "ZB0106170201page.html";
    pagelist[firstpage[yr2001] + 7]  = "ZB0106170106page.html";
    pagelist[firstpage[yr2001] + 8]  = "ZB0105210602page.html";
    pagelist[firstpage[yr2001] + 9]  = "ZB0105210506page.html";
    pagelist[firstpage[yr2001] + 10] = "ZB0105210306page.html";
    pagelist[firstpage[yr2001] + 11] = "ZB0105210104page.html";
    pagelist[firstpage[yr2001] + 12] = "ZB0105191402page.html";
    pagelist[firstpage[yr2001] + 13] = "ZB0105191107page.html";
    pagelist[firstpage[yr2001] + 14] = "ZB0105191003page.html";
    pagelist[firstpage[yr2001] + 15] = "ZB0105190608page.html";
    pagelist[firstpage[yr2001] + 16] = "ZB0105190508page.html";
    pagelist[firstpage[yr2001] + 17] = "ZB0105190501page.html";
    pagelist[firstpage[yr2001] + 18] = "ZB0105190205page.html";
    pagelist[firstpage[yr2001] + 19] = "ZB0102260902page.html";
    pagelist[firstpage[yr2001] + 20] = "ZB0102260505page.html";
    pagelist[firstpage[yr2001] + 21] = "ZB0102260301page.html";
    pagelist[firstpage[yr2001] + 22] = "ZB0102260204page.html";
    pagelist[firstpage[yr2001] + 23] = "ZB0101010302page.html";
    pagelist[firstpage[yr2001] + 24] = "ZB0101010207page.html";
    finalpage[yr2001] = firstpage[yr2001] + 24;
    numbpages[yr2001] = finalpage[yr2001] - firstpage[yr2001] + 1;
 // INITIALIZE YEAR 2000
    firstpage[yr2000] = finalpage[yr2001] + 1;
    pagelist[firstpage[yr2000] + 0]  = "ZB0011030908page.html";
    pagelist[firstpage[yr2000] + 1]  = "ZB0011030808page.html";
    pagelist[firstpage[yr2000] + 2]  = "ZB0011030804page.html";
    pagelist[firstpage[yr2000] + 3]  = "ZB0011030702page.html";
    pagelist[firstpage[yr2000] + 4]  = "ZB0011030606page.html";
    pagelist[firstpage[yr2000] + 5]  = "ZB0011030504page.html";
    pagelist[firstpage[yr2000] + 6]  = "ZB0011030406page.html";
    pagelist[firstpage[yr2000] + 7]  = "ZB0011030403page.html";
    pagelist[firstpage[yr2000] + 8]  = "ZB0004300804page.html";
    pagelist[firstpage[yr2000] + 9]  = "ZB0004300502page.html";
    pagelist[firstpage[yr2000] + 10] = "ZB0004300404page.html";
    pagelist[firstpage[yr2000] + 11] = "ZB0002260901page.html";
    pagelist[firstpage[yr2000] + 12] = "ZB0002260804page.html";
    pagelist[firstpage[yr2000] + 13] = "ZB0001020105page.html";
    finalpage[yr2000] = firstpage[yr2000] + 13;
    numbpages[yr2000] = finalpage[yr2000] - firstpage[yr2000] + 1;
 // INITIALIZE YEAR 1999
    firstpage[yr1999] = finalpage[yr2000] + 1;
    pagelist[firstpage[yr1999] + 0]   = "ZB9911000408page.html";
    pagelist[firstpage[yr1999] + 1]   = "ZB9911000301page.html";
    pagelist[firstpage[yr1999] + 2]   = "ZB9911000208page.html";
    pagelist[firstpage[yr1999] + 3]   = "ZB9911000106page.html";
    pagelist[firstpage[yr1999] + 4]   = "ZB9908010905page.html";
    pagelist[firstpage[yr1999] + 5]   = "ZB9905070306page.html";
    pagelist[firstpage[yr1999] + 6]   = "ZB9904160207page.html";
    pagelist[firstpage[yr1999] + 7]   = "ZB9904160104page.html";
    pagelist[firstpage[yr1999] + 8]   = "ZB9904110305page.html";
    pagelist[firstpage[yr1999] + 9]   = "ZB9904110203page.html";
    pagelist[firstpage[yr1999] + 10]  = "ZB9902070203page.html";
    finalpage[yr1999] = firstpage[yr1999] + 10;
    numbpages[yr1999] = finalpage[yr1999] - firstpage[yr1999] + 1;
 // INITIALIZE "NEARBY"
    firstpage[nearby] = finalpage[yr1999] + 1;
    pagelist[firstpage[nearby] + 0]  = "ZB0407310803page.html";
    pagelist[firstpage[nearby] + 1]  = "ZB0407310708page.html";
    pagelist[firstpage[nearby] + 2]  = "ZB0403280904page.html";
    pagelist[firstpage[nearby] + 3]  = "ZB0403280605page.html";
    pagelist[firstpage[nearby] + 4]  = "ZB0403070402page.html";
    pagelist[firstpage[nearby] + 5]  = "ZB0301110208page.html";
    pagelist[firstpage[nearby] + 6]  = "ZB0212050606page.html";
    pagelist[firstpage[nearby] + 7]  = "ZB0105190405page.html";
    pagelist[firstpage[nearby] + 8]  = "ZB0105190301page.html";
    pagelist[firstpage[nearby] + 9]  = "ZB0102260102page.html";
    pagelist[firstpage[nearby] + 10] = "ZB0002260902page.html";
    finalpage[nearby] = firstpage[nearby] + 10;
    numbpages[nearby] = finalpage[nearby] - firstpage[nearby] + 1;

 // CAPTURE LENGTH
    var pagelistleng = pagelist.length;

 // START/END PAGES FOR CURRENT SECTION PRESENT SECTION
    var yearstart, yearfinal;

 // DECLARE ARRAY OF SYMBOLS
    var symlist = new Array ("Z","Y","X","W","V","U","T","S","R","Q","P","O","N",
                             "M","L","K","J","I","H","G","F","E","D","C","B","A",
                             "&Omega;","&pi;","&epsilon;","&alpha;");

 // FUNCTION TO WRITE THE NAVIGATION PANEL
    function do_navigate (sect, page) {
        thissect = sect;
    //    thispage = page;
        thispage = page + firstpage[sect];
        var i, j, k;

     // ESTABLISH BOXES
        document.write('<DIV CLASS="navigate">');
        document.write('<DIV CLASS="navpanel">');

     // HEADING
        document.write('<P CLASS="navtitle">the Zakim<BR>Bridge</P>');

     // LOOP THROUGH SECTIONS
        for (i = firstsect; i <= finalsect; i++) {

            yearstart = firstpage[i];
            yearfinal = finalpage[i];
         // WRITE HEADER FORE EACH SECTION
            document.write('<P CLASS="navhead"><A HREF="' + pagelist[yearstart] + '">' + sectnames[i] + '</A></P>');
             // IF THIS IS THE CURRENT SECTION...
                if (i == thissect) {
                 // LOOP THROUGH PAGES
                    for (j = yearstart; j <= yearfinal; j++) {
                        k = j - yearstart;
                        if (k != 0 && k % 5 == 0) document.write('<BR>');
                        if (j == thispage) {
                           document.write('<A CLASS="navtinct" HREF="' + pagelist[j] + '" >&nbsp;' + symlist[k] + '&nbsp;</A>'); }
                      else {
                           document.write('<A CLASS="navplain" HREF="' + pagelist[j] + '" >&nbsp;' + symlist[k] + '&nbsp;</A>');  } }
                  document.write('<BR>');  } }
        document.write('<DIV CLASS="navbutts">');
        document.write('<BUTTON CLASS="navbutt" onClick="lastpage()" STYLE="color: 440000">LAST</BUTTON>');
        document.write('&nbsp; &nbsp; &nbsp;');
        document.write('<BUTTON CLASS="navbutt" onClick="nextpage()" STYLE="color: 440000">NEXT</BUTTON>');

        document.write('</DIV></DIV></DIV>'); }


 // FUNCTION TO GO TO ANOTHER PAGE
    function gotopage (q) {self.location = pagelist[q] }
 // ALTERNATE VERSION LEAVING NO HISTORY
 //   function gotopage (q) {self.location.replace(pagelist[q]) }

 // FUNCTION TO GO TO NEXT PAGE
    function nextpage() { 
         if (thispage == finalpage[nearby]) {thispage = firstpage[yr2005]; } 
            else {thispage = thispage + 1; }
         gotopage(thispage); }

 // FUNCTION TO GO TO LAST (PREVIOUS) PAGE 
    function lastpage() { 
         if (thispage == firstpage[yr2005]) {thispage = finalpage[nearby]; } 
            else {thispage = thispage - 1; }
         gotopage(thispage); }





