var moveInterval = 0;

function init_moving_points() {
	// Moving Point initialisieren
	shouldMove = false;
	interval = 500;
	
	currentPoint = 0;
	MP=new Array();
		MP[0]=["&nbsp;&nbsp;&nbsp;"];
		MP[1]=[".&nbsp;&nbsp;"];
		MP[2]=["..&nbsp;"];
		MP[3]=["..."];
}

function move_point(id) {
	GetItem(id).innerHTML = MP[currentPoint];
	if (currentPoint == MP.length - 1) {
		currentPoint = 0;
	} else {
		currentPoint++;
	}
}

function start_moving(id) {
	GetItem(id).innerHTML = MP[0];
	if (moveInterval != null) {
		clearInterval(moveInterval);
	}
	if (id != null) {
		moveInterval = setInterval("move_point('"+id+"')", interval);
	}
}

function stop_moving(id) {
	clearInterval(moveInterval);
	GetItem(id).innerHTML = MP[0];
}
