
// The code below calculates an index number (index) which is
// incremented daily, and rotates through the number of messages 
// (devnum), which are defined in the switch statement listed below.
// So a new message is displayed daily from the group of defined
// messages.

var devnum = 13;
var d = new Date();
var TZoffsetms = -d.getTimezoneOffset()*(60*1000);
var indexbase = (((d.getTime()+ TZoffsetms) / 86400000) % devnum);
var index = Math.ceil(indexbase);

//document.write("<p>Counter = " + indexbase + "&nbsp; --> &nbsp; Devotion #" + (index)+ "&nbsp;of&nbsp;" + devnum + "</p>");

// devrequest is a variable set by the calling html,
// devrequest=0 means use the date to select the message
// devrequest=# means select message #

if (devrequest==0){
//	alert("Devotion request is 0");
}
else {
//	alert("Devotion request is " + devrequest);
index=devrequest;
}

//index=13;

switch (index) {
    case 1:
		if (devrequest==0){
		document.write("<p><b><i>You Are Not Forgotten</i></b></p>");
		}
        document.write("<a href='dev_001_notforgotten.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>No matter <u>how</u> <u>far</u> you may &quot;feel&quot; from God,<br />He wants you to know that you are not forgotten.</p><p>Do you know what a young girl does when she is crazy about some boy? She will write his name on her hands, on her notebook, on the bulletin board in her room and anywhere else she can get away with it. She thinks about him constantly.</p><p>Well, look at this verse:<br /><b><i>&quot;Behold, I have you inscribed on the palms of my hands.&quot; -Isaiah 49:16</i></b></p><p>God is telling us that he has written our names on the palm of his hands - on the nail-scarred hands of Jesus in heaven. Our names are written there from eternity and he traced them over at our baptism. He never will forget us.</p><p>So whatever it is that makes you feel forgotten, use this verse to drive that fear out of your heart. And remember that if he is looking at your name on his hand - he is thinking of how he will bless you through all things (read Romans 8:28-36).</p><p><i>-Don Patterson</i></p>");
    break;
    case 2:
		if (devrequest==0){
		document.write("<p><b><i>Things Overheard</i></b></p>");
		}
        document.write("<a href='dev_002_overheard.shtml'><img src='images/read_icon2.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>Did you ever overhear your parents talking about you?</p><p>I would guess there are many things your parents said, that you may have forgotten. But if you ever overheard them talking to others about you, then you're more likely to remember - because you took what they said to others as being more valuable.</p><p>When you read the Scriptures and &#146;bump&#146; into passages where God talks about his people - it's like overhearing a parent talking about you. It's valuable. Consider this passage, in which Jesus is defending himself to unbelieving Jews:</p><p><b><i>My sheep listen to my voice; I know them and they follow me. I give them eternal life and they shall never perish; no one can snatch them out of my hand. My Father, who has given them to me, is greater than all. <br />-John 10:27-29</i></b></p> <p>Jesus is proud of the fact that we listen to his voice. He proudly declares that while we are listening to him, no one will pluck us from his hand. Imagine his parental love gripping your hand tightly as you run through the parking lot of life with him. He even says that his Father has the same grasp on you.</p><p>If you feel yourself slipping away from Jesus, turn to His Word and pray &quot;Lord, grip me tighter. I believe your promise that you will hold onto me and not let go&quot;.<br />God will give you whatever you need to resist temptation and stay close to him.</p><p><i>-Don Patterson</i></p>");
    break;
    case 3:
		if (devrequest==0){
		document.write("<p><b>A First-Love Frame of Mind</b></p>");
		}
        document.write("<a href='dev_003_firstlove.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>I was recently at the airport in Chicago, waiting in the baggage claim area. For some reason, our luggage was delayed, so I had time to do my favorite airport passtime - watching people.</p><p>In my search for interesting people, I saw one young couple, apparently reuniting after one of them had been on a trip. They were facing each other, foreheads pressed together, holding hands so tightly you could see their white knuckles. They were similing and whispering to one another, oblivious of their surroundings. Their display of affection was pure and undistracted.</p><p>It reminded me of how my wife and I acted in our first years of dating. Now, after 20 years of marriage, our love is weathered. We understand one another, trust one another and love one another, but instead of a &quot;first love&quot; attitude, we most often display a durable, &quot;tried and true&quot; type of love to one another.</p><p>In our relationship with him, God longs for us to stay in that  &quot;first love&quot; frame of mind. In Revelation, Jesus cries out to one church like a wounded lover:</p><p><b><i>I hold this against you; You have forsaken your first love. Remember the height from which you have fallen! Repent and do the things you did at first. <br />-Revelation 2:4-5</i></b></p><p>God wants a passionate, undistracted relationship with us. How do we do that?</p><p>We have to get away and be alone with God. In a quiet place, we need to listen to Jesus, &quot;forehead to forhead&quot;, taking in his love, contemplating what he did for us and thinking about his promises. When we do that, we fall in love all over again.</p><p><i>-Don Patterson</i></p>");
    break;
    case 4:
		if (devrequest==0){
		document.write("<p><b>Small, Alive and Powerful</b></p>");
		}
        document.write("<a href='dev_004_smallalive.shtml'><img src='images/read_icon2.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>A few years ago, I was with our high school youth on a mission trip to the Apache reservation in Arizona. One day, we hiked down Cibeque canyon to a beautiful waterfall and I saw many spectacular examples of God's creation. There were sheer cliffs, pinnacles of rock, amazing strata of the earth's crust and other sights too numerous to mention.</p><p>But one image in particular struck me and has stayed with me. It was a boulder that was lying by the side of the creek. This boulder was large, several tons at least, but what caught my attention was a little crack that ran along one facet of the stone, and a small plant was growing up out of the crevice.</p><p>It's hard to think of a more hostile environment for life to grow, but there it was.<br />That small plant reminded me of a Bible passage:</p><p><b><i>The Word of God is living and active. -Hebrews 4:12</i></b></p><p>The small life of that plant was more active and irrestible than the huge rock. Potentially, it could split that massive boulder in half some day by its active life.</p><p>God's Word is like that. It comes into our hearts, which by nature were as hardened as that boulder, without even a crack for the Word to lodge in. And though we fought against it, the Holy Spirit overcame our hearts and faith was planted there.</p><p>What a reason to praise our gracious, merciful God.</p><p><i>-Matt Wordell</i></p>");
    break;
    case 5:
		if (devrequest==0){
		document.write("<p><b>Trustworthy Wounds</b></p>");
		}
        document.write("<a href='dev_005_wounds.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>Have you ever been stunned by a friend because he or she very frankly and openly criticized you?</p><p>I have.&nbsp;&nbsp;It is painful... even embarassing.</p><p>When it happens (and it has happened more than once)<br />I usually want to crawl under a rock and lick my wounds. I have even considered how I could get even with the one who would wound me that way.</p><p>But I read a proverb a few years ago that I cannot get out of my mind:<br /><b><i>Wounds from a friend can be trusted. But an enemy multiplies kisses.<br /> -Proverbs 27:6</i></b></p><p>Faithful are the wounds from a friend. That little insight helps me to stop and listen long enough to see the truth behind the criticism. It helps me stop making excuses and start thinking about how God is using my friends to change my life.<br />Change is hard, but the friend is faithful; and so is the God who sent him.</p><p>Do you have any friends who have faithfully wounded you? Don't avoid them - thank God for them. They often see your needs better than you do. It was Christ's faithful friendship that made him first confront us about our sins and point us to the cross.</p><p>Thank you Jesus for being our most faithful friend.<br />Help us to cherish the trustworthy friends you have placed in our lives.</p><p><i>-Don Patterson</i></p>");
    break;
    case 6:
		if (devrequest==0){
		document.write("<p><b>Read-Only Documents</b></p>");
		}
        document.write("<a href='dev_006_readonly.shtml'><img src='images/read_icon2.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>Have you ever opened a document on you computer and tried to edit it, only to have your attempts blocked, because the file was  &quot;read-only&quot;?... Frustrating, isn't it?</p><p>But the makers of the software intentionally provide that feature so that authors can safeguard the integrity of their work.</p><p>In that sense, God's writing - the Bible - is a &quot;read-only&quot; document. God wants us to read and learn from Scripture, but He doesn't want us taking His thoughts out and putting our thoughts in. If we do that, we inevitably distort his message and might destroy the important truths that he intended to communicate.</p><p>Jesus said this very thing to a group of Sadducces (Jewish aristocracy) regarding resurrection of the dead:</p><p><b><i>You are in error, because you do not know the Scriptures or the power of God.<br /> -Matthew 22:29</i></b></p><p>See, the Scriptures are truth in everything they address. They are not ours to change and add to. When we read them as they are, their message comes to us loud and clear. They give us everything God ever wanted us to have.</p><p>But in a different sense, we are to do much more than &quot;only read&quot; God's Word. To just read the words and not take them to heart would be foolish (see James 1). When we read the Scriptures, we are to believe them and live according to them. God's Word guides and drives our lives. So we don't just read them - we live them.</p><p><i>-Don Patterson</i></p>");
    break;
    case 7:
		if (devrequest==0){
		document.write("<p><b>A Concrete Lesson</b></p>");
		}
        document.write("<a href='dev_007_concrete.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>Do you know why concrete trucks have the huge barrel constantly churning as they drive down the road? It's because if they don't keep the concrete moving, it will set up and harden. To be useful, the concrete needs constant agitation until the time it is poured.</p><p>People can be a lot like concrete. If they are not stirred up, they gradually become hardened in their ways, inflexible. That's one reason that God puts us in a fellowship with one another. The discussions, conflicts and the emotional &quot;rubs&quot; we have with other Christians are used by God to stir us up and keep us useful. By avoiding that type of God-intended agitation, we actually make ourselves less useful to Him. The writer of the book of Hebrews advises:</p><p><b><i>See to it brothers, that none of you has a sinful, unbelieving heart that turns away from the living God. But encourage one another daily, as long as it is called Today, so that none of you may be hardened by sin's deceitfulness. <br />-Hebrews 3:12-13</i></b></p><p>I hope this helps you to welcome the &quot;rubs&quot; you have with other Christians. Engage your brothers and sisters in constructive spiritual converstation. Stay in God's flock and let them stir you as we share the Word of God.</p><p><i>-Don Patterson</i></p>");
    break;
    case 8:
		if (devrequest==0){
		document.write("<p><b>Wild Flowers and Life</b></p>");
		}
        document.write("<a href='dev_008_bluebonnets.shtml'><img src='images/read_icon2.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>It's early summer and the bluebonnets are starting to fade.<br />I always dread these days. Bluebonnets are so glorius when in full bloom on every corner, all over central Texas. But even though I don't want them to fade - they always do.</p><p>It reminds me of Isaiah 40:6-7:<br /><b><i>All men are like grass, and all their glory is like the flowers of the field, the grass withers and the flowers fall, ...but the word of our God stands forever.</i></b></p><p>The fading of flowers reminds me of how transient my life really is. No matter what glory I have, it will fade. In fact, a look in a mirror shows that it is fading already.<br /> But the word of God - that word promises renewal, restoration in Christ. That word forgives me when I fail, it guides me when I feel confused - <u>His Word never fades</u>.</p><p>Flowers and people will fade, but not the Word of God. It is the one beauty in life that will last forever. Enjoy it. Let it flow in your life like an eternal spring.</p><p><b>Footnote:</b> As the bluebonnets fade, have you noticed other flowers coming in? Indian paint brushes, daisys, even dandelions. It's also that way with the body of believers on earth. As one generation fades to heaven, another wave comes in and blooms to glorify their creator. That gives us all the more reason to fill our kids with the Word of God, so that they can glorify him long after we are gone.</p><p>Flowers, God's Word, people - the lessons are all around us.</p><p><i>-Don Patterson</i></p>");
    break;
    case 9:
		if (devrequest==0){
		document.write("<p><b>It&#146;s Courting Time</b></p>");
		}
        document.write("<a href='dev_009_springcourting.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>Have you noticed all the grackles pairing up this time of year? (spring) Just take a look. You'll find them in pairs, with the male fluttering his wings at the female. He's courting her - strutting his stuff, so that she will pick him.</p><p>It's the same drama with the cardinals each morning. I love to hear their spring greetings, but he's not singing for you or me. He's singing for her. A friend told me how the tom turkeys on his place, are all puffed up and gobbling near the hens.<br /> In Spring, everywhere you look, you see the males of nature courting their girls.</p><p>Jesus courts us in much the same way... Did you know that?</p><p>In both Hebrew scripture and the New Testament, Jesus calls himself the Bridegroom who comes for his bride. We, with all believers, are his bride... and he struts his stuff for us! All over the world, there are special services to portray the price he paid for us and the hope that exists in his resurrection.</p><p>During this season, we get to fall in love with him all over again as we see and hear his courting. During holy week, churches everywhere will hold services that mark his courting dance - Maunday Thursday, Good Friday and the apex on Easter morning. Jesus wants you to know how much he loves you, how worthy he is of your love.</p><p>When you see a male bird, strutting and fluttering, you will always find a female close by, taking it all in. That's the way Jesus wants you and me to be this Easter - standing right by him, taking it all in. He is our husband and our Lord.</p><p><b><i>As a bridegroom rejoices over his bride, so will your God rejoice over you. <br />-Isaiah 62:5</i></b></p><p><i>-Don Patterson</i></p>");
    break;
    case 10:
		if (devrequest==0){
		document.write("<p><b>Hazardous Driving</b></p>");
		}
        document.write("<a href='dev_010_hazardousdriving.shtml'><img src='images/read_icon2.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>I was driving behind a pick up the other day, the kind that's a real workhorse. There were old buckets, shovels and rakes in the bed, along with a bunch of paper sacks, some full, some empty.</p><p>As we were zooming down the freeway, one of the sacks flew out of the truck and sailed over my car and under the vehicle behind me. As our hearts jumped, those of us behind the truck slowed down...<br /> but the guy in the truck just kept going, oblivious of the hazard he had just caused.</p><p>People can be like that sometimes. We are moving fast, working hard. And sometimes we let dangerous things fly about. Sometimes it's a reckless word, a sarcastic remark, or a judgemental stare. Or it can be thoughtlessly passing by someone who needs our help and attention.</p><p>If we stop occasionally to check what's in our heart, we can correct problems before they fly out and hurt others. King David learned to check his heart as a life habit. Because he did not want to live recklessly, he prayed:</p><p><b><i>Search me, O God, and know my heart; test me and know my anxious thoughts. See if there is any offensive way in me, and lead me in the way of understanding. &nbsp;-Psalm 139:23-24</i></b></p><p><i>-Don Patterson</i></p>");
    break;
    case 11:
		if (devrequest==0){
		document.write("<p><b>Overdue Inheritance</b></p>");
		}
        document.write("<a href='dev_011_inheritance.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>I received an amazing email today. It said that I had an overdue inheritance waiting for me in Nigeria. All I had to do was reply with my personal information and bank account number.</p><p>What do you think? ... Should I respond?</p><p>Probably not - since it's likely an attempt to get my hopes up and my savings account down. But do you know that the title of that email, <br />&quot;Overdue Inheritance&quot; is really the message of the gospel, isn't it?</p><p>It's all there with God and he's just waiting for us to cash in. He paid for it himself. He saves it for all people and waits... oh, how he waits for their entire lives, if that's what it takes.</p><p>Do you know someone who hasn't yet trusted in his love, or taken advantage of his offer to forgive? Why not talk to them about their &quot;inheritance&quot;. Let them know they can come to church with you and get their overdue inheritance from Jesus. </p><p><b><i>Praise be to our God ... In his great mercy he has given us a new birth into ... an inheritance that can never perish, spoil or fade, kept in heaven for you.<br />-1 Peter 1:3-4</i></b></p><p><i>-Don Patterson</i></p>");
    break;
    case 12:
		if (devrequest==0){
		document.write("<p><b>Turning To A Random Page</b></p>");
		}
        document.write("<a href='dev_012_randompage.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>I picked up a new book yesterday and did what I often do; I turned to a random page and started reading to see if the book was worthwhile. I figure a good author would be able to hold my attention for the span of that page... any page.</p><p>I know that's not really giving the author a fair shake. One page isn't much space to impress someone, is it?... But it did get me thinking. If people were to evaluate my life like I evaluate books, what would they see? Would they want to read more? Or think well of my author?</p><p>I sense God's law in that musing. I know I have some pages that I would like to delete, but I can't go back to the pages I have written and erase them.</p><p>I thank God for forgiveness. But even though I am forgiven, I don't want to write any more bad episodes. With the help of the Spirit, I want tomorrow's page to be worth reading by my family, my friends, and the strangers I meet.</p><p>But to do so, I need God's help. Like a journalism student needs the help of his teacher, I need God's help in writing the pages of my life. So I draw near to him, ask him to look at what I'm thinking, saying and doing in my daily life.</p><p>&quot;God help me to write the book you want. Teach me good spiritual grammar, loving thoughts and wholesome plots. God, help me to write well.&quot;</p><p>God wants us to shine - let him help you write today's page.</p><p><b><i>Do everything without complaining or arguing, so that you may become blameless and pure, children of God without fault in a crooked and depraved generation, in which you shine like stars in the universe, as you hold out the word of life. &nbsp;-Philippians 2:14</i></b></p><p><i>-Don Patterson</i></p>");
    break;
    case 13:
		if (devrequest==0){
		document.write("<p><b>The Sinless Life of Christ</b></p>");
		}
        document.write("<a href='dev_013_sinless.shtml'><img src='images/read_icon2.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>During worship, we often say the Apostle's Creed together. It wasn't written by the apostles, but by other church leaders a few hundred years after the time of Jesus to summarize the basic truths of the Bible. It's a beautiful confession of the Christian faith.</p><p>But there is something noticeably missing from it  -  take a look...<br /><i>I believe in Jesus Christ, his only Son, our Lord, who was concieved by the Holy Spirit, born of the virgin Mary, suffered under Pontius Pilate, was crucified, died and was buried.</i></p><p> Did you catch the omission? <br />He was born, and then He dies. Where are the 33 years inbetween?</p><p>The creed (for good reason) focuses on the supernatural events of Jesus' life; his miraculous birth, death and resurrection. It shows us that He is both God and man.</p><p>But his innocent life is just as important. His 33 years without a single sinful thought, word or deed, is essential. If he was going to be our substitute, the one to get right what we had done wrong, he had to be sinless. One drowning man can't help save another. If Jesus was going to take our sin upon himself and be punished in our place, he could not have his own sin to deal with.</p><p>It was only the sinless, spotless &quot;Lamb of God&quot; who could trudge up that hill carrying our cross, to suffer alone under God's curse... all so that we could reunite with God in heaven, forever.</p><p>That is what's so comforting about this passage:</p><p><b><i>For we do not have a high priest (Jesus) who is unable to sympathize with our weakness, but we have one who has been tempted in every way, just as we are - yet was without sin. &nbsp;-Hebrews 4:15</i></b></p><p><i>-Matt Doebler</i><br /><a href='http://www.churchfromscratch.net/' title='Christ the Rock Lutheran Church'>Christ the Rock Lutheran Church</a></p>");
    break;
    default:
		if (devrequest==0){
		document.write("<p><b>You Are Not Forgotten</b></p>");
		}
        document.write("<a href='dev_001_notfogotten.shtml'><img src='images/read_icon1.jpg' alt='' title='see all devotions' border='0'; style=' float:right; padding-right: 15px; padding-left:15px'/></a><p>No matter <u>how</u> <u>far</u> you may &quot;feel&quot; from God,<br />He wants you to know that you are not forgotten.</p><p>Do you know what a young girl does when she is crazy about some boy? She will write his name on her hands, on her notebook, on the bulletin board in her room and anywhere else she can get away with it. She thinks about him constantly.</p><p>Well, look at this verse:<br /><b><i>&quot;Behold, I have you inscribed on the palms of my hands.&quot; -Isaiah 49:16</i></b></p><p>God is telling us that he has written our names on the palm of his hands - on the nail-scarred hands of Jesus in heaven. Our names are written there from eternity and he traced them over at our baptism. He never will forget us.</p><p>So whatever it is that makes you feel forgotten, use this verse to drive that fear out of your heart. And remember that if he is looking at your name on his hand - he is thinking of how he will bless you through all things (read Romans 8:28-36).</p><p><i>-Don Patterson</i></p>");
    break;
}
