// Rotator
function rotator() {
  
  var $active = jQuery('.active');

  if ($active.next().attr("class") == 'feature') {
    $next = $active.next();
  } else {
    $next = jQuery('#feature_1');
  }
  
  $active.css({opacity: 1.0})
    .animate({opacity: 0.0}, 500, function() {
        $active.removeClass('active');
        
        $next.css({opacity: 0.0})
          .addClass('active')
          .animate({opacity: 1.0}, 500, function() {
              $active.removeClass('active');
          });
        
    });
  
}

jQuery(document).ready(function(){
  
  // Rotator
  setInterval("rotator()", 7000 );

});


