anchor.diff:    $('.flexslider').flexslider({
       animation: "slide",
       animationLoop: true,
  -    controlNav: false
  +    controlNav: false,
  +    after : function(slider){
  +      setActive(slider.currentSlide);
  +    },
     });
   });
   </script>
  
positive.code:     };
      var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
      
      var iconActive = new google.maps.MarkerImage('assets/pin_a.png',
        new google.maps.Size(50,79),
        new google.maps.Point(0,0),
        new google.maps.Point(14,46)
      );
      var iconInactive = new google.maps.MarkerImage('assets/pin_ia.png',
        new google.maps.Size(50,79),
        new google.maps.Point(0,0),
        new google.maps.Point(14,46)
  
negative.code:     }, <%= @counter %> * 180);
        <% end %>
      <% end %>
    }
  
    function setActive(current) {
      markerList.forEach(function(marker){
        marker.setIcon(iconInactive);
        if (marker.getZIndex() == current) marker.setIcon(iconActive);
      });
    }
  
    google.maps.event.addDomListener(window, 'load', initialize);
  