$(function() {
	$('.maintenant').hover(function(){
		$(this).find('span.description').css('background-color','#80C2BE');
	}, function(){
		$(this).find('span.description').css('background-color','transparent');
	});
});

function directPlay(){
	$('.play').hide();
	$('.boutons').hide();
	$('.media').media({
		width:     512,
		height:    333,
		autoplay:  true,
		caption:   false
	});
}

$(document).ready(function(){
	directPlay();
	$('.ajh').parent('#programme_8jours').height(($('.ajh').attr('name') * 36 + 80)+'px');
});

// PROGRAMME J+8
$(function() {
	$('.jourProgramme').click(function(){
		$('.jourProgramme div').addClass('dn');
		$(this).find('div').removeClass('dn');
		$('.jourProgramme').removeClass('ajh');
		$(this).addClass('ajh');
		$(this).parent('#programme_8jours').height(($(this).attr('name') * 36 +80)+'px');
  });
});
