var secs    = 10;
var numpics = 8;



img0 = new Image();
img0.src = "/ssi/cache/0.jpeg";
img1 = new Image();
img1.src = "/ssi/cache/1.jpeg";
img2 = new Image();
img2.src = "/ssi/cache/2.jpeg";
img3 = new Image();
img3.src = "/ssi/cache/3.jpeg";
img4 = new Image();
img4.src = "/ssi/cache/4.jpeg";
img5 = new Image();
img5.src = "/ssi/cache/5.jpeg";
img6 = new Image();
img6.src = "/ssi/cache/6.jpeg";
img7 = new Image();
img7.src = "/ssi/cache/7.jpeg";

var pics = new Array(numpics);

pics[0] = img0.src;
pics[1] = img1.src;
pics[2] = img2.src;
pics[3] = img3.src;
pics[4] = img4.src;
pics[5] = img5.src;
pics[6] = img6.src;
pics[7] = img7.src;



var quoteVarName  = "random_quotes";
var random_quotes = new Array();



random_quotes[0] = 'Fain would I climb, yet fear I to fall. <br />&mdash; Sir Walter Raleigh   ';
random_quotes[1] = '"He must be a \'practical\' man who can see no poetry in mathematics." <br />&mdash; W.F. White   ';
random_quotes[2] = 'Q:      Why haven\'t you graduated yet? A:      Well, Dad, I could have finished years ago, but I wanted my dissertation to rhyme. <br />&mdash; Your Daily Fortune   ';
random_quotes[3] = 'kernel, n.: A part of an operating system that preserves the medieval traditions of sorcery and black art. <br />&mdash; Your Daily Fortune   ';
random_quotes[4] = 'I\'m sorry, but my karma just ran over your dogma. <br />&mdash; Your Daily Fortune   ';
random_quotes[5] = '"Adventure lies not in discovering new landscapes, but in seeing with new eyes."  <br />&mdash; Marcel Proust   ';
random_quotes[6] = 'Absence is to love what wind is to fire.  It extinguishes the small, it enkindles the great. <br />&mdash; Anonymous   ';
random_quotes[7] = 'That unit is a woman. A mass of conflicting impulses. <br />&mdash; Spock, "The Changeling"   ';
random_quotes[8] = 'If you only have a hammer, you tend to see every problem as a nail. <br />&mdash; Abraham Maslow, Psychologist (1908-1970)   ';
random_quotes[9] = '"As long as there are tests, there will always be prayer in schools."  <br />&mdash; Melissa Anderson   ';
random_quotes[10] = 'Mohandas K. Gandhi often changed his mind publicly.  An aide once asked him how he could so freely contradict this week what he had said just last week. The great man replied that it was because this week he knew better. <br />&mdash; Anonymous   ';



function rand(n) {
    return ( Math.floor(Math.random() * n+1) );
}






function makeRandomQuotes() {
  // Pick a random quote from the list,
  // and set the 'random_quotes' paragraph content to that quote
  document.getElementById("random_quotes").innerHTML = random_quotes[rand(11)-1];
  setTimeout("makeRandomQuotes()",secs * 1000 * 1.5);
}




