
function createWharffEvents()
{
 var wharffEvents = new wharffEventCollection();
 var anEvent;

 wharffEvents.script = "wharffClassTotals";

//----------------------------------------------------------------------
//- Blood Drive
//----------------------------------------------------------------------

 var displayBloodDriveEvent = function()
 {
  if (this.first)
  {
    tbaWrite.writeln("<p></p><h2>Blood Drive</h2>");
    tbaWrite.writeln("<center><b>Picture ID required to Donate Blood</b></center>");
    tbaWrite.writeln("<table border='0' align='center' class='"+this.style+"'>");
  }

  tbaWrite.writeln(" <tr>");
  tbaWrite.write  ("  <td align='center' class='"+this.style+"'>");

  if (this.taken < this.limit)
    tbaWrite.write  ("   <input type='checkbox' name='event' id='"+this.id+"' value='"+this.id+"'>");
  else
    tbaWrite.write  ("   - ");

  tbaWrite.writeln("  </td>");
  tbaWrite.writeln("  <td align='right' class='"+this.style+"'>"+this.time+"</td>");
  tbaWrite.writeln("  <td align='left'  class='"+this.style+"'>"+this.eventName+"</td>");
  tbaWrite.writeln(" </tr>");

  if (this.last)
    tbaWrite.writeln("</table>");
 };

 var i = 0;
 var t = ["10:00 AM", "10:15 AM", "10:30 AM", "10:45 AM",
          "11:00 AM", "10:15 AM", "11:30 AM", "11:45 AM",
          "12:00 PM", "12:15 PM", "12:30 PM", "12:45 PM",
           "1:00 PM",  "1:15 PM",  "1:30 PM",  "1:45 PM",
           "2:00 PM",  "2:15 PM",  "2:30 PM",  "2:45 PM",
           "3:00 PM",  "3:15 PM",  "3:30 PM",  "3:45 PM",
           "4:00 PM"];

 for (x in t)
 {
  anEvent = wharffEvents.addEvent (new wharffEvent('Blood_Drive',++i));
  anEvent.style       = "wharffBloodDrive";
  anEvent.time        = t[x];
  anEvent.eventName   = "Blood Donation";
  anEvent.description = t[x] + " - Blood Donation";
  anEvent.limit       = 3;
  anEvent.display     = displayBloodDriveEvent;
  anEvent.first       = x==0;
  anEvent.last        = x==(t.length-1);
 }

//----------------------------------------------------------------------
//- Practitioners
//----------------------------------------------------------------------

 var displayPractitionerEvent = function()
 {
  if (this.top)
  {
    var group = this.parent.getGroup(this.group);
    var names = group.getSubGroupNames();

    tbaWrite.writeln('<p></p>');
    tbaWrite.writeln("<h2>Healthcare Practitioners</h2>");
    tbaWrite.writeln("<center>(<a href='http://www.bethami.org/wharff/panels/practitioners'>Practitioner Bios</a>)</center>");
    tbaWrite.writeln("<table border='0' align='center' class='wharffPractitionerTable'>");
    tbaWrite.writeln(" <thead>");
    tbaWrite.writeln("  <tr>");
    tbaWrite.writeln("   <th>&nbsp;</th>");

    var i = 1;

    for (n in names)
    {
      var name = names[n];
          name = name.replace(/: /, ":<br>");

      tbaWrite.writeln("   <th class='wharffPractitioner"+(i++)+"'>"+name+"</th>");
    }

    tbaWrite.writeln("  </tr>");
    tbaWrite.writeln(" </thead>");
    tbaWrite.writeln(" <tbody>");
  }

  if (this.col == 1)
  {
    tbaWrite.writeln("  <tr>");
    tbaWrite.writeln("   <td align='right' class='wharffPractitioner0'>"+this.time+"</td>");
  }

  tbaWrite.write("   <td align='center' class='"+this.style+"'>");

  if (this.taken < this.limit)
   tbaWrite.write("   <input type='checkbox' name='event' id='"+this.id+"' value='"+this.id+"'>");
  else
   tbaWrite.write(this.limit == 0 ? "    x" : "    -");

  tbaWrite.writeln("   </td>");

  if (this.lastcol)
    tbaWrite.writeln("  </tr>");

  if (this.bottom)
  {
    tbaWrite.writeln(" </tbody>");
    tbaWrite.writeln("</table>");
  }
 };

 i = 0;
 var row       = 1;
 var col       = 1
 var limit     = 1;
 var styles    = ["wharffPractitioner1", "wharffPractitioner2",
                  "wharffPractitioner3", "wharffPractitioner4",
                  "wharffPractitioner5"];
 var subgroups = ["Ilene Gottlieb: Healing Touch",
                  "Mark Rubman: Massage",
                  "May Kesler: Massage",
                  "Hilde Groves: Reiki",
                  "Janell Herm: Massage"];
 var times     = ["10:00 AM", "10:20 AM", "10:40 AM",
                  "11:00 AM", "11:20 AM", "11:40 AM",
                  "12:00 PM", "12:20 PM", "12:40 PM",
                   "1:00 PM",  "1:20 PM", "1:40 PM",
                   "2:00 PM",  "2:20 PM", "2:40 PM",
                   "3:00 PM",  "3:20 PM", "3:40 PM"];

 var limits    = [[0, 1, 1, 0, 1],
                  [0, 1, 1, 0, 1],
                  [0, 1, 1, 0, 1],
                  [0, 1, 1, 1, 1],
                  [0, 1, 1, 1, 1],
                  [1, 1, 1, 1, 1],
                  [1, 1, 0, 1, 0],
                  [1, 1, 1, 1, 1],
                  [1, 1, 1, 1, 1],
                  [1, 1, 1, 1, 1],
                  [1, 1, 1, 1, 1],
                  [1, 1, 1, 1, 1],
                  [1, 1, 1, 1, 0],
                  [1, 1, 1, 1, 0],
                  [1, 1, 1, 1, 0],
                  [1, 1, 1, 0, 0],
                  [1, 1, 1, 0, 0],
                  [1, 1, 1, 0, 0]];

 for (j in times)
 {
  col = 1;

  for (g in subgroups)
  {
   var style    = styles[g];
   var subgroup = subgroups[g];

   anEvent = wharffEvents.addEvent (new wharffEvent('Practitioners',++i));
   anEvent.style       = style;
   anEvent.subgroup    = subgroup;
   anEvent.display     = displayPractitionerEvent;
   anEvent.time        = times[j];
   anEvent.description = times[j] + " - " + subgroup;
   anEvent.col         = col;
   anEvent.lastcol     = g==(subgroups.length-1);
   anEvent.row         = row;
   anEvent.limit       = limits[j][g];
   anEvent.top         = row == 1 && col == 1;
   anEvent.bottom      = anEvent.lastcol && j==(times.length-1);

   col++;
  }

  row++;
 }

//----------------------------------------------------------------------
//- Nutrition Counseling
//----------------------------------------------------------------------

 var displayNutritionCounselingEvent = function()
 {
  if (this.first)
  {
    tbaWrite.writeln("<p></p><h2>Nutrition Consultations</h2>");
    tbaWrite.writeln("<center>(<a href='http://www.bethami.org/wharff/panels/nutrition'>Nutritionist Bios</a>)</center>");
    tbaWrite.writeln("<table border='0' align='center' class='"+this.style+"'>");
    tbaWrite.writeln("  <th colspan='2' align='center'>");
  }

  tbaWrite.writeln(" <tr>");
  tbaWrite.write  ("  <td align='center' class='"+this.style+"'>");

  if (this.taken < this.limit)
   tbaWrite.write  ("   <input type='checkbox' name='event' id='"+this.id+"' value='"+this.id+"'>");
  else
   tbaWrite.write  ("   -");


  tbaWrite.writeln("  </td>");
  tbaWrite.writeln("  <td align='right' class='"+this.style+"'>"+this.time+"</td>");
  tbaWrite.writeln("  <td align='left'  class='"+this.style+"'>"+this.presenter+"</td>");
  tbaWrite.writeln(" </tr>");

  if (this.last)
    tbaWrite.writeln("</table>");
 };

  i = 0;
  times = ["10:00 AM", "10:20 AM", "10:40 AM",
           "11:00 AM", "11:20 AM", "11:40 AM",
           "12:00 PM", "12:20 PM", "12:40 PM",
            "1:00 PM",  "1:20 PM",  "1:40 PM",
            "2:00 PM",  "2:20 PM",  "2:40 PM",
            "3:00 PM",  "3:20 PM",  "3:40 PM"];
   var mp = "Melanie Polk";
   var wd = "Wendy Davis";
   var op = "Randi Weissberger";
   var p  = [mp, mp, mp,
             mp, mp, mp,
             wd, wd, wd,
             wd, wd, wd,
             wd, wd, wd,
             op, op, op];

  for (j in times)
  {
   anEvent = wharffEvents.addEvent (new wharffEvent('Nutritionists',++i));
   anEvent.style       = "wharffNutritionConsultation";
   anEvent.display     = displayNutritionCounselingEvent;
   anEvent.time        = times[j];
   anEvent.subgroup    = p[j];
   anEvent.description = times[j] + " - Nutrition Counseling with " + p[j];
   anEvent.presenter   = p[j];
   anEvent.limit       = 1;
   anEvent.first       = j==0;
   anEvent.last        = j==(times.length-1);
  }

//----------------------------------------------------------------------
//- Clinics
//----------------------------------------------------------------------

 var displayClinicEvent = function()
 {
  if (this.top)
  {
    var group = this.parent.getGroup(this.group);
    var names = group.getSubGroupNames();

    tbaWrite.writeln('<p></p>');
    tbaWrite.writeln("<h2>Clinics</h2>");
    tbaWrite.writeln("<center>(<a href='http://www.bethami.org/wharff/panels/clinicians'>Clinician Bios</a>)</center>");
    tbaWrite.writeln("<table border='0' align='center' class='wharffClinicTable'>");
    tbaWrite.writeln(" <thead>");
    tbaWrite.writeln("  <tr>");
    tbaWrite.writeln("   <th>&nbsp;</th>");

    var i=1;

    for (n in names)
      tbaWrite.writeln("   <th class='wharffClinic"+(i++)+"'>"+names[n]+"</th>");

    tbaWrite.writeln("  </tr>");
    tbaWrite.writeln(" </thead>");
    tbaWrite.writeln(" <tbody>");
  }

  if (this.col == 1)
  {
    tbaWrite.writeln("  <tr>");
    tbaWrite.writeln("   <td align='center' class='wharffClinic0'>"+this.time+"</td>");
  }

  tbaWrite.write("   <td align='center' class='"+this.style+"'>");

  if ((this.taken < this.limit) && (this.presenter != ""))
   tbaWrite.write("   <input type='checkbox' name='event' id='"+this.id+"' value='"+this.id+"'>");
  else
   tbaWrite.write("    -");

  tbaWrite.writeln("    <br>"+this.presenter);
  tbaWrite.writeln("   </td>");

  if (this.lastcol)
    tbaWrite.writeln("  </tr>");

  if (this.bottom)
  {
    tbaWrite.writeln(" </tbody>");
    tbaWrite.writeln("</table>");
  }
 };

 i = 0;
 row       = 1;
 col       = 1;
 limit     = 1;
 times     = ["10:00 AM", "10:20 AM", "10:40 AM",
              "11:00 AM", "11:20 AM", "11:40 AM",
              "12:00 PM", "12:20 PM", "12:40 PM",
               "1:00 PM",  "1:20 PM",  "1:40 PM",
               "2:00 PM",  "2:20 PM",  "2:40 PM",
               "3:00 PM",  "3:20 PM",  "3:40 PM" ];
 styles    = ["wharffClinic1", "wharffClinic2", "wharffClinic3",  "wharffClinic4",  "wharffClinic5", "wharffClinic6"];
 subgroups = ["Dermatology",   "Podiatry",      "Blood Pressure", "Oral Screening", "Glaucoma",      "Audiology"];
 var names = [
             ["Dr. Rothman",   "Dr. Spector",   "S. Schick, RN",  "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Rothman",   "Dr. Spector",   "S. Schick, RN",  "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Rothman",   "Dr. Spector",   "S. Schick, RN",  "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],

             ["Dr. Rothman",   "Dr. Spector",   "S. Schick, RN",  "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Rothman",   "Dr. Spector",   "S. Schick, RN",  "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Rothman",   "Dr. Spector",   "S. Schick, RN",  "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],

             ["Dr. Rothman",   "Dr. Spector",   "B. Willens, RN", "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Rothman",   "Dr. Spector",   "B. Willens, RN", "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Rothman",   "Dr. Spector",   "B. Willens, RN", "Dr. Wallace",    "Dr. Gross",     "S. Yaffe-Oziel"],

             ["Dr. Ford",      "Dr. Kominsky",  "B. Willens, RN", "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Ford",      "Dr. Kominsky",  "B. Willens, RN", "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Ford",      "Dr. Kominsky",  "B. Willens, RN", "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],

             ["Dr. Ford",      "Dr. Kominsky",  "",               "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Ford",      "Dr. Kominsky",  "",               "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Ford",      "Dr. Kominsky",  "",               "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],

             ["Dr. Ford",      "Dr. Kominsky",  "",               "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Ford",      "Dr. Kominsky",  "",               "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ["Dr. Ford",      "Dr. Kominsky",  "",               "Dr. Sorkin",     "Dr. Gross",     "S. Yaffe-Oziel"],
             ];

 for (j in times)
 {
  col = 1;

  for (g in subgroups)
  {
   var style    = styles[g];
   var subgroup = subgroups[g];

   anEvent = wharffEvents.addEvent (new wharffEvent('Clinics',++i));
   anEvent.style       = style;
   anEvent.subgroup    = subgroup;
   anEvent.display     = displayClinicEvent;
   anEvent.time        = times[j];
   anEvent.col         = col;
   anEvent.presenter   = names[j][g];
   anEvent.description = times[j] + " - " + subgroup + " with " + names[j][g];
   anEvent.lastcol     = g==(subgroups.length-1);
   anEvent.row         = row;
   anEvent.limit       = limit;
   anEvent.top         = row == 1 && col == 1;
   anEvent.bottom      = anEvent.lastcol && j==(times.length-1);

   col++;
  }

  row++;
 }

//----------------------------------------------------------------------
//- Shuttle Bus
//----------------------------------------------------------------------

 var displayBusEvent = function()
 {
  var header    = this.subgroup;
  var goingHome = header.search(/From: WHARFF/) != -1;

  if (this.veryTop)
  {
    tbaWrite.writeln("<p></p>");
    tbaWrite.writeln("<table border='0' width='100%'>");
    tbaWrite.writeln(" <tr>");
    tbaWrite.writeln("  <td align='left'>");
    tbaWrite.writeln("   <a href='#cprContact Us'>Kentlands/Falls Grove/Travilah</a>");
//  tbaWrite.writeln("   <a href='#Kentlands/Falls Grove/Travilah'>Kentlands/Falls Grove/Travilah</a>");
    tbaWrite.writeln("  </td>");
    tbaWrite.writeln("  <td align='left'>");
    tbaWrite.writeln("   <a href='#Mid Pike Plaza/La Madeline'>Mid Pike Plaza/La Madeline</a>");
    tbaWrite.writeln("  </td>");
    tbaWrite.writeln("  <td align='right'>");
    tbaWrite.writeln("   <a href='#Leisure World'>Leisure World</a>");
    tbaWrite.writeln("  </td>");
    tbaWrite.writeln(" </tr>");
    tbaWrite.writeln("</table>");
  }

  if (this.top)
  {
    var group = this.parent.getGroup(this.group);
    var names = group.getSubGroupNames();
    var route;

    if (goingHome)
    {
      header = "Returning Home";
      route  = "";
    }
    else
    {
      route  = header.match(/From: (.+) To:/)[1];
      header = "Coming to WHARFF";

      if (this.veryTop)
         route  = "<a id='"+route+"'/>"+route;
    }

    if (!this.veryTop && !goingHome)
     tbaWrite.writeln("<div align='right'><a id='"+route+"' href='#cprContact Us'>Top of Page</a></div>");

    tbaWrite.writeln('<p></p>');
    tbaWrite.writeln("<p style='text-align:center;font-size:16pt;'><b>"+route+"</b></p>");
    tbaWrite.writeln("<table border='0' align='center' width='75%' class='wharffBusTable'>");
    tbaWrite.writeln(" <thead>");
    tbaWrite.writeln("  <tr>");
    tbaWrite.writeln("   <th colspan='2' align='center'>"+header);
    tbaWrite.writeln("<br><span style='font-size:10pt'>(Bus will leave 10 minutes after scheduled pick up time)</span></th>");
    tbaWrite.writeln("  </tr>");
    tbaWrite.writeln(" </thead>");
    tbaWrite.writeln(" <tbody>");
  }

  tbaWrite.writeln("  <tr>");
  tbaWrite.writeln("   <td align='left' valign='top' width='20%' class='"+this.style+"'>");
  tbaWrite.writeln("    "+this.time+"<br>");

  if (this.taken < this.limit)
   tbaWrite.writeln("   <input type='checkbox' name='event' id='"+this.id+"' value='"+this.id+"'> ");
  else
   tbaWrite.writeln("     ");

  tbaWrite.writeln("   </td>");
  tbaWrite.writeln("   <td align='left' valign='top' class='"+this.style+"'>");

  var desc = this.description.replace(/\|/g, "<br>");

  tbaWrite.write(desc);

  tbaWrite.writeln("   </td>");
  tbaWrite.writeln("  </tr>");

  if (this.bottom)
  {
    tbaWrite.writeln(" </tbody>");
    tbaWrite.writeln("</table>");

    if (goingHome)
      tbaWrite.writeln("  <hr>");
  }
 };

 i     = 0;
 limit = 23;

 //--------------------------- Kentlands AM --------------------------
 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: Kentlands/Falls Grove/Travilah To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 1";
 anEvent.description = "&nbsp;9:45am Kentlands - Whole Foods | 10:10am Falls Grove - Thomas Farm Rec Center | 10:25am - Travilah Gardens Community Center | 10:30am WHARFF";
 anEvent.limit       = limit;
 anEvent.top         = true;
 anEvent.bottom      = false;
 anEvent.veryTop     = true;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus2";
 anEvent.subgroup    = "From: Kentlands/Falls Grove/Travilah To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 2";
 anEvent.description = "11:05am Kentlands - Whole Foods | 11:30am Falls Grove - Thomas Farm Rec Center | 11:45am - Travilah Gardens Community Center | 11:50am WHARFF";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: Kentlands/Falls Grove/Travilah To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 3";
 anEvent.description = "12:40pm Kentlands - Whole Foods |  &nbsp;1:05pm Falls Grove - Thomas Farm Rec Center | &nbsp;1:20pm Travilah Gardens Community Center | &nbsp;1:25pm WHARFF";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = true;

 //--------------------------- Kentlands PM --------------------------
 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: WHARFF To: Travilah/Falls Grove/Kentlands";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 1";
 anEvent.description = "1:45pm WHARFF  | 2:00pm Travilah Gardens Community Center | 2:20pm Falls Grove - Thomas Farm Rec Center | 2:55pm Kentlands - Whole Foods";
 anEvent.limit       = limit;
 anEvent.top         = true;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus2";
 anEvent.subgroup    = "From: WHARFF To: Travilah/Falls Grove/Kentlands";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 2";
 anEvent.description = "3:45pm WHARFF  | 4:00pm Travilah Gardens Community Center | 4:20pm Falls Grove - Thomas Farm Rec Center | 4:55pm Kentlands - Whole Foods";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = true;

 //-------------------------- Mid Pike Plaza AM -------------------------
 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: Mid Pike Plaza/La Madeline To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 1";
 anEvent.description = "&nbsp;9:35am Mid Pike Plaza/La Madeline | 10:05am WHARFF";
 anEvent.limit       = limit;
 anEvent.top         = true;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus2";
 anEvent.subgroup    = "From: Mid Pike Plaza/La Madeline To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 2";
 anEvent.description = "10:40am Mid Pike Plaza/La Madeline | 11:20am WHARFF";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: Mid Pike Plaza/La Madeline To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 3";
 anEvent.description = "11:55am Mid Pike Plaza/La Madeline | 12:15pm WHARFF";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = true;

 //-------------------------- Mid Pike Plaza PM -------------------------
 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: WHARFF To: Mid Pike Plaza/La Madeline";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 1";
 anEvent.description = " 1:45pm WHARFF | 2:05pm Mid Pike Plaza/La Madeline";
 anEvent.limit       = limit;
 anEvent.top         = true;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus2";
 anEvent.subgroup    = "From: WHARFF To: Mid Pike Plaza/La Madeline";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 2";
 anEvent.description = " 2:45pm WHARFF | 3:05pm Mid Pike Plaza/La Madeline";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: WHARFF To: Mid Pike Plaza/La Madeline";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 3";
 anEvent.description = " 3:45pm WHARFF | 4:05pm Mid Pike Plaza/La Madeline";
 anEvent.limit       = limit;
 anEvent.top         = false;
 anEvent.bottom      = true;

 //------------------------- Leisure World AM ------------------------
 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: Leisure World To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 1";
 anEvent.description = "&nbsp;9:30am Club House Two | 10:05am WHARFF<br><i>Please make reservations at E&amp;R</i>";
 anEvent.limit       = -1;
 anEvent.top         = true;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus2";
 anEvent.subgroup    = "From: Leisure World To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 2";
 anEvent.description = "10:45am Club House Two | 11:15am WHARFF<br><i>Please make reservations at E&amp;R</i>";
 anEvent.limit       = -1;
 anEvent.top         = false;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: Leisure World To: WHARFF";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 3";
 anEvent.description = "12:00pm Club House Two | 12:35pm WHARFF<br><i>Please make reservations at E&amp;R</i>";
 anEvent.limit       = -1;
 anEvent.top         = false;
 anEvent.bottom      = true;

 //------------------------- Leisure World PM ------------------------
 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: WHARFF To: Leisure World";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 1";
 anEvent.description = " 1:25pm WHARFF | 1:55pm Club House Two<br><i>Please make reservations at E&amp;R</i>";
 anEvent.limit       = -1;
 anEvent.top         = true;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus2";
 anEvent.subgroup    = "From: WHARFF To: Leisure World";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 2";
 anEvent.description = " 2:40pm WHARFF | 3:15pm Club House Two<br><i>Please make reservations at E&amp;R</i>";
 anEvent.limit       = -1;
 anEvent.top         = false;
 anEvent.bottom      = false;

 anEvent = wharffEvents.addEvent (new wharffEvent('Shuttle_Bus',++i));
 anEvent.style       = "wharffBus1";
 anEvent.subgroup    = "From: WHARFF To: Leisure World";
 anEvent.display     = displayBusEvent;
 anEvent.time        = "Trip 3";
 anEvent.description = " 4:00pm WHARFF | 4:30pm Club House Two<br><i>Please make reservations at E&amp;R</i>";
 anEvent.limit       = -1;
 anEvent.top         = false;
 anEvent.bottom      = true;


//----------------------------------------------------------------------

 return wharffEvents;
}

