$(document).ready(function(){					
  mainmenu();
  $('#conteneur').corner("5px");
  $('.entete').corner("5px");
  $('.entete-match').corner("5px");

	/* Changing thedefault easing effect - will affect the slideUp/slideDown methods: */
	$.easing.def = "easeOutBounce";

  if(document.getElementById("diaporama"))
	{
    $(".diaporama").diaporama({
      animationSpeed: "slow",
      delay:2
    });
  }
  
  var cache = '';
  var montrer = '';
  
	/* Binding a click event handler to the links: */
	$('a#voir-prochain').click(function(e){
	
		/* Finding the drop down list that corresponds to the current section: */
		cache = $('#cadre-calendrier');
		montrer = $('#cadre-prochain');
    
		/* Closing all other drop down sections, except the current one */
		cache.css('display', 'none');
		montrer.css('display', 'block');
		$('a#voir-prochain').addClass("selec");
		$('a#voir-dernier').removeClass("selec");
    
		/* Preventing the default event (which would be to navigate the browser to the link's address) */
		e.preventDefault();
	});  
  
	/* Binding a click event handler to the links: */
	$('a#voir-dernier').click(function(e){
	
		/* Finding the drop down list that corresponds to the current section: */
		cache = $('#cadre-prochain');
		montrer = $('#cadre-calendrier');
    
		/* Closing all other drop down sections, except the current one */
		//dropDown.slideUp('slow');
		cache.css('display', 'none');
		montrer.css('display', 'block');
		$('a#voir-dernier').addClass("selec");
		$('a#voir-prochain').removeClass("selec");
		
		/* Preventing the default event (which would be to navigate the browser to the link's address) */
		e.preventDefault();
	});

  $.featureList(
    $("#tabs li a"),
    $("#output li"), {
      start_item	:	1
    }
  );
});

function size(taille,id) {
  document.getElementById('col-gauche').style.fontSize = taille;
  arr = document.getElementsByName('taille');
     
  for(var i = 0; i < arr.length; i++)
  {
      var obj = document.getElementsByName('taille').item(i);
      obj.style.color = '#000000';
  }  
  document.getElementsByName('taille').item(id).style.color='#8abc00';
}

