Example with history jQuery lib (http://nix.lv/history/ http://plugins.jquery.com/project/history )
go to application state 1
go to application state 2