code: function(feature) {
          var fid = feature ? feature.fid || feature.id : null;
          var hfid = this.hoverFeature ?
              this.hoverFeature.fid || this.hoverFeature.id : null;
              
          if(hfid && hfid != fid) {
              this.events.triggerEvent("outfeature",
                  {feature: this.hoverFeature});
              this.hoverFeature = null;
          }
          if(fid && fid != hfid) {
              this.events.triggerEvent("hoverfeature", {feature: feature});
              this.hoverFeature = feature;
          }
      }
docs: Method: hoverSelect
  Sets/unsets the <hoverFeature>
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>} the feature to hover-select.
  If none is provided, the current <hoverFeature> will be nulled and
  the outfeature event will be triggered.