<?php // Do not delete these lines
	if (!empty($_SERVER['SCRIPT_FILENAME']) && '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;
		}
	}

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

<!-- You can start editing here. -->

<?php if ($comments) : ?>
    <h3 id="comments" class="comments">Comments</h3>
    
	<?php foreach ($comments as $comment) : ?>
	    
	    <div class="entry" id="comment-<?php comment_ID() ?>">
    	<div class="col-span-two">
    		<p>
    		<?php comment_date('m.d.Y') ?><br />
    		<?php comment_author_link() ?><br />
    		</p>
    	</div>
    	<div class="col-span-comments">
            <?php comment_text() ?>
    	</div>
    	<br clear="all" /></div><!--end entry-->

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

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


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

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

	<div class="entry comment-form">
	    <?php if ( $user_ID ) : ?>

        <div class="col-span-two">Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.<br /><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Log out &raquo;</a></div>
        <div class="col-span-comments">
		</div>
		
		<br clear="all" />
		
        <?php else : ?>
	    
		<div class="col-span-two">
			<p>Name</p>
		</div>
		<div class="col-span-comments">
			<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" /> <em>(required)</em>
		</div>

		<br clear="all" />

		<div class="col-span-two">
			<p>Email</p>
		</div>
		<div class="col-span-comments">
			<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" /> <em>(required)</em>
		</div>

		<br clear="all" />

		<div class="col-span-two">
			<p>Website</p>
		</div>
		<div class="col-span-comments">
			<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" />
		</div>
		
		<?php endif; ?>

		<br clear="all" />
		<div class="col-span-two">
			<p>Comment</p>
		</div>
		<div class="col-span-comments">
			<textarea name="comment" id="comment" tabindex="4"></textarea>
		</div>

		<br clear="all" />
		<div class="col-span-two">
			<p>&nbsp;</p>
		</div>
		<div class="col-span-comments">
			<input class="btn" type="submit" id="submit" tabindex="5" value="Submit Comment" />
		</div>
		
		<br clear="all" />
		<div class="col-span-two">
			<p>&nbsp;</p>
		</div>
		<div class="col-span-comments">
			<p>Note: to reduce spam, comments are subject to moderation,
			so your comment will not appear on the site immediately.</p>

		<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />

		<?php do_action('comment_form', $post->ID); ?>
		</div>
        
    </form>

	<br clear="all" /></div><!--end entry-->

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