function tassoman_comment_view($comment, $links = array(), $visible = 1) {
  static $first_new = TRUE;
	
	// comment time difference
	static $comment_previous_timestamp;
	$n = node_load($comment->nid);
	if(! $comment_previous_timestamp) $comment_previous_timestamp = $n->created;
	$comment_difference_timestamp = $comment->timestamp - $comment_previous_timestamp;
	$comment->previous_difference = format_interval($comment_difference_timestamp);
	$comment_previous_timestamp = $comment->timestamp;
	
  $output = '';
  $comment->new = node_mark($comment->nid, $comment->timestamp);
  if ($first_new && $comment->new != MARK_READ) {
    // Assign the anchor only for the first new comment. This avoids duplicate
    // id attributes on a page.
    $first_new = FALSE;
    $output .= "<a id=\"new\"></a>\n";
  }

  $output .= "<a id=\"comment-$comment->cid\"></a>\n";

  // Switch to folded/unfolded view of the comment
  if ($visible) {
    $comment->comment = check_markup($comment->comment, $comment->format, FALSE);

    // Comment API hook
    comment_invoke_comment($comment, 'view');

    $output .= theme('comment', $comment, $links);
  }
  else {
    $output .= theme('comment_folded', $comment);
  }
	
  return $output;
}
