add a switcher of picture and nav display

1.fix some bugs of genarate the second level nav
2.add a switcher of picture and nav display