#bandeau
	=@title

#page_main
	#sidebar
		
		-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
		
			#menu_left
				%h3= menu_item_link(first_level_menu)
				%ul
					-first_level_menu.children.where(:enabled => true).order(:position).each do |menu_item|
						%li
							=menu_item_link(menu_item)
							-if menu_item.children.size > 0

								%ul
									-menu_item.children.where(:enabled => true).order(:position).each do |menu_item|
										%li=menu_item_link(menu_item)
					
				
			
	#content
	
		#breadcrumb
			=link_to "Accueil", "/"
			>
			-@menu_item.ancestors.reverse.each do |menu_item|
				=menu_item_link(menu_item)
				>
			=@menu_item.name

		-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

