<?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;
 }
  }
/* This variable is for alternating comment background */
   $oddcomment = 'alt';
?>
  <div class="hr"><hr /></div>
<?php if ($comments) : ?>
  <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3> 
  <ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
    <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite> <span style="font-weight:normal">responds:</span>
<?php if ($comment->comment_approved == '0') : ?>
<small>Your comment is awaiting moderation.</small>
<?php endif; ?>
   <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
<?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */	
if ( 'alt' == $oddcomment ) 
   $oddcomment = 'tla';
else 
   $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>

<!--Added so if comments are closed on a once-open post, it'll say closed-->
<?php 
if ( 'open' != $post->comment_status) : 
?>
  <p class="nocomments">Sorry. Comments have been closed.</p>	
<?php endif; ?>
<!--Added so if comments are closed on a once-open post, it'll say closed-->

<?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">Sorry. Comments are closed.</p>	
<?php endif; ?>
<?php endif; ?>
<?php 
  if ( 'open' == $post->comment_status) : 
?>
<div class="hr"><hr /></div>
  <h3 id="respond">Leave your comments</h3>
<?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 the_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 ) : ?>
    <p>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">Logout &raquo;</a></p>
<?php else : ?>
 <fieldset>
  <legend>Enter Your Details:</legend>
   <p><label for="author">Your Name: <span class="highlight2"><?php if ($req) echo "Required"; ?></span></label><br />
      <input style="cursor:text;" type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" /></p>
   <p><label for="email"Required but NOT Published">Your Email: <span class="highlight2"><?php if ($req) echo "Required"; ?></span></label><br />
      <input style="cursor:text;" type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" /></p>
   <p><label for="url">Your Website: <span class="highlight2">Optional</span></label><br />
      <input style="cursor:text;" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" /></p>
 </fieldset>
<?php endif; ?>
  <h4>You <em>may</em> use the following markup in your comments:</h4>
   <p style="margin-top:10px;margin-bottom:10px;">
     <small class="dfnclass">
       <dfn title="Use this to enter a web address">&lt;a href=&quot;&quot;&gt;&lt;/a&gt;</dfn>            
       <dfn title="Use this to show strong emphasis (bold)">&lt;strong&gt;&lt;/strong&gt;</dfn>
       <dfn title="Use this to show light emphasis (italic)">&lt;em&gt;&lt;/em&gt;</dfn>
       <dfn title="Use this to quote another person">&lt;blockquote&gt;&lt;/blockquote&gt;</dfn><br />
     </small>
   </p>
 <fieldset>
   <legend>Enter Your Comments:</legend>
   <p><label for="comment"><textarea name="comment" id="comment" cols="100%" rows="10"></textarea></label></p>
   <p style="text-align:right;"><input style="cursor:pointer;width:140px;height:1.9em;" class="button" name="submit" type="submit" id="submit" value="Submit Comments" />
      <input style="cursor:pointer;width:140px;height:1.9em;margin-right:4px;" class="button" name="reset" type="reset" id="reset" value="Reset Comments" />
      <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
 </fieldset>
  <?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; ?>
<?php endif; ?>