var winY = '';
var bssm = '';
var smooth = 0;
	
if (NS6) {
	bssm = document.getElementById('roll').style;}
else if (IE) {
	bssm = document.all('roll').style;}
else if (NS) {
	bssm = document.layers['roll'];}

var YOffset = 220;
var staticYOffset = 30;
var lastY = 00;

function makeStatic() {
	if (NS||NS6) {winY = window.pageYOffset;}
	if (IE) {winY = document.documentElement.scrollTop;}
	diff_offset_neg = (YOffset-staticYOffset);
	diff_offset_pos = (diff_offset_neg+lastY);
	if (NS6||IE||NS) {
		if ((winY != lastY) && (winY > diff_offset_neg)) {
			smooth = (.2 * (winY - lastY - YOffset + staticYOffset));
		}
		else if (diff_offset_pos > diff_offset_neg) {
			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)+"px");}
		lastY = lastY+smooth;
		setTimeout('makeStatic()', 10);
	}
	
}

makeStatic();

