
-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
		
	#second_nav
		.center		
		
			-first_level_menu.children.where(:enabled => true).order(:position).each do |menu_item|
			
				=menu_item_link(menu_item)
						
					
				
#page_main

	
	
		


	-if flash[:notice]
		#flash_notice=raw(flash[:notice])
		<script type="text/javascript">
		$.fn.prettyPhoto({
		show_title : false,
		allow_resize : false,
		social_tools : false,
		});
	
		="$.prettyPhoto.open('#flash_notice','Information importante');"
	
		
		</script>
			
	=render @menu_item.menu_content.blocks[0]
	.clear

