<style class="Vmenu">
#mainmenu_block IMG, #mainmenu_block HR{vertical-align:middle;##if !@BUILDER.InlineMenu##margin-right:10px;##endif##}
##if @BUILDER.InlineMenu##
/* For Vmenu2 on the list page */
.Vmenu2 ul, .Vmenu2 ul li{list-style:none;margin:0;padding:5px 0;}
.Vmenu2 ul li a{padding:5px;}
.Vmenu2 ul li span{cursor:pointer;}
.Vmenu2_links{text-align:left;}
.Vmenu2_links a{font-weight:normal; text-decoration:none;}
a.link{margin-left:13px;}
img.pmimg{margin-right:4px;}
#mainmenu_block {width:180px;}
#menu_block{$id}, #tables_block {padding:10px;} 
##else##
/* For Vmenu1 on the list page */
#mainmenu_block {width:200px;}
#menu_block{$id}, #tables_block {padding:10px 0;}
.Vmenu1 ul, .Vmenu1 ul li{list-style:none;margin:0;padding:0px;}
.Vmenu1 ul li {padding:5px 10px;position:relative;z-index:1;display:block;}
##endif##
</style>
<div id="mainmenu_block" class="##if @BUILDER.InlineMenu##Vmenu2##else##Vmenu1##endif##">
##if @BUILDER.InlineMenu##<div class="Vmenu2_links"><a href="#" class="plus_minus"><img src="include/img/plus.gif" border=0> &nbsp;&nbsp;##message EXPAND_ALL##</a></div>##endif##
<ul>
##foreach @BUILDER.MenuNodes as @menu filter !@menu.parent##
	<li id="li##@menu.id##" view="topitem" ##if @menu.type=="Separator"##class="hr"##endif##>
	##include templates\topmenuitem_preview.htm##
	</li>
##endfor##				
</ul>
</div>
