$(function() {

    $('.menuRubriques a').tooltip({
        track: true,
        delay: 0,
        showURL: false,
        left: 350,
        top: 20,
        showBody: " ++ ",
        fade: 500
    });

    if($("ul.textInfo").text().length <= 110)
	    $("ul.textInfo").liScroll({ travelocity: 0.005 });
	else
	    $("ul.textInfo").liScroll({ travelocity: 0.030 });


	
	$("#Search input.text").focus(function() {
        $(this).val("");
    }).blur(function() {
        if ($(this).val() == "") {
            $(this).val($(this)[0].defaultValue);
        }
    });

if($("#ctl00_VideoHome").length == 0) { //Présence PanelVideo

    $('#SliderMask').nivoSlider({
        prevText: '',
        nextText: '',
        controlNav: false,
        effect: 'sliceUpDownLeft'
    });
}



//	//Slide des articles
//	$('#LeftBox #ActuPromo').loopedSlider({
//		addPagination: true,
//		container: "#ActuPromo",
//		slides: ".Actus",
//		pagination: "ActuBar"
//	});


    if($(".jcarousel-skin-tango li").length > 1)
    $(".jcarousel-skin-tango").jcarousel({
        	auto : 1,
		interval: 3000,
		wrap: 'circular',
		scroll: 1
    });

});
