function Browser() {
	var b=navigator.appName;
	if (b=="Netscape") this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie"; 
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6=(this.version.indexOf('MSIE 6')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}

thisBrowser=new Browser();


function getTop(id){
     if((document.getElementById) && (document.getElementById(id)!=null)) {
        if (thisBrowser.opera) {
	   return parseInt(document.getElementById(id).style.pixelTop);
        }
        else {
	   // window.status = 'getTop('+id+'): '+document.getElementById(id).style.top+' !';
	   return parseInt(document.getElementById(id).style.top);
        }
     }      
     else if((document.layers) && (document.layers[id]!=null)) {
     	return parseInt(document.layers[id].top);
     }
     else if((document.all) && (document.all[id]!=null)) {
     	return parseInt(document.all[id].style.top);
     }
     else {
     	window.status = 'getTop(): undef !';
     }
}    
    
function nl_moveTo(id,x,y){      
    if((document.getElementById) && (document.getElementById(id)!=null)){ 
       // window.status = 'nl_moveTo('+id+', '+x+', '+y+')';
       document.getElementById(id).style.left=x;                       
       document.getElementById(id).style.top=y;         
    }           
    else if((document.layers) && (document.layers[id]!=null)){    
       document.layers[id].left=x;
       document.layers[id].top=y;           
    }   
    else if((document.all) && (document.all[id]!=null)){       
       document.all[id].style.left=x;           
       document.all[id].style.top=y;                          
    }   
    else {
       window.status = 'nl_moveTo('+id+', '+x+' ,'+y+'): undef !';
    }
}  

var erreicht = false;
var alt = 0;
if (window.pageYOffset) alt=window.pageYOffset;
else if(document.documentElement) alt=document.documentElement.scrollTop;
else if(document.body) alt=document.body.scrollTop;

function schauen()      
{       var pageY=0;
	// NS
        if (window.pageYOffset) {
		pageY=window.pageYOffset;
	}
	// IE6 mit <DOCTYPE>
        else if(document.documentElement && document.documentElement.scrollTop) {
		pageY=document.documentElement.scrollTop;
	// <=IE5, IE6 ohne <DOCTYPE>
	} else if(document.body && document.body.scrollTop) {
		pageY=document.body.scrollTop;
	}
        if (isNaN(pageY)) {
		pageY=0;
	}
        if(pageY != alt || (!erreicht))
        {
		var ziel = pageY
                erreicht = gehe(ziel);
                alt = pageY;
        }
}

function gehe(ziel)
{
        akt = getTop("gerzmenu");
        
        if(akt == ziel)
        {
                diff = ziel - akt;
                acc = (diff/10);
                //window.status = "acc: "+acc+" Top: "+akt+" ziel: "+ziel;
                return true;
        }
        else
        {
                diff = ziel - akt;
                acc = (diff/10);
                //window.status = "acc: "+acc+" Top: "+akt+" ziel: "+ziel;
                if(Math.abs(diff) < 0.5)
                {
                        nl_moveTo("gerzmenu",0, ziel);
                }
                else
                {
                        neu = akt + acc;
                        nl_moveTo("gerzmenu",0, neu);
                }
		return false;
        }
}
