var teaMaker = new Array();

teaMaker[0] = "The person sitting nearest to you";
teaMaker[1] = "The person you last spoke to";
teaMaker[2] = "The person wearing the brightest shirt or top";
teaMaker[3] = "The person who was last to arrive in the office today";
teaMaker[4] = "The person who comes up with the best joke";
teaMaker[5] = "The person with the longest hair";
teaMaker[6] = "The person with the cleanest fingernails";
teaMaker[7] = "The person with the messiest desk";
teaMaker[8] = "The person with the least amount of money in their purse, wallet or pockets";
teaMaker[9] = "The person who last answered a phone call";
teaMaker[10] = "The person who last had some chocolate";
teaMaker[11] = "The person with the fullest in-tray";
teaMaker[12] = "The person with the most emails in their inbox";
teaMaker[13] = "The person who last received a text message";
teaMaker[14] = "The person who made the tea or coffee yesterday";
teaMaker[15] = "The person with the shiniest shoes";
teaMaker[16] = "The person who ate some fruit most recently";
teaMaker[17] = "The person who gave money or supplies to charity most recently gets to decide";
teaMaker[18] = "The person who sits closest to a window";
teaMaker[19] = "The person who is furthest away from the kettle";

function GetTeaMaker() {
	var randNum = Math.floor(Math.random()*20)

	document.getElementById("teaSelector").innerHTML = teaMaker[randNum];
}

var riddleAns = new Array();

riddleAns[0] = "Footsteps"
riddleAns[1] = "22"
riddleAns[2] = "Once! because when you subtract 5 from 25, it leaves 20"
riddleAns[3] = "12 months, because every month has 28 days"
riddleAns[4] = "It wasn\'t Moses' Ark - it was Noah\'s"
riddleAns[5] = "Wrong!"
riddleAns[6] = "Noon!"
riddleAns[7] = "The Match"
riddleAns[8] = "Edam"

function showRiddle(num) {

	var tempDiv = document.getElementById("ans" + num);

	if (tempDiv.style.display == 'none' || tempDiv.style.display == '')
	{
		tempDiv.innerHTML = riddleAns[num - 1];
		tempDiv.style.display = 'block';

		document.getElementById("show" + num).innerHTML = 'Hide Answer';
	}
	else
	{
		tempDiv.innerHTML = '';
		tempDiv.style.display = 'none';

		document.getElementById("show" + num).innerHTML = 'Show Answer';
	}
}