function manageStatus() {
	var that = this;
	this.currentStatus = 1;
	this.storedStep = new Object();
	this.frameSize = arguments[0];
}

manageStatus.prototype.getFrameSize = function() {
	return (this.frameSize);
}

manageStatus.prototype.getCurrentStatus = function() {
	for (key in this.storedStep) {
		if(this.storedStep[key]==this.currentStatus) return (key);
	}
	return null;
}

manageStatus.prototype.calculateDistance = function() {
	var nextStep;
	if (typeof arguments[0]=='string') {
		nextStep = this.storedStep[arguments[0]];
	} else {
		return 0;
	}
	return (nextStep-this.currentStatus);
}

manageStatus.prototype.storeStatus = function() {
	this.storedStep[arguments[0]] = arguments[1];
	return;
}

manageStatus.prototype.move = function() {
	this.currentStatus = this.storedStep[arguments[0]];
}
