function activityShowComment(id)
{
	jQuery('#activity-' +id+'-comment').show();
}
function activityHideComment(id)
{
	jQuery('#activity-' +id+'-comment').hide();
	jQuery('#activity-' +id+'-comment-errors').html('');
}

function activityInsertComment(id , val, type)
{
	if( type == 'asc')
	{
	jQuery('#comment-holder-'+ id).append(val);
	jQuery('#commentval-'+id).val('');
	}
	else
	{
	jQuery('#comment-holder-'+ id).prepend(val);
	jQuery('#commentval-'+id).val('');
	}
}

function activityMoreComments(id)
{
	jax.call('community','plugins,activitycomment,morecomments' , id );
}

function activityMoreCommentsReplace(id , content )
{
	jQuery('#activity-comment-more-'+ id).after(content);
	jQuery('#activity-comment-more-' + id ).hide();
}

function activityRemovecomment( id)
{
	jQuery('#activity-comment-item-' +id).fadeOut(500);
}
function activityLikeItem(id,userid)
{
	jQuery('#likes-holder-' + id ).children().remove();
	jax.call('community','plugins,activitycomment,likeitem',id,userid);
	jQuery('#activity-unlike-'+id).css('display','inline');
	jQuery('#activity-like-'+id).css('display','none');
}

function activityInsertLike(id,val)
{
	jQuery('#likes-holder-'+id).prepend(val);
}
function activityUnlikeItem(id,userid)
{
	jQuery('#likes-holder-' + id ).children().remove();
	jax.call('community','plugins,activitycomment,unlikeitem',id,userid);
	jQuery('#activity-unlike-'+id).css('display','none');
	jQuery('#activity-like-'+id).css('display','inline');
}