<?php get_header(); ?>
<div id="top">
<a href="#top2"><div class="header"><a title="HOME" href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a> | <a href="#top2">Recently...</a> | <a href="#top3">Elsewhere</a> | <a href="#low">Search</a> | <a href="#top4">Login</a> | <ul><?php wp_list_pages('depth=1&title_li='); ?></ul></div></div>
<div id="top1">

<?php $my_query = new WP_Query('cat=5&showposts=1'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
		
<div class="trans0">
<table width="541"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="<?php bloginfo('stylesheet_directory'); ?>/images/fancy0.png" alt="fancy" /></td>
    <td class="title">
	<h1><a href="<?php the_permalink(); ?>#top3" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><!-- post id <?php the_ID(); ?> -->
<?php the_title(); ?></a></h1>
</td>
  </tr>
  <tr>
    <td class="date0">
<span class="date_day"><!-- day --><?php the_time('j'); ?></span>
<span class="date_month"><!-- month --><?php the_time('m'); ?></span>
<span class="date_year"><!-- year --><?php the_time('Y'); ?></span>
<?php edit_post_link('Edit',''); ?><br/><br/>
<span class="date_comment"><?php comments_popup_link('0', '1', '%'); ?></span>
	</td>
    <td valign="top"><div class="entry">
<?php the_excerpt('Continue reading &raquo;'); ?>
<!-- sinnlos
<?php trackback_rdf(); ?>
-->
<img width="432" src="<?php bloginfo('stylesheet_directory'); ?>/images/title2.png"
alt="categories" />
<span class="cats">Filled under: <?php the_category(', ') ?></span>
<span class="readon">
<a href="<?php the_permalink(); ?>#top3" rel="bookmark" title="Permanent Link to <?php the_title
(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/readon.png" alt="continue reading this article" /></a>
</span>

<br class="both" />
</div> <!-- end entry --></td>
  </tr>
</table>
</div>

<br class="both" />
<?php endwhile; ?>

</div>

<div id="top2">
</div>

<div id="top3">
<div class="left">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/about.png" alt="about this blog" /><br />
This is the area where you can put a text about yourself or your blog. You can change the colours and the layout as you like, but <u>please keep the footer link</u> the way the way it is so that other can find the way back to <a href="http://www.h4x3d.com" title="h4x3d.com">me</a>. Thanks for using this theme, I really appreciate it.
 This theme is released under those <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" title="[CC rev. 3] You can change everything, but must credit the original author, Julian Klewes" target="_blank">Creative Commons</a> terms of use. 
And now ENJOY and get blogging! <br /><br />
<a href="#add-your-link-here" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img align="right" src="<?php bloginfo('stylesheet_directory'); ?>/images/readon2.png" alt="continue reading this article" /></a><br />
<br />
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/recently.png" alt="recently on this blog" /><br />
<div id="recent">
<ul>
		<?php $myposts = get_posts('numberposts=5'); foreach($myposts as $post) : ?>
			<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <span class="recent"><?php the_time('j'); ?> / <?php the_time('m'); ?> / <?php the_time('y'); ?></span></li>
		<?php endforeach; ?>
		</ul>
	</div>
<br class="twenty"/><br class="twenty"/>
</div>

<?php 
if (have_posts()) : 
while (have_posts()) : the_post(); ?>
<div class="trans1">
<table width="541"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="<?php bloginfo('stylesheet_directory'); ?>/images/fancy.png" alt="fancy" /></td>
    <td class="title">
	<h1><a href="<?php the_permalink(); ?>#top3" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><!-- post id <?php the_ID(); ?> -->
<?php the_title(); ?></a></h1>
</td>
  </tr>
  <tr>
    <td class="date">
<span class="date_day"><!-- day --><?php the_time('j'); ?></span>
<span class="date_month"><!-- month --><?php the_time('m'); ?></span>
<span class="date_year"><!-- year --><?php the_time('Y'); ?></span>
<?php edit_post_link('Edit',''); ?><br/><br/>
<span class="date_comment"><?php comments_popup_link('0', '1', '%'); ?></span>
	</td>
    <td valign="top"><div class="entry">
<?php the_excerpt('Continue reading &raquo;'); ?>
<!-- sinnlos
<?php trackback_rdf(); ?>
-->
<img width="432" src="<?php bloginfo('stylesheet_directory'); ?>/images/title2.png"
alt="categories" />
<span class="cats">Filled under: <?php the_category(', ') ?></span>
<br class="both" />
<?php comments_template(); // Get wp-comments.php template ?>
</div> <!-- end entry --></td>
  </tr>
</table>
</div>

<br class="both" />

		<?php endwhile; ?>
		
		<?php else : 
		/*
		If by some weird circumstance you have no posts
		(near impossible unless something nasty happens 
		to MySQL), you get the paragraph below and the 
		search form.
		Note: Your XHTML won't be valid because two form fields
		will have the same ID. Sorry.
		*/
		?>

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

	<?php endif; ?>
<br/>
<br/><br/>
<br/><br/>
</div>

<div id="top4">
<div class="left1">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/links.png" alt="links elsewhere" /><br />
<div id="recent1">
<ul>
        <?php get_links('-1', '<li>', '</li>', '', FALSE, 'rand', FALSE, FALSE, 5, TRUE); ?>
	<li><a href="http://www.h4x3d.com" target="_blank">h4x3d.com</a></li>
	</ul>
</div>
<br/>
</div>
<!-- end links -->

<div class="left2">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/monthly.png" alt="monthly archives" /><br />
<div id="recent1">
<ul>
        <?php wp_get_archives('limit=5&show_post_count=true'); ?>
	</ul>
</div>
<br/>
</div>
<!-- end monthly -->

<div class="left2">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/search.png" alt="search this place" /><br />

<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<br /><br />

<img src="<?php bloginfo('stylesheet_directory'); ?>/images/login.png" alt="login" /><br />
<?php global $user_ID, $user_identity, $user_level ?>
		<?php if ( $user_ID ) : ?>
		Logged in as <strong><?php echo $user_identity ?></strong>.<br />
		<a href="<?php bloginfo('url') ?>/wp-admin/">Dashboard</a><br />

				<?php if ( $user_level >= 1 ) : ?>
				<a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">Write an article</a><br />
				<?php endif // $user_level >= 1 ?>

				<a href="<?php bloginfo('url') ?>/wp-admin/profile.php">Profile and personal options</a><br />
				<a href="<?php bloginfo('url') ?>/wp-login.php?action=logout&amp;redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Logout</a><br />
		
		
		<?php elseif ( get_option('users_can_register') ) : ?>
			<div class="search">
			<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">

				<div class="comeon1"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /></div>
				<div class="comeon"><input type="password" name="pwd" id="pwd" size="22" /></div>
				<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/go.png" alt="go" id="go" title="go"  name="submit" value="Send"/>
				
				<input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /><br />
				<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>

			</form>
			</div>
			<br />
			<br />

			<a href="<?php bloginfo('url') ?>/wp-register.php">Register</a><br />
			<a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">Recover password</a><br />

		<?php endif // get_option('users_can_register') ?>
<br />
<div class="noborder">
<a href="<?php bloginfo_rss('url') ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/newsfeed.png" alt="newsfeed" /><br /></a>
</div>
</div>
<br class="both" />
</div>
<div id="top5">
<div class="footer">
<small><?php the_time('Y'); ?> | Content: <a title="HOME" href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a> Design: <a href="http://www.h4x3d.com" title="Go to the Theme author's website: Julian Klewes" target="_blank">Julian Klewes</a> | Licence: <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/" title="[CC rev. 3] You can change everything, but must credit the original author, Julian Klewes" target="_blank">CC 3.0</a> | <a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php bloginfo('stylesheet_url'); ?>&warning=1&profile=css21&usermedium=all">Valid CSS</a> | <a href="#top">Move back to the top</a></small></div>
</div>
</div>
<div id="low">
</div>

<?php get_footer(); ?>