jQuery.fn.makeCarousel = function(options) {
	options = jQuery.extend({slideWidth : 0, numSlides: 1, transTime: 100, interval: 5000, captions: 0, tabs: 1}, options);

	//Function
	return $(this).each( function() {
	
		//Store THIS object
		var $this = $(this);
		var $slide_list = $this.find("ul#slide_list");
		var $slide_captions = $this.find("ul#slide_captions");
		
		// Set Interval
		setInterval(function(){
		
			//Store Variables
			var currentLeft = $slide_list.css("left");
			var left = parseFloat(currentLeft, 10);
			var moveBy = left - options.slideWidth;

			//Slide the list, and stop it being moved out of bounds
			if(moveBy < ((options.numSlides - 1) * options.slideWidth) * -1) {
			    if(options.captions != 0)
					$slide_captions.animate({left : "0px" }, options.transTime);
			    $slide_list.animate({left : "0px" }, options.transTime);
			} else {
				if(options.captions != 0)
					$slide_captions.animate({left : moveBy + "px" }, options.transTime);
			    $slide_list.animate({left : moveBy + "px" }, options.transTime);
			}
			
		},options.interval);
	});
}


