function initMenu() {
	$(".accordeon li").not(".on").children(".sousrubriques").hide();

	$("a.menu_plus").click(function(){
		if( $(this).next().next().is(".open") )
		{
			$(".open").removeClass("open").slideToggle('slow');
		}
		else
		{
			$(".open").removeClass("open").slideToggle('slow');
			$(this).next().next().addClass("open").slideToggle('slow');
		}
		
		return false;
	});
}

function initSelecteurGalerie() {
	$("#url").change(function () {
		if($(this).value != '') {
			$('#formGalerie').submit();
		}
	});
}

function initFormRecrutement() {
	$("#candidature_type_emploi_autre").parent().hide();
	$("#candidature_id_type_emploi").change(function(){
		if( $(this).val() == 2 ) {
			$("#candidature_id_type_emploi").parent().css('float','left');
			$("#candidature_type_emploi_autre").parent().css('clear','none').show();
		}
		else {
			$("#candidature_type_emploi_autre").parent().hide();
			$("#candidature_id_type_emploi").parent().css('float','none');
		}
	});
}
