Two-Tiered Conditional Navigation

Hello,

I am trying to make a two-tiered conditional navigation like in

http://www.latimes.com/
http://www.nationalgeographic.com/

Has anyone tried this before? Is there a plugin for this? Or a php, css script.

Thanks