/*
JS Email - 08/12/10
VERSION 1
by Craig Eve <evelution.net>

JS Email is distributed under the MIT License
Read more about the MIT License --> http://www.opensource.org/licenses/mit-license.php

This script is currently a beta test version, download and use it at your own risk.
The jQuery Compare developer shall have no responsibility for data loss or damage of any kind by using this script.

Current state:
- Done. Has no options or additional functions

Proposed future development:
No future development planned

*/

(function($) {
	$.fn.js_email = function(options) {
		var options = $.extend({}, $.fn.js_email.defaults, options);
		this.each(function(i){
			$this = $(this);
			var opts = options;
			text = $this.attr('rel').split('').reverse().join('');
			$this.html('<a>'+text+'</a>');
			$this.children('a').attr('href','mailto:'+text);
		});
	}
	log = typeof console == "object" ? console.log:function(){}; // console.log alias
	$.fn.js_email.defaults = {
		
	};
})(jQuery);
$(document).ready(function() {
	$('.js_email').js_email();
});
