var idx=0;

function scrollupx()
	{
	if(idx>0) {
		var container = document.getElementById('innerdet0'+idx);
		var pos = container.offsetTop;
		
		if(pos<0) {
			var w=pos+=4;
			container.style.top=w+'px';
		} else {
			clearInterval(scrollact);
			}
	}
}
	 
function scrolldownx()
	{
	if(idx>0) {
		var container=document.getElementById('innerdet0'+idx);
		var hoehe=container.offsetHeight;	
		var pos=container.offsetTop;
		
		if(hoehe>500) {
			var scrollY=500-hoehe;
			if(pos>scrollY) {
				var w=pos-=4;
				container.style.top=w+'px';
			} else {
				clearInterval(scrollact);
				}
		}
	}
}

function ikox(richt)
	{
         if(richt=='up')
         	{
                 scrollact=setInterval("scrollupx()",60);
         	}

         if(richt=='do')
         	{
		scrollact=setInterval("scrolldownx()",60);
                 }
         }


function ikostx()
	{
         window.clearInterval(scrollact);
         }

