// 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 new Gallery",
						  "",
						  "Drawings by J A Shepherd",
						  "Historical - Local Interest",
						  "Historical - Mrs Beeton 1890",
						  "Historical - Pearce and Smith",
						  "Historical - The Lees",
						  "Historical - Woodrows",
                          "Norfolk Broads Collection",
                          "Rhineland Collection",
                          "Rufford Collection",
                          "Scottish Collection",
                          "The Strand Magazine",
                          "Unpublished Cruikshank Drawings",
                          "Wales Collection",
                          "Wildlife Collection",
                          "",
                          "Gallery Index");

// This array hold the URLs of the pages.

var urls = new makeArray("",
						 "",
						 "gall_shepherd.htm",
						 "gall_local.htm",
						 "gall_beeton.htm",
						 "gall_smiths.htm",
						 "gall_lees.htm",
						 "gall_woodrows.htm",
                         "gall_broads.htm",
                         "gall_koblenz.htm",
                         "gall_rufford.htm",
                         "gall_highlands.htm",
                         "gall_strand.htm",
                         "gall_cruikshank.htm",
                         "gall_wales.htm",
                          "gall_wildlife.htm",
						 "",
						 "gallery.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];  
    }
}

