// <!--
// SierranMenu.js 09/12/02efp
var oNavBar = null; 
function top_nn4()
{
	return oNavBar.top
}
function top_other()
{
	return oNavBar.offsetTop
}

function settop_nn4( iTop )
{
	oNavBar.top = getTop() + top
}
function settop_other( iTop )
{
	oNavBar.style.top = (getTop() + iTop) + "px";
}

function getScroll_nn()
{
	return window.pageYOffset;
}
function getScroll_other()
{
	return document.body.scrollTop;
}

if (document.layers)
{
	oNavBar = document.navBar;
	getTop = top_nn4;
	setTop = settop_nn4;
}
else if (document.getElementById)
{
	oNavBar = document.getElementById("navbar");
	getTop = top_other;
	setTop = settop_other;
}
else if (document.all)
{
	oNavBar = document.all.navBar;
	getTop = top_other;
	setTop = settop_other;
}

var topOffset = 150
if ( typeof document.body != "undefined" && typeof document.body.scrollTop != "undefined" )
{
	getScroll = getScroll_other;
}
else 
{
	getScroll = getScroll_nn;
} 

function smoothMove() 
{
	var Dif = parseInt( (getScroll() + topOffset - getTop())*.1)
	if (Dif==0)
       Dif = getScroll()+topOffset-getTop();
	setTop( Dif )
}

if ( oNavBar != null )
{
	window.setInterval("smoothMove()",20)
}
// -->