function dom_init() 
{
	
	$("#headline").click(function () { 
		location.href = '/index.php';
	});

	
	if (!document.getElementsByTagName) return;
	
	var aLinks = document.getElementsByTagName("a");
	for (var i = 0; i < aLinks.length; i++) 
	{
		var mclass = aLinks[i].className;
		if (mclass.indexOf("mailer") > -1) 
		{
				var a = aLinks[i].getAttribute("title").replace(" %20 ",".");
				a = a.replace(" ","@");
				
				var t = document.createTextNode(a);
				aLinks[i].appendChild(t);
				
				var b = a;
				if(a.indexOf("mailto:") < 0)a="mailto:"+a;
				if(b.indexOf("mailto:") >= 0)b = b.substr(7);
				aLinks[i].setAttribute("href",a);
				//aLinks[i].setAttribute("title","Mailen Sie an: "+b);
				aLinks[i].setAttribute("title","");
		}
		
	}

//	jQuery.fn.mailto = function() {
//		return this.each(function(){
//			var email = $(this).html().replace(/\s*\(.+\)\s*/, "@");
//			$(this).before('<a href="mailto:' + email + '" class="textlink">' + email + '</a>').remove();
//		});
//	};
//
//	$('.email').mailto();

}
