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



// January -- 1st=NewYears(011), 6th=Epiphany(013)
	month[0] = new Array(1,		6,		14,			20,		27);
	file[0] = new Array("lect011.htm", "lect013.htm", "lect015.htm", "lect021.htm", "lect023.htm");

// Febuary -- 2nd=Candlemas(119),  14th=Valentinus(122)
// -- Ash Wednesday(27) 
	month[1] = new Array(1,		2,	6,	10,		14,		17,		21);
	file[1] = new Array("lect023.htm", "lect119.htm", "lect027.htm", "lect028.htm", "lect122.htm",  "lect0302.htm",  "lect032.htm");

// March -- 16th=Montsegur(124), 24th=Gabriel(128), 25th=Annunciation(130)
// -- Easter(45) 
// -- Ash Wednesday(27) 
	month[2] = new Array(1,		2,		9,		15,	16,	20,	21, 23,	30);
	file[2] = new Array("lect032.htm", "lect034.htm", "lect036.htm",  "lect124.htm", "lect038.htm", "lect041.htm", "goodfriday.htm", "lect045.htm", "lect047.htm");

// April  -- 25th=Mani(132)
// -- Easter(45)
	month[3] = new Array(1,		6,		13,		20,		25,		27);
	file[3] = new Array("lect047.htm", "lect049.htm", "lect051.htm", "lect053.htm", "lect132.htm", "lect055.htm");

// May -- 
	month[4] = new Array(1,		11,		18,		22);
	file[4] = new Array("lect057.htm", "lect059.htm", "lect061.htm", "lect063.htm");


// June -- 6th=Jung(135), 22nd=Uriel(137)
	month[5] = new Array(1,	6,	8,		15,		22,		29);
	file[5] = new Array("lect063.htm", "lect067.htm", "lect135.htm",  "lect071.htm", "lect073.htm", "lect075.htm");


// July -- 4th=Independence(143), 22nd=Magdalen(145)
	month[6] = new Array(1,		6,		13,		20,		22);
	file[6] = new Array("lect075.htm", "lect077.htm", "lect079.htm", "lect081.htm", "lect145.htm");


// August --  6th=Transfiguration(148), 15th=Assumption(149), 20th=Stephan(152)
	month[7] = new Array(1,		3,		6,		 15,	 24,	31);
	file[7] = new Array("lect145.htm", "lect085.htm", "lect148.htm", "lect149.htm", "lect091.htm", "lect093.htm");


// September -- 8th=DescentSophia(153), 29th=Michealmas(155)
	month[8] = new Array(1,		7,			16,		23,		28);
	file[8] = new Array("lect093.htm", "lect153.htm", "lect097.htm", "lect099.htm", "lect155.htm");


// October -- 4th=Francis(157),  13th=Templars(159)
	month[9] = new Array(1,		4,		12,		19,			26);
	file[9] = new Array("lect155.htm", "lect157.htm", "lect159.htm", "lect107.htm", "lect161.htm");


// November -- 1st=AllSaints(161), 2nd=AllSouls(171), 20th=GnosticSaints(162)
	month[10] = new Array(1,	2,		9,		16,		23,		30);
	file[10] = new Array("lect161.htm", "lect171.htm", "lect107.htm", "lect167.htm", "lect115.htm", "lect001.htm");


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

//---------------above updated to 2008



//	function Easter() {

//		var y = d.getYear();
//
//		var c = int(y / 100);
//		var n = y - 19 * int( y / 19 );
//		var k = int(( c - 17 ) / 25);
//		var i = c - int(c / 4) - int(( c - k ) / 3) + 19 * n + 15;
//		i = i - 30 * int( i / 30 );
//		i = i - int( i / 28 ) * ( 1 - int( i / 28 ) * int( 29 / ( i + 1 ) ) * int( ( 21 - n ) / 11 ) );
//		var j = y + int(y / 4) + i + 2 - c + int(c / 4);
//		j = j - 7 * int( j / 7 );
//		var l = i - j;
//		var EasterMonth = 3 + int(( l + 40 ) / 44);
//		var EasterDay = l + 28 - 31 * int( m / 4 );
//
//	}



	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;
	}
