<?php 

	$category_detail=get_the_category($post->ID);
	$post_id = $post->ID;
	$cat_id = -1;
	$cat_name = '';
	foreach($category_detail as $cd){
		if(substr( $cd->cat_name, 0, 3 ) === "TUT") {
			$cat_id = $cd->cat_ID;
			$cat_name = $cd->cat_name;
			break;
		}
	}
	if($cat_id > 0) { ?>
		<div id="sidebar">
			<h3 class="widgettitle"> <?php echo $cat_name; ?> </h3>
			<ul>
			<?php
				$catPost = get_posts('cat='.$cat_id.'&posts_per_page=-1&order=ASC&orderby=menu_order');			
				$text = "class='tut-current-post'";
			   	foreach ($catPost as $post) : setup_postdata($post); ?>
			
			   		<li><a href="<?php the_permalink(); ?> "
			   					<?php if($post_id == $post->ID) echo ' ' . $text; ?>
			   					>
			   				<?php the_title(); ?>
			   				
			   			</a></li>
			
				<?php  endforeach;?>
			</ul>
		</div>

	<?php }
 ?>