I am using this plugin:
http://plugins.jquery.com/project/history
on this page:
http://www.crtaci.info/index.php?autocom=majice
I dont know why but it seems i cant figure out what to do to get this to work... Guess i need more sleep... :)
railscasts has an episode regarding this topic: http://railscasts.com/episodes/175-ajax-history-and-bookmarks