var VCMHistory = {
	// [{params:...,content:...},...]
	_histories: null,
	
	reset: function() {
		this._histories = [];
		this.forward();
	},
	
	setParams: function(params) {
		this._histories[this._histories.length - 1].params = params;
	},
	
	getParams: function() {
		return this._histories[this._histories.length - 1].params;
	},
	
	setContent: function(content) {
		this._histories[this._histories.length - 1].content = content;
	},
	
	getContent: function() {
		return this._histories[this._histories.length - 1].content;
	},

	forward: function() {
		this._histories.push({params: {}, content: null});
	},
	
	back: function() {
		if (this._histories.length > 1) {
			this._histories.pop();
			return true;
		}
		return false;
	}

};


