	var month = new Array();
	var file = new Array();

//---------------Below Updated to 8/2010 ----------------
// Month array MUST begin with "1", first day.  Restate the lection on day 1, if it continues from prior month.

// January -- Fix Feasts: 1st=NewYears(011), 6th=Epiphany(013)
	month[0] = new Array(1, 6, 17, 24, 31);
	file[0] = new Array("lect011.htm", "lect013.htm", "lect015.htm", "lect017.htm","lect021.htm");


// Febuary -- Fix Feasts:  2nd=Candlemas(lect119),  14th=Valentinus(lect122)
// -- Ash Wednesday(Feb 17 2010) 
	month[1] = new Array(1, 8, 14, 15, 21, 28);
	file[1] = new Array("lect119.htm", "lect023.htm", "lect122.htm", "lect028.htm", "lect028.htm", "lect030.htm");


// March -- Fix Feasts: 16th=Montsegur(lect124), 24th=Gabriel(lect128), 25th=Annunciation(lect130)
	month[2] = new Array(1, 6, 14, 16, 21, 28);
	file[2] = new Array("lect030.htm", "lect032.htm", "lect034.htm", "lect124.htm", "lect036.htm", "lect038.htm");


// April  -- Fix Feasts: 25th=Mani(lect132)
	month[3] = new Array(1, 2, 4, 11, 18, 25);
	file[3] = new Array("lect041.htm", "goodfriday.htm", "lect045.htm", "lect047.htm", "lect049.htm", "lect051.htm");
	

// May -- 
	month[4] = new Array(1, 9, 13, 23, 30);
	file[4] = new Array("lect053.htm", "lect055.htm", "lect057.htm", "lect059.htm", "lect061.htm");


// June -- Fix Feasts: 6th=Jung(135), 22nd=Uriel(137)
	month[5] = new Array(1,6,13,20,22,27);
	file[5] = new Array("lect063.htm", "lect135.htm", "lect067.htm", "lect069.htm", "lect137.htm", "lect071.htm");


// July -- Fix Feasts: 4th=Independence(143), 22nd=Magdalen(145)
	month[6] = new Array(1, 4, 11, 18, 22);
	file[6] = new Array("lect143.htm", "lect073.htm", "lect075.htm", "lect077.htm", "lect145.htm");


// August -- Fix Feasts:  6th=Transfiguration(148), 15th=Assumption(149), 20th=Stephan(152)
	month[7] = new Array(1, 6, 15, 22, 29);
	file[7] = new Array("lect081.htm", "lect148.htm", "lect149.htm", "lect085.htm", "lect087.htm");


// September -- Fix Feasts: 8th=DescentSophia(153), 29th=Michealmas(155)
	month[8] = new Array(1, 5, 8, 19, 26, 29);
	file[8] = new Array("lect087.htm", "lect091.htm", "lect153.htm", "lect095.htm", "lect097.htm", "lect155.htm");


// October -- Fix Feasts: 4th=Francis(157),  13th=Templars(159)
	month[9] = new Array(1 ,4, 13, 24, 31);
	file[9] = new Array("lect155.htm", "lect157.htm", "lect159.htm", "lect105.htm", "lect161.htm");


// November -- Fix Feasts: 1st=AllSaints(161), 2nd=AllSouls(171), 20th=GnosticSaints(162)
	month[10] = new Array(1, 2, 14, 21, 25, 28);
	file[10] = new Array("lect161.htm", "lect171.htm", "lect111.htm", "lect115.htm", "lect167.htm", "lect001.htm");


// December -- Fix Feasts: 6th=Nicholas(164), 21st=Thomas(163), 22nd=Raphael(165), 25th=Nativity(009)
	month[11] = new Array(1, 5, 12, 19, 21, 22, 25);
	file[11] = new Array("lect001.htm", "lect003.htm", "lect005.htm", "lect007.htm", "lect163.htm", "lect165.htm", "lect009.htm");

//--------------- Above updated to 2010 ----------------



	function lection() {

		var d = new Date();
		var y = d.getYear();
		var m = d.getMonth();
		var dy = d.getDate();
		var hr = d.getHours();
		var wd = d.getDay();

		var n = month[m].length;

		//if (wd == 6) //if after 7pm on Sat, display Sun.
		//{
		//	if (hr > 19)
		//	{
		//		n = n+1;
		//	}
		//}

		var lect;

		while (!lect)
		{

			if (month[m][n] <= dy)
			{
				lect = file[m][n];
			}
			else
			{
				n=n-1;
			}
		}


	window.location =  "http://www.gnosis.org/ecclesia/" + lect;
	}
