<?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"><?php _e('Home'); ?></span>
										</div><!-- .moduletable -->	
									</div><!-- #breadcrumbs -->
									
									<?php if (get_posts('cat='.get_option('mixx_feature_cat_id')) && get_option('mixx_feature_cat_id') != '-1') { ?>
									
									<div id="featured-block">

											<script type="text/javascript">
    											var RokFeatureImages = [];

    											window.addEvent('domready', function() {
        											new RokFeature('featured-block', {
	    												'transition': Fx.Transitions.Quad.easeOut,
	    												'duration': 800,
	    												'opacity': 0.8,
	    												'autoplay': true,
	    												'delay': 7000        });
    												});
											</script>

									<div id="rows-3" class="rokfeature-mod">
    									<div class="rokfeature-image">
        									<div class="rokfeature-options">
											<?php $i = 1; ?>
											  <?php query_posts('cat='.get_option('mixx_feature_cat_id').'&showposts=3&orderby=rand'); ?>
											  <?php while (have_posts()) : the_post(); ?>
											  		
													<div class="rokfeature-option-block">
                										<div class="rokfeature-tab-<?php echo $i; ?>"></div>
                										<div class="rokfeature-block-<?php echo $i; ?>">
															<?php $large = get_post_meta($post->ID, 'large', TRUE); ?>
															<?php if($large) { ?>  
															<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $large ?>&amp;w=65&amp;h=65&amp;zc=1&amp;q=75" alt="<?php the_title(); ?>" class="rokfeature-thumb" height="66" width="72" /></a>
															<?php } ?>
															
															<?php remove_filter('the_excerpt', 'wpautop'); ?>
															
                                                            <span class="showthumb"><?php the_excerpt(); ?></span>
                                                            
                                                            <?php add_filter('the_excerpt', 'wpautop'); ?>
                                                            
                    										<div class="rokfeature-block-bg<?php echo $i; ?>"></div>
                										</div><!-- .rockfeature-block-3 -->
														<?php $large = get_post_meta($post->ID, 'large', TRUE); ?>
														<?php if($large) { ?>
                										<script type="text/javascript">
                    									RokFeatureImages.push('<?php echo $large; ?>');
                										</script>
														<?php } ?>
            										</div><!-- .rockfeature-option-block -->
                        							<div class="rokfeature-title">
                                						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><span><?php the_title(); ?></span></a>
                            						</div><!-- .rokfeature-option-block -->
                                    				<div class="rokfeature-readon">
                										<a href="<?php the_permalink(); ?>"><?php _re('Read More'); ?></a>
            										</div><!-- .rokfeature-readon -->
													<?php $i++;?>
											  <?php endwhile;?>
                                            	</div><!-- .rokfeature-option-block -->
											</div>
										</div>
									</div><!-- #row-3 -->
										
									<?php } ?>
																				
									<div id="main-content">
									
										<?php if (get_option('mixx_inset_active') == "true") { ?>
										
											<?php get_sidebar('inset'); ?>
										
										<?php } ?>
										
										<div id="maincontent-block">
											<div class="blog">
											
												<?php 
													$thePage = (get_query_var('paged')) ? get_query_var('paged') : 1;
													query_posts($query_string.'paged='.$thePage.'&cat=-'.get_option('mixx_feature_cat_id').',-'.get_option('mixx_more_news_cat_id'));
												?>
												
												<?php while (have_posts()) : the_post(); ?>
												
												<div <?php post_class('leading'); ?>>
													<div class="frontpage-item rokmodtools-<?php the_ID(); ?>">
														<div class="frontpage-item-bg">
															<div class="content-header">
																<div class="content-tools">
																	<div class="close-handle"></div>
																	<div class="tools-handle"></div>
																	<h2 class="contentheading"><?php the_title(); ?></h2>
																</div>
															</div><!-- .content-header -->
															<div class="article-extras"><!-- IE6FIX -->
																<div class="iteminfo">
																	<span class="createdate"><?php the_time('l, j F Y h:i'); ?></span>
																</div>
															<div class="readon-tab-block">
																<div class="readon-tab">
																	<div class="readon-tab2">
																		<div class="readon-tab3">
																			<a href="<?php the_permalink(); ?>" class="readon"><span class="readon-tab-text"><?php _re('Read More'); ?></span></a>
																		</div>
																	</div>
																</div>
															</div>
															<div class="comments-tab-block">
																<div class="readon-tab">
																	<div class="readon-tab2">
																		<div class="readon-tab3">
																			<a href="<?php comments_link(); ?>" class="readon"><span class="readon-tab-text"><?php comments_number(); ?></span></a>
																		</div>
																	</div>
																</div>
															</div>
														</div><!-- .frontpage-item-bg -->
														<div class="content-padding">
															<div>
																<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
																<?php if($thumb) { ?>
																<div class="feature-thumb">
																	<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=151&amp;h=112&amp;zc=1&amp;q=75" alt="<?php the_title(); ?>" class="feature"/><span><a href="<?php the_permalink(); ?>"><?php _re('Read more'); ?></a></span>
																</div><!-- .feature-thumb -->
																<?php } ?>
																<h4 style="margin-top: 10px;"><span class="highlight-bold"><?php the_title(); ?></span></h4>
																<div style="font-size: 110%;"><?php the_content(false); ?>
																
																<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
																
																<a href="<?php the_permalink(); ?>" class="readon"><span class="readon-full"><?php _re('Read more:'); ?> <?php the_title(); ?></span></a>
																
																<?php } ?>
																
																<div class="clr"></div>
																
																</div>
															</div>
														</div><!-- .content-padding -->
													</div><!-- .frontpage-item .rokmodtools-blog-82 -->
													<div class="content-bottom">
														<div class="content-bottom2">
															<div class="content-bottom3"></div>
														</div>
													</div>
												</div>
											</div><!--<span class="leading_separator">&nbsp;</span>-->
										
											<?php endwhile;?>
											
											<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
											
											<div class="blog_nav_index">
												<div class="alignleft_index"><?php next_posts_link('&laquo; '._r('Older Entries')); ?></div>
												<div class="alignright_index"><?php previous_posts_link(_r('Newer Entries').' &raquo;') ?></div>
												<div class="clr"></div>
											</div><br />
											
											<?php } ?>
										
										<div class="clr"></div>
									</div>
								</div>
							</div>
						</div>
						<div class="clr"></div>
								
						<div id="mainmodules2" class="spacer w99">
							<div class="block last" style="width: <?php echo $content_width; ?>px">
							
								<?php if (get_posts('cat='.get_option('mixx_more_news_cat_id')) && get_option('mixx_more_news_cat_id') != '-1') { ?>
								
								<div class="mainblock-module rokmodtools-more-news-main-page">
									<div class="mainblock-mod">
										<div class="mainblock-mod2">
											<div class="mainblock-title-container">
												<div class="content-tools">
													<h3 class="module-title"><span class="bg">
													<?php echo get_cat_name(get_option('mixx_more_news_cat_id')); ?>
													</span></h3>
													<div class="close-handle"></div>
													<div class="tools-handle"></div>
													</div>
											</div><!-- .mainblock-title-container -->
											<div class="module">
												<div class="morenews-outer">
													
													<?php $i = 1; ?>
													
													<?php query_posts('cat='.get_option('mixx_more_news_cat_id').'&showposts=4&orderby=rand'); ?>
													<?php while (have_posts()) : the_post(); ?>
													
													<div class="morenews-block-<?php echo $i; ?>">
														
														<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
														<?php if($thumb) { ?>
														<a href="<?php the_permalink(); ?>"><img class="morenews-img" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=122&amp;h=80&amp;zc=1&amp;q=75" /></a>
														<?php } ?>
														<br />
														<span class="highlight-bold highlight-grey" style="margin-bottom:-8px;display:block;"><?php the_title(); ?></span><br />
														
														<?php remove_filter('the_content', 'wpautop'); ?>
														
														<span class="more_news_excerpt"><?php the_content(false); ?></span>
														
														<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
														
														<a class="readon" href="<?php the_permalink(); ?>"><span class="readon-full"><?php _re('More'); ?></span></a>
														
														<?php } ?>
														
														<?php add_filter('the_content', 'wpautop'); ?>
														
													</div>
													<?php $i++; ?>
													
													<?php endwhile;?>
												
													</div>
													
													<div class="clr">
													
												</div>				
											</div><!-- .module -->
										</div>
									</div>
									
									<div class="mainblock-mod-bottom">
										<div class="mainblock-mod-bottom2">
											<div class="mainblock-mod-bottom3"></div>
										</div>
									</div>
								</div>
								
								<?php } ?>
								
								<?php remove_filter('the_content', 'wpautop'); ?>
								
								<?php if ( (get_posts('cat='.get_option('mixx_previous_issues_cat_1_id')) && get_option('mixx_previous_issues_cat_1_id') != '-1') || (get_posts('cat='.get_option('mixx_previous_issues_cat_2_id')) && get_option('mixx_previous_issues_cat_2_id') != '-1') || (get_posts('cat='.get_option('mixx_previous_issues_cat_3_id')) && get_option('mixx_previous_issues_cat_3_id') != '-1') || (get_posts('cat='.get_option('mixx_previous_issues_cat_4_id')) && get_option('mixx_previous_issues_cat_4_id') != '-1') ) { ?>
								
								<div class="mainblock-module medium rokmodtools-previous-issues-main-page">
									<div class="mainblock-mod">
										<div class="mainblock-mod2">
											<div class="mainblock-title-container">
												<div class="content-tools">
													<h3 class="module-title">
													<span class="bg"><?php echo get_option('mixx_previous_issues_title'); ?></span></h3>
													<div class="close-handle"></div>
													<div class="tools-handle"></div>
												</div>
											</div>
											
											<div class="module">
												<div style="width: 48%; float: left;">
												
												<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_1_id')) && get_option('mixx_previous_issues_cat_1_id') != '-1') { ?>
													
													<?php query_posts('cat='.get_option('mixx_previous_issues_cat_1_id').'&showposts=1&orderby=rand'); ?>
													<?php while (have_posts()) : the_post(); ?>
													
													<div style="margin-bottom:10px;">
														<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
														<?php if($thumb) { ?>
														<div class="feature-thumb" style="margin-bottom:10px;"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
															<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_1_id'));?>"><?php single_cat_title(); ?></a></span>
														</div>
														<?php } ?>
														<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
														<div style="height: 5px;"></div>
														<?php the_content(false); ?>
														
														<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
														
														<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
														
														<?php } ?>
														
													</div>
													<?php endwhile;?>
													
												<?php } ?>
													
													<div class="clr"></div>
													
												<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_2_id')) && get_option('mixx_previous_issues_cat_2_id') != '-1') { ?>	
																									
													<?php query_posts('cat='.get_option('mixx_previous_issues_cat_2_id').'&showposts=1&orderby=rand'); ?>
													<?php while (have_posts()) : the_post(); ?>
													
													<div>
														<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
														<?php if($thumb) { ?>
														<div class="feature-thumb"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
															<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_2_id'));?>"><?php single_cat_title(); ?></a></span>
														</div>
														<?php } ?>
														<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
														<div style="height: 5px;"></div>
														<?php the_content(false); ?>
														
														<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
														
														<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
														
														<?php } ?>
														
													</div>
													<?php endwhile;?>
												
												<?php } ?>
												
											</div>
											<div style="width: 48%; float: left; margin-left: 20px;">
											
											<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_3_id')) && get_option('mixx_previous_issues_cat_3_id') != '-1') { ?>												
												
												<?php query_posts('cat='.get_option('mixx_previous_issues_cat_3_id').'&showposts=1&orderby=rand'); ?>
												<?php while (have_posts()) : the_post(); ?>
												
												<div style="margin-bottom:10px;">
													<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
													<?php if($thumb) { ?>
													<div class="feature-thumb" style="margin-bottom:10px;"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
														<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_3_id'));?>"><?php single_cat_title(); ?></a></span>
													</div>
													<?php } ?>
													<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
													<div style="height: 5px;"></div>
													<?php the_content(false); ?>
													
													<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
													
													<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
													
													<?php } ?>
													
												</div>
												<?php endwhile;?>
												
											<?php } ?>
												
											<div class="clr"></div>
											
											<?php if (get_posts('cat='.get_option('mixx_previous_issues_cat_4_id')) && get_option('mixx_previous_issues_cat_4_id') != '-1') { ?>
											
											<?php query_posts('cat='.get_option('mixx_previous_issues_cat_4_id').'&showposts=1&orderby=rand'); ?>
											<?php while (have_posts()) : the_post(); ?>
											
											<div>
												<?php $thumb = get_post_meta($post->ID, 'thumb', TRUE); ?>
												<?php if($thumb) { ?>
												<div class="feature-thumb"><img class="feature" alt="<?php the_title(); ?>" src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $thumb ?>&amp;w=115&amp;h=85&amp;zc=1&amp;q=75"/>
													<span style="top: 60px;"><a href="<?php echo get_category_link(get_option('mixx_previous_issues_cat_4_id'));?>"><?php single_cat_title(); ?></a></span>
												</div>
												<?php } ?>
												<span class="highlight-bold" style="display:block;"><?php the_title(); ?></span>
												<div style="height: 5px;"></div>
												<?php the_content(false); ?>
												
												<?php if(preg_match("/\<\!\-\-more\-\-\>/", $post->post_content)) { ?>
												
												<a href="<?php the_permalink(); ?>" style="font-weight: bold;display:block;"><?php _re('More'); ?></a>
												
												<?php } ?>
												
											</div>
											<?php endwhile;?>
											
											<?php } ?>
										
									</div>
									<div class="clr"></div>				
								</div>
							</div>
						</div>
						<div class="mainblock-mod-bottom">
							<div class="mainblock-mod-bottom2">
								<div class="mainblock-mod-bottom3"></div>
							</div>
						</div>
					</div>
					
					<?php } ?>
					
					<?php add_filter('the_content', 'wpautop'); ?>
					
				</div>
			</div>
		</div>
		<!--End Main Column-->
		
		<?php if (get_option('mixx_right_active') == "true") { ?>
		
			<?php get_sidebar('right'); ?>
		
		<?php } ?>
		
		<div class="clr"></div>
	</div>
	
	<!--End Main Content Area-->
		
<?php get_footer(); ?>