function footerpos() 
{
var footer = document.getElementById('siteInfo');
var seitenhoehe = document.getElementById('seite').offsetHeight;
var fensterhoehe = 0;



                    
 obj = document.getElementById('dateinfo');                
 var neu_link = document.createElement("a");
 var neu_linktext = document.createTextNode("Letzte Aktualisierung der THG-Seite: 03.02.2012");
 neu_link.appendChild(neu_linktext);
 neu_link.href = "http://www.thg-pforzheim.de/neues.html";                    
 obj.replaceChild(neu_link,obj.firstChild);                
                




	
 
if (typeof(window.innerHeight) == 'number') {
				fensterhoehe = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					fensterhoehe = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						fensterhoehe = document.body.clientHeight;
					}
				}
			}

if (fensterhoehe > (seitenhoehe + footer.offsetHeight))
	{	
	footer.style.bottom = ( - (fensterhoehe - seitenhoehe - footer.offsetHeight)) + 'px';
	}
else
	{
       	footer.style.bottom = 0;
	}
}

window.onload = function() {
			footerpos();
		}
		window.onresize = function() {
			footerpos();
		}
