Coding trails for hyperlinks

(fs)2011-02-18 I am working on a sort of app with links similar to those on internet. I am trying to code a sort ot trail systems so that I can see the location of the page and click on any page. It works like that for example: Page 1 > Flowers > Roses. I could click on Flowers to return to the Flowers page or on page 1. I don't know how to pseudo code the whole-thing. Any expert who has worked on the problem can help? It would be greatly appreciated.