  var Now = new Date();

  var IndoorEvents = new Array(5);

  IndoorEvents[0] = new Array(2);
  IndoorEvents[0][0] = "September 8, 2009 20:00:00";
  IndoorEvents[0][1] = "Tue 8 Sep: Mike read: The Barn Owl";
  IndoorEvents[1] = new Array(2);
  IndoorEvents[1][0] = "October 13, 2009 20:00:00";
  IndoorEvents[1][1] = "Tue 13 Oct: Robin Nelson: Birding in Hong Kong";
  IndoorEvents[2] = new Array(2);
  IndoorEvents[2][0] = "November 10, 2009 20:00:00";
  IndoorEvents[2][1] = "Tue 11 Nov: Terry Bond: Bird watching in Southern Europe";
  IndoorEvents[3] = new Array(2);
  IndoorEvents[3][0] = "December 8, 2009 20:00:00";
  IndoorEvents[3][1] = "Tue 8 Dec: Members Evening and Christmas Social";
  IndoorEvents[4] = new Array(2);
  IndoorEvents[4][0] = "January 12, 2010 20:00:00";
  IndoorEvents[4][1] = "Tue 12 Jan: Martin Spray: Wildfowl and Wetlands Trust";
  IndoorEvents[5] = new Array(2);
  IndoorEvents[5][0] = "February 9, 2010 20:00:00";
  IndoorEvents[5][1] = "Tue 9 Feb: John Britten: From the Antarctic to the Equator";
  IndoorEvents[6] = new Array(2);
  IndoorEvents[6][0] = "March 9, 2010 20:00:00";
  IndoorEvents[6][1] = "Tue 9 Mar: Brian Gallop: India";
  IndoorEvents[7] = new Array(2);
  IndoorEvents[7][0] = "April 13, 2010 20:00:00";
  IndoorEvents[7][1] = "Tue 13 Apr: Trevor Gunton: In search of Vikings";
  IndoorEvents[8] = new Array(2);
  IndoorEvents[8][0] = "May 11, 2010 20:00:00";
  IndoorEvents[8][1] = "Tue 11 May: Annual General Meeting follow by: Steve Halliday: Birds in Anguilla - conversation in paradise";
  IndoorEvents[9] = new Array(2);
  IndoorEvents[9][0] = "June 8, 2010 20:00:00";
  IndoorEvents[9][1] = "Tue 8 Jun: RSPB Staff from the Southern Region Office";




  var OutdoorEvents = new Array(5);

  OutdoorEvents[0] = new Array(2);
  OutdoorEvents[0][0] = "September 13, 2009 20:00:00";
  OutdoorEvents[0][1] = "Sun 13 Sep: Mini-bus trip to Ham Wall and Shapwick Heath, Somerset";
  OutdoorEvents[1] = new Array(2);
  OutdoorEvents[1][0] = "October 2, 2009 20:00:00";
  OutdoorEvents[1][1] = "Fri 2 Oct - Sun 4 Oct: Long weekend in North France";
  OutdoorEvents[2] = new Array(2);
  OutdoorEvents[2][0] = "October 18, 2009 20:00:00";
  OutdoorEvents[2][1] = "Sun 18 Oct: Car trip to Virginia Water";
  OutdoorEvents[3] = new Array(2);
  OutdoorEvents[3][0] = "November 15, 2009 20:00:00";
  OutdoorEvents[3][1] = "Sun 15 Nov: Mini-bus trip to Nor Marsh and Motney Hill/Cliffe Pools, Kent";
  OutdoorEvents[4] = new Array(2);
  OutdoorEvents[4][0] = "December 13, 2009 20:00:00";
  OutdoorEvents[4][1] = "Sun 13 Dec: Car trip to Stockers Lake, nr Rickmansworth";
  OutdoorEvents[5] = new Array(2);
  OutdoorEvents[5][0] = "January 17, 2010 20:00:00";
  OutdoorEvents[5][1] = "Sun 17 Jan: Mini-bus trip to Slimbridge";
  OutdoorEvents[6] = new Array(2);
  OutdoorEvents[6][0] = "February 11, 2010 20:00:00";
  OutdoorEvents[6][1] = "Thur 11 - 14 Feb: Mini-bus trip for a Long Weekend away to Lancashire";
  OutdoorEvents[7] = new Array(2);
  OutdoorEvents[7][0] = "March 14, 2010 20:00:00";
  OutdoorEvents[7][1] = "Sun 14 Mar: Car trip RSPB Otmoor Reserve, Oxfordshire";
  OutdoorEvents[8] = new Array(2);
  OutdoorEvents[8][0] = "April 18, 2010 20:00:00";
  OutdoorEvents[8][1] = "Sun 18 Apr: Car trip to Burnham Beeches";
  OutdoorEvents[9] = new Array(2);
  OutdoorEvents[9][0] = "May 16, 2010 20:00:00";
  OutdoorEvents[9][1] = "Sun 16 May: Mini-bus trip to Stour Estuary, Essex";
  OutdoorEvents[10] = new Array(2);
  OutdoorEvents[10][0] = "June 13, 2010 20:00:00";
  OutdoorEvents[10][1] = "Sun 13: A car trip in search of Nightjars, venue tbc";


var FundraisingEvents = new Array(5);

  FundraisingEvents[0] = new Array(2);
  FundraisingEvents[0][0] = "September 5, 2009 20:00:00";
  FundraisingEvents[0][1] = "Sat 5 Sep: Woodley Street Collection";
  FundraisingEvents[1] = new Array(2);
  FundraisingEvents[1][0] = "September 19, 2009 20:00:00";
  FundraisingEvents[1][1] = "Sat 19 & Sun 20 Sept: RSPB at Newbury Show";
  FundraisingEvents[2] = new Array(2);
  FundraisingEvents[2][0] = "October 15, 2009 20:00:00";
  FundraisingEvents[2][1] = "Thu 15 Oct: Newbury Coffee Morning at St. Nicholas Church";
  FundraisingEvents[3] = new Array(2);
  FundraisingEvents[3][0] = "October 24, 2009 20:00:00";
  FundraisingEvents[3][1] = "Sat 24 Oct: Charity Christmas Sale at St. Mary Magdalen Church, Tilehurst";
  FundraisingEvents[4] = new Array(2);
  FundraisingEvents[4][0] = "November 14, 2009 20:00:00";
  FundraisingEvents[4][1] = "Sat 14 Nov: ASDA Street Collection, Lower Earley";
  FundraisingEvents[5] = new Array(2);
  FundraisingEvents[5][0] = "January 24, 2010 20:00:00";
  FundraisingEvents[5][1] = "Sat 24 - Sun 25: Big Garden Birdwatch";
  FundraisingEvents[6] = new Array(2);
  FundraisingEvents[6][0] = "January 30, 2010 20:00:00";
  FundraisingEvents[6][1] = "Sat 30 Jan: RSPB Climate Event, Cookham Dean village hall: 10:30 - 15:30";
  FundraisingEvents[7] = new Array(2);
  FundraisingEvents[7][0] = "February 20, 2010 20:00:00";
  FundraisingEvents[7][1] = "Sat 20 Feb: Skittles Evening at St. Mary Magdalen Hall, Tilehurst";
  FundraisingEvents[8] = new Array(2);
  FundraisingEvents[8][0] = "March 14, 2010 20:00:00";
  FundraisingEvents[8][1] = "Sat 14 Mar: Meet Mother Nature, Caversham Court Gardens 12:00 - 15:00";
  FundraisingEvents[9] = new Array(2);
  FundraisingEvents[9][0] = "April 10, 2010 20:00:00";
  FundraisingEvents[9][1] = "Sat 10 Apr: Greenham Common 10th Anniversary: 11:00 - 16:00";
  FundraisingEvents[10] = new Array(2);
  FundraisingEvents[10][0] = "May 9, 2010 20:00:00";
  FundraisingEvents[10][1] = "Sat 9 May: RSPB at Burghfeild May Fayre, Burghfield";
  FundraisingEvents[11] = new Array(2);
  FundraisingEvents[11][0] = "June 27, 2010 20:00:00";
  FundraisingEvents[11][1] = "Sat 7 Jun: RSPB at Holybrooke Community Centre, Calcot";
  FundraisingEvents[12] = new Array(2);
  FundraisingEvents[12][0] = "July 11, 2010 20:00:00";
  FundraisingEvents[12][1] = "Sat 11 - Sun 12 Jul: RSPB at Woodcote Rally, Woodcote";
  FundraisingEvents[13] = new Array(2);
  FundraisingEvents[13][0] = "July 19, 2010 20:00:00";
  FundraisingEvents[13][1] = "Sat 19 Jul: RSPB at DBARC";



function GetNextOutdoorMeeting()
{
  var s = "";

  for(var i = 0; i < OutdoorEvents.length; i++)
  {
    EventDate = new Date(OutdoorEvents[i][0]);

    if (EventDate > Now)
    {
      s = OutdoorEvents[i][1];
      i = OutdoorEvents.length;
    }
  }

  if(s.length == 0) {
    s = "Awaiting new season programme.";
  }

  document.write(s);
}

function GetNextIndoorMeeting()
{
  var s = "";

  for(var i = 0; i < IndoorEvents.length; i++)
  {
    EventDate = new Date(IndoorEvents[i][0]);

    if (EventDate > Now)
    {
      s = IndoorEvents[i][1];
      i = IndoorEvents.length;
    }
  }

  if(s.length == 0) {
    s = "Awaiting new season programme.";
  }

  document.write(s);
}
function GetNextFundraisingEvents()
{
  var s = "";

  for(var i = 0; i < FundraisingEvents.length; i++)
  {
    EventDate = new Date(FundraisingEvents[i][0]);

    if (EventDate > Now)
    {
      s = FundraisingEvents[i][1];
      i = FundraisingEvents.length;
    }
  }

  if(s.length == 0) {
    s = "Awaiting new season programme.";
  }

  document.write(s);
}