var btnDown = null, moverId = 'newsdiv', moverTmr = null;
window.onload = function()
{
  var mvr = document.getElementById(moverId);
  mvr.style.left = '0px';
  mvr.style.top = '0px';
  var i, panel = document.getElementById('arrowscontainer');
  var btns = panel.getElementsByTagName('div');
  var resetbutton = document.getElementById('mvr');
  for (i = 0; i < btns.length; i++) {
    btns[i].onmousedown = btnOnMousedown;
    btns[i].onmouseup = btnOnMouseup;
  }
}

function btnOnMouseup()
{
  btnDown = null;
  if (moverTmr) {
    clearTimeout(moverTmr);
  }
}

function btnOnMousedown()
{
  if (!btnDown) {
    btnDown = this;
    btnMove();
  }
}
function btnMove()
{
  var delta = 10, interval = 25;
  if (btnDown) {
    moverTmr = setTimeout(btnMove, interval);
  }
  else {
    return;
  }
  var mvr = document.getElementById(moverId);
  var y = parseInt(mvr.style.top);
  var by = parseInt(mvr.style.bottom);

  switch (btnDown.id) {
    case 'btnUnews':
	  if (y < 0) {
      	y += delta;
	  }
      break;
    case 'btnDnews':
	  if (by != 0) {
        y -= delta;
	  }
      break;
	case 'btnResetnews':
	  y = 0;
      break;
  } // end switch

  mvr.style.top = y + 'px';

}