function stop() {clearTimeout(timer)}

// ### this will display inspirational line on the banner randomly
function init() {

var tickerArray =     
new Array("A big part of loving is listening",
"A change in behavior begins with a change in the heart", 
"A godly parent is a child's best guide to God",
"A living faith is a working faith",             
"A spark of encouragement can rekindle warmth in the heart",
"A steady diet of God's Word will keep you growing",              
"A tunnel of testing can produce a shining testimony",              
"Be doers of the Word, and not hearers only",              
"Be wise--do right",              
"Because God cares for us, we can care for others",              
"Christ died for sinners--both good and bad",              
"Christ's empty tomb fills us with hope",              
"Christ's resurrection is the guarantee of our own", 
"Contentment comes not from great wealth but from few wants", 
"Criticism is a good teacher if we are willing to learn from it",            
"Daily work takes on eternal value when it's done for God",              
"Every temptation is an opportunity to trust God", 
"Faith and love are vital to effective prayer",             
"Faith sees what the eyes cannot",
"Feeding your faith will starve your doubts",              
"Fellowship with Christ is the secret of fruitfulness",  
"For the Christian, death is the doorway to glory",            
"For the right spiritual focus, fix your eyes on the Lord", 
"For time and for eternity, Jesus is all we need",
"Gems of truth are found in the Bible--but you must dig for them",             
"God doesn't shield us from life's storms--He shelters us",              
"God gives grace just when we need it", 
"God gives strength in proportion to the strain",
"God has left us in the world to witness to the world",             
"God is never cruel in His correction",    
"God is never inconvenienced by our prayers",          
"God loves us too much to let us stay as we are", 
"God never fails to give credit where credit is due",             
"God often uses bitter experiences to make us better",              
"God often uses life's stops to keep us moving",              
"God owes us nothing but gives us everything",            
"God provides the armor, but we must put it on",              
"God speaks through His Word, take time to listen", 
"God stretches our patience to enlarge our soul",             
"God uses ordinary people to do extraordinary work", 
"God uses our difficulties to develop our character",           
"God who delivered us yesterday is worthy of our obedience today",
"God's answers are often wiser than our prayers",  
"God's generous giving deserves thankful living",            
"God's forgiveness is the door to a new beginning",  
"God's justice leaves no room for prejudice",
"God's promises are treasures waiting to be discovered", 
"Good intentions are no substitute for obedience",
"Happiness depends on happenings; joy depends on Jesus",
"He who abandons himself to God will never be abandoned by God", 
"Honesty means never having to look over your shoulder",           
"If sin were not deceitful, it would not seem delightful",              
"If we love God, we'll obey God",              
"If you pause to think, you'll find cause to thank",
"If you think you know everything, you have a lot to learn",              
"In tough times, God teaches us to trust",   
"It's never too soon to come home to God",
"It's risky to go out on a limb--but that's where the fruit is", 
"Jesus is the only fountain who can satisfy the thirsty soul",
"Jesus took our place on the cross to give us a place in heaven",          
"Life's best outlook is a prayerful uplook",
"Little things done in Christ's name are great things",
"Living for the Lord leaves a lasting legacy",              
"Looking for a leader? Look to the Lord",              
"Morning prayer leads to evening praise",              
"No evil can penetrate the armor of God",              
"No one is good enough to save himself",              
"No one is hopeless whose hope is in God's Word",              
"No one is so bad that God cannot save him",              
"Nothing is more powerful than God's love",     
"One of the marks of a well-fed soul is a well-read Bible", 
"Only if we are ready to die are we ready to live", 
"Only the one who has learned to serve is qualified to lead",
"Only when we are changed can we help others to change",       
"Our attitude toward death determines how we live",     
"Our day's work isn't done until we build up someone",         
"Our salvation was costly to God, but it's free to us",              
"Prayer should be our first response--not our last resort",
"Putting Christ first brings satisfaction that lasts", 
"Right thinking leads to right living",  
"Sacrifice is the true measure of our giving",           
"The future is as bright as the promises of God",  
"The more we love Jesus the more we'll long for heaven",
"The only real thirst quencher is Jesus--the living water",
"The real measure of our wealth is the treasure we have in heaven", 
"The Spirit of God uses the Word of God to change the people of God",           
"The storms of our life prove the strength of our anchor", 
"The truth may hurt, but love helps ease the pain",
"The way to face Christ as Judge is to know Him as your Savior",             
"To conquer your fears, surrender them to the Lord",              
"To enjoy your walk with God, keep in step with His Word", 
"To find your way through life, follow Jesus",
"To live for Christ, we must die to self",
"To renew your love for Christ, review Christ's love for you",
"To reveal error, expose it to the light of God's truth",
"To silence gossip, don't repeat it",             
"To spend time wisely, invest it in eternity", 
"To trust is to triumph, for the battle is the Lord's", 
"Trusting God's faithfulness dispels our fearfulness",            
"Truth is not determined by how many people believe it",
"Truth spoken in love is hard to refuse",
"We can accomplish more together than we can alone",
"We get the most out of life when we live for Christ",
"We honor God our Father when we live like His Son",
"We witness best for Christ when we say the least about ourselves",
"When we have nothing left but God, we find that God is enough",
"You are headed in the right direction when you walk with God",              
"You are never in the wrong place to serve God",              
"You need to know God's truth to see through Satan's lies",   
"You never win when you play with sin"); 


var colorArray = new Array("rgb(128,0,0)");   

var tasize = tickerArray.length;
var casize = colorArray.length;
var nline = Math.floor(Math.random()*tasize); 
var ncolor = Math.floor(Math.random()*casize); 
var y = document.getElementById("topline");  
y.innerText = tickerArray[nline];  
y.style.color = colorArray[ncolor];  

timer = setTimeout("init()",10000); 

} //init()


// ### this will display the current date on the sidelinks area
function todaysDt() {
var mydate = new Date(); 
var mymonth = mydate.getMonth(); 
var myday = mydate.getDate(); 
var myyear= mydate.getYear(); 
var monthArray = new Array ("Jan.", "Feb.", "Mar.", "Apr.", "May", "June", 
                "July", "Aug.", "Sep.", "Oct.", "Nov.", "Dec."); 
var todaysDate = monthArray[mymonth] + " " + myday + ", " + myyear; 
var x = document.getElementById("dateline"); 
x.innerText = todaysDate;
} //todaysdt()


// ### this will display the kids' age as of today
function getage(kid) { 
 var adate = new Date();
 var amonth = adate.getMonth() + 1;
 var aday= adate.getDate();
 var ayear= adate.getYear(); 

 switch (kid)
 { case 'paolo': 
     { if (aday < 10) { aday += 30; amonth--;}
       if (amonth < 9) { amonth += 12; ayear--}
       ageyr = ayear - 1991;
       agemonth = amonth - 9;
       ageday = aday - 10;
       break; }
   case 'trixie': 
     { if (aday < 30) { aday += 30; amonth--;}
       if (amonth < 1) { amonth += 12; ayear--}
       ageyr = ayear - 2001;
       agemonth = amonth - 1;
       ageday = aday - 30;
       break; }
   case 'joshua': 
     { if (aday < 23) { aday += 30; amonth--;}
       if (amonth < 7) { amonth += 12; ayear--}
       ageyr = ayear - 2002;
       agemonth = amonth - 7;
       ageday = aday - 23;
       break; }
   case 'jared': 
     { if (aday < 19) { aday += 30; amonth--;}
       if (amonth < 12) { amonth += 12; ayear--}
       ageyr = ayear - 2003;
       agemonth = amonth - 12;
       ageday = aday - 19;
       break; }
 } //switch()

 if (ageyr > 1) document.writeln(ageyr +" yrs. ");
    else document.writeln (ageyr +" yr. ");
 if (agemonth > 1) document.writeln(agemonth +" mos. ");
    else document.writeln(agemonth +" mo. ");
 if (ageday > 1) document.writeln(ageday +" days");
    else document.writeln(ageday +" day");
} //getage()
