function showMore(index, limit)
{
	strId = '#more' + index;
	var ul = $(strId);
	ul.children().slice(limit).each(function(){
		if ($(this).is('li')) {
			//$(this).slideToggle('slow');
			//$(this).attr('style', 'display:block');
			$(this).show('slow');
		}
	});
	
	var strShowMore = '#showMore' + index;
	var strShowLess = '#showLess' + index;
	$(strShowMore).hide();
	$(strShowLess).show();
	/*
	strPShow = '#showmore' + index;
	var pShowMore = $(strPShow);
	var strShowLess = '&raquo; <a href="#" onclick="'
					+ 'showLess(' + index + ', ' + limit + ');'
					+ 'return false;">show less</a>';
	
	pShowMore.html(strShowLess);
	*/
}

function showLess(index, limit)
{
	strId = '#more' + index;
	var ul = $(strId);
	ul.children().slice(limit).each(function(){
		if ($(this).is('li')) {
			//$(this).slideToggle('slow');
			//$(this).attr('style', 'display:none');
			$(this).hide('slow');
		}
	});
	
	var strShowMore = '#showMore' + index;
	var strShowLess = '#showLess' + index;
	$(strShowMore).show();
	$(strShowLess).hide();
	/*
	strPShow = '#showmore' + index;
	var pShowMore = $(strPShow);
	var strShowMore = '&raquo; <a href="#" onclick="'
					+ 'showMore(' + index + ', ' + limit + ');'
					+ 'return false;">show more</a>';
					
	pShowMore.html(strShowMore);
	*/
}

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;
	});
}
