	// JavaScript Document
	DOMBrowser = document.getElementById;
	IE = navigator.userAgent.indexOf("MSIE") > -1 &&  navigator.userAgent.indexOf("Opera") ==-1;
	oldIE = IE && parseInt(navigator.userAgent.substr(navigator.userAgent.indexOf("MSIE")+5,1))<7;
	

if(DOMBrowser && !oldIE){
	document.write('<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>');
window.onload=function() {
	
$(function() {
	screenReq = screen.width>=900 && screen.height >760;
	if(DOMBrowser && !oldIE && screenReq){
		$("#banner, #menue_spalte").css("position","fixed");
	}
	
	var aS = $("body").attr("id");
	var sels = [];
	for(var i=0; i<=5; i++){
		if(aS.substr(2,1)!=i) sels.push("#tm0" + i +" ul");
	}
	sels = sels.join(", ");
	arrOffen = new Array();
	
	// $("#tm02 ul, #tm03 ul, #tm04 ul, #tm05 ul").addClass("zu");
	$(sels).addClass("zu");
	
	if(document.body.id.indexOf("n")==-1){
	$("#tm02 > a, #tm03 > a, #tm04 > a, #tm05 > a").click(function(){ 		
		var auf = $(this).next("ul");
		if($(auf).hasClass("zu")){
			while(arrOffen.length>0){
				$(arrOffen[0]).addClass("zu");
				arrOffen.shift();
			}
			arrOffen.push(auf);
			auf.removeClass("zu");
		} else {
			auf.addClass("zu");
		}
		return false;
	});
	}
	
	$("#menue_spalte a[href='#']").click(function() {
			alert("Diese Seite steht noch nicht zur Verfuegung.");
			return false; 
	});
	
	$("a.pdf, a.word, a.extern").click(function() {
			window.open(this.href, "Download");
			return false; 
	});
	
	// Google Tracking Installieren
	$.getScript('/js/trackcode.js');
	// Ende Google Tracking Installieren
}
);
}

};
