//This is a comment
$(document).ready(function() {
  var images = [];
  
  rotate = function(){
    var active_image = $active.attr("id");
    var triggerID = active_image.substr(active_image.length - 1, active_image.length) -1;
    
    $('.image_reel img').removeClass('selected');
    $active.addClass('selected');
    
    $('.banner_pic').fadeOut("slow");
    $('#banner_' + (triggerID + 1)).fadeIn("slow");
  };
  
  rotateSwitch = function(){
    play = setInterval(function(){
      $active = $('.image_reel img.selected').next();
      if ($active.length === 0){
        $active = $('.image_reel img:first');
      }
      rotate();
    }, 7000);
  };
  
  rotateSwitch();
  

})

