/**
 * @author Gregor Aisch, Dave Gööck, Christoph Mewes, Zozi
 * @publisher webvariants GbR
 * @website http://www.webvariants.de/
 * @contact info - webvariants - de
 * 
 * Dieses Script benötigt jQuery (http://www.jquery.com/).
 * 
 * Es werden sowohl die einfache sowie die erweiterte (mit Mail-Titel) mapson Syntax
 * unterstützt. 
 * 
 */

(function($) { /* on dom load... */ $(function() {
	$('span.mapson').live('mouseover', function(){
		
		var link = title = '';
		if ($('.liam', this).length > 0) {
			$('.liam span', this).remove();
			link = $('.liam', this).text();
			$('.liam', this).remove();
			title = $(this).html();
		}
		else {
			$('span', this).remove();
			title = link = $(this).text();
		}
		
		link = link.replace(/ ?(­|&#173;|&shy;|&#x00AD;) ?/g, "");
		
		$(this).replaceWith('<a href="mailto:'+link+'">'+title+'</a>');
	});
}); /* dom loaded */ })(jQuery);


