$('a').bind({
click: function(){
window.location.hash = $(this).attr('url');
});
});