// JavaScript Document

var speed=2;
var moveevent = null;

document.getElementById('whatsNewContents').style.top = "0px";

function movedown(s_cnt)
{
stopmove();
var moveobj = document.getElementById ? document.getElementById(s_cnt) : eval("document.all." + s_cnt);
var iheight = moveobj.offsetHeight;
if (parseInt(moveobj.style.top) >= (iheight*(-1) + 100))
  {
  moveobj.style.top = parseInt(moveobj.style.top) - speed + "px";
  moveevent = setTimeout("movedown('" + s_cnt + "')",20)
  }
}

function moveup(s_cnt){
stopmove();
var moveobj = document.getElementById ? document.getElementById(s_cnt) : eval("document.all." + s_cnt);
var iheight = moveobj.offsetHeight;
if (parseInt(moveobj.style.top) <= 0)
  {
  moveobj.style.top = parseInt(moveobj.style.top) + speed + "px";
  moveevent = setTimeout("moveup('" + s_cnt + "')",20);
  }
}

function stopmove()
{
if (moveevent)
  {
  clearTimeout(moveevent);
  moveevent = null;
  }
}
