function popupcentree(page,largeur,hauteur,options){
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

$(document).ready(function(){	
	
    
    $('.ref').hover(
        function () {
            $(this).find("img").animate({"margin-left": "-22px"}, {duration:500, queue:false, easing:"easeOutQuart"});
			$("body").animate({"background-color": $(this).find(".bkgd").css("background-color")}, {duration:500, queue:false, easing:"easeOutQuart"});
        },
        function () {
             $(this).find("img").animate({"margin-left": "-220px"}, {duration:500, queue:false, easing:"easeOutQuart", complete:function(){
				  $(this).css({"margin-left": "175px"});
			}});
        }
    );	
	
	//$(".diagonales2").css({opacity:0.8});
	
	
	$(".navigationgauche a").css({opacity: 0.5});
	 $('.navigationgauche a').hover(
        function () {
            $(this).animate({"opacity": 1}, {duration:500, queue:false, easing:"easeOutQuart"});
        },
        function () {
             $(this).animate({"opacity": 0.5}, {duration:500, queue:false, easing:"easeOutQuart"});
        }
    );
	 
	 $(".navigationdroite a").css({opacity: 0.5});
	 $('.navigationdroite a').hover(
        function () {
            $(this).animate({"opacity": 1}, {duration:500, queue:false, easing:"easeOutQuart"});
        },
        function () {
             $(this).animate({"opacity": 0.5}, {duration:500, queue:false, easing:"easeOutQuart"});
        }
    );

});
