         var topNav = new Array(
            new Array("Home", "/"),
            new Array("Make Appointment", "/appointment.html"),
            new Array("Branches", "/branches.html"),
            new Array("Promotions", "/promotions.html"),
            new Array("News", "/news.html"),
            new Array("&nbsp;", "&nbsp"),
            
            new Array("Eyewear", "/eyewear.html"),
            new Array("Eyecare", "/eyecare.html"),
            new Array("Eyeconditions", "/eyeconditions.html"),
            new Array("Corporate Eyecare", "/corporateeyecare.html"),
            
            /* new Array("Children's Vision", "/childrensvision.html"),
            new Array("Guarantee", "/guarantee.html"),
            new Array("Promotions", "/promotions.html"),
            new Array("Fact File", "/factfile.html"),
            new Array("Links", "/links.html"), */
            new Array("Header", "For Professionals:"),
            new Array("Employment", "/employment.html")
         );
         var subNav = new Array;
         subNav["Eyewear"] = new Array(
            new Array("Lenses", "eyewear-lenses.html"),
            new Array("Frames", "eyewear-frames.html"),
            new Array("Contact Lenses", "eyewear-contactlenses.html"),
            new Array("Sunglasses", "eyewear-sunglasses.html")
         );
         subNav["Branches"] = new Array(
            new Array("Nelson", "branches-nelson.html"),
            new Array("Richmond", "branches-richmond.html"),
            new Array("Motueka", "branches-motueka.html"),
            new Array("Blenheim", "branches-blenheim.html"),
            new Array("Wellington", "branches-wellington.html"),
            new Array("Lower Hutt", "branches-lowerhutt.html"),
            new Array("New Plymouth", "branches-new_plymouth.html"),
            new Array("Kapiti", "branches-kapiti.html"),
            new Array("Supply &amp; Support", "branches-supplysupport.html")
         );
         
         function writeNavMenu(page, subpage) {
            var menuTitle, menuLink, theClass;
            var menuHTML = "<ul>\n";
			var linkroot = ".";
            for (var i=0; i<topNav.length; i++) {
               menuTitle = topNav[i][0];
               menuLink = linkroot + topNav[i][1];
               theClass = (menuTitle == page) ? "current" : "";
               if (menuTitle == "Header") {
                  menuHTML +=  "</ul><h3>" + topNav[i][1] + "</h3><ul>";
               } else {
                  menuHTML +=  '<li><a href="' + menuLink + '" class="' + theClass + '">' + menuTitle + '</a>';
                  if (subNav[menuTitle] != null && theClass == "current") {
                     menuHTML += "   <ul>\n";
                     for (var sn=0; sn<subNav[menuTitle].length; sn++) {
                        subMenuTitle = subNav[menuTitle][sn][0];
						subMenuLink = subNav[menuTitle][sn][1];
                        theClass = (subMenuTitle == subpage) ? "current" : "";
                        menuHTML += '   <li><a href="' + subMenuLink + '" class="' + theClass + '">' + subMenuTitle + '</a></li>\n';
                     }
                     menuHTML += "   </ul>\n";
                  }
                  menuHTML += "</li>\n";
               }
            }
            menuHTML += "</ul>\n";
            
            document.write(menuHTML);
         }