window.addEvent("domready", function() {
	var Carousel = new iCarousel("carousel_content", {
		idPrevious: "carousel_previous",
		idNext: "carousel_next",
		idStop: "carousel_stop", // RJP
		idToggle: "undefined",
		item: {
			klass: "carousel_item",
			size: 320
		},
		animation: {
			type: "scroll",
			duration: 1500,
			amount: 1,
			rotate: { 
				type: "auto",
				interval: 5000,
				onMouseOver: "stop"
			} 
		}
	});

	//if(this.options.idStop != "undefined" && $(this.options.idStop))
		//$(this.options.idStop).addEvent("click", function(event) {new Event(event).stop();}.bind(this));
		////$(this.options.idStop).addEvent("click", function(event) {new Event(event).stop(); this._toggle()}.bind(this));

	 //onClick="Carousel.options.animation.rotate.type='manual'"
	 //$("carousel_stop").addEvent("click", function(event){new Event(event).stop());
 //$("thumb0").addEvent("mouseover", function(event){new Event(event).stop();Carousel.goTo(0)});
	//$("thumb1").addEvent("mouseover", function(event){new Event(event).stop();Carousel.goTo(1)});
	//$("thumb2").addEvent("mouseover", function(event){new Event(event).stop();Carousel.goTo(2)});
	//$("thumb3").addEvent("mouseover", function(event){new Event(event).stop();Carousel.goTo(3)});
});
