Two active state menu techniques.... which one do you prefer?

I’ve found two good techniques for implementing menus with an active state, these are not mine. One is very simple but elegant. The other is more script. But who says more script is always better? Could I get some opinions on which you prefer and why? Do you have a better technique perhaps?