
function Quotes()
{
	this.quotes = [];
	this.index = 0;
}
Quotes.prototype.add = function(author, text)
{
	this.quotes.push({
		text: text,
		author: author
	});
}
Quotes.sort_random = function(a, b)
{
	return Math.random()>0.5?1:-1;
}
Quotes.prototype.shuffle = function()
{
	this.quotes.sort(Quotes.sort_random);
}
Quotes.prototype.next = function()
{
	this.index = (++this.index)%this.quotes.length;
	return this.quotes[this.index];
}

var quotes = new Quotes();

quotes.add('St. Augustine', 'The world is a book and those who do not travel read only one page.');
quotes.add('Colette', 'The earth belongs to anyone who stops for a moment, gazes and goes on his way.');
quotes.add('T. S. Eliot', 'The journey not the arrival matters.');
quotes.add('Henry Miller', 'One\'s destination is never a place, but a new way of seeing things.');
quotes.add('Jason Rodi', 'Every ticket is a journey waiting to begin.');
quotes.add('William Shakespeare', 'Journeys end in lovers meeting.');
quotes.add('Mohammed', 'Don\'t tell me how educated you are, tell me how much you traveled.');
quotes.add('Vladimir Nabokov', 'That life-quickening atmosphere of a big railway station where everything is something trembling on the brink of something else.');
quotes.add('Pascal', 'Our nature lies in movement; complete calm is death.');
quotes.add('Marcel Proust', 'The real voyage of discovery consists not in seeing new landscapes, but in having new eyes.');
quotes.add('Benjamin Disraeli', 'Like all great travelers, I have seen more than I remember and remember more than I have seen.');
quotes.add('James Russell Lowel', 'The wise man travels to discover himself.');
quotes.add('Alfred Korzybski', 'The map is not the territory.');
quotes.add('Susan Sonta', 'I haven\'t been everywhere, but it\'s on my list.');
quotes.add('Martin Buber', 'All journeys have secret destinations of which the traveler is unaware.');
quotes.add('Kevin Charbonneau', 'Embrace the detours.');
quotes.add('Frank Herbert', 'Without new experiences, something inside of us sleeps. The sleeper must awaken.');

quotes.shuffle();
