/////////// section0
window.onload = function () {
	menu = new getObj('menu');
	movemenu();
	//{$bod}
}
window.onscroll = function () {
	menu.style.top = 0;
}
window.onresize = function () {
	menu.style.top = 0;
}
/////////// section0 end
/////////// section1
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];
  }
}
var menu;
var theTop = 0;
var old = theTop;
function movemenu()
{
	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 += 0;}
	if (pos == old)
	{
		menu.style.top = pos;
	}
	if (pos < old)
	{
		menu.style.top = theTop;
	}	
	old = pos;
	temp = setTimeout('movemenu()',2000);
}
/////////// section1 end