var h_tree_id = "";
function tree_show(obj)
{
	if(obj==null) return;
	var ph = obj.parentNode;
	for(var i=0;i<ph.childNodes.length;i++)
	{
		var cno = ph.childNodes[i];
		if(typeof(cno.tagName)!="string") continue;
		var cno_no = cno.getElementsByTagName("UL")[0];
		if(obj==cno){
			h_tree_id = cno.id;
			cno.className = "currentFocusM"
			cno_no.style.display = "block";
		}else{
			cno.className = "currentFocusM2"
			cno_no.style.display = "none";
		}
	}
}
function bind(o,e,f){ var h = typeof(o)=="string"?document.getElementById(o):o; if(h.addEventListener){ h.addEventListener(e,f,false); }else if(h.attachEvent){ h.attachEvent('on'+e,f); } else{ h['on'+e] = f; } }
bind(window,"load",function(){var aho = document.getElementById("mainNav").getElementsByTagName("A");for(var i=0;i<aho.length;i++){ bind(aho[i],"click",function(e){ setCookie("h_tree_id",h_tree_id); }); h_tree_id = getCookie("h_tree_id"); if(h_tree_id==""){ h_tree_id="li1";} var o=document.getElementById(h_tree_id);tree_show(o); }});

