$(document).ready(function() {
		$("a.thickbox, a[rel='lightbox']").fancybox({
			'hideOnContentClick': false,
			imageScale : true
		}); 
	/* Largeur / hauteur en px de la fancybox "Conseiller à un ami" */ 
		$("a#box_ami").fancybox({
			frameWidth : 300,
			frameHeight : 200
		}); 
		/* Largeur / hauteur en px de la fancybox "Mentions légales" */ 
		/*$("a#box_ml").fancybox({
			
			'hideOnContentClick': false,
			frameWidth : 500,
			frameHeight : 500
		}); */
		if(document.all){
			$("a#box_fav").click(function(){
				window.external.AddFavorite(location.href, document.title);
			});
		}else{
		 /* Largeur / hauteur en px de la fancybox "Ajout aux favoris" */ 
			$("a#box_fav").fancybox({ 
				'hideOnContentClick': true,
				frameWidth : 400,
				frameHeight : 100			 
			});
		}


/*	$('.sub').hide();
	$('#menu li').hover(
		function(){
		$(this).find('.sub').stop(1,1).slideDown('fast');
	

		},
		function(){
		$(this).find('.sub').slideUp('fast');	
		});*/
$('#carousel').bxSlider({
		auto: true,
		 mode: 'fade'
		});
	 $("#menu li:last-child").css({
		 border:"none",
		 width:"190px",
		 float:"right"
		 });
	$('.fakelis').hover(
		function(){
		$(this).addClass("actifFake");	
		},
		function(){
		$(this).removeClass("actifFake");	
		});
	
	$('#navigation_frame, .black').hide();
		$('#navigation_frame #col4 a').click(function(){	
		$('.black').stop(1,1).fadeOut(2000);
		$('#navigation_frame').stop(1,1).fadeOut(1100);
		}); 
	
	$('#navigation').click(function() { 
		$('.black').stop(1,1).fadeIn(1100);
		$('#navigation_frame').stop(1,1).fadeIn(1000);
	});
	
	$('.black').click(function() { 
		$(this).stop(1,1).fadeOut(2000);
		$('#navigation_frame').stop(1,1).fadeOut(1100);
	});
	
	$('.close').click(function() { 
		$('.black').stop(1,1).fadeOut(2000);
		$('#navigation_frame').stop(1,1).fadeOut(1100);
	});
		
	});
