
var events = [
	["20070606","20070606","Pastoral Council Meeting","June 6, 2007 7:00 pm","","PC0706A.html"],
	["20070501","20070616","4th Annual Music Ministry Benefit Concert","June 16 7:30 pm in church","Don't miss this annual showcase highlighting the artistry of the Music Ministry professional staff in a concert benefitting the many programs of the SJF Music Ministry. Tickets $25.00, available at the door or by calling 310.377.5571",""],
	["20070606","20070719","Grief Support in Your Time of Need","June 19-July 24, 10:00-11:30 am, Fireside Room","St. John Fisher is offering a Grief Support Program for parishioners. Sr. Kitty Moloney, of the Daughters of Mary and Joseph, will facilitate. She has many years of experience in bereavement ministry. The Support Group will meet for six consecutive Tuesdays. We hope to provide support and aid to the bereaved in a safe and spiritual small group setting. If you are interested, please call Arminda Au 310.377.5571 x156.",""]

	];

var mainevent = [
	["20080831","20080907","Love is Sharing Our Gifts","Time & Talent Stewardship Festival<br>Sat Sept 6 & Sun Sept 7","Learn more about the many wonderful opportunities to serve in ministry.","","tnt08.pdf"],
	["20081213","20081217","Saying \"Yes!\" to God in the Busyness of Life","Dec 15 9:00am, Dec 16 & 17 7:30pm","An Advent Series presented by Fr Jarek Zaniewski, a national leader with the Families of Nazareth Movement in the auditorium.","","","advent3.gif"],
	["20081213","20081219","Simbang Gabi Celebration","December 19, 7:00 pm","Simbang Gabi (Night Mass in Tagalog) is a beloved Christmas Filipino tradition. The faithful eagerly await the arrival of our Lord by attending nine consecutive masses. The celebration culminates on Epiphany. It is a festive gathering of family and community. Fr. Freddie Chua and Msgr David A. Sork, celebrants","Reception to follow in Barrett Hall. Enjoy fellowship, Filipino refreshments & music. Limited tickets available.","","parol09.gif"],
	["20091128","20091204","Advent Wreath","","The Advent wreath, like many of our customs at Christmas traces its origin to pre-Christian times when candles were lit during the winter to the \"sun-god\" asking for light. It was the Lutherans who started the Advent wreath as a Christian custom. The word \"advent\" comes from the Latin term for arrival or \"coming.\" It is the season when we await the coming of the Lord in time and at the end of time.","The Advent wreath usually has four candles, three purple and one pink to match the color of the vestments of the week. The candles are lit on the Sundays of Advent. The first candle, called the Prophets' Candle, is lit on the first Sunday of Advent, then the second candle, called the Bethlehem Candle, is lit on the second Sunday along with the first. On the third Sunday of Advent a pink candle, called the Shepherds' Candle, is lit representing \"Rejoice\" Sunday, and then the fourth candle, called the Angels' Candle, is lit on the last Sunday of Advent. Sometimes a white candle is placed in the center of the wreath and is called the Christ candle. Sometimes the flame from that candle is used to light the others. In some parishes, the white candle remains unlit until Christmas Eve.","advent2009.html","adv01-01.jpg"],
	["20091205","20091211","Advent Theme","","All the Old Testament readings for the season of Advent are messages of hope and promise. They come from prophets whose mission was to remind God's people that they were indeed \"called by a promise of peace and justice.\" Perhaps questions we might ask ourselves are: \"How do I say yes to the Lord's invitation?\" \"How do I put into daily practice what I hear God's Word saying?\" \"Which actions of mine flow from charity and which from justice?\" The prophets remind us of a kingdom that is yet to come: a kingdom where there will be peace and justice for all. In some of the most beautiful poetry of the Bible, the prophets speak of that peace and justice that is the birthright of every person. The hopes and visions that God has for us, his chosen ones, is what we wait for. Each week, after the Our Father, the Presider prays , \"... keep us free from anxiety as we wait in joyful hope for the coming of our Savior Jesus Christ.\"","","advent2009.html","adv01-02.jpg"],
	["20091212","20091218","Gaudete Sunday","","The Third Sunday of Advent is \"Gaudete Sunday\" or \"Rejoice Sunday.\" Why? What is all the rejoicing about?<p>More than two hundred years ago a man named Isaac Watts wrote the words to a Christmas carol which, no doubt, you have heard every Christmas since you were born. The first verse reads:","Joy to the world, the Lord is come!<br>&nbsp;&nbsp;Let earth receive her King;<br>Let every heart prepare him room<br>&nbsp;&nbsp;And heaven and nature sing.<p>Do you every wonder if that is really true? Is there joy in the world because Jesus was born? Yes! There is joy and happiness, celebration and song, excitement and honest-to-goodness merriment. There is hardly a nook or a cranny, hardly a country on the entire earth that doesn't have at least some Christian people who join in celebrating Jesus' birth. Almost as though the Liturgy can't wait to celebrate the presence of the Savior, the Word of God today tells us to rejoice.","advent2009.html","adv01-03.jpg"],
	["20091219","20091223","Advent Hope","","The season of Advent reminds us that we live in between the times of Christ's first and second coming. And so \"we wait in joyful hope.\" What are we waiting for? The second letter of Saint Peter gives us the answer. We wait for \"new heavens and a new earth in which righteousness dwells.\" We don't wait passively - vaguely hoping for heaven some day. We are called to \"prepare the way of the Lord\" in our own day. All worship leads to mission of some kind. How will your worship today lead you to the work of justice making? Identify one specific action for this week: a donation to those in need, time spent at a community service center, or a letter written to someone who is homebound.","","advent2009.html","adv01-04.jpg"],
	["20090808","20100301","Pilgrimage to Holy Land","April 19-30, 2010","Monsignor Sork will be leading a pilgrimage to the Holy Land next year from April 19-30, 2010. It will be his sixth trip to the Holy Land and the third pilgrimage he has led. If you are interested, be sure to put those dates on your calendar. Contact him at the parish office, if you wish more details.","<center><a href=Pilgrimage2010.pdf>Pilgrimage Brochure</a>&nbsp;&nbsp;&nbsp;<a href=PilgrimageForm.pdf>Registration Form</a></center>",""],
	["20091024","20091124","Christ Renews His Parish","A Christ Centered Journey you won't want to miss!!","Christ Renews His Parish (CRHP) is a renewal weekend designed to bring members of a parish together in Christ emphasizing continued spiritual growth in life and in daily contacts with others.","Our next retreat dates are April 17&18, 2010 for men and May 1&2, 2010 for women.","crhp/","crhplogosmall.gif"],
	["20100201","20100214","Campaign 21","","Take a look at beautiful new interior pictures and updated campaign funding infomation.","","Campaign21/","campaign.jpg"]
	];

var spcmass = [
	["20100201","20100404","SJF Lent and Holy Week Schedule","lent10.html",1],
	["20071126","20071208","Immaculate Conception Mass Schedule<br>Holy Day of Obligation","December 7 - 5:30 pm Vigil<br>December 8 - 8:00 am & 11:00 am",0],
	["20091201","20100101","** SJF CHRISTMAS MASS SCHEDULE **","mass2009.html",1],
	["20091010","20091031","State of the Parish Address","SOP2008.html",1]
	];


var steward = [
	["20050724","20050730","17th Sunday in Ordinary Time","\"The law of Your mouth is to me more precious than thousands of gold and silver pieces,\" says the Psalmist on Sunday. Does the amount of my offering suggest that I could honestly say the same?"],
	["20050731","20050806","18th Sunday in Ordinary Time","In Sunday's Gospel, Jesus feeds the five thousand with five loaves and two fish. The message of stewardship is that God's gifts, <i>shared</i>, will always be more than enough."],
	["20050807","20050813","19th Sunday in Ordinary Time","Elijah recognized the voice of God not in the strong and heavy wind, not in the earthquake, and not in the fire, but in the tiny whispering sound. May we find enough quiet in our clamourous world to hear His voice and discern what He is calling us to do and be."],
	["20050814","20050820","20th Sunday in Ordinary Time","In Sunday's second reading, St. Paul tells the Romans, \"God's gifts and his call are irrevocable.\" To what is God calling me today? What gifts are mine to share?"],
	["20050821","20050827","21st Sunday in Ordinary Time","In Sunday's readings, St. Paul reminds the Romans - and us - that all things come from God: \"For from Him and through Him and for Him all things are.\" Good stewards understand that <i>all</i> is gift and share generously the gifts of time, talent, and treasure with which they've been blessed."],
	["20050828","20050903","22nd Sunday in Ordinary Time","In Sunday's second reading, St. Paul exhorts the Romans to <i>total</i> stewardship. Brothers and sisters, he urges, \"...offer your bodies as a living sacrifice, holy and pleasing to God.\""],
	["20050904","20050910","23rd Sunday in Ordinary Time","Am I my brother's keeper? All three readings today suggest that for the Christian steward the answer is \"Yes!\""],
	["20050911","20050917","24th Sunday in Ordinary Time","Stewardship is not optional! \"None of us lives as his own master and none of us dies as his own master,\" says St. Paul. \"While we live we are responsible to the Lord, and when we die we die as his servants.\""],
	["20050918","20050924","25th Sunday in Ordinary Time","Good stewards follow the advice of St. Payl and conduct themselves - by wise use of their time and talents - in a way worthy of the Gospel of Christ."],
	["20050925","20051001","26th Sunday in Ordinary Time","The first son in Sunday's Gospel said he would do his father's bidding, but did no. The second son balked at first, but then repented and did as he was asked. What service is God calling me to do? Which son am I more like?"]
	];

function getCurDate() {
	CurDate=new Date();
	var day = CurDate.getDate();
	  if (day < 10)
	  {
	  day = "0" + day;
	  }
	var month = CurDate.getMonth();
	month = month + 1;
	  if (month < 10)
	  {
	  month = "0" + month;
	  }
	var year = CurDate.getYear();
        if (year > 99 && year < 2000) { year = year + 1900; }
	var curDT = "" + year + month + day;
	return curDT;
}


function showEvents() {
	var curDT = getCurDate();
	var eventct = 0;
	document.writeln('<table cellspacing=0 cellpadding=0 width=100%>');
	for (var i=0; i<events.length; i++) {
	if (events[i][0] <= curDT && curDT <= events[i][1]) {
		eventct += 1;
		document.writeln('<tr><td class=mleftd><hr></td></tr>');
		document.writeln('<tr><td class=mleft' + eventct % 2 + '><b>' + events[i][2] + '</b><br>');
		if (events[i][3]) {
			document.writeln('<b>' + events[i][3] + '</b><br>');
		}
		if (events[i][4]) {
			document.writeln(events[i][4]);
		}
		if (events[i][5])	{
			document.writeln(' <a href="' + events[i][5] + '">more...</a>');
		}
		document.writeln('</td></tr><tr><td class=mleftd><img src="graphics/dot.gif" width="1" height="1" alt=""></td></tr>');
	}
	}
	document.writeln('</table>');
	if (eventct <= 0) {
		document.writeln('<hr class=home>Review our <a href=http://www.sjf.org/bulletin/>bulletin</a> for the latest');
	}
}

function showMainEvent() {
	var curDT = getCurDate();
	var listed = 0;
	for (var m=0; m<spcmass.length; m++) {
	if (spcmass[m][0] <= curDT && curDT <= spcmass[m][1])
		{
		listed += 1;
		document.writeln('<p align=center>');
		if (spcmass[m][4] == 1) {document.writeln('<a href=' + spcmass[m][3] + ' class=mass><b>' + spcmass[m][2] + '</b></a></p>');}
		else {document.writeln('<a href=javascript:popUp(\'SpcMass.html\') class=mass>' + spcmass[m][2] + '</a></p>');}
		}
	}
	var mainCount = 0;
	for (var i=0; i<mainevent.length; i++) {
	if (mainevent[i][0] <= curDT && curDT <= mainevent[i][1])
		{
		if (mainCount > 0) {document.writeln('<hr class=home>');}
		mainCount += 1;
		document.writeln('<p>');
		if (mainevent[i][7]) {document.writeln('<img src=graphics/' + mainevent[i][7] + ' align=right hspace=10 vspace=10>');};
		document.writeln('<b>' + mainevent[i][2] + '<br>' + mainevent[i][3] + '</b>');
		document.writeln('<br>' + mainevent[i][4]);
		if (mainevent[i][5] ) {document.writeln('</p><p>' + mainevent[i][5]);};
		if (mainevent[i][6] ) {document.writeln(' <a href="' + mainevent[i][6] + '">more...</a>');};
		document.writeln('</p>');
		}
	}
	if (mainCount == 0 ) {
	document.writeln('<p>St. John Fisher Catholic Church is located in the south of Los Angeles County on the top of the Palos Verdes Peninsula, between Redondo Beach and San Pedro, at the corner of Crenshaw Boulevard and Crest Road in Rancho Palos Verdes.</p>');
	document.writeln('<p>The Church is more than a building.  The Church is the People of God.  Because of the generous sharing of the many gifts of its members, the St. John Fisher Community strives to fulfill its mission effectively.  St. John Fisher is a welcoming community, open to all, while celebrating our faith in the light of Christ.</p>');
	}
}

	/** * Special Mass Pop-up
	 */
function popUp(URL,NAME) {
masswin=window.open(URL,NAME,'location=no,scrollbars=yes,status=no,toolbar=no,resizable=yes,width=380,height=480,screenX=10,screenY=10,top=10,left=10');
masswin.focus();}

