function ebLanguageCheck(href) {	lang = navigator.language;	if(lang == undefined) 		lang = navigator.userLanguage;	if(lang == undefined) 		lang = navigator.browserLanguage;	lang = lang.substr(0, 2);	window.open(href + "&lang=" + lang);}$.fn.validate = function(matchString) {	var str = $(this).val();	var result = new RegExp(matchString);	result = result.test(str);		if(result) {		$(this).removeClass("inputError ");	} else {		$(this).addClass("inputError");	}		return result;};var topNewsCounter = 0;var topNewsPrevious = 0;$.isUndefined = function(a) { return typeof a == 'undefined'; } $(document).ready(function() {	$("#weitereStandorteLink").addClass("downIcon").click(function() {		$("#weitereStandorte").slideToggle(function() {			if($(this).is(":visible")) {				$("#weitereStandorteLink").removeClass("downIcon").addClass("upIcon");			} else {				$("#weitereStandorteLink").removeClass("upIcon").addClass("downIcon");			}		});				return false;	});	$(".linkList a").each(function() {		if(location.href.match("\/" + $(this).attr("href") + "$"))			$(this).parent().remove();	});			$("#FondsauswahlSelect").change(function() {		parent.location.href = $(this).attr("value");	});		$("a[href^='http://'], a[href^='https://'], a[href$='.pdf'], a[href$='?OpenFileResource'], a[href$='.PDF']").click(function() {		if($(this).attr("onclick"))			return;		window.open($(this).attr("href"));		return false;	});		$("#siteContent a[href^='http://']").addClass("extIcon");	$("#siteContent a > img").parent().removeClass("extIcon");	$("#siteContent a[href$='.pdf'], #siteContent  a[href$='.PDF']").addClass("pdfIcon");		$(".slideToggleNext").each(function() {		$(this).next().hide();		$(this).addClass("expandIcon");				if(location.hash != '') {			$(location.hash).removeClass("expandIcon").addClass("collapseIcon");			$(location.hash).next().addClass("slideToggle").slideDown();		}			}).click(function() {		$(this).next().addClass("slideToggle").slideToggle('normal', function() {			if($(this).is(":visible")) {				$(this).prev().removeClass("expandIcon").addClass("collapseIcon");			} else {				$(this).prev().removeClass("collapseIcon").addClass("expandIcon");			}		});				return false;	});		$("#topNews").each(function() {		var items = $(this).children("li").length; //z\u00E4hlt eintr\u00E4ge		if(items <= 1)			return;				$(this).children("li").not("li:first").hide(); //ausblenden ausser 1tem				window.setInterval(function() {			topNewsPrevious = topNewsCounter;			topNewsCounter = (topNewsCounter < $("#topNews").children("li").length - 1) ? ++topNewsCounter : 0;			$($("#topNews").children().get(topNewsPrevious)).slideUp();			$($("#topNews").children().get(topNewsCounter)).slideDown();		}, 5000);	});			$("a.newsDetailLink").each(function() {		var header = $(this).text();		var href = $(this).attr("href");		var container = $(this).parent().next();		container.load(href, function() {						$("div.newsItem form").each(function() {				$(this).replaceWith($(this).html());			});			$("div.newsItem font").each(function() {				$(this).replaceWith($(this).html());			});			$("div.newsItem p br:last").remove();			if(location.hash != '') window.location.hash = location.hash;		});	});		$("a.loadNewsItem").click(function() {		var href = $(this).attr("href");				if(!$.isUndefined($(this).parent().next()[0])) {			$(this).parent().next().slideToggle();			return false;		}							$(this).parent().after("<div class='newsItem'></div>");		var container = $(this).parent().next();		container.hide();		container.load(href, function() {					$("div.newsItem form").each(function() {				$(this).replaceWith($(this).html());			});			$("div.newsItem font").each(function() {				$(this).replaceWith($(this).html());			});			$("div.newsItem p br:last").remove();					container.slideDown();		});		return false;	});		$(".notesView:contains('No documents found')").hide();	$("iframe.autoSize").each(function() {		var innerDoc = $(window).height() - 220;		$(this).height(innerDoc);	});	$(".folding").each(function() {		$(this).prepend("+ ");		$(this).next("ul").hide();	}).click(function() {		$(this).next("ul").slideToggle();	}); });