

// 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("Site Navigator...",
							"Home",
                                		"News & Specials",								
                              		 "Dive Operations",
						"- Aqua-Trek Nadi",
                         		 	"- Aqua-Trek Mana",
						"- Aqua-Trek Matamanoa",
                  		       	"- Aqua-Trek Robinson Crusoe",
						"- Aqua-Trek Beqa",
						"Shark Diving",
						"Dive Courses",
						"Instructor Training",
						"Japanese",
						"Fiji Guide",
						"Photo Gallery",
						"Bookings & Enquiries");
                          
// This array hold the URLs of the pages.

var urls = new makeArray("",
						"index.html",
                               		 "news-specials.html",
								"dive-operations.html",
								"nadi.html",
								"mana.html",
								"matamanoa.html",
								"crusoe.html",
								"beqa.html",
								"shark-diving.html",
								"dive-courses.html",
								"instructor-training.html",
								"japanese.html",
								"fiji-guide.html",								
								"photo-gallery.html",
								"bookings-enquiries.html");

// 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];  
    }
}