var vix_quotes = [
	["Friedrich von Schiller", "If you want to study yourself -- look into the hearts of other people. If you want to study other people -- look into your own heart."],
	["Rogers Hornsby", "People ask me what I do in winter when there's no baseball. I'll tell you what I do. I stare out the window and wait for spring."],
	["Ann Landers", "If you have love in your life it can make up for a great many things you lack. If you don't have it, no matter what else there is... it's not enough."],
	["Phillips Brooks", "Duty makes us do things well, but love makes us do them beautifully."],
	["Albert Einstein", "The ideals which have lighted me on my way and time after time given me new courage to face life cheerfully, have been Truth, Goodness, and Beauty. . . . The ordinary objects of human endeavour -- property, outward success, luxury -- have always seemed to me contemptible."],
	["Anais Nin", "The possession of knowledge does not kill the sense of wonder and mystery. There is always more mystery."],
	["Buckminster Fuller", "When I am working on a problem I never think about beauty. I only think about how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong."],
	["Chinese proverb", "When you have only two pennies left in the world, buy a loaf of bread with one, and a lily with the other."],
	["D. H. Lawrence", "Sex and beauty are inseparable, like life and consciousness. And the intelligence which goes with sex and beauty, and arises out of sex and beauty, is intuition."],
	["Henry Miller", "The moment one gives close attention to anything, even a blade of grass, it becomes a mysterious, awesome, indescribably magnificent world in itself."],
	["Sophia Loren", "Sex appeal is fifty percent what you've got and fifty percent what people think you've got."],
	["Bessie Stanley", "He has achieved success who has lived well, laughed often and loved much; who has gained the respect of intelligent men and the love of little children; who has filled his niche and accomplished his task; who has left the world better than he found it..."],
	["John F. Kennedy", "As we express our gratitude, we must never forget that the highest appreciation is not to utter words, but to live by them."],
	["Margaret Cousins", "Appreciation can make a day, even change a life. Your willingness to put it into words is all that is necessary."],
	["Alex Noble", "If I have been of service, if I have glimpsed more of the nature and essence of ultimate good, if I am inspired to reach wider horizons of thought and action, if I am at peace with myself, it has been a successful day."],
	["Andre Gide", "Believe those who are seeking the truth; doubt those who find it."],
	["Austin Dacey", "Guts are important. Your guts are what digest things. But it is your brains that tell you which things to swallow and which not to swallow."],
	["Baltasar Gracian", "Without courage, wisdom bears no fruit."],
	["David Starr Jordan", "Wisdom is knowing what to do next; Skill is knowing how ot do it, and Virtue is doing it."],
	["George Bernard Shaw", "We are made wise not by the recollection of our past, but by the responsibility for our future."],
	["John Naisbitt", "Strategic planning is worthless -- unless there is first a strategic vision."],
	["Albert Schweitzer", "Success is not the key to happiness. Happiness is the key to success. If you love what you are doing, you will be successful."],
	["Arie de Gues", "Your ability to learn faster than your competition is your only sustainable competitive advantage."],
	["Barack Obama", "Making your mark on the world is hard. If it were easy, everybody would do it. But it's not. It takes patience, it takes commitment, and it comes with plenty of failure along the way. The real test is not whether you avoid this failure, because you won't. it's whether you let it harden or shame you into inaction, or whether you learn from it; whether you choose to persevere."],
	["Bruce Feirstein", "The distance between insanity and genius is measured only by success."],
	["Elaine Maxwell", "My will shall shape the future. Whether I fail or succeed shall be no man's doing but my own. I am the force; I can clear any obstacle before me or I can be lost in the maze. My choice; my responsibility; win or lose, only I hold the key to my destiny."],
	["Franklin D. Roosevelt", "It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something."],
	["G. K. Chesterton", "I owe my success to having listened respectfully to the very best advice, and then going away and doing the exact opposite."],
	["J. C. Penney", "Give me a stock clerk with a goal and I'll give you a man who will make history. Give me a man with no goals and I'll give you a stock clerk."],
	["Jonas Salk", "The reward for work well done is the opportunity to do more."],
	["Michael Jordan", "I've missed more than 9,000 shots in my career. I've lost almost 300 games. 26 times I've been trusted to take the game winning shot and missed. I've failed over and over and over again in my life and that is why I succeed."],
	["Oliver Wendell Holmes", "Greatness is not in where we stand, but in what direction we are moving. We must sail sometimes with the wind and sometimes against it -- but sail we must and not drift, nor lie at anchor."],
	["Pablo Picasso", "My mother said to me, \"If you become a soldier, you'll be a general; if you become a monk, you'll end up as the Pope.\" Instead, I became a painter and wound up as Picasso."],
	["Pearl S. Buck", "The secret of joy in work is contained in one word - excellence. To know how to do something well is to enjoy it."],
	["Samuel Smiles", "We learn wisdom from failure much more than from success. We often discover what will do, by finding out what will not do; and probably he who never made a mistake never made a discovery."],
	["William Saroyan", "Good people are good because they've come to wisdom through failure. We get very little wisdom from success, you know."],
	["Winston Churchill", "Success consists of going from failure to failure without loss of enthusiasm."]
];

function generateQuote() {
	var nbrOfElements = vix_quotes.length;
	var r = Math.floor(Math.random() * nbrOfElements);
	var quote = vix_quotes[r][1];
	var author = vix_quotes[r][0];
	var tokens = quote.split(" ");
	var nbrOfTokens = tokens.length;
	var fontSize = 16;
	if (nbrOfTokens > 30) fontSize = 10;
	else if (nbrOfTokens >  15) fontSize = 12;
	
	var data = new Array();
	data[0] = quote;
	data[1] = author;
	data[2] = fontSize;
	return data;
}