function buildUnterseitenNavigation() {
	var output = "";
	var div1 = document.getElementById("unterseitennavigation");

	if(div1)
	{
		var tmpcode = div1.innerHTML;
		var tmparray = tmpcode.split('$$$$');
		output = "<table>";
		output += "<tr>";
		

		for (i=0;i<tmparray.length;i++) 
		{
			tmp = tmparray[i].replace('$$$$', '');
			if(tmp != '')
			{
				output += "<td>" + tmp + "</td>";
				if(i%2>0)
				{
					output += "</tr><tr>";
				}
			}
		}
		output += "</tr>";
		output += "</table>";
		div1.innerHTML = output;
	}
}

function footerAusrichten() {
	var navigation = document.getElementById('nav2');
	var content = document.getElementById('content');
	var footer = document.getElementById('footer');

	if(navigation && footer && content) {
		var navheight = navigation.offsetHeight;
		var contentheight = content.offsetHeight;
		
		if((navheight + 115) > (contentheight + 115 + 96 + 36) ) {
			footer.style.top = navheight + 115 + 25 + 50;
		} else {
			footer.style.top = contentheight + 115 + 96 + 36+ 25 + 50;
		}
		footer.style.display = "block";
	}
}
