jQuery().ready(function(){
//*BULLES D'AIDE******************************************************************
	$.ui.dialog.defaults.bgiframe = true;
	
	$(".helper").click(function(){
		$(".overlay").dialog('destroy');
		var id = $(this).attr('id');
		var title = $(this).attr('title');
		$('#'+id+'_h').dialog({
			show: 'drop',
			hide: 'drop',
			title: title,
			width: '500px',
			close: function(event, ui) { 
				$(this).dialog('destroy');
			}
		});
	}); 
	
	$(".m").hover(function(){	
		$('.sm').hide('fast');
		$(".m").removeClass('hover');
		
		$('.'+$(this).attr('id')).show('fast');
		$(this).addClass('hover');
	});
		
	$(".sm").mouseleave(function(){
		$('.sm').hide('fast');
		$(".m").removeClass('hover');
	});	
	
	$("a.blank").click(function(e){
		window.open($(this).attr("href"));
		return false;
	});
	
	/**COMMON**/
	
	/*$("a.confirm").click(function(){
		return window.confirm("Confirmer l'action suivante :\n"+$(this).attr("title"));
	});
	
	$("a.blank").click(function(e){
		window.open($(this).attr("href"));
		return false;
	});
	
	$("#nav ul.sm").hide();
	
	$("#competence").hover(function(){
		$('#sm').show('fast');
	});
	
	$("#nav > li").mouseover(function(){
		if($(this).attr('id') != 'competence'){
			$('#sm').hide('fast');
		}
	});
	
	$("#sm").mouseleave(function(){
		$('#sm').hide('fast');
	});*/
	
});




