
ImageCarousel.prototype = new Carousel;
ImageCarousel.prototype.constructor = ImageCarousel;

function ImageCarousel(obj) {

	this._containerstr = "div.image-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) {
		var content = "<p>";
		content += (this._currentinterval+1) + "/" + this._items.length + ": ";
		content += jQuery(this._items[this._currentinterval]).find(this._contentselector).attr("title");
		content += "</p>";
		jQuery(this._contentarea).html(content)
	}
	
}