Output a Menu with just needed classes for ul and li,. Nothing more
Try switching the parameters to in_array. in_array takes the needle first and the haystack (array) second.

Edit: unless that was a typo...

Edit

PHP Docs for in_array().


bool in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] )

  
  Searches haystack for needle using loose comparison unless strict is
  set.