title: How to tell if a Google Map Marker is currently selected?
body: <p>I have a simple enough map on Google Maps V3.</p>
  
  <p>I change the icon image on mouse over listener event, I change it back on mouse out simple enough.</p>
  
  <p>I change the icon again when I click the marker, but, I want to keep that icon while the marker is selected. When I mouse out, the marker icon changes again because I told it to do so in the mouse out listener event.</p>
  
  <p>I need to exclude the selected marker from the mouseout listener event but I can't figure out how to find the marker I have currently selected. Any ideas?</p>
  
  <p>Here is my code </p>
  
  <pre><code>        google.maps.event.addListener(marker, 'mouseover', function () {
              this.setIcon("images/star-3-white.png");
  
          });
          google.maps.event.addListener(marker, 'mouseout', function () {
                  //  this overwrites the image again, 
                  //  need to exclude the current one here
                  this.setIcon("images/star-3.png");
          });
  
          google.maps.event.addListener(marker, 'click', function () {
              this.setIcon("images/star-3-white.png");
              infowindow.setContent(this.html);
              infowindow.open(map, this);
          });
  </code></pre>