var hashListener = {
	hash:	document.location.hash,
	check:	function () {
		var h = document.location.hash;
		if (h != this.hash) {
			this.hash = h;
			this.onHashChanged();
		}
	},
	
	init:	function () {
		var self = this;
		window.setInterval(function () { self.check() }, 50);
	},
	
	onHashChanged:	function () {}
};
hashListener.init();
