function upd_height() {
	document.getElementById('m_cell').style.height = getClientHeight() - 135;
	showScroll();
	//alert(document.all.m_cell.style.height);
};

function getClientHeight() {
	var h=0;
	// not IE
	if (self.innerHeight) h = self.innerHeight;
	// IE6 - Strict Mode
	else if (document.documentElement && document.documentElement.clientHeight) h = document.documentElement.clientHeight; 
	// other versions of IE
	else if (document.body) h = document.body.clientHeight;
	return h;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){
  	if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
	for(i=0; i<a.length; i++)
    	if (a[i].indexOf("#")!=0)	{
			d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
		}
	}
}

onscroll = showScroll

function Init() {
	showScroll();
}



function getBodyScrollTop()
{
  return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}

function showScroll(){
  var noMenuOffs;
  var MenuOffs;
  var MaxOffs;
  var ScrollTop = getBodyScrollTop();

  noMenuOffs = ScrollTop + getClientHeight() - 100;
  MenuOffs = CurrentMenuHeight + 125;
  if(noMenuOffs > MenuOffs) {
    MaxOffs = noMenuOffs;  
  }
  else {
    MaxOffs = MenuOffs;
  } 

  document.getElementById('orphus_table').style.top = MaxOffs;
  //document.all.orphus_help.innerHTML = (CurrentMenuHeight + 400) + " - " + ScrollTop + " = " + MenuOffs + " ? " + MaxOffs ;
}
