function getObject(obj_name) {
	return document.getElementById(obj_name);
}

var TIMING = 50;
var MOVEMENT = 10;

var ct;
var cn;

var tmr;

function startMovingUp(content,contanier){
	ct = getObject(content);
	cn = getObject(contanier);
	
	tmr = window.setInterval("moveContentUp()",TIMING);
}
function startMovingDown(content,contanier){
	ct = getObject(content);
	cn = getObject(contanier);
	
	tmr = window.setInterval("moveContentDown()",TIMING);
}
function getTop(){
	alert("t:" + ct.style.top + "\n" + "h:" + ct.style.height + "\nh+t:" + (parseInt(ct.style.top) + parseInt(ct.style.height)) + "px");
}
function moveContentUp(){
	if ( ( parseInt(ct.style.top)+parseInt(ct.style.height) - MOVEMENT ) >= parseInt(cn.style.height) )
		ct.style.top = (parseInt(ct.style.top) - MOVEMENT) + "px";
}
function moveContentDown(){
	if ( (parseInt(ct.style.top) + MOVEMENT) <= parseInt(cn.style.top) )
		ct.style.top = (parseInt(ct.style.top) + MOVEMENT) + "px";
}
function stopMoving(){
	window.clearInterval(tmr);
}