$(document).ready(function() {
	$(".proddetails #content #vertcarousel .clip").addClass('jsheight');
	$("span.forwardbutton").hide();
	$("span.backwardbutton").hide();
    if ($("#vertcarousel").length > 0) {
        new Adoro.Carousel(document.getElementById("vertcarousel"), {
            scrollCount: 1,
            isCircular: false,
            indicators: false,
            stopButton: false,
            startButton: false,
            forwardButton: true,
            backButton: true,
            automaticDirectionBackwards: false,
            animateSpeed: 0,
            automaticDelay: 5000,
            automatic: false,
            vertical: true,
            animate: true,
       		animateEasing: "linear",
	        animateSpeed: 300,
			onMoveForwards: function(params){
				if(params.currentSlideIndex === (params.lisLength) - 2) {
					return false;
				}
				return true;
			}
        });
   	};	
});
