$(document).ready(function() {
		$("a.vidz").fancybox({
			'hideOnContentClick': false,
			imageScale : true,
			frameWidth : 480,
			frameHeight : 300
		}); 
		$("a.thickbox, a[rel='lightbox']").fancybox({
			'hideOnContentClick': false,
			imageScale : true
		}); 
			 $(".test").hide();
            $("#slide").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                }
            });
				$("#menu2 li").mouseenter(function(){
			var id=$(this).attr('id');
			if($("#sous_"+id).css("display")=="none"){
				$("#sous_"+id).slideDown();
			}
		});
		$("#menu2 li").mouseleave(function(){
			var id=$(this).attr('id');
			$("#sous_"+id).slideUp("fast");
		}); 
		$("a#box_ami").fancybox({
			frameWidth : 300,
			frameHeight : 200
		}); 
		if(document.all){
			$("a#box_fav").click(function(){
				window.external.AddFavorite(location.href, document.title);
			});
		}else{
			$("a#box_fav").fancybox({ 
				'hideOnContentClick': true,
				frameWidth : 400,
				frameHeight : 100			 
			});
		}
	});
/***************************************************************/
/*
/*
/*
/*
/***************************************************************/
$(document).ready(function(){ //Définir la fonction de clic
   $('.clic').hover(function() { //mouse in
		$(this).css({
			'cursor':'pointer'
		});
		if(!jQuery.support.opacity) {
			$(this).stop();
			$(this).stop().animate(
				{ 
				'backgroundColor': '#fff'	
			}, 200);
			$(this).fadeTo(200,0.6);
		}
		else {
			$(this).stop().animate(
				{ 
				'backgroundColor': '#fff'	,
				'opacity':0.6
			}, 200);
		}
   }, function() { //mouse out
   		if(!jQuery.support.opacity) {
			$(this).stop();
			$(this).stop().animate(
	  			{ 
				'backgroundColor': '#fff'
				}, 200);
			$(this).fadeTo(200,1);
		}
		else {
			$(this).stop().animate(
				{ 
				'backgroundColor': '#fff'	,
				'opacity':1
			}, 200);
		}
   });
 });
