<!-- javascript for fgb's home page
//
// mod 17-feb-2003, fgb: added changePic()
//
// scrollit func copyright (C)1996 Web Integration Systems, Inc. DBA Websys, Inc

// preload some images:

img1 = new Image();
img2 = new Image();
img1.src = "photos/frogHorn.jpg";
img2.src = "photos/rally-f.jpg";
changePic.bFlip = 0;    // static var of changePic function

function changePic()	// add more images some time
{
(changePic.bFlip == 0)? changePic.bFlip = 1 : changePic.bFlip = 0;
if (changePic.bFlip == 0) {
  document.images['fpic'].src=img1.src;
  document.images['fpic'].alt="[photo by Colleen Tuell]";
  return img1.src;
  }
else {
  document.images['fpic'].src=img2.src;
  document.images['fpic'].alt="[photo by Christopher Gronbeck]";
  return img2.src;
  }
}

function scrollit_r2l(seed)
{
    /********************************************
        var m1  = ". . . so this 3-legged dog walks into a bar . . . ";
        var m2  = "\"What'll it be?\" the bartender asks . . . ";
        var m3  = "\"Nothing,\" the dog replies, . . . ";
        var m4  = "\"I'm looking for the man who shot my paw.\"";
    **********************************************
        var m1 = "A depressed lawyer sits alone in her dark office, head";
        var m2 = " in her hands. . . the devil appears and says ";
        var m3 = "\"I'll make you the most famous lawyer in the country";
        var m4 = " in exchange for your soul.\"  \"Sounds good,\"";
        var m5 = " says the lawyer, \"what's the catch?\"";
    ***********************************************/
        var msg = "What did the buddhist monk say to the hotdog vendor? ";
        msg += "...\"Make me one with everything.\"";
        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);
                }
        }
}
// -- End of joke.js
