function commentFormShow( caller) {
	$('#addComment').slideDown( 'fast');
	$('#commentParentId').val( (arguments.length > 1) ? args[1] : 0);
}
function commentAdd( id, type, content) {
	var data = {id:id, type:type, content:content};
	$.post( '/addComment', data, commentsClb);
	$('#addComment').slideUp();
}
function commentsClb( msg) {
	if (!msg) {
		return( false);
	}
	$('#comments .list').html( msg);
}
function comments( type, id, offset) {
	$.get( '/ajax/Comments/getComments/'+type+'/'+id+'/'+offset, commentsClb);
}