function getObj(objName) {
    if (document.getElementById && document.getElementById(objName) != null)
        return document.getElementById(objName);
    else if (document.all)
        return document.all[objName];
	else
		return null;
}


rightpos = 0;
toppos = 15;
dh = 20;
dv = 16.5;
mdelay = 10;


function moveText() {
	rightpos -= dh;
	if (rightpos < -650) {
		rightpos = 0;
		toppos += dv;
		dh += 5;
	}
	if (toppos > 480) {
		stopText();
		getObj('endwort').style.bottom = 19;
	}

	rightobj.style.right = rightpos + "px";
	rightobj.style.top = toppos + "px";
	topobj.style.top = (toppos + 15) + "px";
}


function stopText() {
	clearInterval(minterval);
}


function zeigeText() {
	rightobj = getObj('overanih');
	topobj = getObj('overaniv');
	if (rightobj == null || topobj == null)
		return;
	minterval = setInterval('moveText()', mdelay);
}