var scrlSpeed=1
// decreasing speed for mozilla
scrlSpeed=(document.all)? scrlSpeed : Math.max(1, scrlSpeed-1)

function initScroll(container,object){
	if (document.getElementById(container) != null){
		var contObj=document.getElementById(container);
		var obj=document.getElementById(object);
		contObj.style.visibility = "visible";
		contObj.scrlSpeed = scrlSpeed; 
		heightContainer = contObj.offsetHeight;
		obj.style.top=parseInt(heightContainer)+"px";
		heightObject=obj.offsetHeight;
		interval=setInterval("objScroll('"+ container +"','"+ object +"',"+ heightContainer +")",60);
		/*contObj.onmouseover = function(){
			contObj.scrlSpeed=0;
		}
		contObj.onmouseout = function(){
			contObj.scrlSpeed=scrlSpeed;
		}	*/
	}
}
function objScroll(container,object,heightContainer){
	var contObj=document.getElementById(container);
	var obj=document.getElementById(object);
	widthObject=obj.offsetHeight;
	if (parseInt(obj.style.top)>(heightObject*(-1))){
		obj.style.top=parseInt(obj.style.top)-contObj.scrlSpeed+"px";
	} else {
		obj.style.top=parseInt(heightContainer)+"px";
	}
} 

