{% import _self as fn %}
<div class="vernav2 iconmenu {% if collapsed == true %}menucoll2{% endif %}">
	{{fn.create(items)}}
	<a class="togglemenu {% if collapsed == true %}togglemenu_collapsed{% endif %}"></a>
     <br /><br />
</div>  
{% macro create(items,sub) %}
   {% import _self as fn %}
    <ul {%if sub > ''%}id="formsub{{sub}}"{%endif%}>
	{%for item in items%}
	    <li {% if item.current > ''%}class="current"{%endif%}>
		{% if item.subitems |length > 0%}
		    <a href="#formsub{{item.id}}" class="{{item.code}}">{{item.title}}</a>
		    <span class="arrow"></span>
		    {{fn.create(item.subitems,item.id)}}
		{%else%}    
		     <a href="{{item.url}}" class="{{item.code}}">{{item.title}}</a>
		{%endif%}
	    </li>	
	{%endfor%}
    </ul>
{% endmacro %}