Persistent Navigation example - please streamline this

hi all, I’m always hitting this site up for examples of how coding should be done and for once have something I feel worthy of sharing.

Been working on this for a few days now and have it working, however, not as well as I think it could work. The need is for a semi-dynamic navigation set that determines the current page by a PHP variable from the page it’s embedded on.

The problem is that while it works, I feel it’s a pretty convoluted work-around using an onClipEvent to keep the “active” state active during roll-over / roll outs. There has to be a simpler way to do what I’m trying to do.

All in all, it’s an example hopefully someone can learn from, but more hopefully someone can help to streamline it into a simpler use.

cheers - b