first, find the menu that you want.
second look at how it builds up the menu options.
I have a tree at http://www.pcpropertymanager.com/faq
and it's designed to be all javascript but my list is in mysql.
so, I have my javascript separated out from my page and I have
<script>
<?php
// query the database, get list of options
// then echo out html which builds the javascript array of options
?>
buildMenu();
<!-- and build menu uses the array to create the menu -->
</script>
I hope this makes sense. The important thing to remember is that PHP's primary role is to spit out HTML to a browser. How the browser uses that HTML (ie decides it's really javascript) is up to the browser. Don't be afraid to echo/print out javascript!