var ledossier;



function dossier(x){
	if (navigator.appName.substring(0,8) != "Netscape"){
		site = window.location.protocol.toString();
		domaine =  window.location.hostname.toString();
		site = site + '//' + domaine + '/';
		x = x.substring(site.length);
		x = x.substring(0,x.indexOf('/'));
	}
	else{
		x = x.substring(1);
		x = x.substring(0,x.indexOf('/'));
	}
	ledossier=x;
	return x;
}

function positionMenu(y){
	lemenu = document.getElementById(y);
	if (navigator.appName.substring(0,8) != "Netscape"){
		var adresse = dossier(window.location.href.toString());
	}
	else{var adresse = dossier(window.location.pathname.toString());}
	var i=0;
	var nb = lemenu.getElementsByTagName('p').length

	while(i<nb){

		lien=dossier(lemenu.getElementsByTagName('p')[i].firstChild.getAttribute('href').toString());

		if (adresse == lien){
			lemenu.getElementsByTagName('p')[i].firstChild.style.backgroundColor='#ffffff';
			lemenu.getElementsByTagName('p')[i].firstChild.style.borderBottom='1px solid #FFFFFF';
			lemenu.getElementsByTagName('p')[i].firstChild.style.color='#002E6E';
			lemenu.getElementsByTagName('p')[i].firstChild.style.fontWeight='bold';
			i=lemenu.getElementsByTagName('p').length;
		}
	i++;
	}
}