code: function (elem) {
              var self = this;
              if (elem === undefined) return;
  
              /* reset mapElem attributes */
              if (elem.mapElem !== undefined) {
                  self.animate(elem.mapElem, elem.mapElem.originalAttrs, elem.mapElem.attrsHover.animDuration);
              }
  
              /* reset textElem attributes */
              if (elem.textElem !== undefined) {
                  self.animate(elem.textElem, elem.textElem.originalAttrs, elem.textElem.attrsHover.animDuration);
              }
  
              /* reset tooltip */
              if (elem.options && elem.options.tooltip !== undefined) {
                  self.$tooltip.css({
                      'display': 'none',
                      'top': -1000,
                      'left': -1000
                  });
              }
  
              // workaround for older version of Raphael
              if (elem.mapElem !== undefined || elem.textElem !== undefined) {
                  if (self.paper.safari) self.paper.safari();
              }
          }
docs: /*
  Set the behaviour when mouse leaves element ("mouseout" event)
  It may be an area, a plot, a link or a legend element
  @param elem the map element