/* Mail decryption */
function decryptThis(s) {
	var n=0;
	var r="";
	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 decrypt_mail(element, email, params) {
	if (!params) var params = '';
	element.href = 'mailto:' + decryptThis(email) + params;
}

function dM(element,mail) {
	return decrypt_mail(element,mail);
}


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 nav_change(id, over) {
if (over == true) {
file = 'images/' + id + '_h.gif';
} else {
file = 'images/' + id + '.gif';
}
document.getElementById(id).src = file;
}






function menu_change(id, over) {
if (over == true) {
file = 'images/' + id + '_h.gif';
} else {
file = 'images/' + id + '.gif';
}
document.getElementById(id).src = file;
}

$(document).ready(function () {
$('#karte').hover (function () {}, hideKarte);
});

function showKarte () {
//	$('#logo').hide();
$('#karte').fadeIn('slow');
}

function hideKarte () {
//	$('#logo').show();
$('#karte').fadeOut('slow');
}


