    $('carouselMain').store('carousel', new SimpleCarousel('carouselMain', $$('#carouselMain .slide'), $$('#carouselMain .featureButton'), {
        slideInterval: 4000,
        rotateAction: 'mouseenter',
        onShowSlide: function(index) {
            this.buttons.each(function(aButton, i) {
                if (i == index) {
                    aButton.morph({'top':-8});
                    aButton.getElement('img').morph({'margin-bottom': 20});
                } else {
                    aButton.morph({'top':0});
                    aButton.getElement('img').morph({'margin-bottom': 1});
                }
            })
        }
    }));

    window.addEvent('blur', function() {
        $('carouselMain').retrieve('carousel').stop();
    });

    var goToNext = function() {
        var carousel = $('carouselMain').retrieve('carousel');
        $clear(carousel.slideshowInt);
        carousel.rotate('next');
    };

    var goToPrev = function() {
        var carousel = $('carouselMain').retrieve('carousel');
        $clear(carousel.slideshowInt);
        carousel.rotate('prev');
    };

    var showVideo = function(videoDiv){
        var carousel = $('carouselMain').retrieve('carousel');
        $clear(carousel.slideshowInt);
        carousel.showVideo(videoDiv);
    };

    var hideVideo = function(videoDiv){
        var carousel = $('carouselMain').retrieve('carousel');
        $clear(carousel.slideshowInt);
		carousel.hideVideo(videoDiv);
    };
