/*
 * History
 */
 
var History = (function() {
	var HistoryClass = new Class({
		Implements: Events,
		initialize: function() {
			this.detect.periodical(250, this);
			this.href = null;
		},
		detect: function() {
			if (this.href && this.href != window.location.href)
				this.fireEvent('onChange');
			this.href = window.location.href;
		}
	});
	
	return new HistoryClass();
})();
