/*
The MIT License

Copyright (c) 2010 Jim Lehmer, jim [dot] lehmer [at] gmail [dot] com.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
// Lotsa buzzwords - can always use more.
var terms =
[ 
    [Math.random(), "Acculturation"],
    [Math.random(), "Acolyte"],
    [Math.random(), "Acts 29 Church"],
    [Math.random(), "Altar"],
    [Math.random(), "Altar Call"],
    [Math.random(), "Amen"],
    [Math.random(), "Anabaptist"],
    [Math.random(), "Apologetics"],
    [Math.random(), "Apostle"],
    [Math.random(), "Apostle's Creed"],
    [Math.random(), "Apostolic"],
    [Math.random(), "Apostolic Succession"],
    [Math.random(), "Arminian"],
    [Math.random(), "Assimilation"],
    [Math.random(), "Atonement"],
    [Math.random(), "Attractional Church"],
    [Math.random(), "Authentic"],
    [Math.random(), "Authentic Church"],
    [Math.random(), "Believer's Baptism"],
    [Math.random(), "Bishop"],
    [Math.random(), "Blessings"],
    [Math.random(), "Brethren"],
    [Math.random(), "By Faith Alone"],
    [Math.random(), "By Grace Alone"],
    [Math.random(), "By Scripture Alone"],
    [Math.random(), "Called"],
    [Math.random(), "Calling"],
    [Math.random(), "Catechism"],
    [Math.random(), "Catholic"],
    [Math.random(), "CCM"],
    [Math.random(), "Charismatic"],
    [Math.random(), "Christ-Follower"],
    [Math.random(), "Christian Growth"],
    [Math.random(), "Christian Lifestyle"],
    [Math.random(), "Christological"],
    [Math.random(), "Church"],
    [Math.random(), "Church Fathers"],
    [Math.random(), "Church Growth"],
    [Math.random(), "Church Health"],
    [Math.random(), "Church Multiplication"],
    [Math.random(), "Church Planting"],
    [Math.random(), "Clergy"],
    [Math.random(), "Clerical"],
    [Math.random(), "Close Communion"],
    [Math.random(), "Community"],
    [Math.random(), "Complementarianism"],
    [Math.random(), "Confessional Church"],
    [Math.random(), "Confirmands"],
    [Math.random(), "Confirmation"],
    [Math.random(), "Congregants"],
    [Math.random(), "Conservative"],
    [Math.random(), "Consubstantiation"],
    [Math.random(), "Contemplative Prayer"],
    [Math.random(), "Contemporary"],
    [Math.random(), "Context"],
    [Math.random(), "Contextualization"],
    [Math.random(), "Conversion"],
    [Math.random(), "Convicted"],
    [Math.random(), "Creation"],
    [Math.random(), "Credal Church"],
    [Math.random(), "Creed"],
    [Math.random(), "Curate"],
    [Math.random(), "Damnation"],
    [Math.random(), "Damned"],
    [Math.random(), "Denomination"],
    [Math.random(), "Deacon"],
    [Math.random(), "Devil"],
    [Math.random(), "Devotion"],
    [Math.random(), "Devotional"],
    [Math.random(), "Die to Our Old Selves"],
    [Math.random(), "Disciple"],
    [Math.random(), "Discipling"],
    [Math.random(), "Divine Office"],
    [Math.random(), "Doctrine"],
    [Math.random(), "Doxology"],
    [Math.random(), "Ecclesia"],
    [Math.random(), "Ecclesiology"],
    [Math.random(), "Ecumenism"],
    [Math.random(), "Eikon"],
    [Math.random(), "Elder"],
    [Math.random(), "Emergent"],
    [Math.random(), "Emerging"],
    [Math.random(), "Eschatology"],
    [Math.random(), "Eucharist"],
    [Math.random(), "Evangelical"],
    [Math.random(), "Evangelism"],
    [Math.random(), "Evil"],
    [Math.random(), "Exalted"],
    [Math.random(), "Exegesis"],
    [Math.random(), "Fallen"],
    [Math.random(), "Fellowship"],
    [Math.random(), "Free Will"],
    [Math.random(), "Full Immersion"],
    [Math.random(), "Fully Devoted Follower of Christ"],
    [Math.random(), "Gifting"],
    [Math.random(), "God's People"],
    [Math.random(), "God's Temple"],
    [Math.random(), "Gospel"],
    [Math.random(), "Grace"],
    [Math.random(), "Great Commandment"],
    [Math.random(), "Great Commission"],
    [Math.random(), "Heaven"],
    [Math.random(), "Heavenly"],
    [Math.random(), "Hell"],
    [Math.random(), "Heresy"],
    [Math.random(), "Heterodoxy"],
    [Math.random(), "Hierarchal"],
    [Math.random(), "High Church"],
    [Math.random(), "Homiletics"],
    [Math.random(), "Homily"],
    [Math.random(), "House Church"],
    [Math.random(), "Hypostatic Union"],
    [Math.random(), "Iconography"],
    [Math.random(), "Idol"],
    [Math.random(), "Idolatry"],
    [Math.random(), "Immaculate Conception"],
    [Math.random(), "Incarnational"],
    [Math.random(), "Infant Baptism"],
    [Math.random(), "Intentional Living"],
    [Math.random(), "Intercession"],
    [Math.random(), "Intercessionary Prayer"],
    [Math.random(), "Jesus-Follower"],
    [Math.random(), "John 3:16"],
    [Math.random(), "Judgment"],
    [Math.random(), "Justification"],
    [Math.random(), "Kingdom of God"],
    [Math.random(), "Laity"],
    [Math.random(), "Lay Person"],
    [Math.random(), "Leadership"],
    [Math.random(), "Lectionary"],
    [Math.random(), "Legalism"],
    [Math.random(), "Liberal"],
    [Math.random(), "Liberation Theology"],
    [Math.random(), "Liturgical Church"],
    [Math.random(), "Liturgy"],
    [Math.random(), "Lost Souls"],
    [Math.random(), "Low Church"],
    [Math.random(), "Mediation"],
    [Math.random(), "Mega-church"],
    [Math.random(), "Metanarrative"],
    [Math.random(), "Minister"],
    [Math.random(), "Ministry"],
    [Math.random(), "Missiological"],
    [Math.random(), "Mission"],
    [Math.random(), "Missional"],
    [Math.random(), "Missional Church"],
    [Math.random(), "Mission Statement"],
    [Math.random(), "Modern"],
    [Math.random(), "Monastic"],
    [Math.random(), "Narrative"],
    [Math.random(), "Narthex"],
    [Math.random(), "Natural Church Development"],
    [Math.random(), "Neo-orthodoxy"],
    [Math.random(), "New Testament Church"],
    [Math.random(), "Nicene Creed"],
    [Math.random(), "'Normal' Christian"],
    [Math.random(), "Ordained"],
    [Math.random(), "Ordination"],
    [Math.random(), "Orthodoxy"],
    [Math.random(), "'Outer Courts' Christian"],
    [Math.random(), "Outreach"],
    [Math.random(), "Pastor"],
    [Math.random(), "Pastoral Care"],
    [Math.random(), "Pastoral Counseling"],
    [Math.random(), "Penal Substitution"],
    [Math.random(), "Pentacost"],
    [Math.random(), "Pentacostal"],
    [Math.random(), "Pharisee"],
    [Math.random(), "Postapostolic"],
    [Math.random(), "Postapostolic Christians"],
    [Math.random(), "Post-modern"],
    [Math.random(), "Praise Team"],
    [Math.random(), "Praxis"],
    [Math.random(), "Prayer"],
    [Math.random(), "Prayer Warrior"],
    [Math.random(), "Prayerful"],
    [Math.random(), "Preacher"],
    [Math.random(), "Presbyter"],
    [Math.random(), "Predestination"],
    [Math.random(), "Pretribulation Dispensationalism"],
    [Math.random(), "Priesthood of All Believers"],
    [Math.random(), "Proof-Texting"],
    [Math.random(), "Prophecy"],
    [Math.random(), "Prophet"],
    [Math.random(), "Prosperity Gospel"],
    [Math.random(), "Psalm 23"],
    [Math.random(), "Psalmody"],
    [Math.random(), "Purpose Driven"],
    [Math.random(), "Purpose Statement"],
    [Math.random(), "Quiverful"],
    [Math.random(), "'Real' Christian"],
    [Math.random(), "'Red Letter' Christian"],
    [Math.random(), "Redemption"],
    [Math.random(), "Reformed"],
    [Math.random(), "Relevance"],
    [Math.random(), "Righteousness"],
    [Math.random(), "Sacerdotal"],
    [Math.random(), "Sacramental"],
    [Math.random(), "Sacred"],
    [Math.random(), "Sacred Space"],
    [Math.random(), "Sacrifice"],
    [Math.random(), "Sacrilegious"],
    [Math.random(), "Sacristy"],
    [Math.random(), "Sacrosanct"],
    [Math.random(), "Saint"],
    [Math.random(), "Sainthood"],
    [Math.random(), "Salvation"],
    [Math.random(), "Sanctification"],
    [Math.random(), "Satan"],
    [Math.random(), "Scripture interprets Scripture"],
    [Math.random(), "Seeker-Sensitive"],
    [Math.random(), "Self-Interpreting"],
    [Math.random(), "Sermon"],
    [Math.random(), "Servant Heart"],
    [Math.random(), "Shun"],
    [Math.random(), "Simple Church"],
    [Math.random(), "Sin"],
    [Math.random(), "Small Church"],
    [Math.random(), "Social Gospel"],
    [Math.random(), "Sola Fide"],
    [Math.random(), "Sola Gratia"],
    [Math.random(), "Sola Scriptura"],
    [Math.random(), "Soteriology"],
    [Math.random(), "Spiritual Maturity"],
    [Math.random(), "Spiritual Warfare"],
    [Math.random(), "Strayed"],
    [Math.random(), "Substitutionary Atonement"],
    [Math.random(), "Sustainable"],
    [Math.random(), "Syncretism"],
    [Math.random(), "Synoptic Gospels"],
    [Math.random(), "Systematic Theology"],
    [Math.random(), "Tetragrammaton"],
    [Math.random(), "Theologian"],
    [Math.random(), "Theology"],
    [Math.random(), "Theophany"],
    [Math.random(), "'The' Church"],
    [Math.random(), "The Fall"],
    [Math.random(), "Tithe"],
    [Math.random(), "Traditional"],
    [Math.random(), "Transubstantiation"],
    [Math.random(), "Triune"],
    [Math.random(), "Uncatechized"],
    [Math.random(), "Unchurched"],
    [Math.random(), "Universalism"],
    [Math.random(), "Unscriptural"],
    [Math.random(), "VBS"],
    [Math.random(), "Verger"],
    [Math.random(), "Vestments"],
    [Math.random(), "Vestry"],
    [Math.random(), "Virgin Birth"],
    [Math.random(), "Visioning"],
    [Math.random(), "Vocation"],
    [Math.random(), "What does that look like to you?"],
    [Math.random(), "Witnessing"],
    [Math.random(), "Works"],
    [Math.random(), "Worship Leader"],
    [Math.random(), "Worship Team"],
    [Math.random(), "Your Body is a Temple"],
    [Math.random(), "Youth Minister"],
    [Math.random(), "Youth Program"]
];

var termList = "Christian Buzzword Bingo v1.4.16\n" +
               "Copyright (c) 2008 - Jim Lehmer (jim [dot] lehmer [at] gmail [dot] com)\n\n" +
               "The following terms were used to generate this bingo card. If you have more " +
               "suggestions send them to me at the above email address.\n\n";

// Onload event handler.
function Generate()
{
    for (var i = 0; i < terms.length; i++)
    {
        termList += terms[i][1] + (i < terms.length - 1 ? ", " : ".");         
    }
    
    // The following is crude, but effective.
    terms.sort();
    document.getElementById("B0").innerHTML = terms[0][1];
    document.getElementById("I0").innerHTML = terms[1][1];
    document.getElementById("N0").innerHTML = terms[2][1];
    document.getElementById("G0").innerHTML = terms[3][1];
    document.getElementById("O0").innerHTML = terms[4][1];
    document.getElementById("B1").innerHTML = terms[5][1];
    document.getElementById("I1").innerHTML = terms[6][1];
    document.getElementById("N1").innerHTML = terms[7][1];
    document.getElementById("G1").innerHTML = terms[8][1];
    document.getElementById("O1").innerHTML = terms[9][1];
    document.getElementById("B2").innerHTML = terms[10][1];
    document.getElementById("I2").innerHTML = terms[11][1];
    document.getElementById("G2").innerHTML = terms[12][1];
    document.getElementById("O2").innerHTML = terms[13][1];
    document.getElementById("B3").innerHTML = terms[14][1];
    document.getElementById("I3").innerHTML = terms[15][1];
    document.getElementById("N3").innerHTML = terms[16][1];
    document.getElementById("G3").innerHTML = terms[17][1];
    document.getElementById("O3").innerHTML = terms[18][1];
    document.getElementById("B4").innerHTML = terms[19][1];
    document.getElementById("I4").innerHTML = terms[20][1];
    document.getElementById("N4").innerHTML = terms[21][1];
    document.getElementById("G4").innerHTML = terms[22][1];
    document.getElementById("O4").innerHTML = terms[23][1];
}

function ShowAbout()
{
    alert(termList);
}
