$(document).ready(function() {
	
	/* Voir les tarifs supp */
	$('.tarifplus').click(function(e) {
        idtp = $(this).attr('id');
		if($('#tp_'+idtp).css('display') == 'none') {
			$('#tp_'+idtp).show();
		} else {
			$('#tp_'+idtp).hide();
		}
    });
	
	/* Galeire JS */
	 $('#coin-slider').coinslider({
		width: 618, // width of slider panel
		height: 246, // height of slider panel
		spw: 7, // squares per width
		sph: 5, // squares per height
		delay: 3000, // delay between images in ms
		sDelay: 30, // delay beetwen squares in ms
		opacity: 0.7, // opacity of title and navigation
		titleSpeed: 500, // speed of title appereance in ms
		effect: 'random', // random, swirl, rain, straight
		navigation: true, // prev next and buttons
		links : true, // show images as links
		hoverPause: false // pause on hover
});

	/* This is basic - uses default settings */
	
	$("a#single_image").fancybox();
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.grouped").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayColor'	: 	'#b9d2f4',
		'centerOnScroll':	true
	});
	$("a.grouper").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayColor'	: 	'#b9d2f4',
		'centerOnScroll':	true
	});
	
});
