/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

var carousel;

function nextItemCarousel()
{
  carousel.scrollForward();
  setTimeout("nextItemCarousel()",1000);
}

function creationCarousel()
{
	carousel = new YAHOO.widget.Carousel("container", {
			    animation: { speed: 2 },
			    isCircular: true, numVisible: 4,
			    autoPlayInterval: 1000, scrollIncrement: 1, revealAmount: 0,
			  navigation: {prev: "prev-arrow",  next: "next-arrow"}
		 });
}

YAHOO.util.Event.onDOMReady(
	function () 
	{
		creationCarousel();


		carousel.render(); // get ready for rendering the widget
		carousel.show();   // display the widget
		//carousel.startAutoPlay();
		nextItemCarousel();
	}
);




