$(document).ready(function() {
	$("span.email").each(function() {
		var emailAddr = $(this).html().replace(/\s/g,".").replace(/\(ät\)/,"@");
		$(this).replaceWith("<a href=\"mailto:"+emailAddr+"\">"+emailAddr+"</a>");
	});
	$("span.defaultmail").each(function() {
		var content = $(this).html();
		var emailAddr = "sven.sabrowski(ät)web.de".replace(/\s/g,".").replace(/\(ät\)/,"@");
		$(this).replaceWith("<a href=\"mailto:"+emailAddr+"\">"+content+"</a>");
	});
});


// Bug in JQuery: load overlays with apple effect
/*
$(window).load() {

}
*/

/*
$(function() {
    $("a[rel]").overlay ({
         effect: 'apple',
	 expose: '#111',
         onLoad: function(content) {
             this.getOverlay().find("a.player").flowplayer(0).load();
         },
         onClose: function(content) {
              $f().unload();
         }
     });
     $("a.player").flowplayer("swf/flowplayer-3.1.5.swf");
});

*/
