if (NS6) bssm=document.getElementById("basessm").style;
else if (IE) bssm=document.all("basessm").style;
else if (NS) bssm=document.layers["basessm"];

YOffset=50;
staticYOffset=20;
lastY=0;

function makeStatic() {
if (NS||NS6) 
{winY = window.pageYOffset; winSize = window.innerHeight}
if (IE) 
{winY = document.body.scrollTop; winSize = document.body.clientHeight}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset&&winSize >= 500) 
{smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) 
{smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) bssm.pixelTop+=smooth;
if (NS6||NS) bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 1);
}
}

if(NS) {bssm.visibility= 'show';}
