function update_text(curr, next, opts) {

    var index = opts.currSlide,
        text = $("#animation-text li").eq(index).html();

    $("#animation-intro").fadeOut(function() {

        $(this).html(text).fadeIn();

    });

}

$(document).ready(function() {

    $("#animation-text").hide();

    $("#animation-cycle").cycle({
		fx: "scrollLeft",
        speed: 2000,
        pager: "#animation-nav",
        pause: true,
        pauseOnPagerHover: true,
        after: update_text
	});

});
