function SetLinks() {

var pages = new Object();
/* 
One line in table below for each web page that has navigation arrows. 
 
Elements of the array called pages are:  (current page url, previous page url for top arrow, next page url for top arrow, previous page url for bottom arrow, next page url for bottom arrow). The top arrow null urls are "#"; the bottom arrow null urls are either "prevb" or "nextb".  The function called Page builds the pages array.
*/

pages[1] = new Page("locgov.html", "#", "#", "#prevb", "#nextb");

pages[2] = new Page("locgov1.html", "locgov.html", "#", "locgov.html", "#nextb");
pages[3] = new Page("locgov2.html", "locgov1.html", "#", "locgov1.html", "#nextb");
pages[4] = new Page("locgov3.html", "locgov2.html", "locgov4.html", "locgov2.html", "locgov4.html");
pages[5] = new Page("locgov4.html", "locgov3.html", "#", "locgov3.html", "#nextb");

pages[6] = new Page("tngov.html", "#", "tngov1.html", "#prevb", "tngov1.html");
pages[7] = new Page("tngov1.html", "tngov.html", "tngov2.html", "tngov.html",  "tngov2.html");
pages[8] = new Page("tngov2.html", "tngov1.html", "tngov3.html", "tngov1.html", "tngov3.html");
pages[9] = new Page("tngov3.html", "tngov2.html", "#", "tngov2.html", "#nextb");

pages[10] = new Page("tngov4.html", "tngov3.html", "#", "tngov3.html", "#nextb");

pages[11] = new Page("usgov.html", "#", "usgov1.html", "#prevb", "usgov1.html");
pages[12] = new Page("usgov1.html", "usgov.html", "usgov2.html", "usgov.html", "usgov2.html");
pages[13] = new Page("usgov2.html", "usgov1.html", "usgov3.html", "usgov1.html", "usgov3.html");
pages[14] = new Page("usgov3.html", "usgov2.html", "usgov4.html", "usgov2.html", "usgov4.html");
pages[15] = new Page("usgov4.html", "usgov3.html", "#", "usgov3.html", "#nextb");

pages[16] = new Page("usgov5.html", "usgov4.html", "usgov6.html", "usgov4.html", "usgov6.html");
pages[17] = new Page("usgov6.html", "usgov5.html", "#", "usgov5.html", "#nextb");

pages[18] = new Page("gc.html", "#", "gc1.html", "#prevb", "gc1.html");
pages[19] = new Page("gc1.html", "gc.html", "gc2.html", "gc.html", "gc2.html");
pages[20] = new Page("gc2.html", "gc1.html", "gc3.html", "gc1.html", "gc3.html");
pages[21] = new Page("gc3.html", "gc2.html", "gc4.html", "gc2.html", "gc4.html");
pages[22] = new Page("gc4.html", "gc3.html", "gc5.html", "gc3.html", "gc5.html");
pages[23] = new Page("gc5.html", "gc4.html", "gc6.html", "gc4.html", "gc6.html");

pages[88] = new Page("gc6.html", "gc5.html", "#", "gc5.html", "#nextb");


pages[24] = new Page("ed.html", "#", "#", "#prevb", "#nextb");

pages[25] = new Page("ed1.html", "ed.html", "ed2.html", "ed.html", "ed2.html");
pages[26] = new Page("ed2.html", "ed1.html", "ed3.html", "ed1.html", "ed3.html");
pages[27] = new Page("ed3.html", "ed2.html", "#", "ed2.html", "#nextb");

pages[28] = new Page("comm.html", "#", "comm1.html", "#prevb", "comm1.html");
pages[29] = new Page("comm1.html", "comm.html", "comm2.html", "comm.html", "comm2.html");
pages[30] = new Page("comm2.html", "comm1.html", "comm3.html", "comm1.html", "comm3.html");
pages[31] = new Page("comm3.html", "comm2.html", "comm4.html", "comm2.html", "comm4.html");
pages[32] = new Page("comm4.html", "comm3.html", "comm5.html", "comm3.html", "comm5.html");
pages[33] = new Page("comm5.html", "comm4.html", "#", "comm4.html", "#nextb");

pages[34] = new Page("comm6.html", "comm5.html", "#", "comm5.html", "#nextb");
pages[35] = new Page("comm7.html", "comm6.html", "comm8.html", "comm6.html", "comm8.html");
pages[36] = new Page("comm8.html", "comm7.html", "#", "comm7.html", "#nextb");

pages[37] = new Page("bus.html", "#", "bus1.html", "#prevb", "bus1.html");
pages[38] = new Page("bus1.html", "bus.html", "bus2.html", "bus.html", "bus2.html");
pages[39] = new Page("bus2.html", "bus1.html", "bus3.html", "bus1.html", "bus3.html");
pages[40] = new Page("bus3.html", "bus2.html", "bus4.html", "bus2.html", "bus4.html");
pages[41] = new Page("bus4.html", "bus3.html", "bus5.html", "bus3.html", "bus5.html");
pages[42] = new Page("bus5.html", "bus4.html", "#", "bus4.html", "#nextb");

pages[43] = new Page("edu.html",  "#", "edu1.html", "#prevb", "edu1.html");
pages[44] = new Page("edu1.html", "edu.html", "edu2.html", "edu.html", "edu2.html");
pages[45] = new Page("edu2.html", "edu1.html", "edu3.html", "edu1.html", "edu3.html");
pages[46] = new Page("edu3.html", "edu2.html", "edu4.html", "edu2.html", "edu4.html");
pages[47] = new Page("edu4.html", "edu3.html", "#", "edu3.html", "#nextb");

pages[48] = new Page("col.html", "#", "col1.html", "#prevb", "col1.html");
pages[49] = new Page("col1.html", "col.html", "col2.html", "col.html", "col2.html");
pages[50] = new Page("col2.html", "col1.html", "col3.html", "col1.html", "col3.html");
pages[51] = new Page("col3.html", "col2.html", "#", "col2.html", "#nextb");

pages[52] = new Page("col4.html", "col3.html", "#", "col3.html", "#nextb");

pages[53] = new Page("pr.html", "#", "pr1.html", "#prevb", "pr1.html");
pages[54] = new Page("pr1.html", "pr.html", "pr2.html", "pr.html", "pr2.html");
pages[55] = new Page("pr2.html", "pr1.html", "pr3.html", "pr1.html", "pr3.html");
pages[56] = new Page("pr3.html", "pr2.html", "pr4.html", "pr2.html", "pr4.html");
pages[57] = new Page("pr4.html", "pr3.html", "pr5.html", "pr3.html", "pr5.html");
pages[58] = new Page("pr5.html", "pr4.html", "pr6.html", "pr4.html", "pr6.html");
pages[59] = new Page("pr6.html", "pr5.html", "pr7.html", "pr5.html", "pr7.html");
pages[60] = new Page("pr7.html", "pr6.html", "pr8.html", "pr6.html", "pr8.html");
pages[61] = new Page("pr8.html", "pr7.html", "pr9.html", "pr7.html", "pr9.html");
pages[62] = new Page("pr9.html", "pr8.html", "pr10.html", "pr8.html", "pr10.html");
pages[63] = new Page("pr10.html", "pr9.html", "pr11.html", "pr9.html", "pr11.html");

pages[92] = new Page("pr11.html", "pr9.html", "#", "pr9.html", "#nextb");


pages[64] = new Page("ci.html", "#", "ci1.html", "#prevb", "ci1.html");
pages[65] = new Page("ci1.html", "ci.html", "ci2.html", "ci.html", "ci2.html");
pages[66] = new Page("ci2.html", "ci1.html", "ci3.html", "ci1.html", "ci3.html");
pages[67] = new Page("ci3.html", "ci2.html", "#", "ci2.html", "#nextb");

pages[68] = new Page("ci4.html", "ci3.html", "#", "ci3.html", "#nextb");

pages[69] = new Page("hf.html", "#", "hf1.html", "#prevb", "hf1.html");
pages[70] = new Page("hf1.html", "hf.html", "hf2.html", "hf.html", "hf2.html");
pages[71] = new Page("hf2.html", "hf1.html", "hf3.html", "hf1.html", "hf3.html");
pages[72] = new Page("hf3.html", "hf2.html", "hf4.html", "hf2.html", "hf4.html");
pages[73] = new Page("hf4.html", "hf3.html", "#", "hf3.html", "#nextb");

pages[74] = new Page("realest.html", "#", "realest1.html", "#prevb", "realest1.html");
pages[75] = new Page("realest1.html", "realest.html", "realest2.html", "realest.html", "realest2.html");
pages[76] = new Page("realest2.html", "realest1.html", "#", "realest1.html", "#nextb");

pages[77] = new Page("gal.html", "#", "gal1.html", "#prevb", "gal1.html");
pages[78] = new Page("gal1.html", "gal.html", "gal2.html", "gal.html", "gal2.html");
pages[79] = new Page("gal2.html", "gal1.html", "gal3.html", "gal1.html", "gal3.html");
pages[80] = new Page("gal3.html", "gal2.html", "gal4.html", "gal2.html", "gal4.html");
pages[81] = new Page("gal4.html", "gal3.html", "gal5.html", "gal3.html", "gal5.html");
pages[82] = new Page("gal5.html", "gal4.html", "gal6.html", "gal4.html", "gal6.html");
pages[83] = new Page("gal6.html", "gal5.html", "gal7.html", "gal5.html", "gal7.html");
pages[84] = new Page("gal7.html", "gal6.html", "gal8.html", "gal6.html", "gal8.html");
pages[85] = new Page("gal8.html", "gal7.html", "gal9.html", "gal7.html", "gal9.html");
pages[86] = new Page("gal9.html", "gal8.html", "gal10.html", "gal8.html", "gal10.html");
pages[87] = new Page("gal10.html", "gal9.html", "gal11.html", "gal9.html", "gal11.html");

pages[89] = new Page("gal11.html", "gal10.html", "gal12.html", "gal10.html", "gal12.html");
pages[90] = new Page("gal12.html", "gal11.html", "gal13.html", "gal11.html", "gal13.html");
pages[91] = new Page("gal13.html", "gal12.html", "#", "gal12.html", "#nextb");



/*            
Additional pages can be defined and added anywhere using the next sequential numbers for pages[n]. (n must be unique.) They don't have to be in numerical order - but it's less confusing if they are.

Number of pages above is variable. The function SetLengths determines how many there are (pages.length).
*/

SetLengths(pages);

/* Get current web page file name by getting the character string following the last forward slash of the url.  */
var doc = location.pathname.substring(location.pathname.lastIndexOf('/')+1);

/* Search pages array for navigation parameters for this specific web page. */
var j=1; 

while ((pages[j].pagename != null) && (pages[j].pagename != doc) && (j <= pages.length)) {j++; if (j == pages.length) return;}

/* Set the previous and next page urls in the navigation arrows by searching the anchor tags array of the current web page for the next & previous page default null urls and replacing them with the appropriate urls from the above pages array.  */

var anchorTags = document.getElementsByTagName("a") ; 
for (var i = 0; i < anchorTags.length ; i++) 
{ 
if (anchorTags[i].name == "prevt") anchorTags[i].href = pages[j].tprev;
if (anchorTags[i].name == "prevb") anchorTags[i].href = pages[j].bprev; 
if (anchorTags[i].name == "nextt") anchorTags[i].href = pages[j].tnext; 
if (anchorTags[i].name == "nextb") anchorTags[i].href = pages[j].bnext; 
}; 
                      };
					  
/* The SetLengths function determines how many pages are in the list. */		  
function SetLengths(pages) {
 var k=1;
 while(pages[k] != null) k++;
 pages.length = k;
}

/* The Page function is called by each line of the table and builds the pages array.  */
function Page(pageurl, topprev, topnext, botprev, botnext) {
 this.pagename = pageurl;
 this.tprev = topprev;
 this.tnext = topnext;
 this.bprev = botprev;
 this.bnext = botnext;
}				  
					  
					  
