
jQuery(function() {
	jQuery("a[href^=#]").each(function() {
		if (document.location.hash.length)
			this.href = document.location.href.slice(0, -document.location.hash.length) + $(this).attr("href");
		else
			this.href = document.location.href + $(this).attr("href");
	});
});
