var news = [
    //[Post date, Post month, Post year, Expire date, Expire month, Expire year, Href, Display text, Blank flag]

    [17,1,2012,      31,3,2012,   "galleryfootbridge.htm","The new railway footbridge - photos!",0],
    [20,12,2011,      31,1,2012,   "airAmbulanceVolunteers.htm","A request for volunteers to keep a vital charity flying",0],
//    [20,11,2011,      4,12,2011,   "clerk november 11.htm","Join in with carols as the Christmas tree lights are switched on",0],
    [12,11,2011,      29,2,2012,   "saltbins.htm","A hard winter coming? Check where to find the village's <b>saltbins</b>",0],
    [21,10,2011,      31,1,2012,   "http://www.facebook.com/pages/Kennington-Community-Cafe/207044912658522","Have you visited Kennington's Community Caf&eacute;?",1],
    [12,10,2011,      30,11,2011,   "BMXupdate.htm","The BMX track at Forest Side - COMING SOON!",0],
//    [27,9,2011,      31,10,2011,   "pamstatement270911.pdf","Statement on Pam Johnston, Parish Clerk",1],
    [11,8,2011,      31,10,2011,   "HeatingBills.htm","Does the thought of your next heating bill leave you cold?",0],
    [11,8,2011,      30,9,2011,   "VillageCentreCAD.htm","Can you CAD? The Village Centre needs your help",0],
    [11,8,2011,      30,9,2011,   "WebSiteVolunteer.htm","Help wanted with keeping this website up to date",0],
    [12,7,2011,      30,9,2011,   "gardencomp2011.pdf","Results of the Best Kept Garden Competition - pictures now posted",0],
    [18,6,2011,      21,9,2011,   "singCourse.pdf","Ladies, a fun musical opportunity for you.",1],
    [12,6,2011,      31,8,2011,   "minutes/JunkMailAdvice.pdf","Do you get too much junk mail? Read this ...",1],
//    [17,5,2011,      17,6,2011,   "postalvotes.htm","An important message about undelivered postal votes",0],
//    [6,4,2011,      7,5,2011,   "wastecollection.htm","Grey bin? Green bin? Which? and When? Check here",0],
//    [12,3,2011,      21,4,2011,   "annualmeeting.htm","Annual Parish Meeting 21 April 2011 - report and agenda",0],
//    [7,3,2011,      7,6,2011,   "https://picasaweb.google.com/roger.winkworth","Progress at the Red Bridge - some illuminating photos",1],
//    [26,1,2011,      9,2,2011,   "blooddonor.htm","Blood donation session in the village: 9 February",0],
//    [10,1,2011,      13,1,2011,   "hydropower.htm","Hydro power generation: a proposal for Kennington",0],
//    [15,1,2011,      30,6,2011,   "http://savekenningtonlibrary.blogspot.com/","A campaign to save Kennington library",1],
//    [13,10,2010,      14,11,2010,   "remembrance.htm","An Act of Remembrance at Kennington War Memorial",0],
//    [13,2,2010,      10,4,2010,   "KennClean poster 2010.pdf","KennCLean Saturday - 10 April - litter clearing throughout the village",0],
//    [10,2,2010,      10,4,2010,   "gallerymemories.htm","More memories of Kennington - send in your photos!",0],
//    [9,2,2010,      8,3,2010,   "organisations/k4fairtrade/","Fairtrade Fortnight - and a Tea Party ...",1],
    ];

    var today = new Date();var count = 0;

var ee = '<table cellspacing=3 cellpadding=3 width=600>';  // was 600
    ee += '<tr><td><h2>News from the Village</h2></td>';
    ee += '<td align="right"><h3 style="border-bottom: #FFbb55 2px solid;padding-bottom:2px;">Added</h3></td></tr>';

    for (i in news){
	    var postDate = new Date();
        postDate.setDate(news[i][0]);
        postDate.setMonth(news[i][1]-1);
        postDate.setFullYear(news[i][2]);

	    var expireDate = new Date();
        expireDate.setDate(news[i][3]);
        expireDate.setMonth(news[i][4]-1);
        expireDate.setFullYear(news[i][5]);

        if ((today >= postDate) && (today <= expireDate)) {
           ee += '<tr><td class="news ';
           ee += (count%2) ? 'yellow">' : 'green">';
           ee += '<a href="' + news[i][6] + '" ';
           ee += 'target="' + ((news[i][8] == 1) ? '_blank' : '_self') + '">';
           ee += news[i][7] + '<\a>';
           ee += '</td><td align="right">' + news[i][0] + '/' + news[i][1] + '</tr>';
           count ++;
        }

    }


    ee += '</table>';


document.write(ee);


