
ContentCarousel.prototype = new Carousel;
ContentCarousel.prototype.constructor = Carousel;

function ContentCarousel(obj) {

	this._containerstr = "div.content-carousel";
	this._animationduration = 250;
	this._contentselector = "div.content"
	this._contentarea = "div.carousel-content-area"

	this.goToInterval = function(index) {
		Carousel.prototype.goToInterval(this, index);
		this.updateText(index);
	};

	this.updateText = function(index) {
		jQuery(this._contentarea).html("");
		var curitem = jQuery(this._items[this._currentinterval])
		var title = (this._currentinterval+1)+". "+curitem.find(this._contentselector).attr("title")
		var content = curitem.find(this._contentselector).html();
		jQuery(this._contentarea).append("<h2>"+title+"</h2>");
		jQuery(this._contentarea).append(content)
	}
	
}