$(document).ready(function() {
  delay = 1500;
  pause = 3000;
  speed = 1000;
    
  function r() {
    list = $('ul#reviews');
    f().fadeOut(speed, function() {
        first = $(this);
        first.remove(); 
        list.append(first);
        first = f();
        first.fadeIn(speed);
      }
    );
  }
  
  function r2() {
    list = $('ul#reviews');
    first = f();
    first.hide();
    first.remove();
    list.append(first);
    setTimeout(function() { f().show(); }, speed); 
  }
  
  function f() {
    return $('ul#reviews li:nth-child(1)');
  }

  setTimeout(function() {
    if ($.support.opacity) {
      f().fadeIn(speed, function() { setInterval(r, pause); } ); 
    }
    
    else {
      f().show();
      setInterval(r2, pause)
    }
  }, delay); 
});