//  Script compatible avec IE4,IE5,NS4 et NS6
//	DGire 23/04/01

var IE4 = (document.all && !document.getElementById) ? true : false;
var NS4 = (document.layers) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;
var NS6 = (document.getElementById && !document.all) ? true : false;
var old_hoverColor;

function GetDocObject(whName)
{
	var whObject=eval("document."+whName);
	
	if(IE4)
			var whObject=eval("document.all."+whName);
	if(NS4)
			var whObject=eval("document."+whName);
	if(NS6 || IE5)
			var whObject=document.getElementById(whName);
	
	return(whObject);
}

function menu_lk_hover(whElement)
{
	if(!NS4) {
		if(whElement.toString().indexOf("[obj")>=0)
			var whStyle = whElement.style;
		else
			var whStyle = GetDocObject(whElement.toString()).style;

		var whHoverColor=(menu_lk_hover.arguments.length>1)?menu_lk_hover.arguments[1]:"#FFFFFF";
		
		old_hoverColor=whStyle.backgroundColor;
		whStyle.backgroundColor=whHoverColor;
	}
}

function menu_lk_out(whElement)
{
	if(!NS4) {
		if(whElement.toString().indexOf("[obj")>=0)
			var whStyle = whElement.style;
		else
			var whStyle = GetDocObject(whElement.toString()).style;

		whStyle.backgroundColor=old_hoverColor;
	}
}