function UnCryptMailto(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-(1));
	}
	return r;
}
function linkTo_UnCryptMailto(s)	{
	location.href=UnCryptMailto(s);
}

function resize() {
	jQuery('#slideshow').height(jQuery('#slideshow .current').height() + 40);
	
	cowH = jQuery('#content_outer_wrapper').height();
	fowH = jQuery('#footer_outer_wrapper').height();
	wH = jQuery(window).height();
	if((cowH+fowH) < (wH)) {
		jQuery('#content_outer_wrapper').height(wH-fowH);
	}
}

jQuery(function() {
	resize();
	jQuery(window).resize(function() {
		resize();
	});
	
	jQuery('.startseitenlinks a, #subnavi a').hover(function() {jQuery(this).addClass('hover');}, function() {jQuery(this).removeClass('hover');});
	
	jQuery('.gototop a').unbind().click(function(e) {
		e.preventDefault(); e.stopPropagation();
		jQuery(document).scrollTo(0, 400);
	});
	
});
