Accessing across frames

Accessing across frames

I am using modifications to code that can be found at "http://www.mathachew.com/sandbox/collapsible-menu/".  I have simplified it to use just the "slide" code and changed the names to reflect my own page.  This part works fine.  Now when I click a link in another frame I want it to expand one of the menus. 

Basically, I am developing an online book.  The contents are in one frame, and pages of the book display in another frame.  When I display the index, which will display in the pages frame, and click on a link that opens, say, chapter 3 page 20, I want the chapter 3 menu to open in the contents frame.  I have some java script that can update the contents frame by using "parent.contents" to scroll the contents menu.

I am new to jQuery and still trying to figure out exactly how the code I am using works for the contents menu, but it works.

Thanks in advance!

Bruce