animation.php: determine which animation to display