			<?php if(is_home() && get_option('reedwan_featured_slider') == 'On' && get_option('reedwan_slider_style') == 'smallStyle' && get_option('reedwan_featured_tags')): ?>
				<?php
				$post_types = get_post_types();
				unset($post_types['page'], $post_types['attachment'], $post_types['revision'], $post_types['nav_menu_item']);
				
				$featured_posts = new WP_Query(array('post_type' => $post_types,'showposts' => get_option('reedwan_slider_num_item'),'tag' => get_option('reedwan_featured_tags')
				));
				?>
				<!-- Begin Nivo Slider Featured -->
					<div id="slider-wrapper">
						<div id="slider" class="nivoSlider">
							<?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
								<?php if(has_post_thumbnail()): ?>
									<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'small-nivo-thumb'); ?>
									<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" title="#htmlcaption_<?php the_ID(); ?>" width='620' height='340' /></a>
								<?php else: ?>
									<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo get_template_directory_uri(); ?>/images/thumbnail.png&w=620&h=340" alt="<?php the_title(); ?>" title="#htmlcaption_<?php the_ID(); ?>" width='620' height='340' /></a>
								<?php endif; ?>
							<?php endwhile; ?>
						</div>
						<?php while($featured_posts->have_posts()): $featured_posts->the_post(); ?>
						<div class="nivo-html-caption" id="htmlcaption_<?php the_ID(); ?>">
							<h1><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h1>
							<p><?php echo string_limit_words(get_the_excerpt(), 25); ?></p>
						</div>
						<?php endwhile; ?>
					</div>
				<!-- End Nivo Slider Featured -->
			<?php endif; ?>
			<div class="clear"></div>
				