//	Avoid framing
	if(top!=self) top.location=self.location;

//	Decode email
	function DecodeMailto(x) {
		var n=0;
		var r="";
		for(var i=0; i<x.length; i++) { 
			n = x.charCodeAt(i); 
			if(n>=8364) n=128;
			r += String.fromCharCode(n-2); 
		}
		return r;
	}
	function OpenMailClient(x)	{
		var x="ocknvq<"+x;
		location.href=DecodeMailto(x);
	}

//	Manipulate links
	function Links() {
		if (!document.getElementsByTagName) return;
		var anchors = document.getElementsByTagName("a");
		for(var i=0; i<anchors.length; i++) {
			var anchor = anchors[i];
			/*anchor.tabindex = i;*/
			if (anchor.getAttribute("href")) {
				anchor.onfocus = function() {
					this.blur();
				}
				if (anchor.getAttribute("rel") == "ext") {
					anchor.target = "_blank";
					if (document.getElementsByTagName("html")[0].lang == "en") {
						if (!anchor.title) anchor.title = "open in new window"
						else anchor.title += " (new window)";					
					}else {
						if (!anchor.title) anchor.title = "in neuem Fenster öffnen"
						else anchor.title += " (neues Fenster)";
					}
				}
			}
		}
		var forms = document.getElementsByTagName("form");
		for(var i=0; i<forms.length; i++) {
			var form = forms[i];
			if (form.getAttribute("rel") == "ext") {
				form.target = "_blank";
			}
		}
	}
	window.onload = function() {
		Links();
	}