 var Now = new Date();

  var IndoorEvents = new Array(5);

  IndoorEvents[0] = new Array(2);
  IndoorEvents[0][0] = "September 13, 2011 20:00:00";
  IndoorEvents[0][1] = "Tue 13 Sep: Ann and Phil Farrer: Egypt, birds and antiquities";
  IndoorEvents[1] = new Array(2);
  IndoorEvents[1][0] = "October 11, 2011 20:00:00";
  IndoorEvents[1][1] = "Tue 11 Oct: Great Bustards on Salisbury Plain update";
  IndoorEvents[2] = new Array(2);
  IndoorEvents[2][0] = "November 8, 2011 20:00:00";
  IndoorEvents[2][1] = "Tue 8 Nov: Steve Magennis: Wild about photography";
  IndoorEvents[3] = new Array(2);
  IndoorEvents[3][0] = "December 13, 2011 20:00:00";
  IndoorEvents[3][1] = "Tue 13 Dec: Members Evening and Christmas Social";
  IndoorEvents[4] = new Array(2);
  IndoorEvents[4][0] = "January 10, 2012 20:00:00";
  IndoorEvents[4][1] = "Tue 10 Jan: Chris Corrigan: RSPB South-East update";
  IndoorEvents[5] = new Array(2);
  IndoorEvents[5][0] = "February 14, 2012 20:00:00";
  IndoorEvents[5][1] = "Tue 14 Feb: Stephen Moss: From Avocet to Yellowhammer";
  IndoorEvents[6] = new Array(2);
  IndoorEvents[6][0] = "March 13, 2012 20:00:00";
  IndoorEvents[6][1] = "Tue 13 Mar: Graham Lenton: A tale of two islands";
  IndoorEvents[7] = new Array(2);
  IndoorEvents[7][0] = "April 10, 2012 20:00:00";
  IndoorEvents[7][1] = "Tue 10 Apr: Ann Scott: Rwanda and Burundi";
  IndoorEvents[8] = new Array(2);
  IndoorEvents[8][0] = "May 8, 2012 20:00:00";
  IndoorEvents[8][1] = "Tue 8 May: Annual General Meeting followed by: Clive Hill: Ospreys and Loch Garten";
  IndoorEvents[9] = new Array(2);
  IndoorEvents[9][0] = "June 12, 2012 20:00:00";
  IndoorEvents[9][1] = "Tue 12 Jun: Chris Goodie: The Jewel Hunter";




  var OutdoorEvents = new Array(5);

  OutdoorEvents[0] = new Array(2);
  OutdoorEvents[0][0] = "September 25, 2011 20:00:00";
  OutdoorEvents[0][1] = "Sun 25 Sep: Mini-bus trip to Dungness, Kent";
  OutdoorEvents[1] = new Array(2);
  OutdoorEvents[1][0] = "October 11, 2011 20:00:00";
  OutdoorEvents[1][1] = "Sun 11 Oct: Mini-bus trip to Salisbury Plain";
  OutdoorEvents[2] = new Array(2);
  OutdoorEvents[2][0] = "November 13, 2011 20:00:00";
  OutdoorEvents[2][1] = "Sun 13 Nov: Car-trip to Dinton Pastures";
  OutdoorEvents[3] = new Array(2);
  OutdoorEvents[3][0] = "December 18, 2011 20:00:00";
  OutdoorEvents[3][1] = "Sun 18 Dec: Car trip to Fleet Pond, Hampshire";
  OutdoorEvents[4] = new Array(2);
  OutdoorEvents[4][0] = "January 15, 2012 20:00:00";
  OutdoorEvents[4][1] = "Sun 15 Jan: Mini-bus trip to Pagham Habour, West Sussex";
  OutdoorEvents[5] = new Array(2);
  OutdoorEvents[5][0] = "February 19, 2012 20:00:00";
  OutdoorEvents[5][1] = "Sun 19 Feb: Car trip to Tring Reservoirs, Hertfordshire";
  OutdoorEvents[6] = new Array(2);
  OutdoorEvents[6][0] = "March 18, 2012 20:00:00";
  OutdoorEvents[6][1] = "Sun 18 Mar: Mini-bus trip to The Forest of Dean";
  OutdoorEvents[7] = new Array(2);
  OutdoorEvents[7][0] = "April 15, 2012 20:00:00";
  OutdoorEvents[7][1] = "Sun 15 Apr: Mini-bus trip to Portland Bill and Radipole";
  OutdoorEvents[8] = new Array(2);
  OutdoorEvents[8][0] = "May 11 - 14, 2012 20:00:00";
  OutdoorEvents[8][1] = "Fri 11 - Sat 14 May: Weekend away to Suffolk";
  OutdoorEvents[9] = new Array(2);
  OutdoorEvents[9][0] = "June 16, 2012 20:00:00";
  OutdoorEvents[9][1] = "Sun 16: A car trip to Thursley Common";


var FundraisingEvents = new Array(5);

  FundraisingEvents[0] = new Array(2);
  FundraisingEvents[0][0] = "August 7 , 2011 20:00:00";
  FundraisingEvents[0][1] = "Sat 7 Aug: Earley Green Fair";
  FundraisingEvents[1] = new Array(2);
  FundraisingEvents[1][0] = "September 3, 2011 20:00:00";
  FundraisingEvents[1][1] = "Sat 3 Sep: Woodley Street Collection";
  FundraisingEvents[2] = new Array(2);
  FundraisingEvents[2][0] = "September 17 - 18, 2011 20:00:00";
  FundraisingEvents[2][1] = "Sat 17 & Sun 18 Sept: RSPB at Newbury Show";
  FundraisingEvents[3] = new Array(2);
  FundraisingEvents[3][0] = "October 8, 2011 20:00:00";
  FundraisingEvents[3][1] = "Sat 8 Oct: Coin collection at ASDA, Lower Earley, Reading";
  FundraisingEvents[4] = new Array(2);
  FundraisingEvents[4][0] = "October 15, 2011 20:00:00";
  FundraisingEvents[4][1] = "Sat 15 Oct: Coin Collection at Sainsburys, Calcot";
  FundraisingEvents[5] = new Array(2);
  FundraisingEvents[5][0] = "October 22, 2011 20:00:00";
  FundraisingEvents[5][1] = "Sat 22 Oct: Charity Christmas Sale at St. Mary Magdalen Church, Tilehurst";
  FundraisingEvents[6] = new Array(2);
  FundraisingEvents[6][0] = "October 29, 2011 20:00:00";
  FundraisingEvents[6][1] = "Sat 29 Oct: Feed the Birds Day, at Thatcham Nature Discovery Centre";
  FundraisingEvents[7] = new Array(2);
  FundraisingEvents[7][0] = "October 29, 2011 20:00:00";
  FundraisingEvents[7][1] = "Sat 29 Oct: Christmas Card Sale, Sonning Common Village Hall";
  FundraisingEvents[8] = new Array(2);
  FundraisingEvents[8][0] = "November 20, 2011 20:00:00";
  FundraisingEvents[8][1] = "Sat 20 Nov: Quiz Night, Burghfield Village Hall";
  FundraisingEvents[9] = new Array(2);
  FundraisingEvents[9][0] = "January 23, 2012 20:00:00";
  FundraisingEvents[9][1] = "Sat 23 - Sun 24: Big Garden Birdwatch";
  FundraisingEvents[10] = new Array(2);
  FundraisingEvents[10][0] = "February 25, 2012 20:00:00";
  FundraisingEvents[10][1] = "Sat 25 Feb: Skittles Evening at St. Mary Magdalen Hall, Tilehurst";



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);
}
