//forms the date string to be displayed
var current = new Date();
var month=new Array(12);
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 ";
var date = current.getDate();
var year = current.getFullYear();
var displayDate = month[current.getMonth()] + date + ", " + year


var articleName = $.cookie('nameCookie');
var articleText = $.cookie('textCookie');
var articleLink = $.cookie('linkCookie');

//choses a random article to be displayed
function cookieChanger()
{
	var articleArray =
	[
	//don't forget the commas on every line but the last
	//      0)articleName  1)articleText  2)articleLink

		["400 Years of Silence","History records 400 years of silence between the last Jewish prophet, Malachi, and the birth of Jesus. Why would God stop speaking to his chosen people? What could cause him to stop speaking to the children of Abraham? How long would you spend in a conversation with someone who is ignoring you?","<a href='archives/400_Years_of_Silence.html' style='font-style:italic'>keep reading</a>"],
		["A Cheerful Heart Does Well Like Medicine","As a Christian, it is so easy to get discouraged in our walk with Him. Sometimes we think of Diogenes. He wandered around ancient Greece carrying a lantern and searching for an honest man. History does not reveal he ever found even one!","<a href='archives/A_Cheerful_Heart.html' style='font-style:italic'>keep reading</a>"],
		["A Muslim Country Kills Christianity","Everything looked so bright. It was a new day in Afghanistan. Everyone, including Christians, was welcome and allowed the most fundamental of all rights, the right to worship as our heart demands we do. Christian groups from all over the world poured in people and financial aid into this new field.","<a href='archives/A_Muslim_Country_Kills_Christianity.html' style='font-style:italic'>keep reading</a>"],
		["A Ray of Hope Splits the Darkness","<span style='color:#010193; font-style:italic'> &quot; Then I went in, too, and saw and believed (that He had risen)-for until then, we hadn't realized the scriptures said he would come back to life again! John 20: 8-9 (TLB)</span>","<a href='archives/400_Years_of_Silence.html' style='font-style:italic'>keep reading</a>"],
		["A Touch of The Master's Hand","Have you ever stood upon the Great Smokey Mountains, and watched the sun rise through the early morning fog? Felt the unbridled force of nature by standing on a boat at the base of Niagra Falls? Watched a thunderstorm turn night into day over an Iowa cornfield? ","<a href='archives/a_touch_of_the_master.html' style='font-style:italic'>keep reading</a>"],
		["An Extraordinary Lady","<embed type='application/x-shockwave-flash' src='http://www.google.com/reader/ui/3523697345-audio-player.swf' flashvars='audioUrl=http://www.spotlesslamb.com/sounds/An_Extraordinary_Lady.mp3' width='400' height='27' quality='best'></embed>",""],
		["Are You Calling God a Liar?","<span style='color:#010193 font-style:italic'>He who believes in the son of God has the witness in himself, he who does not believe God has made Him a liar, because he has not believed the testimony that God has given of His Son.&quot</span> I John 2:10 (NKJV)","<a href='archives/are_you_calling_god_a_liar.html' style='font-style:italic'>keep reading</a>"],
		["Are You Worshipping The Wrong Royal Highness, England?","She sits on a throne worth a fortune.  He hangs on a cross in agony.  She sleeps on a $20,000 mattress.  He is a drifter, vagrant, and bum, who has no place to lay his head.  She lives in multi-million dollar palaces, with someone attending to her every whim. She arrogantly demands people treat her as a &quotRoyal.&quot  He shied away from any earthly titles.","<a href='archives/Worshiping_the_Wrong_Royal.html' style='font-style:italic'>keep reading</a>"],
		["Back From the Mountaintop","Moses climbed a mountain to receive God's Laws. Jesus climbed a mountain to meet Moses and Elijah. I am drawn to them myself, it just seems that God can get a little more done in your life when you get some quiet. It really doesn't have to happen on a Mountain.","<a href='archives/back_from_the_mountaintop.html' style='font-style:italic'>keep reading</a>"],
		["Blood: The High Price of Freedom ","What does freedom mean to you? Is it the ability to worship as your heart dictates? Then remember the Founding Fathers who put their lives, homes, families, and their own liberty on the line so you could read the Bible for yourself and see what's in it and so their would be no &quotChurch Of The United States&quot with all the abuses of The Church Of England.","<a href='archives/blood_the_high_price_of_freedom.html' style='font-style:italic'>keep reading</a>"],
		["Bow Down To The King Of The Jews ","<span style='color:#010193 font-style:italic'>Then the Roman Soldiers took him into the barracks of the palace, called out the entire palace guard, dressed him in a purple robe, and made a crown of long, sharp thorns and put it on his head. Then they saluted yelling, &quotYea, King of the Jews!&quot And they beat him on the head with a cane, and spat on him, and went down on their knees to &quotworship&quot him.</span> Mark 15:16-19 (TLB) ","<a href='archives/bow_down_to_the_king_of_the_jews.html' style='font-style:italic'>keep reading</a>"],
		["Celebrate your Spiritual Independence Day","<span style='color:#010193 font-style:italic'>Therefore there is now no condemnation for those who are in Christ Jesus. For the law of the Spirit of life in Christ Jesus has set you free from the law of sin and of death..</span> Romans 8:1 (NIV) ","<a href='archives/Spiritual_Independence_Day.html' style='font-style:italic'>keep reading</a>"],
		["Chasing after Fool's Gold ","<span style='color:#010193 font-style:italic'>&quotDo you want to be truly rich? You already are if you are happy and good. After all, we didn't bring any money with us when we came into the world, and we can't bring a single penny when we die.&quot 1 Timothy 6:7 (TLB)</span>","<a href='archives/chasing_fools_gold.html' style='font-style:italic'>keep reading</a>"],
		["&quotChipmunks Roasting On an Open Fire&quot","It's that time again. I am so excited, and have been waiting for this all year. They have already started playing them. You know the classic spiritual songs about the birth of The Anointed One. Songs that celebrate, with dignity and reverence, the arrival of God's only begotten Son.","<a href='archives/Chipmunks_roasting_on_an_open_fire.html' style='font-style:italic'>keep reading</a>"],
		["Choose Your Jesus","If our Creator had decided to, He could have made us incapable of sinning. That would have taken away our free will. It would prevent us from experiencing the joy that comes into our heart by serving the Master freely, not because we have to. We would be little more than robots doing what we were programmed to do. Worship would be devoid of joy and happiness.","<a href='archives/a_ray_of_hope_splits_the_darkness.html' style='font-style:italic'>keep reading</a>"],
		["Christ Blesses the Covenant of Marriage","This story from the Bible has always been a bit confusing to me. Yes, it would become the first place where Jesus performed His first miracle, somewhat grudgingly at the request of His mother, Mary.","<a href='archives/Christ_Blesses_the_Covenant.html' style='font-style:italic'>keep reading</a>"],
		["Come Boldly, My Children!","As children of the Holy Father, we have been brought into God's Royal Family and given all privileges that come with that position. We are the sons and daughters of the King of Kings, brothers and sisters of the Messiah himself. We are joint heirs with our Master. ","<a href='archives/come_boldly_my_children.html' style='font-style:italic'>keep reading</a>"],
		["Coming Judgment of a Sinful Nation ","The history of Israel is littered with examples of Jehovah's wrath being poured out on a disobedient and sinful nation. Time after time, He used natural events or enemies to turn Israel's heart back to their first love. If the Father did not even spare His chosen people, than what might He do to other countries that turn their back on Him? ","<a href='archives/coming_judgment_of_a_sinful_nation_part_I.html' style='font-style:italic'>keep reading</a>"],
		["Crossing the Abyss: The Bridge to Life","The windshield shatters. The seat belt pins Joe back in his seat. The airbags deploy. Shrapnel from a sign reading &quotDANGER BRIDGE OUT&quot is flying through the air and into the car. As Joe looks to the other side of the abyss, he realizes he has no chance to reach its safety. As he falls deeper and deeper, hurtling down at a speed he has never known his last conscious thought is: &quotWhy didn't anybody warn me?&quot","<a href='archives/crossing_the_abyss.html' style='font-style:italic'>keep reading</a>"],
		["Cultivating an Attitude of Gratitude ","Last night was the coldest night of the year. We brought out the extra blankets and made sure we left the water running to keep the pipes from freezing. While my family and I snuggled in our warm little home, an icy wind howled outside.","<a href='archives/cultivating_an_attitude_of_gratitude.html' style='font-style:italic'>keep reading</a>"],
		["Does God Cry?","<span style='color:#010193 font-style:italic'> &quot And Jesus Wept. &quot John 11:35(NLT)</span><br/>It is the shortest verse in the Bible. It is an impossible roadblock to those who claim the Messiah was all God and No Man. It is the most human of all emotions.","<a href='archives/Does_God_cry.html' style='font-style:italic'>keep reading</a>"],
		["Don't all religions lead to Heaven? ","Many people say that all faiths lead to God, or the different faiths are different roads to heaven. What matters is being sincere in your beliefs. Christians and those who claim an exclusive way to the Lord and heaven are being &quotnarrow minded.&quot","<a href='archives/dont_all_faiths_lead_to_Heaven.html' style='font-style:italic'>keep reading</a>"],
		["Don't Confuse Money and Riches ","Jesus was asked by someone in the crowd to tell his brother to give him half of his father's estate. He responded by basically telling the man not to confuse good living and riches. ","<a href='archives/Dont_Confuse_Money_and_Riches.html' style='font-style:italic'>keep reading</a>"],
		["Don't Say Goodbye, My Brothers and Sisters:Use See You Later Instead ","The death of a loved one, especially when it was not expected, can bring grief and pain like nothing else can. The suddenness and shock of it can emotionally destroy a person. Some people may never fully recover from a tragedy, such as losing a child. It is cruel and cold, but such is life. ","<a href='archives/Dont_Say_Goodbye_Brothers.html' style='font-style:italic'>keep reading</a>"],
		["Entering Into The Presence Of The King","I do it too; I am one of the biggest offenders. Most Christians do it. With the advance of technology, like smart phones, iPods, and laptop computers, our lives were supposed to become less hectic, but it appears they have become more hectic, instead. There is just not enough time in the day.","<a href='archives/Entering_into_the_presence.html' style='font-style:italic'>keep reading</a>"],
		["Exchanging Good For Evil ","We seem to be living in the world Isaiah, the Prophet, wrote about so long ago. Purity, chastity, and virginity are the fodder for jokes. In many countries, Christian's are tortured or killed. We can watch live sex on our computers. Kids entering High School are mocked and ridiculed for their virginity; for following the standard God set down.","<a href='archives/exchanging_good_for_evil.html' style='font-style:italic'>keep reading</a>"],
		["Fair Weather Christians","Several weeks ago, I had to make an emergency room visit. I suffer chronic back pain. My pain was out of control. As usual, the wait was long and uncomfortable. I was only thinking about how bad my back hurt. Suddenly, the Holy Spirit reminded me that we are to praise God in all circumstances.","<a href='archives/fair_weather_christians.html' style='font-style:italic'>keep reading</a>"],
		["Fountain of Forgiveness","From Genesis on, the coming of the Son of God is the central theme of the Old Testament. There are hundreds of prophecies that reveal facts about the coming of Jesus, the life of Jesus, and the death of Jesus.","<a href='archives/Fountain_of_Forgiveness.html' style='font-style:italic'>keep reading</a>"],
		["Growing In Spiritual Maturity","Our niece is fighting attempts to shift her diet from formula in a bottle to baby food. She is failing to embrace the change. She wants to stay in her comfort zone. In much the same way, the work of God suffers tremendously from our spiritual immaturity.","<a href='archives/Growing_in_Spiritual_Maturity.html' style='font-style:italic'>keep reading</a>"],
		["Hall of Mirrors","There are no large signs on the side of the road. No signs on the highway telling you how many more miles you have to travel before you reach your destination. Nothing that warns you this is the last exit before you arrive.","<a href='archives/Hall_of_Mirrors.html' style='font-style:italic'>keep reading</a>"],
		["History's Greatest Love Story","As Jesus prepared himself for his crucifixion, what do you think was his deepest fear? Certainly He knew of the physical agony he was facing. Crucifixion is one of the most painful methods of execution ever devised. The very word we use to describe the worst pain imaginable, &quot excruciating &quot, means &quot out of the cross &quot.","<a href='archives/Historys_Greatest_Love_Story.html' style='font-style:italic'>keep reading</a>"],
		["How Do You Define Success?","The definition of success varies greatly depended on the yardstick used to measure it. The world has it’s criteria for determining it, and the Holy Bible has a radically different one.","<a href='archives/How_Do_You_Define_Success.html' style='font-style:italic'>keep reading</a>"],
		["Jesus: The Key to Eternal Life","I think everyone has shared the experience of standing in the rain, at night, going through the keys, desperately trying to find one that fits the door. You may have a lot of keys that look like the door key, but they do not fit.","<a href='archives/jesus_the_key_to_eternal_life.html' style='font-style:italic'>keep reading</a>"],
		["Praising the Light","The singers and musician soflty play. The small church is absolutely quiet. It is a different kind of silence. It is a reverential silence. All sitting in the church begin to realize that an unseen force has arrived.","<a href='archives/Praising_the_Light.html' style='font-style:italic'>keep reading</a>"],
		["The Only Sign We Need","If the Lord would just give me a sign, I would believe him. How many times have we, as believer's, heard someone say that? How arrogant is that? We, the creation, demand signs and answers from Our Creator?! We want &quot proof &quot of a Bible Story, proof of a miracle Jesus performed.","<a href='archives/only_sign_we_need.html' style='font-style:italic'>keep reading</a>"],
		["Let Jesus Be Your Sherpa!","I was listening to WMHK radio, a quality Christian radio station in the Columbia, SC Metro area, the other morning as I drove.    The commentators talked about the difficulty of climbing Mount Everest with all the baggage and supplies they need.  Someone then said they forgot about the Sherpa.  &quotThen one said Jesus is our Sherpa!&quot    It was an extremely profound statement about the burdens we must bear.","<a href='archives/Let_Jesus_Be_Your_Sherpa.html' style='font-style:italic'>keep reading</a>"],
		["That Which Remains","Every man or woman that lives changes this world, for good or for ill, by the life that they live.  Every one of us touches others in an infinite number of ways.  Each decision we make has implications we can not fully comprehend.  Jesus Christ was born into a poor carpenter's family.   He had a family that loved him, and they taught him about love.","<a href='archives/That_Which_Remains.html' style='font-style:italic'>keep reading</a>"],
		["The American Holocaust","On January 22, 1973, The Supreme Court ruled that women have a constitutional right to terminate the life of their unborn children. This day marks the beginning of the American Holocaust. It literally turned the mother’s womb into the most dangerous place in America.","<a href='archives/The_American_Holocaust.html' style='font-style:italic'>keep reading</a>"],
		["The Man Who Never Saw Death","In all of human history, there has been one constant that almost everyone faces. They die. They pass from this world into the next. There are two exceptions to this rule. Both are recorded in the Holy Scriptures. Most people probably know one, Elijah the Prophet. But the Book of Genesis tells us long before Elijah, there was...","<a href='archives/The_man_who_never_saw_death.html' style='font-style:italic'>keep reading</a>"],
		["The Messiah Cautions Against Hypocrisy","The more things change, the more they stay the same. One of the biggest problems in Christ's time is still one of the biggest problems believers face today. Nothing will turn off non-believers, stifle church growth, and destroy a body of believers faster than Hypocrisy will. ","<a href='archives/The_messiah_cautions.html' style='font-style:italic'>keep reading</a>"],
		["The Only Sign We Need","If the Lord would just give me a sign, I would believe him. How many times have we, as believer's, heard someone say that? How arrogant is that? We, the creation, demand signs and answers from Our Creator?! We want &quotproof&quot of a Bible Story, proof of a miracle Jesus performed.","<a href='archives/only_sign_we_need.html' style='font-style:italic'>keep reading</a>"],
		["Why Christianity is failing in America","Christianity hails from a strong and proud heritage. Early Christians faced danger on many different fronts. They faced danger from angry Jews who wanted to stone them for blasphemy. They faced dangers from highwaymen and robbers. ","<a href='archives/Why_Christianity_is_Failing_in_America.html' style='font-style:italic'>keep reading</a>"]
	];

	var randomNum = Math.floor(Math.random()*(articleArray.length));

	articleName = articleArray[randomNum][0];
	articleText = articleArray[randomNum][1];
	articleLink = articleArray[randomNum][2];
	
	//sets up cookies with an expiration of 1 day
	$.cookie('nameCookie', articleName, { expires: 1 });
	$.cookie('textCookie', articleText, { expires: 1 });
	$.cookie('linkCookie', articleLink, { expires: 1 });
}


//if cookies are expired or non-existant, call cookieChanger() to change cookie values
if($.cookie('nameCookie') == null || $.cookie('textCookie') == null || $.cookie('linkCookie') == null)
{
	cookieChanger();
}




