<?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."); ?><p>
				
				<?php
				return;
            }
        }

		/* This variable is for alternating comment background */
		$oddcomment = 'alt';
?>
<?php spell_insert_headers();?>

<br />
<div id="comments" style="border-top: 1px dashed #666666;">
	<a href="#postcomment" title="<?php _e("Leave a comment"); ?>"></a><br />
		<strong><?php comments_number(__("0 Comments / Trackbacks"), __("1 Comment / Trackback"), __("% Comments / Trackbacks")); ?></strong> <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a> <a href="http://www.cavemonkey50.com/wp-commentsrss2.php?p=<?php the_ID(); ?>"><img src="http://www.cavemonkey50.com/images_site/xml.gif" border="0" alt="RSS 2.0 Feed for Comments" /></a><br />
	<br />
	<?php _e("Trackback this Post Using the Following URL:"); ?><br />
	<form style="margin-top: 0px; padding-bottom: 10px;" action=""><input type="text" value="<?php trackback_url() ?>" size="70" class="input" /></form>
		
<div style="font-size: 95%;">
		
<?php if ($comments) : ?>
		
		<ol>
		
		<?php foreach ($comments as $comment) : ?>
		
			<li id="comment-<?php comment_ID() ?>" style="margin-top: 20px;">
				<a href="http://www.gravatar.com/" target="_blank" title="<?php comment_author(); ?>'s Gravatar: Click to get one."><img src="<?php gravatar("PG", 40, "http://www.cavemonkey50.com/images_site/default_gravatar.png", ""); ?>" alt="Gravatar" style="width: 40px; height: 40px; padding: 2px; border: 1px solid #ccc; margin-left: 10px;" align="right" /></a>
				<strong><?php comment_type(); ?> from <?php comment_author_link(); ?> on <?php comment_date('n/j/y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a>:<?php edit_comment_link(__("(Edit)"), ' '); ?></strong><br />
				<?php if ($comment->comment_approved == '0') : ?>
				<em>Your comment is awaiting approval.</em><br />
				<?php endif; ?>
				<br />
				<div style="font-size: 85%;">
				<?php comment_text() ?>
				</div>
			</li>
			
		<?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) : ?>

	<p><?php _e("No feedback yet."); ?></p>

		<?php else : // comments are closed ?>

		<div style="margin-bottom: 10px;"><?php _e("Comments are closed."); ?></div>
		
		<?php endif; ?>
<?php endif; ?>

</div><!--END FONT SIZE-->
</div><!--END COMMENTS-->

<?php if ('open' == $post-> comment_status) : ?>

<div id="comment-form" style="border-top: 1px dashed #666666; margin-top: 20px;">

<br /><strong><?php _e("Post a Comment:"); ?></strong><br />
<br />

	<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
	<div style="margin-bottom: 10px;">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.</div>
	<?php else : ?>
	
	<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

	<?php if ( $user_ID ) : ?>
	<!--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><br />
	<br />-->
	
	<input type="hidden" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="40" tabindex="1" />
	<input type="hidden" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" />
	<input type="hidden" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" />
	<?php else : ?>

Please note that a comment spam system is in place. Your comments may not appear instantly. All new users must be approved first. Thank you for your patients and cooperation.<br />
<br />

	<label for="author"><?php _e("Your Name"); ?></label><?php if ($req) _e('<span style="color: red;">*</span>'); ?><br />      
	<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="40" tabindex="1" /><br />
	<br />
	
	<label for="email"><?php _e("Your E-mail Address"); ?></label><?php if ($req) _e('<span style="color: red;">*</span>'); ?> (Not Displayed)<br />      
	<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" /><br />
	<br />
	
	<label for="url"><?php _e("Your Website URL"); ?></label><br />
	<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" /><br />
	<br />
	
	<?php endif; ?>
	
	Click to Use Smilies<br />
	<?php wp_grins(); ?><br />
	<label for="comment"><?php _e("Your Comment"); ?></label><span style="color: red;">*</span><br />
	<textarea name="comment" id="comment" cols="55" rows="4" tabindex="4"></textarea><br />
	<br />
	<input  type="button"  value="Check Spelling" onclick="openSpellChecker();" />
	<input name="submit" type="submit" tabindex="5" value="<?php _e("Post Comment"); ?>" />
	<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
	<?php do_action('comment_form', $post->ID); ?>
</form>

<?php endif; // If registration required and not logged in ?>

</div>

<?php endif; // if you delete this the sky will fall on your head ?>