	<div class="sliding">
	
		<ul class="slidingtabs">
			<?php if (!empty($news['scrollables'])) : foreach($news['scrollables'] as $instance) : ?>
			<li><a href="#"><?php echo get_cat_name($instance) ?></a></li>
			<?php endforeach; endif; ?>
			<?php if ($news['scroll_rated'] == 1) : ?>
			<li><a href="#"><?php _e('Top Rated','news'); ?></a></li>
			<?php endif; ?>
			<?php if ($news['scroll_popular'] == 1) : ?>
			<li><a href="#"><?php _e('Most Popular','news'); ?></a></li>
			<?php endif; ?>
		</ul><div class="clear"></div>
		
		<?php
		if (!empty($news['scrollables'])) : foreach($news['scrollables'] as $instance) :
		$display = new WP_query(); $display->query('showposts='.$news['scrollablenum'].'&cat='.$instance);
		global $wp_query; $wp_query->in_the_loop = true;
		if ($display->have_posts()) :
		$count = 0;
		?>
		<div class="slidingcontent">
			
			<!-- tab browser -->
			<ul class="navigate">
				<?php if ($display->post_count > 5) : ?>
				<li><a href="#Prev" class="prev"><?php _e('Previous','news'); ?></a></li>
				<li><a href="#Next" class="next"><?php _e('Next','news'); ?></a></li>
				<?php endif; ?>
				<li><a href="<?php echo get_category_link($instance); ?>" class="all"><?php _e('View all','news'); ?></a></li>
			</ul>
			<!-- tab browser -->
			
			<!-- scrollable -->
			<div class="scrollable">
			<div class="items">

			<!-- section -->
			<ul class="slidingposts">
				<?php while ($display->have_posts()) : $display->the_post(); ?>
				<li>
					<div class="image"><?php dt_thumb('width=138&height=75&link=image'); ?></div>
					<div class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php dt_title(); ?></a></div>
					<div class="excerpt"><?php dt_excerpt(); ?></div>
					<div class="reactions"><?php the_time('d.m.Y'); ?> | <?php comments_popup_link(__('0 comments','news'), __('1 comment','news'), __('% comments','news'), '', 'Comments are closed'); ?></div>
				</li>
				<?php $count++; if ($count % 5 == 0 && $display->post_count > $count) echo '</ul><ul class="slidingposts">'; ?>
				<?php endwhile; ?>
			</ul>
			<!-- section -->
			
			</div>
			</div>
			<!-- scrollable -->

		</div>
		<?php endif; endforeach; endif; ?>
		
		<?php
		if ($news['scroll_rated'] == 1) :
		$display = new WP_query(); $display->query('showposts='.$news['scrollablenum'].'&r_sortby=highest_rated&r_orderby=desc');
		global $wp_query; $wp_query->in_the_loop = true;
		if ($display->have_posts()) :
		$count = 0;
		?>
		<div class="slidingcontent">
			
			<!-- tab browser -->
			<?php if ($display->post_count > 5) : ?>
			<ul class="navigate">
				<?php if ($display->post_count > 5) : ?>
				<li><a href="#Prev" class="prev"><?php _e('Previous','news'); ?></a></li>
				<li><a href="#Next" class="next"><?php _e('Next','news'); ?></a></li>
				<?php endif; ?>
			</ul>
			<?php endif; ?>
			<!-- tab browser -->
			
			<!-- scrollable -->
			<div class="scrollable">
			<div class="items">

			<!-- section -->
			<ul class="slidingposts">
				<?php while ($display->have_posts()) : $display->the_post(); ?>
				<li>
					<div class="image"><?php dt_thumb('width=138&height=75&link=image'); ?><div class="getinfo"><?php dt_votes_number(__('0 votes','news'),__('1 vote','news'),__('% votes','news')); ?></div></div>
					<div class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php dt_title(); ?></a></div>
					<div class="excerpt"><?php dt_excerpt(); ?></div>
					<div class="reactions"><?php the_time('d.m.Y'); ?> | <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('0 comments','news'), __('1 comment','news'), __('% comments','news')); ?></a></div>
				</li>
				<?php $count++; if ($count % 5 == 0 && $display->post_count > $count) echo '</ul><ul class="slidingposts">'; ?>
				<?php endwhile; ?>
			</ul>
			<!-- section -->
			
			</div>
			</div>
			<!-- scrollable -->

		</div>
		<?php endif; endif; ?>
		
		<?php
		if ($news['scroll_popular'] == 1) :
		?>
		
		<?php
		if ($news['popularmode'] == 'views') :
		$display = new WP_query(); $display->query('showposts='.$news['scrollablenum'].'&v_sortby=views&v_orderby=desc');
		global $wp_query; $wp_query->in_the_loop = true;
		if ($display->have_posts()) :
		$count = 0;
		?>
		<div class="slidingcontent">
			
			<!-- tab browser -->
			<?php if ($display->post_count > 5) : ?>
			<ul class="navigate">
				<?php if ($display->post_count > 5) : ?>
				<li><a href="#Prev" class="prev"><?php _e('Previous','news'); ?></a></li>
				<li><a href="#Next" class="next"><?php _e('Next','news'); ?></a></li>
				<?php endif; ?>
			</ul>
			<?php endif; ?>
			<!-- tab browser -->
			
			<!-- scrollable -->
			<div class="scrollable">
			<div class="items">

			<!-- section -->
			<ul class="slidingposts">
				<?php while ($display->have_posts()) : $display->the_post(); ?>
				<li>
					<div class="image"><?php dt_thumb('width=138&height=75&link=image'); ?><div class="getinfo"><?php dt_views_number(__('0 views','news'),__('1 view','news'),__('% views','news')); ?></div></div>
					<div class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php dt_title(); ?></a></div>
					<div class="excerpt"><?php dt_excerpt(); ?></div>
					<div class="reactions"><?php the_time('d.m.Y'); ?> | <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('0 comments','news'), __('1 comment','news'), __('% comments','news')); ?></a></div>
				</li>
				<?php $count++; if ($count % 5 == 0 && $display->post_count > $count) echo '</ul><ul class="slidingposts">'; ?>
				<?php endwhile; ?>
			</ul>
			<!-- section -->
			
			</div>
			</div>
			<!-- scrollable -->

		</div>
		<?php endif; endif; ?>
		
		<?php
		if ($news['popularmode'] == 'comments') :
		$display = new WP_query(); $display->query('showposts='.$news['scrollablenum'].'&orderby=comment_count');
		global $wp_query; $wp_query->in_the_loop = true;
		if ($display->have_posts()) :
		$count = 0;
		?>
		<div class="slidingcontent">
			
			<!-- tab browser -->
			<?php if ($display->post_count > 5) : ?>
			<ul class="navigate">
				<?php if ($display->post_count > 5) : ?>
				<li><a href="#Prev" class="prev"><?php _e('Previous','news'); ?></a></li>
				<li><a href="#Next" class="next"><?php _e('Next','news'); ?></a></li>
				<?php endif; ?>
				<li><a href="?show=mostpopular" class="all"><?php _e('View all','news'); ?></a></li>
			</ul>
			<?php endif; ?>
			<!-- tab browser -->
			
			<!-- scrollable -->
			<div class="scrollable">
			<div class="items">

			<!-- section -->
			<ul class="slidingposts">
				<?php while ($display->have_posts()) : $display->the_post(); ?>
				<li>
					<div class="image"><?php dt_thumb('width=138&height=75&link=image'); ?><div class="getinfo"><?php comments_number(__('0 reactions','news'),__('1 reaction','news'),__('% reactions','news')); ?></div></div>
					<div class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php dt_posttype() ?><?php dt_title(); ?></a></div>
					<div class="excerpt"><?php dt_excerpt(); ?></div>
					<div class="reactions"><?php the_time('d.m.Y'); ?> | <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('0 comments','news'), __('1 comment','news'), __('% comments','news')); ?></a></div>
				</li>
				<?php $count++; if ($count % 5 == 0 && $display->post_count > $count) echo '</ul><ul class="slidingposts">'; ?>
				<?php endwhile; ?>
			</ul>
			<!-- section -->
			
			</div>
			</div>
			<!-- scrollable -->

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

	</div>