window.onload=startList;
function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigation");
		node = navRoot;//getnextnode(navRoot);
		while (node) {
			node = getnextnode(navRoot,node);
			if (node) {
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" menuover";
						o=document.forms["WAAPS"];
						if (o) {
							for (i=0;i<o.elements.length;i++) {
								if (o.elements[i].type) if (o.elements[i].type.substr(0,6)=="select") o.elements[i].style.visibility="hidden";
							}
						}
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" menuover", "");
						o=document.forms["WAAPS"];
						if (o) {
							for (i=0;i<o.elements.length;i++) {
								if (o.elements[i].type) if (o.elements[i].type.substr(0,6)=="select") o.elements[i].style.visibility="visible";
							}
						}
					}
				}
			}
		}
	}
}

function getnextnode(source,o) {
	if (!o) return false;
	oo=false;
	if (o.firstChild) return o.firstChild;
	if (o.nextSibling) return o.nextSibling;
	o=o.parentNode;
	while (!oo && o && (o!=source)) {
		oo=o.nextSibling;
		o=o.parentNode;
	}
	return oo;
}

function PlayVideo(picture,duree){
	//picto = picture;
	wi=360;
	hi=360;
	titre="VideoPlayer";
	if (! duree) duree=30;
	if (isNaN(duree)) duree=30;
	stats="toolbar=no,location=no,directories=no,status=no,menubar=no," ;
	stats += "resizable=yes,width=" + wi + ",height="+hi ;
	imgwin = window.open ("",titre,stats);
	window.setTimeout("makepagevideo('"+picture+"',"+duree+")",100) ;
}
function makepagevideo(pic,duree){
	imgwin.document.clear();
	imgwin.document.writeln("<"+"html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\" lang=\"fr\">");
	imgwin.document.writeln("<head>");
	imgwin.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />");
	imgwin.document.writeln("<title>module</title>");
	imgwin.document.writeln("<sc"+"ript language=\"javascript\">AC_FL_RunContent = 0;</sc"+"ript>");
	imgwin.document.writeln("<sc"+"ript src=\"/vinclude/AC_RunActiveContent.js\" language=\"javascript\"></sc"+"ript>");
	imgwin.document.writeln("</head>");
	imgwin.document.writeln("<bo"+"dy bgcolor=\"#ffffff\">");
	imgwin.document.writeln("<sc"+"ript language=\"javascript\">");
	imgwin.document.writeln("	if (AC_FL_RunContent == 0) {");
	imgwin.document.writeln("		alert(\"Cette page nécessite le fichier AC_RunActiveContent.js. Dans Flash, exécutez « Appliquer la mise à jour du contenu actif » dans le menu Commandes pour copier le fichier AC_RunActiveContent.js dans le dossier de sortie HTML.\");");
	imgwin.document.writeln("	} else {");
	imgwin.document.writeln("		AC_FL_RunContent(");
	imgwin.document.writeln("			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',");
	imgwin.document.writeln("			'width', '342',");
	imgwin.document.writeln("			'height', '332',");
	imgwin.document.writeln("			'src', 'module',");
	imgwin.document.writeln("			'quality', 'high',");
	imgwin.document.writeln("			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',");
	imgwin.document.writeln("			'align', 'middle',");
	imgwin.document.writeln("			'play', 'false',");
	imgwin.document.writeln("			'loop', 'true',");
	imgwin.document.writeln("			'scale', 'exactfit',");
	imgwin.document.writeln("			'wmode', 'window',");
	imgwin.document.writeln("			'devicefont', 'false',");
	imgwin.document.writeln("			'id', 'module',");
	imgwin.document.writeln("			'bgcolor', '#ffffff',");
	imgwin.document.writeln("			'name', 'module',");
	imgwin.document.writeln("			'menu', 'true',");
	imgwin.document.writeln("			'allowScriptAccess','sameDomain',");
	imgwin.document.writeln("			'movie', '/vinclude/module_solo.swf?urlVideo="+pic+"&dureVid="+duree+"',");
	imgwin.document.writeln("			'salign', ''");
	imgwin.document.writeln("			);");
	imgwin.document.writeln("	}");
	imgwin.document.writeln("</sc"+"ript>");
	imgwin.document.writeln("<nosc"+"ript>");
	imgwin.document.writeln("	<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"342\" height=\"332\" id=\"module\" align=\"middle\">");
	imgwin.document.writeln("	<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	imgwin.document.writeln("	<param name=\"movie\" value=\"/vinclude/module_solo.swf?urlVideo="+pic+"&dureVid="+duree+"\" />");
	imgwin.document.writeln("	<param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"exactfit\" />");
	imgwin.document.writeln("	<param name=\"bgcolor\" value=\"#ffffff\" />");
	imgwin.document.writeln("	<embed src=\"/vinclude/module_solo.swf?urlVideo="+pic+"&dureVid="+duree+"\" quality=\"high\" scale=\"exactfit\" bgcolor=\"#ffffff\" width=\"332\" height=\"280\" name=\"module\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	imgwin.document.writeln("	</object>");
	imgwin.document.writeln("</nosc"+"ript>");
	imgwin.document.writeln("</bo"+"dy>");
	imgwin.document.writeln("</ht"+"ml>");

	imgwin.document.close();
	imgwin.focus();
}

