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) {

	if ( navigator.appVersion.indexOf('MSIE 5.0') > 0 ) {
		history.back();
	} else {
		this.urls.pop();
		id = this.urls.pop();
		
		if (id)	{
			ID(id);
			loadSubPage2(id, "/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();