function Initialise()
{
	// Setup variable for the number of options left when in the cell
	cellcount = 3;
	// Need to specifically hide the wait in cell option here
	// So that if js is disabled, it will be present from the start
	// and the game can still be completed!
	document.getElementById("cellopt4").style.display = "none";

	// Have to hide the 'extra' numbers as well.
	document.getElementById("fd1497").style.display = "none";
	document.getElementById("fd357128").style.display = "none";
	document.getElementById("fdinv").style.display = "none";
}


function ShowSection(ID)
{
	document.getElementById("standardnumbers").style.display = "none";
	document.getElementById(ID).style.display = "block";
}

function HideSection(ID)
{
	document.getElementById("standardnumbers").style.display = "block";
	document.getElementById(ID).style.display = "none";
}

function CellChoice(ID)
{
	// This function is called after each escape attempt from the cell
	// Must remove the option chosen, and if there are no options left
	// Add in the option about just waiting in the cell
	document.getElementById(ID).style.display = "none";
	cellcount--;
	if (cellcount == 0) {
		document.getElementById('cellopt4').style.display = "list-item";
	}		
}

