/* Mail decryption */
function decryptThis(s) {
	var n=0;
	var r="mailto:";
	for(var i=0;i<s.length;i++) { 
		n=s.charCodeAt(i); 
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(2)); 
	}
	return r;
}

function doMailto(s) {
	location.href=decryptThis(s);
}

/* Neues Fenster für Großbildanzeige */
var imagewindow = null;
function foto(img,titel){
  dummy = "_show.cfm?image=" + img + "&titel=" + titel;
  imagewindow=window.open(dummy,"Bigimage","width=20,height=20,top=0,left=0");
}

	function getHeight(id) {
		var ret=0;
		var obj = document.getElementById(id);
		if (obj.offsetHeight) {
			return obj.offsetHeight;
		}
	}
	function resizeCont() {
		if (document.body.clientHeight) {
			h = document.body.clientHeight;
		} else {
			h = window.innerHeight;
		}
		document.getElementById('content').style.height = (h - getHeight('menu')) + 'px';
	}
	function chgImg(id,img) {
		document.getElementById(id).src = img;
	}