-if @menu_item.parent_id
  -if @menu_item.ancestors.reverse[0]
    -first_level_menu = @menu_item.ancestors.reverse[0]

-else

  -first_level_menu = @menu_item

-if first_level_menu.children.size > 0
  .row
    .columns.span_3
      %h3=first_level_menu.name
      .second_menu
 
        %ul
          -first_level_menu.children.where(:enabled => true, :visible => true).order(:position).each do |menu_item|

            %li
              =menu_item_link(menu_item)
            -if menu_item.children.size > 0 and first_level_menu.id != 44
              %ul
                -menu_item.children.where(:enabled => true, :visible => true).order(:position).each do |menu_item|

                  %li
                    =menu_item_link(menu_item)
         
      -if @menu_item.slug != "index" and @menu_item.ancestors.length >= 1  and 2 == 1  
        .breadcrumb          
          -if @menu_item.ancestors
            =link_to i(:home), "/"
            >
            -for menu_item in @menu_item.ancestors.reverse 
              =menu_item_link(menu_item)
              >

            =@menu_item.name

    .columns.span_9
      .menu_item_content
        =render :partial => "public/blocks/block", :locals => {:block => @menu_item.menu_content.blocks[0]}
-else
  =render :partial => "public/blocks/block", :locals => {:block => @menu_item.menu_content.blocks[0]}