/*
author:www.soft027.com
email:hbjsp@21cn.com
*/
function doClick(o){ 
	o.className="dhover"; 
	var j; 
	var id; 
	for(var i=1;i<=9;i++){ 
		id ="nav"+i; 
		j = document.getElementById(id); 
		if(id != o.id){ 
			j.className=""; 
		}
	} 
}
if(typeof(HTMLElement)!="undefined"){   
	HTMLElement.prototype.contains=function(obj){
		while(obj!=null&&typeof(obj.tagName)!="undefind"){
			if(obj==this) return true;
			obj=obj.parentNode;
		}
		return false;
	};
}

function ndoClick(theEvent){
	var j;
	var id;
	var cur_id;
	var cur_j;
	if (theEvent){
		var browser=navigator.userAgent;
		if (browser.indexOf("Firefox")>0){
			if (document.getElementById('top_sub2').contains(theEvent.relatedTarget)){
				return;
			}
		} 
		if (browser.indexOf("MSIE")>0){
			if (document.getElementById('top_sub2').contains(event.toElement)) {
				return;
			}
		}
	}
	for(var i=1;i<=9;i++){ 
		id ="nav"+i; 
		j = document.getElementById(id);
		j.className=""; 
	}
	cur_id = "nav"+cur_nav;
	cur_j = document.getElementById(cur_id);
	cur_j.className = "dhover";
}