$(document).ready(function(){ 
	
	//menu
	$("#menu a img + img").css({
	position:"absolute",
	top:"0px",
	left:"0px"
	})
	//overfade
    $("#menu a:not('.current')")
	.css({position:"relative"})
	.hover(
        function(){

            $(this).find("img").next()
			.stop(true,true)
			.fadeIn(200);
			
        }, function(){
			
            $(this).find("img").next().fadeOut(200);
			
        }
    );
	
	//overfade pour ie6
	$("a.overFade img + img").css({
	position:"absolute",
	top:"0px",
	left:"0px"
	})
	//overfade
    $("a.overFade")
	.css({position:"relative"})
	.hover(
        function(){

            $(this).find("img").next("img")
			.stop(true,true)
			.fadeIn(200);
			
        }, function(){
			
            $(this).find("img").next("img").fadeOut(200);
			
        }
    );
	
	//slideshow
	$('#slideshow').cycle({
	fx: 'fade',
	speed:800,
	//	easing: 'bounceout', 
    pager:  '#navCycle',
	
	 pagerAnchorBuilder: function(idx, slide) { 
        return '<a href="#"></a>'; 
    }
	
	});
	
	
	
	//ANIMATION FLECHE
	$(".animFleche, .liens a")
	.css({backgroundPosition: "0px 3px"})
	.hover(function(){
		$(this).stop().animate({backgroundPosition: "2px 3px"}, 200);
	}, function() {
		$(this).stop().animate({backgroundPosition: "0px 3px"}, 200);
	});
	
	$(".liensRapides li")
	.css({backgroundPosition: "0px 6px"})
	.hover(function(){
		$(this).stop().animate({backgroundPosition: "2px 6px"}, 200);
	}, function() {
		$(this).stop().animate({backgroundPosition: "0px 6px"}, 200);
	});
	
	
	//SMOOTHANCHOR
	$.smoothAnchors(700, "swing", false);

  
});

