jQuery(function($) {
	$(".button").button();
	$( ".accordion" ).accordion({ collapsible: true, active:"none" });
	$(".accordion h2 a").css("font-size", "0.6em");

	$(".sub-menu").parent().hover(
		// show
		function() { $(this).find(".sub-menu").filter(":hidden").show("slow"); },
		
		// hide
		function() { 
			$(this).find(".sub-menu").filter(":visible").hide("slow"); 
		}
	);
	
	$.each($("a.colloque"), function() { 
		if ( $(this).is(':empty') ) {
			$(this).html( $(this).attr("href") );
		}
			
		$(this).attr("href", "/documents/colloque_2008/" + $(this).attr("href") ); 
	});
});

