<?php if (have_posts()) : ?>
<?php $count = 0; ?>

	<?php while (have_posts()) : the_post(); ?>
	<?php $count++; ?>

		<div <?php post_class() ?> id=post-<?php the_ID(); ?>>
			<h2><a href=<?php the_permalink() ?> rel=bookmark title=Permanent Link to <?php the_title_attribute(); ?>><?php the_title(); ?></a></h2>
			<small><?php the_time(F jS, Y) ?> <!-- by <?php the_author() ?> --></small>
			
			<div class=entry>
				<?php the_content(Read the rest of this entry &raquo;); ?>
			</div>
			<p class=postmetadata><?php the_tags(Tags: , , , <br />); ?> Posted in <?php the_category(, ) ?> | <?php edit_post_link(Edit, ,  | ); ?> <?php comments_popup_ link(No Comments &#187;, 1 Comment &#187;, % Comments &#187;); ?></p>
			
			<?php if ($count < 2) : ?>
				<! Paste ad code here >
			<?php else : ?>
				<! This would output if there was no ad code >
			<?php endif; ?>
		</div>

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