
// -------------------------------------------------------------------------
// --- Dependencies:
// -------------------------------------------------------------------------

// This program requires that the following program files be preloaded before loading this program file:
//     > BrowserDetectLite.js

// -------------------------------------------------------------------------
// 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";


// -------------------------------------------------------------------------
// Prerequisite Initialization Calls
// -------------------------------------------------------------------------

// -------------------------------------------------------------------------
// Call Browser detection information script and store data into brwser object

  var brwsr = new BrowserDetectLite();


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

// Browser Type and related type-specific variables
  var WC3DOM1 = false;
  var IEDOCALL = false;

// Other
  var lastSectionItems = new Array();
  var sectionList = new Array();

  sectionList[1] = "ent";
  sectionList[2] = "mus";
  sectionList[3] = "opt";
  sectionList[4] = "dec";
  sectionList[5] = "sup";

  lastSectionItems[1] = "0";
  lastSectionItems[2] = "0";
  lastSectionItems[3] = "0";
  lastSectionItems[4] = "0";
  lastSectionItems[5] = "0";

// -------------------------------------------------------------------------
// FUNCTION DECLARATIONS - 
// For functions activated from user initialized events
// -------------------------------------------------------------------------

// -------------------------------------------------------------------------
// Change the state of the link selected - onclick event handler
// -------------------------------------------------------------------------
  function changeState (thisSectionId, thisItemId) {

      // Construct the change request
      thisRequest = sectionList[thisSectionId]+thisItemId;
      lastRequest = sectionList[thisSectionId]+lastSectionItems[thisSectionId];
      if (WC3DOM1) {
        document.getElementById(lastRequest).className = "linkinactive";
        document.getElementById(thisRequest).className = "linkactive";
      }
      else {
        if (IEDOCALL) {
          document.all[lastRequest].className = "linkinactive";
          document.all[thisRequest].className = "linkactive";
        }
      }
      lastSectionItems[thisSectionId] = thisItemId;

  }

  function ChicagoLuauCheck() {
    if (location.host == "www.chicagoluau.com") {  
      document.writeln ("<p class='center'><b>Did you want our Luau Catering Cooperative?</b><br>If you came here for all luau needs other than catering than you have come to the right place.<br>Everything other than catering is available directly from Island Enterprises, Inc. and the Barefoot Hawaiian.<br>If however, you wanted strictly catering for your luau, we welcome you to directly visit our catering cooperative.<br>This is through the Tiki Terrace Restaurant and Chicago Luaus and Catering.<br>Visit <a target='_blank' href='http://www.chicagoluaus.com'>http://www.chicagoluaus.com</a> for more information.</p><p> </p>");
    }
  }

// -------------------------------------------------------------------------
// BEGIN: Main Line Processing - Runs as soon as the script file has been read
// -------------------------------------------------------------------------

  // Determine Element Access Methods (W3C DOM standard method or IE4+ method or both)
  if (brwsr.isDOM1) {  
    WC3DOM1 = true;
  }
  if (document.all) {
    IEDOCALL = true;
  }
// -------------------------------------------------------------------------
// END: Main Line Processing
// -------------------------------------------------------------------------






