/*window.onload = function() {
menuScroll = new ScrollObj(5,70,425,"menutrack","menuup","menudown","menudrag","menuouter","menuinner"); };
*/



// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)
// Set-up to use getMouseXY function onMouseMove
//document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE

    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS

    tempY = e.pageY
  }  
  // catch possible negative values in NS4

  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY


  return tempY
}

/*
function getMouseXY(e) {

  if (IE) {     
    tempY = event.clientY + document.body.scrollTop
  } else {  
  	alert( e.clientY );
    tempY = e.pageY
  }  


  if (tempY < 0){tempY = 0}  

  return tempY
}
*/
function makemenuscroll(e)
{

	topindent = ( getRealHeight() - 599 ) / 2;
		
	goup = topindent + 223;
	goupup = topindent + 193;
	godown = topindent + 369;
	godowndown = topindent + 402;
		
	c_y = getMouseXY( e );

	if( c_y < goupup )
	{
		menuScroll.scroll( 10 );
	}
	else if( c_y < goup )
	{
		menuScroll.scroll( 5 );
	}else if(  c_y > godowndown ){
		menuScroll.scroll( -10 );
		
		
	}else if(  c_y > godown ){
		menuScroll.scroll( -5 );
		
		
	}else{
		menuScroll.stopScroll();
		
	}
}

function makescroll(e)
{

	topindent = ( getRealHeight() - 599 ) / 2;
		
	goup = topindent + 223;
	goupup = topindent + 193;
	godown = topindent + 347;
	godowndown = topindent + 377;
		
	c_y = getMouseXY( e );
	
	if( c_y < goupup )
	{
		menuScroll.scroll( 10 );
	}
	else if( c_y < goup )
	{
		menuScroll.scroll( 5 );
	}else if(  c_y > godowndown ){
		menuScroll.scroll( -10 );
		
		
	}else if(  c_y > godown ){
		menuScroll.scroll( -5 );
		
		
	}else{
		menuScroll.stopScroll();
		
	}
}