function moveElement(elementID,final_y) {
  	if (!document.getElementById) return false;
  	if (!document.getElementById(elementID)) return false;
  	var elem = document.getElementById(elementID);
  	var ypos = parseInt(elem.style.top);


  	if (ypos == final_y){
return true;
}	


 	if (ypos < final_y) 	{	ypos = ypos+10; } // the number here sets the amount of pixels added per loop cycle.
  	

if (ypos < -10){


elem.style.top = ypos + "px";
	var repeat = "moveElement('"+elementID+"',"+final_y+")";
  	movement = setTimeout(repeat,1); // the number after 'repeat' sets the speed of the loop in milliseconds.


}else{


moveElement2(elementID,final_y);


}



	







}



function moveElement2(elementID,final_y) {
  	if (!document.getElementById) return false;
  	if (!document.getElementById(elementID)) return false;
  	var elem = document.getElementById(elementID);
  	var ypos = parseInt(elem.style.top);


  	if (ypos == final_y){
return true;
}	


 	if (ypos < final_y) 	{	ypos = ypos+1; } // the number here sets the amount of pixels added per loop cycle.
  	

elem.style.top = ypos + "px";
	var repeat = "moveElement2('"+elementID+"',"+final_y+")";
  	movement = setTimeout(repeat,1); // the number after 'repeat' sets the speed of the loop in milliseconds.






}