$(document).ready(function(){
	
	var carousel_nav_id=[];

/*	$('div.carousel_nav a').each(function(){
		var control = $(this)
		// attach an on click event to each item in the carousel navigation to toggle the selected classes
		control.click(function(e){
			e.preventDefault();
			$('a.picture-selected').removeClass();
			control.addClass('picture-selected');
		})
		control_id = control.attr('id')
		// store the id of each span for use by the carousel plugin
		carousel_nav_id.push("#"+control_id);
	})
*/

	var myCarousel = $('div.carousel');
	// add a carousel
		myCarousel.jCarouselLite({
	        btnGo: carousel_nav_id,
			visible: 1,
			auto:4000,
			speed:1000
		});

})
