/*
 *
 * Copyright © 2010 Дизайн - студия Onlyweb
 * http://www.onlyweb.ru/
 *
 * From Russia with love!
 *
 * */


var newClass = function() {
	return function() {
		return this.init.apply(this, arguments);
	}
}

var Emails = newClass();
Emails.prototype = {
  init: function() {
    var t = this;
    t.anchors = $('a.E-mail');
  },

  changeAnchors: function() {
    var t = this;
    t.anchors.each(function() {
      var el = $(this);
      var text = el.text();
      var newText = text.replace('(a)', '@');
      el.text(newText);
      el.attr('href', 'mailto:' + newText);
    });
  }
};

$(document).ready(function() {
  var emails = new Emails;
  emails.changeAnchors();
  $('.LinkSitePost').hide();  
});

