/* 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, params) {
	return decrypt_mail(element,mail, params);
}


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;
}



function showKarte () {
//	$('#logo').hide();
	$('#karte').fadeIn('slow').css("z-index","99");
}

function hideKarte () {
//	$('#logo').show();
	$('#karte').fadeOut('slow');
}


$(document).ready(function(){	
	swfobject.embedSWF("images/sound.swf","sound","5","5","8.0.0");
	swfobject.embedSWF("/logo_karte.swf","logo","450","154", "9.0.0", "", {}, {wmode:"transparent"}, {});
	$('#karte').hover (function () {}, hideKarte);
	window.setTimeout(function () {
		$('.scrollpane').jScrollPane();
	},500);
});


