position_start = 0;
lastScrollY = 0;

NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1 : 0;
OP = ((document.getElementById) && (navigator.appName == "Opera")) ? 1 : 0;
NSSECHS = ((document.getElementById) && (navigator.appName == "Netscape")) ? 1 : 0;

if (IE)
{
position = document.all.stickymenu.style.pixelTop;
}

if (OP)
{
position = document.getElementById("stickymenu").style.pixelTop;
}

if (NS)
{
position_start = 0;
position = document.stickymenu.top;
}

function abstand()
{
        if (IE) { diffY = document.body.scrollTop; position_start = document.body.offsetHeight - 675; }
        if (NS) { diffY = self.pageYOffset; }
        if (OP) { diffY =  document.getElementsByTagName("body") [0] .scrollTop; }


        if (diffY != lastScrollY) {
                  percent = .1 * (diffY - lastScrollY);
                  if (percent > 0) percent = Math.ceil(percent);
                  else percent = Math.floor(percent);
								position += percent;
								if (IE)
                                {
                                document.all.stickymenu.style.pixelTop = position + position_start;
                                }
                                if (OP)
                                {
                                document.getElementById("stickymenu").style.PixelTop = position + position_start;
                                }
                                if (NS)
                                {
                                document.stickymenu.top = position + position_start;
                                }

                                lastScrollY = lastScrollY + percent;
    	}
		
		if (lastScrollY == 0){document.all.stickymenu.style.pixelTop = 0;}
		
}

if (NS || IE || OP ) action = window.setInterval("abstand()",1);

