<?php
	$blog_slider_cat = get_option(THEME_NAME."_blog_slider_cat");
	$blog_slider_enabled = get_option(THEME_NAME."_slider_enabled");

?>
<?php if ( $blog_slider_enabled == "on" ) { ?>
<?php $my_query = new WP_Query('cat='.$blog_slider_cat.'&showposts=5&orderby=menu_order&order=ASC'); ?>
		
					<div class="blog-slider-wrapper">
						<!-- BEGIN .blog-slider -->
						<div class="blog-slider">
							<div id="blog-slider">
								<?php if ( $my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
									<?php $image = get_post_thumb($post->ID,569,281,THEME_NAME.'_slider_image'); ?>
									<img src="<?php echo $image['src']; ?>" alt="&lt;a href=&quot;<?php the_permalink();?>&quot;&gt;&lt;b&gt;<?php the_title(); ?>&lt;/b&gt;&lt;/a&gt;" width="569" height="281" />
								<?php endwhile; else: ?>
								<?php endif; ?>	
								</div>
								<div class="thumbs" id="thumbs">
								</div>
								<div class="shadow">&nbsp;</div>
							
						<!-- END .blog-slider -->
						</div>
					</div>
<?php } ?>
