<div class="commentsBlock">

<?php // Do not delete these lines
	if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');

	if (!empty($post->post_password)) { // if there's a password
		if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
			?>

			<p class="noComments"><?php _e('This post is password protected. Enter the password to view comments.','paper') ?></p>

			<?php
			return;
		}
	}

	/* This variable is for alternating comment background */
	$oddcomment = 'class="alt" ';
?>


<?php if ($comments) : ?>
	<h3 class="commentsTitle"><?php comments_number(__('No Responses','paper'), __('One Response','paper'), __('% Responses','paper') );?> <?php _e('to','paper') ?> &#8220;<?php the_title(); ?>&#8221;</h3>

	<ol class="commentList">

	<?php foreach ($comments as $comment) : ?>

		<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
            <?php if ($comment->comment_approved == '0') : ?>
			<strong class="inModeration"><?php _e('Your comment is awaiting moderation.','paper') ?></strong><br />
			<?php endif; ?>
            
            <?php if(function_exists("MyAvatars")): ?><div class="avatar"><?php MyAvatars(); ?></div><?php endif; ?>
           
            <div class="commentMeta">
                  <?php comment_date() ?> <?php _e('at','paper') ?> <?php comment_time() ?>, <?php comment_author_link() ?> <?php _e('says:','paper') ?><a href="#comment-<?php comment_ID() ?>" title=""></a>
            </div>
			
			<blockquote><?php comment_text() ?></blockquote>

		</li>

	<?php
		/* Changes every other comment to a different class */
		$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
	?>

	<?php endforeach; /* end for each comment */ ?>

	</ol>

 <?php else : // this is displayed if there are no comments so far ?>

	<?php if ('open' == $post->comment_status) : ?>
		<!-- If comments are open, but there are no comments. -->

	 <?php else : // comments are closed ?>
		<!-- If comments are closed. -->
		<p class="nocComments"><?php _e('Comments are closed.','paper') ?></p>

	<?php endif; ?>
<?php endif; ?>


<?php if ('open' == $post->comment_status) : ?>

<h3 class="commentsTitle"><?php _e('Leave a Reply','paper') ?></h3>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('You must be','paper') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','paper') ?></a> <?php _e('to post a comment.','paper') ?></p>
<?php else : ?>

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentForm">

<?php if ( $user_ID ) : ?>

<div><?php _e('Logged in as','paper') ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','paper') ?>"><?php _e('Logout &raquo;','paper') ?></a></div>

<?php else : ?>

<div><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><?php _e('Name','paper') ?> <?php if ($req) _e('(required)','paper'); ?></label></div>

<div><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><?php _e('Mail (will not be published)','paper') ?> <?php if ($req) _e('(required)','paper'); ?></label></div>

<div><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><?php _e('Website','paper') ?></label></div>

<?php endif; ?>

<div><strong>XHTML:</strong> <?php _e('You can use these tags:','paper') ?> <code><?php echo allowed_tags(); ?></code></div>

<div><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></div>

<div><input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment','paper') ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</div>
<?php do_action('comment_form', $post->ID); ?>

</form>

<?php endif; // If registration required and not logged in ?>

<?php endif; // if you delete this the sky will fall on your head ?>
</div>