public void buttonClicked(int id)
	{
		switch(id)
		{
		case 0:
			SpellEntry spell = getClickedSpell();
			if (spell != null)
			{
				spell.currentSpell.cast(thePlayer.level);
				thePlayer.isCasting = false;
				uncheckAllButtons(-1);
			}
			break;
		case 1:
			thePlayer.isCasting = false;
			break;
		}
		
	}