<p>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_PATH;?>sites/all/themes/envoy/horizontal.css" /> <script language="javascript" type="text/javascript" src="<?php echo BASE_PATH;?>sites/all/themes/envoy/mootools-1.2.1-core.js"></script> <script language="javascript" type="text/javascript" src="<?php echo BASE_PATH;?>sites/all/themes/envoy/slideitmoo-1.1.js"></script> <script language="javascript" type="text/javascript">
	window.addEvents({
		'domready': function(){
			/* thumbnails example , div containers */
			new SlideItMoo({
						overallContainer: 'SlideItMoo_outer',
						elementScrolled: 'SlideItMoo_inner',
						thumbsContainer: 'SlideItMoo_items',		
						itemsVisible:3,
						elemsSlide:1,
						duration:300,
                                                autoSlide: 2000,
						itemsSelector: '.SlideItMoo_element',
						itemWidth: 250,
						showControls:1,
						startIndex:5,
						onChange: function(index){
							
						}
			
			});
		}
	});
</script> 	<!--thumbnails slideshow begin--></p>
<div id="SlideItMoo_outer">
<div class="SlideItMoo_back"><!--slide back button--></div>
<div id="SlideItMoo_inner">
<div id="SlideItMoo_items"><?php $sql=db_query("SELECT `zf`.`featured_id` , `zf`.`products_id` , `zpd`.`products_name` , `zp`.`products_image` FROM `zen_featured` zf INNER JOIN `zen_products` zp ON `zf`.`products_id` = `zp`.`products_id` INNER JOIN `zen_products_description` zpd ON `zp`.`products_id` = `zpd`.`products_id` ORDER BY `zf`.`featured_id` DESC");
			$i=1;
			while($result=db_fetch_object($sql)){
		
		$products_image = $result->products_image;
		$products_image_extension = substr($products_image, strrpos($products_image, '.'));
		$products_image_base = str_replace($products_image_extension, '', $products_image);
		$products_image_medium = $products_image_base . '_med' . $products_image_extension;
		$products_image_large = $products_image_base . '_lrg' . $products_image_extension;
			?>
<div class="SlideItMoo_element"><b><?php echo $result->products_name ?></b> <a href="<?php echo BASE_PATH;?>store/index.php?main_page=product_info&amp;products_id=<?php echo $result->products_id ?>"><img border="0" style="max-width: 250px; max-height: 250px;" alt="<?php echo $result->products_name ?>" src="<?php echo BASE_PATH;?>store/images/large/<?php echo $products_image_large ?>" /></a></div>
<?php $i++; } ?></div>
</div>
<div class="SlideItMoo_forward"><!--slide forward button--></div>
</div>