$(document).ready(function(){
	//Popin
	//Exemple : <a class="btn_popin" id="btn_popin_demo"> ouvre la popin #popin_demo
	$('.btn_popin').click(function(){
		var dHeight = $(document).height();
		$('.mask').css('height', dHeight + 'px').show();
		var id_popin = $(this).attr('id').replace(/^btn_(.+)/, '$1');
		$('#'+id_popin).show('fast');
	});
	$('.popin .btn_fermer').click(function(){
		$('.mask').hide();
		$(this).parent().hide('fast');
	});
	
});
