$(document).ready(function() {
	$('#NL_box').text('vous inscrire à la "newsletter"');

	$("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
	}); 
	
	$("a#video, a#video02, a#video03, a#video04").fancybox({ 
		'hideOnContentClick': false,
		frameWidth : 660,
		frameHeight : 500,
		callbackOnClose : function() {/*$('ul#tradi').goToSlide(1,true);*/}
	});

	$("a#video, a#video02, a#video03, a#video04").fancybox({ 
		'hideOnContentClick': false,
		frameWidth : 660,
		frameHeight : 500
	});
			
	/* 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			 
		});
	}	
	
	$('#menuVertical li.select').click(function(){
		$('#MenuVertical li ul:not(ouvert)').stop(1,1).slideUp();											
		$(this).find('ul').stop(1,1).slideDown();
	});	

});

$(function(){
   $('.clic, p.lien a, .video_thumb, .video_thumb02, .video_thumb03, .video_thumb04').hover(function() { //mouse in
   		$(this).stop().animate({ opacity: '0.75' }, 250);
   }, function() { //mouse out
    	$(this).stop().animate({ opacity: '1' }, 250);
   });   
});
