$(function() { 
/*
	$('table.rtable tfoot a').click(function() {
		$('#punktacja').toggle('fast', function() {
			if($(this).css('display') == 'none') {
				$('table.rtable tfoot a').css('background-image', 'url(templates/wyniki/gfx/arrow-d-ho.png)');
				$('table.rtable tfoot a>span').show();
				$('table.rtable tfoot a span.hide').hide();
				$('table.rtable tfoot a').hover(function() {
					$(this).css('background-image', 'url(templates/wyniki/gfx/arrow-d.png)');
				}, function() {
					$(this).css('background-image', 'url(templates/wyniki/gfx/arrow-d-ho.png)');
				});
			} else {
				$('table.rtable tfoot a').css('background-image', 'url(templates/wyniki/gfx/arrow-u-ho.png)');
				$('table.rtable tfoot a>span').hide();
				$('table.rtable tfoot a span.hide').show();
				$('table.rtable tfoot a').hover(function() {
					$(this).css('background-image', 'url(templates/wyniki/gfx/arrow-u.png)');
				}, function() {
					$(this).css('background-image', 'url(templates/wyniki/gfx/arrow-u-ho.png)');
				});
			}
		});
		return false;
	});
*/

	$('table.rtable tfoot a:first').click(function() {
		$('#punktacja').toggle('fast', function() {
			$('table.rtable tfoot a:first').parent().toggleClass('prevup');
		});
		return false;
	});


	$('table.rtable td[title]').hover(function(){ $(this).css('cursor', 'help'); }, function(){ $(this).css('cursor', 'auto'); });

});
