<div class="toptabs">
		
	<ul class="toptablist">
		<li><a href="#"><?php _e('Video','news'); ?></a></li>
		<li><a href="#"><?php _e('Popular','news'); ?></a></li>
		<li><a href="#"><?php _e('Top Rated','news'); ?></a></li>
		<li><a href="#"><?php _e('Comments','news'); ?></a></li>
	</ul><div class="clear"></div>
		
	<div class="tabbox">
		<div class="videotab">
		<?php
		$display = new WP_query(); $display->query('showposts=1&meta_key=video'); global $wp_query; $wp_query->in_the_loop = true; if ($display->have_posts()) :
			while ($display->have_posts()) : $display->the_post();
			dt_video('width=300&height=220');
			endwhile;
		endif;
		?>
		</div>
		<p class="normal"><span><?php _e('Currently playing:','news'); ?></span> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
		<p class="morevideo"><a href="#"><?php _e('View all','news'); ?></a></p>
	</div>
		
	<div class="tabbox">
		<?php if ($news['popularmode'] == 'views') : ?>
		<?php $display = new WP_query(); $display->query('showposts='.$news['popularnum'].'&v_sortby=views&v_orderby=desc'); global $wp_query; $wp_query->in_the_loop = true; if ($display->have_posts()) : ?>
		<ol>
			<?php while ($display->have_posts()) : $display->the_post(); ?>
			<?php if (function_exists(the_views)) : if (get_post_meta($post->ID, 'views', true) > 0) : ?>
			<li>
			<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php the_title(); ?></a>
			<span class="viewcount" title="<?php _e('Views','news'); ?>"><?php echo get_post_meta($post->ID, 'views', true); ?></span>
			</li>
			<?php endif; endif; ?>
			<?php endwhile; ?>
		</ol>
		<?php endif; endif; ?>
		<?php if ($news['popularmode'] == 'comments') : ?>
		<?php $display = new WP_query(); $display->query('showposts='.$news['popularnum'].'&orderby=comment_count'); global $wp_query; $wp_query->in_the_loop = true; if ($display->have_posts()) : ?>
		<ol>
			<?php while ($display->have_posts()) : $display->the_post(); ?>
			<?php if (get_comments_number() > 0) : ?>
			<li>
			<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php the_title(); ?></a>
			<span class="commentcount" title="<?php _e('Comments','news'); ?>"><?php comments_number('0','1','%') ?></span>
			</li>
			<?php endif; ?>
			<?php endwhile; ?>
		</ol>
		<?php endif; endif; ?>
	</div>
		
	<div class="tabbox">
		<?php $display = new WP_query(); $display->query('showposts='.$news['ratednum'].'&r_sortby=highest_rated&r_orderby=desc'); global $wp_query; $wp_query->in_the_loop = true; if ($display->have_posts()) : ?>
		<ol>
			<?php while ($display->have_posts()) : $display->the_post(); ?>
			<?php if (function_exists(the_ratings)) : if (get_post_meta($post->ID, 'ratings_score', true) > 0) : ?>
			<li>
			<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php the_title(); ?></a>
			<span class="votecount" title="<?php _e('Votes','news'); ?>"><?php echo get_post_meta($post->ID, 'ratings_score', true); ?></span>
			</li>
			<?php endif; endif; ?>
			<?php endwhile; ?>
		</ol>
		<?php endif; ?>
	</div>
		
	<div class="tabbox">
		<?php dt_recent_comments('show='.$news['recentc_num'].'&list='.$news['recentc_container'].'&gravatar_size='.$news['recentc_size']); ?>
	</div>

</div><div class="clear"></div>