function sanef() {

	$('#exofade').cycle({fx:'fade', speed: 2500, timeout:5000});

	$("#menu a img.logoRmenu").fadeTo("fast", 0.6);

	initDefil();
	
	// events
	$(".blocGauche").hover(
      function () {
        $(this).addClass("blocGaucheHover");
      }, 
      function () {
        $(this).removeClass("blocGaucheHover");
      }
    );
	$(".blocDroite").hover(
      function () {
        $(this).addClass("blocDroiteHover");
      }, 
      function () {
        $(this).removeClass("blocDroiteHover");
      }
    );
	
	$("#menu a").hover(
		function () {
			$("img.logoRmenu", this).fadeTo("fast", 1);
		},
		function () {
			$("img.logoRmenu", this).fadeTo("fast", 0.6);
		}
	);
}

function defil(longueur) {	
	marginLeft_actu = parseInt( $('#defil').css('marginLeft') );
	marginLeft_new = marginLeft_actu - 1;
	//debug("longueur : "+longueur+"<br />"+marginLeft_new);
	if (marginLeft_new < -(longueur)) {
		marginLeft_new = 0;
		$('#defil').css('marginLeft', marginLeft_new+"px");
		setTimeout("defil("+longueur+");", 1000);
	} else {
		$('#defil').css('marginLeft', marginLeft_new+"px");
		setTimeout("defil("+longueur+");", 15);
	}
}

function initDefil() {
	if ($('#defil')) {
		$('#defil').css('marginLeft', '0px');
		var nb_carac = $('#defil').text().length;
		var longueur_estimee = nb_carac * 7; // compter 7 pixels / character
		longueur_estimee = longueur_estimee + 75; // petite marge temporelle
		//debug(longueur_estimee);
		setTimeout("defil("+longueur_estimee+");", 4000);
	}
}

function debug(q) {
	$('#debug').html(q);
}