{ var mydate=new Date(); 
var year=mydate.getYear(); 
if (year < 1000)  year+=1900; 
var day=mydate.getDay(); 
var month=mydate.getMonth();  //0-11
var daym=mydate.getDate(); 
if (daym<10)  daym="0"+daym; 
var fcolor='FFFFFF'; 
var bcolor='Green';
var season=' Week of Ordinary Time' ;
var Sunday=' ?st' ;
var  cycle=' - Cycle ?';
switch (year){
                 //could we load this as another external script here based on the year?
   case 2012:  cycle=' - Cycle B'; 
      switch (month) {
         case 0: fcolor='Black';bcolor='White';season='Christmas Season';Sunday=' ';
                 switch (daym) {
                   case '01':  bcolor='White'; fcolor='Black'; season='Solemnity of Mary, Mother of God'; Sunday=' ' ;   break;
//                   case '01':  bcolor='White'; fcolor='Black'; season='The Epiphany of the Lord'; Sunday=' ' ;   break;
                   case '08':  bcolor='White'; fcolor='Black'; season='Solemnity of the Epiphany - Traditional'; Sunday=' ' ;   break;
                   case '09':  bcolor='White'; fcolor='Black'; season='Baptism of the Lord'; Sunday=' ';  break;
                    case 22:  bcolor='Purple'; fcolor='White'; season='Repentence on the anniversary of Roe v Wade'; Sunday=' ';  break;
                    case 25:  bcolor='White'; fcolor='Black'; season='Conversion of Paul, Apostle'; Sunday=' ';  break;
                   default: if (daym>29) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 4th '; }
                            else if (daym >22) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 3rd ';}
                            else if (daym >15) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 2nd ';} 
                            else if (daym >=10) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 1st ';} 
                       }
              break;
         case 1: switch (daym) {
                   case '02':  bcolor='White'; fcolor='Black'; season='Presentation of the Lord'; Sunday=' ' ;   break;
                   case '03': bcolor='Green'; fcolor='White'; season='Feast of St. Blaise'; Sunday=' '; break;
                   case 22: bcolor='Purple'; fcolor='White'; season='Ash Wednesday'; Sunday=' '; break;
//                   case 22: bcolor='White'; fcolor='Black'; season='Chair of Peter, Apostle'; Sunday=' '; break;
                   default: if (daym>25) {fcolor='White';bcolor='Purple';season='Week in Lent';Sunday=' 1st '; }
                           else if (daym >=22) {fcolor='White';bcolor='Purple';season='after Ash Wednesday'; Sunday=' Lenten Weekday '; }
                            else if (daym >18) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 7th ';}
                            else if (daym >11) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 6th '; }
                            else if (daym >04) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 5th '; }
                            else if (daym>=01) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 4th '; }
              }   //200
                 break;
         case 2: fcolor='White';bcolor='Purple';season='Week in Lent'; 
                 switch (daym) {
                   case 19: bcolor='White'; fcolor='Black'; season='Feast of Joseph, Husband of Mary'; Sunday=' '; break;
                   case 25: bcolor='White'; fcolor='Black'; season='The Annunciation'; Sunday=' '; break;
                   default: if (daym>24) Sunday=' 5th  ';
                            else if (daym >17) Sunday=' 4th ';
                          else if (daym >10) {fcolor='White';bcolor='Purple';season='Week in Lent';Sunday=' 3rd '; }
                            else if (daym >03) {fcolor='White';bcolor='Purple';season='Week in Lent';Sunday=' 2nd '; }
                            else if (daym >=01) {fcolor='White';bcolor='Purple';season='Week in Lent';Sunday=' 1st '; }
                      }
              break;
         case 3: fcolor='Black';bcolor='White';season='Week in Easter Season';
                 switch (daym) {
                   case '01': bcolor='Red'; fcolor='White'; season='Passion Sunday'; Sunday=' '; break;
                   case '05':  bcolor='White'; fcolor='Black'; season='Holy Thursday'; Sunday=' ' ;   break;
                   case '06':  bcolor='Red'; fcolor='Black'; season='Good Friday'; Sunday=' ' ;   break;
                   case '07':  bcolor='White'; fcolor='Black'; season='Holy Saturday'; Sunday=' ' ;   break;
                   case '08':  bcolor='White'; fcolor='Black'; season='Easter - He is Risen!'; Sunday=' ' ;   break;
                   default:  if (daym>24) {fcolor='Black'; bcolor='White'; season='Week in Easter Season'; Sunday=' 1st ';}
                            else if (daym>17) Sunday= ' 3rd ';
                            else if (daym >09) Sunday= ' 2nd ';
                            else if (daym >08) Sunday= ' 1st '; 
                            else if (daym >=01) {fcolor='White'; bcolor='Purple'; season='Holy Week'; Sunday='  '; }
                      }
              break;
         case 4: fcolor='Black'; bcolor='White'; season='Week in Easter Season';  
                 switch (daym) {
                   case '01':  bcolor='White'; fcolor='Black'; season='Joseph the Worker'; Sunday=' ' ;   break;
                   case 14: bcolor='White'; fcolor='Black'; season='Feast of Matthias, Apostle'; Sunday=' '; break;
                   case 22: bcolor='White'; fcolor='Black'; season='Ascension of the Lord'; Sunday=' '; break;
                   case 27: bcolor='Red'; fcolor='White'; season='Pentecost'; Sunday=' '; break;
                   case 31: bcolor='White'; fcolor='Black'; season='Feast of the Visitation'; Sunday=' '; break;
                   default:  if (daym>=28)  {fcolor='White'; bcolor='Green'; season='Week in Ordinary Time'; Sunday=' 8th ';}
                            else if (daym>19) Sunday=' 7th ';  //237
                            else if (daym >12) Sunday=' 6th ';
                            else if (daym >05) Sunday=' 5th ';
                            else if (daym >=01) Sunday=' 4th ';
                     }
              break;
         case 5: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 8th ';
                   switch (daym) {
                   case '03': bcolor='White'; fcolor='Black'; season='Solemnity of the Holy Trinity'; Sunday=' '; break;
                   case 10:  bcolor='White'; fcolor='Black'; season='Solemnity of Corpus Christi'; Sunday=' ' ;   break;
                   case 24:  bcolor='White';fcolor='Black';season='Solemnity of the Birth of John the Baptist';Sunday=''; break;
                   case 29:  bcolor='White';fcolor='Black';season='Solemnity of Peter and Paul, Apostles';Sunday=''; break;
                   default: if (daym >23) Sunday=' 12th '; 
                            else if (daym >16) Sunday=' 11th '; 
                            else if (daym >09) Sunday=' 10th ';
                            else if (daym >02)  Sunday=' 9th ';
                            else if (daym >=01) Sunday=' 8th ';
                      }
              break;
         case 6: {fcolor='White'; bcolor='Green'; season='Week in Ordinary Time'; Sunday=' 13th ';}
                   switch (daym){
                   case '01':  bcolor='White'; fcolor='Black'; season='Solemnity of the Sacred Heart'; Sunday=' ' ;   break;
//                   case 12:  bcolor='White'; fcolor='Black'; season='Solemnity of the Immaculate Heart of Mary'; Sunday=' ' ;   break;
                  case '03': bcolor='White'; fcolor='Black'; season='Feast of Saint Thomas';Sunday=''; break;
                  case 25: bcolor='Red'; fcolor='White'; season='Feast of Saint James';Sunday=''; break;
                   default: if (daym >30) Sunday=' 17th '; 
                            else if (daym >27) Sunday=' 17th '; 
                            else if (daym >20) Sunday=' 16th '; 
                            else if (daym >13) Sunday=' 15th '; 
                            else if (daym >07) Sunday=' 14th '; 
                            else if (daym >=01) Sunday=' 13th ';
                    }
              break;
         case 7: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 17th ';
                   switch (daym) {
                   case '06':  bcolor='White'; fcolor='Black'; season='Feast of the Transfiguration'; Sunday=' ' ;   break;
                   case 15:  bcolor='White';fcolor='Black';season='Solemnity of the Assumption';Sunday=''; break;
                   default: if (daym >25) Sunday=' 21st '; 
                               else if (daym >18) Sunday=' 2th '; 
                               else if (daym >11) Sunday=' 19th '; 
                               else if (daym >=05) Sunday=' 18th '; 
                               else if (daym >=01) Sunday=' 17th ';
                   }
              break;
         case 8: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 21st ' ;
                 switch (daym) {
                   case '08':  bcolor='White'; fcolor='Black'; season='Feast of the Birth of Mary'; Sunday=' ' ;   break;
                   case 14:  bcolor='Red';fcolor='White';season='Triumph of the Cross';Sunday=''; break;
                   case 21:  bcolor='White';fcolor='Black';season='Feast of Matthew, Apostle and Evangelist';Sunday=''; break;
                   case 29:  bcolor='White';fcolor='Black';season='Feast of Michael, Gabriel and Raphael, Archangels';Sunday=''; break;
                   default: if (daym >29) Sunday=' 26th '; 
                           else if (daym >22) Sunday=' 25th '; 
                            else if (daym >15) Sunday=' 24th '; 
                            else if (daym >08) Sunday=' 23rd '; 
                            else if (daym >=02) Sunday=' 22nd '; 
                            else if (daym >=01) Sunday=' 21st ';
                  }
              break;
         case 9: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 26th ' ;
                switch (daym) {
                   case 18:  bcolor='White';fcolor='Black';season='Feast of Luke, Evangelist';Sunday=''; break;
                   case 28:  bcolor='White';fcolor='Black';season='Feast of Simon and Jude, Apostles';Sunday=''; break;
                   default: if (daym >29) Sunday=' 30th '; else if (daym >27) Sunday=' 30th '; else if (daym >20) Sunday=' 29th '; else if (daym >13) Sunday=' 28th '; 
                            else if (daym >=07) Sunday=' 27th '; else if (daym >=01) Sunday=' 26th ';
                  }
              break;
         case 10: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 30th ' ;
                 switch (daym) {
                   case '01':  bcolor='White'; fcolor='Black'; season='Solemnity of All Saints'; Sunday=' ' ;   break;
                   case '02':  bcolor='White'; fcolor='Black'; season='Solemnity of All Souls'; Sunday=' ' ;   break;
                   case '09':  bcolor='White'; fcolor='Black'; season='Dedication of St John Lateran'; Sunday=' ' ;   break;
                   case 25: bcolor='White'; fcolor='Black'; season='Feast of Christ the King'; Sunday=' '; break;
                   case 30: cycle=' - Cycle C'; bcolor='White'; fcolor='Black'; season='Feast of Andrew Apostle'; Sunday=' '; break;
                   default: if (daym>24) Sunday=' Last ' 
                            else if (daym >17) Sunday=' 33rd ';
                            else if (daym >10) Sunday=' 32nd '; 
                            else if (daym >03) Sunday=' 31st '; 
                            else if (daym >=01) Sunday=' 30th '; 
              }
              break;
         case 11: cycle=' - Cycle C'; season='Week of Advent'; bcolor='Purple'; fcolor='White';
                  switch (daym) {
                   case '02': cycle=' - Cycle C'; bcolor='Purple'; fcolor='White'; season='1st Sunday of Advent'; Sunday=' '; break;
                   case '08':  bcolor='White'; fcolor='Black'; season='Solemnity of the Immaculate Conception'; Sunday=' ' ;   break;
                   case 24:  bcolor='White'; fcolor='Black'; season='Anticipation of the Feast of Christmas'; Sunday=' ' ;   break;
                   case 25:  bcolor='White'; fcolor='Black'; season='Solemnity of Christmas'; Sunday=' ' ;   break;
                   case 26:  bcolor='Red'; fcolor='White'; season='St. Stephen, First Martyr'; Sunday=' ' ;   break;
                   case 27:  bcolor='White'; fcolor='Black'; season='St. John, Apostle and Evangelist ' ; Sunday=' ' ;  break;
                   case 28:  bcolor='Red'; fcolor='White'; season='Feast of the Holy Innocents'; Sunday=' ' ;   break;
                   case 30:  bcolor='White'; fcolor='Black'; season='Feast of the Holy Family'; Sunday=' ' ;   break;
                   default: if (daym>=25) {bcolor='White'; fcolor='Black';Sunday=' ';season='Christmas Season'; }
                            else if (daym>22) Sunday=' 4th ';
                            else if (daym >15) Sunday=' 3rd '; else if (daym >8) Sunday=' 2nd '; 
                            else if (daym >02) Sunday=' 1st '; else if (daym >=01) Sunday=' Last ';season='Week in Ordinary Time';
              }
              break;  //switch daym
           }
        break;     //switch month
    case 2013:  cycle=' - Cycle C'; 
                      // below is case of  2011:        cycle=' - Cycle A'; 
       switch (month) {
         case 0: {fcolor='Black';bcolor='White';season='Christmas Season';Sunday=' ';}
                 switch (daym) {
                   case '01':  bcolor='White'; fcolor='Black'; season='Solemnity of Mary, Mother of God'; Sunday=' ' ;   break;
                   case '06':  bcolor='White'; fcolor='Black'; season='Solemnity of the Epiphany'; Sunday=' ' ;   break;
//                   case '06':  bcolor='White'; fcolor='Black'; season='Solemnity of the Epiphany - Traditional'; Sunday=' ' ;   break;
                   case '09':  bcolor='White'; fcolor='Black'; season='Baptism of the Lord'; Sunday=' ';  break;
                    case 22:  bcolor='Purple'; fcolor='White'; season='Repentence on the anniversary of Roe v Wade'; Sunday=' ';  break;
                    case 25:  bcolor='White'; fcolor='Black'; season='Conversion of Paul, Apostle'; Sunday=' ';  break;
                   default: if (daym>29) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 4th '; }
                            else if (daym >22) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 3rd ';}
                            else if (daym >15) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 2nd ';} 
                            else if (daym >=10) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 1st ';} 
                       }
              break;
         case 1: switch (daym) {
                   case '02':  bcolor='White'; fcolor='Black'; season='Presentation of the Lord'; Sunday=' ' ;   break;
                   case '03': bcolor='Green'; fcolor='White'; season='Feast of St. Blaise'; Sunday=' '; break;
                   case 22: bcolor='White'; fcolor='Black'; season='Chair of Peter, Apostle'; Sunday=' '; break;
                   default: if (daym>26) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 8th '; }
                            else if (daym >19) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 7th ';}
                            else if (daym >12) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 6th '; }
                            else if (daym >5) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 5th '; }
                            else if (daym>=1) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 4th '; }
              }
                 break;
         case 2: fcolor='White';bcolor='Purple';season='Week in Lent'; 
                 switch (daym) {
                   case '09': bcolor='Purple'; fcolor='White'; season='Ash Wednesday'; Sunday=' '; break;
                   case 19: bcolor='White'; fcolor='Black'; season='Feast of Joseph, Husband of Mary'; Sunday=' '; break;
                   case 25: bcolor='White'; fcolor='Black'; season='The Annunciation'; Sunday=' '; break;
                   default: if (daym>26) Sunday=' 3rd  ';
                            else if (daym >19) Sunday=' 2nd ';
                          else if (daym >12) {fcolor='White';bcolor='Purple';season='Week in Lent';Sunday=' 1st '; }
                           else if (daym >=10) {fcolor='White';bcolor='Purple';season='after Ash Wednesday'; Sunday=' Lenten Weekday '; }
                            else if (daym >5) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 9th '; }
                            else if (daym >=1) {fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 8th '; }
                      }
              break;
         case 3: fcolor='White';bcolor='Purple';season='Week in Lent';
                 switch (daym) {
                   case 17: bcolor='Red'; fcolor='White'; season='Passion Sunday'; Sunday=' '; break;
                   case 21:  bcolor='White'; fcolor='Black'; season='Holy Thursday'; Sunday=' ' ;   break;
                   case 22:  bcolor='Red'; fcolor='Black'; season='Good Friday'; Sunday=' ' ;   break;
                   case 23:  bcolor='White'; fcolor='Black'; season='Holy Saturday'; Sunday=' ' ;   break;
                   case 24:  bcolor='White'; fcolor='Black'; season='Easter - He is Risen!'; Sunday=' ' ;   break;
                   default:  if (daym>24) {fcolor='Black'; bcolor='White'; season='Week in Easter Season'; Sunday=' 1st ';}
                            else if (daym>17) {Sunday= ' Holy ';}
                            else if (daym >9) Sunday= ' 5th ';
                            else if (daym >2) Sunday= ' 4th ';    //65
                            else if (daym >=1) Sunday= ' 3rd ';
                      }
              break;
         case 4: fcolor='Black';bcolor='White';season='Week in Easter Season';  
                 switch (daym) {
//                   case '01':  bcolor='White'; fcolor='Black'; season='Joseph the Worker'; Sunday=' ' ;   break;
                   case 14: bcolor='White'; fcolor='Black'; season='Feast of Matthias, Apostle'; Sunday=' '; break;
                   case 31: bcolor='White'; fcolor='Black'; season='Feast of the Visitation'; Sunday=' '; break;
                   default: if (daym>28) Sunday=' 6th ';
                            else if (daym >21) Sunday=' 5th ';
                            else if (daym >14) Sunday=' 4th ';
                            else if (daym >07) Sunday=' 3rd '; 
                            else if (daym >=01) Sunday=' 2nd ';
                     }
              break;
         case 5: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 8th ';
                 switch (daym) {
                   case '05': bcolor='White'; fcolor='Black'; season='Ascension of the Lord'; Sunday=' '; break;
                   case 12: bcolor='Red'; fcolor='White'; season='Pentecost'; Sunday=' '; break;
                   case 19: bcolor='White'; fcolor='Black'; season='Solemnity of the Holy Trinity'; Sunday=' '; break;
                   case 24: bcolor='White';fcolor='Black';season='Solemnity of the Birth of John the Baptist';Sunday=''; break;
                   case 26: bcolor='White'; fcolor='Black'; season='Solemnity of Corpus Christi'; Sunday=' ' ;   break;
                   case 29: bcolor='White';fcolor='Black';season='Solemnity of Peter and Paul, Apostles';Sunday=''; break;
                   default: if (daym >26) Sunday=' 13th '; 
                            else if (daym >19) Sunday=' 12th '; 
                            else if (daym >12) Sunday=' 11th ';
                            else if (daym >05) {fcolor='Black';bcolor='White';season='Week in Easter Season'; Sunday=' 7th '; }
                            else if (daym >=01) {fcolor='Black';bcolor='White';season='Week in Easter Season'; Sunday=' 6th ';}
                             } //94
              break;
         case 6: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 14th '; 
                 switch (daym){
                   case '01':  bcolor='White'; fcolor='Black'; season='Solemnity of the Sacred Heart'; Sunday=' ' ;   break;
                   case '02':  bcolor='White'; fcolor='Black'; season='Solemnity of the Immaculate Heart of Mary'; Sunday=' ' ;   break;
//                  case '03': bcolor='White'; fcolor='Black'; season='Feast of Saint Thomas';Sunday=''; break;
                   case 25: bcolor='Red'; fcolor='White'; season='Feast of Saint James';Sunday=''; break;
                   default: if (daym >30) Sunday=' 18th '; 
                            else if (daym >23) Sunday=' 17th '; 
                            else if (daym >16) Sunday=' 16th '; 
                            else if (daym >09) Sunday=' 15th '; 
                            else if (daym >02) Sunday=' 14th '; 
                            else if (daym >=01) Sunday=' 13th ';
                            else Sunday='xxth';
                    }
              break;
         case 7: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 18th ';
                   switch (daym) {
                   case '06':  bcolor='White'; fcolor='Black'; season='Feast of the Transfiguration'; Sunday=' ' ;   break;
                   case 15:  bcolor='White';fcolor='Black';season='Solemnity of the Assumption';Sunday=''; break;
                   default: if (daym >27) Sunday=' 22nd '; 
                               else if (daym >20) Sunday=' 21st '; 
                               else if (daym >13) Sunday=' 20th '; 
                               else if (daym >=06) Sunday=' 19th '; 
                               else if (daym >=01) Sunday=' 18th ';
                   }
              break;
         case 8: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 22nd ' ;
                 switch (daym) {
                   case '08':  bcolor='White'; fcolor='Black'; season='Feast of the Birth of Mary'; Sunday=' ' ;   break;
                   case 14:  bcolor='Red';fcolor='White';season='Triumph of the Cross';Sunday=''; break;
                   case 21:  bcolor='White';fcolor='Black';season='Feast of Matthew, Apostle and Evangelist';Sunday=''; break;
                   case 29:  bcolor='White';fcolor='Black';season='Feast of Michael, Gabriel and Raphael, Archangels';Sunday=''; break;
                   default: if (daym >24) Sunday=' 26th '; 
                            else if (daym >17) Sunday=' 25th '; 
                            else if (daym >10) Sunday=' 24th '; 
                            else if (daym >03) Sunday=' 23rd '; 
                            else if (daym >=01) Sunday=' 22nd ';
                  }
              break;
         case 9: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 26th ' ;
                switch (daym) {
                   case 18:  bcolor='White';fcolor='Black';season='Feast of Luke, Evangelist';Sunday=''; break;
                   case 28:  bcolor='White';fcolor='Black';season='Feast of Simon and Jude, Apostles';Sunday=''; break;
                   default: if (daym >29) Sunday=' 31st '; else if (daym >22) Sunday=' 30th '; else if (daym >15) Sunday=' 29th '; else if (daym >08) Sunday=' 28th '; 
                            else if (daym >=02) Sunday=' 27th '; else if (daym >=01) Sunday=' 26th ';
                  }
              break;
         case 10: fcolor='White';bcolor='Green';season='Week in Ordinary Time';Sunday=' 31st ' ;
                 switch (daym) {
                   case '01':  bcolor='White'; fcolor='Black'; season='Solemnity of All Saints'; Sunday=' ' ;   break;
                   case '02':  bcolor='White'; fcolor='Black'; season='Solemnity of All Souls'; Sunday=' ' ;   break;
                   case '09':  bcolor='White'; fcolor='Black'; season='Dedication of St John Lateran'; Sunday=' ' ;   break;
                   case 20: bcolor='White'; fcolor='Black'; season='Feast of Christ the King'; Sunday=' '; break;
                   case 27: cycle=' - Cycle B'; bcolor='Purple'; fcolor='White'; season='1st Sunday of Advent'; Sunday=' '; break;
                   case 30: cycle=' - Cycle B'; bcolor='White'; fcolor='Black'; season='Feast of Andrew Apostle'; Sunday=' '; break;
                   default: if (daym>20) Sunday=' Last ' 
                            else if (daym >12) Sunday=' 33rd ';
                            else if (daym >05) Sunday=' 32nd '; 
                            else if (daym >=01) Sunday=' 31st ';
                   }
              break;
         case 11: cycle=' - Cycle B'; season='Week of Advent'; bcolor='Purple'; fcolor='White';
                  switch (daym) {
                   case '08':  bcolor='White'; fcolor='Black'; season='Solemnity of the Immaculate Conception'; Sunday=' ' ;   break;
                   case 24:  bcolor='White'; fcolor='Black'; season='Anticipation of the Feast of Christmas'; Sunday=' ' ;   break;
                   case 25:  bcolor='White'; fcolor='Black'; season='Solemnity of Christmas'; Sunday=' ' ;   break;
                   case 26:  bcolor='Red'; fcolor='White'; season='St. Stephen, First Martyr'; Sunday=' ' ;   break;
                   case 27:  bcolor='White'; fcolor='Black'; season='St. John, Apostle and Evangelist ' ; Sunday=' ' ;  break;
                   case 28:  bcolor='Red'; fcolor='White'; season='Feast of the Holy Innocents'; Sunday=' ' ;   break;
                   case 30:  bcolor='White'; fcolor='Black'; season='Feast of the Holy Family'; Sunday=' ' ;   break;
                   default: if (daym>=25) {bcolor='White'; fcolor='Black';Sunday=' ';season='Christmas Season'; }  //166
                            else if (daym >17) Sunday=' 4th '; else if (daym >10) Sunday=' 3rd '; 
                            else if (daym >03) Sunday=' 2nd '; else if (daym >=01) Sunday=' 1st ';
                 }
              break;   //daym
        }
      break;   //mnth
// } ??
default: cycle=daym; season=month; Sunday='no year '+year;}
} // end switch year
var seasondesc=Sunday+season+cycle; 
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); 
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December"); 
document.write("<span style='background-color:"+bcolor+";'><font color='"+fcolor+"' face='Arial'><b>"+"&nbsp;&nbsp;"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"&nbsp;");
document.write(seasondesc+"<span style='font-size:24pt;' align='right' >"+"&nbsp;&nbsp;"+"<br>Welcome to our Parish Community");
document.write("&nbsp;&nbsp;&nbsp;"+"<\/span><\/b><\/font><\/span>") ;
//
//style="line-height:2; margin-top:0; margin-bottom:0;" align="center"//
//



