// JavaScript Document
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

// JavaScript Document
jQuery.noConflict();
jQuery(document).ready(function($) {
	
	$(document).ready(function() {
		var pageId = getURLParam("id");

		// alternierende Tabellendarstellung
		var pageId =  getURLParam("id");
		if (pageId != 21 && pageId != 130){
			$(".contenttable tr:nth-child(odd)").addClass("alt");
		}

	});
});	

// URL-Parameter einlesen
function getURLParam(strParamName) {
	var strReturn = "";
	var strHref = window.location.href;
	if ( strHref.indexOf("?") > -1 ) {
		var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
		var aQueryString = strQueryString.split("&");
		
		for ( var iParam = 0; iParam < aQueryString.length; iParam++ ) {
			if (aQueryString[iParam].indexOf(strParamName + "=") > -1) {
				var aParam = aQueryString[iParam].split("=");
				strReturn = aParam[1];
				break;
			}
		}
	}
	return strReturn;
}

jQuery.noConflict();
jQuery(document).ready(function($) {
$(document).ready(function(){
//JQuery ready is quicker than onload
$(".contenttable tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
$(".contenttable tr:nth-child(odd)").addClass("alt");
});
}); 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

jQuery.noConflict();
jQuery(document).ready(function($) {
//$.preLoadImages("fileadmin/templates/images/menue01Bg.png", "fileadmin/templates/images/menue02Bg.png", "fileadmin/templates/images/menue03Bg.png", "fileadmin/templates/images/menue04Bg.png");
});

(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)


jQuery.noConflict();
jQuery(document).ready(function($) {
	$(document).ready(function() {

		// Startseite
		if ($('#homeAlles').height() != null) {
			if ($.browser.msie) { alles = $('#homeAlles').height() - 189; }
			else { alles = $('#homeAlles').height() - 189; }
			$("#homeLinksUnten, #homeRechtsUnten").css("display", "block");
		}
		// Inhaltsseite
		if ($('#alles').height() != null) {
			if ($.browser.msie) { alles = $('#alles').height(); }
			else { alles = $('#alles').height() - 87; }
			$("#mainLinksUnten, #mainRechtsUnten").css("display", "block");
		}
		$("#spalteLinks, #spalteRechts").css("padding-top", alles + "px");
	});
});

