<!--
// (c) 2000,2008 bernd.gassner@web.de
//
// www.dataparx.com
//
// You may not use, distribute or reproduce this code
// without written permission of the author.

function ctopic(layerName) {
	return 
	"\n<div id=" + layerName + " style='position:relative;visibility:hidden;'>"
}

function ctopicFinal() {
	return;
}

function ctopicMove(layerIndex, step) {
	if (step == 0) {
		visible(ctopicLayers[layerIndex]);
	}
	move(ctopicLayers[layerIndex], 
		getWidth()/2 - ctopicLeft - ctopicSteps[step] + layerIndex*ctopicInt,
		ctopicVSpace);
	if (++step >= ctopicSteps.length) {
		++layerIndex;
		step = 0;
	}
	if (layerIndex >= ctopicLayers.length) {
		ctopicFinal(); // to de overwritten/defined in calling script
		return;
	}
	window.setTimeout("ctopicMove(" + layerIndex + "," + step + ");", ctopicTimeout);
}

//-->

