
function expand(id,action){
	var s_id=eval("s"+id)
	var dir_id=eval("dir"+id)
	top.status=s_id.innerText;
	top.document.title=s_id.innerText
	getLight(id);
	if(action == '2')
	{
	//if(s_id.href!='')document.parent.frames['righttreeframe'].location.href=s_id.href
	//if(s_id.href!='')parent.righttreeframe.document.location.href=s_id.href
	}
	switch(dir_id.open){//改变"+","-"
	case "true":
		{
		with(dir_id){
		//innerText="<img src='image/closed.gif' width='16' height='16' align='middle'>&nbsp;&nbsp;";
		open="false";
		className='dirclose';}
		if(document.getElementById("t"+id)){
		eval("t"+id).style.display='none'
		document.getElementById("load_"+id).style.display='none';
		return
		}
		else
		document.getElementById("load_"+id).style.display='none';
		break;
		}
	case "false":
		{
		with(dir_id){
		//innerText="-";
		open="true";
		className='diropen';}
		document.getElementById("load_"+id).style.display=''		
		if(document.getElementById("t"+id)){
		eval("t"+id).style.display=''
		eval("load_"+id).style.display='none'
		return
		}
		else 
		document.frames['hifm'].location.replace("hopeis_more.asp?id="+id)
		break;
		}
	default://dir_id.innerText="_";dir_id.className='dirNode';return;
	}
}

function getLight(id){//高亮度显示当前结点
	var s=document.getElementsByTagName("SPAN")
	var sn=document.getElementById("s"+id)
	//for(i=0;i<s.length;i++)if(s[i].className=='node')s[i].style.cssText="color:#000000;background-color:#f2f2f2"
	//sn.style.cssText="color:#000000;background-color:#ffffff;border:1 solid #999999"
}

