my_pct_menu = new Image();
my_pct_menu.src = "img.gif";
sourY = 0;
sourX = 0;
dfg = "";
expd = "";
UA = navigator.userAgent.toLowerCase();
is_gecko = /gecko/i.test(UA);
is_opera = /opera/i.test(UA);
is_ie = /msie/i.test(UA) && !is_opera && !(/mac_powerpc/i.test(UA));
fadeAut = new Array();
fadePas = new Array();
last_id = "";
ok_hide = 0;
run_out = new Array();
run_in = new Array();

function data_of(txt)
{
	var data = txt;
	data = data.replace(/[\t\n\r ]+/g, " ");
	esp = "  ";
	while(data.indexOf(esp) != -1) data = data.split(esp).join(" ");
	data = data.split("> <").join("><");
	if(data.charAt(0) == " ") data = data.substring(1, data.length);
	if(data.charAt(data.length - 1) == " ") data = data.substring(0, data.length - 1);
	return data
}

function GetElem(e)
{
	if(document.layers) return document.layers[e];
	else
	return document.getElementById(e)
}

function ReturnFade(sr, sg, sb, er, eg, eb, step)
{
	hexa2 = new Array();
	for(i = 0; i < 10; i++) eval("hexa2[i]='" + i + "'");
	hexa2[10] = "a";
	hexa2[11] = "b";
	hexa2[12] = "c";
	hexa2[13] = "d";
	hexa2[14] = "e";
	hexa2[15] = "f";
	cou2 = "";
	cou2 = new Array();
	if(ReturnFade.arguments.length == 3)
	{
		coldeg1 = sr.toLowerCase();
		coldeg2 = sg.toLowerCase();
		step = sb;
		hexadecimal = "0123456789abcdef";
		sr = parseInt((hexadecimal.indexOf(coldeg1.charAt(0))) * 16 + hexadecimal.indexOf(coldeg1.charAt(1)));
		sg = parseInt((hexadecimal.indexOf(coldeg1.charAt(2))) * 16 + hexadecimal.indexOf(coldeg1.charAt(3)));
		sb = parseInt((hexadecimal.indexOf(coldeg1.charAt(4))) * 16 + hexadecimal.indexOf(coldeg1.charAt(5)));
		er = parseInt((hexadecimal.indexOf(coldeg2.charAt(0))) * 16 + hexadecimal.indexOf(coldeg2.charAt(1)));
		eg = parseInt((hexadecimal.indexOf(coldeg2.charAt(2))) * 16 + hexadecimal.indexOf(coldeg2.charAt(3)));
		eb = parseInt((hexadecimal.indexOf(coldeg2.charAt(4))) * 16 + hexadecimal.indexOf(coldeg2.charAt(5)))
	}
	for(var i = 0; i <= step; i++) eval("cou2[" + i + "]='" +(hexa2[(hexa2.length + Math.floor((Math.floor(sr *((step - i) / step) + er *(i / step))) / 16)) % hexa2.length] + hexa2[(hexa2.length +(Math.floor(sr *((step - i) / step) + er *(i / step))) % 16) % hexa2.length] + hexa2[(Math.floor((Math.floor(sg *((step - i) / step) + eg *(i / step))) / 16)) % hexa2.length] + hexa2[(hexa2.length +(Math.floor(sg *((step - i) / step) + eg *(i / step))) % 16) % hexa2.length] + hexa2[(hexa2.length + Math.floor((Math.floor(sb *((step - i) / step) + eb *(i / step))) / 16)) % hexa2.length] + hexa2[(hexa2.length +(Math.floor(sb *((step - i) / step) + eb *(i / step))) % 16) % hexa2.length]) + "'");
	return cou2
}
colFad1 = ReturnFade(colorBkg1, colorBkg2, pasCol);
colFad2 = ReturnFade(colorLink1, colorLink2, pasCol);
flag = new Array();
v1 = new Array();
if(!is_ie)
{
	netscape = 1;
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = bouge;
	time = 100
}
else document.onmousemove = bouge;

function bouge(e)
{
	sourX =(!document.all) ? e.pageX : document.body.scrollLeft + event.clientX;
	sourY =(!document.all) ? e.pageY : document.body.scrollTop + event.clientY;
	flg = 1
}

function move2(te)
{
	if(document.layers) desc = document.layers["description_table"];
	else desc = GetElem("description_table").style;
	if(te)
	{
		desc.top = sourY + 20;
		desc.left = sourX;
		if(dfg != te) GetElem("description_table").innerHTML = te;
		dfg = te;
		setTimeout("move2(dfg)", 50)
	}
	else
	{
		dfg = "";
		GetElem("description_table").innerHTML = "";
		GetElem("description_table").style.top = -100 + "px"
	}
}

function getLeft(e)
{
	return parseFloat(GetElem(e).offsetLeft)
}

function getTop(e)
{
	return parseFloat(GetElem(e).offsetTop)
}

function getWidth(e)
{
	if(GetElem(e).style.display != "none") return parseFloat(GetElem(e).offsetWidth);
	else
	{
		var node_copy = GetElem(e).cloneNode(true);
		node_copy.style.display = "";
		return node_copy.offsetWidth
	}
}

function getHeight(e)
{
	if(GetElem(e).style.display != "none") return parseFloat(GetElem(e).offsetHeight);
	else
	{
		var node_copy = GetElem(e).cloneNode(true);
		node_copy.style.display = "";
		return node_copy.offsetHeight
	}
}

function recadre(e, top, right, bottom, left)
{
	if(!document.layers) GetElem(e).style.clip = "rect(" + parseFloat(top) + "px," + parseFloat(right) + "px," + parseFloat(bottom) + "px," + parseFloat(left) + "px)";
	else
	{
		document.layers[e].clip.top = parseFloat(top) + "px";
		document.layers[e].clip.right = parseFloat(right) + "px";
		document.layers[e].clip.bottom = parseFloat(bottom) + "px";
		document.layers[e].clip.left = parseFloat(left) + "px"
	}
}

function animInInit(e)
{
	if(typeof my_hide_timeout != "undefined") clearTimeout(my_hide_timeout);
	var id = e;
	ok_hide = 0;
	if(id.lastIndexOf("_") == -1) var id_deb = id.substring(0, id.indexOf("#"));
	else
	var id_deb = id.substring(0, id.indexOf("_"));
	if((last_id.substring(0, last_id.lastIndexOf("_")) + "#" + last_id.substring(last_id.lastIndexOf("_") + 1, last_id.length)).indexOf(id) == parseInt(-1))
	{
		if(id.lastIndexOf("_") == -1) var id_deb = id.substring(0, id.indexOf("#"));
		else
		var id_deb = id.substring(0, id.indexOf("_"));
		if(id.indexOf("_") != parseInt(-1)) var id_rdct = id.substring(id.indexOf("_") + 1, id.indexOf("#"));
		else
		var id_rdct = "";
		var expd_temp = expd.split("#");
		for(var i = 0; i < expd_temp.length; i++) if((id_rdct.split("_").length < expd_temp[i].split("_").length &&(expd_temp[i].split("_") != "" && id_rdct != "") ||(expd_temp[i].split("_") != "" && id_rdct == "")) &&(id_deb + "_" + expd_temp[i]).indexOf(id.substring(0, id.lastIndexOf("#")) + "_" + id.substring(id.lastIndexOf("#") + 1, id.length)) == -1)
		{
			expd = "#" + expd + "#";
			expd_tmp = expd.substring(0, expd.indexOf("#" + expd_temp[i] + "#"));
			expd_tmp += expd.substring(expd.indexOf("#", expd.indexOf("#" + expd_temp[i] + "#") + 1), expd.length);
			if(expd_tmp == "#") expd_tmp = "##";
			expd = expd_tmp.substring(1, expd_tmp.length - 1);
			if(is_ie)
			{
				document.getElementById(id_deb + "_" + expd_temp[i]).style.filter = "revealTrans(Transition=12)";
				document.getElementById(id_deb + "_" + expd_temp[i]).filters.revealTrans.Apply()
			}
			GetElem(id_deb + "_" + expd_temp[i]).style.visibility = "hidden";
			if(is_ie) document.getElementById(id_deb + "_" + expd_temp[i]).filters.revealTrans.Play();
			animOutInit(id_deb +(expd_temp[i].lastIndexOf("_") != -1 ? "_" : "") + expd_temp[i].substring(0, expd_temp[i].lastIndexOf("_")) + "#" + expd_temp[i].substring(expd_temp[i].lastIndexOf("_") + 1, expd_temp[i].length))
		}
		if(!GetElem(id.substring(0, id.lastIndexOf("#")) + "_" + id.substring(id.lastIndexOf("#") + 1, id.length))) last_id = id.substring(0, id.lastIndexOf("#")) + "_" + id.substring(id.lastIndexOf("#") + 1, id.length)
	}
	fadeAut[id] = 1;
	animIn(id)
}

function hide_menu(id_deb)
{
	if(ok_hide)
	{
		last_id = "";
		var expd_temp = expd.split("#");
		for(var i = 0; i < expd_temp.length; i++)
		{
			expd = "#" + expd + "#";
			expd_tmp = expd.substring(0, expd.indexOf("#" + expd_temp[i] + "#"));
			expd_tmp += expd.substring(expd.indexOf("#", expd.indexOf("#" + expd_temp[i] + "#") + 1), expd.length);
			if(expd_tmp == "#") expd_tmp = "##";
			expd = expd_tmp.substring(1, expd_tmp.length - 1);
			if(GetElem(id_deb + "_" + expd_temp[i]))
			{
				if(is_ie)
				{
					document.getElementById(id_deb + "_" + expd_temp[i]).style.filter = "revealTrans(Transition=12)";
					document.getElementById(id_deb + "_" + expd_temp[i]).filters.revealTrans.Apply()
				}
				GetElem(id_deb + "_" + expd_temp[i]).style.visibility = "hidden";
				if(is_ie) document.getElementById(id_deb + "_" + expd_temp[i]).filters.revealTrans.Play();
				animOutInit(id_deb +(expd_temp[i].lastIndexOf("_") != -1 ? "_" : "") + expd_temp[i].substring(0, expd_temp[i].lastIndexOf("_")) + "#" + expd_temp[i].substring(expd_temp[i].lastIndexOf("_") + 1, expd_temp[i].length))
			}
		}
	}
	ok_hide = 0
}

function animOutInit(e)
{
	var id = e;
	if(id.lastIndexOf("_") == -1) var id_deb = id.substring(0, id.indexOf("#"));
	else
	var id_deb = id.substring(0, id.indexOf("_"));
	var id = e;
	fadeAut[id] = 0;
	ok_hide = 1;
	my_hide_timeout = setTimeout("hide_menu('" + id_deb + "')", time_out);
	animOut(id)
}

function out_hr(e)
{
	var id = e.id;
	last_id = "";
	if(id.lastIndexOf("_") == -1) var id_deb = id.substring(0, id.indexOf("#"));
	else
	var id_deb = id.substring(0, id.indexOf("_"));
	ok_hide = 1;
	my_hide_timeout = setTimeout("hide_menu('" + id_deb + "')", time_out)
}

function animIn(e)
{
	var id = e;
	if(fadeAut[id] && !run_in[id])
	{
		run_in[id] = 1;
		if(animIn.arguments.length == 1)
		{
			if(fadePas[id] == null) fadePas[id] = 0;
			GetElem(id).style.backgroundColor = "#" + colFad1[fadePas[id]];
			GetElem(id).style.color = "#" + colFad2[fadePas[id]];
			if(GetElem(id).getElementsByTagName("a").length > 0) GetElem(id).getElementsByTagName("a")[0].style.color = "#" + colFad2[fadePas[id]];
			setTimeout("run_in['" + id + "'] = !run_in['" + id + "'];animIn('" + id + "'," + fadePas[id] + ")", 50)
		}
		else if(animIn.arguments[1] <= pasCol)
		{
			var i = parseInt(animIn.arguments[1]);
			GetElem(id).style.backgroundColor = "#" + colFad1[i];
			GetElem(id).style.color = "#" + colFad2[fadePas[id]];
			if(GetElem(id).getElementsByTagName("a").length > 0) GetElem(id).getElementsByTagName("a")[0].style.color = "#" + colFad2[fadePas[id]];
			fadePas[id] = eval(i);
			setTimeout("run_in['" + id + "'] = !run_in['" + id + "'];animIn('" + id + "'," + eval(i + 1) + ")", 50)
		}
		else if(animIn.arguments[1] > pasCol)
		{
			GetElem(id).style.backgroundColor = "#" + colFad1[pasCol];
			GetElem(id).style.color = "#" + colFad2[pasCol];
			run_in[id] = 0;
			if(GetElem(id).getElementsByTagName("a").length > 0) GetElem(id).getElementsByTagName("a")[0].style.color = "#" + colFad2[pasCol]
		}
	}
}

function animOut(e)
{
	var id = e;
	if(fadeAut[id]) run_out[id] = 0;
	if(!fadeAut[id] && !run_out[id])
	{
		run_out[id] = 1;
		if(animOut.arguments.length == 1)
		{
			if(fadePas[id] == null) fadePas[id] = 0;
			GetElem(id).style.backgroundColor = "#" + colFad1[fadePas[id]];
			GetElem(id).style.color = "#" + colFad2[fadePas[id]];
			if(GetElem(id).getElementsByTagName("a").length > 0) GetElem(id).getElementsByTagName("a")[0].style.color = "#" + colFad2[fadePas[id]];
			setTimeout("run_out['" + id + "'] = !run_out['" + id + "'];animOut('" + id + "'," + fadePas[id] + ")", 50)
		}
		else if(animOut.arguments[1] >= 0)
		{
			var i = parseInt(animOut.arguments[1]);
			GetElem(id).style.backgroundColor = "#" + colFad1[i];
			GetElem(id).style.color = "#" + colFad2[fadePas[id]];
			if(GetElem(id).getElementsByTagName("a").length > 0) GetElem(id).getElementsByTagName("a")[0].style.color = "#" + colFad2[fadePas[id]];
			fadePas[id] = eval(i);
			setTimeout("run_out['" + id + "'] = !run_out['" + id + "'];animOut('" + id + "'," + eval(i - 1) + ")", 50)
		}
		else if(animOut.arguments[1] < 0)
		{
			GetElem(id).style.backgroundColor = "#" + colFad1[0];
			run_out[id] = 0;
			GetElem(id).style.color = "#" + colFad2[0];
			if(GetElem(id).getElementsByTagName("a").length > 0) GetElem(id).getElementsByTagName("a")[0].style.color = "#" + colFad2[0]
		}
	}
}

function develop_menu_barre(a)
{
	var id = a;
	if(last_id.indexOf(a) == parseInt(-1))
	{
		expd +=(expd == "" ? "" : "#") + id.substring(id.indexOf("_") + 1, id.length);
		var name = id.substring(0, id.lastIndexOf("_"));
		var item_elm = name + "#" + id.substring(id.lastIndexOf("_") + 1, id.length);
		var left = eval(getLeft(name));
		var top = getTop(name) + getHeight(name);
		for(var i = 0; i < parseInt(id.substring(id.lastIndexOf("_") + 1, id.length)); i++) left += parseInt(getWidth(name + "#" + i));
		if(!is_ie) GetElem(id).style.position = "absolute";
		else GetElem(id).style.position = "absolute";
		GetElem(id).style.top = top + "px";
		GetElem(id).style.left = left + "px";
		GetElem(id).style.clip = "rect(0px,0px,0px,0px)";
		GetElem(id).style.visibility = "visible";
		animclip_barre(id);
		last_id = a
	}
}

function develop_menu(a)
{
	var id = a;
	if(last_id.indexOf(a) == parseInt(-1))
	{
		expd +=(expd == "" ? "" : "#") + id.substring(id.indexOf("_") + 1, id.length);
		var name = id.substring(0, id.lastIndexOf("_"));
		var item_elm = name + "#" + id.substring(id.lastIndexOf("_") + 1, id.length);
		var left = eval(getLeft(name) + getWidth(item_elm));
		var top = getTop(name);
		for(var i = 0; i < parseInt(id.substring(id.lastIndexOf("_") + 1, id.length)); i++) top += parseInt(getHeight(name + "#" + i));
		if(!is_ie) GetElem(id).style.position = "absolute";
		else GetElem(id).style.position = "absolute";
		GetElem(id).style.top = top + "px";
		GetElem(id).style.left = eval(left +(!is_opera ? 5 : 0)) + "px";
		GetElem(id).style.clip = "rect(0px,0px,0px,0px)";
		GetElem(id).style.visibility = "visible";
		animclip(id);
		last_id = a
	}
}

function animclip(e)
{
	var id = e;
	if(animclip.arguments.length == 1)
	{
		recadre(id, 0, 0, 0, 0);
		animclip(id, getWidth(id) / pas_clip)
	}
	else
	{
		recadre(id, 0, pas_clip + animclip.arguments[1], getHeight(id), 0);
		if(eval(animclip.arguments[1]) <= getWidth(id)) setTimeout("animclip('" + id + "'," + eval(getWidth(id) / pas_clip + animclip.arguments[1]) + ")", 50);
		else if(eval(animclip.arguments[1]) > getWidth(id)) recadre(id, 0, getWidth(id), getHeight(id), 0)
	}
}

function animclip_barre(e)
{
	var id = e;
	if(animclip_barre.arguments.length == 1)
	{
		recadre(id, 0, 0, 0, 0);
		animclip_barre(id, getHeight(id) / pas_clip_barre)
	}
	else
	{
		recadre(id, 0, getWidth(id), pas_clip_barre + animclip_barre.arguments[1], 0);
		if(eval(animclip_barre.arguments[1]) <= getHeight(id)) setTimeout("animclip_barre('" + id + "'," + eval(getHeight(id) / pas_clip_barre + animclip_barre.arguments[1]) + ")", 50);
		else if(eval(animclip_barre.arguments[1]) > getHeight(id)) recadre(id, 0, getWidth(id), getHeight(id), 0)
	}
}

function load_menu(menu, name)
{
	GetElem(menu).innerHTML = data_of(GetElem(menu).innerHTML);
	create_sub_menu(GetElem(menu), name);
	GetElem(name).style.visibility = "visible";
	if(!is_ie) GetElem(name).style.position = "absolute";
	else GetElem(name).style.position = "absolute";
	GetElem(name).style.left = 0 + "px";
	for(i = 0; i < document.getElementsByTagName("DIV").length; i++) document.getElementsByTagName("div")[i].innerHTML = document.getElementsByTagName("div")[i].innerHTML;
	GetElem(name).style.top = getCenter(name) + "px"
}

function load_barre_menu(menu, name)
{
	document.body.onclick = function()
	{
		hide_menu("menu1")
	};
	GetElem(menu).innerHTML = data_of(GetElem(menu).innerHTML);
	create_barre_menu(GetElem(menu), name);
	for(i = 0; i < document.getElementsByTagName("DIV").length; i++) document.getElementsByTagName("div")[i].innerHTML = document.getElementsByTagName("div")[i].innerHTML;
	GetElem(name).style.left = getMiddle(name) + "px";
	setInterval(function()
	{
		if(getLeft(name) != getMiddle(name)) GetElem(name).style.left = getMiddle(name) + "px"
	}, 500)
}

function create_barre_menu(e, name)
{
	var menu = e;
	var id_deb = name;
	var chld = menu.childNodes;
	var my_div = document.createElement("div");
	my_div.setAttribute("id", name);
	my_div.style.position = "absolute";
	my_div.style.zIndex = 100;
	var my_table = document.createElement("table");
	my_table.setAttribute("cellspacing", 0);
	my_table.setAttribute("cellpadding", 0);
	my_table.setAttribute("class", "cls_table");
	var my_table_chld_tr = document.createElement("tr");
	my_table.appendChild(my_table_chld_tr);
	var link;
	if(name.indexOf("_") != parseInt(-1)) var id_rdct = name.substring(name.indexOf("_") + 1, name.length) + "_";
	else
	var id_rdct = "";
	document.body.appendChild(my_div);
	GetElem(name).style.position = "absolute";
	GetElem(name).style.top = barre_top + "px";
	if(is_ie)
	{
		GetElem(name).onselectstart = new Function("return false");
		GetElem(name).unselectable = "on"
	}
	else if(is_gecko) GetElem(name).style.setProperty("-moz-user-select", "none", "");
	for(var i = 0; i < chld.length; i++)
	{
		run_in[name + "#" + i] = 0;
		run_out[name + "#" + i] = 0;
		var my_table_chld_td = document.createElement("td");
		if(chld[i].tagName.toLowerCase() == "li" && chld[i].getElementsByTagName("ul").length == 0)
		{
			if(link =(chld[i].getElementsByTagName("a")[0]))
			{
				var my_table_chld_lnk = document.createElement("a");
				my_lnk = link.getAttribute("href")
			}
			clone_node(chld[i], my_table_chld_td);
			my_table_chld_td.style.color = "#" + colorLink1;
			my_table_chld_td.setAttribute("class", "my_text_barre");
			my_table_chld_td.setAttribute("onmouseover", "animInInit(this.id)");
			my_table_chld_td.setAttribute("onmouseout", "animOutInit(this.id)");
			my_table_chld_td.setAttribute("id", name + "#" + i);
			if(my_table_chld_td.getElementsByTagName("a").length > 0) my_table_chld_td.getElementsByTagName("a")[0].style.color = "#" + colorLink1;
			if(link)
			{
				my_table_chld_td.setAttribute("onclick", "document.location.href='" + my_lnk.split("'").join("\\'") + "';ok_hide=1;hide_menu('" + id_deb + "');");
				my_table_chld_td.style.color = "#" + colorLink1
			}
			my_table_chld_tr.appendChild(my_table_chld_td);
			my_table.appendChild(my_table_chld_tr);
			my_div.appendChild(my_table)
		}
		else if(chld[i].tagName.toLowerCase() == "li" && chld[i].getElementsByTagName("ul").length != 0)
		{
			if(link =(chld[i].getElementsByTagName("a")[0]))
			{
				var my_table_chld_lnk = document.createElement("a");
				my_lnk = link.getAttribute("href")
			}
			clone_node(chld[i], my_table_chld_td);
			my_table_chld_td.setAttribute("class", "my_text_barre");
			if(is_ie) my_table_chld_td.unselectable = "on";
			my_table_chld_td.childNodes[0].removeChild(my_table_chld_td.childNodes[0].lastChild);
			my_table_chld_td.style.color = "#" + colorLink1;
			my_table_chld_td.setAttribute("id", name + "#" + i);
			my_table_chld_td.setAttribute("onmouseover", "animInInit(this.id);develop_menu_barre('" + name + "_" + i + "')");
			my_table_chld_td.setAttribute("onmouseout", "if(typeof my_hide_timeout!='undefined'){clearTimeout(my_hide_timeout);}ok_hide=1;my_hide_timeout=setTimeout(\"hide_menu('" + id_deb + "')\", time_out)");
			my_table_chld_td.setAttribute("id", name + "#" + i);
			if(my_table_chld_td.getElementsByTagName("a").length > 0) my_table_chld_td.getElementsByTagName("a")[0].style.color = "#" + colorLink1;
			if(link)
			{
				my_table_chld_td.setAttribute("onclick", "document.location.href='" + my_lnk.split("'").join("\\'") + "';ok_hide=1;hide_menu('" + id_deb + "');");
				my_table_chld_td.style.color = "#" + colorLink1
			}
			my_table_chld_tr.appendChild(my_table_chld_td);
			my_table.appendChild(my_table_chld_tr);
			create_sub_menu(chld[i].getElementsByTagName("ul")[0], name + "_" + i)
		}
	}
}
show_menu = new Array();

function create_sub_menu(e, name)
{
	var menu = e;
	if(name.lastIndexOf("_") == -1) var id_deb = name.substring(0, name.indexOf("#"));
	else
	var id_deb = name.substring(0, name.indexOf("_"));
	var chld = menu.childNodes;
	var my_div = document.createElement("div");
	my_div.setAttribute("id", name);
	my_div.style.position = "absolute";
	my_div.style.zIndex = 400;
	my_div.style.visibility = "hidden";
	var my_table = document.createElement("table");
	my_table.setAttribute("cellspacing", 0);
	my_table.setAttribute("cellpadding", 0);
	my_table.setAttribute("class", "table_cls");
	var link;
	if(name.indexOf("_") != parseInt(-1)) var id_rdct = name.substring(name.indexOf("_") + 1, name.length) + "_";
	else
	var id_rdct = "";
	document.body.appendChild(my_div);
	if(is_ie)
	{
		GetElem(name).onselectstart = new Function("return false");
		GetElem(name).unselectable = "on"
	}
	else if(is_gecko) GetElem(name).style.setProperty("-moz-user-select", "none", "");
	var my_menu_animate_html = "<ul class=\"animate_menu\">\n";
	for(var i = 0; i < chld.length; i++)
	{
		if(chld[i].tagName.toLowerCase() == "li" && chld[i].getElementsByTagName("ul").length == 0 && chld[i].hasChildNodes()) my_menu_animate_html += "<li>" + chld[i].innerHTML + "</li>\n";
		else if(chld[i].tagName.toLowerCase() == "li" && chld[i].getElementsByTagName("ul").length != 0 && chld[i].hasChildNodes()) my_menu_animate_html += "<li>" + chld[i].innerHTML.substring(0, chld[i].innerHTML.toLowerCase().indexOf("<ul>")) + "</li>\n"
	}
	my_menu_animate_html += "</ul>";
	show_menu[name] = function()
	{
		current_men = my_menu_animate_html;
		if(previous_men != current_men)
		{
			document.getElementById("animate_menu").style.display = "none";
			previous_men = current_men;
			document.getElementById("animate_menu").innerHTML = current_men;
			setTimeout("animate.create_animate_menu();document.getElementById('animate_menu').style.display=''", 1000)
		}
	};
	for(var i = 0; i < chld.length; i++)
	{
		run_in[name + "#" + i] = 0;
		run_out[name + "#" + i] = 0;
		var my_table_chld_tr = document.createElement("tr");
		my_table_chld_tr.setAttribute("class", "my_text_tr");
		var my_table_chld_td = document.createElement("td");
		if(chld[i].tagName.toLowerCase() == "li" && chld[i].getElementsByTagName("ul").length == 0)
		{
			if(link =(chld[i].getElementsByTagName("a")[0]))
			{
				var my_table_chld_lnk = document.createElement("a");
				my_lnk = link.getAttribute("href")
			}
			clone_node(chld[i], my_table_chld_td);
			if(!chld[i].hasChildNodes())
			{
				my_hr = document.createElement("hr");
				my_table_chld_td.appendChild(my_hr);
				if(is_ie) my_table_chld_td.unselectable = "on";
				my_table_chld_tr.setAttribute("onmouseover", "if(typeof my_hide_timeout!='undefined'){clearTimeout(my_hide_timeout);}ok_hide=0;");
				my_table_chld_tr.setAttribute("onmouseout", "out_hr(this)")
			}
			else
			{
				my_table_chld_td.setAttribute("class", "my_text");
				my_table_chld_tr.setAttribute("onmouseover", "animInInit(this.id)");
				my_table_chld_tr.style.color = "#" + colorLink1;
				my_table_chld_tr.setAttribute("onmouseout", "animOutInit(this.id)")
			}
			my_table_chld_tr.setAttribute("id", name + "#" + i);
			my_table_chld_td.setAttribute("colspan", "2");
			if(my_table_chld_td.getElementsByTagName("a").length > 0) my_table_chld_td.getElementsByTagName("a")[0].style.color = "#" + colorLink1;
			my_table_chld_tr.style.color = "#" + colorLink1;
			my_table_chld_tr.appendChild(my_table_chld_td);
			previous_men = "";
			if(link)
			{
				my_table_chld_tr.setAttribute("onclick", "ok_hide=1;hide_menu('" + id_deb + "');show_menu['" + name + "']();document.location.href='" + my_lnk.split("'").join("\\'") + "'");
				my_table_chld_tr.style.color = "#" + colorLink1
			}
			my_table.appendChild(my_table_chld_tr);
			my_div.appendChild(my_table)
		}
		else if(chld[i].tagName.toLowerCase() == "li" && chld[i].getElementsByTagName("ul").length != 0)
		{
			clone_node(chld[i], my_table_chld_td);
			my_table_chld_td.setAttribute("class", "my_text");
			if(is_ie) my_table_chld_td.unselectable = "on";
			if(link =(chld[i].getElementsByTagName("a")[0]))
			{
				var my_table_chld_lnk = document.createElement("a");
				my_lnk = link.getAttribute("href")
			}
			my_table_chld_td.childNodes[0].removeChild(my_table_chld_td.childNodes[0].lastChild);
			my_table_chld_tr.style.color = "#" + colorLink1;
			if(my_table_chld_td.getElementsByTagName("a").length > 0) my_table_chld_td.getElementsByTagName("a")[0].style.color = "#" + colorLink1;
			my_table_chld_tr.appendChild(my_table_chld_td);
			my_table_chld_td2 = document.createElement("td");
			my_arrow = document.createElement("img");
			my_arrow.setAttribute("src", "img.gif");
			my_arrow.setAttribute("width", "10");
			my_arrow.setAttribute("height", "10");
			my_table_chld_td2.setAttribute("align", "right");
			my_table_chld_td2.appendChild(my_arrow);
			my_table_chld_tr.appendChild(my_table_chld_td2);
			my_table_chld_tr.setAttribute("onmouseover", "animInInit(this.id);develop_menu('" + name + "_" + i + "')");
			my_table_chld_tr.setAttribute("onmouseout", "");
			if(link)
			{
				my_table_chld_tr.setAttribute("onclick", "ok_hide=1;hide_menu('" + id_deb + "');show_menu['" + name + "']();document.location.href='" + my_lnk.split("'").join("\\'") + "'");
				my_table_chld_tr.style.color = "#" + colorLink1
			}
			my_table_chld_tr.setAttribute("id", name + "#" + i);
			my_table.appendChild(my_table_chld_tr);
			my_div.appendChild(my_table);
			create_sub_menu(chld[i].getElementsByTagName("ul")[0], name + "_" + i)
		}
	}
}

function clone_node(node1, node2)
{
	var cln_source = node1;
	var cln_dest = node2;
	var my_div = document.createElement("nobr");
	my_div.innerHTML = cln_source.innerHTML;
	my_div.innerHTML = my_div.innerHTML.split("<li>").join("").split("</li>").join("").split("<LI>").join("").split("</LI>").join("");
	var cln_node1 = my_div.cloneNode(true);
	cln_dest.appendChild(cln_node1)
}

function getCenter(e)
{
	if(is_ie) return(document.body.clientHeight - getHeight(e)) / 2;
	else
	return(window.innerHeight - getHeight(e)) / 2
}

function getMiddle(e)
{
	if(is_ie) return(document.documentElement.clientWidth - getWidth(e)) / 2;
	else
	return(window.innerWidth - getWidth(e)) / 2 -(window.innerHeight <= document.body.offsetHeight ? 10 : 0)
}

function noclic(clic)
{
	var mess = String.fromCharCode(74, 117, 110, 105, 111, 114, 32, 67, 111, 110, 115, 117, 108, 116, 105, 110, 103, 32, 67, 108, 117, 98, 10, 80, 111, 119, 101, 114, 101, 100, 32, 98, 121, 32, 74, 111, 110, 97, 116, 104, 97, 110, 32, 65, 102, 108, 97, 108, 111, 10, 169, 32, 67, 111, 112, 121, 114, 105, 103, 104, 116, 32, 50, 48, 48, 55);
	if(navigator.appName == "Netscape" && clic.which == 3) alert(mess);
	else if(navigator.appName == "Microsoft Internet Explorer" && event.button == 2) alert(mess)
}

function blocking(nr)
{
	if(document.layers)
	{
		current =(document.layers[nr].display == "none") ? "block" : "none";
		document.layers[nr].display = current
	}
	else if(document.all)
	{
		current =(document.all[nr].style.display == "none") ? "block" : "none";
		document.all[nr].style.display = current
	}
	else if(document.getElementById)
	{
		vista =(document.getElementById(nr).style.display == "none") ? "block" : "none";
		document.getElementById(nr).style.display = vista
	}
}

function mask(nr)
{
	if(document.getElementById) document.getElementById(nr).style.display = "none";
	else if(document.layers) document.layers[nr].display = "none";
	else if(document.all) document.all[nr].style.display = "none"
}

function displ(nr)
{
	if(document.getElementById) document.getElementById(nr).style.display = "";
	else if(document.layers) document.layers[nr].display = "";
	else if(document.all) document.all[nr].style.display = ""
}

function chk_radio(my_form)
{
	ok = true;
	f = my_form;
	for(i = 0; i < f.elements.length; i++) if(f.elements[i].type == "radio" && f.elements[i].name != "age")
	{
		current_name = f.elements[i].name;
		nochk = 0;
		while(f.elements[i].name == current_name)
		{
			if(f.elements[i].checked) nochk = 1;
			i++
		}
		i--;
		if(nochk == 0)
		{
			alert("Vous n'avez pas répondu à toutes les questions du sondage");
			ok = false;
			break
		}
	}
	return ok
}

