//Secure Mail
function JSrot13(text) {var text = text.replace(/%/, "@");var rot13text_rotated = ""; /* the function will return this string */;for (i = 1 ; i < (text.length + 1); i++) {k = text.charCodeAt(i-1);if (k >= 97 && k <= 109) {k = k + 13;} else if (k >= 110 && k <= 122) {k = k - 13;} else if (k >= 65 && k <= 77) {k = k + 13;} else if (k >= 78 && k <= 90) {k = k - 13;}rot13text_rotated = rot13text_rotated + String.fromCharCode(k);}return rot13text_rotated;}function Securemail(maillink){var maillink_output;maillink_output = JSrot13(maillink);location.href= 'mailto:' + maillink_output;}function displaymailaddress(linktext){var linktext_output;linktext_output = JSrot13(linktext);linktext_output = linktext_output.replace(/@/, "<span style='display:none'> *secure E-Mailaddress* <\/span>@");document.write(linktext_output);}

// Global

$(document).ready(function() {
	$("#zoneContent").jScrollPane({showArrows:true, scrollbarWidth: 17});
	$(".jScrollPaneContainer").css("width","660px");
	$("#ContentPadding").css("padding","0");
$("#content").pngFix();

	

	if ($("body").hasClass("IE6") != true)
	{
		if ($('#fernseher_pic img').length > 0){
		$('#fernseher_pic .Pager').remove();
			/*$('#fernseher_pic').css("background-image","none");*/
			$('#fernseher_pic').cycle({
				fx: 'fade',
				delay:-1000	
			 });
		}
	}
	
	$("#sub_navigation span:last").remove();
	$('#fernseher_pic div.Pager').remove();

	$("a[rel=fancybox]").fancybox({
		'titleShow'     : false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack'
	
	});

	if ( $(".ListNextEvent a").length == 0)
	{
		$(".ListNextEvent").hide();
	}

	if ( $(".ListPastEvent a").length == 0)
	{
		$(".ListPastEvent").hide();
	}

 });
