$(document).ready(function(){
	$('.details_extrait').hide();	
	
	$('#extraits h3').css('cursor','pointer').click(function(){	 	
		var myValue = '#'+$(this).attr('class')+' .details_extrait';		
		$(myValue).slideToggle('slow');		
		var fond = $(this).css('background-image');
		if ((fond == 'url(http://www.neopuntia.com/bioserae2/image/liste_Bio-Serae2.gif)') || (fond == 'url("http://www.neopuntia.com/bioserae2/image/liste_Bio-Serae2.gif")')) { 
		$(this).css('background-image','url(image/liste_Bio-Serae.gif)');
		}
		else { $(this).css('background-image','url(image/liste_Bio-Serae2.gif)');}
		$(this).css('background-repeat','no-repeat')
	});
	$('#lien_a a').click(function(){	 	
		var myValue = '#'+$(this).attr('class')+' .details_extrait';	
		var myValue2 = '#'+$(this).attr('class')+' h3';	
		$(myValue).slideToggle('slow');		
		var fond = $(myValue2).css('background-image');
		if ((fond == 'url(http://www.neopuntia.com/bioserae2/image/liste_Bio-Serae2.gif)') || (fond == 'url("http://www.neopuntia.com/bioserae2/image/liste_Bio-Serae2.gif")')) { 
		$(myValue2).css('background-image','url(image/liste_Bio-Serae.gif)');
		}
		else { $(myValue2).css('background-image','url(image/liste_Bio-Serae2.gif)');}
		$(myValue2).css('background-repeat','no-repeat');
	});
	$('#touto').css('cursor','pointer').click(function(){	
		$('.details_extrait').show();
		$('#extraits h3').css('background-image','url(image/liste_Bio-Serae2.gif)');
	});			
	$('#toutf').css('cursor','pointer').click(function(){	
		$('.details_extrait').hide();
		$('#extraits h3').css('background-image','url(image/liste_Bio-Serae.gif)');
	});
}); 



