var citations =
[ "Never increase, beyond what is necessary, the number of entities required to explain anything. (William of Ockham)" ,
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. (Antoine de Saint-Exupery; Wind, Sand and Stars)" ,
"If we knew what it was we were doing, it would not be called research, would it? (Albert Einstein)" ,
"Think Globally, Act Locally (?)" ,
"If one doesn't talk about a thing, it has never happened. It is simply expression [...] that gives reality to things. (Oscar Wilde)" ,
"The scientific mind does not so much provide the right answers as ask the right questions. (Claude Lévi-Strauss)" ,
"One man's trivia is another man's wisdom. (Bones; TV Series)" ,
"If it feels like work, you’re doing it wrong (Fred Gratzon)" ,
"Time you enjoy wasting, was not wasted. (John Lennon)" ,
"Great minds discuss ideas; average minds discuss events; small minds discuss people. (Eleanor Roosevelt)" ,
"If you could argue with religious people, there would be no religious people. (Dr. House)" ,
"1. Mathematics is the language of nature;<br/>\
2. Everything around us can be represented and understood through numbers;<br/>\
3. If you graph the numbers of any system, patterns emerge.<br/>\
(Pi - movie)" ,
"Só o desejo inquieto, que não passa,<br/>\
Faz o encanto da coisa desejada...<br/>\
E terminamos desdenhando a caça<br/>\
Pela doida aventura da caçada.<br/>(Mário Quintana)" ,
"Simplicity - the art of maximizing the amount of work not done - is essential. (Agile Manifesto)" ,
"The definition of insanity is to continue to do the same things in the hope that those things will miraculously achieve a different result. (Albert Einstein)" ,
"Eles não sabem, nem sonham,</br>\
que o sonho comanda a vida.</br>\
Que sempre que um homem sonha</br>\
o mundo pula e avança (António Gedeão, Pedra Filosofal)",
"Deus quer, o homem sonha, a obra nasce. (Fernando Pessoa)" ,
"Sê todo em cada coisa.</br>\
Põe quanto és</br>\
No mínimo que fazes.</br>\
(Fernando Pessoa)." ,
"As for me, all I know is that I know nothing. (Socrates)" , 
"Who looks outside, dreams; who looks inside, awakes. (Carl Gustav Jung)" ,
"It all depends on how we look at things, and not how they are in themselves. (Carl Gustav Jung)" ,
"Valeu a pena?<br/>\
Tudo vale a pena<br/>\
Se a alma não é pequena. (Fernando Pessoa)" ,
"In a world full of technicians and politicians all having different levels of understanding, a graphic representation was often the only way to make a point; a single plummeting graphic usually aroused ten times the reaction inspired by volumes of spreadsheets. (Dan Brown; Digital Fortress)" ,
"Good artists copy, great artists steal (Pablo Picasso)" ,
"What we have done for ourselves alone dies with us;<br/>what we have done for others and the world remains and is immortal. (Albert Pike)" ,
"Any sufficiently advanced technology is indistinguishable from magic. (Arthur C. Clarke)" ,
"Everything should be made as simple as possible but not simpler. (Einstein)"];

function getCitation(idx) {
	if (idx == null || idx == NaN) {    // random sentence
		idx = Math.round(Math.random()*(citations.length-1));
	} else {
		if (idx < 0) idx = citations.length + idx;
		else idx = idx % citations.length;
	}
	var sentence = citations[idx];
	var cit = sentence.split('(');
	cit[1] = '(' + cit[1];
	cit[2] = idx;
	return cit;
}

