(function() {
  var moveIn, moveOut;

  $(document).ready(function() {
    return setTimeout(moveOut, 3000);
  });

  moveOut = function() {
    var $container;
    $container = $('#rotators_container');
    return $container.animate({
      left: -1 * $container.width(),
      duration: 1000,
      easing: 'easeInOutElastic'
    }, function() {
      var $next, $nexts, $text;
      $container.css('left', $container.width());
      $nexts = $('#quees').find('.rotate');
      if ($nexts.length > 0) {
        $next = $($nexts[0]);
        $text = $next.html();
        $next.detach().appendTo($('#quees'));
        $container.html($text);
        return setTimeout(moveIn, 1000);
      }
    });
  };

  moveIn = function() {
    var $container;
    $container = $('#rotators_container');
    return $container.animate({
      left: 0,
      duration: 1000,
      easing: 'easeOutBounce'
    }, function() {
      return setTimeout(moveOut, 5000);
    });
  };

}).call(this);

