<p><?php the_tags(); ?></p>

<div class="comments">
<?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">This post is password protected. Enter the password to view comments.</p>

			<?php
			return;
		}
	}
?>

<!-- You can start editing here. -->
<h4 id="comments"><?php comments_number('There are no comments - Add Your Comment!', 'Currently 1 Comment - Add Your Comment!', 'Currently % Comments - Add Your Comment!' );?> </h4>

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

		<div class="comment" id="comment-<?php comment_ID() ?>">
			<div class="comment-meta">
				<div style="width: 140px; float: left">
				<span class="comment-author"><?php comment_author_link() ?></span>
				<span class="comment-date"><?php comment_date('F jS, Y') ?> </span>
				</div>
				<div class="cgravatar"> <?php echo show_avatar( $comment, 60 ); ?> </div>
			</div>
			<div class="commenttext">
				<?php if ($comment->comment_approved == '0') : ?>
				Your comment is awaiting moderation.
				<?php endif; ?>
				<?php comment_text() ?>
			</div>
			<div class="clear"></div>
		</div>



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


 <?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="nocomments">Comments are closed.</p>

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


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

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

<?php if ( $user_ID ) : ?>


<?php else : ?><?php endif; ?>


<div id="commentform">
		<?php if ( $user_ID ) : ?>
		<span>Logged in as <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="Log out of this account">Log out &raquo;</a></span>
		<?php else : ?>
		<span><input class="input" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" /> Name*</span>
		<span><input class="input" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" /> Mail Adress*</span>
		<span><input class="input" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" /> Blog / Website </span>
		<?php endif; ?>
		<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="1"></textarea>	
	<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment!" class="input" />
	<input type="hidden" name="comment_post_ID" style="display: none; height: 0; width: 0;" value="<?php echo $id; ?>" />
</div>
<?php do_action('comment_form', $post->ID); ?>

</form>

<?php endif;  ?>

<?php endif;  ?>
</div><div class="bottom"></div>
</div>
