$(document).ready(function(){
	$.each($('span.productGroup'), function(i, e) {
		var count = $(e).parents('li:first').find('li').length;
		if (parseInt(count) != 0) 
			$(e).append('<span>&nbsp;(' + count + '&nbsp;db)</span>');
	});
	$('span.productGroup').click(function(){
		$.each($(this).parents('ul:first').find('ul'), function(i, e) {
			$(e).hide();
		});
		$(this).parents('li:first').find('ul').show();
	});
});
