// 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", "");
   }
   }
  }
 }
}
//window.onload=startList;

function changeLanguage() {
	if (window.location.href.indexOf("-en.html") > 0)
		location.href=(window.location.href.replace("-en.html", ".html"));
	else
		location.href=(window.location.href.replace(".html", "-en.html"));
}

function loadImageBild(imageNumber) {
	if (imageNumber > 1) {
		randomNumber = 1+(imageNumber-1)*(Math.random());
		randomNumber = Math.round(randomNumber);
	} else {
		randomNumber = 1;
	}	
			
	bgInhaltPicture = "imagebild-"+randomNumber+".jpg";
	  
	document.getElementById("imagebild").src = bgInhaltPicture;
}

function loadStartBild() {
	randomNumber = 1+1*(Math.random());
	randomNumber = Math.round(randomNumber);
			
	bgInhaltPicture = "images/imagebild-"+randomNumber+".jpg";
	  
	document.getElementById("imagebild").src = bgInhaltPicture;
}