<?php get_header(); ?>
					
					<!--Begin Main Content Area-->
					
						<div id="main-body">
							<!--Begin Left Column-->
							<!--End Left Column-->
							<!--Begin Main Column-->
							<div id="maincol" style="width: <?php echo $content_width; ?>px">
								<div class="padding">
									<div id="breadcrumbs">
										<div class="moduletable">
											<span class="breadcrumbs pathway"><a href="<?php bloginfo('url'); ?>" class="pathway"><?php _e('Home'); ?></a>&nbsp;&nbsp;//&nbsp;&nbsp;<?php if (have_posts()) : ?>
 	  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 	  <?php /* If this is a category archive */ if (is_category()) { ?>
		<?php _re('Archive for the'); ?> &#8216;<?php single_cat_title(); ?>&#8217; <?php _re('Category'); ?>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<?php _re('Posts Tagged'); ?> &#8216;<?php single_tag_title(); ?>&#8217;
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<?php _re('Archive for'); ?> <?php the_time('F jS, Y'); ?>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<?php _re('Archive for'); ?> <?php the_time('F, Y'); ?>
 	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<?php _re('Archive for'); ?> <?php the_time('Y'); ?>
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<?php _re('Author Archive'); ?>
 	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<?php _re('Blog Archives'); ?>
 	  <?php } ?><?php endif; ?></span></div><!-- .moduletable -->
									</div><!-- #breadcrumbs -->	
									<div id="main-content">
										<div id="maincontent-block" style="margin-left:0;">
											<div id="page">
												<div class="main-article">
													<div class="buttonheading">
													</div>
		<?php if (have_posts()) : ?>

 	  <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
 	  <?php /* If this is a category archive */ if (is_category()) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Archive for the'); ?> &#8216;<?php single_cat_title(); ?>&#8217; <?php _re('Category'); ?></span></h1>
 	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Posts Tagged'); ?> &#8216;<?php single_tag_title(); ?>&#8217;</span></h1>
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Archive for'); ?> <?php the_time('F jS, Y'); ?></span></h1>
 	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Archive for'); ?> <?php the_time('F, Y'); ?></span></h1>
 	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Archive for'); ?> <?php the_time('Y'); ?></span></h1>
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Author Archive'); ?></span></h1>
 	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h1 class="componentheading"><span class="bg"><?php _re('Blog Archives'); ?></span></h1>
 	  <?php } ?>

		<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; '._r('Older Entries')) ?></div>
			<div class="alignright"><?php previous_posts_link(_r('Newer Entries').' &raquo;') ?></div>
			<div class="clr"></div>
		</div>
		
		<?php } ?>

		<?php while (have_posts()) : the_post(); ?>
		<div <?php post_class(); ?>>
			<div class="post_wrapper_archive">
				<div class="ribbon png">
						<span class="bold_month"><?php the_time('M') ?></span><br />
						<span class="ribbon_day"><?php the_time('d/y') ?></span>
				</div>
				<div class="archive_wrapper">
				<span class="archive_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></span>
					<div class="clr"></div>

				<div class="entry">
					<small>
					<?php _re('Last Updated on'); ?> <?php the_modified_date('l, j F Y h:i'); ?><br />
					<?php _re('Written by'); ?> <?php the_author(); ?><br />
					<?php the_time('l, F jS, Y') ?></small>
					<?php the_content() ?>
				</div>
				<div class="clr"></div>

				<div class="meta_archive"><span class="grey_archive_text"><?php the_tags(__('Tags: '), ', ', '&nbsp;&nbsp;|&nbsp;'); ?> <?php _re('Posted under'); ?>&nbsp;<?php the_category(', ') ?>&nbsp;&nbsp;| <?php edit_post_link(_r('Edit'), '', ' | '); ?>&nbsp;<img src="<?php bloginfo('template_directory'); ?>/images/main/comment_little_icon.png" alt="Comments" class="little_comments" />&nbsp;&nbsp;<?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments')); ?></span></div>

			</div></div></div>

		<?php endwhile; ?>
		
		<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; '._r('Older Entries')) ?></div>
			<div class="alignright"><?php previous_posts_link(_r('Newer Entries').' &raquo;') ?></div>
			<div class="clr"></div>
		</div>
		
		<?php } ?>

	<?php else :

		if ( is_category() ) { // If this is a category archive
			printf('<h2 class="center">'._r("Sorry, but there aren't any posts in the %s category yet.").'</h2>', single_cat_title('',false));
		} else if ( is_date() ) { // If this is a date archive
			echo('<h2 class="center">'._r("Sorry, but there aren't any posts with this date.").'</h2>');
		} else if ( is_author() ) { // If this is a category archive
			$userdata = get_userdatabylogin(get_query_var('author_name'));
			printf('<h2 class="center">'._r("Sorry, but there aren't any posts by %s yet.").'</h2>', $userdata->display_name);
		} else {
			echo('<h2 class="center">'._r('No posts found.').'</h2>');
		}
		get_search_form();

	endif;
?>

	</div>
											</div>
										</div>
									</div>
								</div>
								<div class="clr"></div>
							</div>
							<!--End Main Column-->
							
							<?php if (get_option('mixx_right_active') == "true") { ?>
							
								<?php get_sidebar('page'); ?>
								
							<?php } ?>
							
							<div class="clr"></div>
						</div>
						<!-- Begin Bottom Main Modules -->
						<!-- End Bottom Main Modules -->
						<!--End Main Content Area-->
							
<?php get_footer(); ?>