function newWindow(filename, w,h){  
        popWin = window.open(filename,"popup","height="+h+",width="+w+",scrollbars=no, resize=no, leftmargin=0, topmargin=0", "dependent") ; popWin.focus ("popup");
}

function newWindow2(filename, w,h){  
        popWin2 = window.open(filename,"popup2","height="+h+",width="+w+",scrollbars=yes, resize=no, leftmargin=0, topmargin=0", "dependent") ; popWin.focus ("popup");
}


function closePopUp () {
		if (popWin.document) {
			popWin.close(); return false;	}
			}


function goTo(URL) {
	location.href = URL;
		}
		
function voidThis() {}


function killError()
{
  return true;
}

window.onerror = killError;




var menu;
var theTop = 220;
var old = theTop;

function init()
{
	menu = new getObj('menu');
	movemenu();
}

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 += 5;
	if (pos == old)
	{
		menu.style.top = pos;
	}
	old = pos;
	temp = setTimeout('movemenu()',500);
}


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];
  }
}