function myHistory() {
	this.init();
};

myHistory.prototype.init = function () {
	this.urls = new Array();
}

myHistory.prototype.save = function(id) {
	this.urls.push(id);
	ID(id);
}

myHistory.prototype.back = function(id) {
	this.urls.pop();
	id = this.urls.pop();
	
	if (id)	{
		ID(id);
		loadSubPage2(id, "/en/menu/ajaxLink/?id="+id+"&back=");
	}
	else
	{
		a = window.location.href;
		a = a.split("#");
		if (a[1])
			window.location.replace(a[0]);
		else
			history.back();
	}
}

story = new myHistory();