var toggle_word_state	= 'closed';
function toggle_word(word_id)
{
	var the_word	= $('#'+word_id).get(0);
	if(the_word)
	{
		the_word.style.display	= ( the_word.style.display == 'none' || !the_word.style.display ? 'block' : 'none' );
	}
}
function toggle_words()
{
	$(".explanation").each(function(i)
	{
		toggle_word(this.id);
	});
	
	toggle_word_state	= ( toggle_word_state == 'closed' ? 'open' : 'closed' );
	var new_all_text	= ( toggle_word_state == 'closed' ? $('.open_text').html() : $('.close_text').html() );
	$('.all').html(new_all_text);
}