var currentpage = '';

$(document).ready(function(){
	
	$("div.navigation_sous_page a, a.dynpage").click(function(){
		if(currentpage) $("#" + currentpage[1]).hide();
		currentpage = $(this).attr("href").split("#");	
		$("#" + currentpage[1]).slideDown('slow');	
		/*$("div.navigation_sous_page").slideUp("slow", function(){			
					
		});*/
		
	});
	
	$("a.retour").click(function(){		
		$("#" + currentpage[1]).slideUp('slow');
		/*$("div.navigation_sous_page").slideDown("slow");		*/
	});
	
	//current page 
	currentpage = new String(window.location);currentpage = currentpage.split("#");currentpage = currentpage[1];
	
	$("div.navigation_sous_page a[href='#" + currentpage + "']").click();
	
	$(".dyn_anchor").click(function(){		
		$(this).attr("href", $(this).attr("href") + "&diese=" +   document.location.hash.substring(1));
	});
	
});
