# var level5pages = structure.find('page[level="' + level + '"][isActive="1"] page[level="' + (level + 1) + '"]'); #>
<# for(var i=0; i < level5pages.length; i++) {
var level5 = $(level5pages[i]);
var level6pages = level5.find('page[level="' + (level + 2) + '"]'); #>
<# if(level5.attr('isActive') == '1' && level6pages.length > 0) { #>
- <#= level5.attr('title') #>
<# } else { #>
- ><#= level5.attr('title') #>
<# } #>
<# } #>