/**
	Transformation de l'adresse (du type : /fr/page/projet.html) en swfAdress (/#/fr/page/projet/)
**/
function handleRedirect() {
	// Si il n'y a pas déjà un swfAdress d'indiqué.
	var url = window.location.href;
	if(url.indexOf("#") == -1)
	{
		var hostname = document.location.hostname;
		var pathname = document.location.pathname;

		var num = pathname.indexOf(".html");
		if(num > -1)
		{ 	// Suppression du .html
			pathname = pathname.substring(0, pathname.length - 5)
		}
		
		window.location.replace("http://"+hostname+"/#" + pathname);
	}
}


/**
	Place the focus on the swf object
**/
function setFlashFocus() {
	alert("setFlashFocus");
	document.getElementById('flashContent').focus();

}




/*
function setFocusOnFlash() {
  var fl = document.getElementById(flash_id);
  if (fl) { fl.focus(); }
}
*/

/*
if (swfobject.hasFlashPlayerVersion("9.0.0")) {
	swfobject.addDomLoadEvent(setFocusOnFlash);
}
*/
