var minTop = 225;
var pos = minTop;

function init() {
	setInterval("moveMenu()", 20);
}

function moveMenu() {
	if (document.documentElement.scrollTop != null) {
		var scrollDiff = document.documentElement.scrollTop - minTop;
		if (scrollDiff >= 0)
			newPos = minTop + scrollDiff;
		else
			newPos = minTop;
	
		var step = (Math.ceil(newPos - pos) / 10);
		pos += step;
		document.getElementById("subNavigation").style.top = pos + "px";
	}
}

// eigentliches Windowscript
// Übergabe URL,breite,höhe,scrollbar,größe änderbar
function popwin1(url,w,h,s,r)
{
x=screen.width/2;
x=x-w/2;
y=screen.height/2;
y=y-h/2;
popUp1=window.open(url,'win1','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=1,status=1,scrollbars='+s +',resizable='+ r + ',menubar=1,locationbar=1')
}