function showMore(index, limit)
{
	strId = '#more' + index;
	var ul = $(strId);
	ul.children().slice(limit).each(function(){
		if ($(this).is('li')) {
			$(this).show('slow');
		}
	});
	
	var strShowMoreA = '#showMoreA' + index;
	var strShowLessA = '#showLessA' + index;
	$(strShowMoreA).hide();
	$(strShowLessA).show();
	var strShowMore = '#showMore' + index;
	$(strShowMore).show();
}

function showLess(index, limit)
{
	strId = '#more' + index;
	var ul = $(strId);
	ul.children().slice(limit).each(function(){
	    var strShowMore = 'showmore' + index;
	    if ($(this).is('li') && $(this).attr('id') != strShowMore) {
		$(this).hide('slow');
	    }
	});
	
	var strShowMoreA = '#showMoreA' + index;
	var strShowLessA = '#showLessA' + index;
	$(strShowMoreA).show();
	$(strShowLessA).hide();
}

function openCat(index)
{
	var dContent = $('.content');
	var cptr = 0;
	dContent.children('p').each(function() {
		strUl    = '#more' + cptr;
		strPShow = '#showmore' + cptr;
		if (cptr == index) {
			$(strUl).show('slow');
			$(strPShow).show('slow');
		} else {
			$(strUl).hide('slow');
			$(strPShow).hide('slow');
		}
		cptr = cptr + 1;
	});
}