$(document).ready(function() {
	var fortunes = new Array('Everything changes.',
				 'All things come into being out of strife.',
				 'Donkeys prefer garbage to gold.',
				 'The sun is new every day.',
				 'War is all and ruler of all.',
				 'Out of discord comes concord.',
				 'All things are reflected in all things.',
				 'What is hidden is greater than what is seen.',
				 'Men do not know truth when they hear it.',
				 'It is hard to fight anger for it takes strength from the soul.',
				 'Yes.',
				 'No.',
				 'Only change is certain.',
				 'Your character holds your destiny.',
				 'Character is fate.',
				 'Your character writes your destiny.',
				 'From all things, one; from one, all things.',
				 'Great learning does not teach understanding.',
				 'The way up and down are one and the same.',
				 'You cannot step twice in the same river.',
				 'The greater nature of things is always hidden.',
				 'Justice overtakes the guilty.',
				 'Prosperity always brings danger.',
				 'Greater dooms bring greater destinies.',
				 'Everything flows.',
				 'Wisdom guides all things.',
				 'Wisdom is to know how all things are steered through all things.',
				 'Wisdom is judgment.',
				 'If not for injustice, none would recognize justice.',
				 'All things are present in their opposites.',
				 'Nothing stays the same.',
				 'What opposes also unites.',
				 'Praise makes a fool.',
				 'Harmony depends upon balancing the tension between opposites.');
	$("#AskTempus").click(function() {
		var ans = $("#TempusAnswer");
		var ansText = fortunes[Math.floor(Math.random()*fortunes.length)];
		if ($("#TempusQuestion")[0].value == "") {
		    // Don't answer unless they type something
		    ansText = "The question unasked cannot be answered.";
		}
		ans.fadeOut('fast', function() {
			ans.html(ansText);
			ans.fadeIn();
		    });
	    });
    });

