// Array Function

function makeArray() {
var args = makeArray.arguments;
    for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
    }
this.length = args.length;
}

// This array holds the descriptions and names of the pages.
var pages = new makeArray("Select a Page",
                          "Home",
                          "Do You Really Want to Adopt A Pet?",
                          "A Dog's Prayer",
                          "Adoptable Pets",
                          "We Found A Home 1",
                          "We Found A Home 2",
                          "We Found A Home 3",
                          "We Found A Home 4",
                          "We Found A Home 5",
                          "We Found A Home 6",
                          "We Found A Home 7",
                          "We Found A Home 8",
	        "Memorials",
                          "In Memory of Shirley Bensa",
	        "Pet Memorials",
	        "My Adopted Pets",                          
	        "Links",
	        "Web Rings We Belong To",
                          "Wildlife Rescue",
                          "Treehouse Residents",
                          "Inspirational Poems",
                          "More Poems",  
                          "My Birds", 
                          "Greenville Goes Country",
                          "Is This Dog Good With Kids?",
                          "Membership Form",
                          "Printable Adoption Application",
                          "How Could You?",
                          "Inspirational Poems 3");

// This array hold the URLs of the pages.
var urls = new makeArray("",
                         "http://www.bcadoptapet.org/",
                         "http://www.bcadoptapet.org/page2.htm",
                         "http://www.bcadoptapet.org/page3.htm",
                         "http://www.bcadoptapet.org/page4.htm",
                         "http://www.bcadoptapet.org/page4a.htm",
                         "http://www.bcadoptapet.org/page4b.htm",
                         "http://www.bcadoptapet.org/page4c.htm",
                         "http://www.bcadoptapet.org/page4d.htm",
                         "http://www.bcadoptapet.org/page4e.htm",
                         "http://www.bcadoptapet.org/page4f.htm",
                         "http://www.bcadoptapet.org/page4g.htm",
                         "http://www.bcadoptapet.org/page4h.htm",
                         "http://www.bcadoptapet.org/page5.htm",
                         "http://www.bcadoptapet.org/page5a.htm",
                        "http://www.bcadoptapet.org/page5b.htm",
                         "http://www.bcadoptapet.org/page6.htm",
                         "http://www.bcadoptapet.org/page7.htm",
                         "http://www.bcadoptapet.org/page8.htm",
                         "http://www.bcadoptapet.org/page10.htm",
                         "http://www.bcadoptapet.org/page10a.htm",
                         "http://www.bcadoptapet.org/page11.htm",
                         "http://www.bcadoptapet.org/page12.htm",
                         "http://www.bcadoptapet.org/page13.htm",                        
                         "http://www.bcadoptapet.org/page14.htm",
                         "http://www.bcadoptapet.org/page15.htm",
                         "http://www.bcadoptapet.org/page16.htm",
                         "http://www.bcadoptapet.org/page16a.htm",
                         "http://www.bcadoptapet.org/page17.htm",
                         "http://www.bcadoptapet.org/page19.htm");
// This function determines which page is selected and goes to it.

function goPage(form) {
i = form.menu.selectedIndex;            
    if (i != 0) {
    window.location.href = urls[i];  
    }
}
