fixed bug, seems that this should have been checking the parent elements class instead of its own.
Merge pull request #4 from parkerhutchinson/fix_parkerhutchinson

nav buttons bug fix