%ul
  -first_level_menu.children.order(:position).each do |menu_item|

    %li{:class => ("ul_active" if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item)))}
      =menu_item_link(menu_item, true)
      -if menu_item.children.size > 0

        =render :partial => "public/menu_items/top_sub_menu", :locals =>{:first_level_menu => menu_item}
