<?php get_header(); ?>

<?php include(TEMPLATEPATH."/left.php");?>

<div id="content">
 <?php query_posts('showposts='); ?>
	<?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>
<div style="margin: 20px 0 0 25px;">
<?php if ($count == 0) : ?>
<!-- Begin: AdBrite, Generated: 2009-03-24 12:51:15  -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1097472&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1097472&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-banner.gif" style="background-color:#CCCCCC;border:none;padding:0;margin:0;" alt="Your Ad Here" width="11" height="60" border="0" /></a></span>
<!-- End: AdBrite -->
<?php endif; $count++; ?>
</div>

				
		<div class="post" id="post-<?php the_ID(); ?>"><div class="thumbalign"><?php if (function_exists('gkl_postavatar')) gkl_postavatar(); ?></div>
			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
			<small>by <?php the_author() ?> ~ <?php the_time('F jS, Y') ?> <?php edit_post_link('(edit)'); ?></small>
				
			<div class="entry">
				<?php the_excerpt('Continue reading &raquo;'); ?><div class="readmorealign"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">read more...</a>
			</div></div>
		
			<p class="postmetadata">Filed under: <?php the_category(', ') ?> | <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
			</div>

<?php if(is_home() && $post==$posts[0]): ?>
<div style="text-align: center;">

<!-- Begin: AdBrite, Generated: 2009-03-24 12:56:27  -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = '008000';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1097481&zs=3330305f323530&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1097481&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>
<!-- End: AdBrite -->

</div>

<?php endif ?>

<?php if($post==$posts[2]): ?>
<div style="margin: 10px 0 10px 30px; padding: 10px 5px 10px 5px; border: 1px solid #cfcfcf;">

<p style="margin-left: 10px;;"><small>&#9658;</small>Vividseats.com offers great <a href="http://www.vividseats.com/nhl-hockey/">Hockey Tickets</a>, including <a href="http://www.vividseats.com/nhl-hockey/pittsburgh-penguins-tickets.html">Pittsburgh Penguins Tickets</a>. Check out the <a href="http://www.vividseats.com/nhl-hockey/chicago-blackhawks-tickets.html">Chicago Blackhawks NHL Schedule</a> or find your seat to all <a href="http://www.vividseats.com/nhl-hockey/san-jose-sharks-tickets.html">San Jose Sharks</a>, <a href="http://www.vividseats.com/nhl-hockey/florida-panthers-tickets.html">Florida Panthers</a>, and <a href="http://www.vividseats.com/nhl-hockey/vancouver-canucks-tickets.html">Vancouver Canucks</a> games today!</p>

</div>

<?php endif ?>

	
		<?php endwhile; ?>


			<div class="navigation">
        <div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
        <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
         
			</div>
		
		<?php else : ?>

		<h2>Not Found</h2>
		<p>Sorry, but you are looking for something that isn't here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>

</div>

<?php include(TEMPLATEPATH."/right.php");?>

<?php get_footer(); ?>	
