$(function() {
	$( "#tabs" ).tabs();
	
	/**
	 * MODALE : COMMENTAIRE
	 */
	$('#addCommentaire').click(function() {			
		$('#dialog-commentaire').dialog('open');
	});	
	$("#dialog-commentaire").dialog({
		autoOpen: false,
		height: 200,
		width: 700,
		modal: true,
		resizable: false,
		
		buttons: {
			'Fermer': function() {
				$('#dialog-commentaire').dialog('close');				
				}
			},
			Cancel: function() {
				$(this).dialog('close');				
			}	
	});

	/**
	 * MODALE : ABUS
	 */
	$('#signalerAbus').click(function() {			
		$('#dialog-abus').dialog('open');
	});	
	$("#dialog-abus").dialog({
		autoOpen: false,
		height: 200,
		width: 700,
		modal: true,
		resizable: false,		
		buttons: {		
		'Fermer': function() {
				$('#dialog-abus').dialog('close');				
				}
			},
			Cancel: function() {
				$(this).dialog('close');				
			}	
	});
	
	/**
	 * MODALE : COMPTE-RENDU
	 */
	$('#ajouterCompteRendu').click(function() {			
		$('#dialog-compte-rendu').dialog('open');
	});	
	$("#dialog-compte-rendu").dialog({
		autoOpen: false,
		height: 210,
		width: 700,
		modal: true,
		resizable: false,		
		buttons: {		
		'Fermer': function() {
				$('#dialog-compte-rendu').dialog('close');				
				}
			},
			Cancel: function() {
				$(this).dialog('close');				
			}	
	});
});
