function Menu()
{
  document.write("<img src=\"CCC-Logo-200px.jpg\" height=195 width=200><br><br>")
  document.write("<div class=\"MenuRollover\">")
  document.write("<a href=\"index.html\">Latest News</a><br>")
  document.write("<a href=\"iSunday.html\">Sunday Service</a><br>")
  document.write("<a href=\"iGroups.html\">Groups and Activities</a><br>")
  document.write("<a href=\"iContact.html\">Contact</a><br>")
  document.write("<a href=\"iHistory.html\">History</a><br>")
  document.write("<a href=\"iSermons.html\">Sermons</a><br>")
  document.write("</div>")
}


function HeadWrapper()
{
  document.write("<table class=\"MainTable\">")
  document.write("<tr>")
  document.write("<td class=\"MainTable\">")
  document.write("<table>")
  document.write("<tr>")
  document.write("<td>")
  document.write("<script type=\"text/javascript\">Menu()</script>")
  document.write("</td>")
  document.write("<td width=100%>")
}


function TailWrapper()
{
  document.write("</td>")
  document.write("</tr>")
  document.write("<tr>")
  document.write("<td colspan=\"2\">")
  document.write("<hr>")
  document.write("<script type=\"text/javascript\">RandomQuote()</script>")
  document.write("<hr>")
  document.write("<P align=\"right\"><sub>© Copyright Cornerstone Christian Church Inc</sub></p>")
  document.write("</td>")
  document.write("</tr>")
  document.write("</table>")
  document.write("</td>")
  document.write("</tr>")
  document.write("</table>")
}


// This is an small attempt to mask to elders email address from automated email spammers.
function Elders()
{

  document.write( String.fromCharCode(101) );
  document.write( String.fromCharCode(108) );
  document.write( String.fromCharCode(100) );
  document.write( String.fromCharCode(101) );
  document.write( String.fromCharCode(114) );
  document.write( String.fromCharCode(115) );

  AtSymbol = 6 * 10 + 4
  document.write( String.fromCharCode( AtSymbol ) );

  document.write( String.fromCharCode(099) );
  document.write( String.fromCharCode(111) );
  document.write( String.fromCharCode(114) );
  document.write( String.fromCharCode(110) );
  document.write( String.fromCharCode(101) );
  document.write( String.fromCharCode(114) );
  document.write( String.fromCharCode(115) );
  document.write( String.fromCharCode(116) );
  document.write( String.fromCharCode(111) );
  document.write( String.fromCharCode(110) );
  document.write( String.fromCharCode(101) );
  document.write( String.fromCharCode(099) );
  document.write( String.fromCharCode(099) );

  FirstDot = 4 * 10 + 6
  document.write( String.fromCharCode( FirstDot ) );

  document.write( String.fromCharCode(111) );
  document.write( String.fromCharCode(114) );
  document.write( String.fromCharCode(103) );

  SecondDot = 5 * 10 - 4
  document.write( String.fromCharCode( SecondDot ) );

  document.write( String.fromCharCode(097) );
  document.write( String.fromCharCode(117) );
}


function RandomQuote()
{
  var quotes = new Array;
  quotes.push("Jesus said 'I am the way, the truth and the life. No one comes to the Father except through Me.' (John 14:6 NIV)");
  quotes.push("Trust the Lord your God with all your heart, and lean not on your own understanding; in all your ways acknowledge Him, and He will direct your path. (Proverbs 3:5-6 NIV)");
  quotes.push("And we know that God causes everything to work together for the good of those who love God and are called according to his purpose for them. (Romans 8:28 NIV)");
  quotes.push("God is our refuge and strength, an ever-present help in trouble. (Psalm 46:1 NIV)");
  quotes.push("The Spirit of the Sovereign Lord is upon me to preach good news to the poor. He has sent me to bind up the broken hearted, to proclaim freedom for the captives and release from darkness for the prisoners, to proclaim the year of the Lord’s favour.<br>(Isaiah 61:1-2 NIV)");
  quotes.push("Jesus asked 'Who do you say I am?' Simon Peter answered, 'You are the Messiah, the Son of the living God.'<br>(Matthew 16:15b-16 NIV)");
  quotes.push("But just as he who called you is holy, so be holy in all you do.'<br>(1 Peter 1:15 NIV)");
  quotes.push("He says, 'Be still, and know that I am God'<br>(Psalm 46:10 NIV)");
  quotes.push("He will be called Wonderful Counselor, Mighty God, Everlasting Father, Prince of Peace. <br>(Isaiah 9:6 NIV)");
  quotes.push("Peace I leave with you; my peace I give you. I do not give to you as the world gives. Do not let your hearts be troubled and do not be afraid.<br>(John 14:27 NIV)");
  quotes.push("If it is possible, as far as it depends on you, live at peace with everyone.<br>(Romans 12:18 NIV)");
  quotes.push("And the peace of God, which transcends all understanding, will guard your hearts and your minds in Christ Jesus.<br>(Philippians 4:7 NIV)");
  quotes.push("But he said to me, 'My grace is sufficient for you, for my power is made perfect in weakness.' Therefore I will boast all the more gladly about my weaknesses, so that Christ’s power may rest on me.<br>(2 Corinthians 12:9 NIV)");

  document.write(quotes[(Math.floor(Math.random() * quotes.length))]);
}

