/*
 * Creativyst(tm) Quote Catcher (v1.0b)
 *
 *  (C) Copyright 2002-2003, Creativyst, Inc.
 *           ALL RIGHTS RESERVED
 *
 * You may not copy, distribute, or produce
 * derivative works of the following code
 * without the expressed, written permission
 * of Creativyst, Inc.
 *
 * Parts of this code were automatically
 * generated and may contain copyrighted
 * content from other sources as well.
 *
 *
*/



var cvsShortListSize = 21;
var cvsListPosition = 0;

var msgType = Array([cvsShortListSize]);
var msgBody = Array([cvsShortListSize]);
var msgAttrib = Array([cvsShortListSize]);
var msgDesc = Array([cvsShortListSize]);

msgType[0] = "Quote";
msgBody[0] = "As I would not be a slave, so I would not be a master. This expresses my idea of democracy. Whatever differs from this, to the extent of the difference, is no democracy.";
msgAttrib[0] = "Abraham Lincoln";

msgType[1] = "Quote";
msgBody[1] = "If I could save the Union without freeing any slave I would do it, and if I could save it by freeing all the slaves I would do it; and if I could save it by freeing some and leaving others alone I would also do that.";
msgAttrib[1] = "Abraham Lincoln";

msgType[2] = "Quote";
msgBody[2] = "Common looking people are the best in the world..that is the reason the Lord makes so many of them.";
msgAttrib[2] = "Abraham Lincoln";

msgType[3] = "Quote";
msgBody[3] = "I happen temporarily to occupy this big White House. I am living witness that any one of your children may look to come here as my father's child has.";
msgAttrib[3] = "Abraham Lincoln";

msgType[4] = "Quote";
msgBody[4] = "Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.";
msgAttrib[4] = "Abraham Lincoln";

msgType[5] = "Quote";
msgBody[5] = "War is cruelty. There is no use trying to reform it. The crueler it is, the sooner it will be over.";
msgAttrib[5] = "General William T. Sherman";

msgType[6] = "Quote";
msgBody[6] = "I can make men follow me to hell!";
msgAttrib[6] = "Union General Philip Kearny";

msgType[7] = "Quote";
msgBody[7] = "Let us pass over the river and rest under the shade of the trees.";
msgAttrib[7] = "Stonewall Jacksons last words";

msgType[8] = "Quote";
msgBody[8] = "It will be all right if it turns out all right.";
msgAttrib[8] = "Ulysses S. Grant";

msgType[9] = "Quote";
msgBody[9] = "If you bring these leaders to trial it will condemn the North, for by the Constitution secession is not rebellion.";
msgAttrib[9] = "Chief Justice of the U.S. Supreme Court";

msgType[10] = "Quote";
msgBody[10] = "I am short a cheek-bone and an ear, but am able to whip all hell yet.";
msgAttrib[10] = "Union General John M. Corse";

msgType[11] = "Quote";
msgBody[11] = "Here is a paper with which, if I cannot whip Bobbie Lee, I will be willing to go home!";
msgAttrib[11] = "Gen. George B. McClellan (He couldn't, and he did)";

msgType[12] = "Quote";
msgBody[12] = "I find myself in a new and strange position here - President, cabinet, Gen. Scott, and all deferring to me. By some strange operation of magic I seem to have become the power of the land.";
msgAttrib[12] = "Gen. George B. McClellan";

msgType[13] = "Quote";
msgBody[13] = "If you don't want to use the army, I should like to borrow it for a while.";
msgAttrib[13] = "Abraham Lincoln to Gen. George McClellan";

msgType[14] = "Quote";
msgBody[14] = "It is well that war is so terrible - we should grow too fond of it.";
msgAttrib[14] = "Robert E. Lee";

msgType[15] = "Quote";
msgBody[15] = "Atlanta is ours, and fairly won.";
msgAttrib[15] = "Gen. William T. Sherman";

msgType[16] = "Quote";
msgBody[16] = "I can make Georgia howl!";
msgAttrib[16] = "Gen. William T. Sherman";

msgType[17] = "Quote";
msgBody[17] = "With malice toward none; with charity for all...let us strive on to finish the work we are in...to do all which may achieve and cherish a just, and a lasting peace, among ourselves, and with all nations.";
msgAttrib[17] = "Abraham Lincoln, Second Inauguration speech";

msgType[18] = "Quote";
msgBody[18] = "What makes it strange is that I should have gained 12 pounds living on worms.";
msgAttrib[18] = "Tom Chamberlain";

msgType[19] = "Quote";
msgBody[19] = "Every individual will have two great opportunities that come by them in their lives. The only question you must ask yourself is... Is this the first one, or the last one?";
msgAttrib[19] = "Abraham Lincoln";

msgType[20] = "Quote";
msgBody[20] = "Every individual will have two great opportunities that come by them in their lives. The only question you must ask yourself is... Is this the first one, or the last one?";
msgAttrib[20] = "Abraham Lincoln";


 var cvsBeenLoaded = 0;
 var FixRandInt = 0;
 var dispNumb;
 var debugARGV_n = 0;
 var debugARGV_v = "";


 function msg(whatField)
 {
    if(!whatField) {
        whatField = "Body";
    }
    if(!cvsBeenLoaded) {
        cvsBeenLoaded = 1;
        dispNumb = getRandInt(cvsShortListSize);
    }


    if(whatField == "Type") {
        document.write(msgType[dispNumb]);
    }
    if(whatField == "Body") {
        document.write(msgBody[dispNumb]);
    }
    if(whatField == "Attrib") {
        document.write(msgAttrib[dispNumb]);
    }
    if(whatField == "Desc") {
        document.write(msgDesc[dispNumb]);
    }

 }


 function msgN(whatField, whatMsg)
 {
    FixRandInt = 1;
    if(!whatField) {
        whatField = "Body";
    }
    if(!whatMsg) {
        whatMsg = 0;
    }

    if(whatMsg >= cvsShortListSize) {
        whatMsg = whatMsg % cvsShortListSize;
    }
    cvsBeenLoaded = 0;
    FixRandIntVal = whatMsg;

    msg(whatField);

    cvsBeenLoaded = 0;
    FixRandInt = 0;
 }



 function msgDay(whatField)
 {
    d = new Date();
    x = d.getDate();
    msgN(whatField, x);
 }





 function getRandInt(RandSz)
 {
    var t, t2, t3;

    if(FixRandInt) {
        return(FixRandIntVal);
    }

    t = 0;
    while(t < .000001) {
        t = Math.random();
        t = Math.abs(t);
    }
    t2 = t * 1000000;
    t2 = Math.round(t2);
    t3 = t2 % RandSz;
    return(t3);
 }





