// JavaScript Document
function flash_activites_DoFSCommand(command, args) {
	if (command == "check") {
		var noeuds = document.getElementById('ul_activites').childNodes[1];
		while (noeuds != null) {
			if (noeuds.innerHTML != undefined){
				valeur = noeuds.childNodes[0].childNodes[0].value;
				if (valeur == args){
					noeuds.childNodes[0].childNodes[0].checked = true;
				}
			}
			noeuds = noeuds.nextSibling;
		}
		check_activites(args);
	}
	if (command == "uncheck") {
		var noeuds = document.getElementById('ul_activites').childNodes[1];
		while (noeuds != null) {
			if (noeuds.innerHTML != undefined){
				valeur = noeuds.childNodes[0].childNodes[0].value;
				if (valeur == args){
					noeuds.childNodes[0].childNodes[0].checked = false;
				}
			}
			noeuds = noeuds.nextSibling;
		}
		check_activites(args);
	}
}
// FScommand pour IE
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<script language=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub flash_activites_FSCommand(ByVal command, ByVal args)\n');
  document.write('call flash_activites_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</script\> \n');
}
