<!--

// Copyright (c) 2008 DaVinci Technology GmbH - www.davinci-tec.de - Alle Rechte vorbehalten ! //

floatObjList = new Array();

initialPosY = 0;

function init_floatObjList() {

  pzz=init_floatObjList.arguments;

	j = 0;

	for(i=0; i<pzz.length; i++){

    	fobj = document.getElementById(pzz[i]);

    	if( fobj != null ){

    		floatObjList[j] = new Array( fobj, fobj.offsetTop);
    		j++;

		}
	}

}


function chk4scroll() {

	scrollY = document.body.scrollTop;

	for(i=0; i< floatObjList.length; i++){

		actualPosY = floatObjList[i][0].offsetTop;
		wantedPosY = floatObjList[i][1] + scrollY;

		if( wantedPosY + floatObjList[i][0].offsetHeight + 60 > document.body.scrollHeight ){
			wantedPosY = document.body.scrollHeight - floatObjList[i][0].offsetHeight - 60;
		}

		if( actualPosY != wantedPosY) {

			stepY = (wantedPosY - actualPosY ) * 0.1;

			if(stepY > 0) stepY = Math.ceil(stepY);
			else stepY = Math.floor(stepY);

			moveY = actualPosY + stepY;

			floatObjList[i][0].style.top = moveY + "px";

		}
	}
}

action = window.setInterval("chk4scroll()",1);

// -->
