/**
 *
 * @author Martin Modlich [http://www.marseo.de]
 * @version 1.0
 */
(function($) {
	$.fn.mEmail = function(settings) {
		var settings = $.extend({
			pre:		"name",		// Hier wird der erste Zeil vor dem @ Zeichen gespeichert und das Atrribut auch zum Schluß gelöscht.
			post:		"rel",		// Hier wird der Teil nach dem @ Zeichen gespeichert. (Domain)
			at:			"@",		// Das @ Zeichen.
			speichern:	"title"		// E-Mail wird erstellt, hier zwischengespeichert und auch von hier benutzt.
		}, settings);
		return $(this).each(
			function(intIndex){
				$(this).attr(
					settings.speichern,
					$(this).attr(settings.pre) + '@' + $(this).attr(settings.post)
				).html(
					$(this).attr(settings.speichern)
				).attr(
					'href',
					'm' + 'a' + 'i' + 'l' + 't' + 'o' + ':' + $(this).attr(settings.speichern)
				//).removeAttr(settings.pre); // FF & Ajax History Bug
				);
			}
		);
	}
})(jQuery);