$(function() {
	$("#toggleHidden").live('click', function(){
		toggleActu($(this));		
	});
});

function toggleActu(tmp){
	$(".hide").slideToggle("fast");
	if(tmp.text() == "Voir toutes les actualit\351s") tmp.text("Masquer les actus");
	else tmp.text("Voir toutes les actualit\351s");	
	return false;
}


function envoiEmail(name,company,domain){
		locationString = 'm'+'ai'+'lto:'+ name +'@'+ company+'.'+domain;
		window.location.replace(locationString);
}


function ancre_redirect(ancre_name){
	var ancre = document.location.href;
	var ancre_pos = ancre.lastIndexOf("#");
	var ancre_length =ancre.length;
	if(ancre_pos>0){
		document.location.href=ancre.substr(0,ancre_pos)+ancre_name;
	}
	else{
		document.location.href=document.location.href+ancre_name;
	}
}
