
// --- Barefoot Hawaiian Web Site Main Functions ---

// --- Programming and Code Copyright Notice:
// Developed by LCC Enterprises, 2006
// Contains original JavaScript programming code
// ©2006-2010 by LCC Enterprises.   All rights reserved.
// ---
// This installation under license for use by the Barefoot Hawaiian, Inc.

// --- Description:
// Provides general functions for events (clicks and mouseovers) throughout the web site 

// -------------------------------------------------------------------------


// -------------------------------------------------------------------------
// Prerequisite Processing
// -------------------------------------------------------------------------

// -------------------------------------------------------------------------
// Make certain this page is viewed at the top of the frameset and owns the window

if (top != self) {top.location = location};
var MainDoorCode = "lcc2006bhi";



// -------------------------------------------------------------------------
// Define global variables:



// -------------------------------------------------------------------------
  function winStatus(winstatText) {
    window.status = winstatText;
    return true;
  }


// -------------------------------------------------------------------------
  function insertSpecialAnnouncement(insert, iFramePage) {
    if (insert == "yes") {
      if (document.URL.indexOf("#") == -1) {  /*** Proceed only if entrance into the page was not to a specific bookmark within it ***/
        pageTotalContentHeight = mainpagetable.clientHeight;
        document.writeln ('<div class="specialannouncementwashout" ID="specialannouncementwashout"></div>');
        document.writeln ('<div class="specialannouncementwindow" ID="specialannouncementwindow">');
        document.writeln ('  <center>');
        document.writeln ('    <table class="specialannouncement" cellspacing="0">');
        document.writeln ('      <tr>');
        document.writeln ('        <td class="specialannouncement" cellspacing="0">');
        document.writeln ('          <center>');
        document.writeln ('            <table class="specialannouncementcontent" cellspacing="0">');
        document.writeln ('              <tr>');
        document.writeln ('                <td class="specialannouncementcontentheader">Barefoot Hawaiian News Item</td>');
        document.writeln ('              </tr>');
        document.writeln ('              <tr>');
        document.writeln ('              <td class="specialannouncementcontentdetails"><iframe class="specialannouncementcontentdetails" frameborder="0" align="left" scrolling="auto" src="'+iFramePage+'">&nbsp;</iframe></td>');
        document.writeln ('              </tr>');
        document.writeln ('              <tr>');
        document.writeln ('                <td class="specialannouncementcontentfooter"><a class="specanncloselink" href="JavaScript:closeSpecialAnnouncement()">close<span class="closexbox">X</span></a></td>');
        document.writeln ('              </tr>');
        document.writeln ('            </table>');
        document.writeln ('          </center>');
        document.writeln ('        </td>');
        document.writeln ('      </tr>');
        document.writeln ('    </table>');
        document.writeln ('  </center>');
        document.writeln ('</div>');
        specialannouncementwashout.style.height = pageTotalContentHeight;
        setTimeout("openSpecialAnnouncementStep1 ()", 2000);
      }
    }
  }

  function openSpecialAnnouncementStep1() {   /*** Activate the Washout ***/
    specialannouncementwashout.style.display = "block";
    setTimeout("openSpecialAnnouncementStep2 ()", 1000);
  }

  function openSpecialAnnouncementStep2() {   /*** Activate the Message Window ***/
    specialannouncementwindow.style.display = "block";
  }

  function closeSpecialAnnouncement() {
    specialannouncementwashout.style.display = "none";
    specialannouncementwindow.style.display = "none";
  }
