// JavaScript Document

<!-- Original:  Mike W. (mikew@dvol.com) -->
<!-- Web Site:  http://www.dvol.com/~users/mikew -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var msg = new Array();
var folders = new Array();
var retreat = new Array();
var links = new Array();
var month = new Array();

var rc;
var pix=Math.floor(Math.random()*4);

var Stamp = new Date();
var today = Stamp.getDate();
var dateline = Stamp.getMonth();
var day = Stamp.getDay();

if(day == 1 || day == 4)
{
	rc = 0;
}
else if(day == 2 || day == 5)
{
	rc = 1;
}
else if(day == 3 || day == 6)
{
	rc = 2;
}
else if(day == 0)
{
	var rc=Math.floor(Math.random()*3);
}

if(dateline == 11)
{
  season = "winter";
}
else if(dateline == 0)
{
  season = "winter";
}
else if(dateline == 1)
{
  season = "winter";
}
else if(dateline == 2)
{
  season = "spring";
}
else if(dateline == 3)
{
  season = "spring";
}
else if(dateline == 4)
{
  season = "spring";
}
else if(dateline == 5)
{
  season = "summer";
}
else if(dateline == 6)
{
  season = "summer";
}
else if(dateline == 7)
{
  season = "summer";
}
else if(dateline == 8)
{
  season = "fall";
}
else if(dateline == 9)
{
  season = "fall";
}
else if(dateline == 10)
{
  season = "fall";
}

folders[0] = "crc";
folders[1] = "marc";
folders[2] = "sarc";

retreat[0] = "Capuchin Retreat Center";
retreat[1] = "Monte Alverno Retreat Center";
retreat[2] = "St. Anthony Retreat Center";

links[0] = "<a href=\"http://www.capretreat.org\" target=\"_blank\">Capuchin Retreat Center</a>";
links[1] = "<a href=\"http://www.montealverno.org\" target=\"_blank\">Monte Alverno Retreat Center</a>";
links[2] = "<a href=\"http://www.sarcenter.com\" target=\"_blank\">St. Anthony Retreat Center</a>";

msg[1] = "But take care not to perform righteous deeds in order that others may see them.</p><p>(Matt.6:1a)";
msg[2] = "Those who wish to come after Me must deny themselves and take up their cross daily and follow Me</p><p>(Luke 9:23b)";
msg[3] = "One does not live by bread alone, but by every word that comes forth from the mouth of God.</p><p>(Matt.4:4b)";
msg[4] = "Amen, I say to you, whatever you did for the least of my brothers and sisters, you did for Me.</p><p>(Matt. 25.40b)";
msg[5] = "If you forgive others their transgressions, your heavenly Father will forgive you.</p><p>(Matt.6:14)";
msg[6] = "Do to others whatever you would have them do to you.</p><p>(Matt.7:12a)";
msg[7] = "…love your enemies, and pray for those who persecute you…</p><p>(Matt 5:44b)";
msg[8] = "This is My beloved Son, with whom I am well pleased; listen to Him.</p><p>(Matt.17:5b)";
msg[9] = "Give and gifts will be given to you…</p><p>(Luke 6:38a)";
msg[10] = "You are the Messiah, the Son of the living God.</p><p>(Matt. 16:16b)";
msg[11] = "The Son of God did not come to be served but to serve and to give His life as a ransom for many.</p><p>(Matt. 20:28)";
msg[12] = "There was a rich man who…dined sumptuously each day.  And lying at his door was a poor man…who would gladly have eaten his fill of the scraps that fell from the rich man's table.</p><p>(Luke 16:19-21a)";
msg[13] = "The stone that the builders rejected has become the cornerstone…</p><p>(Matt.21:42b)";
msg[14] = "But now we must celebrate and rejoice because your brother was dead and has come to life again:  he was lost and has been found.</p><p>(Luke 15:32)";
msg[15] = "…Those who drink the water I shall give will never thirst; the water I shall give will become in them a spring of water welling up to eternal life.</p><p>(John 4:14b)";
msg[16] = "And He said, 'Amen.  I say to you, prophets are not accepted in their own native place.'</p><p>(Luke 4:24)";
msg[17] = "Do not think that I have come to abolish the law or the prophets.  I have come not to abolish but to fulfill.</p><p>(Matt.5:17)";
msg[18] = "Whoever is not with Me is against Me, and whoever does not gather with Me scatters.</p><p>(Luke 11:23)";
msg[19] = "The second is this:  'You shall love your neighbor as yourself.' There is no other commandment greater than these.</p><p>(Mark 12:31)";
msg[20] = "O God, be merciful to me a sinner.</p><p>(Luke 18:13b)";
msg[21] = "This is what is so amazing, that you do not know where He is from yet He opened my eyes.</p><p>(John 9:30b)";
msg[22] = "Jesus said to him, 'You may go; your son will live.'  The man believed what Jesus said to him and left.</p><p>(John 4:50)";
msg[23] = "Amen, amen.  I say to you, the hour is coming and is now here when the dead will hear the voice of the Son of God, and those who hear will live.</p><p>(John 5:25)";
msg[24] = "For the very work that the Father has given me to finish, and which I am doing, testifies that the Father has sent me.</p><p>(John 5:36b)";
msg[25] = "'This is truly the Prophet.' Others said.  'This is the Messiah.'</p><p>(John 7:40b-41a)";
msg[26] = "I am the resurrection and the life:  those who believe in Me, even if they die, will live.</p><p>(John 11:25b)";
msg[27] = "Let the one among you who is without sin be the first to throw a stone at her.</p><p>(John 8:7b)";
msg[28] = "I am the one I claim to be and that I do nothing on my own but speak just what the Father has taught me.</p><p>(John 8:28b)";
msg[29] = "If you remain in My word, you will truly be My disciples, and you will know the truth, and the truth will set you free.</p><p>(John 8:31b-32)";
msg[30] = "Amen, amen.  I say to you, whoever keeps My word will never see death.</p><p>(John 8:51)";
msg[31] = "And many there began to believe in Him.</p><p>(John 10:42)";

month[0] = "January";
month[1] = "February";
month[2] = "March";
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "August";
month[8] = "September";
month[9] = "October";
month[10] = "November";
month[11] = "December";

function writeMsg() { 
  document.write(msg[today]);
}

function writeDateline() {
  document.write(month[dateline]);
  document.write(" ");
  document.write(today);
}

function writePix() {
  document.write("<img src=\"images/retreats/" + folders[rc] + "/" + season + "/" + pix + ".jpg\" width=\"185\">");
}

function writeLink() {
  document.write(links[rc]);
}

function writeRetreatTitle() {
	document.write(retreat[rc]);
}

//  End -->