// JavaScript Document
/*window.onload
-----------------------------------------------------------------------------------*/
function AddLoadEvent(func){
		var oldonload = window.onload;
		if(typeof window.onload!='function'){
			window.onload = func;
			}else{
				window.onload = function(){
					oldonload();
					func();
					}
				}
	}
function treemenu(){
	if (!document.getElementById("menu") ) {
		return false;
	}
	var m = document.getElementById("menu");
	var list = m.getElementsByTagName("li");
	for(var i = 0;i<list.length;i++){
		if(!list[i].getElementsByTagName("dl").length) 
			{
				continue;
			}else{
					list[i].onmouseover = function(){
						this.getElementsByTagName("dl")[0].style.display = "block"
					}
					list[i].onmouseout = function(){
						this.getElementsByTagName("dl")[0].style.display = "none"
					}	
				}
		}

	}

	AddLoadEvent(treemenu);

function menu(){
	if (!document.getElementById("nav") ) {
		return false;
	}
	var m = document.getElementById("nav");
	var list = m.getElementsByTagName("li");
	for(var i = 0;i<list.length;i++){
		if(!list[i].getElementsByTagName("dl").length) 
			{
				continue;
			}else{
					list[i].onmouseover = function(){
						this.getElementsByTagName("dl")[0].style.display = "block"
					}
					list[i].onmouseout = function(){
						this.getElementsByTagName("dl")[0].style.display = "none"
					}	
				}
		}

	}

	AddLoadEvent(menu);
