/* 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 */
	imagewindow = null;
	function foto(img,titel,w,h){
	  if (w && h) {
		dummy = "../coverzoom.cfm?image=" + img + "&w=" + w + "&h=" + h + "&titel=" + titel;
		imagewindow=window.open(dummy,"Bigimage","width="+w+",height="+h+",top=0,left=0");
	  } else {
		dummy = "../coverzoom.cfm?image=" + img + "&titel=" + titel;
		imagewindow=window.open(dummy,"Bigimage","width=320,height=200,top=0,left=0");
	  }
	}
	
function chgImg(id,img) {
	document.getElementById(id).src = img;
}

