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] = 'Cogito cogito ergo cogito sum <br />&mdash; I think that I think, therefore I think that I am. <br />&mdash; Ambrose Bierce (1842 - 1914),  The Devil\'s Dictionary   ';
random_quotes[1] = 'There is no better way of exercising the imagination than the study of law. No poet ever interpreted nature as freely as a lawyer interprets truth. <br />&mdash; Jean Giraudoux, "Tiger at the Gates"   ';
random_quotes[2] = 'Exhilaration is that feeling you get just after a great idea hits you, and just before you realize what is wrong with it. <br />&mdash; Your Daily Fortune   ';
random_quotes[3] = '"Me fail English?  But that am un-possible!" <br />&mdash; Ralph Wiggum, "The Simpsons"   ';
random_quotes[4] = 'If all else fails, lower your standards. <br />&mdash; Anonymous   ';
random_quotes[5] = '"I gained nothing at all from Supreme Enlightenment, and for that very reason it is called Supreme Enlightenment." <br />&mdash; Gautama Buddha   ';
random_quotes[6] = 'You can have a dog as a friend.  You can have whiskey as a friend.  But if you have a woman as a friend, you\'re going to wind up drunk and kissing your dog. <br />&mdash; Your Daily Fortune   ';
random_quotes[7] = 'Nature, to be commanded, must be obeyed. <br />&mdash; Francis Bacon   ';
random_quotes[8] = 'Nuclear powered vacuuum cleaners will probably be a reality within 10 years. <br />&mdash; Alex Lewyt (President of the Lewyt Corporation, manufacturers of vacuum cleaners), quoted in The New York Times, June 10, 1955.   ';
random_quotes[9] = 'Statistics are no substitute for judgement. <br />&mdash; Henry Clay   ';
random_quotes[10] = 'If you only have a hammer, you tend to see every problem as a nail. <br />&mdash; Abraham Maslow, Psychologist (1908-1970)   ';



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);
}



