// JavaScript Document

var quotes = Array(
'Everyone smiles in the same language.<br><br>- Author Unknown ',
'Wear a smile and have friends; wear a scowl and have wrinkles.<br><br>- George Eliot ',
'A smile confuses an approaching frown.<br><br>- Author Unknown ',
'People seldom notice old clothes if you wear a big smile.<br><br>- Author Unknown ',
'If you smile when no one else is around, you really mean it.<br><br>- Andy Rooney ',
'The world always looks brighter from behind a smile.<br><br>- Author Unknown ',
'Before you put on a frown, make absolutely sure there are no smiles available.<br><br>- Jim Beggs ',
'Everytime you smile at someone, it is an action of love, a gift to that person, a beautiful thing.<br><br>- Mother Teresa ',
'A smile is the universal welcome.<br><br>- Max Eastman ',
'You’re never fully dressed without a smile.<br><br>- Martin Charnin ',
'All statistics in the world can’t measure the warmth of a smile.<br><br>- Chris Hart ',
'Peace begins with a smile.<br><br>- Mother Teresa ',
'A smile is a powerful weapon; you can even break ice with it.<br><br>- Author Unknown ',
'Every tooth in a man’s head is more valuable than a diamond.<br><br>- Miguel de Cervantes, Don Quixote, 1605 ',
'A smile increases your face value.<br><br>- Author Unknown ',
'Sometimes your joy is the source of your smile, but sometimes your smile can be the source of that joy.<br><br>- Thich Nhat Hanh ',
'Because of your smile, you make life more beautiful.<br><br>- Thich Nhat Hanh '
);  // the last one CANNOT have a comma after it.

function pickRandom(range) {
if (Math.random)
	return Math.round(Math.random() * (range-1));
else {
	var now = new Date();
	return (now.getTime() / 1000) % range;
	}
}

function writeQuote() {
	q_num = quotes.length;
	choice = pickRandom( q_num );
	document.write( quotes[ choice ] );
}