Accordination-menu

Hi!!
I have added a javascript and ajax accordination-menu in my web page.I have used frames in my design n the menu is placed at left.
The problem is, whenever i refresh the page,
the page dosenot redirect to the page which i was visiting, rather it shows a blank page.
What can be the reason behind this??I also want to know what i should do so that whenever index page is opened, the menu will be seen intact??