
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.",""],
	["20111001","20111031","State of the Parish","Transcript from October 9, 2011","","SOP2011.html",""]

	];

var mainevent = [
	["20111004","20111108","Grief Support in Your Time of Need","Fireside Room Tuesdays<br>October 4-November 8, 2011","St. John Fisher is offering a Grief Support Program facilitated by Sr. Kitty Moloney of the Daughters of Mary and Joseph. 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 Celeste Cummings 310.377.5571 x126",],
	["20111122","20111221","Advent Gatherings on Jesuit Spirituality","Wednesdays, Nov 30 - Dec 21 7:00 pm","Enrich your Advent Journey with Jesuit Spirituality. Bishop Gordon Bennett, S.J. and Fr. Mark Bandsuch, S.J. will provide an opportunity to learn about and experience Jesuit Spirituality through talks and prayer based on the Spiritual Exercises of Saint Ignatius of Loyola (the founder of the Jesuits).","Call Misty at 310-377-4573 x130 to register."],
	["20111220","20120115","Fall IMPACT Online","","The Fall issue of IMPACT is now available online. This issue focuses on the new translation of the Roman Missal.","","SJFImpact_Fall2011.pdf"],
	["20120117","20120125","Week of Prayer for Christian Unity","January 18-25, 2012","Join with Christians throughout the world in praying this week that we will all be changed through the victory of our Lord Jesus Christ.","Click more to view the prayer guide containing biblical readings, commentaries, prayers, and question for reflection, that explore different aspects in how we live our Christian lives in and for today's world","WPCU2012.pdf"],
	["20120117","20120204","Called & Gifted: Come Discover God's call for your life and for the world.","Barrett Hall<br>February 3 7:00-9:30 pm and February 4 8:30 am - 3:00 pm","God is call you to a unique purpose in life, a work of love that only you can do. The Called & Gifted Workshop is a live two-day presentation that will help you explore your call, and the unique gifts God has given you to live our that call.","","CG.pdf"],
	["20120202","20120314","Pastoral Council Seeks New Members Information Session","Wednesday, March 14 7:00 pm, Fireside Room","Are you interested in serving on the SJF Pastoral Council, the Pastor's advisory body regarding the pastoral life of our community? The Pastoral Council meets the first Wednesday of each month at 7:00 pm. Applications to serve a two year term are now being accepted. Please join us for wine and cheese at our informational session. If you have any questions feel free to contact Lisa Hills, Pastoral Council Chairperson, at <a href=mailto:pastoralcouncil@sjf.org>pastoralcouncil@sjf.org</a>.","<a href=AdultRepresentative.pdf>Adult Representation Application</a><br><a href=YouthRepresentative.pdf>Youth Representative Application</a>",""],
	["20120315","20120331","Pastoral Council Seeks New Members","","Are you interested in serving on the SJF Pastoral Council, the Pastor's advisory body regarding the pastoral life of our community? The Pastoral Council meets the first Wednesday of each month at 7:00 pm. Applications to serve a two year term are now being accepted. If you have any questions feel free to contact Lisa Hills, Pastoral Council Chairperson, at <a href=mailto:pastoralcouncil@sjf.org>pastoralcouncil@sjf.org</a>.","<a href=AdultRepresentative.pdf>Adult Representation Application</a><br><a href=YouthRepresentative.pdf>Youth Representative Application</a>",""]
	];

var spcmass = [
	["20110307","20110424","SJF Lent and Holy Week Schedule","lent11.html",1],
	["20101201","20101208","Immaculate Conception Mass Schedule<br>Holy Day of Obligation","December 7 - 5:30 pm Vigil<br>December 8 - 6:30 am, 8:00 am, 11:00 am (school mass), 7:30 pm",0],
	["20111125","20120101","** SJF CHRISTMAS MASS SCHEDULE **","mass2011.html",1],
	["20091010","20091031","State of the Parish Address","SOP2008.html",1]
	];


var steward = [
	["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();}


