//=================================================================
//==鼠标经过 Tree Node 的时候，加亮
//==参数 ActiveTreeNode 为当前活动 Tree Node，需要先将其打灭
//==参数 ThisTreeNode 为准备点亮的当前经过的 TreeNode
//=================================================================
function TreeNodeOnMouseMove(ActiveTreeNode,ThisTreeNode)
{
	var DynScript="";
	
	//-------------------------------------
	//--打灭当前活动 Node
	//-------------------------------------
	DynScript=DynScript + " if (document.getElementById(\"imgTreeNodeIconActive" + ActiveTreeNode + "\") && document.getElementById(\"imgTreeNodeIcon" + ActiveTreeNode + "\")) ";
	DynScript=DynScript + " { ";
	DynScript=DynScript + " document.getElementById(\"imgTreeNodeIconActive" + ActiveTreeNode + "\").style.display=\"none\"; "
	DynScript=DynScript + " document.getElementById(\"imgTreeNodeIcon" + ActiveTreeNode + "\").style.display=\"inline\"; "
	DynScript=DynScript + " } ";

	//-------------------------------------
	//--点亮当前经过的 Node
	//-------------------------------------
	DynScript=DynScript + " if (document.getElementById(\"imgTreeNodeIconActive" + ThisTreeNode + "\") && document.getElementById(\"imgTreeNodeIcon" + ThisTreeNode + "\")) ";
	DynScript=DynScript + " { ";
	DynScript=DynScript + " document.getElementById(\"imgTreeNodeIconActive" + ThisTreeNode + "\").style.display=\"inline\"; "
	DynScript=DynScript + " document.getElementById(\"imgTreeNodeIcon" + ThisTreeNode + "\").style.display=\"none\"; "
	DynScript=DynScript + " } ";

	//-------------------------------------
	//--执行
	//-------------------------------------
	eval(DynScript);
}

//=================================================================
//==鼠标离开 Tree Node 的时候，打灭
//==参数 ThisTreeNode 为准备打灭的当前离开的 TreeNode
//=================================================================
function TreeNodeOnMouseLeave(ThisTreeNode)
{
	var DynScript="";
	
	//-------------------------------------
	//--打灭当前活动 Node
	//-------------------------------------
	DynScript=DynScript + " if (document.getElementById(\"imgTreeNodeIconActive" + ThisTreeNode + "\") && document.getElementById(\"imgTreeNodeIcon" + ThisTreeNode + "\")) ";
	DynScript=DynScript + " { ";
	DynScript=DynScript + " document.getElementById(\"imgTreeNodeIconActive" + ThisTreeNode + "\").style.display=\"none\"; "
	DynScript=DynScript + " document.getElementById(\"imgTreeNodeIcon" + ThisTreeNode + "\").style.display=\"inline\"; "	
	DynScript=DynScript + " } ";
	
	//-------------------------------------
	//--执行
	//-------------------------------------
	eval(DynScript);
}
