//鼠标经过单元格变色
function swapBgColor(elementID, bgColor)
{
	elementID.bgColor = bgColor;
}

//点击展开菜单
function tree(strTreename)
{
	var strTreePic = strTreename ;
	if (eval(strTreename).style.display=='none')
		{eval(strTreename).style.display='';eval(strTreePic).background='images/nav_node_minus.gif'}
	else
		{eval(strTreename).style.display='none';eval(strTreePic).background='images/nav_node_plus.gif'};
}

//树形结构
function act(id)
{
	return document.getElementById(id);
}
var myDocument = "";
function openInfo(id)
{
	if(myDocument == id)
	{
		if(act(myDocument).style.display == "none")
		{
			act(myDocument).style.display = "block";
		}else{
			act(myDocument).style.display = "none";
		}
		return false;
	}
	
	if( myDocument!=""){
		act(myDocument).style.display = "none";
	}
		act(id).style.display = "block";
	myDocument = id;
	return false;
}
