var delay = 6000; // ms

var quotes = [
["Those who bring sunshine into the lives of others cannot keep it from themselves.", "J M Barrie"],
["If you want to be happy, be.", "Henry David Thoreau"],
["When we are motivated by goals that have deep meaning, by dreams that need completion, by pure love that needs expressing, then we truly live", "Greg Anderson"],
["Keep your eyes on the stars but remember to keep your feet on the ground.", "Teddy Roosevelt"],
["Goals are not only absolutely necessary to motivate us. They are essential to really keep us alive.", "Robert Schuller"],
["Stress is the gap between vision and reality.", "Unknown"],
["Life is what happens to you while you are busy making other plans.", "Voltaire"],
["Success is not the result of spontaneous combustion. You must set yourself on fire.", "Reggie Leach"],
["The road to success has many tempting parking places.", "Steve Potter"],
["If I keep a green bough in my heart, the singing bird will come.", "Chinese Proverb"],
["Be master of mind rather than be mastered by mind.", "Zen saying"],
["Work like you don't need the money, love like you've never been hurt, dance like nobody's watching.", "Satchmo Paige"],
["The only thing you have to do is use the time you are given.", "Gandalf (from Lord of the Rings film)"],
["Nothing in this world is impossible to a willing heart.", "Abraham Lincoln"],
["Time you enjoyed wasting, was not wasted.", "John Lennon"],
["Whatever the mind can conceive and believe, it will achieve.", "Napoleon Hill"],
["Your past is not your potential.", "Marilyn Ferguson"],
["When you lose, don't lose the lesson.", "Unknown"],
["Do not go where the path might lead &#8212; go instead where there is no path and leave a trail.", "Ralph Waldo Emerson"],
["Even if you're on the right track, you'll get run over if you just sit there.", "Will Rogers"],
["I always wanted to be somebody &#8212; I just wish I'd been more specific.", "Lily Tomlin"]
];

var quotelayer;
var count = 0;

function print_quote() {

    msgstring="<span class=\"quotation\">\"" + quotes[count][0] +"\"</span><span class=\"quotee\">&#8212;" + quotes[count][1]+"</span>";
    
    if (++count >= quotes.length) {
    	count = 0;
    }

    // Nb no if(document.layers) - too hard to make it work in NN4


    if(document.all){
	//thisbrowser="ie"
	quotelayer = document.all["quote"];
	quotelayer.innerHTML=msgstring;
    }

    if(!document.all && document.getElementById){
	//thisbrowser="NN6";
	quotelayer = document.getElementById("quote");
	quotelayer.innerHTML =msgstring;
    }

    window.setTimeout("print_quote()",delay); 
}
