var arrBday = [

['10 AM Worship. Holy Communion. DVD Bible study follows.', '9/5'],
['7 PM Trustees meeting.', '9/8'],
['3 PM Mission meeting.', '9/9'],
['Providence Baby Shower. Rally Day starts the new school year. 10 AM Worship and Sunday School. Potluck picnic in the Township Park follows.', '9/12'],
['Lighthouse UMC Community Day.', '9/18'],
['9:45 AM Sunday School. 10 AM Worship. DVD Bible study follows.', '9/19'],

['7 PM Deacons meeting.', '9/20'],
['7 PM Geauga Cooperative Ministry meeting.', '9/21'],
['7 PM Cabinet meeting.', '9/22'],
['Pilgrim Hills work-camp.', '9/25'],
['9:45 AM Sunday School. 10 AM Worship. DVD Bible study follows. 1:30 PM CROP Walk at Geauga Fairgrounds, Burton.', '9/26'],

['10 AM. Worship. DVD Bible study follows worship.', '8/1'],

['6-8:30 PM. Vacation Bible School.', '8/2'],

['6-8:30 PM. Vacation Bible School.', '8/3'],

['6-8:30 PM. Vacation Bible School.', '8/4'],

['6-8:30 PM. Vacation Bible School.', '8/5'],

['6-8:30 PM. Vacation Bible School.', '8/6'],

['10 AM. Worship at Lighthouse UMC. Vacation Bible School program presented.', '8/8'],

['7 PM. Trustees meeting.', '8/11'],

['10 AM. Worship. DVD Bible Study follows worship.', '8/15'],

['7 PM. La Leche League Breastfeeding support group.', '8/19'],

['10 AM. Worship. DVD Bible Study follows worship. 2 PM. Blossom Hill Worship.', '8/22'],

['Women\'s Fellowship. 10 AM.', '6/16'],

['10 AM. Worship. DVD Bible Study follows worship.', '8/29'],

['10 AM. Worship. Communion by intinction. Happy Birthday USA.', '7/4'],

['7 PM. Financial Planning Committee meeting.', '7/7'],

['3 PM. Mission Committee meeting.', '7/8'],

['11 AM. Memorial Service for Elnora Zepp.', '7/9'],

['NO WORSHIP AT CLARIDON. 10 AM. Geauga Cooperative Unity Worship Service at Federated Church Family Life Center, Bainbridge.', '7/11'],

['7 PM. Trustees meeting.', '7/14'],

['7 PM. La Leche League Breastfeeding support group.', '7/15'],

['11 AM. Memorial Service for Stanley and Elizabeth Newberry.', '7/16'],

['10 AM. Worship. DVD Bible Study following Worship.', '7/18'],

['6:30 PM. Strawberry Festival with Strawberries, ice cream. 7 PM. The Great Geauga County Fair Band.', '7/21'],

['10 AM. Worship. DVD Bible Study following Worship. 2 PM. Blossom Hill Worship.', '7/25'],

['Women\'s Fellowship. 10 AM.', '6/16'],

['7 PM. Cabinet meeting.', '7/28'],

['7 PM. Christian Education meeting.', '6/30'],

['Great Lakes Regional Youth Event. Defiance College, Defiance, OH.', '6/19']




//...and so on (last entry must not have a trailing comma)
];

function getBdaysThisWeek(){
var arrMonth = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var bday, idx;
var EventList = new Array();
var today = new Date();

for (var i=0;i<arrBday.length;i++){
var bday = new Date(arrBday[i][1] + '/' + today.getFullYear());
if (isNaN(bday)) continue;

if ( isBdayInRange(bday, 7) ){
idx = EventList.length;
EventList[idx] = new Object();
EventList[idx].name = arrBday[i][0];
EventList[idx].bday = bday;
EventList[idx].month = arrMonth[bday.getMonth()]; 
}
}
if (EventList.length > 0){ //sort asc by birthdate
EventList.sort(
function(a, b){
if (a.bday < b.bday) return -1
if (a.bday > b.bday) return 1;
return 0;
}
);
}
return EventList;
}

function isBdayInRange(bday, interval){
//credit for this function goes to:
//-Rob (@slingfive) Eberhardt, Slingshot Solutions
//http://slingfive.com/pages/code/jsDate/jsDate.html

var today = new Date(); 
//have to override time so entire day will be valid
today.setHours(0,0,0,0);
//if the birthday has already occurred in the year, increment to the next year
if (bday < today)
bday.setFullYear(bday.getFullYear() + 1);

// get ms between dates (UTC) and make into "difference" date
var iDiffMS = bday.valueOf() - today.valueOf();
//divide iDiffMS by 1000, Seconds, Minutes, Hours
nDays = parseInt(iDiffMS / 1000 / 60 / 60 / 24);

if(parseInt(nDays) <= parseInt(interval))
return true;
else
return false;
}

function displayEventList(){
var date = new Date().getDate(); 
var EventList = getBdaysThisWeek();
var len = EventList.length;
var s = "";
if (len>0){
s += '<ul>';
for (var i=0; i<len; i++){
s += '<li' + ((date == EventList[i].bday.getDate())?' class="bdayToday"':'')+ '>\
' + EventList[i].name + ' <b></b>  ' 
+ EventList[i].month + ' ' + EventList[i].bday.getDate() + '</li>'+ '<hr>'; 
}
s += '</ul>';
}
else{
s += "NONE";
}
document.write(s);
}