function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}

function stretch_site_content() {
	if( $(window).height() > $('body').height() ) {
	$( '#maincontainer' ).height(
	$(window).height() - ( $('body').height() - $('#maincontainer').height() )
	);
	}
}

$(document).ready(function(){

$("div#main-nav a:contains('Accueil')").html("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");

equalHeight($(".colonne"));

stretch_site_content();
$(window).resize( stretch_site_content );

//tiroirs
$('div.tiroirs:eq(0) > div').hide();
$('div.tiroirs:eq(0) > h3').click(function() {
  $('#page-10 #content').css("height","850px");
  $('#page-10 #contentcolumn').css("height","850px");
	$(this).next('div').slideToggle('fast')
  .siblings('div:visible').slideUp('fast');
});


});
