/* Copyright (c) 2009 Onlyweb Studio | http://www.onlyweb.ru/ */
/*

Author: Mike Zimin (mihazimin@mail.ru)

From Russia with love!

*/

var Emails = newClass();
Emails.prototype = {
  init: function() {
    var t = this;
    t.anchors = $('.E-mail');
  },

  changeAnchors: function() {
    var t = this;
    t.anchors.each(function() {
      var el = $(this);
      var text = el.html();
      var newText = text.replace('(a)', '@');
      el.html(newText);
      el.attr('href', 'mailto:' + newText);
    });
  }
}

$(function() {
  var emails = new Emails;
  emails.changeAnchors();
});
