function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

/* Functions that swaps images. */
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",170,19,"Arial, Helvetica, sans-serif",12,"#003366","#006633","#ffeea8","#ffe271");
  fw_menu_0.addMenuItem("About Us","location='about.htm'");
  fw_menu_0.addMenuItem("Sanibel/Captiva History","location='history.htm'");
  fw_menu_0.addMenuItem("Tour Island Inn","location='tour.htm'");
  fw_menu_0.addMenuItem("Testimonials","location='testimonials.htm'");
  fw_menu_0.addMenuItem("Directions","location='directions.htm'");
  fw_menu_0.addMenuItem("Having Fun at Island Inn","location='socializing.htm'");
    fw_menu_0.addMenuItem("Shareholders Only","location='shareholders.htm'");
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",141,19,"Arial, Helvetica, sans-serif",12,"#003366","#006633","#ffeea8","#ffe271");
  fw_menu_1.addMenuItem("Guest Rooms","location='rooms.htm'");  
  fw_menu_1.addMenuItem("Kimball Lodge","location='kimball.htm'");
  fw_menu_1.addMenuItem("Starky Lodge","location='starky.htm'");
  fw_menu_1.addMenuItem("Sandpiper Cottage","location='sandpiper.htm'");
  fw_menu_1.addMenuItem("Seagrape Cottage","location='seagrape.htm'");
  fw_menu_1.addMenuItem("Zeeryp Cottage","location='zeeryp.htm'");
  fw_menu_1.addMenuItem("Matthews Lodge","location='matthewslodge.htm'");
  fw_menu_1.addMenuItem("Phister Cottage","location='phister.htm'");
  fw_menu_1.addMenuItem("Matthews Cottage","location='matthews.htm'");
  fw_menu_1.addMenuItem("Spoonbill Cottage","location='spoonbill.htm'");
  fw_menu_1.addMenuItem("Condo Rentals","location='condos.htm'");
//  fw_menu_1.addMenuItem("Spoonbill S. Cottage","location='spoonbills.htm'");
   fw_menu_1.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",141,19,"Arial, Helvetica, sans-serif",12,"#003366","#006633","#ffeea8","#ffe271");
//  fw_menu_2.addMenuItem("Reservations","location='http://www.secure-res.com/res/vn2/checka.asp?hotelid=1665'");
//  fw_menu_2.addMenuItem("Reservations","location='http://www.secure-res.com/res/vn2/checka.asp?hotelid=1665'");
  fw_menu_2.addMenuItem("Rates & Plans","location='rates.htm'");
  fw_menu_2.addMenuItem("Gift Certificates","location='gift_certificates.htm'");
  fw_menu_2.addMenuItem("Mod American Plan","location='modAM.htm'");
  fw_menu_2.addMenuItem("European Plan","location='european.htm'");
  fw_menu_2.addMenuItem("Spring to Fall Plan","location='modAMsummer.htm'");
  fw_menu_2.addMenuItem("Reservations","location='http://www.secure-res.com/res/vn2/checka.asp?hotelid=1665'");  
  fw_menu_2.addMenuItem("Special Events","location='special_events.htm'");
  fw_menu_2.addMenuItem("Island Inn Policies","location='policies.htm'");
  fw_menu_2.addMenuItem("Directions","location='directions.htm'");
  //fw_menu_2.addMenuItem("Promotions","location='promotions.htm'");
   fw_menu_2.hideOnMouseOut=true;
  window.fw_menu_3 = new Menu("root",141,19,"Arial, Helvetica, sans-serif",12,"#003366","#006633","#ffeea8","#ffe271");
  fw_menu_3.addMenuItem("Group Events","location='special_events.htm'");
  fw_menu_3.addMenuItem("Meetings","location='meetings.htm'");
  fw_menu_3.addMenuItem("Weddings at the Inn","location='weddings.htm'");
  fw_menu_3.addMenuItem("Corporate Retreats","location='corporate_retreats.htm'");
  fw_menu_3.addMenuItem("Family Reunions","location='family_reunions.htm'");
   fw_menu_3.hideOnMouseOut=true;
window.fw_menu_4 = new Menu("root",141,19,"Arial, Helvetica, sans-serif",12,"#003366","#006633","#ffeea8","#ffe271");
  fw_menu_4.addMenuItem("Dining Experience","location='dining.htm'");
  fw_menu_4.addMenuItem("Winter Breakfast Menu","location='breakfast.htm'");
  fw_menu_4.addMenuItem("Winter Dinner Menu","location='dinner-winter.htm'");
  fw_menu_4.addMenuItem("Summer Dinner Menu","location='dinner.htm'");
  fw_menu_4.addMenuItem("Children's Menu","location='childMenu.htm'");
  fw_menu_4.addMenuItem("Events Calendar","location='se_calendar.htm'");
   fw_menu_4.hideOnMouseOut=true;

  fw_menu_3.writeMenus();
} // fwLoadMenus()

function shlogin() {
  var uName = document.forms[0].username.value;
  var pWord = document.forms[0].password.value;
  var valid = false;
  for (i=0;i<shlist.length;i++) {
    if ((shlist[i][0].toLowerCase() == uName.toLowerCase()) && (shlist[i][1].toLowerCase() == pWord.toLowerCase())) {
      valid = true;
      break;
    }
  }
  if (valid) {
    location.href="shareholders_home.htm";
  }
}

