var menu1;
var theTop = 10;
var old = theTop;

function init()
{
	menu1 = new getObj('menu1');
	movemenu1();
}
function movemenu1()
{
	if (window.innerHeight)
	{
		pos = window.pageYOffset
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	{
		pos = document.documentElement.scrollTop
	}
	else if (document.body)
	{
		pos = document.body.scrollTop
	}
	if (pos < theTop) pos = theTop;
	else pos += 50;
	if (pos == old)
	{
		menu1.style.margin-top = pos;
	}
	old = pos;
	temp = setTimeout('movemenu1()',100);
}
function getObj(name)
{
	if (document.getElementById)
	{
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	}
	else if (document.all)
	{
		this.obj = document.all[name];
		this.style = document.all[name].style;
	}
	else if (document.layers)
	{
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}