// Java Document
<!--

var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;

onload = start;

var ww = new Array();
ww[0] = "<p>&quot;Great works are performed not by strength, but by perseverance.&quot; </p><p class=\"align-right\">~Samuel Johnson </p>";
ww[1] = "<p>&quot;Wise men talk because they have something to say; fools, because they have to say something.&quot; </p><p class=\"align-right\">~Plato</p>";
ww[2] = "<p>&quot;If you find yourself in a hole, the first thing to do is stop digging.&quot; </p><p class=\"align-right\">~Will Rogers</p>";
ww[3] = "<p>&quot;Many people have ideas on how others should change; few people have ideas on how they should change.&quot; </p><p class=\"align-right\">~Tolstoy</p>";
ww[4] = "<p>&quot;Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.&quot; </p><p class=\"align-right\">~Albert Einstein</p>";
ww[5] = "<p>&quot;Emanicipate yourself from mental slavery; None but ourselves can free our minds.&quot; </p><p class=\"align-right\">~Bob Marley</p>";
ww[6] = "<p>&quot;What is past is prologue.&quot; </p><p class=\"align-right\">~William Shakespeare</p>";
ww[7] = "<p>&quot;A little nonsense now and then is relished by the wisest men.&quot; </p><p class=\"align-right\">~Willy Wonka</p>";
ww[8] = "<p>&quot;Even if I knew that tomorrow the world would go to pieces, I would still plant my apple tree.&quot; </p><p class=\"align-right\">~Dr. Martin Luther King, Jr.</p>";
ww[9] = "<p>&quot;He not busy being born is busy dying.&quot; </p><p class=\"align-right\">~Bob Dylan</p>";

var ar = new Array();
ar[0] = "&#8220;Heaven goes by favour. If it went by merit, you would stay out and your dog would go in.&#8221;  ~Mark Twain";
ar[1] = "&#8220;There is no psychiatrist in the world like a puppy licking your face.&#8221;  ~Ben Williams";
ar[2] = "&#8220;If you get to thinking you're a person of some influence, try ordering somebody else's dog around.&#8221;  ~Will Rogers";
ar[3] = "&#8220;The dog is a gentleman; I hope to go to his heaven, not man's.&#8221;  ~Mark Twain, letter to W.D. Howells, 2 April 1899";
ar[4] = "&#8220;In order to really enjoy a dog, one doesn't merely try to train him to be semi human.  The point of it is to open oneself to the possibility of becoming partly a dog.&#8221;  ~Edward Hoagland";
ar[5] = "&#8220;Any member introducing a dog into the Society's premises shall be liable to a fine of one pound.  Any animal leading a blind person shall be deemed to be a cat.&#8221;  ~Oxford Union Society, London, Rule 46";
ar[6] = "&#8220;Happiness is a warm puppy.&#8221;  ~Charles M. Schulz";
ar[7] = "&#8220;You ask of my companions;  Hills, sir, and the sundown, and a dog as large as myself that my father bought me.  They are better than human beings, because they know but do not tell.&#8221;  ~Emily Dickinson";
ar[8] = "&#8220;If a dog will not come to you after having looked you in the face, you should go home and examine your conscience.&#8221;  ~Woodrow Wilson";

function get_random()
{
    var ranNum= Math.floor(Math.random()*ar.length);
    return ranNum;
}

var num = get_random();

function get_random2()
{
    var ranNum= Math.floor(Math.random()*ww.length);
    return ranNum;
}

var num2 = get_random2();

function start() {
  setInterval("update()", 10000);
}

function update() {
  display("slogan", ar[num]);
  num = get_random();
  display("wisewords", ww[num2]);
  num2 = get_random2();
}

function display(id, str) {
  if (NS4) {
    with (document[id].document) {
      open();
      write(str);
      close();
    }
  } else {
    document.all[id].innerHTML = str;
  }
}

// -->
