$(document).ready(function(){
	// First we hide all exhibitis

	$("#menu ul li.section-title").nextAll().hide();

	// then the active exhibit is showed

	$("#menu ul").each(function(){
		$(this).find("li.active").prevAll().nextAll().show();
	});

	//This is the toggle function

	$("#menu ul li.section-title").click(function(){
		$(this).nextAll().slideToggle("fast");
	});
	
	//added by cab
	$("#menu ul li.section-title").hover(
	      function () {
	        $(this).css({'color' : '#555555'});
		  $(this).css({'cursor' : 'pointer'});
	      }, 
	      function () {
	        $(this).css({'color' : '#555555'});
	      }
	 );
	$("#menu ul li.section-title-projets").click(function(){
		window.location="http://raphaelurwiller.com/on/index.php?/project/democratie-locale/";
		});
	setTimeout('move_up()', 1);

});






/*$(document).ready(function()
{
	// Ocultar todos
	$("#menu ul li.section-title").nextAll().hide();
	
	//mostrar activo
	$("#menu ul").each(function(){
	$(this).find("li.active").prevAll().nextAll().show();
	});
	
	//Expandir y ocultar
	$("#menu ul li.section-title").click(function(){
	$(this).nextAll().slideToggle("fast");
	});
	
});  */
