$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'fade',
        slices:1,
        animSpeed:500,
        pauseTime:5000,
        directionNav:false,
        controlNav:false,
        keyboardNav:false,
        captionOpacity:0
    });
    
    $('#chiffres p:even').addClass('even');
    $('#chiffres p:odd').addClass('odd');
    $('.entry:nth-child(3n)').addClass('no-margin');
    $('#sm li li:has(ul)').addClass('parent');
    
    $('#mm>li').bind({
		'mouseenter': function(){
			$(this).addClass('hover');
		},
		'mouseleave': function(){
			$(this).removeClass('hover');
		}
	});
	$('#mm ul ul li').addClass('sub');
	$('#mm ul li:first-child').addClass('first');
	$('#bm li:first-child').addClass('first');
});

