var myNavBar, menu; myNavBar = new NavBar(750); myNavBar.setSizes(1, 3, 1); myNavBar.setColors("#000000", "#FFFFFF", "#993366", "#FFFFFF", "#993366","#000000", "#EBD2CB", "#FFFFFF", "#333333"); //Border Color, Header Foreground, Header Background, Header Hilite Foreground, Header Hilite Background, Drop Foreground, //Drop Background, Drop Hilite Foreground, Drop Hilite Background myNavBar.setFonts("Verdana, Arial, Helvetica, sans-serif", "plain", "bold", "8pt", "Verdana, Arial, Helvetica, sans-serif", "plain", "bold", "8pt"); // Define navigation bar menus. menu = new NavBarMenu(124, 124); menu.addItem(new NavBarMenuItem(" Welcome", "")); menu.addItem(new NavBarMenuItem("Welcome", "/welcome.html")); menu.addItem(new NavBarMenuItem("Homepage", "/index.html")); menu.addItem(new NavBarMenuItem("Availability", "http://www.webervations.com/magic-scripts/resbook.asp?memberid=seacrest")); menu.addItem(new NavBarMenuItem("Directions", "/directions/index.html")); menu.addItem(new NavBarMenuItem("Email Us", "mailto:capt@seacrestbythesea.com")); menu.addItem(new NavBarMenuItem("Updates", "/updates/index.html")); menu.addItem(new NavBarMenuItem("Free Nights", "/free/index.html")); menu.addItem(new NavBarMenuItem("Guest Book", "/guestbook/guestbook.html")); menu.addItem(new NavBarMenuItem("Photo Gallery", "/temp/newnewnewsea.html")); menu.addItem(new NavBarMenuItem("Print a Brochure", "http://clickbrochure.com/seacrest/brochure.html")); myNavBar.addMenu(menu); menu = new NavBarMenu(124, 124); menu.addItem(new NavBarMenuItem(" Rooms", "")); menu.addItem(new NavBarMenuItem("Rooms", "/rooms/rooms.html")); menu.addItem(new NavBarMenuItem("Quick Tour", "/rooms/troom1.html")); myNavBar.addMenu(menu); menu = new NavBarMenu(124, 124); menu.addItem(new NavBarMenuItem(" Reservations", "")); menu.addItem(new NavBarMenuItem("Reservations", "/reservations/index.html")); menu.addItem(new NavBarMenuItem("Availability", "http://www.webervations.com/magic-scripts/resbook.asp?memberid=seacrest")); menu.addItem(new NavBarMenuItem("Specials", "/specials/index.html")); menu.addItem(new NavBarMenuItem("Special Rates", "/specials/military.htm")); menu.addItem(new NavBarMenuItem("Directions", "/directions/index.html")); myNavBar.addMenu(menu); menu = new NavBarMenu(124, 124); menu.addItem(new NavBarMenuItem(" Dining", "/dining/index.html")); menu.addItem(new NavBarMenuItem("Dinner Out", "/dining/index.html")); menu.addItem(new NavBarMenuItem("Recipes", "/recipes/index.html")); myNavBar.addMenu(menu); menu = new NavBarMenu(124, 124); menu.addItem(new NavBarMenuItem(" Gifts", "")); menu.addItem(new NavBarMenuItem("Gift Certificates", "https://www.buysecure.com/cgi-bin/cgiwrap/seacrest/WebShop.cgi?config=/var/wwws/htdocs/seacrest/store/config.txt&uid=0b8_qgA5993522872&command=link--certificates_page")); menu.addItem(new NavBarMenuItem("Inn Gifts", "https://www.buysecure.com/seacrest")); menu.addItem(new NavBarMenuItem("Shopping", "/shopping/index.html")); menu.addItem(new NavBarMenuItem("Specials", "/specials/index.html")); myNavBar.addMenu(menu); menu = new NavBarMenu(124, 124); menu.addItem(new NavBarMenuItem(" The Area", "")); menu.addItem(new NavBarMenuItem("Dining", "/dining/index.html")); menu.addItem(new NavBarMenuItem("Shopping", "/shopping/index.html")); menu.addItem(new NavBarMenuItem("Night Life", "/nightlife/index.html")); menu.addItem(new NavBarMenuItem("Theatre", "/theatre/index.html")); menu.addItem(new NavBarMenuItem("Bedtime Stories", "/roundtable/bedtimestories.htm")); menu.addItem(new NavBarMenuItem("Tides & Weather", "http://www.belmar.com/surfreport/slsurfreport.html")); menu.addItem(new NavBarMenuItem("Things To Do", "/thingstodo/index.html")); menu.addItem(new NavBarMenuItem("Barb's Digital Camera", "/digitalcamera/index.html")); menu.addItem(new NavBarMenuItem("Fitness Club", "/thingstodo/atlanticclub.htm")); menu.addItem(new NavBarMenuItem("Spring Lake, NJ Real Estate", "/realestate/index.html")); menu.addItem(new NavBarMenuItem("Links", "/roundtable/index.html")); myNavBar.addMenu(menu); function myInit() { myNavBar.create(); var x = Math.round((getWindowWidth() - myNavBar.getWidth()) / 2); var y = 0 ; myNavBar.moveTo(x,y); updatePosition(); } function updatePosition() { var viewTop, viewBottom; var dy; viewTop = getPageScrollY(); viewBottom = viewTop + getWindowHeight(); if (myNavBar.bottom < viewTop) myNavBar.moveTo(0, viewTop - myNavBar.height); if (myNavBar.top > viewBottom) myNavBar.moveTo(0, viewBottom); dy = Math.round(Math.abs(viewTop - myNavBar.y) / 2); if (viewTop < myNavBar.y) dy = -dy; myNavBar.moveBy(0, dy); setTimeout('updatePosition()', 25); }