YAHOO.namespace("Index");

YAHOO.Index.init = function() {
    YAHOO.util.Event.onContentReady("carousel_slideshow", function (ev) {
        var carousel = new YAHOO.widget.Carousel(this, {
            numVisible: 1,
            autoPlayInterval: 10000,
            isCircular: false,
            animation: {
                speed: 1,
                effect: YAHOO.util.Easing.easeOut
            },
            navigation: {
                prev: "arrow_left",
                next: "arrow_right"
            }
        });
        
        carousel.render();
        carousel.show();
        carousel.startAutoPlay();
    });
}

YAHOO.util.Event.onDOMReady(YAHOO.Index.init);
