$(document).ready(function(){					
  mainmenu();
  $('.nav ul').corner("bottom 15px").corner("tr 15px");
  $('.nav li ul ul').corner("bottom 15px").corner("tr 15px");
  $('.nav li ul.menu-gauche ul').corner("bottom 15px").corner("tl 15px");
  $('.nav h1 a').corner("top 15px");
  $('#col-centre .entete').corner("top 15px");
  $('#col-centre .fiche-haut').corner("top 5px");
  $('#col-centre .fiche-bas').corner("bottom 5px");
  $('#contour-encart').corner("15px");
  $('#col-centre .case h2 .prix').corner("8px");
  $('#encart').corner("15px");
  
	/* This code is executed after the DOM has been completely loaded */

	/* Changing thedefault easing effect - will affect the slideUp/slideDown methods: */
	$.easing.def = "easeOutBounce";

	/* Binding a click event handler to the links: */
	$('li.button a').click(function(e){
	
		/* Finding the drop down list that corresponds to the current section: */
		var dropDown = $(this).parent().next();
		
		/* Closing all other drop down sections, except the current one */
		$('.dropdown').not(dropDown).slideUp('slow');
		dropDown.slideToggle('slow');
		
		/* Preventing the default event (which would be to navigate the browser to the link's address) */
		e.preventDefault();
	})
});

