YOffset=51;
staticYOffset=51;
waitTime=100;
menuIsStatic="no";
lastY = 0;
setTimeout('makeStatic()', 1);
		
function makeStatic() {
	if (NS6) {winY = window.pageYOffset;}
	if (IE) {winY = document.body.scrollTop;var NM=document.all('ssm').style}
	if (NS) {winY = window.pageYOffset;var NM=document.ssm}
	if (NS6||IE||NS) {
	if (winY!=lastY&&winY>YOffset-staticYOffset) {
	smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
	else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
	smooth = .2 * (winY - lastY);}
	else {smooth=0}
	if(smooth > 0) smooth = Math.ceil(smooth);
	else smooth = Math.floor(smooth);
	if (NS6) ssm.top=parseInt(ssm.top)+smooth+"px"
	if (IE) NM.pixelTop+=smooth;
	if (NS) NM.top+=smooth;
	lastY = lastY+smooth;
	setTimeout('makeStatic()', 1)}}		
