<?php 
/* Don't remove this line. */
require('./wp-blog-header.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/1">
	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
	<!-- leave this for stats -->
	<style type="text/css" media="screen">
		@import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
	</style>
	<link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
	<?php //comments_popup_script(); // off by default ?>
	<?php wp_head(); ?>
</head>
<body>
<div id="rap">
<h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>

<div id="content">
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

<?php the_date('','<h2>','</h2>'); ?>
	
<div class="post">
	 <h3 class="storytitle" id="post-<?php the_id(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
	<div class="meta">Filed under: <?php the_category() ?> - <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
	
	<div class="storycontent">
		<?php the_content(); ?>
	</div>
	
	<div class="feedback">
            <?php wp_link_pages(); ?>
            <?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?>
	</div>
	
	<!--
	<?php trackback_rdf(); ?>
	-->

<?php include(ABSPATH . 'wp-comments.php'); ?>
</div>

<?php endforeach; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>



<div id="menu">

<ul>
 <li id="calendar">Calendar:
	<?php get_calendar(); ?>
 </li>
 <li id="search">
   <label for="s">Search:</label>	
   <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
	<div>
		<input type="text" name="s" id="s" size="8" /> <input type="submit" name="submit" value="Search" />
	</div>
	</form>
 </li>
 <li id="categories">Categories:
	<ul>
	<?php wp_list_cats(); ?>
	</ul>
 </li>
 <li id="archives">Archives:
 	<ul>
	 <?php wp_get_archives('type=monthly'); ?>
 	</ul>
 </li>
	<?php get_links_list(); ?>
 <li id="other">Other:
	<ul>
		<li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php">Login</a></li>
		<li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php">Register</a></li>
	</ul>
 </li>
 <li id="meta">Meta:
 	<ul>
		<li><a href="<?php bloginfo('rss2_url'); ?>" title="Syndicate this site using RSS"><abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
		<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
		<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
		<li><a href="http://wordpress.xwd.jp/" title="Powered by WordPress Japan, Multilingual Edition">WordPress Japan</a></li>
	</ul>
 </li>

</ul>

</div>

</div>

<p class="credit"><?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. <cite>Powered by <a href="http://wordpress.xwd.jp/" title="Powered by WordPress Japan, Multilingual Edition"><strong>WordPress ME</strong></a></cite></p>
</body>
</html>
