function trim(string) {
	return string.replace(/(^\s*)|(\s*$)/g,'');
}

$(document).ready(function()
{
	// Slider du bloc actualités
	/*$("#actus_accueil").sudoSlider({
		vertical:true,
		pause: '8000',
		auto:true,
		controlsShow:false
    });
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		autoplay_slideshow: false,
		deeplinking: false,
		overlay_gallery: false,
		social_tools: false
	});*/
	if ($(".rubrique_1").length > 0 && $("#smenu1").length > 0)
	{
		$(".rubrique_1").mouseover(function(){ $("#smenu1").show(); });
		$(".rubrique_1").mouseout(function(){ $("#smenu1").hide(); });
	}
	if ($(".rubrique_2").length > 0 && $("#smenu2").length > 0)
	{
		$(".rubrique_2").mouseover(function(){ $("#smenu2").show(); });
		$(".rubrique_2").mouseout(function(){ $("#smenu2").hide(); });
	}
	if ($(".rubrique_3").length > 0 && $("#smenu3").length > 0)
	{
		$(".rubrique_3").mouseover(function(){ $("#smenu3").show(); });
		$(".rubrique_3").mouseout(function(){ $("#smenu3").hide(); });
	}
	if ($(".rubrique_4").length > 0 && $("#smenu4").length > 0)
	{
		$(".rubrique_4").mouseover(function(){ $("#smenu4").show(); });
		$(".rubrique_4").mouseout(function(){ $("#smenu4").hide(); });
	}
	if ($(".rubrique_5").length > 0 && $("#smenu5").length > 0)
	{
		$(".rubrique_5").mouseover(function(){ $("#smenu5").show(); });
		$(".rubrique_5").mouseout(function(){ $("#smenu5").hide(); });
	}
	if ($(".rubrique_6").length > 0 && $("#smenu6").length > 0)
	{
		$(".rubrique_6").mouseover(function(){ $("#smenu6").show(); });
		$(".rubrique_6").mouseout(function(){ $("#smenu6").hide(); });
	}
	
	
	
});



