var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempY = 0
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
  }  
  if (tempY < 0){tempY = 0}  
  document.Show.MouseY.value = tempY;
  document.asansior.SetVariable("myVar", tempY); 
  return true
} 

                  var status = "out";                  
                  function mouse_over() {
                        status = "over"
                  }
                  function mouse_out() {
                        status = "out"
                  }
                  function scroll_div(direction, speed) {
                        var obj = document.getElementById('scroll');
                        switch(direction) {
                              case "up":
                                    obj.scrollTop += speed;
                                    if(status == "over") {
                                          setTimeout("scroll_div('up',"+speed+");", 1);
                                    }
                                    document.getElementById("status").innerHTML = obj.scrollTop + "/" + obj.scrollHeight
                              break;
                              
                              case "down":
                                    obj.scrollTop -= speed;
                                    if(status == "over") {
                                          setTimeout("scroll_div('down',"+speed+");", 1);
                                          document.getElementById("status").innerHTML = obj.scrollTop + "/" + obj.scrollHeight
                                    }
                              break;
                        }
                  }
