
function getHref( pays ) {
	
	URL = location.href;
	
	if ( pays == 'en' ) { 
		
		if (URL.match("oeuvres"))
			URL = URL.replace(/oeuvres/, "works" );
		
		if (URL.match("biographie"))
			URL = URL.replace(/biographie/, "biography");
			
		if (URL.match("textes"))
			URL = URL.replace(/textes/, "texts");
		
		if (URL.match("expositions_personnelles"))
			URL = URL.replace(/expositions_personnelles/, "one-artist_exhibitions");
			
		if (URL.match("expositions_collectives"))
			URL = URL.replace(/expositions_collectives/, "group_exhibition");
			
		if (URL.match("interventions_en_espace_public"))
			URL = URL.replace(/interventions_en_espace_public/, "intervention_in_public_space");
		
		URL = URL.replace(/lang=fr/, "lang=en");
		newURL = URL.replace(/thierrygehin.fr/, "thierrygehin.com");

	
	} else if ( pays == 'fr' ) {
		
		if (URL.match("works"))
			URL = URL.replace(/works/, "oeuvres" );
			
		if (URL.match("biography"))
			URL = URL.replace(/biography/, "biographie");
			
		if (URL.match("texts"))
			URL = URL.replace(/texts/, "textes");
			
		if (URL.match("one-artist_exhibitions"))
			URL = URL.replace(/one-artist_exhibitions/, "expositions_personnelles");
			
		if (URL.match("group_exhibition"))
			URL = URL.replace(/group_exhibition/, "expositions_collectives");
			
		if (URL.match("intervention_in_public_space"))
			URL = URL.replace(/intervention_in_public_space/, "interventions_en_espace_public");
		
		URL = URL.replace(/lang=en/, "lang=fr");
		newURL = URL.replace(/thierrygehin.com/, "thierrygehin.fr");
		
	}
	
	document.getElementById( pays ).href = newURL;
}
