jQuery(function($){	
	
	/* FEATURED PRODUCTS */
	
	var maxItems = 3;
	$(".wrapper li").each(function(i){
		if(i%maxItems == 0 && i>=maxItems){
			$(".wrapper").append("<ul class='productfeaturelist'></ul>");
		}
		$(".wrapper .productfeaturelist").last().append(this);			
	});
		 
	$('.wrapper')
	.before('<div id="news-nav">') 
	.cycle({ 
    fx:     'fade', 
    speed:  '4000', 
    timeout: 0, 
    pager:  '#news-nav' 
	});
	
	// run the code in the markup!
    $("#slideshow").cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
                timeout:  5000,
                speed: 1500,
				pager: '#slider_nav',
				pause:   1 
	});
	

});


