//**************************************************
// scrolling message at the bottom of the page
// msg = the message to scroll 
//**************************************************

var statusMsg = "David's Family Tree... World Wide Registry Matching Adoptees with BirthParents...";
scrollIt(100);

function scrollIt(seed){
    var out = " ";
    var c = 1;
    if (150 < seed) {
            seed--;
            var cmd="scrollIt(" + seed + ")";
            timerTwo = window.setTimeout(cmd, 25);
    }
    else if (seed <= 150 && 0 < seed) {
            for (c=0 ; c < seed ; c++) {
                    out+=" ";
            }
            out+=statusMsg;
            seed--;
            var cmd="scrollIt(" + seed + ")";
                window.status=out;
            timerTwo=window.setTimeout(cmd,25);
    }
    else if (seed <= 0) {
            if (-seed < statusMsg.length) {
                    out+=statusMsg.substring(-seed,statusMsg.length);
                    seed--;
            var cmd="scrollIt(" + seed + ")";
                    window.status=out;
                    timerTwo=window.setTimeout(cmd,25);
            }
            else {
                    window.status=" ";
                    timerTwo=window.setTimeout("scrollIt(150)",25);
            }
    }
}
