$(document).ready(function() {
	
	$('.categoryMore a').click(function(){
		var row = $(this).parents('tr:first');
		if ($(row).find('.categorySubcategories li.hidden').size() > 0) {
			$(row).find('.categorySubcategories li.hidden').removeClass('hidden').addClass('notHidden');
			$(row).find('div.categoryMore:not(.categoryName) a').html('&laquo;&nbsp;mniej');
		} else {
			$(row).find('.categorySubcategories li.notHidden').removeClass('notHidden').addClass('hidden');
			$(row).find('div.categoryMore:not(.categoryName) a').html('więcej&nbsp;&raquo;');
		}
	})
	
	
});
