<!--
function afficher_Data(donnees){
	$("#content_page").fadeOut(200, function(){
		$("#content_page").empty();
		$("#content_page").append(donnees).fadeIn(500);
	});
	clearTimeout(t);
};


$(document).ready( function () {

	$("ul.subMenu:not('.open_at_load')").hide();

	$("li.toggleSubMenu span").each( function () {
		var TexteSpan = $(this).text();
		$(this).replaceWith('<a href="" title="Afficher le sous-menu">' + TexteSpan + '</a>') ;
	});

	
/*
	$("li.SimpleLink > a").click( function () {

		page=($(this).attr("value"));
		$("#content_page").load(page);
		
		
		$.ajax({
			url: page,
			cache: false,
			success:function(html){
				t=setTimeout(function(){afficher_Data(html);}, 500);
			},
			error:function(XMLHttpRequest, textStatus, errorThrows){
			}
		});	
		return false;	
	});*/

	$("li.toggleSubMenu > a").click( function () {

		if ($(this).next("ul.subMenu:visible").length == 0) {
			
			$("ul.subMenu").slideUp("normal", function () { $(this).parent().removeClass("open") } );
			
			$(this).next("ul.subMenu").slideDown("normal", function () { 
				$(this).parent().addClass("open");
			} );
		}
	
		page=($(this).attr("value"));
		
		$.ajax({
			url: page,
			cache: false,
			success:function(html){
				t=setTimeout(function(){afficher_Data(html);}, 500);
			},
			error:function(XMLHttpRequest, textStatus, errorThrows){
			}
		});	
		return false;	
	});

} ) ;
// -->
