// Drop Bown Menu - Head Script
// copyright Stephen Chapman, 4th March 2005, 5th February 2006
// you may copy this menu provided that you retain the copyright notice




var fix = 1; var delay = 2000; var modd = 0;
var bar = new menuBar();
//W E L C O M E Button----------------
bar.addMenu('About Us');
bar.addItem('1right.html','Home');
bar.addItem('http://www.facebook.com/pages/Reedville-VA/Smith-Point-Marina/121020631242359','FACEBOOK');
bar.addItem('testimonials.html','Testimonials');
bar.addItem('employees.html','Our Employees');
bar.addItem('the_come_here_poet.html','The come Here Poet');
bar.addItem('our_kids.html','Our Kids');
bar.addItem('grand_kids.html','The Grand Kids');
bar.addItem('visiting_friends.html','Visiting Friends');
//G E T T I N G Here Button ------------------
bar.addMenu('Getting Here');
bar.addItem('getting_here_by_boat.html','By Boat');
bar.addItem('getting_here_by_car.html','By Car');
//N E W S Button --------------------
bar.addMenu('News & Fishing News!');
bar.addItem('marina_news.html','Marina News');
bar.addItem('tournament_news.html','Tournament News');
bar.addItem('marina_projects.html','Marina Projects');
bar.addItem('fish_stories.html','Fish Stories');
bar.addItem('http://www.fishmidnightsun.com/forum/forum_topics.asp?FID=2','Capt Ryans Report');
bar.addItem('fishing_regulations.html','Fishing Regulations');
bar.addItem('http://www.dgif.state.va.us/licenses/','Fishing Licenses');
bar.addItem('fishing_information.html','Fishing Information');
bar.addItem('http://www.chesapeake-fishing.com/nnac','NN Anglers Club');
bar.addItem('http://www.nnkkayak.com','Kayak Fishing');
//W E A T H E R Button --------------
bar.addMenu('Weather&Tides');
bar.addItem('http://weather.yahoo.com/united-states/virginia/-12766963/','Yahoo Weather');
bar.addItem('http://www.wunderground.com/MAR/AN/630.html','Marine weather');
bar.addItem('http://www.accuweather.com/us/va/reedville/22539/city-weather-forecast.asp?partner=accuweather&u=1&traveler=0','Accuweather')
bar.addItem('http://www.saltwatertides.com/dynamic.dir/virginiasites.html#','Tide Charts');
bar.addItem('http://www.buoybay.org/site/public/','CBIBS Buoy System'); 
bar.addItem('http://www.wunderground.com/radar/radblast.asp?ID=AKQ','RADAR PICTURE');
bar.addItem('storm_procedures.html','Hurricaine Procedures');
//F O R M S & I N S U R A N C E BUTTON-----------------
bar.addMenu('Forms & Insurance');
bar.addItem('rental_agreement.html','Slip Rental Agreement');
bar.addItem('rental_agreement.pdf','Slip Rental Agreement PDF');
bar.addItem('insurance.html','Insurance Requirements');
//B O A T S F O R S A L E BUTTON-----------------
bar.addMenu('Boats4Sale');
bar.addItem('boat_sale.html','Boats for Sale');
//S E R V I C E S BUTTON ------------
bar.addMenu('Services');
bar.addItem('store.html','Marina Store');
bar.addItem('boat_ramp.html', 'Boat Ramp');
bar.addItem('slips.html','Slips');
bar.addItem('boat_maintenance.html','Boat Maintenance');
bar.addItem('camping.html','Camping');
bar.addItem('fuel.html','Fuel');
bar.addItem('other_services.html','Other Marina Services');
bar.addItem('captain_derrick.html','Captain Derrick - Boating Education and Training');
bar.addItem('http://www.marinesurvey.org/va.html','Marine Surveyors');
//C H A R T E R S BUTTON-------------
bar.addMenu('Charter Boats');
bar.addItem('charter_boats.html','All Charters');
bar.addItem('sunnybank_charters.html','Sunnybank Charters');
bar.addItem('midnight_sun.html','Midnight Sun');
bar.addItem('gurr.html','Sea Dragon Charters');
//O U R  P A R T N E R S -------------------------
bar.addMenu('Partners & Charities');
bar.addItem('http://peninsulaymca.org/branches/northumberland/index.html','Northumberland YMCA');
bar.addItem('http://www.rfmuseum.org','Reedville Fishermens Museum');
bar.addItem('http://www.cbf.org','Ches Bay Foundation');
bar.addItem('stitchesgalore.html','Stitches Galore - Canvas');
bar.addItem('http://www.ourboatsforsaleonline.com','Yacht Broker-R.Eager');
bar.addItem('http://www.abyc.com','ABYC Certification');
bar.addItem('http://www.smithpointsearescue.com','Smith Point Sea Rescue');
bar.addItem('wireless.html','Northern Neck Wireless');    
bar.addItem('http://www.northernneck.org','NNeck Tourism Commission');
bar.addItem('http://www.younglife.org','Young Life');
bar.addItem('http://www.virginiavisitorsnetwork.com/northumberland/','Virginia Vistors Network');
//ACCOMODATIONS
bar.addMenu('Places To Stay');
bar.addItem('accomodations.html','Lodging');
bar.addItem('MaMargaret.html','Ma Margarets House');
//CRUISING LINKS
bar.addMenu('Cruising Links');
bar.addItem('http://www.boatingcruising.com','Boating Cruising.Com');
bar.addItem('http://www.cbmmag.net','Chesapeake Bay Magazine');
bar.addItem('http://www.activecaptain.com','Active Captain');
bar.addItem('http://www.marina.com','Marinas.com');
bar.addItem('http://www.marinalife.com','Marina Life.com');
bar.addItem('http://www.cruisetosmithisland.com/index.html','Smith Island Cruise');
bar.addItem('http://www.tangiercruise.com/tangier/Tangier_Main.htm','Tangier Island Cruise');

//GREEN MARINA -----
bar.addMenu('Green Marina');
bar.addItem('green_marina.html','Green Marina');
bar.addItem('pump_out.html','Pump-out');
bar.addItem('cans.html','Aluminum Can Recycling');
bar.addItem('baysafe.html','Bay Safe Cleaners');
//J E T T Y I N F O R M A T I O N -----
bar.addMenu('Jetties Info');
bar.addItem('jetty_depths2010.html','Jetty Depths');
bar.addItem('jetty_dredging2010.html','Dredging Information');
bar.addItem('jetty_history.html','Dredging History');




// do not change anything below this line
var blc = '#663300';var blh = '#ffffff';var bla = '#996633';var lc = '#cccccc';var lh = '#996633';var la = '#ffffff';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
if (fix) window.onscroll=sMenu;window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {if (modd) clearTimeout(modd);document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; odm.onmouseover = omov; odm.onmouseout = omot; podm = odm; ponm = onm;}}
function omov() {if (modd) clearTimeout(modd);}
function omot() {modd = setTimeout('mHide()',delay);}
function mOut(e) {modd = setTimeout('mHide()',delay);document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
if (fix) {var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split("rv:"); isR = parseFloat(t[1]);}if (isR && isR<1) setInterval('sMenu()',50);}