
-content_for :sidebar do
	-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
			-first_level_menu.children.where(:enabled => true).order(:position).each do |menu_item|

				=menu_item_link(menu_item)
					

-content_for :body do
			

	-if @menu_item.slug != "accueil"
		#breadcrumb
		
			-if @menu_item.ancestors.reverse[0] and @menu_item.ancestors.reverse[0].slug != "accueil"
				=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

