// *** version 1.0.2 (c) 2002, RJ Bigg robert.bigg@esmerk.com
var showt=0;
var wmsg="";
function mkArray(n) {
	this.size=n;
	for(var i=0; i<=n; i++) {
		this[i]='';
	}
}

function Greet() {
	var today=new Date();
	var hr=today.getHours();
	var td=today.getDay();
	var gr="";
	if (hr<12) {
		gr="A thought for this morning";
	} else {
		if (hr>18) {
			gr="A thought for this evening";
		} else {
			gr="A thought for this afternoon";
		}
	}
	return gr;
}
// *** set the value of numTip to the upper limit of the tips array
var numTip=25;
tips=new mkArray(numTip);
// *** set the tips here
tips[0]="A Christ-centered life is like a good watch: open face, busy hands, pure gold, and full of good works. <i>- Anon</i>";
tips[1]="Faith is to believe what you do not yet see; the reward for this faith is to see what you believe. <i>- St Augustine of Hippo</i>";
tips[2]="Love always involves responsibility, and love always involves sacrifice. And we do not really love Christ unless we are prepared to face His task and to take up His Cross. <i>- William Barclay</i>";
tips[3]="God's people fail a hundred times Before each day is done.<br>But Grace, in whispers, lifts them up One hundred times and one. <i>- William D. Blake</i>";
tips[4]="The first service one owes to others in the fellowship consists in listening to them. Just as love of God begins in listening to His Word, so the beginning of love for the brethren is learning to listen to them. It is God's love for us that He not only gives us His Word but lends us His ear. So it is His work that we do for our brother when we learn to listen to him. <i>- Dietrich Bonhoeffer</i>";
tips[5]="Prayer opens the heart to God, and it is the means by which the soul, though empty, is filled by God. <i>- John Bunyan</i>";
tips[6]="Keep us, Lord, so awake in the duties of our callings that we may sleep in Thy peace and wake in Thy glory. <i>- John Donne</i>";
tips[7]="Be thankful for the smallest blessing, and you will deserve to receive greater. Value the least gifts no less than the greatest, and simple graces as especial favours. If you remember the dignity of the Giver, no gift will seem small or mean, for nothing can be valueless that is given by the most high God. <i>- Thomas a Kempis</i>";
tips[8]="Look for yourself and you will find in the long run only hatred, loneliness, despair, rage, ruin and decay. But look for Christ and you will find Him, and with Him everything else thrown in. <i>- CS Lewis</i>";
tips[9]="Make sure that you let God's grace work in your souls by accepting whatever He gives you, and giving Him whatever He takes from you. True holiness consists in doing God's work with a smile. <i>- Mother Teresa of Calcutta</i>";
tips[10]="The Church exists for the sake of those outside it. <i>- William Temple</i>";
tips[11]="And I said to the man who stood at the gate of the year: 'Give me a light that I may tread safely into the unknown'. And he replied: 'Go out into the darkness and put your hand into the hand of God. That shall be to you better than light and safer than a known way.' <i>- Minnie Louise Haskins</i>";
tips[12]="I expect to pass through this world but once. Any good therefore that I can do, or any kindness or abilities that I can show to any fellow creature, let me do it now. Let me not defer it or neglect it, for I shall not pass this way again. <i>- William Penn</i>";
tips[13]="Goodness is stronger than evil; Love is stronger than hate; Light is stronger than darkness; Life is stronger than death; Victory is ours through Him who loves us. <i>- Desmond Tutu</i>";
tips[14]="All we can do is keep our eyes on the world in its fullness and our hands and hearts open to God, letting God be God in us, through the prayer Jesus prays as he gives us the Spirit. <i>- Rowan Williams</i>";
tips[15]="Lord, we thank you that our churches are like big families. Lord, let your spirit of reconciliation blow all over the earth. Let Christians live your love. <i>- West African prayer</i>";
tips[16]="Lord, temper with tranquillity our manifold activity, that we may do our work for Thee in very great simplicity. <i>- Anon</i>";
tips[17]="We beseech thee, O Lord, to guide thy church with thy perpetual governance that it may walk warily in times of quiet, and boldly in times of trouble, through Jesus Christ our Lord. <i>- 13th Century Franciscan Breviary</i>";
tips[18]="Grant calmness and control of thought to those who are facing uncertainty and anxiety: let their hearts stand fast, believing in the Lord. Be Thou all things to all men, knowing each one and his petition, each house and its need, for the sake of Jesus Christ. <i>- Russian Liturgy</i>";
tips[19]="O God, who would fold both heaven and earth in a single peace: Let the design of thy great love lighten upon the waste of our wraths and sorrows: and give peace to thy Church, peace among nations, peace in our dwellings, and peace in our hearts: through thy Son our Saviour Jesus Christ. Amen <i>- from <a href='http://www.invitationtoprayer.org' target='stgnew'>An Invitation to Prayer</a></i>";
tips[20]="Lord, remember Christ your son who is peace itself and who has washed away our hatred with his blood. Because you love all people, look with mercy on us. Banish the violence and evil within us, and in answer to our prayers restore tranquility and peace. Amen <i>- from <a href='http://www.invitationtoprayer.org' target='stgnew'>An Invitation to Prayer</a></i>";
tips[21]="In this life we cannot do great things. We can only do small things with great love. <i>- Mother Teresa of Calcutta";
tips[22]="Dear Jesus, help us to spread your fragrance everywhere we go. Flood our souls with your spirit and life... Shine through us and be so in us that every soul we come in contact with may feel your presence in our soul. <i>- Mother Teresa of Calcutta";
tips[23]="Whatever your labours and aspirations, in the noisy confusion of life keep peace with your soul. With all its shame, drudgery and broken dreams, it is still a beautiful world. Be Cheerful. Strive to be happy. <i>- Anon, 17th Century</i>";
tips[24]="Forgive us every face we cannot look upon with joy. <i>- Frederick Buechner</i>";
tips[25]="Watch thou, dear Lord, with those who wake, or watch, or weep tonight, and give thine angels charge over those who sleep. Tend thy sick ones, Lord Christ. Rest thy weary ones. Bless thy dying ones. Soothe thy suffering ones. Pity thine afflicted ones. Shield thy joyous ones. And all, for thy love's sake. Amen. <i>- St Augustine</i>";
showt=Math.round(Math.random()*numTip);
wmsg="<img src='images/candles.gif' width='47' height='48' align='left'><br><span style='font-family: Georgia; font-size: 14pt; color: navy'>" + Greet() + "</span><br clear=all><div style='font-family:Verdana; font-size: 10pt; margin-left: 50px; margin-right: 50px;'>" + tips[showt] + "</div>";
document.write(wmsg);
//
