function adjustFooter() {
	if (typeof(window.innerHeight) == 'number') {
		//Alt andet end Internet Explorer
		var height = window.innerHeight;
		var width = window.innerWidth;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		//IE 6+ standard
		var height = document.documentElement.clientHeight;
		var width = document.documentElement.clientWidth;
	} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
		//IE 4
		var height = document.body.clientHeight;
		var width = document.body.clientWidth;
	}
	
	if (self.pageYOffset) { 
		// all except Explorer
		var top = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {
		// Explorer 6 Strict
		var top = document.documentElement.scrollTop;
	} else if (document.body) {
		// all other Explorers
		var top = document.body.scrollTop;
	}
	
	document.getElementById("footer").style.bottom = (top*(-1))+'px';
}

window.onscroll = adjustFooter
