addLoadEvent(setGoTop);
window.onresize = setGoTop;
function setGoTop(){
	var t = getPSize(); 
	var d = 20; 
	var e = getE('content');
	
	if(e){
		if(e.offsetHeight){
			d+=e.offsetHeight;
			}
		else if(e.style.pixelHeight){
			d+=e.style.pixelHeight;
			}
		if(d<=t[1]){dspDiv("sprunglink","none");}else{dspDiv("sprunglink","")}
		}
	}
function getPSize(){
	var yScroll;
	var windowHeight;
	if (window.innerHeight && window.scrollMaxY) {	
		yScroll = window.innerHeight + window.scrollMaxY;
		} 
	else if (document.body.scrollHeight > document.body.offsetHeight){ // IE ausser Mac
		yScroll = document.body.scrollHeight;
		} 
	else { // Explorer Mac, Explorer 6 Strict, Mozilla, Safari
		yScroll = document.body.offsetHeight;
		}
	if (self.innerHeight) {	// alle ausser IE
		windowHeight = self.innerHeight;
		} 
	else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowHeight = document.documentElement.clientHeight;
		} 
	else if (document.body) { // alle anderen IE
		windowHeight = document.body.clientHeight;
		}	
	// kleine Seiten mit wenig Inhalt
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
		} 
	else { 
		pageHeight = yScroll;
		}
	return new Array(pageHeight,windowHeight) 
	}
