anchor.diff:        markerList.push(marker);
         google.maps.event.addListener(marker, 'click', function(){
           $('.flexslider').flexslider(marker.getZIndex());
  -        markerList.forEach(function(marker){
  -          marker.setIcon(iconInactive);
  -        });
  -        marker.setIcon(iconActive);
  +        markerActive.setPosition(marker.getPosition());
  +        markerActive.setTitle(marker.getTitle());
  +        markerActive.setVisible(true);
         });
       }, <%= @counter %> * 180);
         <% end %>
  
positive.code: </script>
  <script type="text/javascript">
    var markerList;
    var iconActive;
    var iconInactive;
    function initialize() {
  
negative.code: 
    function setActive(current) {
      markerList.forEach(function(marker){
        if (marker.getZIndex() == current) {
          markerActive.setPosition(marker.getPosition());
          markerActive.setTitle(marker.getTitle());
          markerActive.setVisible(true);
        }
      });
    }
  
  