
// ==============================================
// Copyright 2004 by CodeLifter.com
// Free for all; but please leave in this header.
// ==============================================

var Quotation = new Array();
var Source = new Array();
var Quote_URL = new Array();

function addQuotation(quote, src, url) {
    var len = Quotation.length;
    Quotation[len] = quote;
    Source[len] = src;
    Quote_URL[len] = url;
}

function addBibleQuotation(quote, src) {
    addQuotation(quote, src, "http://www.biblegateway.com/bible?passage=" + escape(src));
}

addBibleQuotation("In the beginning was the Word, and the Word was with God, and the Word was God.",
                  "John 1:1");

addBibleQuotation("The Word became flesh and made his dwelling among us.",
                  "John 1:14");

addBibleQuotation("For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.",
                  "John 3:16");

addBibleQuotation("For God did not send his Son into the world to condemn the world, but to save the world through him.",
                  "John 3:17");

addBibleQuotation("Whoever lives by the truth comes into the light.",
                  "John 3:21");

addBibleQuotation("Whoever believes in the Son has eternal life.",
                  "John 3:36");

addBibleQuotation("Everyone who drinks this water will be thirsty again, but whoever drinks the water I give him will never thirst.",
                  "John 4:13-14");

addBibleQuotation("\"My food\", said Jesus, \"is to do the will of him who sent me and to finish his work.\"",
                  "John 4:34");

addBibleQuotation("Then Jesus said to him, \"Get up! Pick up your mat and walk.\" At once the man was cured; he picked up his mat and walked.",
                  "John 5:8-9");

addBibleQuotation("It is I; don't be afraid.",
                  "John 6:20");

addBibleQuotation("I am the bread of life. He who comes to me will never go hungry, and he who believes in me will never be thirsty.",
                  "John 6:35");

addBibleQuotation("Lord, to whom shall we go? You have the words of eternal life.",
                  "John 6:68");

addBibleQuotation("I am the vine; you are the branches. If a man remains in me and I in him, he will bear much fruit; apart from me you can do nothing.",
                  "John 15:5");

addBibleQuotation("As the Father has loved me, so have I loved you.",
                  "John 15:9");

addBibleQuotation("My command is this: Love each other as I have loved you. Greater love has no one than this, that he lay down his life for his friends.",
                  "John 15:12-13");

//addBibleQuotation("",
//                  "");

//addQuotation("If we really want to love we must learn how to forgive.", "Mother Teresa", "");

var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation() {
    var includeLink = (Quote_URL[whichQuotation] != "");
    document.write("<SPAN class=\"quote\">" + Quotation[whichQuotation] + "</SPAN>");
    document.write("<SPAN class=\"quotesource\">" + " &nbsp; ");
    if (includeLink) document.write("<a href=\"" + Quote_URL[whichQuotation] + "\">");
    document.write(Source[whichQuotation]);
    if (includeLink) document.write("</a>");
    document.write("</SPAN>");
}

