/*
James Robshaw (james@robshaw.zynet.co.uk)
This script was borrowed from http://homepage.zynet.co.uk/robshaw/
You may use this JavaScript example as you see fit, as long as the
information within this comment above is included in your script.
*/

<!--

function days_between(date1, date2) {

    // The number of milliseconds in one day
    var ONE_DAY = 1000 * 60 * 60 * 24;

    // Convert both dates to milliseconds
    var date1_ms = date1.getTime();
    var date2_ms = date2.getTime();

    // Calculate the difference in milliseconds
    var difference_ms = Math.abs(date1_ms - date2_ms);
    
    // Convert back to days and return
    return Math.round(difference_ms/ONE_DAY);

}

//-->

function scrollit_r2l(seed)

{
    var m1 = " pgp key changed Jun 26, 2004 expires Jun 25, 2005 click on 'my key' link in pgp section of web page to get to copy ***  ";

    var m2 = " fax (309) 408-8183 *** ";



<!--

// Store the current date and time
var current_date = new Date()

// Store the date of the next Inaugural Day
var inaug_date = new Date();
inaug_date.setYear(2009);
inaug_date.setMonth(0);
inaug_date.setDate(20);

// Call the days_between function
var days_left = days_between(current_date, inaug_date);

// Write the result to the page
if (current_date < inaug_date)  {
    var m3 = days_left; 
    var m4 = " days until George Bush retires to Crawford.  Keep your head down **** ";
}
else {
    var m3 = "the anti christ is gone ";
    var m4 = "free at last, free at last, thank god we are free at last ****";
}

//-->

    var msg = m1+m2+m3+m4;

        var out = " ";

        var c   = 1;



        if (seed > 100) {

                seed--;

                var cmd="scrollit_r2l(" + seed + ")";

                timerTwo=window.setTimeout(cmd,100);

        }

        else if (seed <= 100 && seed > 0) {

                for (c=0 ; c < seed ; c++) {

                        out+=" ";

                }

                out+=msg;

                seed--;

                var cmd="scrollit_r2l(" + seed + ")";

                    window.status=out;

                timerTwo=window.setTimeout(cmd,100);

        }

        else if (seed <= 0) {

                if (-seed < msg.length) {

                        out+=msg.substring(-seed,msg.length);

                        seed--;

                        var cmd="scrollit_r2l(" + seed + ")";

                        window.status=out;

                        timerTwo=window.setTimeout(cmd,100);

                }

                else {

                        window.status=" ";


timerTwo=window.setTimeout("scrollit_r2l(100)",75);

                }

        }

}


