$(document).ready(function(){ 	

	
	//menu
	$(".caseNavigPrim a img + img, #btnmenus a img + img, #facebook a img + img, .elemplus a img + img").css ({
	position:"absolute",
	top:"0px",
	left:"0px"		
	})
	//overfade
    $(".caseNavigPrim a, #btnmenus a, #facebook, .elemplus a").not(".caseNavigPrim .current, #btnmenus .current, #facebook .current, .elemplus .current")
	.css({position:"relative", display:"block"})
	.hover(
        function(){

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

            $(this).find("img").next("img")
			.stop(true,true)
			.fadeIn(450);
			
        }, function(){
			
            $(this).find("img").next("img").fadeOut(1000);
			
        }
    );
	
	//slideshow
	$('#bigimg').cycle({
		fx: 'fade',
		speed:2100,
		//	easing: 'bounceout', 
		pager:  '#imgselectzone',
		
		 pagerAnchorBuilder: function(idx, slide) { 
			return '<a href="#"></a>'; 
		}
	
	});
	
	$('.encartimg').cycle({
		fx: 'fade',
		speed:3800,
		//	easing: 'bounceout', 
		pager:  '.encselect',
		
		 pagerAnchorBuilder: function(idx, slide) { 
			return '<a href="#"></a>'; 
		}
	
	});
	
//	$.smoothAnchors(700, "swing", false);
	
});
