$(function()
{
	$('.glossary').bind('click', function(e)
	{
		e.preventDefault();
	});
	
	$('input.selectall').change(function () {
		var $this = $(this);
		if ($this.attr('checked'))
			$this.closest('td').find('input[type="checkbox"]').attr('checked', 'checked');
		else
			$this.closest('td').find('input[type="checkbox"]').removeAttr('checked');
	});
	
	// IE6 support.
	$('.glossary').bind('mouseenter', function()
	{
		$tooltip = $(this).find('span.tooltip');
		$tooltip.css('display', 'block');
	});
	$('.glossary').bind('mouseleave', function()
	{
		$tooltip = $(this).find('span.tooltip');
		$tooltip.css('display', 'none');
	});
});
