// JavaScript Document
$(document).ready(function() {
						   
		var cycleA_nom="Annecy"
		var cycleA = $('div.jour .cycle:contains("Annecy")');
		/*$('div.prog:not(:contains("Annecy"))').addClass("prog_dim");*/
		/*$('div.prog:not(:contains("Annecy"))').fadeOut();
		$('div.prog:not(cycleA)').fadeOut();*/
		var cycleA_jours = $('span.cycle:contains("Annecy")');
		var non_cycleA = $('div.jour.not(cycleA_jours)');
	});

$(document).ready(function() {
		var cycleA_nom="Annecy";
		var cycleB_nom="Les 20 ans de";
		var cycleC_nom="Kowalski";
		var cycleD_nom="Elektra";
		var cycleE_nom="Gian Maria";
		
		$('.boutons #annecy').click(function() {
			$('div.prog').show();	
			$('div.prog span.cycle:not(:contains("'+ cycleA_nom +'"))').parent().parent().fadeOut();
			
			/*$('div.prog span.cycle:contains("'+ cycleA_nom +'")').removeClass().addClass('cycleHigh');*/
			/*$('table#cal td:contains("15") ').addClass('dateCal');
			$('a[name="1"]').parent().addClass('cycleHigh');
			$('div.prog span.cycle:contains("'+cycleA_nom +'")').parent().parent().parent().prev().addClass('cycleHigh');
			var cycleA_date = $('div.prog span.cycle:contains("'+cycleA_nom +'")').parent().parent().parent().prev().$('a[name]');*/
			$('div.prog span.cycle:contains("'+cycleA_nom +'")').each(function(index){
				var cycleA_date = $(this).parent().parent().parent().prev().find('a[name]');	
				
					$('table#cal td:contains("'+ cycleA_date +'")').addClass('dateCal');
					<!--$('table#cal td:contains("16")').addClass('dateCal');-->
					});
			
				
		});
		$('.boutons div').click(function() {$('div.boutons div').removeClass('selected');});
		$('.boutons #phono').click(function() {
			
			$('div.prog').show();	
			$('div.prog span.cycle:not(:contains("'+cycleB_nom +'"))').parent().parent().fadeOut();	
			$('.boutons #phono').addClass('selected');
		});
		$('.boutons #kowalski').click(function() {
			$('div.prog').show();	
			$('div.prog span.cycle:not(:contains("'+cycleC_nom +'"))').parent().parent().fadeOut();
			$('.boutons #kowalski').addClass('selected');
		});
		$('.boutons #elektra').click(function() {
			$('div.prog').show();	
			$('div.prog span.cycle:not(:contains("'+cycleD_nom +'"))').parent().parent().fadeOut();
			$('.boutons #elektra').addClass('selected');
		});
		$('.boutons #gian_maria').click(function() {
			$('div.prog').show();	
			$('div.prog span.cycle:not(:contains("'+cycleE_nom +'"))').parent().parent().fadeOut();
			$('.boutons #gian_maria').addClass('selected');
		});
				
		$('.boutons #normal').click(function() {
			$('div.prog').fadeIn();
			$('.boutons #normal').addClass('selected');
		});
		
		$('.details').hide();
		
		$('.titre6').toggle(function(){
			
			$(this).parent().find('div.details').slideDown();						
			}, function(){
				$(this).parent().find('div.details').slideUp();
			});
		$('.titre6').hover(function() {
			$(this).addClass('hover');
				}, function() {
			$(this).removeClass('hover');
		});
			$('div.boutons div').hover(function() {
			$(this).addClass('hover');
				}, function() {
			$(this).removeClass('hover');
		});
		
	});

/*
$(document).ready(function() {
var cycleA = $('div.jour .cycle:contains("Annecy")');
$(non_cycleA).hide();
$('div.jour:not(:contains("Gili"))').hide();
	$(cycleA_jours).parent().parent().addClass('cycleHigh');
	$('.cycle:contains("Annecy")').parent().parent().hide();	
	var cycle = $('span.cycle:contains("Annecy")');
	$(cycle).parent().addClass('cycleHigh');
});

*/