<!-- Ce script est un user exit qui est appelé à chaque chargement de page 
// il permet notamment de repositionner le menu de l'applet KawaTree d'une manière dynamique 
function menu()
{
// On récupère l'adresse de la page en cours
var lurl = self.location.href;			// l'url
// test des pages (indexOf donne -1 si pas trouvé)
var normal = lurl.indexOf('plan_',0);  // ces pages sont en menu normal
if (normal > -1) {return;}

var histo = lurl.indexOf('hist',0) + lurl.indexOf('auto',0) + lurl.indexOf('stel',0) + lurl.indexOf('libe',0);
histo = histo + lurl.indexOf('chat',0) + lurl.indexOf('fort',0) + lurl.indexOf('armo',0) + lurl.indexOf('colp',0);
histo = histo + lurl.indexOf('gaug',0) + lurl.indexOf('arpa',0) + lurl.indexOf('rich',0) + lurl.indexOf('bata',0);
histo = histo + lurl.indexOf('cart',0) + lurl.indexOf('dans',0);
if (histo > -14) {
	document.Arborescence.expandNode('historique', 'e'); // -14 car il y a 14 tests
	return;
}
var cult = lurl.indexOf('cine',0) + lurl.indexOf('ibli',0) + lurl.indexOf('asso',0) + lurl.indexOf('band',0);
if (cult > -4) {
	document.Arborescence.expandNode('Culture', 'e');
	return;
}
var tourisme = lurl.indexOf('visi',0) + lurl.indexOf('plan',0) + lurl.indexOf('vue',0) + lurl.indexOf('synd',0);
tourisme = tourisme + lurl.indexOf('envi',0);
if (tourisme > -5) {
	document.Arborescence.expandNode('Tourisme', 'e');
	return;
}
var inso = lurl.indexOf('chem',0) + lurl.indexOf('clim',0) + lurl.indexOf('toma',0) + lurl.indexOf('feui',0);
if (inso > -4) {
	document.Arborescence.expandNode('Insolite', 'e');
	return;
}
var spor = lurl.indexOf('myga',0);
if (spor > -1) {
	document.Arborescence.expandNode('Sports', 'e');
	return;
}
}
//-->