Sorry for posting here but I thought this is the most apporiate forum.
Ok what would the script be to get what directory you are in.
Like for example:
/forums would activate forums menu or /gallery would activate the gallery menu.
As you can see in the second menu on my site
here if you click on the arrows you can expand or collapse the menu. I want it so what ever directory your in is automatically open.