var date1=new Date()
var month=date1.getMonth()
var daym=date1.getDate()
var blue = "#4a5ac6"
var red= "#FF0000"
var green = "#008000"
var black = "#000000"
var purple = "#990099"
var color = "blue"
var today = "Greetings and welcome"

var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")

var todayDate = (daym)+" "+ montharray[month] 

if (todayDate=="1 January")
{today="Happy New Year!"; color=red}
else if (todayDate=="6 January")
{today="The Epiphany of the Lord"; color=blue}
else if (todayDate=="11 January")
{today="The Holy Innocents"; color=red}
else if (todayDate=="18 January")
{today="The Confession of St Peter"; color=blue}
else if (todayDate=="21 January")
{today="St Agnes' Day"; color=blue}
else if (todayDate=="25 January")
{today="The Conversion of St Paul"; color=blue}
else if (todayDate=="26 January")
{today="St Timothy and St Titus' Day"; color=red}
else if (todayDate=="2 February")
{today="The Presentation of the Lord"; color=blue}
else if (todayDate=="5 February")
{today="Martyrs of Japan Day"; color=red}
else if (todayDate=="14 February")
{today="St Valentine's Day"; color=red}
else if (todayDate=="17 February")
{today="Ash Wednesday"; color=purple}
else if (todayDate=="23 February")
{today="St Polycarp of Smyrna's Day"; color=red}
else if (todayDate=="1 March")
{today="St David's Day"; color=red}
else if (todayDate=="5 March")
{today="World Day of Prayer"; color=blue}
else if (todayDate=="14 March")
{today="Mothering Sunday"; color=blue}
else if (todayDate=="17 March")
{today="St Patrick's Day"; color=green}
else if (todayDate=="19 March")
{today="St Joseph of Nazareth's Day"; color=blue}
else if (todayDate=="25 March")
{today="The Annunciation of the Lord"; color=blue}
else if (todayDate=="28 March")
{today="Palm Sunday"; color=red}
else if (todayDate=="1 April")
{today="Maundy Thursday"; color=purple}
else if (todayDate=="2 April")
{today="Good Friday"; color=black}
else if (todayDate=="3 April")
{today="Holy Saturday"; color=red}
else if (todayDate=="4 April")
{today="The Sunday of the Resurrection"; color=red}
else if (todayDate=="22 April")
{today="Earth Day"; color=green}
else if (todayDate=="23 April")
{today="St George's Day"; color=red}
else if (todayDate=="24 April")
{today="Martyrs of the 20th Century Day"; color=red}
else if (todayDate=="26 April")
{today="St Mark the Evangelist's Day"; color=red}
else if (todayDate=="1 May")
{today="St Philip and St James' Day"; color=blue}
else if (todayDate=="6 May")
{today="St John the Evangelist's Day"; color=blue}
else if (todayDate=="9 May")
{today="Happy Mother's Day"; color=blue}
else if (todayDate=="13 May")
{today="Ascension Day"; color=blue}
else if (todayDate=="14 May")
{today="St Matthias the Apostle's Day"; color=red}
else if (todayDate=="23 May")
{today="The Day of Pentecost"; color=red}
else if (todayDate=="24 May")
{today="Victoria Day"; color=blue}
else if (todayDate=="30 May")
{today="Trinity Sunday"; color=green}
else if (todayDate=="1 June")
{today="St Justin's Day"; color=red}
else if (todayDate=="3 June")
{today="Martyrs of Uganda Day"; color=red}
else if (todayDate=="11 June")
{today="St Barnabas the Apostle's Day"; color=blue} 
else if (todayDate=="18 June")
{today="Bernard Mizeki's Day"; color=red}
else if (todayDate=="20 June")
{today="Happy Father's Day"; color=blue}
else if (todayDate=="24 June")
{today="St John the Baptist's Day"; color=blue}
else if (todayDate=="29 June")
{today="St Peter and St Paul's Day"; color=red}
else if (todayDate=="1 July")
{today="Happy Canada Day"; color=red}
else if (todayDate=="3 July")
{today="St Thomas the Apostle's Day"; color=red}
else if (todayDate=="11 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="12 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="13 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="14 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="15 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="16 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="17 July")
{today="Welcome to Rev'd Dawn Leger"; color=green}
else if (todayDate=="22 July")
{today="St Mary Magdalene's Day"; color=blue}
else if (todayDate=="27 July")
{today="St James the Apostle's Day"; color=red}
else if (todayDate=="3 August")
{today="St Stephen's Day"; color=red}
else if (todayDate=="6 August")
{today="The Transfiguration of the Lord"; color=blue}
else if (todayDate=="10 August")
{today="St Laurence's Day"; color=red}
else if (todayDate=="15 August")
{today="St Mary the Virgin's Day"; color=blue}
else if (todayDate=="24 August")
{today="St Bartholemew's Day"; color=red}
else if (todayDate=="1 September")
{today="The Beheading of St John the Baptist"; color=red}
else if (todayDate=="2 September")
{today="Martyrs of New Guinea Day"; color=red}
else if (todayDate=="13 September")
{today="St Cyprian's Day"; color=red}
else if (todayDate=="14 September")
{today="Holy Cross Day"; color=red}
else if (todayDate=="21 September")
{today="St Matthew's Day"; color=red}
else if (todayDate=="29 September")
{today="St Michael and All Angels"; color=blue}
else if (todayDate=="11 October")
{today="Happy Thanksgiving Day"; color=blue}
else if (todayDate=="18 October")
{today="St Luke the Evangelist's Day"; color=red}
else if (todayDate=="23 October")
{today="St James of Jerusalem's Day"; color=red}
else if (todayDate=="28 October")
{today="St Simon and St Jude's Day"; color=red}
else if (todayDate=="1 November")
{today="All Saints' Day"; color=blue}
else if (todayDate=="2 November")
{today="All Souls' Day"; color=purple}
else if (todayDate=="4 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="5 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="6 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="7 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="8 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="9 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="10 November")
{today="Lest we forget ..."; color=purple}
else if (todayDate=="11 November")
{today="Remembrance Day"; color=purple}
else if (todayDate=="22 November")
{today="St Cecilia's Day"; color=blue}
else if (todayDate=="30 November")
{today="St Andrew's Day"; color=red}
else if (todayDate=="18 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="19 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="20 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="21 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="22 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="23 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="24 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="25 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="26 December")
{today="Merry Christmas!"; color=red}
else if (todayDate=="27 December")
{today="St John the Evangelist's Day"; color=blue}
else if (todayDate=="28 December")
{today="The Holy Innocents' Day"; color=blue}
else if (todayDate=="30 December")
{today="St Stephen's Day"; color=blue}
else if (todayDate=="31 December")
{today="Happy New Year!"; color=red}
else
{today="Greetings and Welcome"; color=blue}


function maintitle()
{
if (color==red)
document.write ("<span style=\"font-size: 20pt; font-style: italic\"><font color = \"#FF0000\">" + today + "</font></span>")
else if (color==purple)
document.write ("<span style=\"font-size: 20pt; font-style: italic\"><font color = \"#990099\">" + today + "</font></span>")
else if (color==black)
document.write ("<span style=\"font-size: 20pt; font-style: italic\"><font color = \"#000000\">" + today + "</font></span>")
else if (color==green)
document.write ("<span style=\"font-size: 20pt; font-style: italic\"><font color = \"#008000\">" + today + "</font></span>")
else
document.write ("<span style=\"font-size: 20pt; font-style: italic\"><font color = \"#4a5ac6\">" + today + "</font></span>")
}
