$(function() {
	$("#carousel_outer").jCarouselLite({
		auto: 5000, // period of interval in ms
		speed: 750, // speed of change
		visible: 1,
		start: 0, //Math.floor(Math.random()*6),
                btnGo:
                    ["#carouselbuttons button.1", "#carouselbuttons button.2",
                    "#carouselbuttons button.3", "#carouselbuttons button.4"],
		afterEnd: function(a) {
                    var this_classname = a[0].className;
                    $("#carouselbuttons button").removeClass("active")
                    $("#carouselbuttons button."+this_classname).addClass("active")
                }
	});
});