var speed = 5;
var thisObj;
var contentheight;
var moveupvar;
var movedownvar;
var thisObj;

function scrollDivUp(){
	if(parseInt(thisObj.style.top)<=0) {
		thisObj.style.top=parseInt(thisObj.style.top)+speed+"px";
	}
	moveupvar=setTimeout("scrollDivUp()",20)
}

function scrollDivDown(){
	if(thisObj.offsetHeight>containerheight && parseInt(thisObj.style.top)>=(containerheight*(-1)+100)) {
		thisObj.style.top=parseInt(thisObj.style.top)-speed+"px";
	}
	movedownvar=setTimeout("scrollDivDown()",20)
}

function initScrollableDiv(){
	parentObj = getObjectById('sub_container');
	containerheight = parentObj.offsetHeight;

	thisObj = getObjectById('sub_contentInset');
	thisObj.style.top = "0px";
}
