

//Affiche le picto Courriel et pdf aussi lien externe
$(document).ready(function() {
  $('a[href^=mailto:]').addClass('mailto');
  $('a[href$=.pdf]').addClass('pdflink');
  /*
  $('a').filter(function() {
    return this.hostname && this.hostname != location.hostname;
  }).addClass('external');*/
});

//Menu déroulant de hébergement
$(document).ready(function(){
		$('.navOver').hide();
		var abc = ['.hebergement','.hebergementEn'];
		for (x=0; x<abc.length; x++){
			$(abc[x]).hover(function() {
						$('.navOver').fadeIn('slow');
						return false;
			});
		}
		$('.navOver').mouseleave(function() {
					$('.navOver').fadeOut('slow');
					return false;
		});
	});


// Ouverture boite Forfaits_______________

$(document).ready(function() {
	$('.slickbox').hide();

 // toggles the slickbox on clicking the noted link

	$('a.slick-toggle').click(function() {
			var $nextSpan = $(this).next();
			var $visibleSiblings = $nextSpan.siblings('span:visible');
			if ($visibleSiblings.length ) {
				$visibleSiblings.slideUp('slow', function() {
						$nextSpan.slideToggle("slow");
				});
			} else {
				$nextSpan.slideToggle("slow");
			}
	});
});

$(document).ready(function() {

	/* 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_elements").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayOpacity'	:	0.7,
		'overlayColor'		:	'#000'

	});
	
});





