Back Button Problem

okay so I have been working on a flash site that uses the back button using robert penner’s method with javascript and frames (http://www.robertpenner.com/index2.html). All is going quite well and it all works fine for browser back and forward as well as refresh. You can see it here: http://www.rudiart.com/index2.html

So whats my problem, you might ask? Well if you must know, it is when you click on something that takes you to another page, leaving the flash movie. When you do this, if you hit the back button, the javascript from the bottom frame doesnt get sent to the top frame. I thought maybe it was a timing thing with my movie, but thats not the case because a page refresh makes it work just fine.

Has anyone had this problem before? Anyone know a solution? Anyone with knowledge of this kind of thing would be really helpful. Thanks

(To see what I am talking about, go to my page http://www.rudiart.com/index2.html , and then go to the “fotos” section (green button). Once you click on it, you will see the bar at the bottom of the window change color. Thats the frame that is doing the javascript. Once at the fotos section, click on any of the photos that load up. It will take you to another page outside of the current frames. Now hit the back button and see what it does to you. Green at the bottom, but loads the front page at the top. Now without doing anything else, hit refresh. Weird how it works now right? )