$(document).ready(function(){
	$("#cont div").css({display: 'none'});
	
	$("h2 > a").click(function(){
		//alert("#div_"+$(this).attr('id'));
		$("#div_"+$(this).attr('id')).slideToggle("slow");
		par = $(this).parent();
		if (par.attr('class') == 'titre'){
			par.removeClass("titre");
		}
		else {
			par.addClass("titre");
		}
		
		
		/*$(this).toggle(function(){
   		
		},function(){
  			
 		});*/
				
		return false;
	});
	
	mel = mask('test_spam','vincent-marcel','com');
	$("#test").html(mel);
	mel2 = mask('vm','vincent-marcel','com');
	$(".ml").html(mel2);	
	
});

function mask(pref,dom,dlt){
	adr = pref+'@'+dom+'.'+dlt;
	sortie = '<a href="mailto:'+adr+'">'+adr+'</a>'
	return sortie;
}
