    var group = 0;
    var groups = ['#maps', '#dingbats', '#illustrations', '#logos'];
   

    function swapImagesDivs() {
          var $active = $(groups[group] + ' .active'); // Current group, current active
          var $next = $active.next();
          $next = $next.length > 0 ? $next : $(groups[group] + ' img:first');
          $active.fadeOut(function() {
                $active.removeClass('active');
               $next.fadeIn().addClass('active');
         });
         group = (group + 1) % groups.length; // Next group, cyclic
   }
  

   setInterval(swapImagesDivs, 2000);

