/*
	file: esosp_calendar_data.js
	modified last: 02-07-2010
	copyright: copyright 2009, 2010 Stone Dragon Press
	author: volkhvy
	e-mail: volkhvy@stonedragonpress.com
*/

	var rayMonthNames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var rayMonthAbbreviations = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

	// ***** ***** ***** ***** ***** start of edit ***** ***** ***** ***** *****

	var rayESoSPLines = new Array("5", "5", "6", "5"); // number of lines in month
	var rayESoSPDisplay = new Array("2", "3", "4", "5"); // indices of months displayed
	var rayESoSPYear = new Array("2010", "2010", "2010", "2010");

	// March, 2010
	var rayESoSPCal0 = new Array("&nbsp;", "1", "2", "3", "4", "5", "6",
		"7", "8", "9", "10", "11", "12", "13",
		"14", "15", "16", "17", "18", "19", "20",
		"21", "22", "23", "24", "25", "26", "27",
		"28", "29", "30", "31", "&nbsp;", "&nbsp;", "&nbsp;",
		"&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;");
	var rayESoSPBgColor0 = new Array("ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff");
	var rayESoSPDate0 = new Array("4", "11", "18", "25");
	var rayESoSPTitle0 = new Array("Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program");
	var rayESoSPInstructor0 = new Array("Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)");
	var rayESoSPDescription0 = new Array("The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This month's topic: [to be determined]", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This month's topic: [to be determined]", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This week's topic: Oral Traditions", "The Thursday night discussion group hosts a community feast exploring one of the many ethnic cuisines. This month will center around East Indian foods. Feel free to bring a dish to share. There will be an open discussion on: Community.<br />Open to interested people.");
	var rayESoSPTime0 = new Array("7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm");
	var rayESoSPPlace0 = new Array("Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center");
	var rayESoSPLink0 = new Array("javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')");
	var rayESoSPLocation0 = new Array("777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114");
	var rayESoSPContact0 = new Array("volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com");
	// April, 2010
	var rayESoSPCal1 = new Array("&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "1", "2", "3",
		"4", "5", "6", "7", "8", "9", "10",
		"11", "12", "13", "14", "15", "16", "17",
		"18", "19", "20", "21", "22", "23", "24",
		"25", "26", "27", "28", "29", "30", "&nbsp;",
		"&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;");
	var rayESoSPBgColor1 = new Array("ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff");
	var rayESoSPDate1 = new Array("1", "8", "15", "22", "29");
	var rayESoSPTitle1 = new Array("Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program");
	var rayESoSPInstructor1 = new Array("Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)");
	var rayESoSPDescription1 = new Array("The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This week's topic: Elders", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This week's topic: Mentoring", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This week's topic: Religion", "The Thursday night discussion group hosts a community feast exploring one of the many ethnic cuisines. This month will center around [to be determined] foods. Feel free to bring a dish to share. There will be an open discussion on: [to be determined].<br />Open to interested people.", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This month's topic: [to be determined]");
	var rayESoSPTime1 = new Array("7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm");
	var rayESoSPPlace1 = new Array("Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center");
	var rayESoSPLink1 = new Array("javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')");
	var rayESoSPLocation1 = new Array("777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114");
	var rayESoSPContact1 = new Array("volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com");
	// May, 2010
	var rayESoSPCal2 = new Array("&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "1",
		"2", "3", "4", "5", "6", "7", "8",
		"9", "10", "11", "12", "13", "14", "15",
		"16", "17", "18", "19", "20", "21", "22",
		"23", "24", "25", "26", "27", "28", "29",
		"30", "31", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;");
	var rayESoSPBgColor2 = new Array("ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff");
	var rayESoSPDate2 = new Array("6", "13", "20", "27");
	var rayESoSPTitle2 = new Array("Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program");
	var rayESoSPInstructor2 = new Array("Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)");
	var rayESoSPDescription2 = new Array("The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This month's topic: [to be determined]", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This month's topic: [to be determined]", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<br />This month's topic: [to be determined]", "The Thursday night discussion group hosts a community feast exploring one of the many ethnic cuisines. This month will center around [to be determined] foods. Feel free to bring a dish to share. There will be an open discussion on: [to be determined].<br />Open to interested people.");
	var rayESoSPTime2 = new Array("7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm");
	var rayESoSPPlace2 = new Array("Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center");
	var rayESoSPLink2 = new Array("javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')");
	var rayESoSPLocation2 = new Array("777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114");
	var rayESoSPContact2 = new Array("volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com");
	// June, 2010
	var rayESoSPCal3 = new Array("&nbsp;", "&nbsp;", "1", "2", "3", "4", "5",
		"6", "7", "8", "9", "10", "11", "12",
		"13", "14", "15", "16", "17", "18", "19",
		"20", "21", "22", "23", "24", "25", "26",
		"27", "28", "29", "30", "&nbsp;", "&nbsp;", "&nbsp;",
		"&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;", "&nbsp;");
	var rayESoSPBgColor3 = new Array("ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "d8efd8", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff",
		"ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff", "ffffff");
	var rayESoSPDate3 = new Array("3", "10", "17", "24");
	var rayESoSPTitle3 = new Array("Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program", "Mentoring Elders Program");
	var rayESoSPInstructor3 = new Array("Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)", "Volkhvy (moderator)");
	var rayESoSPDescription3 = new Array("The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<span class='lf'><br /><br /></span>This month's topic: [to be determined]", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<span class='lf'><br /><br /></span>This month's topic: [to be determined]", "The Thursday night discussion group on stengthening a community through mentoring the older members of that community in the role of eldership.<span class='lf'><br /><br /></span>This month's topic: [to be determined]", "The Thursday night discussion group hosts a community feast exploring one of the many ethnic cuisines. This month will center around [to be determined] foods. Feel free to bring a dish to share.<span class='lf'><br /><br /></span>There will be an open discussion on: [to be determined].<span class='lf'><br /><br /></span>Open to interested people.");
	var rayESoSPTime3 = new Array("7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm", "7:00 pm -- 9:00 pm");
	var rayESoSPPlace3 = new Array("Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center", "Sacred Paths Center");
	var rayESoSPLink3 = new Array("javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')", "javascript: parent.loadFile('map_sacred_paths_center')");
	var rayESoSPLocation3 = new Array("777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114", "777 Raymond Ave.<br />St. Paul, MN 55114");
	var rayESoSPContact3 = new Array("volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com", "volkhvy@stonedragonpress.com");

	// ***** ***** ***** ***** ***** end of edit ***** ***** ***** ***** *****

function getCalendarDateContent(str1, str2) { // month ndx, day
	var intLength = eval("rayESoSPDate" + str1 + ".length");
	var strContentHTML = "";
	strContentHTML += "<table bgcolor='#ffffff' border='0' cellpadding='0' cellspacing='0' width='100%'>";
	strContentHTML += "<tr><td align='left' valign='top'><img src='sp.gif' height='10' width='10' /></td>";
	strContentHTML += "<td align='left' class='link_bc' valign='top'><a name='idTop'></a>";
	strContentHTML += "<a href='javascript: parent.loadFile(\"home\")'>&nbsp;&#149;&nbsp;Home&nbsp;</a><img src='grfx/brdcrmb.gif' height='10' width='30' />&nbsp;ESoSP Calendar";
	strContentHTML += "</td><td align='left' valign='top'><img src='sp.gif' height='10' width='10' /></td></tr>";
	strContentHTML += "<tr><td align='left' valign='top'><img src='sp.gif' height='5' width='10' /></td>";
	strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='5' width='100%' /></td>";
	strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='5' width='10' /></td></tr>";
	strContentHTML += "<tr><td align='left' valign='top'><img src='sp.gif' height='1' width='10' /></td>";
	strContentHTML += "<td align='left' valign='top'><span class='sdp_h3'>&nbsp;ESoSP Calendar &#150; ";
	strContentHTML += rayMonthNames[rayESoSPDisplay[parseInt(str1)]] + " " + str2 + ", " + rayESoSPYear[parseInt(str1)] + "</span></td>";
	strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='10' /></td></tr>";
	strContentHTML += "<tr><td align='left' valign='top'><img src='sp.gif' height='1' width='10' /></td>";
	strContentHTML += "<td align='left' valign='top'>";
	var cntItems = 0;
	for (var cnt1 = 0; cnt1 < intLength; cnt1++) {
		if (str2 == eval("rayESoSPDate" + str1 + "[" + cnt1 + "]")) {
			var ndxDay = cnt1;
			var strContact = "";
			if (eval("rayESoSPContact" + str1 + "[" + ndxDay + "] == 'none'")) {
				strContact += "Not required";
			} else {
				var strBtn = "idBtn" + cntItems.toString();
				var strAddress = eval("rayESoSPContact" + str1 + "[" + ndxDay + "]");
				var strTitle = eval("rayESoSPTitle" + str1 + "[" + ndxDay + "]");
				var strHREF = "mailto: " + strAddress + "?subject=re%20" + strTitle;
				strContact += "<a href=\"" + strHREF + "\"";
				strContact += " onMouseOver=\"parent.swapImage('idContent', '" + strBtn + "', 'grfx/msg_icon_over.gif')\"";
				strContact += " onMouseOut=\"parent.swapImage('idContent', '" + strBtn + "', 'grfx/msg_icon_up.gif')\">";
				strContact += "<img src='grfx/msg_icon_up.gif' border='0' height='18' id='" + strBtn + "' name='" + strBtn + "' width='50' /></a>";
			}
			strContentHTML += "<br /><hr align='center' size='1' width='80%' />";
			strContentHTML += "<p align='center'><span class='sdp_h4'>&nbsp;" + eval("rayESoSPTitle" + str1 + "[" + ndxDay + "]") + "&nbsp;</span></p>";
			strContentHTML += "<table bgcolor='#ffffff' border='0' cellpadding='0' cellspacing='0' width='500'>";
			strContentHTML += "<tr><td align='left' valign='top'><img src='sp.gif' height='5' width='75' /></td>";
			strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='5' width='5' /></td>";
			strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='5' width='420' /></td></tr>";
			strContentHTML += "<tr><td align='right' class='b' valign='top'>Instructor:</td>";
			strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='5' /></td>";
			strContentHTML += "<td align='left' class='txt' valign='top'>" + eval("rayESoSPInstructor" + str1 + "[" + ndxDay + "]") + "</td></tr>";
			strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='5' width='1' /></td></tr>";
			strContentHTML += "<tr><td align='right' class='b' valign='top'>Description:</td>";
			strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='5' /></td>";
			strContentHTML += "<td align='left' class='txt' valign='top'>" + eval("rayESoSPDescription" + str1 + "[" + ndxDay + "]") + "</td></tr>";
			if (eval("rayESoSPLink" + str1 + "[" + ndxDay + "] != 'n/a'")) { // class has a physical location
				strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='5' width='1' /></td></tr>";
				strContentHTML += "<tr><td align='right' class='b' valign='top'>Time:</td>";
				strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='5' /></td>";
				strContentHTML += "<td align='left' class='txt' valign='top'>" + eval("rayESoSPTime" + str1 + "[" + ndxDay + "]") + "</td></tr>";
				strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='5' width='1' /></td></tr>";
				strContentHTML += "<tr><td align='right' class='b' valign='top'>Place:</td>";
				strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='5' /></td>";
				strContentHTML += "<td align='left' class='txt' valign='top'>" + eval("rayESoSPPlace" + str1 + "[" + ndxDay + "]") + "</td></tr>";
				strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='5' width='1' /></td></tr>";
				strContentHTML += "<tr><td align='right' class='b' valign='top'>Location:</td>";
				strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='5' /></td>";
				strContentHTML += "<td align='left' class='txt' valign='top'>" + eval("rayESoSPLocation" + str1 + "[" + ndxDay + "]");
				strContentHTML += "<img src='sp.gif' height='1' width='20' />";
				strBtn = "idMapBtn" + cntItems.toString();
				var strHREF = eval("rayESoSPLink" + str1 + "[" + ndxDay + "]")
				strContentHTML += "<a href=\"" + strHREF + "\"";
				strContentHTML += " onMouseOver=\"parent.swapImage('idContent', '" + strBtn + "', 'grfx/map_icon_over.gif')\"";
				strContentHTML += " onMouseOut=\"parent.swapImage('idContent', '" + strBtn + "', 'grfx/map_icon_up.gif')\">";
				strContentHTML += "<img src='grfx/map_icon_up.gif' border='0' height='18' id='" + strBtn + "' name='" + strBtn + "' width='50' /></a>";
			}
			strContentHTML += "</td></tr><tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='5' width='1' /></td></tr>";
			strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='5' width='1' /></td></tr>";
			strContentHTML += "<tr><td align='right' class='b' valign='top'>Contact:</td>";
			strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='5' /></td>";
			strContentHTML += "<td align='left' class='txt' valign='top'>" + strContact + "</td></tr></table>";
			cntItems++;

		}
	}
	strContentHTML += "</td><td align='left' valign='top'><img src='sp.gif' height='1' width='10' /></td></tr>";
	strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='10' width='1' /></td></tr>";
	strContentHTML += "<tr><td align='left' valign='top'><img src='sp.gif' height='1' width='10' /></td>";
	strContentHTML += "<td align='center' valign='top'><a href='#idTop' onMouseOver='parent.swapImage(\"idContent\", \"idBtnTop\", \"grfx/top_icon_over.gif\")'";
 	strContentHTML += " onMouseOut='parent.swapImage(\"idContent\", \"idBtnTop\", \"grfx/top_icon_up.gif\")'>";
	strContentHTML += "<img src='grfx/top_icon_up.gif' border='0' height='18' id='idBtnTop' name='idBtnTop' width='50' /></a></td>";
	strContentHTML += "<td align='left' valign='top'><img src='sp.gif' height='1' width='10' /></td></tr>";
	strContentHTML += "<tr><!-- spacer --><td align='left' colspan='3' valign='top'><img src='sp.gif' height='10' width='1' /></td></tr></table>";
	return strContentHTML;
} // end of function
