//Actions au chargement de la page
$(document).ready(function() {
	/*$('.accueil-menus-nivo2').each(function() {
		$(this).css({display:'none'});
	});*/
	$('.accueil-menus-nivo1>ul>li').mouseover(function() {
		if (jQuery.browser.version < 8) {
			$(this).css({marginBottom:'-1px'});
		}
		$(this).find('.accueil-menus-nivo2').css({display:'block'});
		$(this).addClass('hover');
	});
	$('.accueil-menus-nivo1>ul>li').mouseout(function() {
		if (jQuery.browser.version < 8) {
			$(this).css({marginBottom:'1px'});
		}
		$(this).find('.accueil-menus-nivo2').css({display:'none'});
		$(this).removeClass('hover');
	});
	
    $('.carousel-simple-centre').each(function() {
		$(this).jcarousel({
			scroll:1,
			//auto:3,
			wrap:'circular'
		});
        // Fix bug n°7482
		if(jQuery.browser.safari) {
            $('.jcarousel-list').each(function(index){
                $(this).css({width:($(this).children('li').length*($(this).children(":first").width()+10))+'px'});
            });
		}
	});
	$('.accueil-carousel-centre .jcarousel-prev').each(function(i){
		$(this).mouseover(function() {
			$(this).addClass('prev-hover');
		});
		$(this).mouseout(function() {
			$(this).removeClass('prev-hover');
		});
	});
	$('.accueil-carousel-centre .jcarousel-next').each(function(i){
		$(this).mouseover(function() {
			$(this).addClass('next-hover');
		});
		$(this).mouseout(function() {
			$(this).removeClass('next-hover');
		});
	});
	$('.accueil-agenda-contenu-col2').jScrollPane({showArrows:true,scrollbarWidth:21, dragMinHeight:70, dragMaxHeight:70});
	$('.accueil-agenda .jScrollArrowDown').each(function(i){
		$(this).mouseover(function() {
			$(this).addClass('jScrollArrowDown-hover');
		});
		$(this).mouseout(function() {
			$(this).removeClass('jScrollArrowDown-hover');
		});
	});
	$('.accueil-agenda .jScrollArrowUp').each(function(i){
		$(this).mouseover(function() {
			$(this).addClass('jScrollArrowUp-hover');
		});
		$(this).mouseout(function() {
			$(this).removeClass('jScrollArrowUp-hover');
		});
	});
	$('.accueil-agenda .jScrollPaneDrag').each(function(i){
		$(this).mouseover(function() {
			$(this).addClass('jScrollPaneDrag-hover');
		});
		$(this).mouseout(function() {
			$(this).removeClass('jScrollPaneDrag-hover');
		});
	});
});




