﻿

$(document).ready(function() {	


		
		$('a.email').each(function(){
			e = this.rel.replace('/','@');
			this.href = 'mailto:' + e;
			$(this).text(e);
		});



var path = location.pathname.substring(location.pathname.lastIndexOf("/") + 1) + location.search;
if (path != '') { $('li a[href="' + path + '"]').parent().addClass('aktiv'); } else {  $('li:first-child a').parent().addClass('aktiv'); }

	

});
