$(document).ready(function() {
$('#action_show_presentation').dialog({ autoOpen: false , modal: true, width:500, height:500,resizable:false,title: 'PRÉSENTATION GÉNÉRALE',dialogClass: 'ui-dialog-nmz' });
$('#action_show_contact').dialog({ autoOpen: false , modal: true, width:450, height:500,resizable:false,title: 'CONTACT',dialogClass: 'ui-dialog-nmz' });
$('#action_show_cgu').dialog({ autoOpen: false , modal: true, width:750, height:500,resizable:false,title: 'CONDITIONS GÉNÉRALES D\UTILISATION',dialogClass: 'ui-dialog-nmz' });
$('#action_show_mentionslegales').dialog({ autoOpen: false , modal: true, width:450, height:310,resizable:false,title: 'MENTIONS LÉGALES',dialogClass: 'ui-dialog-nmz' });
$('#action_show_presse').dialog({ autoOpen: false , modal: true, width:780, height:500,resizable:false,title: 'PRESSE',dialogClass: 'ui-dialog-nmz' });

$('.button_cgu_artiste').click(function() {
	$('.text_in_modal_artiste').css('display','block');
	$('.text_in_modal_membre').css('display','none');
	$('.button_cgu_artiste').css('font-weight','bold');
	$('.button_cgu_membre').css('font-weight','normal');
	$('#action_show_cgu').jScrollPane({scrollbarWidth:7})
});
$('.button_cgu_membre').click(function() {
	$('.text_in_modal_artiste').css('display','none');
	$('.text_in_modal_membre').css('display','block');
	$('.button_cgu_artiste').css('font-weight','normal');
	$('.button_cgu_membre').css('font-weight','bold');
	$('#action_show_cgu').jScrollPane({scrollbarWidth:7})
});

$('.button_presentation_artiste').click(function() {
	$('.text_in_modal_presentation_artiste').css('display','block');
	$('.text_in_modal_presentation_membre').css('display','none');
	$('.button_presentation_artiste').css('font-weight','bold');
	$('.button_presentation_membre').css('font-weight','normal');
});
$('.button_presentation_membre').click(function() {
	$('.text_in_modal_presentation_artiste').css('display','none');
	$('.text_in_modal_presentation_membre').css('display','block');
	$('.button_presentation_artiste').css('font-weight','normal');
	$('.button_presentation_membre').css('font-weight','bold');
});

});
