// lect.js for AD 2012
// Instructions: Change File Name to lect.js and put in gnosis.org webroot.
 
var month = new Array();
var file = new Array();
 
 
//January
month[0] = new Array(1, 6, 15, 22, 29); 
file[0] = new Array("lect011.htm", "lect013.htm", "lect015.htm", "lect017.htm", "lect019.htm"); 
//New Year's Day (1:11), Epiphany (6:13), 2nd Sun Epiphany+ (15:15), 3rd Sun Epiphany+ (22:17), 4th Sun Epiphany+ (29:19)
 
 
//February
month[1] = new Array( 1, 2, 5, 12, 14, 19, 22, 26); 
file[1] = new Array("lect019.htm", "lect119.htm", "lect021.htm", "lect023.htm", "lect122.htm", "lect025.htm", "lect027.htm", "lect028.htm"); 
//Candlemas Day (2:119), Septuagesima (5:21), Sexagesima (12:23), H Valentinus (14:122), Quinquagesima (19:25), Ash Wednesday (22:27), 1st Sun in Lent (26:28)
 
 
//March
month[2] = new Array( 1, 4, 11, 16, 18, 22, 24, 25); 
file[2] = new Array("lect028.htm", "lect030.htm", "lect032.htm", "lect124.htm", "lect034.htm", "lect126.htm", "lect128.htm", "lect036.htm"); 
//2nd Sun in Lent (4:30), 3rd Sun in Lent (11:32), Montségur Day (16:124), 4th Sun in Lent (18:34), Tau Harmonius (22:126), H Gabriel (24:128), Passion Sunday (25:36)
 
 
//April
month[3] = new Array(1, 5, 6, 8, 15, 22, 25, 29); 
file[3] = new Array("lect038.htm", "lect041.htm", "goodfriday.htm", "lect045.htm", "lect047.htm", "lect049.htm", "lect132.htm", "lect051.htm"); 
//Palm Sunday (1:38), Maundy Thursday (5:41), Good Friday (6:0), Easter (8:45), Low Sunday (15:47), 2nd Sun Easter+ (22:49), H Mani (25:132), 3rd Sun Easter+ (29:51)
 
 
//May
month[4] = new Array( 1, 6, 13, 17, 27); 
file[4] = new Array("lect051.htm", "lect053.htm", "lect055.htm", "lect057.htm", "lect059.htm"); 
//4th Sun Easter+ (6:53), 5th Sun Easter+ (13:55), Ascension (17:57), Penticost (27:59)
 
 
//June
month[5] = new Array( 1, 3, 6, 7, 17, 22, 24, 29); 
file[5] = new Array("lect059.htm", "lect061.htm", "lect135.htm", "lect063.htm", "lect067.htm", "lect137.htm", "lect069.htm", "lect141.htm"); 
//Trinity Sunday (3:61), C. G. Jung (6:135), Corpus Christi (7:63), 2nd Sun Trinity+ (17:67), H Uriel (22:137), 3rd Sun Trinity+ (24:69), H Peter and Paul (29:141)
 
 
//July
month[6] = new Array(1, 4, 8, 15, 22, 29); 
file[6] = new Array("lect071.htm", "lect143.htm", "lect073.htm", "lect075.htm", "lect145.htm", "lect079.htm"); 
//4th Sun Trinity+ (1:71), Independence Day (4:143), 5th Sun Trinity+ (8:73), 6th Sun Trinity+ (15:75), H Mary Magdalene (22:145), 8th Sun Trinity+ (29:79)
 
 
//August
month[7] = new Array( 1, 5, 12, 15, 19, 26, 29); 
file[7] = new Array("lect079.htm", "lect148.htm", "lect083.htm", "lect149.htm", "lect085.htm", "lect087.htm", "lect152.htm"); 
//Eve of Transfiguration (5:147), 10th Sun Trinity+ (12:83), Assumption H Sophia (15:149), 11th Sun Trinity+ (19:85), 12th Sun Trinity+ (26:87), H John Bapt. (29:152)
 
 
//September
month[8] = new Array( 1, 2, 8, 9, 16, 23, 30); 
file[8] = new Array("lect152.htm", "lect089.htm", "lect153.htm", "lect091.htm", "lect093.htm", "lect155.htm", "lect097.htm"); 
//13th Sun Trinity+ (2:89), Descent H Sophia (8:153), 14th Sun Trinity+ (9:91), 15th Sun Trinity+ (16:93), Sunday Before H Michael (23:155), 17th Sun Trinity+ (30:97)
 
 
//October
month[9] = new Array( 1, 4, 7, 13, 14, 21, 28); 
file[9] = new Array("lect097.htm", "lect157.htm", "lect099.htm", "lect159.htm", "lect101.htm", "lect103.htm", "lect161.htm"); 
//H Francis (4:157), 18th Sun Trinity+ (7:99), H Templars (13:159), 19th Sun Trinity+ (14:101), 20th Sun Trinity+ (21:103), Sunday Before All Saints Day (28:161)
 
 
//November
month[10] = new Array( 1, 2, 4, 10, 17, 22, 24, 25); 
file[10] = new Array("lect161.htm", "lect171.htm", "lect107.htm", "lect109.htm", "lect111.htm", "lect167.htm", "lect113.htm", "lect115.htm"); 
//All Soul's Day (2:171), 22nd Sun Trinity+ (4:107), 23rd Sun Trinity+ (10:109), 24th Sun Trinity+ (17:111), Thanksgiving (22:168), 25th Sun Trinity+ (24:113), Sun Before Advent (25:115)
 
 
//December
month[11] = new Array( 1, 2,  9, 16, 21, 22, 23, 25); 
file[11] = new Array("lect115.htm", "lect001.htm",  "lect003.htm", "lect005.htm",   "lect163.htm", "lect165.htm", "lect007.htm", "lect009.htm"); 
//Advent Sunday (2:1), H Nicholas (6:164), 2nd Sun in Advent (9:3), 3rd Sun in Advent (16:5), H Thomas (21:164), H Raphael (22:166), 4th Sun in Advent (23:7), Christmas (25:9)
 
 
 
function lection() {
	var d = new Date();
	var m = d.getMonth();
	var dy = d.getDate();
	var n = month[m].length;
	var lect;
	while (!lect) {
		if (month[m][n] <= dy) {
			lect = file[m][n];
		} else {
			n--;
		};
	};
	window.location =  "http://www.gnosis.org/ecclesia/" + lect;
};

