<?php get_header(); ?>
<div id="content" class="nofloat">
     <div id="gamecontent">
          <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
          <div class = "gameleft">
               <h1><?php the_title(); ?></h1>
               <div class="date">
                    <p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p>
                    <p><?php if(function_exists('the_views')) { the_views(); } ?></p> 
               </div> <!-- end date div -->
          </div> <!-- end gameleft div -->
          <div class = "gameright">
          </div> <!-- end gameright div -->
          <div class = "clear"></div>		
          <div class = "description">
               <div class = "flash">
                    <embed src="<?php echo get_post_meta($post->ID, "swf_url", true); ?>" menu="false" quality="high" width="<?php echo get_post_meta($post->ID, "width", true); ?>" height="<?php echo get_post_meta($post->ID, "height", true); ?>" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
               </div> <!-- end flash div -->
               <div class ="adsensead">
               <!-- a 728x90 adsense ad would fit good -->
               </div>
               <ul>
                    <li>Description
                         <ul>
                              <li><?php echo str_replace("\n","<br />",get_post_meta($post->ID, "description", true)); ?></li>
                         </ul>
                    </li>
                    <?php if (get_post_meta($post->ID, "instructions", true)): ?>
                    <li>Instructions
                         <ul>
                              <li><?php echo str_replace("\n","<br />",get_post_meta($post->ID, "instructions", true)); ?></li>
                         </ul>
                    </li>
                    <?php endif; ?>
               </ul>
          </div> <!-- end description div -->
          <!--
          <?php trackback_rdf(); ?>
          -->
          <?php endwhile; else: ?>
          <p><?php _e('Sorry, no game with this name.'); ?></p>
          <?php endif; ?>
          <?php comments_template(); // Get wp-comments.php template ?>
     </div> <!-- end gamecontent div -->
</div> <!-- end content div -->
<?php get_footer(); ?>