
/*
$(window).load(function(){

var menuWidth = 0;
	
	$("#menu span").each(function(){	
		menuWidth += $(this).outerWidth() + 2;
	});
	$("#menu ul").css("width", menuWidth)

});
*/

$(document).ready(function(){ 
	
    var animeSpeed = 200;
	
    $("#menu a:not('#menu li.current a')")

	.hover(
        function(){

            $(this).stop(true,true).animate({marginTop:"6px"}, animeSpeed);
			
        }, function(){
			
            $(this).animate({marginTop:"12px"}, animeSpeed);
			
        }
    );
	
	//pour ie6
	$("a.overFade img + img").css({
	position:"absolute",
	top:"0px",
	left:"0px"
	})
	
    $("a.overFade")
	.css({position:"relative"})
	.hover(
        function(){

            $(this).find("img").next()
			.stop(true,true)
			.fadeIn(animeSpeed);
			
        }, function(){
			
            $(this).find("img").next().fadeOut(animeSpeed);
			
        }
    );
	
  $.smoothAnchors(700, "swing", false);
  

});


/*** Flash ***/
var flashvars = {};
var params = {};
var attributes = {
wmode:"transparent",
quality:"high"
};
swfobject.embedSWF("swf/logo.swf", "logo", "222", "106", "9.0.0", flashvars, params, attributes);
/*** Flash FIN ***/
