if(document.cookie)location.href=document.cookie.substring(5)+"/site.html";//5="lang=".length
function create_cookie(a_href){
	from=a_href.length-12; //12=2+"/site.html".length
	a_href=a_href.substring(from,from+2);
	anneeprochaine=new Date();
	anneeprochaine.setFullYear(anneeprochaine.getFullYear()+1);
	document.cookie="lang="+a_href+";expires="+anneeprochaine.toGMTString();
}